Skip to content

Commit

Permalink
Generated Xendit go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
xendit-devx-bot committed Mar 8, 2024
1 parent 651a9f1 commit 38c2a75
Show file tree
Hide file tree
Showing 48 changed files with 712 additions and 100 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
The official Xendit Go SDK provides a simple and convenient way to call Xendit's REST API
in applications written in Go.

* Package version: 4.2.0
* Package version: 4.3.0

# Getting Started

Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (c *APIClient) PrepareRequest(
headerParams["xendit-lib"] = "go"

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

var body *bytes.Buffer

Expand Down
2 changes: 1 addition & 1 deletion configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var Default Configuration = *NewConfiguration()
func NewConfiguration() *Configuration {
cfg := &Configuration{
DefaultHeader: make(map[string]string),
UserAgent: "OpenAPI-Generator/4.2.0/go",
UserAgent: "OpenAPI-Generator/4.3.0/go",
Debug: false,
Servers: ServerConfigurations{
{
Expand Down
4 changes: 4 additions & 0 deletions docs/invoice/BankCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ Representing the available bank channels used for invoice-related transactions.

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

* `HANA` (value: `"HANA"`)

* `MUAMALAT` (value: `"MUAMALAT"`)

* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)

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.
Expand Down
56 changes: 56 additions & 0 deletions docs/invoice/ChannelProperties.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# ChannelProperties
An object representing channel-specific properties.

## Properties
| Name | Type | Required | Description | Examples |
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **Cards** | Pointer to [**ChannelPropertiesCards**](ChannelPropertiesCards.md) | | | |

## Methods

### NewChannelProperties

`func NewChannelProperties() *ChannelProperties`

NewChannelProperties instantiates a new ChannelProperties object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewChannelPropertiesWithDefaults

`func NewChannelPropertiesWithDefaults() *ChannelProperties`

NewChannelPropertiesWithDefaults instantiates a new ChannelProperties object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetCards

`func (o *ChannelProperties) GetCards() ChannelPropertiesCards`

GetCards returns the Cards field if non-nil, zero value otherwise.

### GetCardsOk

`func (o *ChannelProperties) GetCardsOk() (*ChannelPropertiesCards, bool)`

GetCardsOk returns a tuple with the Cards field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetCards

`func (o *ChannelProperties) SetCards(v ChannelPropertiesCards)`

SetCards sets Cards field to given value.

### HasCards

`func (o *ChannelProperties) HasCards() bool`

HasCards returns a boolean if a field has been set.


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


56 changes: 56 additions & 0 deletions docs/invoice/ChannelPropertiesCards.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# ChannelPropertiesCards
An object representing properties specific for credit card payment method.

## Properties
| Name | Type | Required | Description | Examples |
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **AllowedBins** | Pointer to **string[]** | | An array of allowed BINs (6 or 8 digits) for credit card payments. | |

## Methods

### NewChannelPropertiesCards

`func NewChannelPropertiesCards() *ChannelPropertiesCards`

NewChannelPropertiesCards instantiates a new ChannelPropertiesCards object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewChannelPropertiesCardsWithDefaults

`func NewChannelPropertiesCardsWithDefaults() *ChannelPropertiesCards`

NewChannelPropertiesCardsWithDefaults instantiates a new ChannelPropertiesCards object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetAllowedBins

`func (o *ChannelPropertiesCards) GetAllowedBins() []string`

GetAllowedBins returns the AllowedBins field if non-nil, zero value otherwise.

### GetAllowedBinsOk

`func (o *ChannelPropertiesCards) GetAllowedBinsOk() (*[]string, bool)`

GetAllowedBinsOk returns a tuple with the AllowedBins field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetAllowedBins

`func (o *ChannelPropertiesCards) SetAllowedBins(v []string)`

SetAllowedBins sets AllowedBins field to given value.

### HasAllowedBins

`func (o *ChannelPropertiesCards) HasAllowedBins() bool`

HasAllowedBins returns a boolean if a field has been set.


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


26 changes: 26 additions & 0 deletions docs/invoice/CreateInvoiceRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ An object representing for an invoice creation request.
| **ReminderTimeUnit** | Pointer to **string** | | The unit of the reminder time. | |
| **Items** | Pointer to [**InvoiceItem[]**](InvoiceItem.md) | | An array of items included in the invoice. | |
| **Fees** | Pointer to [**InvoiceFee[]**](InvoiceFee.md) | | An array of fees associated with the invoice. | |
| **ChannelProperties** | Pointer to [**ChannelProperties**](ChannelProperties.md) | | | |

## Methods

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

HasFees returns a boolean if a field has been set.

### GetChannelProperties

`func (o *CreateInvoiceRequest) GetChannelProperties() ChannelProperties`

GetChannelProperties returns the ChannelProperties field if non-nil, zero value otherwise.

### GetChannelPropertiesOk

`func (o *CreateInvoiceRequest) GetChannelPropertiesOk() (*ChannelProperties, bool)`

GetChannelPropertiesOk returns a tuple with the ChannelProperties field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetChannelProperties

`func (o *CreateInvoiceRequest) SetChannelProperties(v ChannelProperties)`

SetChannelProperties sets ChannelProperties field to given value.

### HasChannelProperties

`func (o *CreateInvoiceRequest) HasChannelProperties() bool`

HasChannelProperties returns a boolean if a field has been set.


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

Expand Down
78 changes: 78 additions & 0 deletions docs/invoice/DirectDebitType.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,84 @@ Representing the available Direct Debit channels used for invoice-related transa

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

* `DD_PUBLIC_FPX` (value: `"DD_PUBLIC_FPX"`)

* `DD_AMBANK_FPX` (value: `"DD_AMBANK_FPX"`)

* `DD_KFH_FPX` (value: `"DD_KFH_FPX"`)

* `DD_AGRO_FPX` (value: `"DD_AGRO_FPX"`)

* `DD_AFFIN_FPX` (value: `"DD_AFFIN_FPX"`)

* `DD_ALLIANCE_FPX` (value: `"DD_ALLIANCE_FPX"`)

* `DD_MUAMALAT_FPX` (value: `"DD_MUAMALAT_FPX"`)

* `DD_HLB_FPX` (value: `"DD_HLB_FPX"`)

* `DD_ISLAM_FPX` (value: `"DD_ISLAM_FPX"`)

* `DD_RAKYAT_FPX` (value: `"DD_RAKYAT_FPX"`)

* `DD_CIMB_FPX` (value: `"DD_CIMB_FPX"`)

* `DD_UOB_FPX` (value: `"DD_UOB_FPX"`)

* `DD_BOC_FPX` (value: `"DD_BOC_FPX"`)

* `DD_BSN_FPX` (value: `"DD_BSN_FPX"`)

* `DD_OCBC_FPX` (value: `"DD_OCBC_FPX"`)

* `DD_HSBC_FPX` (value: `"DD_HSBC_FPX"`)

* `DD_SCH_FPX` (value: `"DD_SCH_FPX"`)

* `DD_MAYB2_U_FPX` (value: `"DD_MAYB2U_FPX"`)

* `DD_RHB_FPX` (value: `"DD_RHB_FPX"`)

* `DD_UOB_FPX_BUSINESS` (value: `"DD_UOB_FPX_BUSINESS"`)

* `DD_AGRO_FPX_BUSINESS` (value: `"DD_AGRO_FPX_BUSINESS"`)

* `DD_ALLIANCE_FPX_BUSINESS` (value: `"DD_ALLIANCE_FPX_BUSINESS"`)

* `DD_AMBANK_FPX_BUSINESS` (value: `"DD_AMBANK_FPX_BUSINESS"`)

* `DD_ISLAM_FPX_BUSINESS` (value: `"DD_ISLAM_FPX_BUSINESS"`)

* `DD_MUAMALAT_FPX_BUSINESS` (value: `"DD_MUAMALAT_FPX_BUSINESS"`)

* `DD_HLB_FPX_BUSINESS` (value: `"DD_HLB_FPX_BUSINESS"`)

* `DD_HSBC_FPX_BUSINESS` (value: `"DD_HSBC_FPX_BUSINESS"`)

* `DD_RAKYAT_FPX_BUSINESS` (value: `"DD_RAKYAT_FPX_BUSINESS"`)

* `DD_KFH_FPX_BUSINESS` (value: `"DD_KFH_FPX_BUSINESS"`)

* `DD_OCBC_FPX_BUSINESS` (value: `"DD_OCBC_FPX_BUSINESS"`)

* `DD_PUBLIC_FPX_BUSINESS` (value: `"DD_PUBLIC_FPX_BUSINESS"`)

* `DD_RHB_FPX_BUSINESS` (value: `"DD_RHB_FPX_BUSINESS"`)

* `DD_SCH_FPX_BUSINESS` (value: `"DD_SCH_FPX_BUSINESS"`)

* `DD_CITIBANK_FPX_BUSINESS` (value: `"DD_CITIBANK_FPX_BUSINESS"`)

* `DD_BNP_FPX_BUSINESS` (value: `"DD_BNP_FPX_BUSINESS"`)

* `DD_DEUTSCHE_FPX_BUSINESS` (value: `"DD_DEUTSCHE_FPX_BUSINESS"`)

* `DD_MAYB2_E_FPX_BUSINESS` (value: `"DD_MAYB2E_FPX_BUSINESS"`)

* `DD_CIMB_FPX_BUSINESS` (value: `"DD_CIMB_FPX_BUSINESS"`)

* `DD_AFFIN_FPX_BUSINESS` (value: `"DD_AFFIN_FPX_BUSINESS"`)

* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)

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.
Expand Down
8 changes: 8 additions & 0 deletions docs/invoice/EwalletType.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ Representing the available eWallet channels used for invoice-related transaction

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

* `LINEPAY` (value: `"LINEPAY"`)

* `TRUEMONEY` (value: `"TRUEMONEY"`)

* `WECHATPAY` (value: `"WECHATPAY"`)

* `TOUCHNGO` (value: `"TOUCHNGO"`)

* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)

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.
Expand Down
26 changes: 26 additions & 0 deletions docs/invoice/Invoice.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ An object representing details for an invoice.
| **Customer** | Pointer to [**CustomerObject**](CustomerObject.md) | | | |
| **CustomerNotificationPreference** | Pointer to [**NotificationPreference**](NotificationPreference.md) | | | |
| **Fees** | Pointer to [**InvoiceFee[]**](InvoiceFee.md) | | An array of fees associated with the invoice. | |
| **ChannelProperties** | Pointer to [**ChannelProperties**](ChannelProperties.md) | | | |

## Methods

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

HasFees returns a boolean if a field has been set.

### GetChannelProperties

`func (o *Invoice) GetChannelProperties() ChannelProperties`

GetChannelProperties returns the ChannelProperties field if non-nil, zero value otherwise.

### GetChannelPropertiesOk

`func (o *Invoice) GetChannelPropertiesOk() (*ChannelProperties, bool)`

GetChannelPropertiesOk returns a tuple with the ChannelProperties field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetChannelProperties

`func (o *Invoice) SetChannelProperties(v ChannelProperties)`

SetChannelProperties sets ChannelProperties field to given value.

### HasChannelProperties

`func (o *Invoice) HasChannelProperties() bool`

HasChannelProperties returns a boolean if a field has been set.


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

Expand Down
2 changes: 2 additions & 0 deletions docs/invoice/InvoicePaymentMethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Representing the payment method used for an invoice.

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

* `CRYPTOCURRENCY` (value: `"CRYPTOCURRENCY"`)

* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)

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.
Expand Down
26 changes: 0 additions & 26 deletions docs/invoice/NotificationPreference.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ An object representing notification preferences for different invoice events.
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **InvoiceCreated** | Pointer to [**NotificationChannel[]**](NotificationChannel.md) | | Notification channels for when an invoice is created. | |
| **InvoiceReminder** | Pointer to [**NotificationChannel[]**](NotificationChannel.md) | | Notification channels for invoice reminders. | |
| **InvoiceExpired** | Pointer to [**NotificationChannel[]**](NotificationChannel.md) | | Notification channels for expired invoices. | |
| **InvoicePaid** | Pointer to [**NotificationChannel[]**](NotificationChannel.md) | | Notification channels for when an invoice is paid. | |

## Methods
Expand Down Expand Up @@ -78,31 +77,6 @@ SetInvoiceReminder sets InvoiceReminder field to given value.

HasInvoiceReminder returns a boolean if a field has been set.

### GetInvoiceExpired

`func (o *NotificationPreference) GetInvoiceExpired() []NotificationChannel`

GetInvoiceExpired returns the InvoiceExpired field if non-nil, zero value otherwise.

### GetInvoiceExpiredOk

`func (o *NotificationPreference) GetInvoiceExpiredOk() (*[]NotificationChannel, bool)`

GetInvoiceExpiredOk returns a tuple with the InvoiceExpired field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetInvoiceExpired

`func (o *NotificationPreference) SetInvoiceExpired(v []NotificationChannel)`

SetInvoiceExpired sets InvoiceExpired field to given value.

### HasInvoiceExpired

`func (o *NotificationPreference) HasInvoiceExpired() bool`

HasInvoiceExpired returns a boolean if a field has been set.

### GetInvoicePaid

`func (o *NotificationPreference) GetInvoicePaid() []NotificationChannel`
Expand Down
2 changes: 1 addition & 1 deletion invoice/model_address_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.6.0
API version: 1.7.6
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_alternative_display_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.6.0
API version: 1.7.6
*/


Expand Down
Loading

0 comments on commit 38c2a75

Please sign in to comment.