diff --git a/README.md b/README.md index efe7327..116a143 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: 5.0.0 +* Package version: 6.0.0 # Getting Started @@ -14,13 +14,13 @@ in applications written in Go. Install xendit-go with: ```shell -go get github.com/xendit/xendit-go/v5 +go get github.com/xendit/xendit-go/v6 ``` Put the package under your project folder and add the following in import: ```golang -import xendit "github.com/xendit/xendit-go/v5" +import xendit "github.com/xendit/xendit-go/v6" ``` To use a proxy, set the environment variable `HTTP_PROXY`: diff --git a/balance_and_transaction/api_balance.go b/balance_and_transaction/api_balance.go index c3777d6..2df8856 100644 --- a/balance_and_transaction/api_balance.go +++ b/balance_and_transaction/api_balance.go @@ -8,8 +8,8 @@ import ( "net/url" "strconv" - common "github.com/xendit/xendit-go/v5/common" - utils "github.com/xendit/xendit-go/v5/utils" + common "github.com/xendit/xendit-go/v6/common" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/balance_and_transaction/api_transaction.go b/balance_and_transaction/api_transaction.go index 9107db3..c374f4d 100644 --- a/balance_and_transaction/api_transaction.go +++ b/balance_and_transaction/api_transaction.go @@ -8,8 +8,8 @@ import ( "net/url" "strconv" - common "github.com/xendit/xendit-go/v5/common" - utils "github.com/xendit/xendit-go/v5/utils" + common "github.com/xendit/xendit-go/v6/common" + utils "github.com/xendit/xendit-go/v6/utils" "strings" "reflect" ) diff --git a/balance_and_transaction/model_balance.go b/balance_and_transaction/model_balance.go index f3991fb..124e914 100644 --- a/balance_and_transaction/model_balance.go +++ b/balance_and_transaction/model_balance.go @@ -12,7 +12,7 @@ package balance_and_transaction import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the Balance type satisfies the MappedNullable interface at compile time diff --git a/balance_and_transaction/model_date_range_filter.go b/balance_and_transaction/model_date_range_filter.go index 7ab713b..312f028 100644 --- a/balance_and_transaction/model_date_range_filter.go +++ b/balance_and_transaction/model_date_range_filter.go @@ -12,7 +12,7 @@ package balance_and_transaction import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/balance_and_transaction/model_fee_response.go b/balance_and_transaction/model_fee_response.go index bfd01f5..7994277 100644 --- a/balance_and_transaction/model_fee_response.go +++ b/balance_and_transaction/model_fee_response.go @@ -12,7 +12,7 @@ package balance_and_transaction import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the FeeResponse type satisfies the MappedNullable interface at compile time diff --git a/balance_and_transaction/model_link_item.go b/balance_and_transaction/model_link_item.go index a428ec3..d02fea1 100644 --- a/balance_and_transaction/model_link_item.go +++ b/balance_and_transaction/model_link_item.go @@ -12,7 +12,7 @@ package balance_and_transaction import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the LinkItem type satisfies the MappedNullable interface at compile time diff --git a/balance_and_transaction/model_server_error.go b/balance_and_transaction/model_server_error.go index 690c398..a71f6ac 100644 --- a/balance_and_transaction/model_server_error.go +++ b/balance_and_transaction/model_server_error.go @@ -12,7 +12,7 @@ package balance_and_transaction import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the ServerError type satisfies the MappedNullable interface at compile time diff --git a/balance_and_transaction/model_transaction_response.go b/balance_and_transaction/model_transaction_response.go index 2e3801c..e2267f6 100644 --- a/balance_and_transaction/model_transaction_response.go +++ b/balance_and_transaction/model_transaction_response.go @@ -12,7 +12,7 @@ package balance_and_transaction import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/balance_and_transaction/model_transactions_response.go b/balance_and_transaction/model_transactions_response.go index f0d35e1..b9e6741 100644 --- a/balance_and_transaction/model_transactions_response.go +++ b/balance_and_transaction/model_transactions_response.go @@ -12,7 +12,7 @@ package balance_and_transaction import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the TransactionsResponse type satisfies the MappedNullable interface at compile time diff --git a/balance_and_transaction/model_validation_error.go b/balance_and_transaction/model_validation_error.go index c606a9d..7fe457b 100644 --- a/balance_and_transaction/model_validation_error.go +++ b/balance_and_transaction/model_validation_error.go @@ -12,7 +12,7 @@ package balance_and_transaction import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the ValidationError type satisfies the MappedNullable interface at compile time diff --git a/client.go b/client.go index c16d504..0a65976 100644 --- a/client.go +++ b/client.go @@ -20,16 +20,16 @@ import ( "strings" "time" - common "github.com/xendit/xendit-go/v5/common" + common "github.com/xendit/xendit-go/v6/common" - invoice "github.com/xendit/xendit-go/v5/invoice" - paymentrequest "github.com/xendit/xendit-go/v5/payment_request" - paymentmethod "github.com/xendit/xendit-go/v5/payment_method" - refund "github.com/xendit/xendit-go/v5/refund" - balance "github.com/xendit/xendit-go/v5/balance_and_transaction" - transaction "github.com/xendit/xendit-go/v5/balance_and_transaction" - customer "github.com/xendit/xendit-go/v5/customer" - payout "github.com/xendit/xendit-go/v5/payout" + invoice "github.com/xendit/xendit-go/v6/invoice" + paymentrequest "github.com/xendit/xendit-go/v6/payment_request" + paymentmethod "github.com/xendit/xendit-go/v6/payment_method" + refund "github.com/xendit/xendit-go/v6/refund" + balance "github.com/xendit/xendit-go/v6/balance_and_transaction" + transaction "github.com/xendit/xendit-go/v6/balance_and_transaction" + customer "github.com/xendit/xendit-go/v6/customer" + payout "github.com/xendit/xendit-go/v6/payout" ) @@ -154,7 +154,7 @@ func (c *APIClient) PrepareRequest( headerParams["xendit-lib"] = "go" // TODO: overwrite this line from buddy pipeline - headerParams["xendit-lib-ver"] = "5.0.0" + headerParams["xendit-lib-ver"] = "6.0.0" var body *bytes.Buffer diff --git a/configuration.go b/configuration.go index 0f056a7..8efdf57 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/5.0.0/go", + UserAgent: "OpenAPI-Generator/6.0.0/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/customer/api_customer.go b/customer/api_customer.go index 4ef7004..f4188b5 100644 --- a/customer/api_customer.go +++ b/customer/api_customer.go @@ -8,8 +8,8 @@ import ( "net/url" "strconv" - common "github.com/xendit/xendit-go/v5/common" - utils "github.com/xendit/xendit-go/v5/utils" + common "github.com/xendit/xendit-go/v6/common" + utils "github.com/xendit/xendit-go/v6/utils" "strings" ) diff --git a/customer/model_account_bank.go b/customer/model_account_bank.go index cd4b254..e6934d8 100644 --- a/customer/model_account_bank.go +++ b/customer/model_account_bank.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the AccountBank type satisfies the MappedNullable interface at compile time diff --git a/customer/model_account_card.go b/customer/model_account_card.go index ca4715c..893ce88 100644 --- a/customer/model_account_card.go +++ b/customer/model_account_card.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the AccountCard type satisfies the MappedNullable interface at compile time diff --git a/customer/model_account_ewallet.go b/customer/model_account_ewallet.go index b280db3..fadbafc 100644 --- a/customer/model_account_ewallet.go +++ b/customer/model_account_ewallet.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the AccountEwallet type satisfies the MappedNullable interface at compile time diff --git a/customer/model_account_otc.go b/customer/model_account_otc.go index 2ac2527..79ddb5d 100644 --- a/customer/model_account_otc.go +++ b/customer/model_account_otc.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the AccountOTC type satisfies the MappedNullable interface at compile time diff --git a/customer/model_account_pay_later.go b/customer/model_account_pay_later.go index 7de0379..0761459 100644 --- a/customer/model_account_pay_later.go +++ b/customer/model_account_pay_later.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the AccountPayLater type satisfies the MappedNullable interface at compile time diff --git a/customer/model_account_qr_code.go b/customer/model_account_qr_code.go index 0e2850f..b422725 100644 --- a/customer/model_account_qr_code.go +++ b/customer/model_account_qr_code.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the AccountQRCode type satisfies the MappedNullable interface at compile time diff --git a/customer/model_address.go b/customer/model_address.go index 01db683..2dbe00c 100644 --- a/customer/model_address.go +++ b/customer/model_address.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/customer/model_address_request.go b/customer/model_address_request.go index b7f39f1..e6debc2 100644 --- a/customer/model_address_request.go +++ b/customer/model_address_request.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the AddressRequest type satisfies the MappedNullable interface at compile time diff --git a/customer/model_business_detail.go b/customer/model_business_detail.go index d657c62..02e059d 100644 --- a/customer/model_business_detail.go +++ b/customer/model_business_detail.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the BusinessDetail type satisfies the MappedNullable interface at compile time diff --git a/customer/model_create_customer_400_response.go b/customer/model_create_customer_400_response.go index 85bba86..193f198 100644 --- a/customer/model_create_customer_400_response.go +++ b/customer/model_create_customer_400_response.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CreateCustomer400Response type satisfies the MappedNullable interface at compile time diff --git a/customer/model_create_customer_400_response_all_of.go b/customer/model_create_customer_400_response_all_of.go index ea13111..b3d60b8 100644 --- a/customer/model_create_customer_400_response_all_of.go +++ b/customer/model_create_customer_400_response_all_of.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CreateCustomer400ResponseAllOf type satisfies the MappedNullable interface at compile time diff --git a/customer/model_customer.go b/customer/model_customer.go index 2ee5df7..80f2825 100644 --- a/customer/model_customer.go +++ b/customer/model_customer.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/customer/model_customer_request.go b/customer/model_customer_request.go index 2b00a25..ca02792 100644 --- a/customer/model_customer_request.go +++ b/customer/model_customer_request.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CustomerRequest type satisfies the MappedNullable interface at compile time diff --git a/customer/model_employment_detail.go b/customer/model_employment_detail.go index 8509909..cf2d61f 100644 --- a/customer/model_employment_detail.go +++ b/customer/model_employment_detail.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the EmploymentDetail type satisfies the MappedNullable interface at compile time diff --git a/customer/model_error.go b/customer/model_error.go index 51693cf..5709f62 100644 --- a/customer/model_error.go +++ b/customer/model_error.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the Error type satisfies the MappedNullable interface at compile time diff --git a/customer/model_get_customer_by_reference_id_200_response.go b/customer/model_get_customer_by_reference_id_200_response.go index 857daf1..8591fdb 100644 --- a/customer/model_get_customer_by_reference_id_200_response.go +++ b/customer/model_get_customer_by_reference_id_200_response.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the GetCustomerByReferenceID200Response type satisfies the MappedNullable interface at compile time diff --git a/customer/model_get_customer_by_reference_id_400_response.go b/customer/model_get_customer_by_reference_id_400_response.go index 25c5e39..a2da5d9 100644 --- a/customer/model_get_customer_by_reference_id_400_response.go +++ b/customer/model_get_customer_by_reference_id_400_response.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the GetCustomerByReferenceID400Response type satisfies the MappedNullable interface at compile time diff --git a/customer/model_get_customer_by_reference_id_400_response_all_of.go b/customer/model_get_customer_by_reference_id_400_response_all_of.go index e4aae5b..8df9e24 100644 --- a/customer/model_get_customer_by_reference_id_400_response_all_of.go +++ b/customer/model_get_customer_by_reference_id_400_response_all_of.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the GetCustomerByReferenceID400ResponseAllOf type satisfies the MappedNullable interface at compile time diff --git a/customer/model_identity_account_request.go b/customer/model_identity_account_request.go index 968c6fd..d5e788b 100644 --- a/customer/model_identity_account_request.go +++ b/customer/model_identity_account_request.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the IdentityAccountRequest type satisfies the MappedNullable interface at compile time diff --git a/customer/model_identity_account_response.go b/customer/model_identity_account_response.go index 0ad4842..5dff9e5 100644 --- a/customer/model_identity_account_response.go +++ b/customer/model_identity_account_response.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/customer/model_individual_detail.go b/customer/model_individual_detail.go index ece0c56..cb7f453 100644 --- a/customer/model_individual_detail.go +++ b/customer/model_individual_detail.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the IndividualDetail type satisfies the MappedNullable interface at compile time diff --git a/customer/model_kyc_document_request.go b/customer/model_kyc_document_request.go index 2361180..99b957c 100644 --- a/customer/model_kyc_document_request.go +++ b/customer/model_kyc_document_request.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the KYCDocumentRequest type satisfies the MappedNullable interface at compile time diff --git a/customer/model_kyc_document_response.go b/customer/model_kyc_document_response.go index 0687ebd..3e4943b 100644 --- a/customer/model_kyc_document_response.go +++ b/customer/model_kyc_document_response.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the KYCDocumentResponse type satisfies the MappedNullable interface at compile time diff --git a/customer/model_patch_customer.go b/customer/model_patch_customer.go index 4689b8c..8bbc5dd 100644 --- a/customer/model_patch_customer.go +++ b/customer/model_patch_customer.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PatchCustomer type satisfies the MappedNullable interface at compile time diff --git a/customer/model_response_data_not_found.go b/customer/model_response_data_not_found.go index 273cbf8..6eab93e 100644 --- a/customer/model_response_data_not_found.go +++ b/customer/model_response_data_not_found.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the ResponseDataNotFound type satisfies the MappedNullable interface at compile time diff --git a/customer/model_update_customer_400_response.go b/customer/model_update_customer_400_response.go index 03449fa..84b1673 100644 --- a/customer/model_update_customer_400_response.go +++ b/customer/model_update_customer_400_response.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the UpdateCustomer400Response type satisfies the MappedNullable interface at compile time diff --git a/customer/model_update_customer_400_response_all_of.go b/customer/model_update_customer_400_response_all_of.go index 5a57a5e..30d9bfa 100644 --- a/customer/model_update_customer_400_response_all_of.go +++ b/customer/model_update_customer_400_response_all_of.go @@ -12,7 +12,7 @@ package customer import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the UpdateCustomer400ResponseAllOf type satisfies the MappedNullable interface at compile time diff --git a/docs/BalanceApi.md b/docs/BalanceApi.md index c51f705..7aa3516 100644 --- a/docs/BalanceApi.md +++ b/docs/BalanceApi.md @@ -11,7 +11,7 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" + xendit "github.com/xendit/xendit-go/v6" ) func main() { @@ -65,8 +65,8 @@ import ( "fmt" "os" "time" - xendit "github.com/xendit/xendit-go/v5" - balance_and_transaction "github.com/xendit/xendit-go/v5/balance_and_transaction" + xendit "github.com/xendit/xendit-go/v6" + balance_and_transaction "github.com/xendit/xendit-go/v6/balance_and_transaction" ) func main() { diff --git a/docs/CustomerApi.md b/docs/CustomerApi.md index a349892..ba4209a 100644 --- a/docs/CustomerApi.md +++ b/docs/CustomerApi.md @@ -11,7 +11,7 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" + xendit "github.com/xendit/xendit-go/v6" ) func main() { @@ -66,8 +66,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - customer "github.com/xendit/xendit-go/v5/customer" + xendit "github.com/xendit/xendit-go/v6" + customer "github.com/xendit/xendit-go/v6/customer" ) func main() { @@ -141,8 +141,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - customer "github.com/xendit/xendit-go/v5/customer" + xendit "github.com/xendit/xendit-go/v6" + customer "github.com/xendit/xendit-go/v6/customer" ) func main() { @@ -207,8 +207,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - customer "github.com/xendit/xendit-go/v5/customer" + xendit "github.com/xendit/xendit-go/v6" + customer "github.com/xendit/xendit-go/v6/customer" ) func main() { @@ -279,8 +279,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - customer "github.com/xendit/xendit-go/v5/customer" + xendit "github.com/xendit/xendit-go/v6" + customer "github.com/xendit/xendit-go/v6/customer" ) func main() { diff --git a/docs/InvoiceApi.md b/docs/InvoiceApi.md index 15ad515..b5d4816 100644 --- a/docs/InvoiceApi.md +++ b/docs/InvoiceApi.md @@ -11,7 +11,7 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" + xendit "github.com/xendit/xendit-go/v6" ) func main() { @@ -63,8 +63,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - invoice "github.com/xendit/xendit-go/v5/invoice" + xendit "github.com/xendit/xendit-go/v6" + invoice "github.com/xendit/xendit-go/v6/invoice" ) func main() { @@ -131,8 +131,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - invoice "github.com/xendit/xendit-go/v5/invoice" + xendit "github.com/xendit/xendit-go/v6" + invoice "github.com/xendit/xendit-go/v6/invoice" ) func main() { @@ -209,8 +209,8 @@ import ( "fmt" "os" "time" - xendit "github.com/xendit/xendit-go/v5" - invoice "github.com/xendit/xendit-go/v5/invoice" + xendit "github.com/xendit/xendit-go/v6" + invoice "github.com/xendit/xendit-go/v6/invoice" ) func main() { @@ -316,8 +316,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - invoice "github.com/xendit/xendit-go/v5/invoice" + xendit "github.com/xendit/xendit-go/v6" + invoice "github.com/xendit/xendit-go/v6/invoice" ) func main() { @@ -384,8 +384,8 @@ import ( "encoding/json" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - invoice "github.com/xendit/xendit-go/v5/invoice" + xendit "github.com/xendit/xendit-go/v6" + invoice "github.com/xendit/xendit-go/v6/invoice" ) func main() { diff --git a/docs/PaymentMethodApi.md b/docs/PaymentMethodApi.md index 4b0ba5e..dcaeda4 100644 --- a/docs/PaymentMethodApi.md +++ b/docs/PaymentMethodApi.md @@ -11,7 +11,7 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" + xendit "github.com/xendit/xendit-go/v6" ) func main() { @@ -69,8 +69,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_method "github.com/xendit/xendit-go/v5/payment_method" + xendit "github.com/xendit/xendit-go/v6" + payment_method "github.com/xendit/xendit-go/v6/payment_method" ) func main() { @@ -138,8 +138,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_method "github.com/xendit/xendit-go/v5/payment_method" + xendit "github.com/xendit/xendit-go/v6" + payment_method "github.com/xendit/xendit-go/v6/payment_method" ) func main() { @@ -219,8 +219,8 @@ import ( "fmt" "os" "time" - xendit "github.com/xendit/xendit-go/v5" - payment_method "github.com/xendit/xendit-go/v5/payment_method" + xendit "github.com/xendit/xendit-go/v6" + payment_method "github.com/xendit/xendit-go/v6/payment_method" ) func main() { @@ -324,8 +324,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_method "github.com/xendit/xendit-go/v5/payment_method" + xendit "github.com/xendit/xendit-go/v6" + payment_method "github.com/xendit/xendit-go/v6/payment_method" ) func main() { @@ -399,8 +399,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_method "github.com/xendit/xendit-go/v5/payment_method" + xendit "github.com/xendit/xendit-go/v6" + payment_method "github.com/xendit/xendit-go/v6/payment_method" ) func main() { @@ -493,8 +493,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_method "github.com/xendit/xendit-go/v5/payment_method" + xendit "github.com/xendit/xendit-go/v6" + payment_method "github.com/xendit/xendit-go/v6/payment_method" ) func main() { @@ -565,8 +565,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_method "github.com/xendit/xendit-go/v5/payment_method" + xendit "github.com/xendit/xendit-go/v6" + payment_method "github.com/xendit/xendit-go/v6/payment_method" ) func main() { @@ -636,8 +636,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_method "github.com/xendit/xendit-go/v5/payment_method" + xendit "github.com/xendit/xendit-go/v6" + payment_method "github.com/xendit/xendit-go/v6/payment_method" ) func main() { @@ -721,8 +721,8 @@ import ( "encoding/json" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_method "github.com/xendit/xendit-go/v5/payment_method" + xendit "github.com/xendit/xendit-go/v6" + payment_method "github.com/xendit/xendit-go/v6/payment_method" ) func main() { diff --git a/docs/PaymentRequestApi.md b/docs/PaymentRequestApi.md index 8f7edea..a73ea86 100644 --- a/docs/PaymentRequestApi.md +++ b/docs/PaymentRequestApi.md @@ -11,7 +11,7 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" + xendit "github.com/xendit/xendit-go/v6" ) func main() { @@ -59,6 +59,7 @@ Parameters that are passed through a pointer to a apiCreatePaymentRequestRequest |-------------|:-------------:|:-------------:|-------------| | **idempotencyKey** |**string**| | | | **forUserId** |**string**| | | +| **withSplitRule** |**string**| | | | **paymentRequestParameters** |[**PaymentRequestParameters**](payment_request/PaymentRequestParameters.md)| | | ### Usage Example @@ -70,8 +71,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_request "github.com/xendit/xendit-go/v5/payment_request" + xendit "github.com/xendit/xendit-go/v6" + payment_request "github.com/xendit/xendit-go/v6/payment_request" ) func main() { @@ -80,6 +81,8 @@ func main() { forUserId := "5f9a3fbd571a1c4068aa40cf" // [OPTIONAL] | string + withSplitRule := "splitru_c676f55d-a9e0-47f2-b672-77564d57a40b" // [OPTIONAL] | string + paymentRequestParameters := *payment_request.NewPaymentRequestParameters(payment_request.PaymentRequestCurrency("IDR")) // [OPTIONAL] | PaymentRequestParameters xenditClient := xendit.NewClient("API-KEY") @@ -87,6 +90,7 @@ func main() { resp, r, err := xenditClient.PaymentRequestApi.CreatePaymentRequest(context.Background()). IdempotencyKey(idempotencyKey). ForUserId(forUserId). + WithSplitRule(withSplitRule). PaymentRequestParameters(paymentRequestParameters). // [OPTIONAL] Execute() @@ -142,8 +146,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_request "github.com/xendit/xendit-go/v5/payment_request" + xendit "github.com/xendit/xendit-go/v6" + payment_request "github.com/xendit/xendit-go/v6/payment_request" ) func main() { @@ -211,8 +215,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_request "github.com/xendit/xendit-go/v5/payment_request" + xendit "github.com/xendit/xendit-go/v6" + payment_request "github.com/xendit/xendit-go/v6/payment_request" ) func main() { @@ -283,8 +287,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_request "github.com/xendit/xendit-go/v5/payment_request" + xendit "github.com/xendit/xendit-go/v6" + payment_request "github.com/xendit/xendit-go/v6/payment_request" ) func main() { @@ -368,8 +372,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_request "github.com/xendit/xendit-go/v5/payment_request" + xendit "github.com/xendit/xendit-go/v6" + payment_request "github.com/xendit/xendit-go/v6/payment_request" ) func main() { @@ -440,8 +444,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_request "github.com/xendit/xendit-go/v5/payment_request" + xendit "github.com/xendit/xendit-go/v6" + payment_request "github.com/xendit/xendit-go/v6/payment_request" ) func main() { @@ -511,8 +515,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_request "github.com/xendit/xendit-go/v5/payment_request" + xendit "github.com/xendit/xendit-go/v6" + payment_request "github.com/xendit/xendit-go/v6/payment_request" ) func main() { @@ -578,8 +582,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_request "github.com/xendit/xendit-go/v5/payment_request" + xendit "github.com/xendit/xendit-go/v6" + payment_request "github.com/xendit/xendit-go/v6/payment_request" ) func main() { @@ -680,8 +684,8 @@ import ( "encoding/json" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payment_request "github.com/xendit/xendit-go/v5/payment_request" + xendit "github.com/xendit/xendit-go/v6" + payment_request "github.com/xendit/xendit-go/v6/payment_request" ) func main() { diff --git a/docs/PayoutApi.md b/docs/PayoutApi.md index 458cd49..fcbcbc0 100644 --- a/docs/PayoutApi.md +++ b/docs/PayoutApi.md @@ -11,7 +11,7 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" + xendit "github.com/xendit/xendit-go/v6" ) func main() { @@ -65,8 +65,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payout "github.com/xendit/xendit-go/v5/payout" + xendit "github.com/xendit/xendit-go/v6" + payout "github.com/xendit/xendit-go/v6/payout" ) func main() { @@ -140,8 +140,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payout "github.com/xendit/xendit-go/v5/payout" + xendit "github.com/xendit/xendit-go/v6" + payout "github.com/xendit/xendit-go/v6/payout" ) func main() { @@ -208,8 +208,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payout "github.com/xendit/xendit-go/v5/payout" + xendit "github.com/xendit/xendit-go/v6" + payout "github.com/xendit/xendit-go/v6/payout" ) func main() { @@ -286,8 +286,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payout "github.com/xendit/xendit-go/v5/payout" + xendit "github.com/xendit/xendit-go/v6" + payout "github.com/xendit/xendit-go/v6/payout" ) func main() { @@ -369,8 +369,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - payout "github.com/xendit/xendit-go/v5/payout" + xendit "github.com/xendit/xendit-go/v6" + payout "github.com/xendit/xendit-go/v6/payout" ) func main() { diff --git a/docs/RefundApi.md b/docs/RefundApi.md index 2c1c8d6..5f48d49 100644 --- a/docs/RefundApi.md +++ b/docs/RefundApi.md @@ -11,7 +11,7 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" + xendit "github.com/xendit/xendit-go/v6" ) func main() { @@ -64,8 +64,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - refund "github.com/xendit/xendit-go/v5/refund" + xendit "github.com/xendit/xendit-go/v6" + refund "github.com/xendit/xendit-go/v6/refund" ) func main() { @@ -135,8 +135,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - refund "github.com/xendit/xendit-go/v5/refund" + xendit "github.com/xendit/xendit-go/v6" + refund "github.com/xendit/xendit-go/v6/refund" ) func main() { @@ -206,8 +206,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - refund "github.com/xendit/xendit-go/v5/refund" + xendit "github.com/xendit/xendit-go/v6" + refund "github.com/xendit/xendit-go/v6/refund" ) func main() { @@ -292,8 +292,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - refund "github.com/xendit/xendit-go/v5/refund" + xendit "github.com/xendit/xendit-go/v6" + refund "github.com/xendit/xendit-go/v6/refund" ) func main() { @@ -365,8 +365,8 @@ import ( "encoding/json" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - refund "github.com/xendit/xendit-go/v5/refund" + xendit "github.com/xendit/xendit-go/v6" + refund "github.com/xendit/xendit-go/v6/refund" ) func main() { diff --git a/docs/TransactionApi.md b/docs/TransactionApi.md index bc5430d..fa4be68 100644 --- a/docs/TransactionApi.md +++ b/docs/TransactionApi.md @@ -11,7 +11,7 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" + xendit "github.com/xendit/xendit-go/v6" ) func main() { @@ -67,8 +67,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - balance_and_transaction "github.com/xendit/xendit-go/v5/balance_and_transaction" + xendit "github.com/xendit/xendit-go/v6" + balance_and_transaction "github.com/xendit/xendit-go/v6/balance_and_transaction" ) func main() { @@ -146,8 +146,8 @@ import ( "context" "fmt" "os" - xendit "github.com/xendit/xendit-go/v5" - balance_and_transaction "github.com/xendit/xendit-go/v5/balance_and_transaction" + xendit "github.com/xendit/xendit-go/v6" + balance_and_transaction "github.com/xendit/xendit-go/v6/balance_and_transaction" ) func main() { diff --git a/docs/payment_method/CardChannelCode.md b/docs/payment_method/CardChannelCode.md index d9746fa..67c5302 100644 --- a/docs/payment_method/CardChannelCode.md +++ b/docs/payment_method/CardChannelCode.md @@ -3,8 +3,20 @@ Card Channel Code ## Enum + * `BAY_CARD_INSTALLMENT` (value: `"BAY_CARD_INSTALLMENT"`) + + * `BBL_CARD_INSTALLMENT` (value: `"BBL_CARD_INSTALLMENT"`) + * `GPN` (value: `"GPN"`) + * `KBANK_CARD_INSTALLMENT` (value: `"KBANK_CARD_INSTALLMENT"`) + + * `KTB_CARD_INSTALLMENT` (value: `"KTB_CARD_INSTALLMENT"`) + + * `SCB_CARD_INSTALLMENT` (value: `"SCB_CARD_INSTALLMENT"`) + + * `TTB_CARD_INSTALLMENT` (value: `"TTB_CARD_INSTALLMENT"`) + * `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_method/CardChannelProperties.md b/docs/payment_method/CardChannelProperties.md index 5a4374c..3f01b23 100644 --- a/docs/payment_method/CardChannelProperties.md +++ b/docs/payment_method/CardChannelProperties.md @@ -9,6 +9,8 @@ Card Channel Properties | **FailureReturnUrl** | Pointer to **NullableString** | | URL where the end-customer is redirected if the authorization failed | | | **CardonfileType** | Pointer to **NullableString** | | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | | | **ExpiresAt** | Pointer to **time.Time** | | | | +| **InstallmentConfiguration** | Pointer to [**NullableCardInstallmentConfiguration**](CardInstallmentConfiguration.md) | | | | +| **MerchantIdTag** | Pointer to **string** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | | ## Methods @@ -194,6 +196,66 @@ SetExpiresAt sets ExpiresAt field to given value. HasExpiresAt returns a boolean if a field has been set. +### GetInstallmentConfiguration + +`func (o *CardChannelProperties) GetInstallmentConfiguration() CardInstallmentConfiguration` + +GetInstallmentConfiguration returns the InstallmentConfiguration field if non-nil, zero value otherwise. + +### GetInstallmentConfigurationOk + +`func (o *CardChannelProperties) GetInstallmentConfigurationOk() (*CardInstallmentConfiguration, bool)` + +GetInstallmentConfigurationOk returns a tuple with the InstallmentConfiguration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstallmentConfiguration + +`func (o *CardChannelProperties) SetInstallmentConfiguration(v CardInstallmentConfiguration)` + +SetInstallmentConfiguration sets InstallmentConfiguration field to given value. + +### HasInstallmentConfiguration + +`func (o *CardChannelProperties) HasInstallmentConfiguration() bool` + +HasInstallmentConfiguration returns a boolean if a field has been set. + +### SetInstallmentConfigurationNil + +`func (o *CardChannelProperties) SetInstallmentConfigurationNil(b bool)` + + SetInstallmentConfigurationNil sets the value for InstallmentConfiguration to be an explicit nil + +### UnsetInstallmentConfiguration +`func (o *CardChannelProperties) UnsetInstallmentConfiguration()` + +UnsetInstallmentConfiguration ensures that no value is present for InstallmentConfiguration, not even an explicit nil +### GetMerchantIdTag + +`func (o *CardChannelProperties) GetMerchantIdTag() string` + +GetMerchantIdTag returns the MerchantIdTag field if non-nil, zero value otherwise. + +### GetMerchantIdTagOk + +`func (o *CardChannelProperties) GetMerchantIdTagOk() (*string, bool)` + +GetMerchantIdTagOk returns a tuple with the MerchantIdTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantIdTag + +`func (o *CardChannelProperties) SetMerchantIdTag(v string)` + +SetMerchantIdTag sets MerchantIdTag field to given value. + +### HasMerchantIdTag + +`func (o *CardChannelProperties) HasMerchantIdTag() bool` + +HasMerchantIdTag returns a boolean if a field has been set. + [[Back to README]](../../README.md) diff --git a/docs/payment_method/CardInstallmentConfiguration.md b/docs/payment_method/CardInstallmentConfiguration.md new file mode 100644 index 0000000..c521fa9 --- /dev/null +++ b/docs/payment_method/CardInstallmentConfiguration.md @@ -0,0 +1,118 @@ +# CardInstallmentConfiguration +Card Installment Configuration + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **Terms** | Pointer to **int32** | | | | +| **Interval** | Pointer to **string** | | | | +| **Code** | Pointer to **NullableString** | | | | + +## Methods + +### NewCardInstallmentConfiguration + +`func NewCardInstallmentConfiguration() *CardInstallmentConfiguration` + +NewCardInstallmentConfiguration instantiates a new CardInstallmentConfiguration 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 + +### NewCardInstallmentConfigurationWithDefaults + +`func NewCardInstallmentConfigurationWithDefaults() *CardInstallmentConfiguration` + +NewCardInstallmentConfigurationWithDefaults instantiates a new CardInstallmentConfiguration 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 + +### GetTerms + +`func (o *CardInstallmentConfiguration) GetTerms() int32` + +GetTerms returns the Terms field if non-nil, zero value otherwise. + +### GetTermsOk + +`func (o *CardInstallmentConfiguration) GetTermsOk() (*int32, bool)` + +GetTermsOk returns a tuple with the Terms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerms + +`func (o *CardInstallmentConfiguration) SetTerms(v int32)` + +SetTerms sets Terms field to given value. + +### HasTerms + +`func (o *CardInstallmentConfiguration) HasTerms() bool` + +HasTerms returns a boolean if a field has been set. + +### GetInterval + +`func (o *CardInstallmentConfiguration) GetInterval() string` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *CardInstallmentConfiguration) GetIntervalOk() (*string, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *CardInstallmentConfiguration) SetInterval(v string)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *CardInstallmentConfiguration) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### GetCode + +`func (o *CardInstallmentConfiguration) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *CardInstallmentConfiguration) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *CardInstallmentConfiguration) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *CardInstallmentConfiguration) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *CardInstallmentConfiguration) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *CardInstallmentConfiguration) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/DirectDebitChannelCode.md b/docs/payment_method/DirectDebitChannelCode.md index debb04e..122ebe9 100644 --- a/docs/payment_method/DirectDebitChannelCode.md +++ b/docs/payment_method/DirectDebitChannelCode.md @@ -11,13 +11,11 @@ Direct Debit Channel Code * `BPI` (value: `"BPI"`) - * `AUTODEBIT_BPI` (value: `"AUTODEBIT_BPI"`) - * `BPI_RECURRING` (value: `"BPI_RECURRING"`) * `BRI` (value: `"BRI"`) - * `BNI` (value: `"BNI"`) + * `BNI_AUTOPAY` (value: `"BNI_AUTOPAY"`) * `CHINABANK` (value: `"CHINABANK"`) @@ -51,7 +49,7 @@ Direct Debit Channel Code * `BDO_EPAY` (value: `"BDO_EPAY"`) - * `AUTODEBIT_UBP` (value: `"AUTODEBIT_UBP"`) + * `UBP_EADA` (value: `"UBP_EADA"`) * `UBP_DEBIT_PULL` (value: `"UBP_DEBIT_PULL"`) @@ -135,6 +133,60 @@ Direct Debit Channel Code * `UOB_FPX_BUSINESS` (value: `"UOB_FPX_BUSINESS"`) + * `BDO_ONLINE_BANKING` (value: `"BDO_ONLINE_BANKING"`) + + * `BPI_ONLINE_BANKING` (value: `"BPI_ONLINE_BANKING"`) + + * `UNIONBANK_ONLINE_BANKING` (value: `"UNIONBANK_ONLINE_BANKING"`) + + * `BOC_ONLINE_BANKING` (value: `"BOC_ONLINE_BANKING"`) + + * `CHINABANK_ONLINE_BANKING` (value: `"CHINABANK_ONLINE_BANKING"`) + + * `INSTAPAY_ONLINE_BANKING` (value: `"INSTAPAY_ONLINE_BANKING"`) + + * `LANDBANK_ONLINE_BANKING` (value: `"LANDBANK_ONLINE_BANKING"`) + + * `MAYBANK_ONLINE_BANKING` (value: `"MAYBANK_ONLINE_BANKING"`) + + * `METROBANK_ONLINE_BANKING` (value: `"METROBANK_ONLINE_BANKING"`) + + * `PNB_ONLINE_BANKING` (value: `"PNB_ONLINE_BANKING"`) + + * `PSBANK_ONLINE_BANKING` (value: `"PSBANK_ONLINE_BANKING"`) + + * `PESONET_ONLINE_BANKING` (value: `"PESONET_ONLINE_BANKING"`) + + * `RCBC_ONLINE_BANKING` (value: `"RCBC_ONLINE_BANKING"`) + + * `ROBINSONS_BANK_ONLINE_BANKING` (value: `"ROBINSONS_BANK_ONLINE_BANKING"`) + + * `SECURITY_BANK_ONLINE_BANKING` (value: `"SECURITY_BANK_ONLINE_BANKING"`) + + * `AUTODEBIT_UBP` (value: `"AUTODEBIT_UBP"`) + + * `AUTODEBIT_BPI` (value: `"AUTODEBIT_BPI"`) + + * `GBW_BBL_MOBILE_BANKING` (value: `"GBW_BBL_MOBILE_BANKING"`) + + * `GBW_KBANK_MOBILE_BANKING` (value: `"GBW_KBANK_MOBILE_BANKING"`) + + * `GBW_KTB_MOBILE_BANKING` (value: `"GBW_KTB_MOBILE_BANKING"`) + + * `GBW_SCB_MOBILE_BANKING` (value: `"GBW_SCB_MOBILE_BANKING"`) + + * `GBW_BAY_MOBILE_BANKING` (value: `"GBW_BAY_MOBILE_BANKING"`) + + * `GBW_BBL` (value: `"GBW_BBL"`) + + * `GBW_KBANK` (value: `"GBW_KBANK"`) + + * `GBW_KTB` (value: `"GBW_KTB"`) + + * `GBW_SCB` (value: `"GBW_SCB"`) + + * `GBW_BAY` (value: `"GBW_BAY"`) + * `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_method/DirectDebitChannelProperties.md b/docs/payment_method/DirectDebitChannelProperties.md index 823e571..bb7bf75 100644 --- a/docs/payment_method/DirectDebitChannelProperties.md +++ b/docs/payment_method/DirectDebitChannelProperties.md @@ -13,6 +13,7 @@ Direct Debit Channel Properties | **IdentityDocumentNumber** | Pointer to **NullableString** | | Identity number of the customer registered to the partner channel | | | **RequireAuth** | Pointer to **NullableBool** | | | | | **AccountNumber** | Pointer to **NullableString** | | Account number of the customer | | +| **DestinationAccountId** | Pointer to **NullableString** | | Destination Account ID for BaaS topups | | ## Methods @@ -338,6 +339,41 @@ HasAccountNumber returns a boolean if a field has been set. `func (o *DirectDebitChannelProperties) UnsetAccountNumber()` UnsetAccountNumber ensures that no value is present for AccountNumber, not even an explicit nil +### GetDestinationAccountId + +`func (o *DirectDebitChannelProperties) GetDestinationAccountId() string` + +GetDestinationAccountId returns the DestinationAccountId field if non-nil, zero value otherwise. + +### GetDestinationAccountIdOk + +`func (o *DirectDebitChannelProperties) GetDestinationAccountIdOk() (*string, bool)` + +GetDestinationAccountIdOk returns a tuple with the DestinationAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDestinationAccountId + +`func (o *DirectDebitChannelProperties) SetDestinationAccountId(v string)` + +SetDestinationAccountId sets DestinationAccountId field to given value. + +### HasDestinationAccountId + +`func (o *DirectDebitChannelProperties) HasDestinationAccountId() bool` + +HasDestinationAccountId returns a boolean if a field has been set. + +### SetDestinationAccountIdNil + +`func (o *DirectDebitChannelProperties) SetDestinationAccountIdNil(b bool)` + + SetDestinationAccountIdNil sets the value for DestinationAccountId to be an explicit nil + +### UnsetDestinationAccountId +`func (o *DirectDebitChannelProperties) UnsetDestinationAccountId()` + +UnsetDestinationAccountId ensures that no value is present for DestinationAccountId, not even an explicit nil [[Back to README]](../../README.md) diff --git a/docs/payment_method/EWalletChannelProperties.md b/docs/payment_method/EWalletChannelProperties.md index 3771818..8f96d0a 100644 --- a/docs/payment_method/EWalletChannelProperties.md +++ b/docs/payment_method/EWalletChannelProperties.md @@ -6,11 +6,12 @@ EWallet Channel Properties |------------|:-------------:|:-------------:|-------------|:-------------:| | **SuccessReturnUrl** | Pointer to **string** | | URL where the end-customer is redirected if the authorization is successful | | | **FailureReturnUrl** | Pointer to **string** | | URL where the end-customer is redirected if the authorization failed | | -| **CancelReturnUrl** | Pointer to **string** | | URL where the end-customer is redirected if the authorization cancelled | | | **PendingReturnUrl** | Pointer to **string** | | URL where the end-customer is redirected if the authorization is pending | | +| **CancelReturnUrl** | Pointer to **string** | | URL where the end-customer is redirected if the authorization cancelled | | | **MobileNumber** | Pointer to **string** | | Mobile number of customer in E.164 format (e.g. +628123123123). For OVO one time payment use only. | | | **RedeemPoints** | Pointer to **string** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | | | **Cashtag** | Pointer to **string** | | Available for JENIUSPAY only | | +| **PromotionLabel** | Pointer to **string** | | Available only for OVO | | ## Methods @@ -81,55 +82,55 @@ SetFailureReturnUrl sets FailureReturnUrl field to given value. HasFailureReturnUrl returns a boolean if a field has been set. -### GetCancelReturnUrl +### GetPendingReturnUrl -`func (o *EWalletChannelProperties) GetCancelReturnUrl() string` +`func (o *EWalletChannelProperties) GetPendingReturnUrl() string` -GetCancelReturnUrl returns the CancelReturnUrl field if non-nil, zero value otherwise. +GetPendingReturnUrl returns the PendingReturnUrl field if non-nil, zero value otherwise. -### GetCancelReturnUrlOk +### GetPendingReturnUrlOk -`func (o *EWalletChannelProperties) GetCancelReturnUrlOk() (*string, bool)` +`func (o *EWalletChannelProperties) GetPendingReturnUrlOk() (*string, bool)` -GetCancelReturnUrlOk returns a tuple with the CancelReturnUrl field if it's non-nil, zero value otherwise +GetPendingReturnUrlOk returns a tuple with the PendingReturnUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetCancelReturnUrl +### SetPendingReturnUrl -`func (o *EWalletChannelProperties) SetCancelReturnUrl(v string)` +`func (o *EWalletChannelProperties) SetPendingReturnUrl(v string)` -SetCancelReturnUrl sets CancelReturnUrl field to given value. +SetPendingReturnUrl sets PendingReturnUrl field to given value. -### HasCancelReturnUrl +### HasPendingReturnUrl -`func (o *EWalletChannelProperties) HasCancelReturnUrl() bool` +`func (o *EWalletChannelProperties) HasPendingReturnUrl() bool` -HasCancelReturnUrl returns a boolean if a field has been set. +HasPendingReturnUrl returns a boolean if a field has been set. -### GetPendingReturnUrl +### GetCancelReturnUrl -`func (o *EWalletChannelProperties) GetPendingReturnUrl() string` +`func (o *EWalletChannelProperties) GetCancelReturnUrl() string` -GetPendingReturnUrl returns the PendingReturnUrl field if non-nil, zero value otherwise. +GetCancelReturnUrl returns the CancelReturnUrl field if non-nil, zero value otherwise. -### GetPendingReturnUrlOk +### GetCancelReturnUrlOk -`func (o *EWalletChannelProperties) GetPendingReturnUrlOk() (*string, bool)` +`func (o *EWalletChannelProperties) GetCancelReturnUrlOk() (*string, bool)` -GetPendingReturnUrlOk returns a tuple with the PendingReturnUrl field if it's non-nil, zero value otherwise +GetCancelReturnUrlOk returns a tuple with the CancelReturnUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPendingReturnUrl +### SetCancelReturnUrl -`func (o *EWalletChannelProperties) SetPendingReturnUrl(v string)` +`func (o *EWalletChannelProperties) SetCancelReturnUrl(v string)` -SetPendingReturnUrl sets PendingReturnUrl field to given value. +SetCancelReturnUrl sets CancelReturnUrl field to given value. -### HasPendingReturnUrl +### HasCancelReturnUrl -`func (o *EWalletChannelProperties) HasPendingReturnUrl() bool` +`func (o *EWalletChannelProperties) HasCancelReturnUrl() bool` -HasPendingReturnUrl returns a boolean if a field has been set. +HasCancelReturnUrl returns a boolean if a field has been set. ### GetMobileNumber @@ -206,6 +207,31 @@ SetCashtag sets Cashtag field to given value. HasCashtag returns a boolean if a field has been set. +### GetPromotionLabel + +`func (o *EWalletChannelProperties) GetPromotionLabel() string` + +GetPromotionLabel returns the PromotionLabel field if non-nil, zero value otherwise. + +### GetPromotionLabelOk + +`func (o *EWalletChannelProperties) GetPromotionLabelOk() (*string, bool)` + +GetPromotionLabelOk returns a tuple with the PromotionLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPromotionLabel + +`func (o *EWalletChannelProperties) SetPromotionLabel(v string)` + +SetPromotionLabel sets PromotionLabel field to given value. + +### HasPromotionLabel + +`func (o *EWalletChannelProperties) HasPromotionLabel() bool` + +HasPromotionLabel returns a boolean if a field has been set. + [[Back to README]](../../README.md) diff --git a/docs/payment_method/QRCodeChannelCode.md b/docs/payment_method/QRCodeChannelCode.md index 9082775..2ac64ca 100644 --- a/docs/payment_method/QRCodeChannelCode.md +++ b/docs/payment_method/QRCodeChannelCode.md @@ -15,6 +15,8 @@ QR Code Channel Code * `XENDIT` (value: `"XENDIT"`) + * `QRPH` (value: `"QRPH"`) + * `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_method/VirtualAccountChannelCode.md b/docs/payment_method/VirtualAccountChannelCode.md index 6fa5a56..bf93b33 100644 --- a/docs/payment_method/VirtualAccountChannelCode.md +++ b/docs/payment_method/VirtualAccountChannelCode.md @@ -31,16 +31,26 @@ Virtual Account Channel Code * `MSB` (value: `"MSB"`) + * `VPB` (value: `"VPB"`) + + * `BIDV` (value: `"BIDV"`) + + * `CAKE` (value: `"CAKE"`) + * `STANDARD_CHARTERED` (value: `"STANDARD_CHARTERED"`) * `AMBANK` (value: `"AMBANK"`) + * `UOB` (value: `"UOB"`) + * `BNC` (value: `"BNC"`) * `HANA` (value: `"HANA"`) * `MUAMALAT` (value: `"MUAMALAT"`) + * `BANK_TRANSFER` (value: `"BANK_TRANSFER"`) + * `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/CardChannelCode.md b/docs/payment_request/CardChannelCode.md index d9746fa..67c5302 100644 --- a/docs/payment_request/CardChannelCode.md +++ b/docs/payment_request/CardChannelCode.md @@ -3,8 +3,20 @@ Card Channel Code ## Enum + * `BAY_CARD_INSTALLMENT` (value: `"BAY_CARD_INSTALLMENT"`) + + * `BBL_CARD_INSTALLMENT` (value: `"BBL_CARD_INSTALLMENT"`) + * `GPN` (value: `"GPN"`) + * `KBANK_CARD_INSTALLMENT` (value: `"KBANK_CARD_INSTALLMENT"`) + + * `KTB_CARD_INSTALLMENT` (value: `"KTB_CARD_INSTALLMENT"`) + + * `SCB_CARD_INSTALLMENT` (value: `"SCB_CARD_INSTALLMENT"`) + + * `TTB_CARD_INSTALLMENT` (value: `"TTB_CARD_INSTALLMENT"`) + * `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/CardChannelProperties.md b/docs/payment_request/CardChannelProperties.md index 02df524..8b8a78d 100644 --- a/docs/payment_request/CardChannelProperties.md +++ b/docs/payment_request/CardChannelProperties.md @@ -10,6 +10,8 @@ Card Channel Properties | **CardonfileType** | Pointer to **NullableString** | | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | | | **MerchantIdTag** | Pointer to **string** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | | | **ExpiresAt** | Pointer to **time.Time** | | | | +| **InstallmentConfiguration** | Pointer to [**NullableCardInstallmentConfiguration**](CardInstallmentConfiguration.md) | | | | +| **SkipAuthorization** | Pointer to **bool** | | To indicate whether to skip the authorization phase | | ## Methods @@ -220,6 +222,66 @@ SetExpiresAt sets ExpiresAt field to given value. HasExpiresAt returns a boolean if a field has been set. +### GetInstallmentConfiguration + +`func (o *CardChannelProperties) GetInstallmentConfiguration() CardInstallmentConfiguration` + +GetInstallmentConfiguration returns the InstallmentConfiguration field if non-nil, zero value otherwise. + +### GetInstallmentConfigurationOk + +`func (o *CardChannelProperties) GetInstallmentConfigurationOk() (*CardInstallmentConfiguration, bool)` + +GetInstallmentConfigurationOk returns a tuple with the InstallmentConfiguration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstallmentConfiguration + +`func (o *CardChannelProperties) SetInstallmentConfiguration(v CardInstallmentConfiguration)` + +SetInstallmentConfiguration sets InstallmentConfiguration field to given value. + +### HasInstallmentConfiguration + +`func (o *CardChannelProperties) HasInstallmentConfiguration() bool` + +HasInstallmentConfiguration returns a boolean if a field has been set. + +### SetInstallmentConfigurationNil + +`func (o *CardChannelProperties) SetInstallmentConfigurationNil(b bool)` + + SetInstallmentConfigurationNil sets the value for InstallmentConfiguration to be an explicit nil + +### UnsetInstallmentConfiguration +`func (o *CardChannelProperties) UnsetInstallmentConfiguration()` + +UnsetInstallmentConfiguration ensures that no value is present for InstallmentConfiguration, not even an explicit nil +### GetSkipAuthorization + +`func (o *CardChannelProperties) GetSkipAuthorization() bool` + +GetSkipAuthorization returns the SkipAuthorization field if non-nil, zero value otherwise. + +### GetSkipAuthorizationOk + +`func (o *CardChannelProperties) GetSkipAuthorizationOk() (*bool, bool)` + +GetSkipAuthorizationOk returns a tuple with the SkipAuthorization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkipAuthorization + +`func (o *CardChannelProperties) SetSkipAuthorization(v bool)` + +SetSkipAuthorization sets SkipAuthorization field to given value. + +### HasSkipAuthorization + +`func (o *CardChannelProperties) HasSkipAuthorization() bool` + +HasSkipAuthorization returns a boolean if a field has been set. + [[Back to README]](../../README.md) diff --git a/docs/payment_request/CardInstallmentConfiguration.md b/docs/payment_request/CardInstallmentConfiguration.md new file mode 100644 index 0000000..c521fa9 --- /dev/null +++ b/docs/payment_request/CardInstallmentConfiguration.md @@ -0,0 +1,118 @@ +# CardInstallmentConfiguration +Card Installment Configuration + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **Terms** | Pointer to **int32** | | | | +| **Interval** | Pointer to **string** | | | | +| **Code** | Pointer to **NullableString** | | | | + +## Methods + +### NewCardInstallmentConfiguration + +`func NewCardInstallmentConfiguration() *CardInstallmentConfiguration` + +NewCardInstallmentConfiguration instantiates a new CardInstallmentConfiguration 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 + +### NewCardInstallmentConfigurationWithDefaults + +`func NewCardInstallmentConfigurationWithDefaults() *CardInstallmentConfiguration` + +NewCardInstallmentConfigurationWithDefaults instantiates a new CardInstallmentConfiguration 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 + +### GetTerms + +`func (o *CardInstallmentConfiguration) GetTerms() int32` + +GetTerms returns the Terms field if non-nil, zero value otherwise. + +### GetTermsOk + +`func (o *CardInstallmentConfiguration) GetTermsOk() (*int32, bool)` + +GetTermsOk returns a tuple with the Terms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerms + +`func (o *CardInstallmentConfiguration) SetTerms(v int32)` + +SetTerms sets Terms field to given value. + +### HasTerms + +`func (o *CardInstallmentConfiguration) HasTerms() bool` + +HasTerms returns a boolean if a field has been set. + +### GetInterval + +`func (o *CardInstallmentConfiguration) GetInterval() string` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *CardInstallmentConfiguration) GetIntervalOk() (*string, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *CardInstallmentConfiguration) SetInterval(v string)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *CardInstallmentConfiguration) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### GetCode + +`func (o *CardInstallmentConfiguration) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *CardInstallmentConfiguration) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *CardInstallmentConfiguration) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *CardInstallmentConfiguration) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *CardInstallmentConfiguration) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *CardInstallmentConfiguration) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/DirectDebitChannelCode.md b/docs/payment_request/DirectDebitChannelCode.md index e77ea6d..4d60465 100644 --- a/docs/payment_request/DirectDebitChannelCode.md +++ b/docs/payment_request/DirectDebitChannelCode.md @@ -9,7 +9,7 @@ Direct Debit Channel Code * `BRI` (value: `"BRI"`) - * `BNI` (value: `"BNI"`) + * `BNI_AUTOPAY` (value: `"BNI_AUTOPAY"`) * `MANDIRI` (value: `"MANDIRI"`) diff --git a/docs/payment_request/PaymentRequestChannelProperties.md b/docs/payment_request/PaymentRequestChannelProperties.md index dc5e426..090ce44 100644 --- a/docs/payment_request/PaymentRequestChannelProperties.md +++ b/docs/payment_request/PaymentRequestChannelProperties.md @@ -7,6 +7,7 @@ | **SuccessReturnUrl** | Pointer to **string** | | URL where the end-customer is redirected if the authorization is successful | | | **FailureReturnUrl** | Pointer to **string** | | URL where the end-customer is redirected if the authorization failed | | | **CancelReturnUrl** | Pointer to **string** | | URL where the end-customer is redirected if the authorization cancelled | | +| **PendingReturnUrl** | Pointer to **string** | | URL where the end-customer is redirected if the authorization is pending | | | **RedeemPoints** | Pointer to **string** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | | | **RequireAuth** | Pointer to **bool** | | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | | | **MerchantIdTag** | Pointer to **string** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | | @@ -106,6 +107,31 @@ SetCancelReturnUrl sets CancelReturnUrl field to given value. HasCancelReturnUrl returns a boolean if a field has been set. +### GetPendingReturnUrl + +`func (o *PaymentRequestChannelProperties) GetPendingReturnUrl() string` + +GetPendingReturnUrl returns the PendingReturnUrl field if non-nil, zero value otherwise. + +### GetPendingReturnUrlOk + +`func (o *PaymentRequestChannelProperties) GetPendingReturnUrlOk() (*string, bool)` + +GetPendingReturnUrlOk returns a tuple with the PendingReturnUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPendingReturnUrl + +`func (o *PaymentRequestChannelProperties) SetPendingReturnUrl(v string)` + +SetPendingReturnUrl sets PendingReturnUrl field to given value. + +### HasPendingReturnUrl + +`func (o *PaymentRequestChannelProperties) HasPendingReturnUrl() bool` + +HasPendingReturnUrl returns a boolean if a field has been set. + ### GetRedeemPoints `func (o *PaymentRequestChannelProperties) GetRedeemPoints() string` diff --git a/docs/payment_request/PaymentRequestParametersChannelProperties.md b/docs/payment_request/PaymentRequestParametersChannelProperties.md index ef51f32..442829d 100644 --- a/docs/payment_request/PaymentRequestParametersChannelProperties.md +++ b/docs/payment_request/PaymentRequestParametersChannelProperties.md @@ -7,6 +7,7 @@ | **SuccessReturnUrl** | Pointer to **string** | | URL where the end-customer is redirected if the authorization is successful | | | **FailureReturnUrl** | Pointer to **string** | | URL where the end-customer is redirected if the authorization failed | | | **CancelReturnUrl** | Pointer to **string** | | URL where the end-customer is redirected if the authorization cancelled | | +| **PendingReturnUrl** | Pointer to **string** | | URL where the end-customer is redirected if the authorization is pending | | | **RedeemPoints** | Pointer to **string** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | | | **RequireAuth** | Pointer to **bool** | | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | | | **MerchantIdTag** | Pointer to **string** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | | @@ -107,6 +108,31 @@ SetCancelReturnUrl sets CancelReturnUrl field to given value. HasCancelReturnUrl returns a boolean if a field has been set. +### GetPendingReturnUrl + +`func (o *PaymentRequestParametersChannelProperties) GetPendingReturnUrl() string` + +GetPendingReturnUrl returns the PendingReturnUrl field if non-nil, zero value otherwise. + +### GetPendingReturnUrlOk + +`func (o *PaymentRequestParametersChannelProperties) GetPendingReturnUrlOk() (*string, bool)` + +GetPendingReturnUrlOk returns a tuple with the PendingReturnUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPendingReturnUrl + +`func (o *PaymentRequestParametersChannelProperties) SetPendingReturnUrl(v string)` + +SetPendingReturnUrl sets PendingReturnUrl field to given value. + +### HasPendingReturnUrl + +`func (o *PaymentRequestParametersChannelProperties) HasPendingReturnUrl() bool` + +HasPendingReturnUrl returns a boolean if a field has been set. + ### GetRedeemPoints `func (o *PaymentRequestParametersChannelProperties) GetRedeemPoints() string` diff --git a/docs/payment_request/VirtualAccountChannelCode.md b/docs/payment_request/VirtualAccountChannelCode.md index 2f01f82..229a640 100644 --- a/docs/payment_request/VirtualAccountChannelCode.md +++ b/docs/payment_request/VirtualAccountChannelCode.md @@ -31,10 +31,16 @@ Virtual Account Channel Code * `MSB` (value: `"MSB"`) + * `VPB` (value: `"VPB"`) + + * `BIDV` (value: `"BIDV"`) + * `STANDARD_CHARTERED` (value: `"STANDARD_CHARTERED"`) * `AMBANK` (value: `"AMBANK"`) + * `UOB` (value: `"UOB"`) + * `BNC` (value: `"BNC"`) * `HANA` (value: `"HANA"`) diff --git a/go.mod b/go.mod index ed917ff..6b41937 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/xendit/xendit-go/v5 +module github.com/xendit/xendit-go/v6 go 1.18 diff --git a/invoice/api_invoice.go b/invoice/api_invoice.go index 9654633..53f9771 100644 --- a/invoice/api_invoice.go +++ b/invoice/api_invoice.go @@ -8,8 +8,8 @@ import ( "net/url" "strconv" - common "github.com/xendit/xendit-go/v5/common" - utils "github.com/xendit/xendit-go/v5/utils" + common "github.com/xendit/xendit-go/v6/common" + utils "github.com/xendit/xendit-go/v6/utils" "strings" "reflect" "time" diff --git a/invoice/model_address_object.go b/invoice/model_address_object.go index 29574fd..afbfcd5 100644 --- a/invoice/model_address_object.go +++ b/invoice/model_address_object.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the AddressObject type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_alternative_display_item.go b/invoice/model_alternative_display_item.go index 520fc44..57e7926 100644 --- a/invoice/model_alternative_display_item.go +++ b/invoice/model_alternative_display_item.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the AlternativeDisplayItem type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_bad_request_error.go b/invoice/model_bad_request_error.go index bff2a4e..d53148a 100644 --- a/invoice/model_bad_request_error.go +++ b/invoice/model_bad_request_error.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the BadRequestError type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_bank.go b/invoice/model_bank.go index 8cc66a0..a83b6f3 100644 --- a/invoice/model_bank.go +++ b/invoice/model_bank.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the Bank type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_channel_properties.go b/invoice/model_channel_properties.go index 853546c..9861663 100644 --- a/invoice/model_channel_properties.go +++ b/invoice/model_channel_properties.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the ChannelProperties type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_channel_properties_cards.go b/invoice/model_channel_properties_cards.go index bd21f7d..1c9c7dd 100644 --- a/invoice/model_channel_properties_cards.go +++ b/invoice/model_channel_properties_cards.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the ChannelPropertiesCards type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_create_invoice_request.go b/invoice/model_create_invoice_request.go index 2633094..f457dfa 100644 --- a/invoice/model_create_invoice_request.go +++ b/invoice/model_create_invoice_request.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CreateInvoiceRequest type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_customer_object.go b/invoice/model_customer_object.go index 06d06e7..d0bedea 100644 --- a/invoice/model_customer_object.go +++ b/invoice/model_customer_object.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CustomerObject type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_direct_debit.go b/invoice/model_direct_debit.go index 7296af3..0fb0c9a 100644 --- a/invoice/model_direct_debit.go +++ b/invoice/model_direct_debit.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DirectDebit type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_ewallet.go b/invoice/model_ewallet.go index fb948dd..0d85a96 100644 --- a/invoice/model_ewallet.go +++ b/invoice/model_ewallet.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the Ewallet type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_forbidden_error.go b/invoice/model_forbidden_error.go index b7942ce..6d4c4dd 100644 --- a/invoice/model_forbidden_error.go +++ b/invoice/model_forbidden_error.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the ForbiddenError type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_invoice.go b/invoice/model_invoice.go index 2fc0e5e..3c94b48 100644 --- a/invoice/model_invoice.go +++ b/invoice/model_invoice.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/invoice/model_invoice_callback.go b/invoice/model_invoice_callback.go index 1ac31d5..2cad502 100644 --- a/invoice/model_invoice_callback.go +++ b/invoice/model_invoice_callback.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the InvoiceCallback type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_invoice_callback_item.go b/invoice/model_invoice_callback_item.go index 6c5f1ea..fa667eb 100644 --- a/invoice/model_invoice_callback_item.go +++ b/invoice/model_invoice_callback_item.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the InvoiceCallbackItem type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_invoice_error404_response_definition.go b/invoice/model_invoice_error404_response_definition.go index b904137..b93f193 100644 --- a/invoice/model_invoice_error404_response_definition.go +++ b/invoice/model_invoice_error404_response_definition.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the InvoiceError404ResponseDefinition type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_invoice_fee.go b/invoice/model_invoice_fee.go index 9555a4c..24f1005 100644 --- a/invoice/model_invoice_fee.go +++ b/invoice/model_invoice_fee.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the InvoiceFee type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_invoice_item.go b/invoice/model_invoice_item.go index 72aa8d9..66335b1 100644 --- a/invoice/model_invoice_item.go +++ b/invoice/model_invoice_item.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the InvoiceItem type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_invoice_not_found_error.go b/invoice/model_invoice_not_found_error.go index 38e7fc4..70b1bc0 100644 --- a/invoice/model_invoice_not_found_error.go +++ b/invoice/model_invoice_not_found_error.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the InvoiceNotFoundError type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_notification_preference.go b/invoice/model_notification_preference.go index f009570..b78a632 100644 --- a/invoice/model_notification_preference.go +++ b/invoice/model_notification_preference.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the NotificationPreference type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_paylater.go b/invoice/model_paylater.go index 9556f18..1f088c5 100644 --- a/invoice/model_paylater.go +++ b/invoice/model_paylater.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the Paylater type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_payment_details.go b/invoice/model_payment_details.go index 6f4fff1..2233c57 100644 --- a/invoice/model_payment_details.go +++ b/invoice/model_payment_details.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentDetails type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_qr_code.go b/invoice/model_qr_code.go index 3ee398e..2c00011 100644 --- a/invoice/model_qr_code.go +++ b/invoice/model_qr_code.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the QrCode type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_retail_outlet.go b/invoice/model_retail_outlet.go index 82c0f02..6a8889f 100644 --- a/invoice/model_retail_outlet.go +++ b/invoice/model_retail_outlet.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the RetailOutlet type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_server_error.go b/invoice/model_server_error.go index 4370971..6ca54dd 100644 --- a/invoice/model_server_error.go +++ b/invoice/model_server_error.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the ServerError type satisfies the MappedNullable interface at compile time diff --git a/invoice/model_unauthorized_error.go b/invoice/model_unauthorized_error.go index dd4a7b2..f0d9d19 100644 --- a/invoice/model_unauthorized_error.go +++ b/invoice/model_unauthorized_error.go @@ -12,7 +12,7 @@ package invoice import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the UnauthorizedError type satisfies the MappedNullable interface at compile time diff --git a/payment_method/api_payment_method.go b/payment_method/api_payment_method.go index d6bb69a..e6e5007 100644 --- a/payment_method/api_payment_method.go +++ b/payment_method/api_payment_method.go @@ -8,8 +8,8 @@ import ( "net/url" "strconv" - common "github.com/xendit/xendit-go/v5/common" - utils "github.com/xendit/xendit-go/v5/utils" + common "github.com/xendit/xendit-go/v6/common" + utils "github.com/xendit/xendit-go/v6/utils" "strings" "reflect" "time" diff --git a/payment_method/model_billing_information.go b/payment_method/model_billing_information.go index fce1155..8d7b1a3 100644 --- a/payment_method/model_billing_information.go +++ b/payment_method/model_billing_information.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the BillingInformation type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_card.go b/payment_method/model_card.go index 4946706..e5ecfc9 100644 --- a/payment_method/model_card.go +++ b/payment_method/model_card.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the Card type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_card_channel_code.go b/payment_method/model_card_channel_code.go index fb7d859..b66e887 100644 --- a/payment_method/model_card_channel_code.go +++ b/payment_method/model_card_channel_code.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -20,13 +20,25 @@ type CardChannelCode string // List of CardChannelCode const ( + CARDCHANNELCODE_BAY_CARD_INSTALLMENT CardChannelCode = "BAY_CARD_INSTALLMENT" + CARDCHANNELCODE_BBL_CARD_INSTALLMENT CardChannelCode = "BBL_CARD_INSTALLMENT" CARDCHANNELCODE_GPN CardChannelCode = "GPN" + CARDCHANNELCODE_KBANK_CARD_INSTALLMENT CardChannelCode = "KBANK_CARD_INSTALLMENT" + CARDCHANNELCODE_KTB_CARD_INSTALLMENT CardChannelCode = "KTB_CARD_INSTALLMENT" + CARDCHANNELCODE_SCB_CARD_INSTALLMENT CardChannelCode = "SCB_CARD_INSTALLMENT" + CARDCHANNELCODE_TTB_CARD_INSTALLMENT CardChannelCode = "TTB_CARD_INSTALLMENT" CARDCHANNELCODE_XENDIT_ENUM_DEFAULT_FALLBACK CardChannelCode = "UNKNOWN_ENUM_VALUE" ) // All allowed values of CardChannelCode enum var AllowedCardChannelCodeEnumValues = []CardChannelCode{ + "BAY_CARD_INSTALLMENT", + "BBL_CARD_INSTALLMENT", "GPN", + "KBANK_CARD_INSTALLMENT", + "KTB_CARD_INSTALLMENT", + "SCB_CARD_INSTALLMENT", + "TTB_CARD_INSTALLMENT", "UNKNOWN_ENUM_VALUE", } diff --git a/payment_method/model_card_channel_properties.go b/payment_method/model_card_channel_properties.go index 8405a5b..3229001 100644 --- a/payment_method/model_card_channel_properties.go +++ b/payment_method/model_card_channel_properties.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) @@ -30,6 +30,9 @@ type CardChannelProperties struct { // Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. CardonfileType NullableString `json:"cardonfile_type,omitempty"` ExpiresAt *time.Time `json:"expires_at,omitempty"` + InstallmentConfiguration NullableCardInstallmentConfiguration `json:"installment_configuration,omitempty"` + // Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use + MerchantIdTag *string `json:"merchant_id_tag,omitempty"` } // NewCardChannelProperties instantiates a new CardChannelProperties object @@ -249,6 +252,80 @@ func (o *CardChannelProperties) SetExpiresAt(v time.Time) { o.ExpiresAt = &v } +// GetInstallmentConfiguration returns the InstallmentConfiguration field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CardChannelProperties) GetInstallmentConfiguration() CardInstallmentConfiguration { + if o == nil || utils.IsNil(o.InstallmentConfiguration.Get()) { + var ret CardInstallmentConfiguration + return ret + } + return *o.InstallmentConfiguration.Get() +} + +// GetInstallmentConfigurationOk returns a tuple with the InstallmentConfiguration 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 *CardChannelProperties) GetInstallmentConfigurationOk() (*CardInstallmentConfiguration, bool) { + if o == nil { + return nil, false + } + return o.InstallmentConfiguration.Get(), o.InstallmentConfiguration.IsSet() +} + +// HasInstallmentConfiguration returns a boolean if a field has been set. +func (o *CardChannelProperties) HasInstallmentConfiguration() bool { + if o != nil && o.InstallmentConfiguration.IsSet() { + return true + } + + return false +} + +// SetInstallmentConfiguration gets a reference to the given NullableCardInstallmentConfiguration and assigns it to the InstallmentConfiguration field. +func (o *CardChannelProperties) SetInstallmentConfiguration(v CardInstallmentConfiguration) { + o.InstallmentConfiguration.Set(&v) +} +// SetInstallmentConfigurationNil sets the value for InstallmentConfiguration to be an explicit nil +func (o *CardChannelProperties) SetInstallmentConfigurationNil() { + o.InstallmentConfiguration.Set(nil) +} + +// UnsetInstallmentConfiguration ensures that no value is present for InstallmentConfiguration, not even an explicit nil +func (o *CardChannelProperties) UnsetInstallmentConfiguration() { + o.InstallmentConfiguration.Unset() +} + +// GetMerchantIdTag returns the MerchantIdTag field value if set, zero value otherwise. +func (o *CardChannelProperties) GetMerchantIdTag() string { + if o == nil || utils.IsNil(o.MerchantIdTag) { + var ret string + return ret + } + return *o.MerchantIdTag +} + +// GetMerchantIdTagOk returns a tuple with the MerchantIdTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CardChannelProperties) GetMerchantIdTagOk() (*string, bool) { + if o == nil || utils.IsNil(o.MerchantIdTag) { + return nil, false + } + return o.MerchantIdTag, true +} + +// HasMerchantIdTag returns a boolean if a field has been set. +func (o *CardChannelProperties) HasMerchantIdTag() bool { + if o != nil && !utils.IsNil(o.MerchantIdTag) { + return true + } + + return false +} + +// SetMerchantIdTag gets a reference to the given string and assigns it to the MerchantIdTag field. +func (o *CardChannelProperties) SetMerchantIdTag(v string) { + o.MerchantIdTag = &v +} + func (o CardChannelProperties) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -278,6 +355,12 @@ func (o CardChannelProperties) ToMap() (map[string]interface{}, error) { if !utils.IsNil(o.ExpiresAt) { toSerialize["expires_at"] = o.ExpiresAt } + if o.InstallmentConfiguration.IsSet() { + toSerialize["installment_configuration"] = o.InstallmentConfiguration.Get() + } + if !utils.IsNil(o.MerchantIdTag) { + toSerialize["merchant_id_tag"] = o.MerchantIdTag + } return toSerialize, nil } diff --git a/payment_method/model_card_installment_configuration.go b/payment_method/model_card_installment_configuration.go new file mode 100644 index 0000000..f19fef2 --- /dev/null +++ b/payment_method/model_card_installment_configuration.go @@ -0,0 +1,209 @@ +/* +Payment Method Service v2 + +This API is used for Payment Method Service v2 + +API version: 2.128.0 +*/ + + +package payment_method + +import ( + "encoding/json" + + utils "github.com/xendit/xendit-go/v6/utils" +) + +// checks if the CardInstallmentConfiguration type satisfies the MappedNullable interface at compile time +var _ utils.MappedNullable = &CardInstallmentConfiguration{} + +// CardInstallmentConfiguration Card Installment Configuration +type CardInstallmentConfiguration struct { + Terms *int32 `json:"terms,omitempty"` + Interval *string `json:"interval,omitempty"` + Code NullableString `json:"code,omitempty"` +} + +// NewCardInstallmentConfiguration instantiates a new CardInstallmentConfiguration 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 NewCardInstallmentConfiguration() *CardInstallmentConfiguration { + this := CardInstallmentConfiguration{} + return &this +} + +// NewCardInstallmentConfigurationWithDefaults instantiates a new CardInstallmentConfiguration 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 NewCardInstallmentConfigurationWithDefaults() *CardInstallmentConfiguration { + this := CardInstallmentConfiguration{} + return &this +} + +// GetTerms returns the Terms field value if set, zero value otherwise. +func (o *CardInstallmentConfiguration) GetTerms() int32 { + if o == nil || utils.IsNil(o.Terms) { + var ret int32 + return ret + } + return *o.Terms +} + +// GetTermsOk returns a tuple with the Terms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CardInstallmentConfiguration) GetTermsOk() (*int32, bool) { + if o == nil || utils.IsNil(o.Terms) { + return nil, false + } + return o.Terms, true +} + +// HasTerms returns a boolean if a field has been set. +func (o *CardInstallmentConfiguration) HasTerms() bool { + if o != nil && !utils.IsNil(o.Terms) { + return true + } + + return false +} + +// SetTerms gets a reference to the given int32 and assigns it to the Terms field. +func (o *CardInstallmentConfiguration) SetTerms(v int32) { + o.Terms = &v +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *CardInstallmentConfiguration) GetInterval() string { + if o == nil || utils.IsNil(o.Interval) { + var ret string + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CardInstallmentConfiguration) GetIntervalOk() (*string, bool) { + if o == nil || utils.IsNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *CardInstallmentConfiguration) HasInterval() bool { + if o != nil && !utils.IsNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +func (o *CardInstallmentConfiguration) SetInterval(v string) { + o.Interval = &v +} + +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CardInstallmentConfiguration) GetCode() string { + if o == nil || utils.IsNil(o.Code.Get()) { + var ret string + return ret + } + return *o.Code.Get() +} + +// GetCodeOk returns a tuple with the Code 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 *CardInstallmentConfiguration) GetCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Code.Get(), o.Code.IsSet() +} + +// HasCode returns a boolean if a field has been set. +func (o *CardInstallmentConfiguration) HasCode() bool { + if o != nil && o.Code.IsSet() { + return true + } + + return false +} + +// SetCode gets a reference to the given NullableString and assigns it to the Code field. +func (o *CardInstallmentConfiguration) SetCode(v string) { + o.Code.Set(&v) +} +// SetCodeNil sets the value for Code to be an explicit nil +func (o *CardInstallmentConfiguration) SetCodeNil() { + o.Code.Set(nil) +} + +// UnsetCode ensures that no value is present for Code, not even an explicit nil +func (o *CardInstallmentConfiguration) UnsetCode() { + o.Code.Unset() +} + +func (o CardInstallmentConfiguration) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CardInstallmentConfiguration) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !utils.IsNil(o.Terms) { + toSerialize["terms"] = o.Terms + } + if !utils.IsNil(o.Interval) { + toSerialize["interval"] = o.Interval + } + if o.Code.IsSet() { + toSerialize["code"] = o.Code.Get() + } + return toSerialize, nil +} + +type NullableCardInstallmentConfiguration struct { + value *CardInstallmentConfiguration + isSet bool +} + +func (v NullableCardInstallmentConfiguration) Get() *CardInstallmentConfiguration { + return v.value +} + +func (v *NullableCardInstallmentConfiguration) Set(val *CardInstallmentConfiguration) { + v.value = val + v.isSet = true +} + +func (v NullableCardInstallmentConfiguration) IsSet() bool { + return v.isSet +} + +func (v *NullableCardInstallmentConfiguration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCardInstallmentConfiguration(val *CardInstallmentConfiguration) *NullableCardInstallmentConfiguration { + return &NullableCardInstallmentConfiguration{value: val, isSet: true} +} + +func (v NullableCardInstallmentConfiguration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCardInstallmentConfiguration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/payment_method/model_card_parameters.go b/payment_method/model_card_parameters.go index 5aaaf8a..d84cd9b 100644 --- a/payment_method/model_card_parameters.go +++ b/payment_method/model_card_parameters.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CardParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_card_parameters_card_information.go b/payment_method/model_card_parameters_card_information.go index 7a3458b..03a57d3 100644 --- a/payment_method/model_card_parameters_card_information.go +++ b/payment_method/model_card_parameters_card_information.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CardParametersCardInformation type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_card_verification_results.go b/payment_method/model_card_verification_results.go index 2a3bbce..6b43e31 100644 --- a/payment_method/model_card_verification_results.go +++ b/payment_method/model_card_verification_results.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CardVerificationResults type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_card_verification_results_three_d_secure.go b/payment_method/model_card_verification_results_three_d_secure.go index 8710979..06bb47a 100644 --- a/payment_method/model_card_verification_results_three_d_secure.go +++ b/payment_method/model_card_verification_results_three_d_secure.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CardVerificationResultsThreeDSecure type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_create_payment_method_409_response.go b/payment_method/model_create_payment_method_409_response.go index ddd3846..6bdb855 100644 --- a/payment_method/model_create_payment_method_409_response.go +++ b/payment_method/model_create_payment_method_409_response.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CreatePaymentMethod409Response type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_create_payment_method_503_response.go b/payment_method/model_create_payment_method_503_response.go index 6638fd4..11dda28 100644 --- a/payment_method/model_create_payment_method_503_response.go +++ b/payment_method/model_create_payment_method_503_response.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CreatePaymentMethod503Response type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_direct_debit.go b/payment_method/model_direct_debit.go index 961c232..8c8d543 100644 --- a/payment_method/model_direct_debit.go +++ b/payment_method/model_direct_debit.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DirectDebit type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_direct_debit_all_of.go b/payment_method/model_direct_debit_all_of.go index 6d83d5e..1352e40 100644 --- a/payment_method/model_direct_debit_all_of.go +++ b/payment_method/model_direct_debit_all_of.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DirectDebitAllOf type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_direct_debit_bank_account.go b/payment_method/model_direct_debit_bank_account.go index a829efa..3431445 100644 --- a/payment_method/model_direct_debit_bank_account.go +++ b/payment_method/model_direct_debit_bank_account.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DirectDebitBankAccount type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_direct_debit_channel_code.go b/payment_method/model_direct_debit_channel_code.go index 0fc5378..d6df724 100644 --- a/payment_method/model_direct_debit_channel_code.go +++ b/payment_method/model_direct_debit_channel_code.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -24,10 +24,9 @@ const ( DIRECTDEBITCHANNELCODE_BCA_ONEKLIK DirectDebitChannelCode = "BCA_ONEKLIK" DIRECTDEBITCHANNELCODE_BDO DirectDebitChannelCode = "BDO" DIRECTDEBITCHANNELCODE_BPI DirectDebitChannelCode = "BPI" - DIRECTDEBITCHANNELCODE_AUTODEBIT_BPI DirectDebitChannelCode = "AUTODEBIT_BPI" DIRECTDEBITCHANNELCODE_BPI_RECURRING DirectDebitChannelCode = "BPI_RECURRING" DIRECTDEBITCHANNELCODE_BRI DirectDebitChannelCode = "BRI" - DIRECTDEBITCHANNELCODE_BNI DirectDebitChannelCode = "BNI" + DIRECTDEBITCHANNELCODE_BNI_AUTOPAY DirectDebitChannelCode = "BNI_AUTOPAY" DIRECTDEBITCHANNELCODE_CHINABANK DirectDebitChannelCode = "CHINABANK" DIRECTDEBITCHANNELCODE_CIMBNIAGA DirectDebitChannelCode = "CIMBNIAGA" DIRECTDEBITCHANNELCODE_MTB DirectDebitChannelCode = "MTB" @@ -44,7 +43,7 @@ const ( DIRECTDEBITCHANNELCODE_BBL_MB DirectDebitChannelCode = "BBL_MB" DIRECTDEBITCHANNELCODE_SCB_MB DirectDebitChannelCode = "SCB_MB" DIRECTDEBITCHANNELCODE_BDO_EPAY DirectDebitChannelCode = "BDO_EPAY" - DIRECTDEBITCHANNELCODE_AUTODEBIT_UBP DirectDebitChannelCode = "AUTODEBIT_UBP" + DIRECTDEBITCHANNELCODE_UBP_EADA DirectDebitChannelCode = "UBP_EADA" DIRECTDEBITCHANNELCODE_UBP_DEBIT_PULL DirectDebitChannelCode = "UBP_DEBIT_PULL" DIRECTDEBITCHANNELCODE_AFFIN_FPX DirectDebitChannelCode = "AFFIN_FPX" DIRECTDEBITCHANNELCODE_AGRO_FPX DirectDebitChannelCode = "AGRO_FPX" @@ -86,6 +85,33 @@ const ( DIRECTDEBITCHANNELCODE_RHB_FPX_BUSINESS DirectDebitChannelCode = "RHB_FPX_BUSINESS" DIRECTDEBITCHANNELCODE_SCH_FPX_BUSINESS DirectDebitChannelCode = "SCH_FPX_BUSINESS" DIRECTDEBITCHANNELCODE_UOB_FPX_BUSINESS DirectDebitChannelCode = "UOB_FPX_BUSINESS" + DIRECTDEBITCHANNELCODE_BDO_ONLINE_BANKING DirectDebitChannelCode = "BDO_ONLINE_BANKING" + DIRECTDEBITCHANNELCODE_BPI_ONLINE_BANKING DirectDebitChannelCode = "BPI_ONLINE_BANKING" + DIRECTDEBITCHANNELCODE_UNIONBANK_ONLINE_BANKING DirectDebitChannelCode = "UNIONBANK_ONLINE_BANKING" + DIRECTDEBITCHANNELCODE_BOC_ONLINE_BANKING DirectDebitChannelCode = "BOC_ONLINE_BANKING" + DIRECTDEBITCHANNELCODE_CHINABANK_ONLINE_BANKING DirectDebitChannelCode = "CHINABANK_ONLINE_BANKING" + DIRECTDEBITCHANNELCODE_INSTAPAY_ONLINE_BANKING DirectDebitChannelCode = "INSTAPAY_ONLINE_BANKING" + DIRECTDEBITCHANNELCODE_LANDBANK_ONLINE_BANKING DirectDebitChannelCode = "LANDBANK_ONLINE_BANKING" + DIRECTDEBITCHANNELCODE_MAYBANK_ONLINE_BANKING DirectDebitChannelCode = "MAYBANK_ONLINE_BANKING" + DIRECTDEBITCHANNELCODE_METROBANK_ONLINE_BANKING DirectDebitChannelCode = "METROBANK_ONLINE_BANKING" + DIRECTDEBITCHANNELCODE_PNB_ONLINE_BANKING DirectDebitChannelCode = "PNB_ONLINE_BANKING" + DIRECTDEBITCHANNELCODE_PSBANK_ONLINE_BANKING DirectDebitChannelCode = "PSBANK_ONLINE_BANKING" + DIRECTDEBITCHANNELCODE_PESONET_ONLINE_BANKING DirectDebitChannelCode = "PESONET_ONLINE_BANKING" + DIRECTDEBITCHANNELCODE_RCBC_ONLINE_BANKING DirectDebitChannelCode = "RCBC_ONLINE_BANKING" + DIRECTDEBITCHANNELCODE_ROBINSONS_BANK_ONLINE_BANKING DirectDebitChannelCode = "ROBINSONS_BANK_ONLINE_BANKING" + DIRECTDEBITCHANNELCODE_SECURITY_BANK_ONLINE_BANKING DirectDebitChannelCode = "SECURITY_BANK_ONLINE_BANKING" + DIRECTDEBITCHANNELCODE_AUTODEBIT_UBP DirectDebitChannelCode = "AUTODEBIT_UBP" + DIRECTDEBITCHANNELCODE_AUTODEBIT_BPI DirectDebitChannelCode = "AUTODEBIT_BPI" + DIRECTDEBITCHANNELCODE_GBW_BBL_MOBILE_BANKING DirectDebitChannelCode = "GBW_BBL_MOBILE_BANKING" + DIRECTDEBITCHANNELCODE_GBW_KBANK_MOBILE_BANKING DirectDebitChannelCode = "GBW_KBANK_MOBILE_BANKING" + DIRECTDEBITCHANNELCODE_GBW_KTB_MOBILE_BANKING DirectDebitChannelCode = "GBW_KTB_MOBILE_BANKING" + DIRECTDEBITCHANNELCODE_GBW_SCB_MOBILE_BANKING DirectDebitChannelCode = "GBW_SCB_MOBILE_BANKING" + DIRECTDEBITCHANNELCODE_GBW_BAY_MOBILE_BANKING DirectDebitChannelCode = "GBW_BAY_MOBILE_BANKING" + DIRECTDEBITCHANNELCODE_GBW_BBL DirectDebitChannelCode = "GBW_BBL" + DIRECTDEBITCHANNELCODE_GBW_KBANK DirectDebitChannelCode = "GBW_KBANK" + DIRECTDEBITCHANNELCODE_GBW_KTB DirectDebitChannelCode = "GBW_KTB" + DIRECTDEBITCHANNELCODE_GBW_SCB DirectDebitChannelCode = "GBW_SCB" + DIRECTDEBITCHANNELCODE_GBW_BAY DirectDebitChannelCode = "GBW_BAY" DIRECTDEBITCHANNELCODE_XENDIT_ENUM_DEFAULT_FALLBACK DirectDebitChannelCode = "UNKNOWN_ENUM_VALUE" ) @@ -95,10 +121,9 @@ var AllowedDirectDebitChannelCodeEnumValues = []DirectDebitChannelCode{ "BCA_ONEKLIK", "BDO", "BPI", - "AUTODEBIT_BPI", "BPI_RECURRING", "BRI", - "BNI", + "BNI_AUTOPAY", "CHINABANK", "CIMBNIAGA", "MTB", @@ -115,7 +140,7 @@ var AllowedDirectDebitChannelCodeEnumValues = []DirectDebitChannelCode{ "BBL_MB", "SCB_MB", "BDO_EPAY", - "AUTODEBIT_UBP", + "UBP_EADA", "UBP_DEBIT_PULL", "AFFIN_FPX", "AGRO_FPX", @@ -157,6 +182,33 @@ var AllowedDirectDebitChannelCodeEnumValues = []DirectDebitChannelCode{ "RHB_FPX_BUSINESS", "SCH_FPX_BUSINESS", "UOB_FPX_BUSINESS", + "BDO_ONLINE_BANKING", + "BPI_ONLINE_BANKING", + "UNIONBANK_ONLINE_BANKING", + "BOC_ONLINE_BANKING", + "CHINABANK_ONLINE_BANKING", + "INSTAPAY_ONLINE_BANKING", + "LANDBANK_ONLINE_BANKING", + "MAYBANK_ONLINE_BANKING", + "METROBANK_ONLINE_BANKING", + "PNB_ONLINE_BANKING", + "PSBANK_ONLINE_BANKING", + "PESONET_ONLINE_BANKING", + "RCBC_ONLINE_BANKING", + "ROBINSONS_BANK_ONLINE_BANKING", + "SECURITY_BANK_ONLINE_BANKING", + "AUTODEBIT_UBP", + "AUTODEBIT_BPI", + "GBW_BBL_MOBILE_BANKING", + "GBW_KBANK_MOBILE_BANKING", + "GBW_KTB_MOBILE_BANKING", + "GBW_SCB_MOBILE_BANKING", + "GBW_BAY_MOBILE_BANKING", + "GBW_BBL", + "GBW_KBANK", + "GBW_KTB", + "GBW_SCB", + "GBW_BAY", "UNKNOWN_ENUM_VALUE", } diff --git a/payment_method/model_direct_debit_channel_properties.go b/payment_method/model_direct_debit_channel_properties.go index 3aec468..49429d3 100644 --- a/payment_method/model_direct_debit_channel_properties.go +++ b/payment_method/model_direct_debit_channel_properties.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DirectDebitChannelProperties type satisfies the MappedNullable interface at compile time @@ -35,6 +35,8 @@ type DirectDebitChannelProperties struct { RequireAuth NullableBool `json:"require_auth,omitempty"` // Account number of the customer AccountNumber NullableString `json:"account_number,omitempty"` + // Destination Account ID for BaaS topups + DestinationAccountId NullableString `json:"destination_account_id,omitempty"` } // NewDirectDebitChannelProperties instantiates a new DirectDebitChannelProperties object @@ -422,6 +424,48 @@ func (o *DirectDebitChannelProperties) UnsetAccountNumber() { o.AccountNumber.Unset() } +// GetDestinationAccountId returns the DestinationAccountId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DirectDebitChannelProperties) GetDestinationAccountId() string { + if o == nil || utils.IsNil(o.DestinationAccountId.Get()) { + var ret string + return ret + } + return *o.DestinationAccountId.Get() +} + +// GetDestinationAccountIdOk returns a tuple with the DestinationAccountId 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 *DirectDebitChannelProperties) GetDestinationAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DestinationAccountId.Get(), o.DestinationAccountId.IsSet() +} + +// HasDestinationAccountId returns a boolean if a field has been set. +func (o *DirectDebitChannelProperties) HasDestinationAccountId() bool { + if o != nil && o.DestinationAccountId.IsSet() { + return true + } + + return false +} + +// SetDestinationAccountId gets a reference to the given NullableString and assigns it to the DestinationAccountId field. +func (o *DirectDebitChannelProperties) SetDestinationAccountId(v string) { + o.DestinationAccountId.Set(&v) +} +// SetDestinationAccountIdNil sets the value for DestinationAccountId to be an explicit nil +func (o *DirectDebitChannelProperties) SetDestinationAccountIdNil() { + o.DestinationAccountId.Set(nil) +} + +// UnsetDestinationAccountId ensures that no value is present for DestinationAccountId, not even an explicit nil +func (o *DirectDebitChannelProperties) UnsetDestinationAccountId() { + o.DestinationAccountId.Unset() +} + func (o DirectDebitChannelProperties) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -458,6 +502,9 @@ func (o DirectDebitChannelProperties) ToMap() (map[string]interface{}, error) { } if o.AccountNumber.IsSet() { toSerialize["account_number"] = o.AccountNumber.Get() + } + if o.DestinationAccountId.IsSet() { + toSerialize["destination_account_id"] = o.DestinationAccountId.Get() } return toSerialize, nil } diff --git a/payment_method/model_direct_debit_debit_card.go b/payment_method/model_direct_debit_debit_card.go index 9021dcf..2f5f1b4 100644 --- a/payment_method/model_direct_debit_debit_card.go +++ b/payment_method/model_direct_debit_debit_card.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DirectDebitDebitCard type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_direct_debit_parameters.go b/payment_method/model_direct_debit_parameters.go index 39e2bd2..872f73b 100644 --- a/payment_method/model_direct_debit_parameters.go +++ b/payment_method/model_direct_debit_parameters.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DirectDebitParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_direct_debit_type.go b/payment_method/model_direct_debit_type.go index 60d7097..ce9b322 100644 --- a/payment_method/model_direct_debit_type.go +++ b/payment_method/model_direct_debit_type.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ diff --git a/payment_method/model_e_wallet.go b/payment_method/model_e_wallet.go index 3a1051e..98fa20e 100644 --- a/payment_method/model_e_wallet.go +++ b/payment_method/model_e_wallet.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the EWallet type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_e_wallet_account.go b/payment_method/model_e_wallet_account.go index 15b8a86..c2f149f 100644 --- a/payment_method/model_e_wallet_account.go +++ b/payment_method/model_e_wallet_account.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the EWalletAccount type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_e_wallet_channel_code.go b/payment_method/model_e_wallet_channel_code.go index ca09dd2..635d074 100644 --- a/payment_method/model_e_wallet_channel_code.go +++ b/payment_method/model_e_wallet_channel_code.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ diff --git a/payment_method/model_e_wallet_channel_properties.go b/payment_method/model_e_wallet_channel_properties.go index 53cd9ee..6b0bd32 100644 --- a/payment_method/model_e_wallet_channel_properties.go +++ b/payment_method/model_e_wallet_channel_properties.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the EWalletChannelProperties type satisfies the MappedNullable interface at compile time @@ -24,16 +24,18 @@ type EWalletChannelProperties struct { SuccessReturnUrl *string `json:"success_return_url,omitempty"` // URL where the end-customer is redirected if the authorization failed FailureReturnUrl *string `json:"failure_return_url,omitempty"` - // URL where the end-customer is redirected if the authorization cancelled - CancelReturnUrl *string `json:"cancel_return_url,omitempty"` // URL where the end-customer is redirected if the authorization is pending PendingReturnUrl *string `json:"pending_return_url,omitempty"` + // URL where the end-customer is redirected if the authorization cancelled + CancelReturnUrl *string `json:"cancel_return_url,omitempty"` // Mobile number of customer in E.164 format (e.g. +628123123123). For OVO one time payment use only. MobileNumber *string `json:"mobile_number,omitempty"` // REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. RedeemPoints *string `json:"redeem_points,omitempty"` // Available for JENIUSPAY only Cashtag *string `json:"cashtag,omitempty"` + // Available only for OVO + PromotionLabel *string `json:"promotion_label,omitempty"` } // NewEWalletChannelProperties instantiates a new EWalletChannelProperties object @@ -117,68 +119,68 @@ func (o *EWalletChannelProperties) SetFailureReturnUrl(v string) { o.FailureReturnUrl = &v } -// GetCancelReturnUrl returns the CancelReturnUrl field value if set, zero value otherwise. -func (o *EWalletChannelProperties) GetCancelReturnUrl() string { - if o == nil || utils.IsNil(o.CancelReturnUrl) { +// GetPendingReturnUrl returns the PendingReturnUrl field value if set, zero value otherwise. +func (o *EWalletChannelProperties) GetPendingReturnUrl() string { + if o == nil || utils.IsNil(o.PendingReturnUrl) { var ret string return ret } - return *o.CancelReturnUrl + return *o.PendingReturnUrl } -// GetCancelReturnUrlOk returns a tuple with the CancelReturnUrl field value if set, nil otherwise +// GetPendingReturnUrlOk returns a tuple with the PendingReturnUrl field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *EWalletChannelProperties) GetCancelReturnUrlOk() (*string, bool) { - if o == nil || utils.IsNil(o.CancelReturnUrl) { +func (o *EWalletChannelProperties) GetPendingReturnUrlOk() (*string, bool) { + if o == nil || utils.IsNil(o.PendingReturnUrl) { return nil, false } - return o.CancelReturnUrl, true + return o.PendingReturnUrl, true } -// HasCancelReturnUrl returns a boolean if a field has been set. -func (o *EWalletChannelProperties) HasCancelReturnUrl() bool { - if o != nil && !utils.IsNil(o.CancelReturnUrl) { +// HasPendingReturnUrl returns a boolean if a field has been set. +func (o *EWalletChannelProperties) HasPendingReturnUrl() bool { + if o != nil && !utils.IsNil(o.PendingReturnUrl) { return true } return false } -// SetCancelReturnUrl gets a reference to the given string and assigns it to the CancelReturnUrl field. -func (o *EWalletChannelProperties) SetCancelReturnUrl(v string) { - o.CancelReturnUrl = &v +// SetPendingReturnUrl gets a reference to the given string and assigns it to the PendingReturnUrl field. +func (o *EWalletChannelProperties) SetPendingReturnUrl(v string) { + o.PendingReturnUrl = &v } -// GetPendingReturnUrl returns the PendingReturnUrl field value if set, zero value otherwise. -func (o *EWalletChannelProperties) GetPendingReturnUrl() string { - if o == nil || utils.IsNil(o.PendingReturnUrl) { +// GetCancelReturnUrl returns the CancelReturnUrl field value if set, zero value otherwise. +func (o *EWalletChannelProperties) GetCancelReturnUrl() string { + if o == nil || utils.IsNil(o.CancelReturnUrl) { var ret string return ret } - return *o.PendingReturnUrl + return *o.CancelReturnUrl } -// GetPendingReturnUrlOk returns a tuple with the PendingReturnUrl field value if set, nil otherwise +// GetCancelReturnUrlOk returns a tuple with the CancelReturnUrl field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *EWalletChannelProperties) GetPendingReturnUrlOk() (*string, bool) { - if o == nil || utils.IsNil(o.PendingReturnUrl) { +func (o *EWalletChannelProperties) GetCancelReturnUrlOk() (*string, bool) { + if o == nil || utils.IsNil(o.CancelReturnUrl) { return nil, false } - return o.PendingReturnUrl, true + return o.CancelReturnUrl, true } -// HasPendingReturnUrl returns a boolean if a field has been set. -func (o *EWalletChannelProperties) HasPendingReturnUrl() bool { - if o != nil && !utils.IsNil(o.PendingReturnUrl) { +// HasCancelReturnUrl returns a boolean if a field has been set. +func (o *EWalletChannelProperties) HasCancelReturnUrl() bool { + if o != nil && !utils.IsNil(o.CancelReturnUrl) { return true } return false } -// SetPendingReturnUrl gets a reference to the given string and assigns it to the PendingReturnUrl field. -func (o *EWalletChannelProperties) SetPendingReturnUrl(v string) { - o.PendingReturnUrl = &v +// SetCancelReturnUrl gets a reference to the given string and assigns it to the CancelReturnUrl field. +func (o *EWalletChannelProperties) SetCancelReturnUrl(v string) { + o.CancelReturnUrl = &v } // GetMobileNumber returns the MobileNumber field value if set, zero value otherwise. @@ -277,6 +279,38 @@ func (o *EWalletChannelProperties) SetCashtag(v string) { o.Cashtag = &v } +// GetPromotionLabel returns the PromotionLabel field value if set, zero value otherwise. +func (o *EWalletChannelProperties) GetPromotionLabel() string { + if o == nil || utils.IsNil(o.PromotionLabel) { + var ret string + return ret + } + return *o.PromotionLabel +} + +// GetPromotionLabelOk returns a tuple with the PromotionLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EWalletChannelProperties) GetPromotionLabelOk() (*string, bool) { + if o == nil || utils.IsNil(o.PromotionLabel) { + return nil, false + } + return o.PromotionLabel, true +} + +// HasPromotionLabel returns a boolean if a field has been set. +func (o *EWalletChannelProperties) HasPromotionLabel() bool { + if o != nil && !utils.IsNil(o.PromotionLabel) { + return true + } + + return false +} + +// SetPromotionLabel gets a reference to the given string and assigns it to the PromotionLabel field. +func (o *EWalletChannelProperties) SetPromotionLabel(v string) { + o.PromotionLabel = &v +} + func (o EWalletChannelProperties) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -293,12 +327,12 @@ func (o EWalletChannelProperties) ToMap() (map[string]interface{}, error) { if !utils.IsNil(o.FailureReturnUrl) { toSerialize["failure_return_url"] = o.FailureReturnUrl } - if !utils.IsNil(o.CancelReturnUrl) { - toSerialize["cancel_return_url"] = o.CancelReturnUrl - } if !utils.IsNil(o.PendingReturnUrl) { toSerialize["pending_return_url"] = o.PendingReturnUrl } + if !utils.IsNil(o.CancelReturnUrl) { + toSerialize["cancel_return_url"] = o.CancelReturnUrl + } if !utils.IsNil(o.MobileNumber) { toSerialize["mobile_number"] = o.MobileNumber } @@ -308,6 +342,9 @@ func (o EWalletChannelProperties) ToMap() (map[string]interface{}, error) { if !utils.IsNil(o.Cashtag) { toSerialize["cashtag"] = o.Cashtag } + if !utils.IsNil(o.PromotionLabel) { + toSerialize["promotion_label"] = o.PromotionLabel + } return toSerialize, nil } diff --git a/payment_method/model_e_wallet_parameters.go b/payment_method/model_e_wallet_parameters.go index 139ca8b..34abf14 100644 --- a/payment_method/model_e_wallet_parameters.go +++ b/payment_method/model_e_wallet_parameters.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the EWalletParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_get_all_payment_methods_400_response.go b/payment_method/model_get_all_payment_methods_400_response.go index 1c656b2..c712ba2 100644 --- a/payment_method/model_get_all_payment_methods_400_response.go +++ b/payment_method/model_get_all_payment_methods_400_response.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the GetAllPaymentMethods400Response type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_get_all_payment_methods_403_response.go b/payment_method/model_get_all_payment_methods_403_response.go index f550a12..60f4a56 100644 --- a/payment_method/model_get_all_payment_methods_403_response.go +++ b/payment_method/model_get_all_payment_methods_403_response.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the GetAllPaymentMethods403Response type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_get_all_payment_methods_404_response.go b/payment_method/model_get_all_payment_methods_404_response.go index a165be0..db31e9d 100644 --- a/payment_method/model_get_all_payment_methods_404_response.go +++ b/payment_method/model_get_all_payment_methods_404_response.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the GetAllPaymentMethods404Response type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_get_all_payment_methods_default_response.go b/payment_method/model_get_all_payment_methods_default_response.go index 1e87c56..fcc29f3 100644 --- a/payment_method/model_get_all_payment_methods_default_response.go +++ b/payment_method/model_get_all_payment_methods_default_response.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the GetAllPaymentMethodsDefaultResponse type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_over_the_counter.go b/payment_method/model_over_the_counter.go index 9fbf872..d87ad93 100644 --- a/payment_method/model_over_the_counter.go +++ b/payment_method/model_over_the_counter.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the OverTheCounter type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_over_the_counter_channel_code.go b/payment_method/model_over_the_counter_channel_code.go index 29a1404..89749f8 100644 --- a/payment_method/model_over_the_counter_channel_code.go +++ b/payment_method/model_over_the_counter_channel_code.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ diff --git a/payment_method/model_over_the_counter_channel_properties.go b/payment_method/model_over_the_counter_channel_properties.go index da6b0cd..2cd9d21 100644 --- a/payment_method/model_over_the_counter_channel_properties.go +++ b/payment_method/model_over_the_counter_channel_properties.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/payment_method/model_over_the_counter_channel_properties_update.go b/payment_method/model_over_the_counter_channel_properties_update.go index 4c01706..9a4b4ff 100644 --- a/payment_method/model_over_the_counter_channel_properties_update.go +++ b/payment_method/model_over_the_counter_channel_properties_update.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/payment_method/model_over_the_counter_parameters.go b/payment_method/model_over_the_counter_parameters.go index 8db683a..0217cfa 100644 --- a/payment_method/model_over_the_counter_parameters.go +++ b/payment_method/model_over_the_counter_parameters.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the OverTheCounterParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_over_the_counter_update_parameters.go b/payment_method/model_over_the_counter_update_parameters.go index 75e9ddd..7077ee5 100644 --- a/payment_method/model_over_the_counter_update_parameters.go +++ b/payment_method/model_over_the_counter_update_parameters.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the OverTheCounterUpdateParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_payment_method.go b/payment_method/model_payment_method.go index 183f5db..b7e65e2 100644 --- a/payment_method/model_payment_method.go +++ b/payment_method/model_payment_method.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/payment_method/model_payment_method_action.go b/payment_method/model_payment_method_action.go index 70d4c03..03ab114 100644 --- a/payment_method/model_payment_method_action.go +++ b/payment_method/model_payment_method_action.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentMethodAction type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_payment_method_auth_parameters.go b/payment_method/model_payment_method_auth_parameters.go index e524cfe..89617cc 100644 --- a/payment_method/model_payment_method_auth_parameters.go +++ b/payment_method/model_payment_method_auth_parameters.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentMethodAuthParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_payment_method_callback.go b/payment_method/model_payment_method_callback.go index ff5c383..d2d2f46 100644 --- a/payment_method/model_payment_method_callback.go +++ b/payment_method/model_payment_method_callback.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentMethodCallback type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_payment_method_country.go b/payment_method/model_payment_method_country.go index 4a1b91b..172ede1 100644 --- a/payment_method/model_payment_method_country.go +++ b/payment_method/model_payment_method_country.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ diff --git a/payment_method/model_payment_method_expire_parameters.go b/payment_method/model_payment_method_expire_parameters.go index dc32182..5cd9326 100644 --- a/payment_method/model_payment_method_expire_parameters.go +++ b/payment_method/model_payment_method_expire_parameters.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentMethodExpireParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_payment_method_list.go b/payment_method/model_payment_method_list.go index e231f6b..9eefd2e 100644 --- a/payment_method/model_payment_method_list.go +++ b/payment_method/model_payment_method_list.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentMethodList type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_payment_method_parameters.go b/payment_method/model_payment_method_parameters.go index 39f0e78..3cc747e 100644 --- a/payment_method/model_payment_method_parameters.go +++ b/payment_method/model_payment_method_parameters.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentMethodParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_payment_method_reusability.go b/payment_method/model_payment_method_reusability.go index 115aad8..0a58927 100644 --- a/payment_method/model_payment_method_reusability.go +++ b/payment_method/model_payment_method_reusability.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ diff --git a/payment_method/model_payment_method_status.go b/payment_method/model_payment_method_status.go index 577e71c..c25181d 100644 --- a/payment_method/model_payment_method_status.go +++ b/payment_method/model_payment_method_status.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ diff --git a/payment_method/model_payment_method_type.go b/payment_method/model_payment_method_type.go index 286b311..c193009 100644 --- a/payment_method/model_payment_method_type.go +++ b/payment_method/model_payment_method_type.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ diff --git a/payment_method/model_payment_method_update_parameters.go b/payment_method/model_payment_method_update_parameters.go index 4dc040c..2e9f88e 100644 --- a/payment_method/model_payment_method_update_parameters.go +++ b/payment_method/model_payment_method_update_parameters.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentMethodUpdateParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_qr_code.go b/payment_method/model_qr_code.go index 0f2b541..3bfefc7 100644 --- a/payment_method/model_qr_code.go +++ b/payment_method/model_qr_code.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the QRCode type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_qr_code_channel_code.go b/payment_method/model_qr_code_channel_code.go index 93af6aa..7abc4cd 100644 --- a/payment_method/model_qr_code_channel_code.go +++ b/payment_method/model_qr_code_channel_code.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -26,6 +26,7 @@ const ( QRCODECHANNELCODE_PROMPTPAY QRCodeChannelCode = "PROMPTPAY" QRCODECHANNELCODE_LINKAJA QRCodeChannelCode = "LINKAJA" QRCODECHANNELCODE_XENDIT QRCodeChannelCode = "XENDIT" + QRCODECHANNELCODE_QRPH QRCodeChannelCode = "QRPH" QRCODECHANNELCODE_XENDIT_ENUM_DEFAULT_FALLBACK QRCodeChannelCode = "UNKNOWN_ENUM_VALUE" ) @@ -37,6 +38,7 @@ var AllowedQRCodeChannelCodeEnumValues = []QRCodeChannelCode{ "PROMPTPAY", "LINKAJA", "XENDIT", + "QRPH", "UNKNOWN_ENUM_VALUE", } diff --git a/payment_method/model_qr_code_channel_properties.go b/payment_method/model_qr_code_channel_properties.go index 8bb1ee2..38469a3 100644 --- a/payment_method/model_qr_code_channel_properties.go +++ b/payment_method/model_qr_code_channel_properties.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/payment_method/model_qr_code_parameters.go b/payment_method/model_qr_code_parameters.go index f04cd84..9bc86ba 100644 --- a/payment_method/model_qr_code_parameters.go +++ b/payment_method/model_qr_code_parameters.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the QRCodeParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_simulate_payment_request.go b/payment_method/model_simulate_payment_request.go index ce01544..703b97d 100644 --- a/payment_method/model_simulate_payment_request.go +++ b/payment_method/model_simulate_payment_request.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the SimulatePaymentRequest type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_tokenized_card_information.go b/payment_method/model_tokenized_card_information.go index 10a3eb6..3c77fce 100644 --- a/payment_method/model_tokenized_card_information.go +++ b/payment_method/model_tokenized_card_information.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the TokenizedCardInformation type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_virtual_account.go b/payment_method/model_virtual_account.go index 650dc16..88908f0 100644 --- a/payment_method/model_virtual_account.go +++ b/payment_method/model_virtual_account.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the VirtualAccount type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_virtual_account_all_of.go b/payment_method/model_virtual_account_all_of.go index 9935c92..7d69152 100644 --- a/payment_method/model_virtual_account_all_of.go +++ b/payment_method/model_virtual_account_all_of.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the VirtualAccountAllOf type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_virtual_account_alternative_display.go b/payment_method/model_virtual_account_alternative_display.go index 3dff0b1..8977a6b 100644 --- a/payment_method/model_virtual_account_alternative_display.go +++ b/payment_method/model_virtual_account_alternative_display.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the VirtualAccountAlternativeDisplay type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_virtual_account_channel_code.go b/payment_method/model_virtual_account_channel_code.go index b56cbf5..a43a861 100644 --- a/payment_method/model_virtual_account_channel_code.go +++ b/payment_method/model_virtual_account_channel_code.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -34,11 +34,16 @@ const ( VIRTUALACCOUNTCHANNELCODE_VIETCAPITAL VirtualAccountChannelCode = "VIETCAPITAL" VIRTUALACCOUNTCHANNELCODE_WOORI VirtualAccountChannelCode = "WOORI" VIRTUALACCOUNTCHANNELCODE_MSB VirtualAccountChannelCode = "MSB" + VIRTUALACCOUNTCHANNELCODE_VPB VirtualAccountChannelCode = "VPB" + VIRTUALACCOUNTCHANNELCODE_BIDV VirtualAccountChannelCode = "BIDV" + VIRTUALACCOUNTCHANNELCODE_CAKE VirtualAccountChannelCode = "CAKE" VIRTUALACCOUNTCHANNELCODE_STANDARD_CHARTERED VirtualAccountChannelCode = "STANDARD_CHARTERED" VIRTUALACCOUNTCHANNELCODE_AMBANK VirtualAccountChannelCode = "AMBANK" + VIRTUALACCOUNTCHANNELCODE_UOB VirtualAccountChannelCode = "UOB" VIRTUALACCOUNTCHANNELCODE_BNC VirtualAccountChannelCode = "BNC" VIRTUALACCOUNTCHANNELCODE_HANA VirtualAccountChannelCode = "HANA" VIRTUALACCOUNTCHANNELCODE_MUAMALAT VirtualAccountChannelCode = "MUAMALAT" + VIRTUALACCOUNTCHANNELCODE_BANK_TRANSFER VirtualAccountChannelCode = "BANK_TRANSFER" VIRTUALACCOUNTCHANNELCODE_XENDIT_ENUM_DEFAULT_FALLBACK VirtualAccountChannelCode = "UNKNOWN_ENUM_VALUE" ) @@ -58,11 +63,16 @@ var AllowedVirtualAccountChannelCodeEnumValues = []VirtualAccountChannelCode{ "VIETCAPITAL", "WOORI", "MSB", + "VPB", + "BIDV", + "CAKE", "STANDARD_CHARTERED", "AMBANK", + "UOB", "BNC", "HANA", "MUAMALAT", + "BANK_TRANSFER", "UNKNOWN_ENUM_VALUE", } diff --git a/payment_method/model_virtual_account_channel_properties.go b/payment_method/model_virtual_account_channel_properties.go index 0f9625b..f3d844e 100644 --- a/payment_method/model_virtual_account_channel_properties.go +++ b/payment_method/model_virtual_account_channel_properties.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/payment_method/model_virtual_account_channel_properties_patch.go b/payment_method/model_virtual_account_channel_properties_patch.go index 4b9e950..4898fb8 100644 --- a/payment_method/model_virtual_account_channel_properties_patch.go +++ b/payment_method/model_virtual_account_channel_properties_patch.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/payment_method/model_virtual_account_parameters.go b/payment_method/model_virtual_account_parameters.go index cab670e..45b149e 100644 --- a/payment_method/model_virtual_account_parameters.go +++ b/payment_method/model_virtual_account_parameters.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the VirtualAccountParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_method/model_virtual_account_update_parameters.go b/payment_method/model_virtual_account_update_parameters.go index 4f9e2a9..e979d75 100644 --- a/payment_method/model_virtual_account_update_parameters.go +++ b/payment_method/model_virtual_account_update_parameters.go @@ -3,7 +3,7 @@ Payment Method Service v2 This API is used for Payment Method Service v2 -API version: 2.99.0 +API version: 2.128.0 */ @@ -12,7 +12,7 @@ package payment_method import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the VirtualAccountUpdateParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_request/api_payment_request.go b/payment_request/api_payment_request.go index 0907711..abd9293 100644 --- a/payment_request/api_payment_request.go +++ b/payment_request/api_payment_request.go @@ -8,8 +8,8 @@ import ( "net/url" "strconv" - common "github.com/xendit/xendit-go/v5/common" - utils "github.com/xendit/xendit-go/v5/utils" + common "github.com/xendit/xendit-go/v6/common" + utils "github.com/xendit/xendit-go/v6/utils" "strings" "reflect" ) @@ -154,6 +154,7 @@ type ApiCreatePaymentRequestRequest struct { ApiService PaymentRequestApi idempotencyKey *string forUserId *string + withSplitRule *string paymentRequestParameters *PaymentRequestParameters } @@ -167,6 +168,11 @@ func (r ApiCreatePaymentRequestRequest) ForUserId(forUserId string) ApiCreatePay return r } +func (r ApiCreatePaymentRequestRequest) WithSplitRule(withSplitRule string) ApiCreatePaymentRequestRequest { + r.withSplitRule = &withSplitRule + return r +} + func (r ApiCreatePaymentRequestRequest) PaymentRequestParameters(paymentRequestParameters PaymentRequestParameters) ApiCreatePaymentRequestRequest { r.paymentRequestParameters = &paymentRequestParameters return r @@ -235,6 +241,9 @@ func (a *PaymentRequestApiService) CreatePaymentRequestExecute(r ApiCreatePaymen if r.forUserId != nil { utils.ParameterAddToHeaderOrQuery(localVarHeaderParams, "for-user-id", r.forUserId, "") } + if r.withSplitRule != nil { + utils.ParameterAddToHeaderOrQuery(localVarHeaderParams, "with-split-rule", r.withSplitRule, "") + } // body params localVarPostBody = r.paymentRequestParameters req, err := a.client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/payment_request/model_capture.go b/payment_request/model_capture.go index 5580ca1..485287d 100644 --- a/payment_request/model_capture.go +++ b/payment_request/model_capture.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the Capture type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_capture_list_response.go b/payment_request/model_capture_list_response.go index 0d12d32..d90982d 100644 --- a/payment_request/model_capture_list_response.go +++ b/payment_request/model_capture_list_response.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CaptureListResponse type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_capture_parameters.go b/payment_request/model_capture_parameters.go index 3a610cd..c04a639 100644 --- a/payment_request/model_capture_parameters.go +++ b/payment_request/model_capture_parameters.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CaptureParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_card.go b/payment_request/model_card.go index a755231..b5c31cd 100644 --- a/payment_request/model_card.go +++ b/payment_request/model_card.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the Card type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_card_channel_code.go b/payment_request/model_card_channel_code.go index e6d7e22..c0e21f2 100644 --- a/payment_request/model_card_channel_code.go +++ b/payment_request/model_card_channel_code.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -20,13 +20,25 @@ type CardChannelCode string // List of CardChannelCode const ( + CARDCHANNELCODE_BAY_CARD_INSTALLMENT CardChannelCode = "BAY_CARD_INSTALLMENT" + CARDCHANNELCODE_BBL_CARD_INSTALLMENT CardChannelCode = "BBL_CARD_INSTALLMENT" CARDCHANNELCODE_GPN CardChannelCode = "GPN" + CARDCHANNELCODE_KBANK_CARD_INSTALLMENT CardChannelCode = "KBANK_CARD_INSTALLMENT" + CARDCHANNELCODE_KTB_CARD_INSTALLMENT CardChannelCode = "KTB_CARD_INSTALLMENT" + CARDCHANNELCODE_SCB_CARD_INSTALLMENT CardChannelCode = "SCB_CARD_INSTALLMENT" + CARDCHANNELCODE_TTB_CARD_INSTALLMENT CardChannelCode = "TTB_CARD_INSTALLMENT" CARDCHANNELCODE_XENDIT_ENUM_DEFAULT_FALLBACK CardChannelCode = "UNKNOWN_ENUM_VALUE" ) // All allowed values of CardChannelCode enum var AllowedCardChannelCodeEnumValues = []CardChannelCode{ + "BAY_CARD_INSTALLMENT", + "BBL_CARD_INSTALLMENT", "GPN", + "KBANK_CARD_INSTALLMENT", + "KTB_CARD_INSTALLMENT", + "SCB_CARD_INSTALLMENT", + "TTB_CARD_INSTALLMENT", "UNKNOWN_ENUM_VALUE", } diff --git a/payment_request/model_card_channel_properties.go b/payment_request/model_card_channel_properties.go index 740b656..b274c7f 100644 --- a/payment_request/model_card_channel_properties.go +++ b/payment_request/model_card_channel_properties.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) @@ -32,6 +32,9 @@ type CardChannelProperties struct { // Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use MerchantIdTag *string `json:"merchant_id_tag,omitempty"` ExpiresAt *time.Time `json:"expires_at,omitempty"` + InstallmentConfiguration NullableCardInstallmentConfiguration `json:"installment_configuration,omitempty"` + // To indicate whether to skip the authorization phase + SkipAuthorization *bool `json:"skip_authorization,omitempty"` } // NewCardChannelProperties instantiates a new CardChannelProperties object @@ -283,6 +286,80 @@ func (o *CardChannelProperties) SetExpiresAt(v time.Time) { o.ExpiresAt = &v } +// GetInstallmentConfiguration returns the InstallmentConfiguration field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CardChannelProperties) GetInstallmentConfiguration() CardInstallmentConfiguration { + if o == nil || utils.IsNil(o.InstallmentConfiguration.Get()) { + var ret CardInstallmentConfiguration + return ret + } + return *o.InstallmentConfiguration.Get() +} + +// GetInstallmentConfigurationOk returns a tuple with the InstallmentConfiguration 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 *CardChannelProperties) GetInstallmentConfigurationOk() (*CardInstallmentConfiguration, bool) { + if o == nil { + return nil, false + } + return o.InstallmentConfiguration.Get(), o.InstallmentConfiguration.IsSet() +} + +// HasInstallmentConfiguration returns a boolean if a field has been set. +func (o *CardChannelProperties) HasInstallmentConfiguration() bool { + if o != nil && o.InstallmentConfiguration.IsSet() { + return true + } + + return false +} + +// SetInstallmentConfiguration gets a reference to the given NullableCardInstallmentConfiguration and assigns it to the InstallmentConfiguration field. +func (o *CardChannelProperties) SetInstallmentConfiguration(v CardInstallmentConfiguration) { + o.InstallmentConfiguration.Set(&v) +} +// SetInstallmentConfigurationNil sets the value for InstallmentConfiguration to be an explicit nil +func (o *CardChannelProperties) SetInstallmentConfigurationNil() { + o.InstallmentConfiguration.Set(nil) +} + +// UnsetInstallmentConfiguration ensures that no value is present for InstallmentConfiguration, not even an explicit nil +func (o *CardChannelProperties) UnsetInstallmentConfiguration() { + o.InstallmentConfiguration.Unset() +} + +// GetSkipAuthorization returns the SkipAuthorization field value if set, zero value otherwise. +func (o *CardChannelProperties) GetSkipAuthorization() bool { + if o == nil || utils.IsNil(o.SkipAuthorization) { + var ret bool + return ret + } + return *o.SkipAuthorization +} + +// GetSkipAuthorizationOk returns a tuple with the SkipAuthorization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CardChannelProperties) GetSkipAuthorizationOk() (*bool, bool) { + if o == nil || utils.IsNil(o.SkipAuthorization) { + return nil, false + } + return o.SkipAuthorization, true +} + +// HasSkipAuthorization returns a boolean if a field has been set. +func (o *CardChannelProperties) HasSkipAuthorization() bool { + if o != nil && !utils.IsNil(o.SkipAuthorization) { + return true + } + + return false +} + +// SetSkipAuthorization gets a reference to the given bool and assigns it to the SkipAuthorization field. +func (o *CardChannelProperties) SetSkipAuthorization(v bool) { + o.SkipAuthorization = &v +} + func (o CardChannelProperties) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -311,6 +388,12 @@ func (o CardChannelProperties) ToMap() (map[string]interface{}, error) { if !utils.IsNil(o.ExpiresAt) { toSerialize["expires_at"] = o.ExpiresAt } + if o.InstallmentConfiguration.IsSet() { + toSerialize["installment_configuration"] = o.InstallmentConfiguration.Get() + } + if !utils.IsNil(o.SkipAuthorization) { + toSerialize["skip_authorization"] = o.SkipAuthorization + } return toSerialize, nil } diff --git a/payment_request/model_card_information.go b/payment_request/model_card_information.go index 6259ca7..863f723 100644 --- a/payment_request/model_card_information.go +++ b/payment_request/model_card_information.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CardInformation type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_card_installment_configuration.go b/payment_request/model_card_installment_configuration.go new file mode 100644 index 0000000..da9f246 --- /dev/null +++ b/payment_request/model_card_installment_configuration.go @@ -0,0 +1,209 @@ +/* +Payment Requests + +This API is used for Payment Requests + +API version: 1.70.0 +*/ + + +package payment_request + +import ( + "encoding/json" + + utils "github.com/xendit/xendit-go/v6/utils" +) + +// checks if the CardInstallmentConfiguration type satisfies the MappedNullable interface at compile time +var _ utils.MappedNullable = &CardInstallmentConfiguration{} + +// CardInstallmentConfiguration Card Installment Configuration +type CardInstallmentConfiguration struct { + Terms *int32 `json:"terms,omitempty"` + Interval *string `json:"interval,omitempty"` + Code NullableString `json:"code,omitempty"` +} + +// NewCardInstallmentConfiguration instantiates a new CardInstallmentConfiguration 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 NewCardInstallmentConfiguration() *CardInstallmentConfiguration { + this := CardInstallmentConfiguration{} + return &this +} + +// NewCardInstallmentConfigurationWithDefaults instantiates a new CardInstallmentConfiguration 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 NewCardInstallmentConfigurationWithDefaults() *CardInstallmentConfiguration { + this := CardInstallmentConfiguration{} + return &this +} + +// GetTerms returns the Terms field value if set, zero value otherwise. +func (o *CardInstallmentConfiguration) GetTerms() int32 { + if o == nil || utils.IsNil(o.Terms) { + var ret int32 + return ret + } + return *o.Terms +} + +// GetTermsOk returns a tuple with the Terms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CardInstallmentConfiguration) GetTermsOk() (*int32, bool) { + if o == nil || utils.IsNil(o.Terms) { + return nil, false + } + return o.Terms, true +} + +// HasTerms returns a boolean if a field has been set. +func (o *CardInstallmentConfiguration) HasTerms() bool { + if o != nil && !utils.IsNil(o.Terms) { + return true + } + + return false +} + +// SetTerms gets a reference to the given int32 and assigns it to the Terms field. +func (o *CardInstallmentConfiguration) SetTerms(v int32) { + o.Terms = &v +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *CardInstallmentConfiguration) GetInterval() string { + if o == nil || utils.IsNil(o.Interval) { + var ret string + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CardInstallmentConfiguration) GetIntervalOk() (*string, bool) { + if o == nil || utils.IsNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *CardInstallmentConfiguration) HasInterval() bool { + if o != nil && !utils.IsNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +func (o *CardInstallmentConfiguration) SetInterval(v string) { + o.Interval = &v +} + +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CardInstallmentConfiguration) GetCode() string { + if o == nil || utils.IsNil(o.Code.Get()) { + var ret string + return ret + } + return *o.Code.Get() +} + +// GetCodeOk returns a tuple with the Code 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 *CardInstallmentConfiguration) GetCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Code.Get(), o.Code.IsSet() +} + +// HasCode returns a boolean if a field has been set. +func (o *CardInstallmentConfiguration) HasCode() bool { + if o != nil && o.Code.IsSet() { + return true + } + + return false +} + +// SetCode gets a reference to the given NullableString and assigns it to the Code field. +func (o *CardInstallmentConfiguration) SetCode(v string) { + o.Code.Set(&v) +} +// SetCodeNil sets the value for Code to be an explicit nil +func (o *CardInstallmentConfiguration) SetCodeNil() { + o.Code.Set(nil) +} + +// UnsetCode ensures that no value is present for Code, not even an explicit nil +func (o *CardInstallmentConfiguration) UnsetCode() { + o.Code.Unset() +} + +func (o CardInstallmentConfiguration) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CardInstallmentConfiguration) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !utils.IsNil(o.Terms) { + toSerialize["terms"] = o.Terms + } + if !utils.IsNil(o.Interval) { + toSerialize["interval"] = o.Interval + } + if o.Code.IsSet() { + toSerialize["code"] = o.Code.Get() + } + return toSerialize, nil +} + +type NullableCardInstallmentConfiguration struct { + value *CardInstallmentConfiguration + isSet bool +} + +func (v NullableCardInstallmentConfiguration) Get() *CardInstallmentConfiguration { + return v.value +} + +func (v *NullableCardInstallmentConfiguration) Set(val *CardInstallmentConfiguration) { + v.value = val + v.isSet = true +} + +func (v NullableCardInstallmentConfiguration) IsSet() bool { + return v.isSet +} + +func (v *NullableCardInstallmentConfiguration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCardInstallmentConfiguration(val *CardInstallmentConfiguration) *NullableCardInstallmentConfiguration { + return &NullableCardInstallmentConfiguration{value: val, isSet: true} +} + +func (v NullableCardInstallmentConfiguration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCardInstallmentConfiguration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/payment_request/model_card_parameters.go b/payment_request/model_card_parameters.go index 8a96a61..1973d35 100644 --- a/payment_request/model_card_parameters.go +++ b/payment_request/model_card_parameters.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CardParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_card_verification_results.go b/payment_request/model_card_verification_results.go index fd41cbc..6375851 100644 --- a/payment_request/model_card_verification_results.go +++ b/payment_request/model_card_verification_results.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CardVerificationResults type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_card_verification_results_three_d_secure.go b/payment_request/model_card_verification_results_three_d_secure.go index 364c2f3..ff4ef53 100644 --- a/payment_request/model_card_verification_results_three_d_secure.go +++ b/payment_request/model_card_verification_results_three_d_secure.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CardVerificationResultsThreeDSecure type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_direct_debit.go b/payment_request/model_direct_debit.go index c42c255..43ebed4 100644 --- a/payment_request/model_direct_debit.go +++ b/payment_request/model_direct_debit.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DirectDebit type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_direct_debit_all_of.go b/payment_request/model_direct_debit_all_of.go index 1a830df..b0191f8 100644 --- a/payment_request/model_direct_debit_all_of.go +++ b/payment_request/model_direct_debit_all_of.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DirectDebitAllOf type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_direct_debit_bank_account.go b/payment_request/model_direct_debit_bank_account.go index 74b9a9b..303854a 100644 --- a/payment_request/model_direct_debit_bank_account.go +++ b/payment_request/model_direct_debit_bank_account.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DirectDebitBankAccount type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_direct_debit_channel_code.go b/payment_request/model_direct_debit_channel_code.go index 1622a1c..dbfd374 100644 --- a/payment_request/model_direct_debit_channel_code.go +++ b/payment_request/model_direct_debit_channel_code.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -23,7 +23,7 @@ const ( DIRECTDEBITCHANNELCODE_BCA_KLIKPAY DirectDebitChannelCode = "BCA_KLIKPAY" DIRECTDEBITCHANNELCODE_BCA_ONEKLIK DirectDebitChannelCode = "BCA_ONEKLIK" DIRECTDEBITCHANNELCODE_BRI DirectDebitChannelCode = "BRI" - DIRECTDEBITCHANNELCODE_BNI DirectDebitChannelCode = "BNI" + DIRECTDEBITCHANNELCODE_BNI_AUTOPAY DirectDebitChannelCode = "BNI_AUTOPAY" DIRECTDEBITCHANNELCODE_MANDIRI DirectDebitChannelCode = "MANDIRI" DIRECTDEBITCHANNELCODE_BPI DirectDebitChannelCode = "BPI" DIRECTDEBITCHANNELCODE_BPI_RECURRING DirectDebitChannelCode = "BPI_RECURRING" @@ -108,7 +108,7 @@ var AllowedDirectDebitChannelCodeEnumValues = []DirectDebitChannelCode{ "BCA_KLIKPAY", "BCA_ONEKLIK", "BRI", - "BNI", + "BNI_AUTOPAY", "MANDIRI", "BPI", "BPI_RECURRING", diff --git a/payment_request/model_direct_debit_channel_properties.go b/payment_request/model_direct_debit_channel_properties.go index 063dd25..61394c0 100644 --- a/payment_request/model_direct_debit_channel_properties.go +++ b/payment_request/model_direct_debit_channel_properties.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ diff --git a/payment_request/model_direct_debit_channel_properties_bank_account.go b/payment_request/model_direct_debit_channel_properties_bank_account.go index ace2299..2a07f39 100644 --- a/payment_request/model_direct_debit_channel_properties_bank_account.go +++ b/payment_request/model_direct_debit_channel_properties_bank_account.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DirectDebitChannelPropertiesBankAccount type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_direct_debit_channel_properties_bank_redirect.go b/payment_request/model_direct_debit_channel_properties_bank_redirect.go index 4d28347..d7fc79e 100644 --- a/payment_request/model_direct_debit_channel_properties_bank_redirect.go +++ b/payment_request/model_direct_debit_channel_properties_bank_redirect.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DirectDebitChannelPropertiesBankRedirect type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_direct_debit_channel_properties_debit_card.go b/payment_request/model_direct_debit_channel_properties_debit_card.go index 8517e4d..ef13056 100644 --- a/payment_request/model_direct_debit_channel_properties_debit_card.go +++ b/payment_request/model_direct_debit_channel_properties_debit_card.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DirectDebitChannelPropertiesDebitCard type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_direct_debit_debit_card.go b/payment_request/model_direct_debit_debit_card.go index be4f7a9..d0ffd44 100644 --- a/payment_request/model_direct_debit_debit_card.go +++ b/payment_request/model_direct_debit_debit_card.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DirectDebitDebitCard type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_direct_debit_parameters.go b/payment_request/model_direct_debit_parameters.go index 23787a2..392961c 100644 --- a/payment_request/model_direct_debit_parameters.go +++ b/payment_request/model_direct_debit_parameters.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DirectDebitParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_direct_debit_type.go b/payment_request/model_direct_debit_type.go index 5e3b3f1..1514325 100644 --- a/payment_request/model_direct_debit_type.go +++ b/payment_request/model_direct_debit_type.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ diff --git a/payment_request/model_e_wallet.go b/payment_request/model_e_wallet.go index 7b96658..3c98d09 100644 --- a/payment_request/model_e_wallet.go +++ b/payment_request/model_e_wallet.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the EWallet type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_e_wallet_account.go b/payment_request/model_e_wallet_account.go index 311d376..b94a6a9 100644 --- a/payment_request/model_e_wallet_account.go +++ b/payment_request/model_e_wallet_account.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the EWalletAccount type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_e_wallet_all_of.go b/payment_request/model_e_wallet_all_of.go index b54a4e6..f5762e4 100644 --- a/payment_request/model_e_wallet_all_of.go +++ b/payment_request/model_e_wallet_all_of.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the EWalletAllOf type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_e_wallet_channel_code.go b/payment_request/model_e_wallet_channel_code.go index a619248..54ae727 100644 --- a/payment_request/model_e_wallet_channel_code.go +++ b/payment_request/model_e_wallet_channel_code.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ diff --git a/payment_request/model_e_wallet_channel_properties.go b/payment_request/model_e_wallet_channel_properties.go index 1c8ab8f..d12c72f 100644 --- a/payment_request/model_e_wallet_channel_properties.go +++ b/payment_request/model_e_wallet_channel_properties.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the EWalletChannelProperties type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_e_wallet_parameters.go b/payment_request/model_e_wallet_parameters.go index b976d20..5dd52e1 100644 --- a/payment_request/model_e_wallet_parameters.go +++ b/payment_request/model_e_wallet_parameters.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the EWalletParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_error.go b/payment_request/model_error.go index 44c3d7d..36da11c 100644 --- a/payment_request/model_error.go +++ b/payment_request/model_error.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the Error type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_invoice_partner_metadata.go b/payment_request/model_invoice_partner_metadata.go index df3b8a2..55a45fb 100644 --- a/payment_request/model_invoice_partner_metadata.go +++ b/payment_request/model_invoice_partner_metadata.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the InvoicePartnerMetadata type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_over_the_counter.go b/payment_request/model_over_the_counter.go index e7574d9..bc39884 100644 --- a/payment_request/model_over_the_counter.go +++ b/payment_request/model_over_the_counter.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the OverTheCounter type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_over_the_counter_channel_code.go b/payment_request/model_over_the_counter_channel_code.go index 5834978..8ad2996 100644 --- a/payment_request/model_over_the_counter_channel_code.go +++ b/payment_request/model_over_the_counter_channel_code.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ diff --git a/payment_request/model_over_the_counter_channel_properties.go b/payment_request/model_over_the_counter_channel_properties.go index 263e88c..4c8eb02 100644 --- a/payment_request/model_over_the_counter_channel_properties.go +++ b/payment_request/model_over_the_counter_channel_properties.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/payment_request/model_over_the_counter_parameters.go b/payment_request/model_over_the_counter_parameters.go index 299696b..588d2cf 100644 --- a/payment_request/model_over_the_counter_parameters.go +++ b/payment_request/model_over_the_counter_parameters.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the OverTheCounterParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_payment_callback.go b/payment_request/model_payment_callback.go index 85122a9..ee94476 100644 --- a/payment_request/model_payment_callback.go +++ b/payment_request/model_payment_callback.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentCallback type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_payment_callback_data.go b/payment_request/model_payment_callback_data.go index 6c731af..ced58ad 100644 --- a/payment_request/model_payment_callback_data.go +++ b/payment_request/model_payment_callback_data.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentCallbackData type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_payment_method.go b/payment_request/model_payment_method.go index e2f1731..990dafa 100644 --- a/payment_request/model_payment_method.go +++ b/payment_request/model_payment_method.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentMethod type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_payment_method_parameters.go b/payment_request/model_payment_method_parameters.go index b53b61d..d937ca2 100644 --- a/payment_request/model_payment_method_parameters.go +++ b/payment_request/model_payment_method_parameters.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentMethodParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_payment_method_reusability.go b/payment_request/model_payment_method_reusability.go index 84491b8..e54b410 100644 --- a/payment_request/model_payment_method_reusability.go +++ b/payment_request/model_payment_method_reusability.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ diff --git a/payment_request/model_payment_method_status.go b/payment_request/model_payment_method_status.go index 046ab66..8ca9a08 100644 --- a/payment_request/model_payment_method_status.go +++ b/payment_request/model_payment_method_status.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ diff --git a/payment_request/model_payment_method_type.go b/payment_request/model_payment_method_type.go index 17c5d5e..2f2a8c0 100644 --- a/payment_request/model_payment_method_type.go +++ b/payment_request/model_payment_method_type.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ diff --git a/payment_request/model_payment_request.go b/payment_request/model_payment_request.go index 8643751..8d875c2 100644 --- a/payment_request/model_payment_request.go +++ b/payment_request/model_payment_request.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentRequest type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_payment_request_action.go b/payment_request/model_payment_request_action.go index ab19a21..975f15e 100644 --- a/payment_request/model_payment_request_action.go +++ b/payment_request/model_payment_request_action.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentRequestAction type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_payment_request_auth_parameters.go b/payment_request/model_payment_request_auth_parameters.go index ab58434..a76a1ef 100644 --- a/payment_request/model_payment_request_auth_parameters.go +++ b/payment_request/model_payment_request_auth_parameters.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentRequestAuthParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_payment_request_basket_item.go b/payment_request/model_payment_request_basket_item.go index 57c43f5..68bc96d 100644 --- a/payment_request/model_payment_request_basket_item.go +++ b/payment_request/model_payment_request_basket_item.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentRequestBasketItem type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_payment_request_capture_method.go b/payment_request/model_payment_request_capture_method.go index b5e23ae..5b86385 100644 --- a/payment_request/model_payment_request_capture_method.go +++ b/payment_request/model_payment_request_capture_method.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ diff --git a/payment_request/model_payment_request_card_verification_results.go b/payment_request/model_payment_request_card_verification_results.go index fb3a050..9047eac 100644 --- a/payment_request/model_payment_request_card_verification_results.go +++ b/payment_request/model_payment_request_card_verification_results.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentRequestCardVerificationResults type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_payment_request_card_verification_results_three_dee_secure.go b/payment_request/model_payment_request_card_verification_results_three_dee_secure.go index b815351..f45acc9 100644 --- a/payment_request/model_payment_request_card_verification_results_three_dee_secure.go +++ b/payment_request/model_payment_request_card_verification_results_three_dee_secure.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentRequestCardVerificationResultsThreeDeeSecure type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_payment_request_channel_properties.go b/payment_request/model_payment_request_channel_properties.go index a133626..6b32ed1 100644 --- a/payment_request/model_payment_request_channel_properties.go +++ b/payment_request/model_payment_request_channel_properties.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentRequestChannelProperties type satisfies the MappedNullable interface at compile time @@ -26,6 +26,8 @@ type PaymentRequestChannelProperties struct { FailureReturnUrl *string `json:"failure_return_url,omitempty"` // URL where the end-customer is redirected if the authorization cancelled CancelReturnUrl *string `json:"cancel_return_url,omitempty"` + // URL where the end-customer is redirected if the authorization is pending + PendingReturnUrl *string `json:"pending_return_url,omitempty"` // REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. RedeemPoints *string `json:"redeem_points,omitempty"` // Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. @@ -149,6 +151,38 @@ func (o *PaymentRequestChannelProperties) SetCancelReturnUrl(v string) { o.CancelReturnUrl = &v } +// GetPendingReturnUrl returns the PendingReturnUrl field value if set, zero value otherwise. +func (o *PaymentRequestChannelProperties) GetPendingReturnUrl() string { + if o == nil || utils.IsNil(o.PendingReturnUrl) { + var ret string + return ret + } + return *o.PendingReturnUrl +} + +// GetPendingReturnUrlOk returns a tuple with the PendingReturnUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentRequestChannelProperties) GetPendingReturnUrlOk() (*string, bool) { + if o == nil || utils.IsNil(o.PendingReturnUrl) { + return nil, false + } + return o.PendingReturnUrl, true +} + +// HasPendingReturnUrl returns a boolean if a field has been set. +func (o *PaymentRequestChannelProperties) HasPendingReturnUrl() bool { + if o != nil && !utils.IsNil(o.PendingReturnUrl) { + return true + } + + return false +} + +// SetPendingReturnUrl gets a reference to the given string and assigns it to the PendingReturnUrl field. +func (o *PaymentRequestChannelProperties) SetPendingReturnUrl(v string) { + o.PendingReturnUrl = &v +} + // GetRedeemPoints returns the RedeemPoints field value if set, zero value otherwise. func (o *PaymentRequestChannelProperties) GetRedeemPoints() string { if o == nil || utils.IsNil(o.RedeemPoints) { @@ -306,6 +340,9 @@ func (o PaymentRequestChannelProperties) ToMap() (map[string]interface{}, error) if !utils.IsNil(o.CancelReturnUrl) { toSerialize["cancel_return_url"] = o.CancelReturnUrl } + if !utils.IsNil(o.PendingReturnUrl) { + toSerialize["pending_return_url"] = o.PendingReturnUrl + } if !utils.IsNil(o.RedeemPoints) { toSerialize["redeem_points"] = o.RedeemPoints } diff --git a/payment_request/model_payment_request_country.go b/payment_request/model_payment_request_country.go index e83b1d7..1c44af0 100644 --- a/payment_request/model_payment_request_country.go +++ b/payment_request/model_payment_request_country.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ diff --git a/payment_request/model_payment_request_currency.go b/payment_request/model_payment_request_currency.go index 94f4d69..6d58362 100644 --- a/payment_request/model_payment_request_currency.go +++ b/payment_request/model_payment_request_currency.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ diff --git a/payment_request/model_payment_request_initiator.go b/payment_request/model_payment_request_initiator.go index dadb4db..9d9f54a 100644 --- a/payment_request/model_payment_request_initiator.go +++ b/payment_request/model_payment_request_initiator.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ diff --git a/payment_request/model_payment_request_list_response.go b/payment_request/model_payment_request_list_response.go index a0de524..fc130d6 100644 --- a/payment_request/model_payment_request_list_response.go +++ b/payment_request/model_payment_request_list_response.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentRequestListResponse type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_payment_request_parameters.go b/payment_request/model_payment_request_parameters.go index 633da08..58ab49f 100644 --- a/payment_request/model_payment_request_parameters.go +++ b/payment_request/model_payment_request_parameters.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentRequestParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_payment_request_parameters_channel_properties.go b/payment_request/model_payment_request_parameters_channel_properties.go index 6c27396..178d744 100644 --- a/payment_request/model_payment_request_parameters_channel_properties.go +++ b/payment_request/model_payment_request_parameters_channel_properties.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentRequestParametersChannelProperties type satisfies the MappedNullable interface at compile time @@ -26,6 +26,8 @@ type PaymentRequestParametersChannelProperties struct { FailureReturnUrl *string `json:"failure_return_url,omitempty"` // URL where the end-customer is redirected if the authorization cancelled CancelReturnUrl *string `json:"cancel_return_url,omitempty"` + // URL where the end-customer is redirected if the authorization is pending + PendingReturnUrl *string `json:"pending_return_url,omitempty"` // REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. RedeemPoints *string `json:"redeem_points,omitempty"` // Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. @@ -151,6 +153,38 @@ func (o *PaymentRequestParametersChannelProperties) SetCancelReturnUrl(v string) o.CancelReturnUrl = &v } +// GetPendingReturnUrl returns the PendingReturnUrl field value if set, zero value otherwise. +func (o *PaymentRequestParametersChannelProperties) GetPendingReturnUrl() string { + if o == nil || utils.IsNil(o.PendingReturnUrl) { + var ret string + return ret + } + return *o.PendingReturnUrl +} + +// GetPendingReturnUrlOk returns a tuple with the PendingReturnUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentRequestParametersChannelProperties) GetPendingReturnUrlOk() (*string, bool) { + if o == nil || utils.IsNil(o.PendingReturnUrl) { + return nil, false + } + return o.PendingReturnUrl, true +} + +// HasPendingReturnUrl returns a boolean if a field has been set. +func (o *PaymentRequestParametersChannelProperties) HasPendingReturnUrl() bool { + if o != nil && !utils.IsNil(o.PendingReturnUrl) { + return true + } + + return false +} + +// SetPendingReturnUrl gets a reference to the given string and assigns it to the PendingReturnUrl field. +func (o *PaymentRequestParametersChannelProperties) SetPendingReturnUrl(v string) { + o.PendingReturnUrl = &v +} + // GetRedeemPoints returns the RedeemPoints field value if set, zero value otherwise. func (o *PaymentRequestParametersChannelProperties) GetRedeemPoints() string { if o == nil || utils.IsNil(o.RedeemPoints) { @@ -340,6 +374,9 @@ func (o PaymentRequestParametersChannelProperties) ToMap() (map[string]interface if !utils.IsNil(o.CancelReturnUrl) { toSerialize["cancel_return_url"] = o.CancelReturnUrl } + if !utils.IsNil(o.PendingReturnUrl) { + toSerialize["pending_return_url"] = o.PendingReturnUrl + } if !utils.IsNil(o.RedeemPoints) { toSerialize["redeem_points"] = o.RedeemPoints } diff --git a/payment_request/model_payment_request_parameters_channel_properties_all_of.go b/payment_request/model_payment_request_parameters_channel_properties_all_of.go index 2253d41..7beda90 100644 --- a/payment_request/model_payment_request_parameters_channel_properties_all_of.go +++ b/payment_request/model_payment_request_parameters_channel_properties_all_of.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentRequestParametersChannelPropertiesAllOf type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_payment_request_shipping_information.go b/payment_request/model_payment_request_shipping_information.go index 1c475c3..8be2eba 100644 --- a/payment_request/model_payment_request_shipping_information.go +++ b/payment_request/model_payment_request_shipping_information.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentRequestShippingInformation type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_payment_request_status.go b/payment_request/model_payment_request_status.go index 76cec0a..44d03ad 100644 --- a/payment_request/model_payment_request_status.go +++ b/payment_request/model_payment_request_status.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ diff --git a/payment_request/model_payment_simulation.go b/payment_request/model_payment_simulation.go index d81395c..d9a47b1 100644 --- a/payment_request/model_payment_simulation.go +++ b/payment_request/model_payment_simulation.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the PaymentSimulation type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_qr_code.go b/payment_request/model_qr_code.go index 8fe8df2..900dd8b 100644 --- a/payment_request/model_qr_code.go +++ b/payment_request/model_qr_code.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the QRCode type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_qr_code_channel_code.go b/payment_request/model_qr_code_channel_code.go index 98e6531..58d0f85 100644 --- a/payment_request/model_qr_code_channel_code.go +++ b/payment_request/model_qr_code_channel_code.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ diff --git a/payment_request/model_qr_code_channel_properties.go b/payment_request/model_qr_code_channel_properties.go index 0ca5616..c89d555 100644 --- a/payment_request/model_qr_code_channel_properties.go +++ b/payment_request/model_qr_code_channel_properties.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/payment_request/model_qr_code_parameters.go b/payment_request/model_qr_code_parameters.go index 649fd36..27f5d1e 100644 --- a/payment_request/model_qr_code_parameters.go +++ b/payment_request/model_qr_code_parameters.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the QRCodeParameters type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_virtual_account.go b/payment_request/model_virtual_account.go index df75db2..80388e2 100644 --- a/payment_request/model_virtual_account.go +++ b/payment_request/model_virtual_account.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the VirtualAccount type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_virtual_account_all_of.go b/payment_request/model_virtual_account_all_of.go index a27fc2b..aa5a76f 100644 --- a/payment_request/model_virtual_account_all_of.go +++ b/payment_request/model_virtual_account_all_of.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the VirtualAccountAllOf type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_virtual_account_alternative_display.go b/payment_request/model_virtual_account_alternative_display.go index ab04364..d5953df 100644 --- a/payment_request/model_virtual_account_alternative_display.go +++ b/payment_request/model_virtual_account_alternative_display.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the VirtualAccountAlternativeDisplay type satisfies the MappedNullable interface at compile time diff --git a/payment_request/model_virtual_account_channel_code.go b/payment_request/model_virtual_account_channel_code.go index 193e66b..b5eb135 100644 --- a/payment_request/model_virtual_account_channel_code.go +++ b/payment_request/model_virtual_account_channel_code.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -34,8 +34,11 @@ const ( VIRTUALACCOUNTCHANNELCODE_VIETCAPITAL VirtualAccountChannelCode = "VIETCAPITAL" VIRTUALACCOUNTCHANNELCODE_WOORI VirtualAccountChannelCode = "WOORI" VIRTUALACCOUNTCHANNELCODE_MSB VirtualAccountChannelCode = "MSB" + VIRTUALACCOUNTCHANNELCODE_VPB VirtualAccountChannelCode = "VPB" + VIRTUALACCOUNTCHANNELCODE_BIDV VirtualAccountChannelCode = "BIDV" VIRTUALACCOUNTCHANNELCODE_STANDARD_CHARTERED VirtualAccountChannelCode = "STANDARD_CHARTERED" VIRTUALACCOUNTCHANNELCODE_AMBANK VirtualAccountChannelCode = "AMBANK" + VIRTUALACCOUNTCHANNELCODE_UOB VirtualAccountChannelCode = "UOB" VIRTUALACCOUNTCHANNELCODE_BNC VirtualAccountChannelCode = "BNC" VIRTUALACCOUNTCHANNELCODE_HANA VirtualAccountChannelCode = "HANA" VIRTUALACCOUNTCHANNELCODE_MUAMALAT VirtualAccountChannelCode = "MUAMALAT" @@ -59,8 +62,11 @@ var AllowedVirtualAccountChannelCodeEnumValues = []VirtualAccountChannelCode{ "VIETCAPITAL", "WOORI", "MSB", + "VPB", + "BIDV", "STANDARD_CHARTERED", "AMBANK", + "UOB", "BNC", "HANA", "MUAMALAT", diff --git a/payment_request/model_virtual_account_channel_properties.go b/payment_request/model_virtual_account_channel_properties.go index 5bffcb1..5072e41 100644 --- a/payment_request/model_virtual_account_channel_properties.go +++ b/payment_request/model_virtual_account_channel_properties.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/payment_request/model_virtual_account_parameters.go b/payment_request/model_virtual_account_parameters.go index 0ec3210..ace0b0a 100644 --- a/payment_request/model_virtual_account_parameters.go +++ b/payment_request/model_virtual_account_parameters.go @@ -3,7 +3,7 @@ Payment Requests This API is used for Payment Requests -API version: 1.59.0 +API version: 1.70.0 */ @@ -12,7 +12,7 @@ package payment_request import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the VirtualAccountParameters type satisfies the MappedNullable interface at compile time diff --git a/payout/api_payout.go b/payout/api_payout.go index 17bed2e..9aa5ea2 100644 --- a/payout/api_payout.go +++ b/payout/api_payout.go @@ -8,8 +8,8 @@ import ( "net/url" "strconv" - common "github.com/xendit/xendit-go/v5/common" - utils "github.com/xendit/xendit-go/v5/utils" + common "github.com/xendit/xendit-go/v6/common" + utils "github.com/xendit/xendit-go/v6/utils" "strings" ) diff --git a/payout/model_channel.go b/payout/model_channel.go index 83904df..5e7cd2d 100644 --- a/payout/model_channel.go +++ b/payout/model_channel.go @@ -12,7 +12,7 @@ package payout import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the Channel type satisfies the MappedNullable interface at compile time diff --git a/payout/model_channel_amount_limits.go b/payout/model_channel_amount_limits.go index 2888eae..fe62814 100644 --- a/payout/model_channel_amount_limits.go +++ b/payout/model_channel_amount_limits.go @@ -12,7 +12,7 @@ package payout import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the ChannelAmountLimits type satisfies the MappedNullable interface at compile time diff --git a/payout/model_create_payout_request.go b/payout/model_create_payout_request.go index f4e87a5..0d4bae3 100644 --- a/payout/model_create_payout_request.go +++ b/payout/model_create_payout_request.go @@ -12,7 +12,7 @@ package payout import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CreatePayoutRequest type satisfies the MappedNullable interface at compile time diff --git a/payout/model_digital_payout_channel_properties.go b/payout/model_digital_payout_channel_properties.go index 4aaefff..0c1ecfe 100644 --- a/payout/model_digital_payout_channel_properties.go +++ b/payout/model_digital_payout_channel_properties.go @@ -12,7 +12,7 @@ package payout import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the DigitalPayoutChannelProperties type satisfies the MappedNullable interface at compile time diff --git a/payout/model_error.go b/payout/model_error.go index c6111cc..65eeb73 100644 --- a/payout/model_error.go +++ b/payout/model_error.go @@ -12,7 +12,7 @@ package payout import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the Error type satisfies the MappedNullable interface at compile time diff --git a/payout/model_error_errors_inner.go b/payout/model_error_errors_inner.go index 334c001..564a240 100644 --- a/payout/model_error_errors_inner.go +++ b/payout/model_error_errors_inner.go @@ -12,7 +12,7 @@ package payout import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the ErrorErrorsInner type satisfies the MappedNullable interface at compile time diff --git a/payout/model_get_payouts_200_response.go b/payout/model_get_payouts_200_response.go index 2e6ade5..3aa7fbb 100644 --- a/payout/model_get_payouts_200_response.go +++ b/payout/model_get_payouts_200_response.go @@ -12,7 +12,7 @@ package payout import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the GetPayouts200Response type satisfies the MappedNullable interface at compile time diff --git a/payout/model_get_payouts_200_response_links.go b/payout/model_get_payouts_200_response_links.go index 96bfc19..caecb64 100644 --- a/payout/model_get_payouts_200_response_links.go +++ b/payout/model_get_payouts_200_response_links.go @@ -12,7 +12,7 @@ package payout import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the GetPayouts200ResponseLinks type satisfies the MappedNullable interface at compile time diff --git a/payout/model_payout.go b/payout/model_payout.go index 057723a..a51196e 100644 --- a/payout/model_payout.go +++ b/payout/model_payout.go @@ -12,7 +12,7 @@ package payout import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/payout/model_payout_all_of.go b/payout/model_payout_all_of.go index 45a0cf1..f6510d4 100644 --- a/payout/model_payout_all_of.go +++ b/payout/model_payout_all_of.go @@ -12,7 +12,7 @@ package payout import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" "time" ) diff --git a/payout/model_receipt_notification.go b/payout/model_receipt_notification.go index a5e3e1b..6974e6f 100644 --- a/payout/model_receipt_notification.go +++ b/payout/model_receipt_notification.go @@ -12,7 +12,7 @@ package payout import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the ReceiptNotification type satisfies the MappedNullable interface at compile time diff --git a/refund/api_refund.go b/refund/api_refund.go index 276bbee..c6faf82 100644 --- a/refund/api_refund.go +++ b/refund/api_refund.go @@ -8,8 +8,8 @@ import ( "net/url" "strconv" - common "github.com/xendit/xendit-go/v5/common" - utils "github.com/xendit/xendit-go/v5/utils" + common "github.com/xendit/xendit-go/v6/common" + utils "github.com/xendit/xendit-go/v6/utils" "strings" ) diff --git a/refund/model_create_refund.go b/refund/model_create_refund.go index d9eddb6..2ce7172 100644 --- a/refund/model_create_refund.go +++ b/refund/model_create_refund.go @@ -12,7 +12,7 @@ package refund import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CreateRefund type satisfies the MappedNullable interface at compile time diff --git a/refund/model_create_refund_400_response.go b/refund/model_create_refund_400_response.go index 6cc6216..20f4c0a 100644 --- a/refund/model_create_refund_400_response.go +++ b/refund/model_create_refund_400_response.go @@ -12,7 +12,7 @@ package refund import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CreateRefund400Response type satisfies the MappedNullable interface at compile time diff --git a/refund/model_create_refund_403_response.go b/refund/model_create_refund_403_response.go index d82c6f8..f66f559 100644 --- a/refund/model_create_refund_403_response.go +++ b/refund/model_create_refund_403_response.go @@ -12,7 +12,7 @@ package refund import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CreateRefund403Response type satisfies the MappedNullable interface at compile time diff --git a/refund/model_create_refund_404_response.go b/refund/model_create_refund_404_response.go index 63810de..9621aca 100644 --- a/refund/model_create_refund_404_response.go +++ b/refund/model_create_refund_404_response.go @@ -12,7 +12,7 @@ package refund import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CreateRefund404Response type satisfies the MappedNullable interface at compile time diff --git a/refund/model_create_refund_409_response.go b/refund/model_create_refund_409_response.go index 6016a9b..11bbb0e 100644 --- a/refund/model_create_refund_409_response.go +++ b/refund/model_create_refund_409_response.go @@ -12,7 +12,7 @@ package refund import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CreateRefund409Response type satisfies the MappedNullable interface at compile time diff --git a/refund/model_create_refund_503_response.go b/refund/model_create_refund_503_response.go index 71036c9..c19e98e 100644 --- a/refund/model_create_refund_503_response.go +++ b/refund/model_create_refund_503_response.go @@ -12,7 +12,7 @@ package refund import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the CreateRefund503Response type satisfies the MappedNullable interface at compile time diff --git a/refund/model_get_all_refunds_default_response.go b/refund/model_get_all_refunds_default_response.go index 59795ac..6309ba5 100644 --- a/refund/model_get_all_refunds_default_response.go +++ b/refund/model_get_all_refunds_default_response.go @@ -12,7 +12,7 @@ package refund import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the GetAllRefundsDefaultResponse type satisfies the MappedNullable interface at compile time diff --git a/refund/model_refund.go b/refund/model_refund.go index cbb3f4c..d90122f 100644 --- a/refund/model_refund.go +++ b/refund/model_refund.go @@ -12,7 +12,7 @@ package refund import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the Refund type satisfies the MappedNullable interface at compile time diff --git a/refund/model_refund_callback.go b/refund/model_refund_callback.go index 4765a2b..041e205 100644 --- a/refund/model_refund_callback.go +++ b/refund/model_refund_callback.go @@ -12,7 +12,7 @@ package refund import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the RefundCallback type satisfies the MappedNullable interface at compile time diff --git a/refund/model_refund_callback_data.go b/refund/model_refund_callback_data.go index 8cc87fa..4372428 100644 --- a/refund/model_refund_callback_data.go +++ b/refund/model_refund_callback_data.go @@ -12,7 +12,7 @@ package refund import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the RefundCallbackData type satisfies the MappedNullable interface at compile time diff --git a/refund/model_refund_list.go b/refund/model_refund_list.go index 6df123e..19acf14 100644 --- a/refund/model_refund_list.go +++ b/refund/model_refund_list.go @@ -12,7 +12,7 @@ package refund import ( "encoding/json" - utils "github.com/xendit/xendit-go/v5/utils" + utils "github.com/xendit/xendit-go/v6/utils" ) // checks if the RefundList type satisfies the MappedNullable interface at compile time