diff --git a/README.md b/README.md index bd048a3c..c719f128 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.0.0 +* Package version: 4.1.0 # Getting Started diff --git a/client.go b/client.go index 73224f36..f8044064 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.0.0" + headerParams["xendit-lib-ver"] = "4.1.0" var body *bytes.Buffer diff --git a/configuration.go b/configuration.go index fcd026b0..d0238dc8 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.0.0/go", + UserAgent: "OpenAPI-Generator/4.1.0/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/InvoiceApi.md b/docs/InvoiceApi.md index 2df7f445..4982bf6e 100644 --- a/docs/InvoiceApi.md +++ b/docs/InvoiceApi.md @@ -352,7 +352,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also ### InvoiceCallback Object >Invoice Callback Object -Model Documentation: [InvoiceCallback](/InvoiceCallback.md) +Model Documentation: [InvoiceCallback](invoice/InvoiceCallback.md) #### Usage Example Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice ```go diff --git a/docs/PaymentMethodApi.md b/docs/PaymentMethodApi.md index 5077a779..74391400 100644 --- a/docs/PaymentMethodApi.md +++ b/docs/PaymentMethodApi.md @@ -668,7 +668,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also ### PaymentMethodCallback Object >Callback for active or expired E-Wallet or Direct Debit account linking, Virtual Accounts or QR strings -Model Documentation: [PaymentMethodCallback](/PaymentMethodCallback.md) +Model Documentation: [PaymentMethodCallback](payment_method/PaymentMethodCallback.md) #### Usage Example Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice ```go diff --git a/docs/PaymentRequestApi.md b/docs/PaymentRequestApi.md index c06d43ea..2b92fa38 100644 --- a/docs/PaymentRequestApi.md +++ b/docs/PaymentRequestApi.md @@ -544,7 +544,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also ### PaymentCallback Object >Callback for successful or failed payments made via the Payments API -Model Documentation: [PaymentCallback](/PaymentCallback.md) +Model Documentation: [PaymentCallback](payment_request/PaymentCallback.md) #### Usage Example Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice ```go diff --git a/docs/RefundApi.md b/docs/RefundApi.md index 378465fa..d73a26f3 100644 --- a/docs/RefundApi.md +++ b/docs/RefundApi.md @@ -329,7 +329,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also ### RefundCallback Object >Callback for successful or failed Refunds made via the Payments API -Model Documentation: [RefundCallback](/RefundCallback.md) +Model Documentation: [RefundCallback](refund/RefundCallback.md) #### Usage Example Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice ```go diff --git a/docs/invoice/EwalletType.md b/docs/invoice/EwalletType.md index bf507f98..cea88690 100644 --- a/docs/invoice/EwalletType.md +++ b/docs/invoice/EwalletType.md @@ -23,6 +23,16 @@ Representing the available eWallet channels used for invoice-related transaction * `JENIUSPAY` (value: `"JENIUSPAY"`) + * `MOMO` (value: `"MOMO"`) + + * `ZALOPAY` (value: `"ZALOPAY"`) + + * `VIETTELPAY` (value: `"VIETTELPAY"`) + + * `VNPTWALLET` (value: `"VNPTWALLET"`) + + * `APPOTA` (value: `"APPOTA"`) + * `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/payment_request/PaymentCallbackData.md b/docs/payment_request/PaymentCallbackData.md index 3527ecdf..63350c55 100644 --- a/docs/payment_request/PaymentCallbackData.md +++ b/docs/payment_request/PaymentCallbackData.md @@ -15,7 +15,7 @@ Represents the actual funds transaction/attempt made to a payment method | **PaymentMethod** | [**PaymentMethod**](PaymentMethod.md) | ☑️ | | | | **ChannelProperties** | Pointer to [**NullablePaymentRequestChannelProperties**](PaymentRequestChannelProperties.md) | | | | | **PaymentDetail** | Pointer to **map[string]interface{}** | | | | -| **FailureCode** | Pointer to **map[string]interface{}** | | | | +| **FailureCode** | Pointer to **NullableString** | | | | | **Created** | **string** | ☑️ | | | | **Updated** | **string** | ☑️ | | | | **Metadata** | Pointer to **map[string]interface{}** | | | | @@ -321,20 +321,20 @@ HasPaymentDetail returns a boolean if a field has been set. UnsetPaymentDetail ensures that no value is present for PaymentDetail, not even an explicit nil ### GetFailureCode -`func (o *PaymentCallbackData) GetFailureCode() map[string]interface{}` +`func (o *PaymentCallbackData) GetFailureCode() string` GetFailureCode returns the FailureCode field if non-nil, zero value otherwise. ### GetFailureCodeOk -`func (o *PaymentCallbackData) GetFailureCodeOk() (*map[string]interface{}, bool)` +`func (o *PaymentCallbackData) GetFailureCodeOk() (*string, bool)` GetFailureCodeOk returns a tuple with the FailureCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetFailureCode -`func (o *PaymentCallbackData) SetFailureCode(v map[string]interface{})` +`func (o *PaymentCallbackData) SetFailureCode(v string)` SetFailureCode sets FailureCode field to given value. diff --git a/docs/payment_request/QRCodeChannelCode.md b/docs/payment_request/QRCodeChannelCode.md index 2e89e061..c9d6375d 100644 --- a/docs/payment_request/QRCodeChannelCode.md +++ b/docs/payment_request/QRCodeChannelCode.md @@ -3,6 +3,8 @@ QR Code Channel Code ## Enum + * `QRIS` (value: `"QRIS"`) + * `DANA` (value: `"DANA"`) * `RCBC` (value: `"RCBC"`) diff --git a/docs/payment_request/VirtualAccountChannelCode.md b/docs/payment_request/VirtualAccountChannelCode.md index c5b806bf..6fa5a56e 100644 --- a/docs/payment_request/VirtualAccountChannelCode.md +++ b/docs/payment_request/VirtualAccountChannelCode.md @@ -35,6 +35,12 @@ Virtual Account Channel Code * `AMBANK` (value: `"AMBANK"`) + * `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/invoice/model_address_object.go b/invoice/model_address_object.go index d8411f4b..c042b0df 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_alternative_display_item.go b/invoice/model_alternative_display_item.go index 15852fe1..6613a674 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_bad_request_error.go b/invoice/model_bad_request_error.go index bc3209a8..20c5c5bb 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_bank.go b/invoice/model_bank.go index 512759e1..cd8f4b31 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_bank_code.go b/invoice/model_bank_code.go index decab1f2..2e33090b 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_create_invoice_request.go b/invoice/model_create_invoice_request.go index db00edeb..11b4689e 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_customer_object.go b/invoice/model_customer_object.go index 3c557c23..35480e73 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_direct_debit.go b/invoice/model_direct_debit.go index e779e93a..d60bca34 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_direct_debit_type.go b/invoice/model_direct_debit_type.go index fb73d8d9..4e2c662a 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_ewallet.go b/invoice/model_ewallet.go index c4919313..37d1938a 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_ewallet_type.go b/invoice/model_ewallet_type.go index 1068e6f9..b072a43a 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.5.0 +API version: 1.6.0 */ @@ -30,6 +30,11 @@ const ( EWALLETTYPE_ASTRAPAY EwalletType = "ASTRAPAY" EWALLETTYPE_NEXCASH EwalletType = "NEXCASH" EWALLETTYPE_JENIUSPAY EwalletType = "JENIUSPAY" + EWALLETTYPE_MOMO EwalletType = "MOMO" + EWALLETTYPE_ZALOPAY EwalletType = "ZALOPAY" + EWALLETTYPE_VIETTELPAY EwalletType = "VIETTELPAY" + EWALLETTYPE_VNPTWALLET EwalletType = "VNPTWALLET" + EWALLETTYPE_APPOTA EwalletType = "APPOTA" EWALLETTYPE_XENDIT_ENUM_DEFAULT_FALLBACK EwalletType = "UNKNOWN_ENUM_VALUE" ) @@ -45,6 +50,11 @@ var AllowedEwalletTypeEnumValues = []EwalletType{ "ASTRAPAY", "NEXCASH", "JENIUSPAY", + "MOMO", + "ZALOPAY", + "VIETTELPAY", + "VNPTWALLET", + "APPOTA", "UNKNOWN_ENUM_VALUE", } diff --git a/invoice/model_forbidden_error.go b/invoice/model_forbidden_error.go index 5e143bc1..d3379ef4 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_invoice.go b/invoice/model_invoice.go index e8e166e9..94df83ae 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_invoice_callback.go b/invoice/model_invoice_callback.go index 50cbd42b..94646f9d 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_invoice_callback_item.go b/invoice/model_invoice_callback_item.go index cb570bf0..abbb8912 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_invoice_client_type.go b/invoice/model_invoice_client_type.go index ae4745ee..a24d165b 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_invoice_currency.go b/invoice/model_invoice_currency.go index 9a9b4439..af7732ac 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_invoice_error404_response_definition.go b/invoice/model_invoice_error404_response_definition.go index f7a785fc..ff8f878c 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_invoice_fee.go b/invoice/model_invoice_fee.go index 7805a3ac..f0604e1a 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_invoice_item.go b/invoice/model_invoice_item.go index ef5fd25a..eee77d86 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_invoice_not_found_error.go b/invoice/model_invoice_not_found_error.go index 3d386a93..8d2db12a 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_invoice_payment_method.go b/invoice/model_invoice_payment_method.go index 2c6fcc22..1c633f5e 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_invoice_status.go b/invoice/model_invoice_status.go index 93e9da9e..76725c32 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_notification_channel.go b/invoice/model_notification_channel.go index ba5c6488..b536a9d2 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_notification_preference.go b/invoice/model_notification_preference.go index ab331ae5..67a9aeba 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_paylater.go b/invoice/model_paylater.go index 31eb390b..c1ce0252 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_paylater_type.go b/invoice/model_paylater_type.go index a66482ce..2cc23032 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_payment_details.go b/invoice/model_payment_details.go index ef0472d3..d78027fc 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_qr_code.go b/invoice/model_qr_code.go index bc3fa134..9708a6b9 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_qr_code_type.go b/invoice/model_qr_code_type.go index 9452849f..dec26368 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_retail_outlet.go b/invoice/model_retail_outlet.go index 37c777dc..e6a7a7b8 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_retail_outlet_name.go b/invoice/model_retail_outlet_name.go index 8d1c4a13..ec192077 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_server_error.go b/invoice/model_server_error.go index d93b0ad2..1dcc7117 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.5.0 +API version: 1.6.0 */ diff --git a/invoice/model_unauthorized_error.go b/invoice/model_unauthorized_error.go index 9fcca82c..300e7739 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.5.0 +API version: 1.6.0 */ diff --git a/payment_request/model_payment_callback_data.go b/payment_request/model_payment_callback_data.go index 7104d9f0..655874cb 100644 --- a/payment_request/model_payment_callback_data.go +++ b/payment_request/model_payment_callback_data.go @@ -31,7 +31,7 @@ type PaymentCallbackData struct { PaymentMethod PaymentMethod `json:"payment_method"` ChannelProperties NullablePaymentRequestChannelProperties `json:"channel_properties,omitempty"` PaymentDetail map[string]interface{} `json:"payment_detail,omitempty"` - FailureCode map[string]interface{} `json:"failure_code,omitempty"` + FailureCode NullableString `json:"failure_code,omitempty"` Created string `json:"created"` Updated string `json:"updated"` Metadata map[string]interface{} `json:"metadata,omitempty"` @@ -391,36 +391,45 @@ func (o *PaymentCallbackData) SetPaymentDetail(v map[string]interface{}) { } // GetFailureCode returns the FailureCode field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PaymentCallbackData) GetFailureCode() map[string]interface{} { - if o == nil { - var ret map[string]interface{} +func (o *PaymentCallbackData) GetFailureCode() string { + if o == nil || utils.IsNil(o.FailureCode.Get()) { + var ret string return ret } - return o.FailureCode + return *o.FailureCode.Get() } // GetFailureCodeOk returns a tuple with the FailureCode field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PaymentCallbackData) GetFailureCodeOk() (map[string]interface{}, bool) { - if o == nil || utils.IsNil(o.FailureCode) { - return map[string]interface{}{}, false +func (o *PaymentCallbackData) GetFailureCodeOk() (*string, bool) { + if o == nil { + return nil, false } - return o.FailureCode, true + return o.FailureCode.Get(), o.FailureCode.IsSet() } // HasFailureCode returns a boolean if a field has been set. func (o *PaymentCallbackData) HasFailureCode() bool { - if o != nil && utils.IsNil(o.FailureCode) { + if o != nil && o.FailureCode.IsSet() { return true } return false } -// SetFailureCode gets a reference to the given map[string]interface{} and assigns it to the FailureCode field. -func (o *PaymentCallbackData) SetFailureCode(v map[string]interface{}) { - o.FailureCode = v +// SetFailureCode gets a reference to the given NullableString and assigns it to the FailureCode field. +func (o *PaymentCallbackData) SetFailureCode(v string) { + o.FailureCode.Set(&v) +} +// SetFailureCodeNil sets the value for FailureCode to be an explicit nil +func (o *PaymentCallbackData) SetFailureCodeNil() { + o.FailureCode.Set(nil) +} + +// UnsetFailureCode ensures that no value is present for FailureCode, not even an explicit nil +func (o *PaymentCallbackData) UnsetFailureCode() { + o.FailureCode.Unset() } // GetCreated returns the Created field value @@ -533,8 +542,8 @@ func (o PaymentCallbackData) ToMap() (map[string]interface{}, error) { if o.PaymentDetail != nil { toSerialize["payment_detail"] = o.PaymentDetail } - if o.FailureCode != nil { - toSerialize["failure_code"] = o.FailureCode + if o.FailureCode.IsSet() { + toSerialize["failure_code"] = o.FailureCode.Get() } toSerialize["created"] = o.Created toSerialize["updated"] = o.Updated diff --git a/payment_request/model_qr_code_channel_code.go b/payment_request/model_qr_code_channel_code.go index 84ee19c0..15ecd9ad 100644 --- a/payment_request/model_qr_code_channel_code.go +++ b/payment_request/model_qr_code_channel_code.go @@ -20,6 +20,7 @@ type QRCodeChannelCode string // List of QRCodeChannelCode const ( + QRCODECHANNELCODE_QRIS QRCodeChannelCode = "QRIS" QRCODECHANNELCODE_DANA QRCodeChannelCode = "DANA" QRCODECHANNELCODE_RCBC QRCodeChannelCode = "RCBC" QRCODECHANNELCODE_LINKAJA QRCodeChannelCode = "LINKAJA" @@ -29,6 +30,7 @@ const ( // All allowed values of QRCodeChannelCode enum var AllowedQRCodeChannelCodeEnumValues = []QRCodeChannelCode{ + "QRIS", "DANA", "RCBC", "LINKAJA", diff --git a/payment_request/model_virtual_account_channel_code.go b/payment_request/model_virtual_account_channel_code.go index 189670ae..b001858e 100644 --- a/payment_request/model_virtual_account_channel_code.go +++ b/payment_request/model_virtual_account_channel_code.go @@ -36,6 +36,9 @@ const ( VIRTUALACCOUNTCHANNELCODE_MSB VirtualAccountChannelCode = "MSB" VIRTUALACCOUNTCHANNELCODE_STANDARD_CHARTERED VirtualAccountChannelCode = "STANDARD_CHARTERED" VIRTUALACCOUNTCHANNELCODE_AMBANK VirtualAccountChannelCode = "AMBANK" + VIRTUALACCOUNTCHANNELCODE_BNC VirtualAccountChannelCode = "BNC" + VIRTUALACCOUNTCHANNELCODE_HANA VirtualAccountChannelCode = "HANA" + VIRTUALACCOUNTCHANNELCODE_MUAMALAT VirtualAccountChannelCode = "MUAMALAT" VIRTUALACCOUNTCHANNELCODE_XENDIT_ENUM_DEFAULT_FALLBACK VirtualAccountChannelCode = "UNKNOWN_ENUM_VALUE" ) @@ -57,6 +60,9 @@ var AllowedVirtualAccountChannelCodeEnumValues = []VirtualAccountChannelCode{ "MSB", "STANDARD_CHARTERED", "AMBANK", + "BNC", + "HANA", + "MUAMALAT", "UNKNOWN_ENUM_VALUE", }