From 38c2a75890ea6c83f7af5f57636735f482448da2 Mon Sep 17 00:00:00 2001 From: xendit-devx-bot Date: Fri, 8 Mar 2024 06:20:15 +0000 Subject: [PATCH] Generated Xendit go SDK --- README.md | 2 +- client.go | 2 +- configuration.go | 2 +- docs/invoice/BankCode.md | 4 + docs/invoice/ChannelProperties.md | 56 ++++++++ docs/invoice/ChannelPropertiesCards.md | 56 ++++++++ docs/invoice/CreateInvoiceRequest.md | 26 ++++ docs/invoice/DirectDebitType.md | 78 +++++++++++ docs/invoice/EwalletType.md | 8 ++ docs/invoice/Invoice.md | 26 ++++ docs/invoice/InvoicePaymentMethod.md | 2 + docs/invoice/NotificationPreference.md | 26 ---- invoice/model_address_object.go | 2 +- invoice/model_alternative_display_item.go | 2 +- invoice/model_bad_request_error.go | 2 +- invoice/model_bank.go | 2 +- invoice/model_bank_code.go | 6 +- invoice/model_channel_properties.go | 127 +++++++++++++++++ invoice/model_channel_properties_cards.go | 128 ++++++++++++++++++ invoice/model_create_invoice_request.go | 38 +++++- invoice/model_customer_object.go | 2 +- invoice/model_direct_debit.go | 2 +- invoice/model_direct_debit_type.go | 80 ++++++++++- invoice/model_ewallet.go | 2 +- invoice/model_ewallet_type.go | 10 +- invoice/model_forbidden_error.go | 2 +- invoice/model_invoice.go | 38 +++++- invoice/model_invoice_callback.go | 2 +- invoice/model_invoice_callback_item.go | 2 +- invoice/model_invoice_client_type.go | 2 +- invoice/model_invoice_currency.go | 2 +- ...el_invoice_error404_response_definition.go | 2 +- invoice/model_invoice_fee.go | 2 +- invoice/model_invoice_item.go | 2 +- invoice/model_invoice_not_found_error.go | 2 +- invoice/model_invoice_payment_method.go | 4 +- invoice/model_invoice_status.go | 2 +- invoice/model_notification_channel.go | 2 +- invoice/model_notification_preference.go | 39 +----- invoice/model_paylater.go | 2 +- invoice/model_paylater_type.go | 2 +- invoice/model_payment_details.go | 2 +- invoice/model_qr_code.go | 2 +- invoice/model_qr_code_type.go | 2 +- invoice/model_retail_outlet.go | 2 +- invoice/model_retail_outlet_name.go | 2 +- invoice/model_server_error.go | 2 +- invoice/model_unauthorized_error.go | 2 +- 48 files changed, 712 insertions(+), 100 deletions(-) create mode 100644 docs/invoice/ChannelProperties.md create mode 100644 docs/invoice/ChannelPropertiesCards.md create mode 100644 invoice/model_channel_properties.go create mode 100644 invoice/model_channel_properties_cards.go diff --git a/README.md b/README.md index 6ef9f670..62d00596 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/client.go b/client.go index eb6fb22f..fa807265 100644 --- a/client.go +++ b/client.go @@ -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 diff --git a/configuration.go b/configuration.go index 7a59e50e..831fef18 100644 --- a/configuration.go +++ b/configuration.go @@ -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{ { diff --git a/docs/invoice/BankCode.md b/docs/invoice/BankCode.md index 74426e7a..2137b74c 100644 --- a/docs/invoice/BankCode.md +++ b/docs/invoice/BankCode.md @@ -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. diff --git a/docs/invoice/ChannelProperties.md b/docs/invoice/ChannelProperties.md new file mode 100644 index 00000000..a3de5c92 --- /dev/null +++ b/docs/invoice/ChannelProperties.md @@ -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) + + diff --git a/docs/invoice/ChannelPropertiesCards.md b/docs/invoice/ChannelPropertiesCards.md new file mode 100644 index 00000000..7e2731fb --- /dev/null +++ b/docs/invoice/ChannelPropertiesCards.md @@ -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) + + diff --git a/docs/invoice/CreateInvoiceRequest.md b/docs/invoice/CreateInvoiceRequest.md index e9ab276f..a9efae6b 100644 --- a/docs/invoice/CreateInvoiceRequest.md +++ b/docs/invoice/CreateInvoiceRequest.md @@ -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 @@ -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) diff --git a/docs/invoice/DirectDebitType.md b/docs/invoice/DirectDebitType.md index 242e5419..e64494c4 100644 --- a/docs/invoice/DirectDebitType.md +++ b/docs/invoice/DirectDebitType.md @@ -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. diff --git a/docs/invoice/EwalletType.md b/docs/invoice/EwalletType.md index cea88690..3d837c27 100644 --- a/docs/invoice/EwalletType.md +++ b/docs/invoice/EwalletType.md @@ -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. diff --git a/docs/invoice/Invoice.md b/docs/invoice/Invoice.md index 81f849b6..48dbf758 100644 --- a/docs/invoice/Invoice.md +++ b/docs/invoice/Invoice.md @@ -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 @@ -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) diff --git a/docs/invoice/InvoicePaymentMethod.md b/docs/invoice/InvoicePaymentMethod.md index 85e32b18..a4195685 100644 --- a/docs/invoice/InvoicePaymentMethod.md +++ b/docs/invoice/InvoicePaymentMethod.md @@ -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. diff --git a/docs/invoice/NotificationPreference.md b/docs/invoice/NotificationPreference.md index c90303ba..3232cc8d 100644 --- a/docs/invoice/NotificationPreference.md +++ b/docs/invoice/NotificationPreference.md @@ -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 @@ -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` diff --git a/invoice/model_address_object.go b/invoice/model_address_object.go index c042b0df..d5b4662a 100644 --- a/invoice/model_address_object.go +++ b/invoice/model_address_object.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_alternative_display_item.go b/invoice/model_alternative_display_item.go index 6613a674..a123b425 100644 --- a/invoice/model_alternative_display_item.go +++ b/invoice/model_alternative_display_item.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_bad_request_error.go b/invoice/model_bad_request_error.go index 20c5c5bb..15ccd932 100644 --- a/invoice/model_bad_request_error.go +++ b/invoice/model_bad_request_error.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_bank.go b/invoice/model_bank.go index cd8f4b31..78b06916 100644 --- a/invoice/model_bank.go +++ b/invoice/model_bank.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_bank_code.go b/invoice/model_bank_code.go index 2e33090b..5ffa94f5 100644 --- a/invoice/model_bank_code.go +++ b/invoice/model_bank_code.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ @@ -30,6 +30,8 @@ const ( BANKCODE_SAHABAT_SAMPOERNA BankCode = "SAHABAT_SAMPOERNA" BANKCODE_CIMB BankCode = "CIMB" BANKCODE_BNC BankCode = "BNC" + BANKCODE_HANA BankCode = "HANA" + BANKCODE_MUAMALAT BankCode = "MUAMALAT" BANKCODE_XENDIT_ENUM_DEFAULT_FALLBACK BankCode = "UNKNOWN_ENUM_VALUE" ) @@ -45,6 +47,8 @@ var AllowedBankCodeEnumValues = []BankCode{ "SAHABAT_SAMPOERNA", "CIMB", "BNC", + "HANA", + "MUAMALAT", "UNKNOWN_ENUM_VALUE", } diff --git a/invoice/model_channel_properties.go b/invoice/model_channel_properties.go new file mode 100644 index 00000000..7d1058b9 --- /dev/null +++ b/invoice/model_channel_properties.go @@ -0,0 +1,127 @@ +/* +xendit-invoice-service + +xendit-invoice-service descriptions + +API version: 1.7.6 +*/ + + +package invoice + +import ( + "encoding/json" + + utils "github.com/xendit/xendit-go/v4/utils" +) + +// checks if the ChannelProperties type satisfies the MappedNullable interface at compile time +var _ utils.MappedNullable = &ChannelProperties{} + +// ChannelProperties An object representing channel-specific properties. +type ChannelProperties struct { + Cards *ChannelPropertiesCards `json:"cards,omitempty"` +} + +// 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 +func NewChannelProperties() *ChannelProperties { + this := ChannelProperties{} + return &this +} + +// 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 +func NewChannelPropertiesWithDefaults() *ChannelProperties { + this := ChannelProperties{} + return &this +} + +// GetCards returns the Cards field value if set, zero value otherwise. +func (o *ChannelProperties) GetCards() ChannelPropertiesCards { + if o == nil || utils.IsNil(o.Cards) { + var ret ChannelPropertiesCards + return ret + } + return *o.Cards +} + +// GetCardsOk returns a tuple with the Cards field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelProperties) GetCardsOk() (*ChannelPropertiesCards, bool) { + if o == nil || utils.IsNil(o.Cards) { + return nil, false + } + return o.Cards, true +} + +// HasCards returns a boolean if a field has been set. +func (o *ChannelProperties) HasCards() bool { + if o != nil && !utils.IsNil(o.Cards) { + return true + } + + return false +} + +// SetCards gets a reference to the given ChannelPropertiesCards and assigns it to the Cards field. +func (o *ChannelProperties) SetCards(v ChannelPropertiesCards) { + o.Cards = &v +} + +func (o ChannelProperties) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ChannelProperties) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !utils.IsNil(o.Cards) { + toSerialize["cards"] = o.Cards + } + return toSerialize, nil +} + +type NullableChannelProperties struct { + value *ChannelProperties + isSet bool +} + +func (v NullableChannelProperties) Get() *ChannelProperties { + return v.value +} + +func (v *NullableChannelProperties) Set(val *ChannelProperties) { + v.value = val + v.isSet = true +} + +func (v NullableChannelProperties) IsSet() bool { + return v.isSet +} + +func (v *NullableChannelProperties) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChannelProperties(val *ChannelProperties) *NullableChannelProperties { + return &NullableChannelProperties{value: val, isSet: true} +} + +func (v NullableChannelProperties) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChannelProperties) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/invoice/model_channel_properties_cards.go b/invoice/model_channel_properties_cards.go new file mode 100644 index 00000000..786b5fe2 --- /dev/null +++ b/invoice/model_channel_properties_cards.go @@ -0,0 +1,128 @@ +/* +xendit-invoice-service + +xendit-invoice-service descriptions + +API version: 1.7.6 +*/ + + +package invoice + +import ( + "encoding/json" + + utils "github.com/xendit/xendit-go/v4/utils" +) + +// checks if the ChannelPropertiesCards type satisfies the MappedNullable interface at compile time +var _ utils.MappedNullable = &ChannelPropertiesCards{} + +// ChannelPropertiesCards An object representing properties specific for credit card payment method. +type ChannelPropertiesCards struct { + // An array of allowed BINs (6 or 8 digits) for credit card payments. + AllowedBins []string `json:"allowed_bins,omitempty"` +} + +// 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 +func NewChannelPropertiesCards() *ChannelPropertiesCards { + this := ChannelPropertiesCards{} + return &this +} + +// 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 +func NewChannelPropertiesCardsWithDefaults() *ChannelPropertiesCards { + this := ChannelPropertiesCards{} + return &this +} + +// GetAllowedBins returns the AllowedBins field value if set, zero value otherwise. +func (o *ChannelPropertiesCards) GetAllowedBins() []string { + if o == nil || utils.IsNil(o.AllowedBins) { + var ret []string + return ret + } + return o.AllowedBins +} + +// GetAllowedBinsOk returns a tuple with the AllowedBins field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelPropertiesCards) GetAllowedBinsOk() ([]string, bool) { + if o == nil || utils.IsNil(o.AllowedBins) { + return nil, false + } + return o.AllowedBins, true +} + +// HasAllowedBins returns a boolean if a field has been set. +func (o *ChannelPropertiesCards) HasAllowedBins() bool { + if o != nil && !utils.IsNil(o.AllowedBins) { + return true + } + + return false +} + +// SetAllowedBins gets a reference to the given []string and assigns it to the AllowedBins field. +func (o *ChannelPropertiesCards) SetAllowedBins(v []string) { + o.AllowedBins = v +} + +func (o ChannelPropertiesCards) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ChannelPropertiesCards) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !utils.IsNil(o.AllowedBins) { + toSerialize["allowed_bins"] = o.AllowedBins + } + return toSerialize, nil +} + +type NullableChannelPropertiesCards struct { + value *ChannelPropertiesCards + isSet bool +} + +func (v NullableChannelPropertiesCards) Get() *ChannelPropertiesCards { + return v.value +} + +func (v *NullableChannelPropertiesCards) Set(val *ChannelPropertiesCards) { + v.value = val + v.isSet = true +} + +func (v NullableChannelPropertiesCards) IsSet() bool { + return v.isSet +} + +func (v *NullableChannelPropertiesCards) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChannelPropertiesCards(val *ChannelPropertiesCards) *NullableChannelPropertiesCards { + return &NullableChannelPropertiesCards{value: val, isSet: true} +} + +func (v NullableChannelPropertiesCards) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChannelPropertiesCards) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/invoice/model_create_invoice_request.go b/invoice/model_create_invoice_request.go index 11b4689e..e109f7e6 100644 --- a/invoice/model_create_invoice_request.go +++ b/invoice/model_create_invoice_request.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ @@ -58,6 +58,7 @@ type CreateInvoiceRequest struct { Items []InvoiceItem `json:"items,omitempty"` // An array of fees associated with the invoice. Fees []InvoiceFee `json:"fees,omitempty"` + ChannelProperties *ChannelProperties `json:"channel_properties,omitempty"` } // NewCreateInvoiceRequest instantiates a new CreateInvoiceRequest object @@ -703,6 +704,38 @@ func (o *CreateInvoiceRequest) SetFees(v []InvoiceFee) { o.Fees = v } +// GetChannelProperties returns the ChannelProperties field value if set, zero value otherwise. +func (o *CreateInvoiceRequest) GetChannelProperties() ChannelProperties { + if o == nil || utils.IsNil(o.ChannelProperties) { + var ret ChannelProperties + return ret + } + return *o.ChannelProperties +} + +// GetChannelPropertiesOk returns a tuple with the ChannelProperties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateInvoiceRequest) GetChannelPropertiesOk() (*ChannelProperties, bool) { + if o == nil || utils.IsNil(o.ChannelProperties) { + return nil, false + } + return o.ChannelProperties, true +} + +// HasChannelProperties returns a boolean if a field has been set. +func (o *CreateInvoiceRequest) HasChannelProperties() bool { + if o != nil && !utils.IsNil(o.ChannelProperties) { + return true + } + + return false +} + +// SetChannelProperties gets a reference to the given ChannelProperties and assigns it to the ChannelProperties field. +func (o *CreateInvoiceRequest) SetChannelProperties(v ChannelProperties) { + o.ChannelProperties = &v +} + func (o CreateInvoiceRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -769,6 +802,9 @@ func (o CreateInvoiceRequest) ToMap() (map[string]interface{}, error) { if !utils.IsNil(o.Fees) { toSerialize["fees"] = o.Fees } + if !utils.IsNil(o.ChannelProperties) { + toSerialize["channel_properties"] = o.ChannelProperties + } return toSerialize, nil } diff --git a/invoice/model_customer_object.go b/invoice/model_customer_object.go index 35480e73..51d4f8e0 100644 --- a/invoice/model_customer_object.go +++ b/invoice/model_customer_object.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_direct_debit.go b/invoice/model_direct_debit.go index d60bca34..2d99476a 100644 --- a/invoice/model_direct_debit.go +++ b/invoice/model_direct_debit.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_direct_debit_type.go b/invoice/model_direct_debit_type.go index 4e2c662a..957ed094 100644 --- a/invoice/model_direct_debit_type.go +++ b/invoice/model_direct_debit_type.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ @@ -39,6 +39,45 @@ const ( DIRECTDEBITTYPE_DD_CHINABANK DirectDebitType = "DD_CHINABANK" DIRECTDEBITTYPE_BA_CHINABANK DirectDebitType = "BA_CHINABANK" DIRECTDEBITTYPE_DC_CHINABANK DirectDebitType = "DC_CHINABANK" + DIRECTDEBITTYPE_DD_PUBLIC_FPX DirectDebitType = "DD_PUBLIC_FPX" + DIRECTDEBITTYPE_DD_AMBANK_FPX DirectDebitType = "DD_AMBANK_FPX" + DIRECTDEBITTYPE_DD_KFH_FPX DirectDebitType = "DD_KFH_FPX" + DIRECTDEBITTYPE_DD_AGRO_FPX DirectDebitType = "DD_AGRO_FPX" + DIRECTDEBITTYPE_DD_AFFIN_FPX DirectDebitType = "DD_AFFIN_FPX" + DIRECTDEBITTYPE_DD_ALLIANCE_FPX DirectDebitType = "DD_ALLIANCE_FPX" + DIRECTDEBITTYPE_DD_MUAMALAT_FPX DirectDebitType = "DD_MUAMALAT_FPX" + DIRECTDEBITTYPE_DD_HLB_FPX DirectDebitType = "DD_HLB_FPX" + DIRECTDEBITTYPE_DD_ISLAM_FPX DirectDebitType = "DD_ISLAM_FPX" + DIRECTDEBITTYPE_DD_RAKYAT_FPX DirectDebitType = "DD_RAKYAT_FPX" + DIRECTDEBITTYPE_DD_CIMB_FPX DirectDebitType = "DD_CIMB_FPX" + DIRECTDEBITTYPE_DD_UOB_FPX DirectDebitType = "DD_UOB_FPX" + DIRECTDEBITTYPE_DD_BOC_FPX DirectDebitType = "DD_BOC_FPX" + DIRECTDEBITTYPE_DD_BSN_FPX DirectDebitType = "DD_BSN_FPX" + DIRECTDEBITTYPE_DD_OCBC_FPX DirectDebitType = "DD_OCBC_FPX" + DIRECTDEBITTYPE_DD_HSBC_FPX DirectDebitType = "DD_HSBC_FPX" + DIRECTDEBITTYPE_DD_SCH_FPX DirectDebitType = "DD_SCH_FPX" + DIRECTDEBITTYPE_DD_MAYB2_U_FPX DirectDebitType = "DD_MAYB2U_FPX" + DIRECTDEBITTYPE_DD_RHB_FPX DirectDebitType = "DD_RHB_FPX" + DIRECTDEBITTYPE_DD_UOB_FPX_BUSINESS DirectDebitType = "DD_UOB_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_AGRO_FPX_BUSINESS DirectDebitType = "DD_AGRO_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_ALLIANCE_FPX_BUSINESS DirectDebitType = "DD_ALLIANCE_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_AMBANK_FPX_BUSINESS DirectDebitType = "DD_AMBANK_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_ISLAM_FPX_BUSINESS DirectDebitType = "DD_ISLAM_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_MUAMALAT_FPX_BUSINESS DirectDebitType = "DD_MUAMALAT_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_HLB_FPX_BUSINESS DirectDebitType = "DD_HLB_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_HSBC_FPX_BUSINESS DirectDebitType = "DD_HSBC_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_RAKYAT_FPX_BUSINESS DirectDebitType = "DD_RAKYAT_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_KFH_FPX_BUSINESS DirectDebitType = "DD_KFH_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_OCBC_FPX_BUSINESS DirectDebitType = "DD_OCBC_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_PUBLIC_FPX_BUSINESS DirectDebitType = "DD_PUBLIC_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_RHB_FPX_BUSINESS DirectDebitType = "DD_RHB_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_SCH_FPX_BUSINESS DirectDebitType = "DD_SCH_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_CITIBANK_FPX_BUSINESS DirectDebitType = "DD_CITIBANK_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_BNP_FPX_BUSINESS DirectDebitType = "DD_BNP_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_DEUTSCHE_FPX_BUSINESS DirectDebitType = "DD_DEUTSCHE_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_MAYB2_E_FPX_BUSINESS DirectDebitType = "DD_MAYB2E_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_CIMB_FPX_BUSINESS DirectDebitType = "DD_CIMB_FPX_BUSINESS" + DIRECTDEBITTYPE_DD_AFFIN_FPX_BUSINESS DirectDebitType = "DD_AFFIN_FPX_BUSINESS" DIRECTDEBITTYPE_XENDIT_ENUM_DEFAULT_FALLBACK DirectDebitType = "UNKNOWN_ENUM_VALUE" ) @@ -63,6 +102,45 @@ var AllowedDirectDebitTypeEnumValues = []DirectDebitType{ "DD_CHINABANK", "BA_CHINABANK", "DC_CHINABANK", + "DD_PUBLIC_FPX", + "DD_AMBANK_FPX", + "DD_KFH_FPX", + "DD_AGRO_FPX", + "DD_AFFIN_FPX", + "DD_ALLIANCE_FPX", + "DD_MUAMALAT_FPX", + "DD_HLB_FPX", + "DD_ISLAM_FPX", + "DD_RAKYAT_FPX", + "DD_CIMB_FPX", + "DD_UOB_FPX", + "DD_BOC_FPX", + "DD_BSN_FPX", + "DD_OCBC_FPX", + "DD_HSBC_FPX", + "DD_SCH_FPX", + "DD_MAYB2U_FPX", + "DD_RHB_FPX", + "DD_UOB_FPX_BUSINESS", + "DD_AGRO_FPX_BUSINESS", + "DD_ALLIANCE_FPX_BUSINESS", + "DD_AMBANK_FPX_BUSINESS", + "DD_ISLAM_FPX_BUSINESS", + "DD_MUAMALAT_FPX_BUSINESS", + "DD_HLB_FPX_BUSINESS", + "DD_HSBC_FPX_BUSINESS", + "DD_RAKYAT_FPX_BUSINESS", + "DD_KFH_FPX_BUSINESS", + "DD_OCBC_FPX_BUSINESS", + "DD_PUBLIC_FPX_BUSINESS", + "DD_RHB_FPX_BUSINESS", + "DD_SCH_FPX_BUSINESS", + "DD_CITIBANK_FPX_BUSINESS", + "DD_BNP_FPX_BUSINESS", + "DD_DEUTSCHE_FPX_BUSINESS", + "DD_MAYB2E_FPX_BUSINESS", + "DD_CIMB_FPX_BUSINESS", + "DD_AFFIN_FPX_BUSINESS", "UNKNOWN_ENUM_VALUE", } diff --git a/invoice/model_ewallet.go b/invoice/model_ewallet.go index 37d1938a..b92d7404 100644 --- a/invoice/model_ewallet.go +++ b/invoice/model_ewallet.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_ewallet_type.go b/invoice/model_ewallet_type.go index b072a43a..49a1d9a5 100644 --- a/invoice/model_ewallet_type.go +++ b/invoice/model_ewallet_type.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ @@ -35,6 +35,10 @@ const ( EWALLETTYPE_VIETTELPAY EwalletType = "VIETTELPAY" EWALLETTYPE_VNPTWALLET EwalletType = "VNPTWALLET" EWALLETTYPE_APPOTA EwalletType = "APPOTA" + EWALLETTYPE_LINEPAY EwalletType = "LINEPAY" + EWALLETTYPE_TRUEMONEY EwalletType = "TRUEMONEY" + EWALLETTYPE_WECHATPAY EwalletType = "WECHATPAY" + EWALLETTYPE_TOUCHNGO EwalletType = "TOUCHNGO" EWALLETTYPE_XENDIT_ENUM_DEFAULT_FALLBACK EwalletType = "UNKNOWN_ENUM_VALUE" ) @@ -55,6 +59,10 @@ var AllowedEwalletTypeEnumValues = []EwalletType{ "VIETTELPAY", "VNPTWALLET", "APPOTA", + "LINEPAY", + "TRUEMONEY", + "WECHATPAY", + "TOUCHNGO", "UNKNOWN_ENUM_VALUE", } diff --git a/invoice/model_forbidden_error.go b/invoice/model_forbidden_error.go index d3379ef4..c94af9bc 100644 --- a/invoice/model_forbidden_error.go +++ b/invoice/model_forbidden_error.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_invoice.go b/invoice/model_invoice.go index 94df83ae..646cf4b1 100644 --- a/invoice/model_invoice.go +++ b/invoice/model_invoice.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ @@ -82,6 +82,7 @@ type Invoice struct { CustomerNotificationPreference *NotificationPreference `json:"customer_notification_preference,omitempty"` // An array of fees associated with the invoice. Fees []InvoiceFee `json:"fees,omitempty"` + ChannelProperties *ChannelProperties `json:"channel_properties,omitempty"` } // NewInvoice instantiates a new Invoice object @@ -1038,6 +1039,38 @@ func (o *Invoice) SetFees(v []InvoiceFee) { o.Fees = v } +// GetChannelProperties returns the ChannelProperties field value if set, zero value otherwise. +func (o *Invoice) GetChannelProperties() ChannelProperties { + if o == nil || utils.IsNil(o.ChannelProperties) { + var ret ChannelProperties + return ret + } + return *o.ChannelProperties +} + +// GetChannelPropertiesOk returns a tuple with the ChannelProperties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Invoice) GetChannelPropertiesOk() (*ChannelProperties, bool) { + if o == nil || utils.IsNil(o.ChannelProperties) { + return nil, false + } + return o.ChannelProperties, true +} + +// HasChannelProperties returns a boolean if a field has been set. +func (o *Invoice) HasChannelProperties() bool { + if o != nil && !utils.IsNil(o.ChannelProperties) { + return true + } + + return false +} + +// SetChannelProperties gets a reference to the given ChannelProperties and assigns it to the ChannelProperties field. +func (o *Invoice) SetChannelProperties(v ChannelProperties) { + o.ChannelProperties = &v +} + func (o Invoice) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -1113,6 +1146,9 @@ func (o Invoice) ToMap() (map[string]interface{}, error) { if !utils.IsNil(o.Fees) { toSerialize["fees"] = o.Fees } + if !utils.IsNil(o.ChannelProperties) { + toSerialize["channel_properties"] = o.ChannelProperties + } return toSerialize, nil } diff --git a/invoice/model_invoice_callback.go b/invoice/model_invoice_callback.go index 94646f9d..39d66706 100644 --- a/invoice/model_invoice_callback.go +++ b/invoice/model_invoice_callback.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_invoice_callback_item.go b/invoice/model_invoice_callback_item.go index abbb8912..42ed1336 100644 --- a/invoice/model_invoice_callback_item.go +++ b/invoice/model_invoice_callback_item.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_invoice_client_type.go b/invoice/model_invoice_client_type.go index a24d165b..8e66ff1b 100644 --- a/invoice/model_invoice_client_type.go +++ b/invoice/model_invoice_client_type.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_invoice_currency.go b/invoice/model_invoice_currency.go index af7732ac..4c2f9ed7 100644 --- a/invoice/model_invoice_currency.go +++ b/invoice/model_invoice_currency.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_invoice_error404_response_definition.go b/invoice/model_invoice_error404_response_definition.go index ff8f878c..20d2f3cd 100644 --- a/invoice/model_invoice_error404_response_definition.go +++ b/invoice/model_invoice_error404_response_definition.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_invoice_fee.go b/invoice/model_invoice_fee.go index f0604e1a..2a20a87d 100644 --- a/invoice/model_invoice_fee.go +++ b/invoice/model_invoice_fee.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_invoice_item.go b/invoice/model_invoice_item.go index eee77d86..4469eebb 100644 --- a/invoice/model_invoice_item.go +++ b/invoice/model_invoice_item.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_invoice_not_found_error.go b/invoice/model_invoice_not_found_error.go index 8d2db12a..81ff1343 100644 --- a/invoice/model_invoice_not_found_error.go +++ b/invoice/model_invoice_not_found_error.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_invoice_payment_method.go b/invoice/model_invoice_payment_method.go index 1c633f5e..544fc0e5 100644 --- a/invoice/model_invoice_payment_method.go +++ b/invoice/model_invoice_payment_method.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ @@ -30,6 +30,7 @@ const ( INVOICEPAYMENTMETHOD_DIRECT_DEBIT InvoicePaymentMethod = "DIRECT_DEBIT" INVOICEPAYMENTMETHOD_BANK_TRANSFER InvoicePaymentMethod = "BANK_TRANSFER" INVOICEPAYMENTMETHOD_PAYLATER InvoicePaymentMethod = "PAYLATER" + INVOICEPAYMENTMETHOD_CRYPTOCURRENCY InvoicePaymentMethod = "CRYPTOCURRENCY" INVOICEPAYMENTMETHOD_XENDIT_ENUM_DEFAULT_FALLBACK InvoicePaymentMethod = "UNKNOWN_ENUM_VALUE" ) @@ -45,6 +46,7 @@ var AllowedInvoicePaymentMethodEnumValues = []InvoicePaymentMethod{ "DIRECT_DEBIT", "BANK_TRANSFER", "PAYLATER", + "CRYPTOCURRENCY", "UNKNOWN_ENUM_VALUE", } diff --git a/invoice/model_invoice_status.go b/invoice/model_invoice_status.go index 76725c32..7f82566e 100644 --- a/invoice/model_invoice_status.go +++ b/invoice/model_invoice_status.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_notification_channel.go b/invoice/model_notification_channel.go index b536a9d2..6bfa30bd 100644 --- a/invoice/model_notification_channel.go +++ b/invoice/model_notification_channel.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_notification_preference.go b/invoice/model_notification_preference.go index 67a9aeba..1ab443f6 100644 --- a/invoice/model_notification_preference.go +++ b/invoice/model_notification_preference.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ @@ -24,8 +24,6 @@ type NotificationPreference struct { InvoiceCreated []NotificationChannel `json:"invoice_created,omitempty"` // Notification channels for invoice reminders. InvoiceReminder []NotificationChannel `json:"invoice_reminder,omitempty"` - // Notification channels for expired invoices. - InvoiceExpired []NotificationChannel `json:"invoice_expired,omitempty"` // Notification channels for when an invoice is paid. InvoicePaid []NotificationChannel `json:"invoice_paid,omitempty"` } @@ -111,38 +109,6 @@ func (o *NotificationPreference) SetInvoiceReminder(v []NotificationChannel) { o.InvoiceReminder = v } -// GetInvoiceExpired returns the InvoiceExpired field value if set, zero value otherwise. -func (o *NotificationPreference) GetInvoiceExpired() []NotificationChannel { - if o == nil || utils.IsNil(o.InvoiceExpired) { - var ret []NotificationChannel - return ret - } - return o.InvoiceExpired -} - -// GetInvoiceExpiredOk returns a tuple with the InvoiceExpired field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *NotificationPreference) GetInvoiceExpiredOk() ([]NotificationChannel, bool) { - if o == nil || utils.IsNil(o.InvoiceExpired) { - return nil, false - } - return o.InvoiceExpired, true -} - -// HasInvoiceExpired returns a boolean if a field has been set. -func (o *NotificationPreference) HasInvoiceExpired() bool { - if o != nil && !utils.IsNil(o.InvoiceExpired) { - return true - } - - return false -} - -// SetInvoiceExpired gets a reference to the given []NotificationChannel and assigns it to the InvoiceExpired field. -func (o *NotificationPreference) SetInvoiceExpired(v []NotificationChannel) { - o.InvoiceExpired = v -} - // GetInvoicePaid returns the InvoicePaid field value if set, zero value otherwise. func (o *NotificationPreference) GetInvoicePaid() []NotificationChannel { if o == nil || utils.IsNil(o.InvoicePaid) { @@ -191,9 +157,6 @@ func (o NotificationPreference) ToMap() (map[string]interface{}, error) { if !utils.IsNil(o.InvoiceReminder) { toSerialize["invoice_reminder"] = o.InvoiceReminder } - if !utils.IsNil(o.InvoiceExpired) { - toSerialize["invoice_expired"] = o.InvoiceExpired - } if !utils.IsNil(o.InvoicePaid) { toSerialize["invoice_paid"] = o.InvoicePaid } diff --git a/invoice/model_paylater.go b/invoice/model_paylater.go index c1ce0252..67d356b3 100644 --- a/invoice/model_paylater.go +++ b/invoice/model_paylater.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_paylater_type.go b/invoice/model_paylater_type.go index 2cc23032..3bef2af2 100644 --- a/invoice/model_paylater_type.go +++ b/invoice/model_paylater_type.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_payment_details.go b/invoice/model_payment_details.go index d78027fc..8b478c7b 100644 --- a/invoice/model_payment_details.go +++ b/invoice/model_payment_details.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_qr_code.go b/invoice/model_qr_code.go index 9708a6b9..31093f6b 100644 --- a/invoice/model_qr_code.go +++ b/invoice/model_qr_code.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_qr_code_type.go b/invoice/model_qr_code_type.go index dec26368..ef79a653 100644 --- a/invoice/model_qr_code_type.go +++ b/invoice/model_qr_code_type.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_retail_outlet.go b/invoice/model_retail_outlet.go index e6a7a7b8..160bd545 100644 --- a/invoice/model_retail_outlet.go +++ b/invoice/model_retail_outlet.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_retail_outlet_name.go b/invoice/model_retail_outlet_name.go index ec192077..945aae46 100644 --- a/invoice/model_retail_outlet_name.go +++ b/invoice/model_retail_outlet_name.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_server_error.go b/invoice/model_server_error.go index 1dcc7117..cde4be9d 100644 --- a/invoice/model_server_error.go +++ b/invoice/model_server_error.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */ diff --git a/invoice/model_unauthorized_error.go b/invoice/model_unauthorized_error.go index 300e7739..1e14bd8c 100644 --- a/invoice/model_unauthorized_error.go +++ b/invoice/model_unauthorized_error.go @@ -3,7 +3,7 @@ xendit-invoice-service xendit-invoice-service descriptions -API version: 1.6.0 +API version: 1.7.6 */