Skip to content

Commit 38c2a75

Browse files
author
xendit-devx-bot
committed
Generated Xendit go SDK
1 parent 651a9f1 commit 38c2a75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+712
-100
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
The official Xendit Go SDK provides a simple and convenient way to call Xendit's REST API
66
in applications written in Go.
77

8-
* Package version: 4.2.0
8+
* Package version: 4.3.0
99

1010
# Getting Started
1111

client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func (c *APIClient) PrepareRequest(
154154
headerParams["xendit-lib"] = "go"
155155

156156
// TODO: overwrite this line from buddy pipeline
157-
headerParams["xendit-lib-ver"] = "4.2.0"
157+
headerParams["xendit-lib-ver"] = "4.3.0"
158158

159159
var body *bytes.Buffer
160160

configuration.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ var Default Configuration = *NewConfiguration()
7878
func NewConfiguration() *Configuration {
7979
cfg := &Configuration{
8080
DefaultHeader: make(map[string]string),
81-
UserAgent: "OpenAPI-Generator/4.2.0/go",
81+
UserAgent: "OpenAPI-Generator/4.3.0/go",
8282
Debug: false,
8383
Servers: ServerConfigurations{
8484
{

docs/invoice/BankCode.md

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ Representing the available bank channels used for invoice-related transactions.
2323

2424
* `BNC` (value: `"BNC"`)
2525

26+
* `HANA` (value: `"HANA"`)
27+
28+
* `MUAMALAT` (value: `"MUAMALAT"`)
29+
2630
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
2731

2832
If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM.

docs/invoice/ChannelProperties.md

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# ChannelProperties
2+
An object representing channel-specific properties.
3+
4+
## Properties
5+
| Name | Type | Required | Description | Examples |
6+
|------------|:-------------:|:-------------:|-------------|:-------------:|
7+
| **Cards** | Pointer to [**ChannelPropertiesCards**](ChannelPropertiesCards.md) | | | |
8+
9+
## Methods
10+
11+
### NewChannelProperties
12+
13+
`func NewChannelProperties() *ChannelProperties`
14+
15+
NewChannelProperties instantiates a new ChannelProperties object
16+
This constructor will assign default values to properties that have it defined,
17+
and makes sure properties required by API are set, but the set of arguments
18+
will change when the set of required properties is changed
19+
20+
### NewChannelPropertiesWithDefaults
21+
22+
`func NewChannelPropertiesWithDefaults() *ChannelProperties`
23+
24+
NewChannelPropertiesWithDefaults instantiates a new ChannelProperties object
25+
This constructor will only assign default values to properties that have it defined,
26+
but it doesn't guarantee that properties required by API are set
27+
28+
### GetCards
29+
30+
`func (o *ChannelProperties) GetCards() ChannelPropertiesCards`
31+
32+
GetCards returns the Cards field if non-nil, zero value otherwise.
33+
34+
### GetCardsOk
35+
36+
`func (o *ChannelProperties) GetCardsOk() (*ChannelPropertiesCards, bool)`
37+
38+
GetCardsOk returns a tuple with the Cards field if it's non-nil, zero value otherwise
39+
and a boolean to check if the value has been set.
40+
41+
### SetCards
42+
43+
`func (o *ChannelProperties) SetCards(v ChannelPropertiesCards)`
44+
45+
SetCards sets Cards field to given value.
46+
47+
### HasCards
48+
49+
`func (o *ChannelProperties) HasCards() bool`
50+
51+
HasCards returns a boolean if a field has been set.
52+
53+
54+
[[Back to README]](../../README.md)
55+
56+
+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# ChannelPropertiesCards
2+
An object representing properties specific for credit card payment method.
3+
4+
## Properties
5+
| Name | Type | Required | Description | Examples |
6+
|------------|:-------------:|:-------------:|-------------|:-------------:|
7+
| **AllowedBins** | Pointer to **string[]** | | An array of allowed BINs (6 or 8 digits) for credit card payments. | |
8+
9+
## Methods
10+
11+
### NewChannelPropertiesCards
12+
13+
`func NewChannelPropertiesCards() *ChannelPropertiesCards`
14+
15+
NewChannelPropertiesCards instantiates a new ChannelPropertiesCards object
16+
This constructor will assign default values to properties that have it defined,
17+
and makes sure properties required by API are set, but the set of arguments
18+
will change when the set of required properties is changed
19+
20+
### NewChannelPropertiesCardsWithDefaults
21+
22+
`func NewChannelPropertiesCardsWithDefaults() *ChannelPropertiesCards`
23+
24+
NewChannelPropertiesCardsWithDefaults instantiates a new ChannelPropertiesCards object
25+
This constructor will only assign default values to properties that have it defined,
26+
but it doesn't guarantee that properties required by API are set
27+
28+
### GetAllowedBins
29+
30+
`func (o *ChannelPropertiesCards) GetAllowedBins() []string`
31+
32+
GetAllowedBins returns the AllowedBins field if non-nil, zero value otherwise.
33+
34+
### GetAllowedBinsOk
35+
36+
`func (o *ChannelPropertiesCards) GetAllowedBinsOk() (*[]string, bool)`
37+
38+
GetAllowedBinsOk returns a tuple with the AllowedBins field if it's non-nil, zero value otherwise
39+
and a boolean to check if the value has been set.
40+
41+
### SetAllowedBins
42+
43+
`func (o *ChannelPropertiesCards) SetAllowedBins(v []string)`
44+
45+
SetAllowedBins sets AllowedBins field to given value.
46+
47+
### HasAllowedBins
48+
49+
`func (o *ChannelPropertiesCards) HasAllowedBins() bool`
50+
51+
HasAllowedBins returns a boolean if a field has been set.
52+
53+
54+
[[Back to README]](../../README.md)
55+
56+

docs/invoice/CreateInvoiceRequest.md

+26
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ An object representing for an invoice creation request.
2424
| **ReminderTimeUnit** | Pointer to **string** | | The unit of the reminder time. | |
2525
| **Items** | Pointer to [**InvoiceItem[]**](InvoiceItem.md) | | An array of items included in the invoice. | |
2626
| **Fees** | Pointer to [**InvoiceFee[]**](InvoiceFee.md) | | An array of fees associated with the invoice. | |
27+
| **ChannelProperties** | Pointer to [**ChannelProperties**](ChannelProperties.md) | | | |
2728

2829
## Methods
2930

@@ -534,6 +535,31 @@ SetFees sets Fees field to given value.
534535

535536
HasFees returns a boolean if a field has been set.
536537

538+
### GetChannelProperties
539+
540+
`func (o *CreateInvoiceRequest) GetChannelProperties() ChannelProperties`
541+
542+
GetChannelProperties returns the ChannelProperties field if non-nil, zero value otherwise.
543+
544+
### GetChannelPropertiesOk
545+
546+
`func (o *CreateInvoiceRequest) GetChannelPropertiesOk() (*ChannelProperties, bool)`
547+
548+
GetChannelPropertiesOk returns a tuple with the ChannelProperties field if it's non-nil, zero value otherwise
549+
and a boolean to check if the value has been set.
550+
551+
### SetChannelProperties
552+
553+
`func (o *CreateInvoiceRequest) SetChannelProperties(v ChannelProperties)`
554+
555+
SetChannelProperties sets ChannelProperties field to given value.
556+
557+
### HasChannelProperties
558+
559+
`func (o *CreateInvoiceRequest) HasChannelProperties() bool`
560+
561+
HasChannelProperties returns a boolean if a field has been set.
562+
537563

538564
[[Back to README]](../../README.md)
539565

docs/invoice/DirectDebitType.md

+78
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,84 @@ Representing the available Direct Debit channels used for invoice-related transa
4141

4242
* `DC_CHINABANK` (value: `"DC_CHINABANK"`)
4343

44+
* `DD_PUBLIC_FPX` (value: `"DD_PUBLIC_FPX"`)
45+
46+
* `DD_AMBANK_FPX` (value: `"DD_AMBANK_FPX"`)
47+
48+
* `DD_KFH_FPX` (value: `"DD_KFH_FPX"`)
49+
50+
* `DD_AGRO_FPX` (value: `"DD_AGRO_FPX"`)
51+
52+
* `DD_AFFIN_FPX` (value: `"DD_AFFIN_FPX"`)
53+
54+
* `DD_ALLIANCE_FPX` (value: `"DD_ALLIANCE_FPX"`)
55+
56+
* `DD_MUAMALAT_FPX` (value: `"DD_MUAMALAT_FPX"`)
57+
58+
* `DD_HLB_FPX` (value: `"DD_HLB_FPX"`)
59+
60+
* `DD_ISLAM_FPX` (value: `"DD_ISLAM_FPX"`)
61+
62+
* `DD_RAKYAT_FPX` (value: `"DD_RAKYAT_FPX"`)
63+
64+
* `DD_CIMB_FPX` (value: `"DD_CIMB_FPX"`)
65+
66+
* `DD_UOB_FPX` (value: `"DD_UOB_FPX"`)
67+
68+
* `DD_BOC_FPX` (value: `"DD_BOC_FPX"`)
69+
70+
* `DD_BSN_FPX` (value: `"DD_BSN_FPX"`)
71+
72+
* `DD_OCBC_FPX` (value: `"DD_OCBC_FPX"`)
73+
74+
* `DD_HSBC_FPX` (value: `"DD_HSBC_FPX"`)
75+
76+
* `DD_SCH_FPX` (value: `"DD_SCH_FPX"`)
77+
78+
* `DD_MAYB2_U_FPX` (value: `"DD_MAYB2U_FPX"`)
79+
80+
* `DD_RHB_FPX` (value: `"DD_RHB_FPX"`)
81+
82+
* `DD_UOB_FPX_BUSINESS` (value: `"DD_UOB_FPX_BUSINESS"`)
83+
84+
* `DD_AGRO_FPX_BUSINESS` (value: `"DD_AGRO_FPX_BUSINESS"`)
85+
86+
* `DD_ALLIANCE_FPX_BUSINESS` (value: `"DD_ALLIANCE_FPX_BUSINESS"`)
87+
88+
* `DD_AMBANK_FPX_BUSINESS` (value: `"DD_AMBANK_FPX_BUSINESS"`)
89+
90+
* `DD_ISLAM_FPX_BUSINESS` (value: `"DD_ISLAM_FPX_BUSINESS"`)
91+
92+
* `DD_MUAMALAT_FPX_BUSINESS` (value: `"DD_MUAMALAT_FPX_BUSINESS"`)
93+
94+
* `DD_HLB_FPX_BUSINESS` (value: `"DD_HLB_FPX_BUSINESS"`)
95+
96+
* `DD_HSBC_FPX_BUSINESS` (value: `"DD_HSBC_FPX_BUSINESS"`)
97+
98+
* `DD_RAKYAT_FPX_BUSINESS` (value: `"DD_RAKYAT_FPX_BUSINESS"`)
99+
100+
* `DD_KFH_FPX_BUSINESS` (value: `"DD_KFH_FPX_BUSINESS"`)
101+
102+
* `DD_OCBC_FPX_BUSINESS` (value: `"DD_OCBC_FPX_BUSINESS"`)
103+
104+
* `DD_PUBLIC_FPX_BUSINESS` (value: `"DD_PUBLIC_FPX_BUSINESS"`)
105+
106+
* `DD_RHB_FPX_BUSINESS` (value: `"DD_RHB_FPX_BUSINESS"`)
107+
108+
* `DD_SCH_FPX_BUSINESS` (value: `"DD_SCH_FPX_BUSINESS"`)
109+
110+
* `DD_CITIBANK_FPX_BUSINESS` (value: `"DD_CITIBANK_FPX_BUSINESS"`)
111+
112+
* `DD_BNP_FPX_BUSINESS` (value: `"DD_BNP_FPX_BUSINESS"`)
113+
114+
* `DD_DEUTSCHE_FPX_BUSINESS` (value: `"DD_DEUTSCHE_FPX_BUSINESS"`)
115+
116+
* `DD_MAYB2_E_FPX_BUSINESS` (value: `"DD_MAYB2E_FPX_BUSINESS"`)
117+
118+
* `DD_CIMB_FPX_BUSINESS` (value: `"DD_CIMB_FPX_BUSINESS"`)
119+
120+
* `DD_AFFIN_FPX_BUSINESS` (value: `"DD_AFFIN_FPX_BUSINESS"`)
121+
44122
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
45123

46124
If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM.

docs/invoice/EwalletType.md

+8
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ Representing the available eWallet channels used for invoice-related transaction
3333

3434
* `APPOTA` (value: `"APPOTA"`)
3535

36+
* `LINEPAY` (value: `"LINEPAY"`)
37+
38+
* `TRUEMONEY` (value: `"TRUEMONEY"`)
39+
40+
* `WECHATPAY` (value: `"WECHATPAY"`)
41+
42+
* `TOUCHNGO` (value: `"TOUCHNGO"`)
43+
3644
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
3745

3846
If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM.

docs/invoice/Invoice.md

+26
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ An object representing details for an invoice.
3737
| **Customer** | Pointer to [**CustomerObject**](CustomerObject.md) | | | |
3838
| **CustomerNotificationPreference** | Pointer to [**NotificationPreference**](NotificationPreference.md) | | | |
3939
| **Fees** | Pointer to [**InvoiceFee[]**](InvoiceFee.md) | | An array of fees associated with the invoice. | |
40+
| **ChannelProperties** | Pointer to [**ChannelProperties**](ChannelProperties.md) | | | |
4041

4142
## Methods
4243

@@ -797,6 +798,31 @@ SetFees sets Fees field to given value.
797798

798799
HasFees returns a boolean if a field has been set.
799800

801+
### GetChannelProperties
802+
803+
`func (o *Invoice) GetChannelProperties() ChannelProperties`
804+
805+
GetChannelProperties returns the ChannelProperties field if non-nil, zero value otherwise.
806+
807+
### GetChannelPropertiesOk
808+
809+
`func (o *Invoice) GetChannelPropertiesOk() (*ChannelProperties, bool)`
810+
811+
GetChannelPropertiesOk returns a tuple with the ChannelProperties field if it's non-nil, zero value otherwise
812+
and a boolean to check if the value has been set.
813+
814+
### SetChannelProperties
815+
816+
`func (o *Invoice) SetChannelProperties(v ChannelProperties)`
817+
818+
SetChannelProperties sets ChannelProperties field to given value.
819+
820+
### HasChannelProperties
821+
822+
`func (o *Invoice) HasChannelProperties() bool`
823+
824+
HasChannelProperties returns a boolean if a field has been set.
825+
800826

801827
[[Back to README]](../../README.md)
802828

docs/invoice/InvoicePaymentMethod.md

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Representing the payment method used for an invoice.
2323

2424
* `PAYLATER` (value: `"PAYLATER"`)
2525

26+
* `CRYPTOCURRENCY` (value: `"CRYPTOCURRENCY"`)
27+
2628
* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)
2729

2830
If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM.

docs/invoice/NotificationPreference.md

-26
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ An object representing notification preferences for different invoice events.
66
|------------|:-------------:|:-------------:|-------------|:-------------:|
77
| **InvoiceCreated** | Pointer to [**NotificationChannel[]**](NotificationChannel.md) | | Notification channels for when an invoice is created. | |
88
| **InvoiceReminder** | Pointer to [**NotificationChannel[]**](NotificationChannel.md) | | Notification channels for invoice reminders. | |
9-
| **InvoiceExpired** | Pointer to [**NotificationChannel[]**](NotificationChannel.md) | | Notification channels for expired invoices. | |
109
| **InvoicePaid** | Pointer to [**NotificationChannel[]**](NotificationChannel.md) | | Notification channels for when an invoice is paid. | |
1110

1211
## Methods
@@ -78,31 +77,6 @@ SetInvoiceReminder sets InvoiceReminder field to given value.
7877

7978
HasInvoiceReminder returns a boolean if a field has been set.
8079

81-
### GetInvoiceExpired
82-
83-
`func (o *NotificationPreference) GetInvoiceExpired() []NotificationChannel`
84-
85-
GetInvoiceExpired returns the InvoiceExpired field if non-nil, zero value otherwise.
86-
87-
### GetInvoiceExpiredOk
88-
89-
`func (o *NotificationPreference) GetInvoiceExpiredOk() (*[]NotificationChannel, bool)`
90-
91-
GetInvoiceExpiredOk returns a tuple with the InvoiceExpired field if it's non-nil, zero value otherwise
92-
and a boolean to check if the value has been set.
93-
94-
### SetInvoiceExpired
95-
96-
`func (o *NotificationPreference) SetInvoiceExpired(v []NotificationChannel)`
97-
98-
SetInvoiceExpired sets InvoiceExpired field to given value.
99-
100-
### HasInvoiceExpired
101-
102-
`func (o *NotificationPreference) HasInvoiceExpired() bool`
103-
104-
HasInvoiceExpired returns a boolean if a field has been set.
105-
10680
### GetInvoicePaid
10781

10882
`func (o *NotificationPreference) GetInvoicePaid() []NotificationChannel`

invoice/model_address_object.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ xendit-invoice-service
33
44
xendit-invoice-service descriptions
55
6-
API version: 1.6.0
6+
API version: 1.7.6
77
*/
88

99

invoice/model_alternative_display_item.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ xendit-invoice-service
33
44
xendit-invoice-service descriptions
55
6-
API version: 1.6.0
6+
API version: 1.7.6
77
*/
88

99

0 commit comments

Comments
 (0)