From a2450ece842e92aa3bbe56d2428b7cf19e974de9 Mon Sep 17 00:00:00 2001 From: michaelpa Date: Fri, 3 Nov 2023 17:01:47 +0100 Subject: [PATCH] Upgrade Checkout to v71 --- Makefile | 2 +- Readme.md | 2 +- src/adyen/api.go | 2 +- src/checkout/api_classic_checkout_sdk.go | 2 +- src/checkout/api_modifications.go | 2 +- src/checkout/api_orders.go | 2 +- src/checkout/api_payment_links.go | 2 +- src/checkout/api_payments.go | 2 +- src/checkout/api_recurring.go | 2 +- src/checkout/api_utility.go | 2 +- src/checkout/client.go | 4 +- src/checkout/model_account_info.go | 2 +- src/checkout/model_acct_info.go | 2 +- src/checkout/model_ach_details.go | 2 +- .../model_additional_data3_d_secure.go | 2 +- src/checkout/model_additional_data_airline.go | 2 +- .../model_additional_data_car_rental.go | 2 +- src/checkout/model_additional_data_common.go | 2 +- src/checkout/model_additional_data_level23.go | 2 +- src/checkout/model_additional_data_lodging.go | 2 +- .../model_additional_data_open_invoice.go | 2 +- src/checkout/model_additional_data_opi.go | 2 +- src/checkout/model_additional_data_ratepay.go | 2 +- src/checkout/model_additional_data_retry.go | 2 +- src/checkout/model_additional_data_risk.go | 2 +- .../model_additional_data_risk_standalone.go | 2 +- .../model_additional_data_sub_merchant.go | 2 +- ...odel_additional_data_temporary_services.go | 2 +- src/checkout/model_additional_data_wallets.go | 2 +- src/checkout/model_address.go | 2 +- src/checkout/model_afterpay_details.go | 2 +- src/checkout/model_amazon_pay_details.go | 2 +- src/checkout/model_amount.go | 2 +- src/checkout/model_android_pay_details.go | 2 +- src/checkout/model_apple_pay_details.go | 2 +- .../model_apple_pay_session_request.go | 2 +- .../model_apple_pay_session_response.go | 2 +- src/checkout/model_application_info.go | 2 +- src/checkout/model_authentication_data.go | 2 +- src/checkout/model_avs.go | 2 +- .../model_bacs_direct_debit_details.go | 2 +- src/checkout/model_balance_check_request.go | 2 +- src/checkout/model_balance_check_response.go | 2 +- src/checkout/model_bank_account.go | 2 +- src/checkout/model_bill_desk_details.go | 2 +- src/checkout/model_billing_address.go | 2 +- src/checkout/model_blik_details.go | 2 +- src/checkout/model_browser_info.go | 2 +- src/checkout/model_cancel_order_request.go | 2 +- src/checkout/model_cancel_order_response.go | 2 +- src/checkout/model_card.go | 2 +- src/checkout/model_card_brand_details.go | 2 +- src/checkout/model_card_details.go | 2 +- src/checkout/model_card_details_request.go | 2 +- src/checkout/model_card_details_response.go | 2 +- src/checkout/model_cellulant_details.go | 2 +- src/checkout/model_checkout_await_action.go | 2 +- ...heckout_delegated_authentication_action.go | 2 +- .../model_checkout_native_redirect_action.go | 2 +- src/checkout/model_checkout_order_response.go | 2 +- src/checkout/model_checkout_payment_method.go | 2 +- src/checkout/model_checkout_qr_code_action.go | 2 +- .../model_checkout_redirect_action.go | 2 +- src/checkout/model_checkout_sdk_action.go | 2 +- ...del_checkout_session_installment_option.go | 2 +- .../model_checkout_three_ds2_action.go | 2 +- src/checkout/model_checkout_voucher_action.go | 2 +- src/checkout/model_common_field.go | 2 +- src/checkout/model_company.go | 2 +- src/checkout/model_configuration.go | 2 +- .../model_create_checkout_session_request.go | 54 +- .../model_create_checkout_session_response.go | 2 +- src/checkout/model_create_order_request.go | 2 +- src/checkout/model_create_order_response.go | 2 +- src/checkout/model_delivery_address.go | 2 +- ...del_details_request_authentication_data.go | 2 +- src/checkout/model_device_render_options.go | 2 +- src/checkout/model_doku_details.go | 2 +- src/checkout/model_donation_payment_method.go | 2 +- .../model_donation_payment_request.go | 1522 ++--------------- .../model_donation_payment_response.go | 2 +- src/checkout/model_dotpay_details.go | 2 +- src/checkout/model_dragonpay_details.go | 2 +- .../model_econtext_voucher_details.go | 2 +- src/checkout/model_encrypted_order_data.go | 2 +- src/checkout/model_external_platform.go | 2 +- src/checkout/model_forex_quote.go | 2 +- src/checkout/model_fraud_check_result.go | 2 +- src/checkout/model_fraud_result.go | 2 +- src/checkout/model_fund_origin.go | 2 +- src/checkout/model_fund_recipient.go | 2 +- ...l_generic_issuer_payment_method_details.go | 2 +- src/checkout/model_giropay_details.go | 2 +- src/checkout/model_google_pay_details.go | 2 +- src/checkout/model_ideal_details.go | 2 +- src/checkout/model_input_detail.go | 2 +- src/checkout/model_installment_option.go | 2 +- src/checkout/model_installments.go | 2 +- src/checkout/model_installments_number.go | 2 +- src/checkout/model_item.go | 2 +- src/checkout/model_klarna_details.go | 2 +- src/checkout/model_line_item.go | 2 +- ...el_list_stored_payment_methods_response.go | 2 +- src/checkout/model_mandate.go | 2 +- src/checkout/model_masterpass_details.go | 2 +- src/checkout/model_mbway_details.go | 2 +- src/checkout/model_merchant_device.go | 2 +- src/checkout/model_merchant_risk_indicator.go | 2 +- src/checkout/model_mobile_pay_details.go | 2 +- src/checkout/model_mol_pay_details.go | 2 +- src/checkout/model_name.go | 2 +- src/checkout/model_open_invoice_details.go | 2 +- src/checkout/model_pay_pal_details.go | 2 +- src/checkout/model_pay_u_upi_details.go | 2 +- src/checkout/model_pay_with_google_details.go | 2 +- .../model_payment_amount_update_request.go | 2 +- .../model_payment_amount_update_response.go | 39 +- src/checkout/model_payment_cancel_request.go | 2 +- src/checkout/model_payment_cancel_response.go | 2 +- src/checkout/model_payment_capture_request.go | 2 +- .../model_payment_capture_response.go | 2 +- .../model_payment_completion_details.go | 2 +- src/checkout/model_payment_details.go | 2 +- src/checkout/model_payment_details_request.go | 2 +- .../model_payment_details_response.go | 2 +- src/checkout/model_payment_link_request.go | 16 +- src/checkout/model_payment_link_response.go | 16 +- src/checkout/model_payment_method.go | 2 +- src/checkout/model_payment_method_group.go | 2 +- src/checkout/model_payment_method_issuer.go | 2 +- src/checkout/model_payment_methods_request.go | 2 +- .../model_payment_methods_response.go | 2 +- src/checkout/model_payment_refund_request.go | 2 +- src/checkout/model_payment_refund_response.go | 2 +- src/checkout/model_payment_request.go | 16 +- src/checkout/model_payment_response.go | 2 +- src/checkout/model_payment_response_action.go | 2 +- .../model_payment_reversal_request.go | 2 +- .../model_payment_reversal_response.go | 2 +- src/checkout/model_payment_setup_request.go | 2 +- src/checkout/model_payment_setup_response.go | 2 +- .../model_payment_verification_request.go | 2 +- .../model_payment_verification_response.go | 16 +- src/checkout/model_phone.go | 2 +- .../model_platform_chargeback_logic.go | 2 +- src/checkout/model_ratepay_details.go | 2 +- src/checkout/model_recurring.go | 4 +- src/checkout/model_recurring_detail.go | 2 +- ...odel_response_additional_data3_d_secure.go | 2 +- ...esponse_additional_data_billing_address.go | 2 +- .../model_response_additional_data_card.go | 2 +- .../model_response_additional_data_common.go | 2 +- ...l_response_additional_data_installments.go | 2 +- ...response_additional_data_network_tokens.go | 2 +- .../model_response_additional_data_opi.go | 2 +- .../model_response_additional_data_sepa.go | 2 +- src/checkout/model_response_payment_method.go | 2 +- src/checkout/model_risk_data.go | 2 +- src/checkout/model_samsung_pay_details.go | 2 +- src/checkout/model_sdk_ephem_pub_key.go | 2 +- .../model_sepa_direct_debit_details.go | 2 +- src/checkout/model_service_error.go | 2 +- ...or_2.go => model_service_error_details.go} | 78 +- src/checkout/model_session_result_response.go | 2 +- src/checkout/model_shopper_input.go | 2 +- .../model_shopper_interaction_device.go | 2 +- src/checkout/model_split.go | 2 +- src/checkout/model_split_amount.go | 2 +- ...model_standalone_payment_cancel_request.go | 2 +- ...odel_standalone_payment_cancel_response.go | 2 +- src/checkout/model_stored_details.go | 2 +- src/checkout/model_stored_payment_method.go | 2 +- .../model_stored_payment_method_details.go | 2 +- .../model_stored_payment_method_resource.go | 2 +- src/checkout/model_sub_input_detail.go | 2 +- src/checkout/model_sub_merchant.go | 2 +- src/checkout/model_sub_merchant_info.go | 2 +- src/checkout/model_three_d_secure_data.go | 2 +- src/checkout/model_three_ds2_request_data.go | 2 +- ...2.go => model_three_ds2_request_fields.go} | 346 ++-- src/checkout/model_three_ds2_response_data.go | 2 +- src/checkout/model_three_ds2_result.go | 2 +- src/checkout/model_three_ds_request_data.go | 2 +- ..._three_ds_requestor_authentication_info.go | 2 +- ..._ds_requestor_prior_authentication_info.go | 2 +- .../model_update_payment_link_request.go | 2 +- src/checkout/model_upi_collect_details.go | 2 +- src/checkout/model_upi_intent_details.go | 2 +- src/checkout/model_utility_request.go | 2 +- src/checkout/model_utility_response.go | 2 +- src/checkout/model_vipps_details.go | 2 +- src/checkout/model_visa_checkout_details.go | 2 +- src/checkout/model_we_chat_pay_details.go | 2 +- .../model_we_chat_pay_mini_program_details.go | 2 +- src/checkout/model_zip_details.go | 2 +- src/common/utils.go | 11 - tests/checkout/integration_test.go | 5 +- tests/readme_test.go | 2 +- 198 files changed, 668 insertions(+), 1829 deletions(-) rename src/checkout/{model_service_error_2.go => model_service_error_details.go} (65%) rename src/checkout/{model_three_ds2_request_data_2.go => model_three_ds2_request_fields.go} (78%) diff --git a/Makefile b/Makefile index b29149b96..3502f0ce6 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ configurationwebhook: spec=BalancePlatformConfigurationNotification-v1 reportwebhook: spec=BalancePlatformReportNotification-v1 transferwebhook: spec=BalancePlatformTransferNotification-v4 binlookup: spec=BinLookupService-v54 -checkout: spec=CheckoutService-v70 +checkout: spec=CheckoutService-v71 checkout: serviceName=Checkout legalentity: spec=LegalEntityService-v3 legalentity: serviceName=LegalEntity diff --git a/Readme.md b/Readme.md index 5d0014ccf..b63bc23df 100644 --- a/Readme.md +++ b/Readme.md @@ -12,7 +12,7 @@ The Library supports all APIs under the following services: | API | Description | Service constructor | Supported version | |------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------|-------------------| -| [Checkout API](https://docs.adyen.com/api-explorer/Checkout/70/overview) | Our latest integration for accepting online payments. | client.Checkout() | **v70** | +| [Checkout API](https://docs.adyen.com/api-explorer/Checkout/71/overview) | Our latest integration for accepting online payments. | client.Checkout() | **v71** | | [Payouts API](https://docs.adyen.com/api-explorer/Payout/68/overview) | Endpoints for sending funds to your customers. | client.Payout() | **v68** | | [Recurring API](https://docs.adyen.com/api-explorer/Recurring/68/overview) | Endpoints for managing saved payment details. | client.Recurring() | **v68** | | [BIN lookup API](https://docs.adyen.com/api-explorer/BinLookup/54/overview) | The BIN Lookup API provides endpoints for retrieving information based on a given BIN. | client.BinLookup() | **v54** | diff --git a/src/adyen/api.go b/src/adyen/api.go index 4e0c633c2..2760972d3 100644 --- a/src/adyen/api.go +++ b/src/adyen/api.go @@ -66,7 +66,7 @@ const ( MarketpayHopAPIVersion = "v6" PaymentAPIVersion = "v68" RecurringAPIVersion = "v68" - CheckoutAPIVersion = "v70" + CheckoutAPIVersion = "v71" BinLookupAPIVersion = "v54" BalanceControlAPIVersion = "v1" EndpointProtocol = "https://" diff --git a/src/checkout/api_classic_checkout_sdk.go b/src/checkout/api_classic_checkout_sdk.go index 25df0fff1..2121d5974 100644 --- a/src/checkout/api_classic_checkout_sdk.go +++ b/src/checkout/api_classic_checkout_sdk.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/api_modifications.go b/src/checkout/api_modifications.go index 6782d7ba0..0ba8623b1 100644 --- a/src/checkout/api_modifications.go +++ b/src/checkout/api_modifications.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/api_orders.go b/src/checkout/api_orders.go index adb16656c..5c2cf9ead 100644 --- a/src/checkout/api_orders.go +++ b/src/checkout/api_orders.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/api_payment_links.go b/src/checkout/api_payment_links.go index 3c74f91fb..e3a75537b 100644 --- a/src/checkout/api_payment_links.go +++ b/src/checkout/api_payment_links.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/api_payments.go b/src/checkout/api_payments.go index 180745258..52a0ece58 100644 --- a/src/checkout/api_payments.go +++ b/src/checkout/api_payments.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/api_recurring.go b/src/checkout/api_recurring.go index 3344a221e..56df4ec1c 100644 --- a/src/checkout/api_recurring.go +++ b/src/checkout/api_recurring.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/api_utility.go b/src/checkout/api_utility.go index ca8f91d74..4cd036b82 100644 --- a/src/checkout/api_utility.go +++ b/src/checkout/api_utility.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/client.go b/src/checkout/client.go index 55902f2ea..5b272cc1b 100644 --- a/src/checkout/client.go +++ b/src/checkout/client.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,7 +12,7 @@ import ( "github.com/adyen/adyen-go-api-library/v8/src/common" ) -// APIClient manages communication with the Adyen Checkout API API v70 +// APIClient manages communication with the Adyen Checkout API API v71 // In most cases there should be only one, shared, APIClient. type APIClient struct { common common.Service // Reuse a single struct instead of allocating one for each service on the heap. diff --git a/src/checkout/model_account_info.go b/src/checkout/model_account_info.go index 1754eaf6e..bb6a6052a 100644 --- a/src/checkout/model_account_info.go +++ b/src/checkout/model_account_info.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_acct_info.go b/src/checkout/model_acct_info.go index b8b7c2577..f46063160 100644 --- a/src/checkout/model_acct_info.go +++ b/src/checkout/model_acct_info.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_ach_details.go b/src/checkout/model_ach_details.go index 322f8cf2a..975102435 100644 --- a/src/checkout/model_ach_details.go +++ b/src/checkout/model_ach_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_additional_data3_d_secure.go b/src/checkout/model_additional_data3_d_secure.go index 845a18abd..f8bce927b 100644 --- a/src/checkout/model_additional_data3_d_secure.go +++ b/src/checkout/model_additional_data3_d_secure.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_additional_data_airline.go b/src/checkout/model_additional_data_airline.go index 8d6fde8d8..924ae2619 100644 --- a/src/checkout/model_additional_data_airline.go +++ b/src/checkout/model_additional_data_airline.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_additional_data_car_rental.go b/src/checkout/model_additional_data_car_rental.go index 6437ed896..373067011 100644 --- a/src/checkout/model_additional_data_car_rental.go +++ b/src/checkout/model_additional_data_car_rental.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_additional_data_common.go b/src/checkout/model_additional_data_common.go index 5e866926b..5394abc2d 100644 --- a/src/checkout/model_additional_data_common.go +++ b/src/checkout/model_additional_data_common.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_additional_data_level23.go b/src/checkout/model_additional_data_level23.go index b6ebf9f9a..c1e7a7883 100644 --- a/src/checkout/model_additional_data_level23.go +++ b/src/checkout/model_additional_data_level23.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_additional_data_lodging.go b/src/checkout/model_additional_data_lodging.go index 3fa00957f..1f55813d2 100644 --- a/src/checkout/model_additional_data_lodging.go +++ b/src/checkout/model_additional_data_lodging.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_additional_data_open_invoice.go b/src/checkout/model_additional_data_open_invoice.go index d19c843d4..0969e35a2 100644 --- a/src/checkout/model_additional_data_open_invoice.go +++ b/src/checkout/model_additional_data_open_invoice.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_additional_data_opi.go b/src/checkout/model_additional_data_opi.go index 06d9f4211..7c4575ce6 100644 --- a/src/checkout/model_additional_data_opi.go +++ b/src/checkout/model_additional_data_opi.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_additional_data_ratepay.go b/src/checkout/model_additional_data_ratepay.go index b18f120f5..22017a538 100644 --- a/src/checkout/model_additional_data_ratepay.go +++ b/src/checkout/model_additional_data_ratepay.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_additional_data_retry.go b/src/checkout/model_additional_data_retry.go index 8a16fe456..123f549e2 100644 --- a/src/checkout/model_additional_data_retry.go +++ b/src/checkout/model_additional_data_retry.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_additional_data_risk.go b/src/checkout/model_additional_data_risk.go index 86566187f..05a7c7315 100644 --- a/src/checkout/model_additional_data_risk.go +++ b/src/checkout/model_additional_data_risk.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_additional_data_risk_standalone.go b/src/checkout/model_additional_data_risk_standalone.go index c0de15442..a7ef7a042 100644 --- a/src/checkout/model_additional_data_risk_standalone.go +++ b/src/checkout/model_additional_data_risk_standalone.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_additional_data_sub_merchant.go b/src/checkout/model_additional_data_sub_merchant.go index d6583300c..059bece54 100644 --- a/src/checkout/model_additional_data_sub_merchant.go +++ b/src/checkout/model_additional_data_sub_merchant.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_additional_data_temporary_services.go b/src/checkout/model_additional_data_temporary_services.go index 8760d41c2..bb80d7255 100644 --- a/src/checkout/model_additional_data_temporary_services.go +++ b/src/checkout/model_additional_data_temporary_services.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_additional_data_wallets.go b/src/checkout/model_additional_data_wallets.go index 885cc4d16..b7d4a79f4 100644 --- a/src/checkout/model_additional_data_wallets.go +++ b/src/checkout/model_additional_data_wallets.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_address.go b/src/checkout/model_address.go index f7e879f7f..33d8e7c42 100644 --- a/src/checkout/model_address.go +++ b/src/checkout/model_address.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_afterpay_details.go b/src/checkout/model_afterpay_details.go index c8ad19ce5..d07076182 100644 --- a/src/checkout/model_afterpay_details.go +++ b/src/checkout/model_afterpay_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_amazon_pay_details.go b/src/checkout/model_amazon_pay_details.go index 27381828e..35c24c009 100644 --- a/src/checkout/model_amazon_pay_details.go +++ b/src/checkout/model_amazon_pay_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_amount.go b/src/checkout/model_amount.go index cf71dc406..14259071d 100644 --- a/src/checkout/model_amount.go +++ b/src/checkout/model_amount.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_android_pay_details.go b/src/checkout/model_android_pay_details.go index 64da29ba4..6a984cae4 100644 --- a/src/checkout/model_android_pay_details.go +++ b/src/checkout/model_android_pay_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_apple_pay_details.go b/src/checkout/model_apple_pay_details.go index dcbc19fd0..2ae73e72b 100644 --- a/src/checkout/model_apple_pay_details.go +++ b/src/checkout/model_apple_pay_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_apple_pay_session_request.go b/src/checkout/model_apple_pay_session_request.go index f44049451..5ba08d959 100644 --- a/src/checkout/model_apple_pay_session_request.go +++ b/src/checkout/model_apple_pay_session_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_apple_pay_session_response.go b/src/checkout/model_apple_pay_session_response.go index c585823b4..5e7e07f7b 100644 --- a/src/checkout/model_apple_pay_session_response.go +++ b/src/checkout/model_apple_pay_session_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_application_info.go b/src/checkout/model_application_info.go index 6ed3d8edc..f02577148 100644 --- a/src/checkout/model_application_info.go +++ b/src/checkout/model_application_info.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_authentication_data.go b/src/checkout/model_authentication_data.go index 37eeab0b7..b893f3d09 100644 --- a/src/checkout/model_authentication_data.go +++ b/src/checkout/model_authentication_data.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_avs.go b/src/checkout/model_avs.go index 9e89544df..7e9c093b8 100644 --- a/src/checkout/model_avs.go +++ b/src/checkout/model_avs.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_bacs_direct_debit_details.go b/src/checkout/model_bacs_direct_debit_details.go index e58329fb2..b6b5f0bee 100644 --- a/src/checkout/model_bacs_direct_debit_details.go +++ b/src/checkout/model_bacs_direct_debit_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_balance_check_request.go b/src/checkout/model_balance_check_request.go index 34308994d..8d9ce060d 100644 --- a/src/checkout/model_balance_check_request.go +++ b/src/checkout/model_balance_check_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_balance_check_response.go b/src/checkout/model_balance_check_response.go index 5bedc73af..bba0709b7 100644 --- a/src/checkout/model_balance_check_response.go +++ b/src/checkout/model_balance_check_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_bank_account.go b/src/checkout/model_bank_account.go index 20afc8c7c..166e1a548 100644 --- a/src/checkout/model_bank_account.go +++ b/src/checkout/model_bank_account.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_bill_desk_details.go b/src/checkout/model_bill_desk_details.go index d07cdaa5d..4f3ebd7ea 100644 --- a/src/checkout/model_bill_desk_details.go +++ b/src/checkout/model_bill_desk_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_billing_address.go b/src/checkout/model_billing_address.go index 31bcd8e98..a811cb698 100644 --- a/src/checkout/model_billing_address.go +++ b/src/checkout/model_billing_address.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_blik_details.go b/src/checkout/model_blik_details.go index ac055b9e4..24aac3515 100644 --- a/src/checkout/model_blik_details.go +++ b/src/checkout/model_blik_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_browser_info.go b/src/checkout/model_browser_info.go index 36b569c78..ec9e0298e 100644 --- a/src/checkout/model_browser_info.go +++ b/src/checkout/model_browser_info.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_cancel_order_request.go b/src/checkout/model_cancel_order_request.go index c1b0ac61d..54df21c08 100644 --- a/src/checkout/model_cancel_order_request.go +++ b/src/checkout/model_cancel_order_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_cancel_order_response.go b/src/checkout/model_cancel_order_response.go index 60c014191..f11071626 100644 --- a/src/checkout/model_cancel_order_response.go +++ b/src/checkout/model_cancel_order_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_card.go b/src/checkout/model_card.go index 5de656762..f1745867a 100644 --- a/src/checkout/model_card.go +++ b/src/checkout/model_card.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_card_brand_details.go b/src/checkout/model_card_brand_details.go index 538e14782..560575e6d 100644 --- a/src/checkout/model_card_brand_details.go +++ b/src/checkout/model_card_brand_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_card_details.go b/src/checkout/model_card_details.go index 7e1e8b667..c8e076295 100644 --- a/src/checkout/model_card_details.go +++ b/src/checkout/model_card_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_card_details_request.go b/src/checkout/model_card_details_request.go index 728be92ff..90ddf4061 100644 --- a/src/checkout/model_card_details_request.go +++ b/src/checkout/model_card_details_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_card_details_response.go b/src/checkout/model_card_details_response.go index 457cde674..54f8636d3 100644 --- a/src/checkout/model_card_details_response.go +++ b/src/checkout/model_card_details_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_cellulant_details.go b/src/checkout/model_cellulant_details.go index a492a302f..144a9af98 100644 --- a/src/checkout/model_cellulant_details.go +++ b/src/checkout/model_cellulant_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_checkout_await_action.go b/src/checkout/model_checkout_await_action.go index 2abdc5b52..07ffbd0de 100644 --- a/src/checkout/model_checkout_await_action.go +++ b/src/checkout/model_checkout_await_action.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_checkout_delegated_authentication_action.go b/src/checkout/model_checkout_delegated_authentication_action.go index 5e3ba3126..7d3886f9a 100644 --- a/src/checkout/model_checkout_delegated_authentication_action.go +++ b/src/checkout/model_checkout_delegated_authentication_action.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_checkout_native_redirect_action.go b/src/checkout/model_checkout_native_redirect_action.go index abd9218c3..eed84a01b 100644 --- a/src/checkout/model_checkout_native_redirect_action.go +++ b/src/checkout/model_checkout_native_redirect_action.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_checkout_order_response.go b/src/checkout/model_checkout_order_response.go index c5e09daae..a46d4648a 100644 --- a/src/checkout/model_checkout_order_response.go +++ b/src/checkout/model_checkout_order_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_checkout_payment_method.go b/src/checkout/model_checkout_payment_method.go index 87d0369a6..43f3abb1a 100644 --- a/src/checkout/model_checkout_payment_method.go +++ b/src/checkout/model_checkout_payment_method.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_checkout_qr_code_action.go b/src/checkout/model_checkout_qr_code_action.go index ea118a891..a6d2e7888 100644 --- a/src/checkout/model_checkout_qr_code_action.go +++ b/src/checkout/model_checkout_qr_code_action.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_checkout_redirect_action.go b/src/checkout/model_checkout_redirect_action.go index 01354c0ba..eabc44dbf 100644 --- a/src/checkout/model_checkout_redirect_action.go +++ b/src/checkout/model_checkout_redirect_action.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_checkout_sdk_action.go b/src/checkout/model_checkout_sdk_action.go index b59bec072..46bdb4fcd 100644 --- a/src/checkout/model_checkout_sdk_action.go +++ b/src/checkout/model_checkout_sdk_action.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_checkout_session_installment_option.go b/src/checkout/model_checkout_session_installment_option.go index 0001ebc48..839399721 100644 --- a/src/checkout/model_checkout_session_installment_option.go +++ b/src/checkout/model_checkout_session_installment_option.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_checkout_three_ds2_action.go b/src/checkout/model_checkout_three_ds2_action.go index 4230942f5..8f585e6d5 100644 --- a/src/checkout/model_checkout_three_ds2_action.go +++ b/src/checkout/model_checkout_three_ds2_action.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_checkout_voucher_action.go b/src/checkout/model_checkout_voucher_action.go index 2820d6837..b5c07b3aa 100644 --- a/src/checkout/model_checkout_voucher_action.go +++ b/src/checkout/model_checkout_voucher_action.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_common_field.go b/src/checkout/model_common_field.go index 4beee919f..43480e54d 100644 --- a/src/checkout/model_common_field.go +++ b/src/checkout/model_common_field.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_company.go b/src/checkout/model_company.go index 6ac17d0a1..3e1f6691b 100644 --- a/src/checkout/model_company.go +++ b/src/checkout/model_company.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_configuration.go b/src/checkout/model_configuration.go index f530ddff3..5490bc72c 100644 --- a/src/checkout/model_configuration.go +++ b/src/checkout/model_configuration.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_create_checkout_session_request.go b/src/checkout/model_create_checkout_session_request.go index 4d05a9b9d..c71a4e6c1 100644 --- a/src/checkout/model_create_checkout_session_request.go +++ b/src/checkout/model_create_checkout_session_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -66,7 +66,9 @@ type CreateCheckoutSessionRequest struct { // This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. MerchantOrderReference *string `json:"merchantOrderReference,omitempty"` // Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. - Metadata *map[string]string `json:"metadata,omitempty"` + Metadata *map[string]string `json:"metadata,omitempty"` + // Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + Mode *string `json:"mode,omitempty"` MpiData *ThreeDSecureData `json:"mpiData,omitempty"` PlatformChargebackLogic *PlatformChargebackLogic `json:"platformChargebackLogic,omitempty"` // Date after which no further authorisations shall be performed. Only for 3D Secure 2. @@ -128,6 +130,8 @@ func NewCreateCheckoutSessionRequest(amount Amount, merchantAccount string, refe this := CreateCheckoutSessionRequest{} this.Amount = amount this.MerchantAccount = merchantAccount + var mode string = "embedded" + this.Mode = &mode this.Reference = reference this.ReturnUrl = returnUrl var splitCardFundingSources bool = false @@ -142,6 +146,8 @@ func NewCreateCheckoutSessionRequest(amount Amount, merchantAccount string, refe // but it doesn't guarantee that properties required by API are set func NewCreateCheckoutSessionRequestWithDefaults() *CreateCheckoutSessionRequest { this := CreateCheckoutSessionRequest{} + var mode string = "embedded" + this.Mode = &mode var splitCardFundingSources bool = false this.SplitCardFundingSources = &splitCardFundingSources var threeDSAuthenticationOnly bool = false @@ -1061,6 +1067,38 @@ func (o *CreateCheckoutSessionRequest) SetMetadata(v map[string]string) { o.Metadata = &v } +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *CreateCheckoutSessionRequest) GetMode() string { + if o == nil || common.IsNil(o.Mode) { + var ret string + return ret + } + return *o.Mode +} + +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateCheckoutSessionRequest) GetModeOk() (*string, bool) { + if o == nil || common.IsNil(o.Mode) { + return nil, false + } + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *CreateCheckoutSessionRequest) HasMode() bool { + if o != nil && !common.IsNil(o.Mode) { + return true + } + + return false +} + +// SetMode gets a reference to the given string and assigns it to the Mode field. +func (o *CreateCheckoutSessionRequest) SetMode(v string) { + o.Mode = &v +} + // GetMpiData returns the MpiData field value if set, zero value otherwise. func (o *CreateCheckoutSessionRequest) GetMpiData() ThreeDSecureData { if o == nil || common.IsNil(o.MpiData) { @@ -2005,6 +2043,9 @@ func (o CreateCheckoutSessionRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Metadata) { toSerialize["metadata"] = o.Metadata } + if !common.IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } if !common.IsNil(o.MpiData) { toSerialize["mpiData"] = o.MpiData } @@ -2130,6 +2171,15 @@ func (o *CreateCheckoutSessionRequest) isValidChannel() bool { } return false } +func (o *CreateCheckoutSessionRequest) isValidMode() bool { + var allowedEnumValues = []string{"embedded", "hosted"} + for _, allowed := range allowedEnumValues { + if o.GetMode() == allowed { + return true + } + } + return false +} func (o *CreateCheckoutSessionRequest) isValidRecurringProcessingModel() bool { var allowedEnumValues = []string{"CardOnFile", "Subscription", "UnscheduledCardOnFile"} for _, allowed := range allowedEnumValues { diff --git a/src/checkout/model_create_checkout_session_response.go b/src/checkout/model_create_checkout_session_response.go index 87566c2f8..1b32daa1d 100644 --- a/src/checkout/model_create_checkout_session_response.go +++ b/src/checkout/model_create_checkout_session_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_create_order_request.go b/src/checkout/model_create_order_request.go index 50e648755..4c80d262a 100644 --- a/src/checkout/model_create_order_request.go +++ b/src/checkout/model_create_order_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_create_order_response.go b/src/checkout/model_create_order_response.go index 66829efed..23db715b2 100644 --- a/src/checkout/model_create_order_response.go +++ b/src/checkout/model_create_order_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_delivery_address.go b/src/checkout/model_delivery_address.go index d62f616dd..9135eeb77 100644 --- a/src/checkout/model_delivery_address.go +++ b/src/checkout/model_delivery_address.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_details_request_authentication_data.go b/src/checkout/model_details_request_authentication_data.go index 34558b2e0..96f8327ba 100644 --- a/src/checkout/model_details_request_authentication_data.go +++ b/src/checkout/model_details_request_authentication_data.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_device_render_options.go b/src/checkout/model_device_render_options.go index a1cd9fced..cb376b7c6 100644 --- a/src/checkout/model_device_render_options.go +++ b/src/checkout/model_device_render_options.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_doku_details.go b/src/checkout/model_doku_details.go index 3e13a484e..db91456f6 100644 --- a/src/checkout/model_doku_details.go +++ b/src/checkout/model_doku_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_donation_payment_method.go b/src/checkout/model_donation_payment_method.go index 1924132aa..7d1f97c2b 100644 --- a/src/checkout/model_donation_payment_method.go +++ b/src/checkout/model_donation_payment_method.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_donation_payment_request.go b/src/checkout/model_donation_payment_request.go index d6e27b80c..c3855bbc1 100644 --- a/src/checkout/model_donation_payment_request.go +++ b/src/checkout/model_donation_payment_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,39 +20,28 @@ var _ common.MappedNullable = &DonationPaymentRequest{} // DonationPaymentRequest struct for DonationPaymentRequest type DonationPaymentRequest struct { - AccountInfo *AccountInfo `json:"accountInfo,omitempty"` - AdditionalAmount *Amount `json:"additionalAmount,omitempty"` + AccountInfo *AccountInfo `json:"accountInfo,omitempty"` // This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - AdditionalData *map[string]string `json:"additionalData,omitempty"` - // List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"giropay\"]` - AllowedPaymentMethods []string `json:"allowedPaymentMethods,omitempty"` - Amount Amount `json:"amount"` - ApplicationInfo *ApplicationInfo `json:"applicationInfo,omitempty"` - AuthenticationData *AuthenticationData `json:"authenticationData,omitempty"` - BillingAddress *BillingAddress `json:"billingAddress,omitempty"` - // List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]` - BlockedPaymentMethods []string `json:"blockedPaymentMethods,omitempty"` - BrowserInfo *BrowserInfo `json:"browserInfo,omitempty"` - // The delay between the authorisation and scheduled auto-capture, specified in hours. - CaptureDelayHours *int32 `json:"captureDelayHours,omitempty"` + AdditionalData *map[string]string `json:"additionalData,omitempty"` + Amount Amount `json:"amount"` + ApplicationInfo *ApplicationInfo `json:"applicationInfo,omitempty"` + AuthenticationData *AuthenticationData `json:"authenticationData,omitempty"` + BillingAddress *BillingAddress `json:"billingAddress,omitempty"` + BrowserInfo *BrowserInfo `json:"browserInfo,omitempty"` // The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web Channel *string `json:"channel,omitempty"` // Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. - CheckoutAttemptId *string `json:"checkoutAttemptId,omitempty"` - Company *Company `json:"company,omitempty"` + CheckoutAttemptId *string `json:"checkoutAttemptId,omitempty"` // Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. // Deprecated ConversionId *string `json:"conversionId,omitempty"` // The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE CountryCode *string `json:"countryCode,omitempty"` // The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - DateOfBirth *time.Time `json:"dateOfBirth,omitempty"` - DccQuote *ForexQuote `json:"dccQuote,omitempty"` + DateOfBirth *time.Time `json:"dateOfBirth,omitempty"` // The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 DeliverAt *time.Time `json:"deliverAt,omitempty"` DeliveryAddress *DeliveryAddress `json:"deliveryAddress,omitempty"` - // The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - DeliveryDate *time.Time `json:"deliveryDate,omitempty"` // A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). DeviceFingerprint *string `json:"deviceFingerprint,omitempty"` // Donation account to which the transaction is credited. @@ -61,49 +50,17 @@ type DonationPaymentRequest struct { DonationOriginalPspReference *string `json:"donationOriginalPspReference,omitempty"` // Donation token received in the `/payments` call. DonationToken *string `json:"donationToken,omitempty"` - // When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments. - EnableOneClick *bool `json:"enableOneClick,omitempty"` - // When true and `shopperReference` is provided, the payment details will be tokenized for payouts. - EnablePayOut *bool `json:"enablePayOut,omitempty"` - // When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments. - EnableRecurring *bool `json:"enableRecurring,omitempty"` - // The type of the entity the payment is processed for. - EntityType *string `json:"entityType,omitempty"` - // An integer value that is added to the normal fraud score. The value can be either positive or negative. - FraudOffset *int32 `json:"fraudOffset,omitempty"` - FundOrigin *FundOrigin `json:"fundOrigin,omitempty"` - FundRecipient *FundRecipient `json:"fundRecipient,omitempty"` - // The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. - FundingSource *string `json:"fundingSource,omitempty"` - // The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** - IndustryUsage *string `json:"industryUsage,omitempty"` - Installments *Installments `json:"installments,omitempty"` // Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Zip. LineItems []LineItem `json:"lineItems,omitempty"` - // The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. - LocalizedShopperStatement *map[string]string `json:"localizedShopperStatement,omitempty"` - Mandate *Mandate `json:"mandate,omitempty"` - // The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - Mcc *string `json:"mcc,omitempty"` // The merchant account identifier, with which you want to process the transaction. - MerchantAccount string `json:"merchantAccount"` - // This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - MerchantOrderReference *string `json:"merchantOrderReference,omitempty"` - MerchantRiskIndicator *MerchantRiskIndicator `json:"merchantRiskIndicator,omitempty"` + MerchantAccount string `json:"merchantAccount"` + MerchantRiskIndicator *MerchantRiskIndicator `json:"merchantRiskIndicator,omitempty"` // Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. - Metadata *map[string]string `json:"metadata,omitempty"` - MpiData *ThreeDSecureData `json:"mpiData,omitempty"` - Order *EncryptedOrderData `json:"order,omitempty"` - // When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. - OrderReference *string `json:"orderReference,omitempty"` + Metadata *map[string]string `json:"metadata,omitempty"` + MpiData *ThreeDSecureData `json:"mpiData,omitempty"` // Required for the 3D Secure 2 `channel` **Web** integration. Set this parameter to the origin URL of the page that you are loading the 3D Secure Component from. - Origin *string `json:"origin,omitempty"` - PaymentMethod DonationPaymentMethod `json:"paymentMethod"` - PlatformChargebackLogic *PlatformChargebackLogic `json:"platformChargebackLogic,omitempty"` - // Date after which no further authorisations shall be performed. Only for 3D Secure 2. - RecurringExpiry *string `json:"recurringExpiry,omitempty"` - // Minimum number of days between authorisations. Only for 3D Secure 2. - RecurringFrequency *string `json:"recurringFrequency,omitempty"` + Origin *string `json:"origin,omitempty"` + PaymentMethod DonationPaymentMethod `json:"paymentMethod"` // Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. RecurringProcessingModel *string `json:"recurringProcessingModel,omitempty"` // Specifies the redirect method (GET or POST) when redirecting back from the issuer. @@ -113,10 +70,7 @@ type DonationPaymentRequest struct { // The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. Reference string `json:"reference"` // The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` - ReturnUrl string `json:"returnUrl"` - RiskData *RiskData `json:"riskData,omitempty"` - // The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. - SelectedRecurringDetailReference *string `json:"selectedRecurringDetailReference,omitempty"` + ReturnUrl string `json:"returnUrl"` // The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 SessionValidity *string `json:"sessionValidity,omitempty"` // The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. @@ -130,24 +84,14 @@ type DonationPaymentRequest struct { ShopperName *Name `json:"shopperName,omitempty"` // Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. ShopperReference *string `json:"shopperReference,omitempty"` - // The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - ShopperStatement *string `json:"shopperStatement,omitempty"` // The shopper's social security number. SocialSecurityNumber *string `json:"socialSecurityNumber,omitempty"` - // An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). - Splits []Split `json:"splits,omitempty"` - // The ecommerce or point-of-sale store that is processing the payment. Used in: * [Partner platform integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for the [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic). * [Platform setup integrations](https://docs.adyen.com/marketplaces-and-platforms/additional-for-platform-setup/route-payment-to-store) for the [Balance Platform](https://docs.adyen.com/marketplaces-and-platforms). - Store *string `json:"store,omitempty"` - // When true and `shopperReference` is provided, the payment details will be stored. - StorePaymentMethod *bool `json:"storePaymentMethod,omitempty"` // The shopper's telephone number. - TelephoneNumber *string `json:"telephoneNumber,omitempty"` - ThreeDS2RequestData *ThreeDS2RequestData2 `json:"threeDS2RequestData,omitempty"` + TelephoneNumber *string `json:"telephoneNumber,omitempty"` + ThreeDS2RequestData *ThreeDS2RequestFields `json:"threeDS2RequestData,omitempty"` // If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. // Deprecated ThreeDSAuthenticationOnly *bool `json:"threeDSAuthenticationOnly,omitempty"` - // Set to true if the payment should be routed to a trusted MID. - TrustedShopper *bool `json:"trustedShopper,omitempty"` } // NewDonationPaymentRequest instantiates a new DonationPaymentRequest object @@ -209,38 +153,6 @@ func (o *DonationPaymentRequest) SetAccountInfo(v AccountInfo) { o.AccountInfo = &v } -// GetAdditionalAmount returns the AdditionalAmount field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetAdditionalAmount() Amount { - if o == nil || common.IsNil(o.AdditionalAmount) { - var ret Amount - return ret - } - return *o.AdditionalAmount -} - -// GetAdditionalAmountOk returns a tuple with the AdditionalAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetAdditionalAmountOk() (*Amount, bool) { - if o == nil || common.IsNil(o.AdditionalAmount) { - return nil, false - } - return o.AdditionalAmount, true -} - -// HasAdditionalAmount returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasAdditionalAmount() bool { - if o != nil && !common.IsNil(o.AdditionalAmount) { - return true - } - - return false -} - -// SetAdditionalAmount gets a reference to the given Amount and assigns it to the AdditionalAmount field. -func (o *DonationPaymentRequest) SetAdditionalAmount(v Amount) { - o.AdditionalAmount = &v -} - // GetAdditionalData returns the AdditionalData field value if set, zero value otherwise. func (o *DonationPaymentRequest) GetAdditionalData() map[string]string { if o == nil || common.IsNil(o.AdditionalData) { @@ -273,38 +185,6 @@ func (o *DonationPaymentRequest) SetAdditionalData(v map[string]string) { o.AdditionalData = &v } -// GetAllowedPaymentMethods returns the AllowedPaymentMethods field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetAllowedPaymentMethods() []string { - if o == nil || common.IsNil(o.AllowedPaymentMethods) { - var ret []string - return ret - } - return o.AllowedPaymentMethods -} - -// GetAllowedPaymentMethodsOk returns a tuple with the AllowedPaymentMethods field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetAllowedPaymentMethodsOk() ([]string, bool) { - if o == nil || common.IsNil(o.AllowedPaymentMethods) { - return nil, false - } - return o.AllowedPaymentMethods, true -} - -// HasAllowedPaymentMethods returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasAllowedPaymentMethods() bool { - if o != nil && !common.IsNil(o.AllowedPaymentMethods) { - return true - } - - return false -} - -// SetAllowedPaymentMethods gets a reference to the given []string and assigns it to the AllowedPaymentMethods field. -func (o *DonationPaymentRequest) SetAllowedPaymentMethods(v []string) { - o.AllowedPaymentMethods = v -} - // GetAmount returns the Amount field value func (o *DonationPaymentRequest) GetAmount() Amount { if o == nil { @@ -425,38 +305,6 @@ func (o *DonationPaymentRequest) SetBillingAddress(v BillingAddress) { o.BillingAddress = &v } -// GetBlockedPaymentMethods returns the BlockedPaymentMethods field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetBlockedPaymentMethods() []string { - if o == nil || common.IsNil(o.BlockedPaymentMethods) { - var ret []string - return ret - } - return o.BlockedPaymentMethods -} - -// GetBlockedPaymentMethodsOk returns a tuple with the BlockedPaymentMethods field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetBlockedPaymentMethodsOk() ([]string, bool) { - if o == nil || common.IsNil(o.BlockedPaymentMethods) { - return nil, false - } - return o.BlockedPaymentMethods, true -} - -// HasBlockedPaymentMethods returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasBlockedPaymentMethods() bool { - if o != nil && !common.IsNil(o.BlockedPaymentMethods) { - return true - } - - return false -} - -// SetBlockedPaymentMethods gets a reference to the given []string and assigns it to the BlockedPaymentMethods field. -func (o *DonationPaymentRequest) SetBlockedPaymentMethods(v []string) { - o.BlockedPaymentMethods = v -} - // GetBrowserInfo returns the BrowserInfo field value if set, zero value otherwise. func (o *DonationPaymentRequest) GetBrowserInfo() BrowserInfo { if o == nil || common.IsNil(o.BrowserInfo) { @@ -489,38 +337,6 @@ func (o *DonationPaymentRequest) SetBrowserInfo(v BrowserInfo) { o.BrowserInfo = &v } -// GetCaptureDelayHours returns the CaptureDelayHours field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetCaptureDelayHours() int32 { - if o == nil || common.IsNil(o.CaptureDelayHours) { - var ret int32 - return ret - } - return *o.CaptureDelayHours -} - -// GetCaptureDelayHoursOk returns a tuple with the CaptureDelayHours field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetCaptureDelayHoursOk() (*int32, bool) { - if o == nil || common.IsNil(o.CaptureDelayHours) { - return nil, false - } - return o.CaptureDelayHours, true -} - -// HasCaptureDelayHours returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasCaptureDelayHours() bool { - if o != nil && !common.IsNil(o.CaptureDelayHours) { - return true - } - - return false -} - -// SetCaptureDelayHours gets a reference to the given int32 and assigns it to the CaptureDelayHours field. -func (o *DonationPaymentRequest) SetCaptureDelayHours(v int32) { - o.CaptureDelayHours = &v -} - // GetChannel returns the Channel field value if set, zero value otherwise. func (o *DonationPaymentRequest) GetChannel() string { if o == nil || common.IsNil(o.Channel) { @@ -585,38 +401,6 @@ func (o *DonationPaymentRequest) SetCheckoutAttemptId(v string) { o.CheckoutAttemptId = &v } -// GetCompany returns the Company field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetCompany() Company { - if o == nil || common.IsNil(o.Company) { - var ret Company - return ret - } - return *o.Company -} - -// GetCompanyOk returns a tuple with the Company field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetCompanyOk() (*Company, bool) { - if o == nil || common.IsNil(o.Company) { - return nil, false - } - return o.Company, true -} - -// HasCompany returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasCompany() bool { - if o != nil && !common.IsNil(o.Company) { - return true - } - - return false -} - -// SetCompany gets a reference to the given Company and assigns it to the Company field. -func (o *DonationPaymentRequest) SetCompany(v Company) { - o.Company = &v -} - // GetConversionId returns the ConversionId field value if set, zero value otherwise. // Deprecated func (o *DonationPaymentRequest) GetConversionId() string { @@ -716,38 +500,6 @@ func (o *DonationPaymentRequest) SetDateOfBirth(v time.Time) { o.DateOfBirth = &v } -// GetDccQuote returns the DccQuote field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetDccQuote() ForexQuote { - if o == nil || common.IsNil(o.DccQuote) { - var ret ForexQuote - return ret - } - return *o.DccQuote -} - -// GetDccQuoteOk returns a tuple with the DccQuote field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetDccQuoteOk() (*ForexQuote, bool) { - if o == nil || common.IsNil(o.DccQuote) { - return nil, false - } - return o.DccQuote, true -} - -// HasDccQuote returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasDccQuote() bool { - if o != nil && !common.IsNil(o.DccQuote) { - return true - } - - return false -} - -// SetDccQuote gets a reference to the given ForexQuote and assigns it to the DccQuote field. -func (o *DonationPaymentRequest) SetDccQuote(v ForexQuote) { - o.DccQuote = &v -} - // GetDeliverAt returns the DeliverAt field value if set, zero value otherwise. func (o *DonationPaymentRequest) GetDeliverAt() time.Time { if o == nil || common.IsNil(o.DeliverAt) { @@ -812,38 +564,6 @@ func (o *DonationPaymentRequest) SetDeliveryAddress(v DeliveryAddress) { o.DeliveryAddress = &v } -// GetDeliveryDate returns the DeliveryDate field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetDeliveryDate() time.Time { - if o == nil || common.IsNil(o.DeliveryDate) { - var ret time.Time - return ret - } - return *o.DeliveryDate -} - -// GetDeliveryDateOk returns a tuple with the DeliveryDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetDeliveryDateOk() (*time.Time, bool) { - if o == nil || common.IsNil(o.DeliveryDate) { - return nil, false - } - return o.DeliveryDate, true -} - -// HasDeliveryDate returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasDeliveryDate() bool { - if o != nil && !common.IsNil(o.DeliveryDate) { - return true - } - - return false -} - -// SetDeliveryDate gets a reference to the given time.Time and assigns it to the DeliveryDate field. -func (o *DonationPaymentRequest) SetDeliveryDate(v time.Time) { - o.DeliveryDate = &v -} - // GetDeviceFingerprint returns the DeviceFingerprint field value if set, zero value otherwise. func (o *DonationPaymentRequest) GetDeviceFingerprint() string { if o == nil || common.IsNil(o.DeviceFingerprint) { @@ -964,857 +684,249 @@ func (o *DonationPaymentRequest) SetDonationToken(v string) { o.DonationToken = &v } -// GetEnableOneClick returns the EnableOneClick field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetEnableOneClick() bool { - if o == nil || common.IsNil(o.EnableOneClick) { - var ret bool +// GetLineItems returns the LineItems field value if set, zero value otherwise. +func (o *DonationPaymentRequest) GetLineItems() []LineItem { + if o == nil || common.IsNil(o.LineItems) { + var ret []LineItem return ret } - return *o.EnableOneClick + return o.LineItems } -// GetEnableOneClickOk returns a tuple with the EnableOneClick field value if set, nil otherwise +// GetLineItemsOk returns a tuple with the LineItems field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetEnableOneClickOk() (*bool, bool) { - if o == nil || common.IsNil(o.EnableOneClick) { +func (o *DonationPaymentRequest) GetLineItemsOk() ([]LineItem, bool) { + if o == nil || common.IsNil(o.LineItems) { return nil, false } - return o.EnableOneClick, true + return o.LineItems, true } -// HasEnableOneClick returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasEnableOneClick() bool { - if o != nil && !common.IsNil(o.EnableOneClick) { +// HasLineItems returns a boolean if a field has been set. +func (o *DonationPaymentRequest) HasLineItems() bool { + if o != nil && !common.IsNil(o.LineItems) { return true } return false } -// SetEnableOneClick gets a reference to the given bool and assigns it to the EnableOneClick field. -func (o *DonationPaymentRequest) SetEnableOneClick(v bool) { - o.EnableOneClick = &v +// SetLineItems gets a reference to the given []LineItem and assigns it to the LineItems field. +func (o *DonationPaymentRequest) SetLineItems(v []LineItem) { + o.LineItems = v } -// GetEnablePayOut returns the EnablePayOut field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetEnablePayOut() bool { - if o == nil || common.IsNil(o.EnablePayOut) { - var ret bool +// GetMerchantAccount returns the MerchantAccount field value +func (o *DonationPaymentRequest) GetMerchantAccount() string { + if o == nil { + var ret string return ret } - return *o.EnablePayOut + + return o.MerchantAccount } -// GetEnablePayOutOk returns a tuple with the EnablePayOut field value if set, nil otherwise +// GetMerchantAccountOk returns a tuple with the MerchantAccount field value // and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetEnablePayOutOk() (*bool, bool) { - if o == nil || common.IsNil(o.EnablePayOut) { +func (o *DonationPaymentRequest) GetMerchantAccountOk() (*string, bool) { + if o == nil { return nil, false } - return o.EnablePayOut, true -} - -// HasEnablePayOut returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasEnablePayOut() bool { - if o != nil && !common.IsNil(o.EnablePayOut) { - return true - } - - return false + return &o.MerchantAccount, true } -// SetEnablePayOut gets a reference to the given bool and assigns it to the EnablePayOut field. -func (o *DonationPaymentRequest) SetEnablePayOut(v bool) { - o.EnablePayOut = &v +// SetMerchantAccount sets field value +func (o *DonationPaymentRequest) SetMerchantAccount(v string) { + o.MerchantAccount = v } -// GetEnableRecurring returns the EnableRecurring field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetEnableRecurring() bool { - if o == nil || common.IsNil(o.EnableRecurring) { - var ret bool +// GetMerchantRiskIndicator returns the MerchantRiskIndicator field value if set, zero value otherwise. +func (o *DonationPaymentRequest) GetMerchantRiskIndicator() MerchantRiskIndicator { + if o == nil || common.IsNil(o.MerchantRiskIndicator) { + var ret MerchantRiskIndicator return ret } - return *o.EnableRecurring + return *o.MerchantRiskIndicator } -// GetEnableRecurringOk returns a tuple with the EnableRecurring field value if set, nil otherwise +// GetMerchantRiskIndicatorOk returns a tuple with the MerchantRiskIndicator field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetEnableRecurringOk() (*bool, bool) { - if o == nil || common.IsNil(o.EnableRecurring) { +func (o *DonationPaymentRequest) GetMerchantRiskIndicatorOk() (*MerchantRiskIndicator, bool) { + if o == nil || common.IsNil(o.MerchantRiskIndicator) { return nil, false } - return o.EnableRecurring, true + return o.MerchantRiskIndicator, true } -// HasEnableRecurring returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasEnableRecurring() bool { - if o != nil && !common.IsNil(o.EnableRecurring) { +// HasMerchantRiskIndicator returns a boolean if a field has been set. +func (o *DonationPaymentRequest) HasMerchantRiskIndicator() bool { + if o != nil && !common.IsNil(o.MerchantRiskIndicator) { return true } return false } -// SetEnableRecurring gets a reference to the given bool and assigns it to the EnableRecurring field. -func (o *DonationPaymentRequest) SetEnableRecurring(v bool) { - o.EnableRecurring = &v +// SetMerchantRiskIndicator gets a reference to the given MerchantRiskIndicator and assigns it to the MerchantRiskIndicator field. +func (o *DonationPaymentRequest) SetMerchantRiskIndicator(v MerchantRiskIndicator) { + o.MerchantRiskIndicator = &v } -// GetEntityType returns the EntityType field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetEntityType() string { - if o == nil || common.IsNil(o.EntityType) { - var ret string +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *DonationPaymentRequest) GetMetadata() map[string]string { + if o == nil || common.IsNil(o.Metadata) { + var ret map[string]string return ret } - return *o.EntityType + return *o.Metadata } -// GetEntityTypeOk returns a tuple with the EntityType field value if set, nil otherwise +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetEntityTypeOk() (*string, bool) { - if o == nil || common.IsNil(o.EntityType) { +func (o *DonationPaymentRequest) GetMetadataOk() (*map[string]string, bool) { + if o == nil || common.IsNil(o.Metadata) { return nil, false } - return o.EntityType, true + return o.Metadata, true } -// HasEntityType returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasEntityType() bool { - if o != nil && !common.IsNil(o.EntityType) { +// HasMetadata returns a boolean if a field has been set. +func (o *DonationPaymentRequest) HasMetadata() bool { + if o != nil && !common.IsNil(o.Metadata) { return true } return false } -// SetEntityType gets a reference to the given string and assigns it to the EntityType field. -func (o *DonationPaymentRequest) SetEntityType(v string) { - o.EntityType = &v +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *DonationPaymentRequest) SetMetadata(v map[string]string) { + o.Metadata = &v } -// GetFraudOffset returns the FraudOffset field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetFraudOffset() int32 { - if o == nil || common.IsNil(o.FraudOffset) { - var ret int32 +// GetMpiData returns the MpiData field value if set, zero value otherwise. +func (o *DonationPaymentRequest) GetMpiData() ThreeDSecureData { + if o == nil || common.IsNil(o.MpiData) { + var ret ThreeDSecureData return ret } - return *o.FraudOffset + return *o.MpiData } -// GetFraudOffsetOk returns a tuple with the FraudOffset field value if set, nil otherwise +// GetMpiDataOk returns a tuple with the MpiData field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetFraudOffsetOk() (*int32, bool) { - if o == nil || common.IsNil(o.FraudOffset) { +func (o *DonationPaymentRequest) GetMpiDataOk() (*ThreeDSecureData, bool) { + if o == nil || common.IsNil(o.MpiData) { return nil, false } - return o.FraudOffset, true + return o.MpiData, true } -// HasFraudOffset returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasFraudOffset() bool { - if o != nil && !common.IsNil(o.FraudOffset) { +// HasMpiData returns a boolean if a field has been set. +func (o *DonationPaymentRequest) HasMpiData() bool { + if o != nil && !common.IsNil(o.MpiData) { return true } return false } -// SetFraudOffset gets a reference to the given int32 and assigns it to the FraudOffset field. -func (o *DonationPaymentRequest) SetFraudOffset(v int32) { - o.FraudOffset = &v +// SetMpiData gets a reference to the given ThreeDSecureData and assigns it to the MpiData field. +func (o *DonationPaymentRequest) SetMpiData(v ThreeDSecureData) { + o.MpiData = &v } -// GetFundOrigin returns the FundOrigin field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetFundOrigin() FundOrigin { - if o == nil || common.IsNil(o.FundOrigin) { - var ret FundOrigin +// GetOrigin returns the Origin field value if set, zero value otherwise. +func (o *DonationPaymentRequest) GetOrigin() string { + if o == nil || common.IsNil(o.Origin) { + var ret string return ret } - return *o.FundOrigin + return *o.Origin } -// GetFundOriginOk returns a tuple with the FundOrigin field value if set, nil otherwise +// GetOriginOk returns a tuple with the Origin field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetFundOriginOk() (*FundOrigin, bool) { - if o == nil || common.IsNil(o.FundOrigin) { +func (o *DonationPaymentRequest) GetOriginOk() (*string, bool) { + if o == nil || common.IsNil(o.Origin) { return nil, false } - return o.FundOrigin, true + return o.Origin, true } -// HasFundOrigin returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasFundOrigin() bool { - if o != nil && !common.IsNil(o.FundOrigin) { +// HasOrigin returns a boolean if a field has been set. +func (o *DonationPaymentRequest) HasOrigin() bool { + if o != nil && !common.IsNil(o.Origin) { return true } return false } -// SetFundOrigin gets a reference to the given FundOrigin and assigns it to the FundOrigin field. -func (o *DonationPaymentRequest) SetFundOrigin(v FundOrigin) { - o.FundOrigin = &v +// SetOrigin gets a reference to the given string and assigns it to the Origin field. +func (o *DonationPaymentRequest) SetOrigin(v string) { + o.Origin = &v } -// GetFundRecipient returns the FundRecipient field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetFundRecipient() FundRecipient { - if o == nil || common.IsNil(o.FundRecipient) { - var ret FundRecipient +// GetPaymentMethod returns the PaymentMethod field value +func (o *DonationPaymentRequest) GetPaymentMethod() DonationPaymentMethod { + if o == nil { + var ret DonationPaymentMethod return ret } - return *o.FundRecipient + + return o.PaymentMethod } -// GetFundRecipientOk returns a tuple with the FundRecipient field value if set, nil otherwise +// GetPaymentMethodOk returns a tuple with the PaymentMethod field value // and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetFundRecipientOk() (*FundRecipient, bool) { - if o == nil || common.IsNil(o.FundRecipient) { +func (o *DonationPaymentRequest) GetPaymentMethodOk() (*DonationPaymentMethod, bool) { + if o == nil { return nil, false } - return o.FundRecipient, true -} - -// HasFundRecipient returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasFundRecipient() bool { - if o != nil && !common.IsNil(o.FundRecipient) { - return true - } - - return false + return &o.PaymentMethod, true } -// SetFundRecipient gets a reference to the given FundRecipient and assigns it to the FundRecipient field. -func (o *DonationPaymentRequest) SetFundRecipient(v FundRecipient) { - o.FundRecipient = &v +// SetPaymentMethod sets field value +func (o *DonationPaymentRequest) SetPaymentMethod(v DonationPaymentMethod) { + o.PaymentMethod = v } -// GetFundingSource returns the FundingSource field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetFundingSource() string { - if o == nil || common.IsNil(o.FundingSource) { +// GetRecurringProcessingModel returns the RecurringProcessingModel field value if set, zero value otherwise. +func (o *DonationPaymentRequest) GetRecurringProcessingModel() string { + if o == nil || common.IsNil(o.RecurringProcessingModel) { var ret string return ret } - return *o.FundingSource + return *o.RecurringProcessingModel } -// GetFundingSourceOk returns a tuple with the FundingSource field value if set, nil otherwise +// GetRecurringProcessingModelOk returns a tuple with the RecurringProcessingModel field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetFundingSourceOk() (*string, bool) { - if o == nil || common.IsNil(o.FundingSource) { +func (o *DonationPaymentRequest) GetRecurringProcessingModelOk() (*string, bool) { + if o == nil || common.IsNil(o.RecurringProcessingModel) { return nil, false } - return o.FundingSource, true + return o.RecurringProcessingModel, true } -// HasFundingSource returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasFundingSource() bool { - if o != nil && !common.IsNil(o.FundingSource) { +// HasRecurringProcessingModel returns a boolean if a field has been set. +func (o *DonationPaymentRequest) HasRecurringProcessingModel() bool { + if o != nil && !common.IsNil(o.RecurringProcessingModel) { return true } return false } -// SetFundingSource gets a reference to the given string and assigns it to the FundingSource field. -func (o *DonationPaymentRequest) SetFundingSource(v string) { - o.FundingSource = &v +// SetRecurringProcessingModel gets a reference to the given string and assigns it to the RecurringProcessingModel field. +func (o *DonationPaymentRequest) SetRecurringProcessingModel(v string) { + o.RecurringProcessingModel = &v } -// GetIndustryUsage returns the IndustryUsage field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetIndustryUsage() string { - if o == nil || common.IsNil(o.IndustryUsage) { - var ret string - return ret - } - return *o.IndustryUsage -} - -// GetIndustryUsageOk returns a tuple with the IndustryUsage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetIndustryUsageOk() (*string, bool) { - if o == nil || common.IsNil(o.IndustryUsage) { - return nil, false - } - return o.IndustryUsage, true -} - -// HasIndustryUsage returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasIndustryUsage() bool { - if o != nil && !common.IsNil(o.IndustryUsage) { - return true - } - - return false -} - -// SetIndustryUsage gets a reference to the given string and assigns it to the IndustryUsage field. -func (o *DonationPaymentRequest) SetIndustryUsage(v string) { - o.IndustryUsage = &v -} - -// GetInstallments returns the Installments field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetInstallments() Installments { - if o == nil || common.IsNil(o.Installments) { - var ret Installments - return ret - } - return *o.Installments -} - -// GetInstallmentsOk returns a tuple with the Installments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetInstallmentsOk() (*Installments, bool) { - if o == nil || common.IsNil(o.Installments) { - return nil, false - } - return o.Installments, true -} - -// HasInstallments returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasInstallments() bool { - if o != nil && !common.IsNil(o.Installments) { - return true - } - - return false -} - -// SetInstallments gets a reference to the given Installments and assigns it to the Installments field. -func (o *DonationPaymentRequest) SetInstallments(v Installments) { - o.Installments = &v -} - -// GetLineItems returns the LineItems field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetLineItems() []LineItem { - if o == nil || common.IsNil(o.LineItems) { - var ret []LineItem - return ret - } - return o.LineItems -} - -// GetLineItemsOk returns a tuple with the LineItems field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetLineItemsOk() ([]LineItem, bool) { - if o == nil || common.IsNil(o.LineItems) { - return nil, false - } - return o.LineItems, true -} - -// HasLineItems returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasLineItems() bool { - if o != nil && !common.IsNil(o.LineItems) { - return true - } - - return false -} - -// SetLineItems gets a reference to the given []LineItem and assigns it to the LineItems field. -func (o *DonationPaymentRequest) SetLineItems(v []LineItem) { - o.LineItems = v -} - -// GetLocalizedShopperStatement returns the LocalizedShopperStatement field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetLocalizedShopperStatement() map[string]string { - if o == nil || common.IsNil(o.LocalizedShopperStatement) { - var ret map[string]string - return ret - } - return *o.LocalizedShopperStatement -} - -// GetLocalizedShopperStatementOk returns a tuple with the LocalizedShopperStatement field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetLocalizedShopperStatementOk() (*map[string]string, bool) { - if o == nil || common.IsNil(o.LocalizedShopperStatement) { - return nil, false - } - return o.LocalizedShopperStatement, true -} - -// HasLocalizedShopperStatement returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasLocalizedShopperStatement() bool { - if o != nil && !common.IsNil(o.LocalizedShopperStatement) { - return true - } - - return false -} - -// SetLocalizedShopperStatement gets a reference to the given map[string]string and assigns it to the LocalizedShopperStatement field. -func (o *DonationPaymentRequest) SetLocalizedShopperStatement(v map[string]string) { - o.LocalizedShopperStatement = &v -} - -// GetMandate returns the Mandate field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetMandate() Mandate { - if o == nil || common.IsNil(o.Mandate) { - var ret Mandate - return ret - } - return *o.Mandate -} - -// GetMandateOk returns a tuple with the Mandate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetMandateOk() (*Mandate, bool) { - if o == nil || common.IsNil(o.Mandate) { - return nil, false - } - return o.Mandate, true -} - -// HasMandate returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasMandate() bool { - if o != nil && !common.IsNil(o.Mandate) { - return true - } - - return false -} - -// SetMandate gets a reference to the given Mandate and assigns it to the Mandate field. -func (o *DonationPaymentRequest) SetMandate(v Mandate) { - o.Mandate = &v -} - -// GetMcc returns the Mcc field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetMcc() string { - if o == nil || common.IsNil(o.Mcc) { - var ret string - return ret - } - return *o.Mcc -} - -// GetMccOk returns a tuple with the Mcc field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetMccOk() (*string, bool) { - if o == nil || common.IsNil(o.Mcc) { - return nil, false - } - return o.Mcc, true -} - -// HasMcc returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasMcc() bool { - if o != nil && !common.IsNil(o.Mcc) { - return true - } - - return false -} - -// SetMcc gets a reference to the given string and assigns it to the Mcc field. -func (o *DonationPaymentRequest) SetMcc(v string) { - o.Mcc = &v -} - -// GetMerchantAccount returns the MerchantAccount field value -func (o *DonationPaymentRequest) GetMerchantAccount() string { - if o == nil { - var ret string - return ret - } - - return o.MerchantAccount -} - -// GetMerchantAccountOk returns a tuple with the MerchantAccount field value -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetMerchantAccountOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.MerchantAccount, true -} - -// SetMerchantAccount sets field value -func (o *DonationPaymentRequest) SetMerchantAccount(v string) { - o.MerchantAccount = v -} - -// GetMerchantOrderReference returns the MerchantOrderReference field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetMerchantOrderReference() string { - if o == nil || common.IsNil(o.MerchantOrderReference) { - var ret string - return ret - } - return *o.MerchantOrderReference -} - -// GetMerchantOrderReferenceOk returns a tuple with the MerchantOrderReference field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetMerchantOrderReferenceOk() (*string, bool) { - if o == nil || common.IsNil(o.MerchantOrderReference) { - return nil, false - } - return o.MerchantOrderReference, true -} - -// HasMerchantOrderReference returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasMerchantOrderReference() bool { - if o != nil && !common.IsNil(o.MerchantOrderReference) { - return true - } - - return false -} - -// SetMerchantOrderReference gets a reference to the given string and assigns it to the MerchantOrderReference field. -func (o *DonationPaymentRequest) SetMerchantOrderReference(v string) { - o.MerchantOrderReference = &v -} - -// GetMerchantRiskIndicator returns the MerchantRiskIndicator field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetMerchantRiskIndicator() MerchantRiskIndicator { - if o == nil || common.IsNil(o.MerchantRiskIndicator) { - var ret MerchantRiskIndicator - return ret - } - return *o.MerchantRiskIndicator -} - -// GetMerchantRiskIndicatorOk returns a tuple with the MerchantRiskIndicator field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetMerchantRiskIndicatorOk() (*MerchantRiskIndicator, bool) { - if o == nil || common.IsNil(o.MerchantRiskIndicator) { - return nil, false - } - return o.MerchantRiskIndicator, true -} - -// HasMerchantRiskIndicator returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasMerchantRiskIndicator() bool { - if o != nil && !common.IsNil(o.MerchantRiskIndicator) { - return true - } - - return false -} - -// SetMerchantRiskIndicator gets a reference to the given MerchantRiskIndicator and assigns it to the MerchantRiskIndicator field. -func (o *DonationPaymentRequest) SetMerchantRiskIndicator(v MerchantRiskIndicator) { - o.MerchantRiskIndicator = &v -} - -// GetMetadata returns the Metadata field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetMetadata() map[string]string { - if o == nil || common.IsNil(o.Metadata) { - var ret map[string]string - return ret - } - return *o.Metadata -} - -// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetMetadataOk() (*map[string]string, bool) { - if o == nil || common.IsNil(o.Metadata) { - return nil, false - } - return o.Metadata, true -} - -// HasMetadata returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasMetadata() bool { - if o != nil && !common.IsNil(o.Metadata) { - return true - } - - return false -} - -// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. -func (o *DonationPaymentRequest) SetMetadata(v map[string]string) { - o.Metadata = &v -} - -// GetMpiData returns the MpiData field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetMpiData() ThreeDSecureData { - if o == nil || common.IsNil(o.MpiData) { - var ret ThreeDSecureData - return ret - } - return *o.MpiData -} - -// GetMpiDataOk returns a tuple with the MpiData field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetMpiDataOk() (*ThreeDSecureData, bool) { - if o == nil || common.IsNil(o.MpiData) { - return nil, false - } - return o.MpiData, true -} - -// HasMpiData returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasMpiData() bool { - if o != nil && !common.IsNil(o.MpiData) { - return true - } - - return false -} - -// SetMpiData gets a reference to the given ThreeDSecureData and assigns it to the MpiData field. -func (o *DonationPaymentRequest) SetMpiData(v ThreeDSecureData) { - o.MpiData = &v -} - -// GetOrder returns the Order field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetOrder() EncryptedOrderData { - if o == nil || common.IsNil(o.Order) { - var ret EncryptedOrderData - return ret - } - return *o.Order -} - -// GetOrderOk returns a tuple with the Order field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetOrderOk() (*EncryptedOrderData, bool) { - if o == nil || common.IsNil(o.Order) { - return nil, false - } - return o.Order, true -} - -// HasOrder returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasOrder() bool { - if o != nil && !common.IsNil(o.Order) { - return true - } - - return false -} - -// SetOrder gets a reference to the given EncryptedOrderData and assigns it to the Order field. -func (o *DonationPaymentRequest) SetOrder(v EncryptedOrderData) { - o.Order = &v -} - -// GetOrderReference returns the OrderReference field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetOrderReference() string { - if o == nil || common.IsNil(o.OrderReference) { - var ret string - return ret - } - return *o.OrderReference -} - -// GetOrderReferenceOk returns a tuple with the OrderReference field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetOrderReferenceOk() (*string, bool) { - if o == nil || common.IsNil(o.OrderReference) { - return nil, false - } - return o.OrderReference, true -} - -// HasOrderReference returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasOrderReference() bool { - if o != nil && !common.IsNil(o.OrderReference) { - return true - } - - return false -} - -// SetOrderReference gets a reference to the given string and assigns it to the OrderReference field. -func (o *DonationPaymentRequest) SetOrderReference(v string) { - o.OrderReference = &v -} - -// GetOrigin returns the Origin field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetOrigin() string { - if o == nil || common.IsNil(o.Origin) { - var ret string - return ret - } - return *o.Origin -} - -// GetOriginOk returns a tuple with the Origin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetOriginOk() (*string, bool) { - if o == nil || common.IsNil(o.Origin) { - return nil, false - } - return o.Origin, true -} - -// HasOrigin returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasOrigin() bool { - if o != nil && !common.IsNil(o.Origin) { - return true - } - - return false -} - -// SetOrigin gets a reference to the given string and assigns it to the Origin field. -func (o *DonationPaymentRequest) SetOrigin(v string) { - o.Origin = &v -} - -// GetPaymentMethod returns the PaymentMethod field value -func (o *DonationPaymentRequest) GetPaymentMethod() DonationPaymentMethod { - if o == nil { - var ret DonationPaymentMethod - return ret - } - - return o.PaymentMethod -} - -// GetPaymentMethodOk returns a tuple with the PaymentMethod field value -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetPaymentMethodOk() (*DonationPaymentMethod, bool) { - if o == nil { - return nil, false - } - return &o.PaymentMethod, true -} - -// SetPaymentMethod sets field value -func (o *DonationPaymentRequest) SetPaymentMethod(v DonationPaymentMethod) { - o.PaymentMethod = v -} - -// GetPlatformChargebackLogic returns the PlatformChargebackLogic field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetPlatformChargebackLogic() PlatformChargebackLogic { - if o == nil || common.IsNil(o.PlatformChargebackLogic) { - var ret PlatformChargebackLogic - return ret - } - return *o.PlatformChargebackLogic -} - -// GetPlatformChargebackLogicOk returns a tuple with the PlatformChargebackLogic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetPlatformChargebackLogicOk() (*PlatformChargebackLogic, bool) { - if o == nil || common.IsNil(o.PlatformChargebackLogic) { - return nil, false - } - return o.PlatformChargebackLogic, true -} - -// HasPlatformChargebackLogic returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasPlatformChargebackLogic() bool { - if o != nil && !common.IsNil(o.PlatformChargebackLogic) { - return true - } - - return false -} - -// SetPlatformChargebackLogic gets a reference to the given PlatformChargebackLogic and assigns it to the PlatformChargebackLogic field. -func (o *DonationPaymentRequest) SetPlatformChargebackLogic(v PlatformChargebackLogic) { - o.PlatformChargebackLogic = &v -} - -// GetRecurringExpiry returns the RecurringExpiry field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetRecurringExpiry() string { - if o == nil || common.IsNil(o.RecurringExpiry) { - var ret string - return ret - } - return *o.RecurringExpiry -} - -// GetRecurringExpiryOk returns a tuple with the RecurringExpiry field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetRecurringExpiryOk() (*string, bool) { - if o == nil || common.IsNil(o.RecurringExpiry) { - return nil, false - } - return o.RecurringExpiry, true -} - -// HasRecurringExpiry returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasRecurringExpiry() bool { - if o != nil && !common.IsNil(o.RecurringExpiry) { - return true - } - - return false -} - -// SetRecurringExpiry gets a reference to the given string and assigns it to the RecurringExpiry field. -func (o *DonationPaymentRequest) SetRecurringExpiry(v string) { - o.RecurringExpiry = &v -} - -// GetRecurringFrequency returns the RecurringFrequency field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetRecurringFrequency() string { - if o == nil || common.IsNil(o.RecurringFrequency) { - var ret string - return ret - } - return *o.RecurringFrequency -} - -// GetRecurringFrequencyOk returns a tuple with the RecurringFrequency field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetRecurringFrequencyOk() (*string, bool) { - if o == nil || common.IsNil(o.RecurringFrequency) { - return nil, false - } - return o.RecurringFrequency, true -} - -// HasRecurringFrequency returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasRecurringFrequency() bool { - if o != nil && !common.IsNil(o.RecurringFrequency) { - return true - } - - return false -} - -// SetRecurringFrequency gets a reference to the given string and assigns it to the RecurringFrequency field. -func (o *DonationPaymentRequest) SetRecurringFrequency(v string) { - o.RecurringFrequency = &v -} - -// GetRecurringProcessingModel returns the RecurringProcessingModel field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetRecurringProcessingModel() string { - if o == nil || common.IsNil(o.RecurringProcessingModel) { - var ret string - return ret - } - return *o.RecurringProcessingModel -} - -// GetRecurringProcessingModelOk returns a tuple with the RecurringProcessingModel field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetRecurringProcessingModelOk() (*string, bool) { - if o == nil || common.IsNil(o.RecurringProcessingModel) { - return nil, false - } - return o.RecurringProcessingModel, true -} - -// HasRecurringProcessingModel returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasRecurringProcessingModel() bool { - if o != nil && !common.IsNil(o.RecurringProcessingModel) { - return true - } - - return false -} - -// SetRecurringProcessingModel gets a reference to the given string and assigns it to the RecurringProcessingModel field. -func (o *DonationPaymentRequest) SetRecurringProcessingModel(v string) { - o.RecurringProcessingModel = &v -} - -// GetRedirectFromIssuerMethod returns the RedirectFromIssuerMethod field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetRedirectFromIssuerMethod() string { - if o == nil || common.IsNil(o.RedirectFromIssuerMethod) { +// GetRedirectFromIssuerMethod returns the RedirectFromIssuerMethod field value if set, zero value otherwise. +func (o *DonationPaymentRequest) GetRedirectFromIssuerMethod() string { + if o == nil || common.IsNil(o.RedirectFromIssuerMethod) { var ret string return ret } @@ -1924,70 +1036,6 @@ func (o *DonationPaymentRequest) SetReturnUrl(v string) { o.ReturnUrl = v } -// GetRiskData returns the RiskData field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetRiskData() RiskData { - if o == nil || common.IsNil(o.RiskData) { - var ret RiskData - return ret - } - return *o.RiskData -} - -// GetRiskDataOk returns a tuple with the RiskData field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetRiskDataOk() (*RiskData, bool) { - if o == nil || common.IsNil(o.RiskData) { - return nil, false - } - return o.RiskData, true -} - -// HasRiskData returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasRiskData() bool { - if o != nil && !common.IsNil(o.RiskData) { - return true - } - - return false -} - -// SetRiskData gets a reference to the given RiskData and assigns it to the RiskData field. -func (o *DonationPaymentRequest) SetRiskData(v RiskData) { - o.RiskData = &v -} - -// GetSelectedRecurringDetailReference returns the SelectedRecurringDetailReference field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetSelectedRecurringDetailReference() string { - if o == nil || common.IsNil(o.SelectedRecurringDetailReference) { - var ret string - return ret - } - return *o.SelectedRecurringDetailReference -} - -// GetSelectedRecurringDetailReferenceOk returns a tuple with the SelectedRecurringDetailReference field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetSelectedRecurringDetailReferenceOk() (*string, bool) { - if o == nil || common.IsNil(o.SelectedRecurringDetailReference) { - return nil, false - } - return o.SelectedRecurringDetailReference, true -} - -// HasSelectedRecurringDetailReference returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasSelectedRecurringDetailReference() bool { - if o != nil && !common.IsNil(o.SelectedRecurringDetailReference) { - return true - } - - return false -} - -// SetSelectedRecurringDetailReference gets a reference to the given string and assigns it to the SelectedRecurringDetailReference field. -func (o *DonationPaymentRequest) SetSelectedRecurringDetailReference(v string) { - o.SelectedRecurringDetailReference = &v -} - // GetSessionValidity returns the SessionValidity field value if set, zero value otherwise. func (o *DonationPaymentRequest) GetSessionValidity() string { if o == nil || common.IsNil(o.SessionValidity) { @@ -2212,38 +1260,6 @@ func (o *DonationPaymentRequest) SetShopperReference(v string) { o.ShopperReference = &v } -// GetShopperStatement returns the ShopperStatement field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetShopperStatement() string { - if o == nil || common.IsNil(o.ShopperStatement) { - var ret string - return ret - } - return *o.ShopperStatement -} - -// GetShopperStatementOk returns a tuple with the ShopperStatement field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetShopperStatementOk() (*string, bool) { - if o == nil || common.IsNil(o.ShopperStatement) { - return nil, false - } - return o.ShopperStatement, true -} - -// HasShopperStatement returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasShopperStatement() bool { - if o != nil && !common.IsNil(o.ShopperStatement) { - return true - } - - return false -} - -// SetShopperStatement gets a reference to the given string and assigns it to the ShopperStatement field. -func (o *DonationPaymentRequest) SetShopperStatement(v string) { - o.ShopperStatement = &v -} - // GetSocialSecurityNumber returns the SocialSecurityNumber field value if set, zero value otherwise. func (o *DonationPaymentRequest) GetSocialSecurityNumber() string { if o == nil || common.IsNil(o.SocialSecurityNumber) { @@ -2276,102 +1292,6 @@ func (o *DonationPaymentRequest) SetSocialSecurityNumber(v string) { o.SocialSecurityNumber = &v } -// GetSplits returns the Splits field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetSplits() []Split { - if o == nil || common.IsNil(o.Splits) { - var ret []Split - return ret - } - return o.Splits -} - -// GetSplitsOk returns a tuple with the Splits field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetSplitsOk() ([]Split, bool) { - if o == nil || common.IsNil(o.Splits) { - return nil, false - } - return o.Splits, true -} - -// HasSplits returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasSplits() bool { - if o != nil && !common.IsNil(o.Splits) { - return true - } - - return false -} - -// SetSplits gets a reference to the given []Split and assigns it to the Splits field. -func (o *DonationPaymentRequest) SetSplits(v []Split) { - o.Splits = v -} - -// GetStore returns the Store field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetStore() string { - if o == nil || common.IsNil(o.Store) { - var ret string - return ret - } - return *o.Store -} - -// GetStoreOk returns a tuple with the Store field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetStoreOk() (*string, bool) { - if o == nil || common.IsNil(o.Store) { - return nil, false - } - return o.Store, true -} - -// HasStore returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasStore() bool { - if o != nil && !common.IsNil(o.Store) { - return true - } - - return false -} - -// SetStore gets a reference to the given string and assigns it to the Store field. -func (o *DonationPaymentRequest) SetStore(v string) { - o.Store = &v -} - -// GetStorePaymentMethod returns the StorePaymentMethod field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetStorePaymentMethod() bool { - if o == nil || common.IsNil(o.StorePaymentMethod) { - var ret bool - return ret - } - return *o.StorePaymentMethod -} - -// GetStorePaymentMethodOk returns a tuple with the StorePaymentMethod field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetStorePaymentMethodOk() (*bool, bool) { - if o == nil || common.IsNil(o.StorePaymentMethod) { - return nil, false - } - return o.StorePaymentMethod, true -} - -// HasStorePaymentMethod returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasStorePaymentMethod() bool { - if o != nil && !common.IsNil(o.StorePaymentMethod) { - return true - } - - return false -} - -// SetStorePaymentMethod gets a reference to the given bool and assigns it to the StorePaymentMethod field. -func (o *DonationPaymentRequest) SetStorePaymentMethod(v bool) { - o.StorePaymentMethod = &v -} - // GetTelephoneNumber returns the TelephoneNumber field value if set, zero value otherwise. func (o *DonationPaymentRequest) GetTelephoneNumber() string { if o == nil || common.IsNil(o.TelephoneNumber) { @@ -2405,9 +1325,9 @@ func (o *DonationPaymentRequest) SetTelephoneNumber(v string) { } // GetThreeDS2RequestData returns the ThreeDS2RequestData field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetThreeDS2RequestData() ThreeDS2RequestData2 { +func (o *DonationPaymentRequest) GetThreeDS2RequestData() ThreeDS2RequestFields { if o == nil || common.IsNil(o.ThreeDS2RequestData) { - var ret ThreeDS2RequestData2 + var ret ThreeDS2RequestFields return ret } return *o.ThreeDS2RequestData @@ -2415,7 +1335,7 @@ func (o *DonationPaymentRequest) GetThreeDS2RequestData() ThreeDS2RequestData2 { // GetThreeDS2RequestDataOk returns a tuple with the ThreeDS2RequestData field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetThreeDS2RequestDataOk() (*ThreeDS2RequestData2, bool) { +func (o *DonationPaymentRequest) GetThreeDS2RequestDataOk() (*ThreeDS2RequestFields, bool) { if o == nil || common.IsNil(o.ThreeDS2RequestData) { return nil, false } @@ -2431,8 +1351,8 @@ func (o *DonationPaymentRequest) HasThreeDS2RequestData() bool { return false } -// SetThreeDS2RequestData gets a reference to the given ThreeDS2RequestData2 and assigns it to the ThreeDS2RequestData field. -func (o *DonationPaymentRequest) SetThreeDS2RequestData(v ThreeDS2RequestData2) { +// SetThreeDS2RequestData gets a reference to the given ThreeDS2RequestFields and assigns it to the ThreeDS2RequestData field. +func (o *DonationPaymentRequest) SetThreeDS2RequestData(v ThreeDS2RequestFields) { o.ThreeDS2RequestData = &v } @@ -2471,38 +1391,6 @@ func (o *DonationPaymentRequest) SetThreeDSAuthenticationOnly(v bool) { o.ThreeDSAuthenticationOnly = &v } -// GetTrustedShopper returns the TrustedShopper field value if set, zero value otherwise. -func (o *DonationPaymentRequest) GetTrustedShopper() bool { - if o == nil || common.IsNil(o.TrustedShopper) { - var ret bool - return ret - } - return *o.TrustedShopper -} - -// GetTrustedShopperOk returns a tuple with the TrustedShopper field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DonationPaymentRequest) GetTrustedShopperOk() (*bool, bool) { - if o == nil || common.IsNil(o.TrustedShopper) { - return nil, false - } - return o.TrustedShopper, true -} - -// HasTrustedShopper returns a boolean if a field has been set. -func (o *DonationPaymentRequest) HasTrustedShopper() bool { - if o != nil && !common.IsNil(o.TrustedShopper) { - return true - } - - return false -} - -// SetTrustedShopper gets a reference to the given bool and assigns it to the TrustedShopper field. -func (o *DonationPaymentRequest) SetTrustedShopper(v bool) { - o.TrustedShopper = &v -} - func (o DonationPaymentRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -2516,15 +1404,9 @@ func (o DonationPaymentRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.AccountInfo) { toSerialize["accountInfo"] = o.AccountInfo } - if !common.IsNil(o.AdditionalAmount) { - toSerialize["additionalAmount"] = o.AdditionalAmount - } if !common.IsNil(o.AdditionalData) { toSerialize["additionalData"] = o.AdditionalData } - if !common.IsNil(o.AllowedPaymentMethods) { - toSerialize["allowedPaymentMethods"] = o.AllowedPaymentMethods - } toSerialize["amount"] = o.Amount if !common.IsNil(o.ApplicationInfo) { toSerialize["applicationInfo"] = o.ApplicationInfo @@ -2535,24 +1417,15 @@ func (o DonationPaymentRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.BillingAddress) { toSerialize["billingAddress"] = o.BillingAddress } - if !common.IsNil(o.BlockedPaymentMethods) { - toSerialize["blockedPaymentMethods"] = o.BlockedPaymentMethods - } if !common.IsNil(o.BrowserInfo) { toSerialize["browserInfo"] = o.BrowserInfo } - if !common.IsNil(o.CaptureDelayHours) { - toSerialize["captureDelayHours"] = o.CaptureDelayHours - } if !common.IsNil(o.Channel) { toSerialize["channel"] = o.Channel } if !common.IsNil(o.CheckoutAttemptId) { toSerialize["checkoutAttemptId"] = o.CheckoutAttemptId } - if !common.IsNil(o.Company) { - toSerialize["company"] = o.Company - } if !common.IsNil(o.ConversionId) { toSerialize["conversionId"] = o.ConversionId } @@ -2562,18 +1435,12 @@ func (o DonationPaymentRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.DateOfBirth) { toSerialize["dateOfBirth"] = o.DateOfBirth } - if !common.IsNil(o.DccQuote) { - toSerialize["dccQuote"] = o.DccQuote - } if !common.IsNil(o.DeliverAt) { toSerialize["deliverAt"] = o.DeliverAt } if !common.IsNil(o.DeliveryAddress) { toSerialize["deliveryAddress"] = o.DeliveryAddress } - if !common.IsNil(o.DeliveryDate) { - toSerialize["deliveryDate"] = o.DeliveryDate - } if !common.IsNil(o.DeviceFingerprint) { toSerialize["deviceFingerprint"] = o.DeviceFingerprint } @@ -2584,52 +1451,10 @@ func (o DonationPaymentRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.DonationToken) { toSerialize["donationToken"] = o.DonationToken } - if !common.IsNil(o.EnableOneClick) { - toSerialize["enableOneClick"] = o.EnableOneClick - } - if !common.IsNil(o.EnablePayOut) { - toSerialize["enablePayOut"] = o.EnablePayOut - } - if !common.IsNil(o.EnableRecurring) { - toSerialize["enableRecurring"] = o.EnableRecurring - } - if !common.IsNil(o.EntityType) { - toSerialize["entityType"] = o.EntityType - } - if !common.IsNil(o.FraudOffset) { - toSerialize["fraudOffset"] = o.FraudOffset - } - if !common.IsNil(o.FundOrigin) { - toSerialize["fundOrigin"] = o.FundOrigin - } - if !common.IsNil(o.FundRecipient) { - toSerialize["fundRecipient"] = o.FundRecipient - } - if !common.IsNil(o.FundingSource) { - toSerialize["fundingSource"] = o.FundingSource - } - if !common.IsNil(o.IndustryUsage) { - toSerialize["industryUsage"] = o.IndustryUsage - } - if !common.IsNil(o.Installments) { - toSerialize["installments"] = o.Installments - } if !common.IsNil(o.LineItems) { toSerialize["lineItems"] = o.LineItems } - if !common.IsNil(o.LocalizedShopperStatement) { - toSerialize["localizedShopperStatement"] = o.LocalizedShopperStatement - } - if !common.IsNil(o.Mandate) { - toSerialize["mandate"] = o.Mandate - } - if !common.IsNil(o.Mcc) { - toSerialize["mcc"] = o.Mcc - } toSerialize["merchantAccount"] = o.MerchantAccount - if !common.IsNil(o.MerchantOrderReference) { - toSerialize["merchantOrderReference"] = o.MerchantOrderReference - } if !common.IsNil(o.MerchantRiskIndicator) { toSerialize["merchantRiskIndicator"] = o.MerchantRiskIndicator } @@ -2639,25 +1464,10 @@ func (o DonationPaymentRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.MpiData) { toSerialize["mpiData"] = o.MpiData } - if !common.IsNil(o.Order) { - toSerialize["order"] = o.Order - } - if !common.IsNil(o.OrderReference) { - toSerialize["orderReference"] = o.OrderReference - } if !common.IsNil(o.Origin) { toSerialize["origin"] = o.Origin } toSerialize["paymentMethod"] = o.PaymentMethod - if !common.IsNil(o.PlatformChargebackLogic) { - toSerialize["platformChargebackLogic"] = o.PlatformChargebackLogic - } - if !common.IsNil(o.RecurringExpiry) { - toSerialize["recurringExpiry"] = o.RecurringExpiry - } - if !common.IsNil(o.RecurringFrequency) { - toSerialize["recurringFrequency"] = o.RecurringFrequency - } if !common.IsNil(o.RecurringProcessingModel) { toSerialize["recurringProcessingModel"] = o.RecurringProcessingModel } @@ -2669,12 +1479,6 @@ func (o DonationPaymentRequest) ToMap() (map[string]interface{}, error) { } toSerialize["reference"] = o.Reference toSerialize["returnUrl"] = o.ReturnUrl - if !common.IsNil(o.RiskData) { - toSerialize["riskData"] = o.RiskData - } - if !common.IsNil(o.SelectedRecurringDetailReference) { - toSerialize["selectedRecurringDetailReference"] = o.SelectedRecurringDetailReference - } if !common.IsNil(o.SessionValidity) { toSerialize["sessionValidity"] = o.SessionValidity } @@ -2696,21 +1500,9 @@ func (o DonationPaymentRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.ShopperReference) { toSerialize["shopperReference"] = o.ShopperReference } - if !common.IsNil(o.ShopperStatement) { - toSerialize["shopperStatement"] = o.ShopperStatement - } if !common.IsNil(o.SocialSecurityNumber) { toSerialize["socialSecurityNumber"] = o.SocialSecurityNumber } - if !common.IsNil(o.Splits) { - toSerialize["splits"] = o.Splits - } - if !common.IsNil(o.Store) { - toSerialize["store"] = o.Store - } - if !common.IsNil(o.StorePaymentMethod) { - toSerialize["storePaymentMethod"] = o.StorePaymentMethod - } if !common.IsNil(o.TelephoneNumber) { toSerialize["telephoneNumber"] = o.TelephoneNumber } @@ -2720,9 +1512,6 @@ func (o DonationPaymentRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.ThreeDSAuthenticationOnly) { toSerialize["threeDSAuthenticationOnly"] = o.ThreeDSAuthenticationOnly } - if !common.IsNil(o.TrustedShopper) { - toSerialize["trustedShopper"] = o.TrustedShopper - } return toSerialize, nil } @@ -2771,33 +1560,6 @@ func (o *DonationPaymentRequest) isValidChannel() bool { } return false } -func (o *DonationPaymentRequest) isValidEntityType() bool { - var allowedEnumValues = []string{"NaturalPerson", "CompanyName"} - for _, allowed := range allowedEnumValues { - if o.GetEntityType() == allowed { - return true - } - } - return false -} -func (o *DonationPaymentRequest) isValidFundingSource() bool { - var allowedEnumValues = []string{"debit"} - for _, allowed := range allowedEnumValues { - if o.GetFundingSource() == allowed { - return true - } - } - return false -} -func (o *DonationPaymentRequest) isValidIndustryUsage() bool { - var allowedEnumValues = []string{"delayedCharge", "installment", "noShow"} - for _, allowed := range allowedEnumValues { - if o.GetIndustryUsage() == allowed { - return true - } - } - return false -} func (o *DonationPaymentRequest) isValidRecurringProcessingModel() bool { var allowedEnumValues = []string{"CardOnFile", "Subscription", "UnscheduledCardOnFile"} for _, allowed := range allowedEnumValues { diff --git a/src/checkout/model_donation_payment_response.go b/src/checkout/model_donation_payment_response.go index d8db82794..228939931 100644 --- a/src/checkout/model_donation_payment_response.go +++ b/src/checkout/model_donation_payment_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_dotpay_details.go b/src/checkout/model_dotpay_details.go index d3d9d8794..f5b7f64fc 100644 --- a/src/checkout/model_dotpay_details.go +++ b/src/checkout/model_dotpay_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_dragonpay_details.go b/src/checkout/model_dragonpay_details.go index f36ce0f1c..4defe9c83 100644 --- a/src/checkout/model_dragonpay_details.go +++ b/src/checkout/model_dragonpay_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_econtext_voucher_details.go b/src/checkout/model_econtext_voucher_details.go index a4e4c8bde..da8f5a216 100644 --- a/src/checkout/model_econtext_voucher_details.go +++ b/src/checkout/model_econtext_voucher_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_encrypted_order_data.go b/src/checkout/model_encrypted_order_data.go index 7f8365e7d..c36e39532 100644 --- a/src/checkout/model_encrypted_order_data.go +++ b/src/checkout/model_encrypted_order_data.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_external_platform.go b/src/checkout/model_external_platform.go index 69d3f9f12..058744ed9 100644 --- a/src/checkout/model_external_platform.go +++ b/src/checkout/model_external_platform.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_forex_quote.go b/src/checkout/model_forex_quote.go index 86efca81b..8173e315d 100644 --- a/src/checkout/model_forex_quote.go +++ b/src/checkout/model_forex_quote.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_fraud_check_result.go b/src/checkout/model_fraud_check_result.go index c30a49676..a4dc632f1 100644 --- a/src/checkout/model_fraud_check_result.go +++ b/src/checkout/model_fraud_check_result.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_fraud_result.go b/src/checkout/model_fraud_result.go index 5b7fb8b8e..68c5a7dad 100644 --- a/src/checkout/model_fraud_result.go +++ b/src/checkout/model_fraud_result.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_fund_origin.go b/src/checkout/model_fund_origin.go index 1ca6098af..bf99fba24 100644 --- a/src/checkout/model_fund_origin.go +++ b/src/checkout/model_fund_origin.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_fund_recipient.go b/src/checkout/model_fund_recipient.go index 7ef62fd0c..99223f756 100644 --- a/src/checkout/model_fund_recipient.go +++ b/src/checkout/model_fund_recipient.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_generic_issuer_payment_method_details.go b/src/checkout/model_generic_issuer_payment_method_details.go index 543cece84..666451d09 100644 --- a/src/checkout/model_generic_issuer_payment_method_details.go +++ b/src/checkout/model_generic_issuer_payment_method_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_giropay_details.go b/src/checkout/model_giropay_details.go index 44c7fc96b..e1fd55973 100644 --- a/src/checkout/model_giropay_details.go +++ b/src/checkout/model_giropay_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_google_pay_details.go b/src/checkout/model_google_pay_details.go index 0a7e43e80..3cf6fdd51 100644 --- a/src/checkout/model_google_pay_details.go +++ b/src/checkout/model_google_pay_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_ideal_details.go b/src/checkout/model_ideal_details.go index 3ef0356ff..42f9937d6 100644 --- a/src/checkout/model_ideal_details.go +++ b/src/checkout/model_ideal_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_input_detail.go b/src/checkout/model_input_detail.go index be0c0763a..203b917a3 100644 --- a/src/checkout/model_input_detail.go +++ b/src/checkout/model_input_detail.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_installment_option.go b/src/checkout/model_installment_option.go index 3d145071d..bc5b26fd3 100644 --- a/src/checkout/model_installment_option.go +++ b/src/checkout/model_installment_option.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_installments.go b/src/checkout/model_installments.go index 77c16860d..f59190a17 100644 --- a/src/checkout/model_installments.go +++ b/src/checkout/model_installments.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_installments_number.go b/src/checkout/model_installments_number.go index eb22b09a9..8ad933a9e 100644 --- a/src/checkout/model_installments_number.go +++ b/src/checkout/model_installments_number.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_item.go b/src/checkout/model_item.go index 384b7a5d8..2eca14354 100644 --- a/src/checkout/model_item.go +++ b/src/checkout/model_item.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_klarna_details.go b/src/checkout/model_klarna_details.go index 9195e2ae1..ab8a26ac7 100644 --- a/src/checkout/model_klarna_details.go +++ b/src/checkout/model_klarna_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_line_item.go b/src/checkout/model_line_item.go index a4fcb0dd5..9fc680a1e 100644 --- a/src/checkout/model_line_item.go +++ b/src/checkout/model_line_item.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_list_stored_payment_methods_response.go b/src/checkout/model_list_stored_payment_methods_response.go index 53803d7c1..d9e14e9e4 100644 --- a/src/checkout/model_list_stored_payment_methods_response.go +++ b/src/checkout/model_list_stored_payment_methods_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_mandate.go b/src/checkout/model_mandate.go index c49d6b509..28b1335bf 100644 --- a/src/checkout/model_mandate.go +++ b/src/checkout/model_mandate.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_masterpass_details.go b/src/checkout/model_masterpass_details.go index 9ca5c0aca..d11041abe 100644 --- a/src/checkout/model_masterpass_details.go +++ b/src/checkout/model_masterpass_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_mbway_details.go b/src/checkout/model_mbway_details.go index a302b647d..bbdf301ce 100644 --- a/src/checkout/model_mbway_details.go +++ b/src/checkout/model_mbway_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_merchant_device.go b/src/checkout/model_merchant_device.go index f05d27f0d..87a75fa82 100644 --- a/src/checkout/model_merchant_device.go +++ b/src/checkout/model_merchant_device.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_merchant_risk_indicator.go b/src/checkout/model_merchant_risk_indicator.go index 3bafc3232..6bb10743e 100644 --- a/src/checkout/model_merchant_risk_indicator.go +++ b/src/checkout/model_merchant_risk_indicator.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_mobile_pay_details.go b/src/checkout/model_mobile_pay_details.go index 823a3cbe1..d168dd2b7 100644 --- a/src/checkout/model_mobile_pay_details.go +++ b/src/checkout/model_mobile_pay_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_mol_pay_details.go b/src/checkout/model_mol_pay_details.go index 74c6df331..a21ad59ba 100644 --- a/src/checkout/model_mol_pay_details.go +++ b/src/checkout/model_mol_pay_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_name.go b/src/checkout/model_name.go index b83ef11e0..1dc9c1791 100644 --- a/src/checkout/model_name.go +++ b/src/checkout/model_name.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_open_invoice_details.go b/src/checkout/model_open_invoice_details.go index 8a80ce7a5..8381fb7d8 100644 --- a/src/checkout/model_open_invoice_details.go +++ b/src/checkout/model_open_invoice_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_pay_pal_details.go b/src/checkout/model_pay_pal_details.go index e8e6b0f66..5b6de3eba 100644 --- a/src/checkout/model_pay_pal_details.go +++ b/src/checkout/model_pay_pal_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_pay_u_upi_details.go b/src/checkout/model_pay_u_upi_details.go index 57cf69351..5e749a879 100644 --- a/src/checkout/model_pay_u_upi_details.go +++ b/src/checkout/model_pay_u_upi_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_pay_with_google_details.go b/src/checkout/model_pay_with_google_details.go index 31e83b992..1d71c37cc 100644 --- a/src/checkout/model_pay_with_google_details.go +++ b/src/checkout/model_pay_with_google_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_amount_update_request.go b/src/checkout/model_payment_amount_update_request.go index 620310600..008efec4b 100644 --- a/src/checkout/model_payment_amount_update_request.go +++ b/src/checkout/model_payment_amount_update_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_amount_update_response.go b/src/checkout/model_payment_amount_update_response.go index 03ddc2600..8806a2dd7 100644 --- a/src/checkout/model_payment_amount_update_response.go +++ b/src/checkout/model_payment_amount_update_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,8 @@ type PaymentAmountUpdateResponse struct { Amount Amount `json:"amount"` // The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** IndustryUsage *string `json:"industryUsage,omitempty"` + // Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + LineItems []LineItem `json:"lineItems,omitempty"` // The merchant account that is used to process the payment. MerchantAccount string `json:"merchantAccount"` // The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to update. @@ -115,6 +117,38 @@ func (o *PaymentAmountUpdateResponse) SetIndustryUsage(v string) { o.IndustryUsage = &v } +// GetLineItems returns the LineItems field value if set, zero value otherwise. +func (o *PaymentAmountUpdateResponse) GetLineItems() []LineItem { + if o == nil || common.IsNil(o.LineItems) { + var ret []LineItem + return ret + } + return o.LineItems +} + +// GetLineItemsOk returns a tuple with the LineItems field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentAmountUpdateResponse) GetLineItemsOk() ([]LineItem, bool) { + if o == nil || common.IsNil(o.LineItems) { + return nil, false + } + return o.LineItems, true +} + +// HasLineItems returns a boolean if a field has been set. +func (o *PaymentAmountUpdateResponse) HasLineItems() bool { + if o != nil && !common.IsNil(o.LineItems) { + return true + } + + return false +} + +// SetLineItems gets a reference to the given []LineItem and assigns it to the LineItems field. +func (o *PaymentAmountUpdateResponse) SetLineItems(v []LineItem) { + o.LineItems = v +} + // GetMerchantAccount returns the MerchantAccount field value func (o *PaymentAmountUpdateResponse) GetMerchantAccount() string { if o == nil { @@ -281,6 +315,9 @@ func (o PaymentAmountUpdateResponse) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.IndustryUsage) { toSerialize["industryUsage"] = o.IndustryUsage } + if !common.IsNil(o.LineItems) { + toSerialize["lineItems"] = o.LineItems + } toSerialize["merchantAccount"] = o.MerchantAccount toSerialize["paymentPspReference"] = o.PaymentPspReference toSerialize["pspReference"] = o.PspReference diff --git a/src/checkout/model_payment_cancel_request.go b/src/checkout/model_payment_cancel_request.go index 42aa856c7..97f7579e0 100644 --- a/src/checkout/model_payment_cancel_request.go +++ b/src/checkout/model_payment_cancel_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_cancel_response.go b/src/checkout/model_payment_cancel_response.go index b67e08f2c..5f4e1d121 100644 --- a/src/checkout/model_payment_cancel_response.go +++ b/src/checkout/model_payment_cancel_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_capture_request.go b/src/checkout/model_payment_capture_request.go index 0b1be6715..56e017e33 100644 --- a/src/checkout/model_payment_capture_request.go +++ b/src/checkout/model_payment_capture_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_capture_response.go b/src/checkout/model_payment_capture_response.go index 9fd22ca2c..b6809bdba 100644 --- a/src/checkout/model_payment_capture_response.go +++ b/src/checkout/model_payment_capture_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_completion_details.go b/src/checkout/model_payment_completion_details.go index 3b411e676..b8d0f5b0c 100644 --- a/src/checkout/model_payment_completion_details.go +++ b/src/checkout/model_payment_completion_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_details.go b/src/checkout/model_payment_details.go index 1d8f0c25f..61cb5f947 100644 --- a/src/checkout/model_payment_details.go +++ b/src/checkout/model_payment_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_details_request.go b/src/checkout/model_payment_details_request.go index 5611b4b8d..77cb1205c 100644 --- a/src/checkout/model_payment_details_request.go +++ b/src/checkout/model_payment_details_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_details_response.go b/src/checkout/model_payment_details_response.go index dc8c4ae87..bdb91f6cd 100644 --- a/src/checkout/model_payment_details_response.go +++ b/src/checkout/model_payment_details_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_link_request.go b/src/checkout/model_payment_link_request.go index a8df68948..fc570e9c0 100644 --- a/src/checkout/model_payment_link_request.go +++ b/src/checkout/model_payment_link_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -38,8 +38,8 @@ type PaymentLinkRequest struct { DeliveryAddress *Address `json:"deliveryAddress,omitempty"` // A short description visible on the payment page. Maximum length: 280 characters. Description *string `json:"description,omitempty"` - // The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone designator **Z**: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30Z**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. - ExpiresAt *string `json:"expiresAt,omitempty"` + // The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. + ExpiresAt *time.Time `json:"expiresAt,omitempty"` // A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. InstallmentOptions *map[string]InstallmentOption `json:"installmentOptions,omitempty"` // Price and product information about the purchased items, to be included on the invoice sent to the shopper. This parameter is required for open invoice (_buy now, pay later_) payment methods such Afterpay, Clearpay, Klarna, RatePay, and Zip. @@ -465,9 +465,9 @@ func (o *PaymentLinkRequest) SetDescription(v string) { } // GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise. -func (o *PaymentLinkRequest) GetExpiresAt() string { +func (o *PaymentLinkRequest) GetExpiresAt() time.Time { if o == nil || common.IsNil(o.ExpiresAt) { - var ret string + var ret time.Time return ret } return *o.ExpiresAt @@ -475,7 +475,7 @@ func (o *PaymentLinkRequest) GetExpiresAt() string { // GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PaymentLinkRequest) GetExpiresAtOk() (*string, bool) { +func (o *PaymentLinkRequest) GetExpiresAtOk() (*time.Time, bool) { if o == nil || common.IsNil(o.ExpiresAt) { return nil, false } @@ -491,8 +491,8 @@ func (o *PaymentLinkRequest) HasExpiresAt() bool { return false } -// SetExpiresAt gets a reference to the given string and assigns it to the ExpiresAt field. -func (o *PaymentLinkRequest) SetExpiresAt(v string) { +// SetExpiresAt gets a reference to the given time.Time and assigns it to the ExpiresAt field. +func (o *PaymentLinkRequest) SetExpiresAt(v time.Time) { o.ExpiresAt = &v } diff --git a/src/checkout/model_payment_link_response.go b/src/checkout/model_payment_link_response.go index f947f87b9..8264cbfc7 100644 --- a/src/checkout/model_payment_link_response.go +++ b/src/checkout/model_payment_link_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -38,8 +38,8 @@ type PaymentLinkResponse struct { DeliveryAddress *Address `json:"deliveryAddress,omitempty"` // A short description visible on the payment page. Maximum length: 280 characters. Description *string `json:"description,omitempty"` - // The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone designator **Z**: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30Z**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. - ExpiresAt *string `json:"expiresAt,omitempty"` + // The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. + ExpiresAt *time.Time `json:"expiresAt,omitempty"` // A unique identifier of the payment link. Id string `json:"id"` // A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. @@ -476,9 +476,9 @@ func (o *PaymentLinkResponse) SetDescription(v string) { } // GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise. -func (o *PaymentLinkResponse) GetExpiresAt() string { +func (o *PaymentLinkResponse) GetExpiresAt() time.Time { if o == nil || common.IsNil(o.ExpiresAt) { - var ret string + var ret time.Time return ret } return *o.ExpiresAt @@ -486,7 +486,7 @@ func (o *PaymentLinkResponse) GetExpiresAt() string { // GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PaymentLinkResponse) GetExpiresAtOk() (*string, bool) { +func (o *PaymentLinkResponse) GetExpiresAtOk() (*time.Time, bool) { if o == nil || common.IsNil(o.ExpiresAt) { return nil, false } @@ -502,8 +502,8 @@ func (o *PaymentLinkResponse) HasExpiresAt() bool { return false } -// SetExpiresAt gets a reference to the given string and assigns it to the ExpiresAt field. -func (o *PaymentLinkResponse) SetExpiresAt(v string) { +// SetExpiresAt gets a reference to the given time.Time and assigns it to the ExpiresAt field. +func (o *PaymentLinkResponse) SetExpiresAt(v time.Time) { o.ExpiresAt = &v } diff --git a/src/checkout/model_payment_method.go b/src/checkout/model_payment_method.go index e4da2a998..dec5bb9e9 100644 --- a/src/checkout/model_payment_method.go +++ b/src/checkout/model_payment_method.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_method_group.go b/src/checkout/model_payment_method_group.go index d63032468..af7eb66b7 100644 --- a/src/checkout/model_payment_method_group.go +++ b/src/checkout/model_payment_method_group.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_method_issuer.go b/src/checkout/model_payment_method_issuer.go index e698b0da3..52477c3be 100644 --- a/src/checkout/model_payment_method_issuer.go +++ b/src/checkout/model_payment_method_issuer.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_methods_request.go b/src/checkout/model_payment_methods_request.go index 0a9db2091..07ff9d824 100644 --- a/src/checkout/model_payment_methods_request.go +++ b/src/checkout/model_payment_methods_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_methods_response.go b/src/checkout/model_payment_methods_response.go index 60346fd0a..03703b634 100644 --- a/src/checkout/model_payment_methods_response.go +++ b/src/checkout/model_payment_methods_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_refund_request.go b/src/checkout/model_payment_refund_request.go index 824bf95f1..b46c07486 100644 --- a/src/checkout/model_payment_refund_request.go +++ b/src/checkout/model_payment_refund_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_refund_response.go b/src/checkout/model_payment_refund_response.go index ab108eade..d9fac716d 100644 --- a/src/checkout/model_payment_refund_response.go +++ b/src/checkout/model_payment_refund_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_request.go b/src/checkout/model_payment_request.go index 12d4b4426..dbbf383a6 100644 --- a/src/checkout/model_payment_request.go +++ b/src/checkout/model_payment_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -128,8 +128,8 @@ type PaymentRequest struct { // When true and `shopperReference` is provided, the payment details will be stored. StorePaymentMethod *bool `json:"storePaymentMethod,omitempty"` // The shopper's telephone number. - TelephoneNumber *string `json:"telephoneNumber,omitempty"` - ThreeDS2RequestData *ThreeDS2RequestData2 `json:"threeDS2RequestData,omitempty"` + TelephoneNumber *string `json:"telephoneNumber,omitempty"` + ThreeDS2RequestData *ThreeDS2RequestFields `json:"threeDS2RequestData,omitempty"` // If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. // Deprecated ThreeDSAuthenticationOnly *bool `json:"threeDSAuthenticationOnly,omitempty"` @@ -2178,9 +2178,9 @@ func (o *PaymentRequest) SetTelephoneNumber(v string) { } // GetThreeDS2RequestData returns the ThreeDS2RequestData field value if set, zero value otherwise. -func (o *PaymentRequest) GetThreeDS2RequestData() ThreeDS2RequestData2 { +func (o *PaymentRequest) GetThreeDS2RequestData() ThreeDS2RequestFields { if o == nil || common.IsNil(o.ThreeDS2RequestData) { - var ret ThreeDS2RequestData2 + var ret ThreeDS2RequestFields return ret } return *o.ThreeDS2RequestData @@ -2188,7 +2188,7 @@ func (o *PaymentRequest) GetThreeDS2RequestData() ThreeDS2RequestData2 { // GetThreeDS2RequestDataOk returns a tuple with the ThreeDS2RequestData field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PaymentRequest) GetThreeDS2RequestDataOk() (*ThreeDS2RequestData2, bool) { +func (o *PaymentRequest) GetThreeDS2RequestDataOk() (*ThreeDS2RequestFields, bool) { if o == nil || common.IsNil(o.ThreeDS2RequestData) { return nil, false } @@ -2204,8 +2204,8 @@ func (o *PaymentRequest) HasThreeDS2RequestData() bool { return false } -// SetThreeDS2RequestData gets a reference to the given ThreeDS2RequestData2 and assigns it to the ThreeDS2RequestData field. -func (o *PaymentRequest) SetThreeDS2RequestData(v ThreeDS2RequestData2) { +// SetThreeDS2RequestData gets a reference to the given ThreeDS2RequestFields and assigns it to the ThreeDS2RequestData field. +func (o *PaymentRequest) SetThreeDS2RequestData(v ThreeDS2RequestFields) { o.ThreeDS2RequestData = &v } diff --git a/src/checkout/model_payment_response.go b/src/checkout/model_payment_response.go index a17eec40a..445269d07 100644 --- a/src/checkout/model_payment_response.go +++ b/src/checkout/model_payment_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_response_action.go b/src/checkout/model_payment_response_action.go index be125e42c..01fd48b0a 100644 --- a/src/checkout/model_payment_response_action.go +++ b/src/checkout/model_payment_response_action.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_reversal_request.go b/src/checkout/model_payment_reversal_request.go index 8aed58819..a2a3c1acf 100644 --- a/src/checkout/model_payment_reversal_request.go +++ b/src/checkout/model_payment_reversal_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_reversal_response.go b/src/checkout/model_payment_reversal_response.go index 16f33f6aa..6ac1db3ed 100644 --- a/src/checkout/model_payment_reversal_response.go +++ b/src/checkout/model_payment_reversal_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_setup_request.go b/src/checkout/model_payment_setup_request.go index b1cdb784d..4b3f9aca2 100644 --- a/src/checkout/model_payment_setup_request.go +++ b/src/checkout/model_payment_setup_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_setup_response.go b/src/checkout/model_payment_setup_response.go index c2bbd2297..9f54aabb0 100644 --- a/src/checkout/model_payment_setup_response.go +++ b/src/checkout/model_payment_setup_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_verification_request.go b/src/checkout/model_payment_verification_request.go index b9e55e429..541bb59f2 100644 --- a/src/checkout/model_payment_verification_request.go +++ b/src/checkout/model_payment_verification_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_payment_verification_response.go b/src/checkout/model_payment_verification_response.go index 5e39e03d2..92163443a 100644 --- a/src/checkout/model_payment_verification_response.go +++ b/src/checkout/model_payment_verification_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -32,8 +32,8 @@ type PaymentVerificationResponse struct { // Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). RefusalReasonCode *string `json:"refusalReasonCode,omitempty"` // The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. - ResultCode *string `json:"resultCode,omitempty"` - ServiceError *ServiceError2 `json:"serviceError,omitempty"` + ResultCode *string `json:"resultCode,omitempty"` + ServiceError *ServiceErrorDetails `json:"serviceError,omitempty"` // The shopperLocale value provided in the payment request. ShopperLocale string `json:"shopperLocale"` } @@ -306,9 +306,9 @@ func (o *PaymentVerificationResponse) SetResultCode(v string) { } // GetServiceError returns the ServiceError field value if set, zero value otherwise. -func (o *PaymentVerificationResponse) GetServiceError() ServiceError2 { +func (o *PaymentVerificationResponse) GetServiceError() ServiceErrorDetails { if o == nil || common.IsNil(o.ServiceError) { - var ret ServiceError2 + var ret ServiceErrorDetails return ret } return *o.ServiceError @@ -316,7 +316,7 @@ func (o *PaymentVerificationResponse) GetServiceError() ServiceError2 { // GetServiceErrorOk returns a tuple with the ServiceError field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PaymentVerificationResponse) GetServiceErrorOk() (*ServiceError2, bool) { +func (o *PaymentVerificationResponse) GetServiceErrorOk() (*ServiceErrorDetails, bool) { if o == nil || common.IsNil(o.ServiceError) { return nil, false } @@ -332,8 +332,8 @@ func (o *PaymentVerificationResponse) HasServiceError() bool { return false } -// SetServiceError gets a reference to the given ServiceError2 and assigns it to the ServiceError field. -func (o *PaymentVerificationResponse) SetServiceError(v ServiceError2) { +// SetServiceError gets a reference to the given ServiceErrorDetails and assigns it to the ServiceError field. +func (o *PaymentVerificationResponse) SetServiceError(v ServiceErrorDetails) { o.ServiceError = &v } diff --git a/src/checkout/model_phone.go b/src/checkout/model_phone.go index 506298265..e4c6782a6 100644 --- a/src/checkout/model_phone.go +++ b/src/checkout/model_phone.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_platform_chargeback_logic.go b/src/checkout/model_platform_chargeback_logic.go index d1d848dd7..0ce5ec062 100644 --- a/src/checkout/model_platform_chargeback_logic.go +++ b/src/checkout/model_platform_chargeback_logic.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_ratepay_details.go b/src/checkout/model_ratepay_details.go index 7ea48485b..8c9e5e8c7 100644 --- a/src/checkout/model_ratepay_details.go +++ b/src/checkout/model_ratepay_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_recurring.go b/src/checkout/model_recurring.go index ac3c31d9f..69f39fbc5 100644 --- a/src/checkout/model_recurring.go +++ b/src/checkout/model_recurring.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -283,7 +283,7 @@ func (o *Recurring) isValidContract() bool { return false } func (o *Recurring) isValidTokenService() bool { - var allowedEnumValues = []string{"VISATOKENSERVICE", "MCTOKENSERVICE"} + var allowedEnumValues = []string{"VISATOKENSERVICE", "MCTOKENSERVICE", "AMEXTOKENSERVICE", "TOKEN_SHARING"} for _, allowed := range allowedEnumValues { if o.GetTokenService() == allowed { return true diff --git a/src/checkout/model_recurring_detail.go b/src/checkout/model_recurring_detail.go index 68cce8c0e..7298af584 100644 --- a/src/checkout/model_recurring_detail.go +++ b/src/checkout/model_recurring_detail.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_response_additional_data3_d_secure.go b/src/checkout/model_response_additional_data3_d_secure.go index a080bfb70..bacbd5342 100644 --- a/src/checkout/model_response_additional_data3_d_secure.go +++ b/src/checkout/model_response_additional_data3_d_secure.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_response_additional_data_billing_address.go b/src/checkout/model_response_additional_data_billing_address.go index 8eb734b8a..bd146627c 100644 --- a/src/checkout/model_response_additional_data_billing_address.go +++ b/src/checkout/model_response_additional_data_billing_address.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_response_additional_data_card.go b/src/checkout/model_response_additional_data_card.go index 08dd30926..5c3746eed 100644 --- a/src/checkout/model_response_additional_data_card.go +++ b/src/checkout/model_response_additional_data_card.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_response_additional_data_common.go b/src/checkout/model_response_additional_data_common.go index 056b1d287..62215a14e 100644 --- a/src/checkout/model_response_additional_data_common.go +++ b/src/checkout/model_response_additional_data_common.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_response_additional_data_installments.go b/src/checkout/model_response_additional_data_installments.go index 0df330641..a75ae1701 100644 --- a/src/checkout/model_response_additional_data_installments.go +++ b/src/checkout/model_response_additional_data_installments.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_response_additional_data_network_tokens.go b/src/checkout/model_response_additional_data_network_tokens.go index c3ecac83f..aac040f99 100644 --- a/src/checkout/model_response_additional_data_network_tokens.go +++ b/src/checkout/model_response_additional_data_network_tokens.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_response_additional_data_opi.go b/src/checkout/model_response_additional_data_opi.go index a508fb410..aede45fa8 100644 --- a/src/checkout/model_response_additional_data_opi.go +++ b/src/checkout/model_response_additional_data_opi.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_response_additional_data_sepa.go b/src/checkout/model_response_additional_data_sepa.go index ddf97cdc2..fb44dfb92 100644 --- a/src/checkout/model_response_additional_data_sepa.go +++ b/src/checkout/model_response_additional_data_sepa.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_response_payment_method.go b/src/checkout/model_response_payment_method.go index 940d023c5..61c1cc867 100644 --- a/src/checkout/model_response_payment_method.go +++ b/src/checkout/model_response_payment_method.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_risk_data.go b/src/checkout/model_risk_data.go index faa9b8cdd..c754d1987 100644 --- a/src/checkout/model_risk_data.go +++ b/src/checkout/model_risk_data.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_samsung_pay_details.go b/src/checkout/model_samsung_pay_details.go index 61056f9ac..685e7fc9b 100644 --- a/src/checkout/model_samsung_pay_details.go +++ b/src/checkout/model_samsung_pay_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_sdk_ephem_pub_key.go b/src/checkout/model_sdk_ephem_pub_key.go index 9392ec140..0e53e9a62 100644 --- a/src/checkout/model_sdk_ephem_pub_key.go +++ b/src/checkout/model_sdk_ephem_pub_key.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_sepa_direct_debit_details.go b/src/checkout/model_sepa_direct_debit_details.go index c05935083..e6ca475e0 100644 --- a/src/checkout/model_sepa_direct_debit_details.go +++ b/src/checkout/model_sepa_direct_debit_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_service_error.go b/src/checkout/model_service_error.go index eaa0fd3e9..81e78e0ee 100644 --- a/src/checkout/model_service_error.go +++ b/src/checkout/model_service_error.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_service_error_2.go b/src/checkout/model_service_error_details.go similarity index 65% rename from src/checkout/model_service_error_2.go rename to src/checkout/model_service_error_details.go index faceec59e..95fb00855 100644 --- a/src/checkout/model_service_error_2.go +++ b/src/checkout/model_service_error_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -14,36 +14,36 @@ import ( "github.com/adyen/adyen-go-api-library/v8/src/common" ) -// checks if the ServiceError2 type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &ServiceError2{} +// checks if the ServiceErrorDetails type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &ServiceErrorDetails{} -// ServiceError2 struct for ServiceError2 -type ServiceError2 struct { +// ServiceErrorDetails struct for ServiceErrorDetails +type ServiceErrorDetails struct { ErrorCode *string `json:"errorCode,omitempty"` ErrorType *string `json:"errorType,omitempty"` Message *string `json:"message,omitempty"` PspReference *string `json:"pspReference,omitempty"` } -// NewServiceError2 instantiates a new ServiceError2 object +// NewServiceErrorDetails instantiates a new ServiceErrorDetails 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 NewServiceError2() *ServiceError2 { - this := ServiceError2{} +func NewServiceErrorDetails() *ServiceErrorDetails { + this := ServiceErrorDetails{} return &this } -// NewServiceError2WithDefaults instantiates a new ServiceError2 object +// NewServiceErrorDetailsWithDefaults instantiates a new ServiceErrorDetails 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 NewServiceError2WithDefaults() *ServiceError2 { - this := ServiceError2{} +func NewServiceErrorDetailsWithDefaults() *ServiceErrorDetails { + this := ServiceErrorDetails{} return &this } // GetErrorCode returns the ErrorCode field value if set, zero value otherwise. -func (o *ServiceError2) GetErrorCode() string { +func (o *ServiceErrorDetails) GetErrorCode() string { if o == nil || common.IsNil(o.ErrorCode) { var ret string return ret @@ -53,7 +53,7 @@ func (o *ServiceError2) GetErrorCode() string { // GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ServiceError2) GetErrorCodeOk() (*string, bool) { +func (o *ServiceErrorDetails) GetErrorCodeOk() (*string, bool) { if o == nil || common.IsNil(o.ErrorCode) { return nil, false } @@ -61,7 +61,7 @@ func (o *ServiceError2) GetErrorCodeOk() (*string, bool) { } // HasErrorCode returns a boolean if a field has been set. -func (o *ServiceError2) HasErrorCode() bool { +func (o *ServiceErrorDetails) HasErrorCode() bool { if o != nil && !common.IsNil(o.ErrorCode) { return true } @@ -70,12 +70,12 @@ func (o *ServiceError2) HasErrorCode() bool { } // SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field. -func (o *ServiceError2) SetErrorCode(v string) { +func (o *ServiceErrorDetails) SetErrorCode(v string) { o.ErrorCode = &v } // GetErrorType returns the ErrorType field value if set, zero value otherwise. -func (o *ServiceError2) GetErrorType() string { +func (o *ServiceErrorDetails) GetErrorType() string { if o == nil || common.IsNil(o.ErrorType) { var ret string return ret @@ -85,7 +85,7 @@ func (o *ServiceError2) GetErrorType() string { // GetErrorTypeOk returns a tuple with the ErrorType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ServiceError2) GetErrorTypeOk() (*string, bool) { +func (o *ServiceErrorDetails) GetErrorTypeOk() (*string, bool) { if o == nil || common.IsNil(o.ErrorType) { return nil, false } @@ -93,7 +93,7 @@ func (o *ServiceError2) GetErrorTypeOk() (*string, bool) { } // HasErrorType returns a boolean if a field has been set. -func (o *ServiceError2) HasErrorType() bool { +func (o *ServiceErrorDetails) HasErrorType() bool { if o != nil && !common.IsNil(o.ErrorType) { return true } @@ -102,12 +102,12 @@ func (o *ServiceError2) HasErrorType() bool { } // SetErrorType gets a reference to the given string and assigns it to the ErrorType field. -func (o *ServiceError2) SetErrorType(v string) { +func (o *ServiceErrorDetails) SetErrorType(v string) { o.ErrorType = &v } // GetMessage returns the Message field value if set, zero value otherwise. -func (o *ServiceError2) GetMessage() string { +func (o *ServiceErrorDetails) GetMessage() string { if o == nil || common.IsNil(o.Message) { var ret string return ret @@ -117,7 +117,7 @@ func (o *ServiceError2) GetMessage() string { // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ServiceError2) GetMessageOk() (*string, bool) { +func (o *ServiceErrorDetails) GetMessageOk() (*string, bool) { if o == nil || common.IsNil(o.Message) { return nil, false } @@ -125,7 +125,7 @@ func (o *ServiceError2) GetMessageOk() (*string, bool) { } // HasMessage returns a boolean if a field has been set. -func (o *ServiceError2) HasMessage() bool { +func (o *ServiceErrorDetails) HasMessage() bool { if o != nil && !common.IsNil(o.Message) { return true } @@ -134,12 +134,12 @@ func (o *ServiceError2) HasMessage() bool { } // SetMessage gets a reference to the given string and assigns it to the Message field. -func (o *ServiceError2) SetMessage(v string) { +func (o *ServiceErrorDetails) SetMessage(v string) { o.Message = &v } // GetPspReference returns the PspReference field value if set, zero value otherwise. -func (o *ServiceError2) GetPspReference() string { +func (o *ServiceErrorDetails) GetPspReference() string { if o == nil || common.IsNil(o.PspReference) { var ret string return ret @@ -149,7 +149,7 @@ func (o *ServiceError2) GetPspReference() string { // GetPspReferenceOk returns a tuple with the PspReference field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ServiceError2) GetPspReferenceOk() (*string, bool) { +func (o *ServiceErrorDetails) GetPspReferenceOk() (*string, bool) { if o == nil || common.IsNil(o.PspReference) { return nil, false } @@ -157,7 +157,7 @@ func (o *ServiceError2) GetPspReferenceOk() (*string, bool) { } // HasPspReference returns a boolean if a field has been set. -func (o *ServiceError2) HasPspReference() bool { +func (o *ServiceErrorDetails) HasPspReference() bool { if o != nil && !common.IsNil(o.PspReference) { return true } @@ -166,11 +166,11 @@ func (o *ServiceError2) HasPspReference() bool { } // SetPspReference gets a reference to the given string and assigns it to the PspReference field. -func (o *ServiceError2) SetPspReference(v string) { +func (o *ServiceErrorDetails) SetPspReference(v string) { o.PspReference = &v } -func (o ServiceError2) MarshalJSON() ([]byte, error) { +func (o ServiceErrorDetails) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -178,7 +178,7 @@ func (o ServiceError2) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o ServiceError2) ToMap() (map[string]interface{}, error) { +func (o ServiceErrorDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !common.IsNil(o.ErrorCode) { toSerialize["errorCode"] = o.ErrorCode @@ -195,38 +195,38 @@ func (o ServiceError2) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -type NullableServiceError2 struct { - value *ServiceError2 +type NullableServiceErrorDetails struct { + value *ServiceErrorDetails isSet bool } -func (v NullableServiceError2) Get() *ServiceError2 { +func (v NullableServiceErrorDetails) Get() *ServiceErrorDetails { return v.value } -func (v *NullableServiceError2) Set(val *ServiceError2) { +func (v *NullableServiceErrorDetails) Set(val *ServiceErrorDetails) { v.value = val v.isSet = true } -func (v NullableServiceError2) IsSet() bool { +func (v NullableServiceErrorDetails) IsSet() bool { return v.isSet } -func (v *NullableServiceError2) Unset() { +func (v *NullableServiceErrorDetails) Unset() { v.value = nil v.isSet = false } -func NewNullableServiceError2(val *ServiceError2) *NullableServiceError2 { - return &NullableServiceError2{value: val, isSet: true} +func NewNullableServiceErrorDetails(val *ServiceErrorDetails) *NullableServiceErrorDetails { + return &NullableServiceErrorDetails{value: val, isSet: true} } -func (v NullableServiceError2) MarshalJSON() ([]byte, error) { +func (v NullableServiceErrorDetails) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableServiceError2) UnmarshalJSON(src []byte) error { +func (v *NullableServiceErrorDetails) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/src/checkout/model_session_result_response.go b/src/checkout/model_session_result_response.go index 1ac243fca..e5eae54f8 100644 --- a/src/checkout/model_session_result_response.go +++ b/src/checkout/model_session_result_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_shopper_input.go b/src/checkout/model_shopper_input.go index 802ba47c2..8bba71d5f 100644 --- a/src/checkout/model_shopper_input.go +++ b/src/checkout/model_shopper_input.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_shopper_interaction_device.go b/src/checkout/model_shopper_interaction_device.go index b9cb33650..c5eac1b8e 100644 --- a/src/checkout/model_shopper_interaction_device.go +++ b/src/checkout/model_shopper_interaction_device.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_split.go b/src/checkout/model_split.go index 513463d4f..33a8b594c 100644 --- a/src/checkout/model_split.go +++ b/src/checkout/model_split.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_split_amount.go b/src/checkout/model_split_amount.go index d413fd197..e1dbba771 100644 --- a/src/checkout/model_split_amount.go +++ b/src/checkout/model_split_amount.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_standalone_payment_cancel_request.go b/src/checkout/model_standalone_payment_cancel_request.go index 22d47d117..6e69a66b7 100644 --- a/src/checkout/model_standalone_payment_cancel_request.go +++ b/src/checkout/model_standalone_payment_cancel_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_standalone_payment_cancel_response.go b/src/checkout/model_standalone_payment_cancel_response.go index c6e3a9950..6f2931a78 100644 --- a/src/checkout/model_standalone_payment_cancel_response.go +++ b/src/checkout/model_standalone_payment_cancel_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_stored_details.go b/src/checkout/model_stored_details.go index 9c62555b6..ed45cb4c6 100644 --- a/src/checkout/model_stored_details.go +++ b/src/checkout/model_stored_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_stored_payment_method.go b/src/checkout/model_stored_payment_method.go index 1ea08e3d4..1b99dd393 100644 --- a/src/checkout/model_stored_payment_method.go +++ b/src/checkout/model_stored_payment_method.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_stored_payment_method_details.go b/src/checkout/model_stored_payment_method_details.go index ddbc4a426..035c87a80 100644 --- a/src/checkout/model_stored_payment_method_details.go +++ b/src/checkout/model_stored_payment_method_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_stored_payment_method_resource.go b/src/checkout/model_stored_payment_method_resource.go index 19c53c52b..12a05ebe3 100644 --- a/src/checkout/model_stored_payment_method_resource.go +++ b/src/checkout/model_stored_payment_method_resource.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_sub_input_detail.go b/src/checkout/model_sub_input_detail.go index cd004b1ca..af87aac9b 100644 --- a/src/checkout/model_sub_input_detail.go +++ b/src/checkout/model_sub_input_detail.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_sub_merchant.go b/src/checkout/model_sub_merchant.go index 22509c947..ce4447589 100644 --- a/src/checkout/model_sub_merchant.go +++ b/src/checkout/model_sub_merchant.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_sub_merchant_info.go b/src/checkout/model_sub_merchant_info.go index 91b80c990..4caff73d8 100644 --- a/src/checkout/model_sub_merchant_info.go +++ b/src/checkout/model_sub_merchant_info.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_three_d_secure_data.go b/src/checkout/model_three_d_secure_data.go index ead4a721a..5deb62498 100644 --- a/src/checkout/model_three_d_secure_data.go +++ b/src/checkout/model_three_d_secure_data.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_three_ds2_request_data.go b/src/checkout/model_three_ds2_request_data.go index 82eac06c7..3e7e8b536 100644 --- a/src/checkout/model_three_ds2_request_data.go +++ b/src/checkout/model_three_ds2_request_data.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_three_ds2_request_data_2.go b/src/checkout/model_three_ds2_request_fields.go similarity index 78% rename from src/checkout/model_three_ds2_request_data_2.go rename to src/checkout/model_three_ds2_request_fields.go index 7f355eefb..4bb6a1af0 100644 --- a/src/checkout/model_three_ds2_request_data_2.go +++ b/src/checkout/model_three_ds2_request_fields.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -14,11 +14,11 @@ import ( "github.com/adyen/adyen-go-api-library/v8/src/common" ) -// checks if the ThreeDS2RequestData2 type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &ThreeDS2RequestData2{} +// checks if the ThreeDS2RequestFields type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &ThreeDS2RequestFields{} -// ThreeDS2RequestData2 struct for ThreeDS2RequestData2 -type ThreeDS2RequestData2 struct { +// ThreeDS2RequestFields struct for ThreeDS2RequestFields +type ThreeDS2RequestFields struct { AcctInfo *AcctInfo `json:"acctInfo,omitempty"` // Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit AcctType *string `json:"acctType,omitempty"` @@ -87,12 +87,12 @@ type ThreeDS2RequestData2 struct { WorkPhone *Phone `json:"workPhone,omitempty"` } -// NewThreeDS2RequestData2 instantiates a new ThreeDS2RequestData2 object +// NewThreeDS2RequestFields instantiates a new ThreeDS2RequestFields 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 NewThreeDS2RequestData2() *ThreeDS2RequestData2 { - this := ThreeDS2RequestData2{} +func NewThreeDS2RequestFields() *ThreeDS2RequestFields { + this := ThreeDS2RequestFields{} var authenticationOnly bool = false this.AuthenticationOnly = &authenticationOnly var sdkMaxTimeout int32 = 60 @@ -100,11 +100,11 @@ func NewThreeDS2RequestData2() *ThreeDS2RequestData2 { return &this } -// NewThreeDS2RequestData2WithDefaults instantiates a new ThreeDS2RequestData2 object +// NewThreeDS2RequestFieldsWithDefaults instantiates a new ThreeDS2RequestFields 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 NewThreeDS2RequestData2WithDefaults() *ThreeDS2RequestData2 { - this := ThreeDS2RequestData2{} +func NewThreeDS2RequestFieldsWithDefaults() *ThreeDS2RequestFields { + this := ThreeDS2RequestFields{} var authenticationOnly bool = false this.AuthenticationOnly = &authenticationOnly var sdkMaxTimeout int32 = 60 @@ -113,7 +113,7 @@ func NewThreeDS2RequestData2WithDefaults() *ThreeDS2RequestData2 { } // GetAcctInfo returns the AcctInfo field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetAcctInfo() AcctInfo { +func (o *ThreeDS2RequestFields) GetAcctInfo() AcctInfo { if o == nil || common.IsNil(o.AcctInfo) { var ret AcctInfo return ret @@ -123,7 +123,7 @@ func (o *ThreeDS2RequestData2) GetAcctInfo() AcctInfo { // GetAcctInfoOk returns a tuple with the AcctInfo field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetAcctInfoOk() (*AcctInfo, bool) { +func (o *ThreeDS2RequestFields) GetAcctInfoOk() (*AcctInfo, bool) { if o == nil || common.IsNil(o.AcctInfo) { return nil, false } @@ -131,7 +131,7 @@ func (o *ThreeDS2RequestData2) GetAcctInfoOk() (*AcctInfo, bool) { } // HasAcctInfo returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasAcctInfo() bool { +func (o *ThreeDS2RequestFields) HasAcctInfo() bool { if o != nil && !common.IsNil(o.AcctInfo) { return true } @@ -140,12 +140,12 @@ func (o *ThreeDS2RequestData2) HasAcctInfo() bool { } // SetAcctInfo gets a reference to the given AcctInfo and assigns it to the AcctInfo field. -func (o *ThreeDS2RequestData2) SetAcctInfo(v AcctInfo) { +func (o *ThreeDS2RequestFields) SetAcctInfo(v AcctInfo) { o.AcctInfo = &v } // GetAcctType returns the AcctType field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetAcctType() string { +func (o *ThreeDS2RequestFields) GetAcctType() string { if o == nil || common.IsNil(o.AcctType) { var ret string return ret @@ -155,7 +155,7 @@ func (o *ThreeDS2RequestData2) GetAcctType() string { // GetAcctTypeOk returns a tuple with the AcctType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetAcctTypeOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetAcctTypeOk() (*string, bool) { if o == nil || common.IsNil(o.AcctType) { return nil, false } @@ -163,7 +163,7 @@ func (o *ThreeDS2RequestData2) GetAcctTypeOk() (*string, bool) { } // HasAcctType returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasAcctType() bool { +func (o *ThreeDS2RequestFields) HasAcctType() bool { if o != nil && !common.IsNil(o.AcctType) { return true } @@ -172,12 +172,12 @@ func (o *ThreeDS2RequestData2) HasAcctType() bool { } // SetAcctType gets a reference to the given string and assigns it to the AcctType field. -func (o *ThreeDS2RequestData2) SetAcctType(v string) { +func (o *ThreeDS2RequestFields) SetAcctType(v string) { o.AcctType = &v } // GetAcquirerBIN returns the AcquirerBIN field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetAcquirerBIN() string { +func (o *ThreeDS2RequestFields) GetAcquirerBIN() string { if o == nil || common.IsNil(o.AcquirerBIN) { var ret string return ret @@ -187,7 +187,7 @@ func (o *ThreeDS2RequestData2) GetAcquirerBIN() string { // GetAcquirerBINOk returns a tuple with the AcquirerBIN field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetAcquirerBINOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetAcquirerBINOk() (*string, bool) { if o == nil || common.IsNil(o.AcquirerBIN) { return nil, false } @@ -195,7 +195,7 @@ func (o *ThreeDS2RequestData2) GetAcquirerBINOk() (*string, bool) { } // HasAcquirerBIN returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasAcquirerBIN() bool { +func (o *ThreeDS2RequestFields) HasAcquirerBIN() bool { if o != nil && !common.IsNil(o.AcquirerBIN) { return true } @@ -204,12 +204,12 @@ func (o *ThreeDS2RequestData2) HasAcquirerBIN() bool { } // SetAcquirerBIN gets a reference to the given string and assigns it to the AcquirerBIN field. -func (o *ThreeDS2RequestData2) SetAcquirerBIN(v string) { +func (o *ThreeDS2RequestFields) SetAcquirerBIN(v string) { o.AcquirerBIN = &v } // GetAcquirerMerchantID returns the AcquirerMerchantID field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetAcquirerMerchantID() string { +func (o *ThreeDS2RequestFields) GetAcquirerMerchantID() string { if o == nil || common.IsNil(o.AcquirerMerchantID) { var ret string return ret @@ -219,7 +219,7 @@ func (o *ThreeDS2RequestData2) GetAcquirerMerchantID() string { // GetAcquirerMerchantIDOk returns a tuple with the AcquirerMerchantID field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetAcquirerMerchantIDOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetAcquirerMerchantIDOk() (*string, bool) { if o == nil || common.IsNil(o.AcquirerMerchantID) { return nil, false } @@ -227,7 +227,7 @@ func (o *ThreeDS2RequestData2) GetAcquirerMerchantIDOk() (*string, bool) { } // HasAcquirerMerchantID returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasAcquirerMerchantID() bool { +func (o *ThreeDS2RequestFields) HasAcquirerMerchantID() bool { if o != nil && !common.IsNil(o.AcquirerMerchantID) { return true } @@ -236,12 +236,12 @@ func (o *ThreeDS2RequestData2) HasAcquirerMerchantID() bool { } // SetAcquirerMerchantID gets a reference to the given string and assigns it to the AcquirerMerchantID field. -func (o *ThreeDS2RequestData2) SetAcquirerMerchantID(v string) { +func (o *ThreeDS2RequestFields) SetAcquirerMerchantID(v string) { o.AcquirerMerchantID = &v } // GetAddrMatch returns the AddrMatch field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetAddrMatch() string { +func (o *ThreeDS2RequestFields) GetAddrMatch() string { if o == nil || common.IsNil(o.AddrMatch) { var ret string return ret @@ -251,7 +251,7 @@ func (o *ThreeDS2RequestData2) GetAddrMatch() string { // GetAddrMatchOk returns a tuple with the AddrMatch field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetAddrMatchOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetAddrMatchOk() (*string, bool) { if o == nil || common.IsNil(o.AddrMatch) { return nil, false } @@ -259,7 +259,7 @@ func (o *ThreeDS2RequestData2) GetAddrMatchOk() (*string, bool) { } // HasAddrMatch returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasAddrMatch() bool { +func (o *ThreeDS2RequestFields) HasAddrMatch() bool { if o != nil && !common.IsNil(o.AddrMatch) { return true } @@ -268,13 +268,13 @@ func (o *ThreeDS2RequestData2) HasAddrMatch() bool { } // SetAddrMatch gets a reference to the given string and assigns it to the AddrMatch field. -func (o *ThreeDS2RequestData2) SetAddrMatch(v string) { +func (o *ThreeDS2RequestFields) SetAddrMatch(v string) { o.AddrMatch = &v } // GetAuthenticationOnly returns the AuthenticationOnly field value if set, zero value otherwise. // Deprecated -func (o *ThreeDS2RequestData2) GetAuthenticationOnly() bool { +func (o *ThreeDS2RequestFields) GetAuthenticationOnly() bool { if o == nil || common.IsNil(o.AuthenticationOnly) { var ret bool return ret @@ -285,7 +285,7 @@ func (o *ThreeDS2RequestData2) GetAuthenticationOnly() bool { // GetAuthenticationOnlyOk returns a tuple with the AuthenticationOnly field value if set, nil otherwise // and a boolean to check if the value has been set. // Deprecated -func (o *ThreeDS2RequestData2) GetAuthenticationOnlyOk() (*bool, bool) { +func (o *ThreeDS2RequestFields) GetAuthenticationOnlyOk() (*bool, bool) { if o == nil || common.IsNil(o.AuthenticationOnly) { return nil, false } @@ -293,7 +293,7 @@ func (o *ThreeDS2RequestData2) GetAuthenticationOnlyOk() (*bool, bool) { } // HasAuthenticationOnly returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasAuthenticationOnly() bool { +func (o *ThreeDS2RequestFields) HasAuthenticationOnly() bool { if o != nil && !common.IsNil(o.AuthenticationOnly) { return true } @@ -303,13 +303,13 @@ func (o *ThreeDS2RequestData2) HasAuthenticationOnly() bool { // SetAuthenticationOnly gets a reference to the given bool and assigns it to the AuthenticationOnly field. // Deprecated -func (o *ThreeDS2RequestData2) SetAuthenticationOnly(v bool) { +func (o *ThreeDS2RequestFields) SetAuthenticationOnly(v bool) { o.AuthenticationOnly = &v } // GetChallengeIndicator returns the ChallengeIndicator field value if set, zero value otherwise. // Deprecated -func (o *ThreeDS2RequestData2) GetChallengeIndicator() string { +func (o *ThreeDS2RequestFields) GetChallengeIndicator() string { if o == nil || common.IsNil(o.ChallengeIndicator) { var ret string return ret @@ -320,7 +320,7 @@ func (o *ThreeDS2RequestData2) GetChallengeIndicator() string { // GetChallengeIndicatorOk returns a tuple with the ChallengeIndicator field value if set, nil otherwise // and a boolean to check if the value has been set. // Deprecated -func (o *ThreeDS2RequestData2) GetChallengeIndicatorOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetChallengeIndicatorOk() (*string, bool) { if o == nil || common.IsNil(o.ChallengeIndicator) { return nil, false } @@ -328,7 +328,7 @@ func (o *ThreeDS2RequestData2) GetChallengeIndicatorOk() (*string, bool) { } // HasChallengeIndicator returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasChallengeIndicator() bool { +func (o *ThreeDS2RequestFields) HasChallengeIndicator() bool { if o != nil && !common.IsNil(o.ChallengeIndicator) { return true } @@ -338,12 +338,12 @@ func (o *ThreeDS2RequestData2) HasChallengeIndicator() bool { // SetChallengeIndicator gets a reference to the given string and assigns it to the ChallengeIndicator field. // Deprecated -func (o *ThreeDS2RequestData2) SetChallengeIndicator(v string) { +func (o *ThreeDS2RequestFields) SetChallengeIndicator(v string) { o.ChallengeIndicator = &v } // GetDeviceRenderOptions returns the DeviceRenderOptions field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetDeviceRenderOptions() DeviceRenderOptions { +func (o *ThreeDS2RequestFields) GetDeviceRenderOptions() DeviceRenderOptions { if o == nil || common.IsNil(o.DeviceRenderOptions) { var ret DeviceRenderOptions return ret @@ -353,7 +353,7 @@ func (o *ThreeDS2RequestData2) GetDeviceRenderOptions() DeviceRenderOptions { // GetDeviceRenderOptionsOk returns a tuple with the DeviceRenderOptions field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetDeviceRenderOptionsOk() (*DeviceRenderOptions, bool) { +func (o *ThreeDS2RequestFields) GetDeviceRenderOptionsOk() (*DeviceRenderOptions, bool) { if o == nil || common.IsNil(o.DeviceRenderOptions) { return nil, false } @@ -361,7 +361,7 @@ func (o *ThreeDS2RequestData2) GetDeviceRenderOptionsOk() (*DeviceRenderOptions, } // HasDeviceRenderOptions returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasDeviceRenderOptions() bool { +func (o *ThreeDS2RequestFields) HasDeviceRenderOptions() bool { if o != nil && !common.IsNil(o.DeviceRenderOptions) { return true } @@ -370,12 +370,12 @@ func (o *ThreeDS2RequestData2) HasDeviceRenderOptions() bool { } // SetDeviceRenderOptions gets a reference to the given DeviceRenderOptions and assigns it to the DeviceRenderOptions field. -func (o *ThreeDS2RequestData2) SetDeviceRenderOptions(v DeviceRenderOptions) { +func (o *ThreeDS2RequestFields) SetDeviceRenderOptions(v DeviceRenderOptions) { o.DeviceRenderOptions = &v } // GetHomePhone returns the HomePhone field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetHomePhone() Phone { +func (o *ThreeDS2RequestFields) GetHomePhone() Phone { if o == nil || common.IsNil(o.HomePhone) { var ret Phone return ret @@ -385,7 +385,7 @@ func (o *ThreeDS2RequestData2) GetHomePhone() Phone { // GetHomePhoneOk returns a tuple with the HomePhone field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetHomePhoneOk() (*Phone, bool) { +func (o *ThreeDS2RequestFields) GetHomePhoneOk() (*Phone, bool) { if o == nil || common.IsNil(o.HomePhone) { return nil, false } @@ -393,7 +393,7 @@ func (o *ThreeDS2RequestData2) GetHomePhoneOk() (*Phone, bool) { } // HasHomePhone returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasHomePhone() bool { +func (o *ThreeDS2RequestFields) HasHomePhone() bool { if o != nil && !common.IsNil(o.HomePhone) { return true } @@ -402,12 +402,12 @@ func (o *ThreeDS2RequestData2) HasHomePhone() bool { } // SetHomePhone gets a reference to the given Phone and assigns it to the HomePhone field. -func (o *ThreeDS2RequestData2) SetHomePhone(v Phone) { +func (o *ThreeDS2RequestFields) SetHomePhone(v Phone) { o.HomePhone = &v } // GetMcc returns the Mcc field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetMcc() string { +func (o *ThreeDS2RequestFields) GetMcc() string { if o == nil || common.IsNil(o.Mcc) { var ret string return ret @@ -417,7 +417,7 @@ func (o *ThreeDS2RequestData2) GetMcc() string { // GetMccOk returns a tuple with the Mcc field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetMccOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetMccOk() (*string, bool) { if o == nil || common.IsNil(o.Mcc) { return nil, false } @@ -425,7 +425,7 @@ func (o *ThreeDS2RequestData2) GetMccOk() (*string, bool) { } // HasMcc returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasMcc() bool { +func (o *ThreeDS2RequestFields) HasMcc() bool { if o != nil && !common.IsNil(o.Mcc) { return true } @@ -434,12 +434,12 @@ func (o *ThreeDS2RequestData2) HasMcc() bool { } // SetMcc gets a reference to the given string and assigns it to the Mcc field. -func (o *ThreeDS2RequestData2) SetMcc(v string) { +func (o *ThreeDS2RequestFields) SetMcc(v string) { o.Mcc = &v } // GetMerchantName returns the MerchantName field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetMerchantName() string { +func (o *ThreeDS2RequestFields) GetMerchantName() string { if o == nil || common.IsNil(o.MerchantName) { var ret string return ret @@ -449,7 +449,7 @@ func (o *ThreeDS2RequestData2) GetMerchantName() string { // GetMerchantNameOk returns a tuple with the MerchantName field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetMerchantNameOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetMerchantNameOk() (*string, bool) { if o == nil || common.IsNil(o.MerchantName) { return nil, false } @@ -457,7 +457,7 @@ func (o *ThreeDS2RequestData2) GetMerchantNameOk() (*string, bool) { } // HasMerchantName returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasMerchantName() bool { +func (o *ThreeDS2RequestFields) HasMerchantName() bool { if o != nil && !common.IsNil(o.MerchantName) { return true } @@ -466,12 +466,12 @@ func (o *ThreeDS2RequestData2) HasMerchantName() bool { } // SetMerchantName gets a reference to the given string and assigns it to the MerchantName field. -func (o *ThreeDS2RequestData2) SetMerchantName(v string) { +func (o *ThreeDS2RequestFields) SetMerchantName(v string) { o.MerchantName = &v } // GetMessageVersion returns the MessageVersion field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetMessageVersion() string { +func (o *ThreeDS2RequestFields) GetMessageVersion() string { if o == nil || common.IsNil(o.MessageVersion) { var ret string return ret @@ -481,7 +481,7 @@ func (o *ThreeDS2RequestData2) GetMessageVersion() string { // GetMessageVersionOk returns a tuple with the MessageVersion field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetMessageVersionOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetMessageVersionOk() (*string, bool) { if o == nil || common.IsNil(o.MessageVersion) { return nil, false } @@ -489,7 +489,7 @@ func (o *ThreeDS2RequestData2) GetMessageVersionOk() (*string, bool) { } // HasMessageVersion returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasMessageVersion() bool { +func (o *ThreeDS2RequestFields) HasMessageVersion() bool { if o != nil && !common.IsNil(o.MessageVersion) { return true } @@ -498,12 +498,12 @@ func (o *ThreeDS2RequestData2) HasMessageVersion() bool { } // SetMessageVersion gets a reference to the given string and assigns it to the MessageVersion field. -func (o *ThreeDS2RequestData2) SetMessageVersion(v string) { +func (o *ThreeDS2RequestFields) SetMessageVersion(v string) { o.MessageVersion = &v } // GetMobilePhone returns the MobilePhone field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetMobilePhone() Phone { +func (o *ThreeDS2RequestFields) GetMobilePhone() Phone { if o == nil || common.IsNil(o.MobilePhone) { var ret Phone return ret @@ -513,7 +513,7 @@ func (o *ThreeDS2RequestData2) GetMobilePhone() Phone { // GetMobilePhoneOk returns a tuple with the MobilePhone field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetMobilePhoneOk() (*Phone, bool) { +func (o *ThreeDS2RequestFields) GetMobilePhoneOk() (*Phone, bool) { if o == nil || common.IsNil(o.MobilePhone) { return nil, false } @@ -521,7 +521,7 @@ func (o *ThreeDS2RequestData2) GetMobilePhoneOk() (*Phone, bool) { } // HasMobilePhone returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasMobilePhone() bool { +func (o *ThreeDS2RequestFields) HasMobilePhone() bool { if o != nil && !common.IsNil(o.MobilePhone) { return true } @@ -530,12 +530,12 @@ func (o *ThreeDS2RequestData2) HasMobilePhone() bool { } // SetMobilePhone gets a reference to the given Phone and assigns it to the MobilePhone field. -func (o *ThreeDS2RequestData2) SetMobilePhone(v Phone) { +func (o *ThreeDS2RequestFields) SetMobilePhone(v Phone) { o.MobilePhone = &v } // GetNotificationURL returns the NotificationURL field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetNotificationURL() string { +func (o *ThreeDS2RequestFields) GetNotificationURL() string { if o == nil || common.IsNil(o.NotificationURL) { var ret string return ret @@ -545,7 +545,7 @@ func (o *ThreeDS2RequestData2) GetNotificationURL() string { // GetNotificationURLOk returns a tuple with the NotificationURL field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetNotificationURLOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetNotificationURLOk() (*string, bool) { if o == nil || common.IsNil(o.NotificationURL) { return nil, false } @@ -553,7 +553,7 @@ func (o *ThreeDS2RequestData2) GetNotificationURLOk() (*string, bool) { } // HasNotificationURL returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasNotificationURL() bool { +func (o *ThreeDS2RequestFields) HasNotificationURL() bool { if o != nil && !common.IsNil(o.NotificationURL) { return true } @@ -562,12 +562,12 @@ func (o *ThreeDS2RequestData2) HasNotificationURL() bool { } // SetNotificationURL gets a reference to the given string and assigns it to the NotificationURL field. -func (o *ThreeDS2RequestData2) SetNotificationURL(v string) { +func (o *ThreeDS2RequestFields) SetNotificationURL(v string) { o.NotificationURL = &v } // GetPayTokenInd returns the PayTokenInd field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetPayTokenInd() bool { +func (o *ThreeDS2RequestFields) GetPayTokenInd() bool { if o == nil || common.IsNil(o.PayTokenInd) { var ret bool return ret @@ -577,7 +577,7 @@ func (o *ThreeDS2RequestData2) GetPayTokenInd() bool { // GetPayTokenIndOk returns a tuple with the PayTokenInd field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetPayTokenIndOk() (*bool, bool) { +func (o *ThreeDS2RequestFields) GetPayTokenIndOk() (*bool, bool) { if o == nil || common.IsNil(o.PayTokenInd) { return nil, false } @@ -585,7 +585,7 @@ func (o *ThreeDS2RequestData2) GetPayTokenIndOk() (*bool, bool) { } // HasPayTokenInd returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasPayTokenInd() bool { +func (o *ThreeDS2RequestFields) HasPayTokenInd() bool { if o != nil && !common.IsNil(o.PayTokenInd) { return true } @@ -594,12 +594,12 @@ func (o *ThreeDS2RequestData2) HasPayTokenInd() bool { } // SetPayTokenInd gets a reference to the given bool and assigns it to the PayTokenInd field. -func (o *ThreeDS2RequestData2) SetPayTokenInd(v bool) { +func (o *ThreeDS2RequestFields) SetPayTokenInd(v bool) { o.PayTokenInd = &v } // GetPaymentAuthenticationUseCase returns the PaymentAuthenticationUseCase field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetPaymentAuthenticationUseCase() string { +func (o *ThreeDS2RequestFields) GetPaymentAuthenticationUseCase() string { if o == nil || common.IsNil(o.PaymentAuthenticationUseCase) { var ret string return ret @@ -609,7 +609,7 @@ func (o *ThreeDS2RequestData2) GetPaymentAuthenticationUseCase() string { // GetPaymentAuthenticationUseCaseOk returns a tuple with the PaymentAuthenticationUseCase field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetPaymentAuthenticationUseCaseOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetPaymentAuthenticationUseCaseOk() (*string, bool) { if o == nil || common.IsNil(o.PaymentAuthenticationUseCase) { return nil, false } @@ -617,7 +617,7 @@ func (o *ThreeDS2RequestData2) GetPaymentAuthenticationUseCaseOk() (*string, boo } // HasPaymentAuthenticationUseCase returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasPaymentAuthenticationUseCase() bool { +func (o *ThreeDS2RequestFields) HasPaymentAuthenticationUseCase() bool { if o != nil && !common.IsNil(o.PaymentAuthenticationUseCase) { return true } @@ -626,12 +626,12 @@ func (o *ThreeDS2RequestData2) HasPaymentAuthenticationUseCase() bool { } // SetPaymentAuthenticationUseCase gets a reference to the given string and assigns it to the PaymentAuthenticationUseCase field. -func (o *ThreeDS2RequestData2) SetPaymentAuthenticationUseCase(v string) { +func (o *ThreeDS2RequestFields) SetPaymentAuthenticationUseCase(v string) { o.PaymentAuthenticationUseCase = &v } // GetPurchaseInstalData returns the PurchaseInstalData field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetPurchaseInstalData() string { +func (o *ThreeDS2RequestFields) GetPurchaseInstalData() string { if o == nil || common.IsNil(o.PurchaseInstalData) { var ret string return ret @@ -641,7 +641,7 @@ func (o *ThreeDS2RequestData2) GetPurchaseInstalData() string { // GetPurchaseInstalDataOk returns a tuple with the PurchaseInstalData field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetPurchaseInstalDataOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetPurchaseInstalDataOk() (*string, bool) { if o == nil || common.IsNil(o.PurchaseInstalData) { return nil, false } @@ -649,7 +649,7 @@ func (o *ThreeDS2RequestData2) GetPurchaseInstalDataOk() (*string, bool) { } // HasPurchaseInstalData returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasPurchaseInstalData() bool { +func (o *ThreeDS2RequestFields) HasPurchaseInstalData() bool { if o != nil && !common.IsNil(o.PurchaseInstalData) { return true } @@ -658,12 +658,12 @@ func (o *ThreeDS2RequestData2) HasPurchaseInstalData() bool { } // SetPurchaseInstalData gets a reference to the given string and assigns it to the PurchaseInstalData field. -func (o *ThreeDS2RequestData2) SetPurchaseInstalData(v string) { +func (o *ThreeDS2RequestFields) SetPurchaseInstalData(v string) { o.PurchaseInstalData = &v } // GetRecurringExpiry returns the RecurringExpiry field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetRecurringExpiry() string { +func (o *ThreeDS2RequestFields) GetRecurringExpiry() string { if o == nil || common.IsNil(o.RecurringExpiry) { var ret string return ret @@ -673,7 +673,7 @@ func (o *ThreeDS2RequestData2) GetRecurringExpiry() string { // GetRecurringExpiryOk returns a tuple with the RecurringExpiry field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetRecurringExpiryOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetRecurringExpiryOk() (*string, bool) { if o == nil || common.IsNil(o.RecurringExpiry) { return nil, false } @@ -681,7 +681,7 @@ func (o *ThreeDS2RequestData2) GetRecurringExpiryOk() (*string, bool) { } // HasRecurringExpiry returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasRecurringExpiry() bool { +func (o *ThreeDS2RequestFields) HasRecurringExpiry() bool { if o != nil && !common.IsNil(o.RecurringExpiry) { return true } @@ -690,12 +690,12 @@ func (o *ThreeDS2RequestData2) HasRecurringExpiry() bool { } // SetRecurringExpiry gets a reference to the given string and assigns it to the RecurringExpiry field. -func (o *ThreeDS2RequestData2) SetRecurringExpiry(v string) { +func (o *ThreeDS2RequestFields) SetRecurringExpiry(v string) { o.RecurringExpiry = &v } // GetRecurringFrequency returns the RecurringFrequency field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetRecurringFrequency() string { +func (o *ThreeDS2RequestFields) GetRecurringFrequency() string { if o == nil || common.IsNil(o.RecurringFrequency) { var ret string return ret @@ -705,7 +705,7 @@ func (o *ThreeDS2RequestData2) GetRecurringFrequency() string { // GetRecurringFrequencyOk returns a tuple with the RecurringFrequency field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetRecurringFrequencyOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetRecurringFrequencyOk() (*string, bool) { if o == nil || common.IsNil(o.RecurringFrequency) { return nil, false } @@ -713,7 +713,7 @@ func (o *ThreeDS2RequestData2) GetRecurringFrequencyOk() (*string, bool) { } // HasRecurringFrequency returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasRecurringFrequency() bool { +func (o *ThreeDS2RequestFields) HasRecurringFrequency() bool { if o != nil && !common.IsNil(o.RecurringFrequency) { return true } @@ -722,12 +722,12 @@ func (o *ThreeDS2RequestData2) HasRecurringFrequency() bool { } // SetRecurringFrequency gets a reference to the given string and assigns it to the RecurringFrequency field. -func (o *ThreeDS2RequestData2) SetRecurringFrequency(v string) { +func (o *ThreeDS2RequestFields) SetRecurringFrequency(v string) { o.RecurringFrequency = &v } // GetSdkAppID returns the SdkAppID field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetSdkAppID() string { +func (o *ThreeDS2RequestFields) GetSdkAppID() string { if o == nil || common.IsNil(o.SdkAppID) { var ret string return ret @@ -737,7 +737,7 @@ func (o *ThreeDS2RequestData2) GetSdkAppID() string { // GetSdkAppIDOk returns a tuple with the SdkAppID field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetSdkAppIDOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetSdkAppIDOk() (*string, bool) { if o == nil || common.IsNil(o.SdkAppID) { return nil, false } @@ -745,7 +745,7 @@ func (o *ThreeDS2RequestData2) GetSdkAppIDOk() (*string, bool) { } // HasSdkAppID returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasSdkAppID() bool { +func (o *ThreeDS2RequestFields) HasSdkAppID() bool { if o != nil && !common.IsNil(o.SdkAppID) { return true } @@ -754,12 +754,12 @@ func (o *ThreeDS2RequestData2) HasSdkAppID() bool { } // SetSdkAppID gets a reference to the given string and assigns it to the SdkAppID field. -func (o *ThreeDS2RequestData2) SetSdkAppID(v string) { +func (o *ThreeDS2RequestFields) SetSdkAppID(v string) { o.SdkAppID = &v } // GetSdkEphemPubKey returns the SdkEphemPubKey field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetSdkEphemPubKey() SDKEphemPubKey { +func (o *ThreeDS2RequestFields) GetSdkEphemPubKey() SDKEphemPubKey { if o == nil || common.IsNil(o.SdkEphemPubKey) { var ret SDKEphemPubKey return ret @@ -769,7 +769,7 @@ func (o *ThreeDS2RequestData2) GetSdkEphemPubKey() SDKEphemPubKey { // GetSdkEphemPubKeyOk returns a tuple with the SdkEphemPubKey field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetSdkEphemPubKeyOk() (*SDKEphemPubKey, bool) { +func (o *ThreeDS2RequestFields) GetSdkEphemPubKeyOk() (*SDKEphemPubKey, bool) { if o == nil || common.IsNil(o.SdkEphemPubKey) { return nil, false } @@ -777,7 +777,7 @@ func (o *ThreeDS2RequestData2) GetSdkEphemPubKeyOk() (*SDKEphemPubKey, bool) { } // HasSdkEphemPubKey returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasSdkEphemPubKey() bool { +func (o *ThreeDS2RequestFields) HasSdkEphemPubKey() bool { if o != nil && !common.IsNil(o.SdkEphemPubKey) { return true } @@ -786,12 +786,12 @@ func (o *ThreeDS2RequestData2) HasSdkEphemPubKey() bool { } // SetSdkEphemPubKey gets a reference to the given SDKEphemPubKey and assigns it to the SdkEphemPubKey field. -func (o *ThreeDS2RequestData2) SetSdkEphemPubKey(v SDKEphemPubKey) { +func (o *ThreeDS2RequestFields) SetSdkEphemPubKey(v SDKEphemPubKey) { o.SdkEphemPubKey = &v } // GetSdkMaxTimeout returns the SdkMaxTimeout field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetSdkMaxTimeout() int32 { +func (o *ThreeDS2RequestFields) GetSdkMaxTimeout() int32 { if o == nil || common.IsNil(o.SdkMaxTimeout) { var ret int32 return ret @@ -801,7 +801,7 @@ func (o *ThreeDS2RequestData2) GetSdkMaxTimeout() int32 { // GetSdkMaxTimeoutOk returns a tuple with the SdkMaxTimeout field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetSdkMaxTimeoutOk() (*int32, bool) { +func (o *ThreeDS2RequestFields) GetSdkMaxTimeoutOk() (*int32, bool) { if o == nil || common.IsNil(o.SdkMaxTimeout) { return nil, false } @@ -809,7 +809,7 @@ func (o *ThreeDS2RequestData2) GetSdkMaxTimeoutOk() (*int32, bool) { } // HasSdkMaxTimeout returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasSdkMaxTimeout() bool { +func (o *ThreeDS2RequestFields) HasSdkMaxTimeout() bool { if o != nil && !common.IsNil(o.SdkMaxTimeout) { return true } @@ -818,12 +818,12 @@ func (o *ThreeDS2RequestData2) HasSdkMaxTimeout() bool { } // SetSdkMaxTimeout gets a reference to the given int32 and assigns it to the SdkMaxTimeout field. -func (o *ThreeDS2RequestData2) SetSdkMaxTimeout(v int32) { +func (o *ThreeDS2RequestFields) SetSdkMaxTimeout(v int32) { o.SdkMaxTimeout = &v } // GetSdkReferenceNumber returns the SdkReferenceNumber field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetSdkReferenceNumber() string { +func (o *ThreeDS2RequestFields) GetSdkReferenceNumber() string { if o == nil || common.IsNil(o.SdkReferenceNumber) { var ret string return ret @@ -833,7 +833,7 @@ func (o *ThreeDS2RequestData2) GetSdkReferenceNumber() string { // GetSdkReferenceNumberOk returns a tuple with the SdkReferenceNumber field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetSdkReferenceNumberOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetSdkReferenceNumberOk() (*string, bool) { if o == nil || common.IsNil(o.SdkReferenceNumber) { return nil, false } @@ -841,7 +841,7 @@ func (o *ThreeDS2RequestData2) GetSdkReferenceNumberOk() (*string, bool) { } // HasSdkReferenceNumber returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasSdkReferenceNumber() bool { +func (o *ThreeDS2RequestFields) HasSdkReferenceNumber() bool { if o != nil && !common.IsNil(o.SdkReferenceNumber) { return true } @@ -850,12 +850,12 @@ func (o *ThreeDS2RequestData2) HasSdkReferenceNumber() bool { } // SetSdkReferenceNumber gets a reference to the given string and assigns it to the SdkReferenceNumber field. -func (o *ThreeDS2RequestData2) SetSdkReferenceNumber(v string) { +func (o *ThreeDS2RequestFields) SetSdkReferenceNumber(v string) { o.SdkReferenceNumber = &v } // GetSdkTransID returns the SdkTransID field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetSdkTransID() string { +func (o *ThreeDS2RequestFields) GetSdkTransID() string { if o == nil || common.IsNil(o.SdkTransID) { var ret string return ret @@ -865,7 +865,7 @@ func (o *ThreeDS2RequestData2) GetSdkTransID() string { // GetSdkTransIDOk returns a tuple with the SdkTransID field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetSdkTransIDOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetSdkTransIDOk() (*string, bool) { if o == nil || common.IsNil(o.SdkTransID) { return nil, false } @@ -873,7 +873,7 @@ func (o *ThreeDS2RequestData2) GetSdkTransIDOk() (*string, bool) { } // HasSdkTransID returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasSdkTransID() bool { +func (o *ThreeDS2RequestFields) HasSdkTransID() bool { if o != nil && !common.IsNil(o.SdkTransID) { return true } @@ -882,12 +882,12 @@ func (o *ThreeDS2RequestData2) HasSdkTransID() bool { } // SetSdkTransID gets a reference to the given string and assigns it to the SdkTransID field. -func (o *ThreeDS2RequestData2) SetSdkTransID(v string) { +func (o *ThreeDS2RequestFields) SetSdkTransID(v string) { o.SdkTransID = &v } // GetThreeDSCompInd returns the ThreeDSCompInd field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetThreeDSCompInd() string { +func (o *ThreeDS2RequestFields) GetThreeDSCompInd() string { if o == nil || common.IsNil(o.ThreeDSCompInd) { var ret string return ret @@ -897,7 +897,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSCompInd() string { // GetThreeDSCompIndOk returns a tuple with the ThreeDSCompInd field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetThreeDSCompIndOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetThreeDSCompIndOk() (*string, bool) { if o == nil || common.IsNil(o.ThreeDSCompInd) { return nil, false } @@ -905,7 +905,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSCompIndOk() (*string, bool) { } // HasThreeDSCompInd returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasThreeDSCompInd() bool { +func (o *ThreeDS2RequestFields) HasThreeDSCompInd() bool { if o != nil && !common.IsNil(o.ThreeDSCompInd) { return true } @@ -914,12 +914,12 @@ func (o *ThreeDS2RequestData2) HasThreeDSCompInd() bool { } // SetThreeDSCompInd gets a reference to the given string and assigns it to the ThreeDSCompInd field. -func (o *ThreeDS2RequestData2) SetThreeDSCompInd(v string) { +func (o *ThreeDS2RequestFields) SetThreeDSCompInd(v string) { o.ThreeDSCompInd = &v } // GetThreeDSRequestorAuthenticationInd returns the ThreeDSRequestorAuthenticationInd field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetThreeDSRequestorAuthenticationInd() string { +func (o *ThreeDS2RequestFields) GetThreeDSRequestorAuthenticationInd() string { if o == nil || common.IsNil(o.ThreeDSRequestorAuthenticationInd) { var ret string return ret @@ -929,7 +929,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSRequestorAuthenticationInd() string { // GetThreeDSRequestorAuthenticationIndOk returns a tuple with the ThreeDSRequestorAuthenticationInd field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetThreeDSRequestorAuthenticationIndOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetThreeDSRequestorAuthenticationIndOk() (*string, bool) { if o == nil || common.IsNil(o.ThreeDSRequestorAuthenticationInd) { return nil, false } @@ -937,7 +937,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSRequestorAuthenticationIndOk() (*string } // HasThreeDSRequestorAuthenticationInd returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasThreeDSRequestorAuthenticationInd() bool { +func (o *ThreeDS2RequestFields) HasThreeDSRequestorAuthenticationInd() bool { if o != nil && !common.IsNil(o.ThreeDSRequestorAuthenticationInd) { return true } @@ -946,12 +946,12 @@ func (o *ThreeDS2RequestData2) HasThreeDSRequestorAuthenticationInd() bool { } // SetThreeDSRequestorAuthenticationInd gets a reference to the given string and assigns it to the ThreeDSRequestorAuthenticationInd field. -func (o *ThreeDS2RequestData2) SetThreeDSRequestorAuthenticationInd(v string) { +func (o *ThreeDS2RequestFields) SetThreeDSRequestorAuthenticationInd(v string) { o.ThreeDSRequestorAuthenticationInd = &v } // GetThreeDSRequestorAuthenticationInfo returns the ThreeDSRequestorAuthenticationInfo field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetThreeDSRequestorAuthenticationInfo() ThreeDSRequestorAuthenticationInfo { +func (o *ThreeDS2RequestFields) GetThreeDSRequestorAuthenticationInfo() ThreeDSRequestorAuthenticationInfo { if o == nil || common.IsNil(o.ThreeDSRequestorAuthenticationInfo) { var ret ThreeDSRequestorAuthenticationInfo return ret @@ -961,7 +961,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSRequestorAuthenticationInfo() ThreeDSRe // GetThreeDSRequestorAuthenticationInfoOk returns a tuple with the ThreeDSRequestorAuthenticationInfo field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetThreeDSRequestorAuthenticationInfoOk() (*ThreeDSRequestorAuthenticationInfo, bool) { +func (o *ThreeDS2RequestFields) GetThreeDSRequestorAuthenticationInfoOk() (*ThreeDSRequestorAuthenticationInfo, bool) { if o == nil || common.IsNil(o.ThreeDSRequestorAuthenticationInfo) { return nil, false } @@ -969,7 +969,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSRequestorAuthenticationInfoOk() (*Three } // HasThreeDSRequestorAuthenticationInfo returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasThreeDSRequestorAuthenticationInfo() bool { +func (o *ThreeDS2RequestFields) HasThreeDSRequestorAuthenticationInfo() bool { if o != nil && !common.IsNil(o.ThreeDSRequestorAuthenticationInfo) { return true } @@ -978,12 +978,12 @@ func (o *ThreeDS2RequestData2) HasThreeDSRequestorAuthenticationInfo() bool { } // SetThreeDSRequestorAuthenticationInfo gets a reference to the given ThreeDSRequestorAuthenticationInfo and assigns it to the ThreeDSRequestorAuthenticationInfo field. -func (o *ThreeDS2RequestData2) SetThreeDSRequestorAuthenticationInfo(v ThreeDSRequestorAuthenticationInfo) { +func (o *ThreeDS2RequestFields) SetThreeDSRequestorAuthenticationInfo(v ThreeDSRequestorAuthenticationInfo) { o.ThreeDSRequestorAuthenticationInfo = &v } // GetThreeDSRequestorChallengeInd returns the ThreeDSRequestorChallengeInd field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetThreeDSRequestorChallengeInd() string { +func (o *ThreeDS2RequestFields) GetThreeDSRequestorChallengeInd() string { if o == nil || common.IsNil(o.ThreeDSRequestorChallengeInd) { var ret string return ret @@ -993,7 +993,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSRequestorChallengeInd() string { // GetThreeDSRequestorChallengeIndOk returns a tuple with the ThreeDSRequestorChallengeInd field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetThreeDSRequestorChallengeIndOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetThreeDSRequestorChallengeIndOk() (*string, bool) { if o == nil || common.IsNil(o.ThreeDSRequestorChallengeInd) { return nil, false } @@ -1001,7 +1001,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSRequestorChallengeIndOk() (*string, boo } // HasThreeDSRequestorChallengeInd returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasThreeDSRequestorChallengeInd() bool { +func (o *ThreeDS2RequestFields) HasThreeDSRequestorChallengeInd() bool { if o != nil && !common.IsNil(o.ThreeDSRequestorChallengeInd) { return true } @@ -1010,12 +1010,12 @@ func (o *ThreeDS2RequestData2) HasThreeDSRequestorChallengeInd() bool { } // SetThreeDSRequestorChallengeInd gets a reference to the given string and assigns it to the ThreeDSRequestorChallengeInd field. -func (o *ThreeDS2RequestData2) SetThreeDSRequestorChallengeInd(v string) { +func (o *ThreeDS2RequestFields) SetThreeDSRequestorChallengeInd(v string) { o.ThreeDSRequestorChallengeInd = &v } // GetThreeDSRequestorID returns the ThreeDSRequestorID field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetThreeDSRequestorID() string { +func (o *ThreeDS2RequestFields) GetThreeDSRequestorID() string { if o == nil || common.IsNil(o.ThreeDSRequestorID) { var ret string return ret @@ -1025,7 +1025,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSRequestorID() string { // GetThreeDSRequestorIDOk returns a tuple with the ThreeDSRequestorID field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetThreeDSRequestorIDOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetThreeDSRequestorIDOk() (*string, bool) { if o == nil || common.IsNil(o.ThreeDSRequestorID) { return nil, false } @@ -1033,7 +1033,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSRequestorIDOk() (*string, bool) { } // HasThreeDSRequestorID returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasThreeDSRequestorID() bool { +func (o *ThreeDS2RequestFields) HasThreeDSRequestorID() bool { if o != nil && !common.IsNil(o.ThreeDSRequestorID) { return true } @@ -1042,12 +1042,12 @@ func (o *ThreeDS2RequestData2) HasThreeDSRequestorID() bool { } // SetThreeDSRequestorID gets a reference to the given string and assigns it to the ThreeDSRequestorID field. -func (o *ThreeDS2RequestData2) SetThreeDSRequestorID(v string) { +func (o *ThreeDS2RequestFields) SetThreeDSRequestorID(v string) { o.ThreeDSRequestorID = &v } // GetThreeDSRequestorName returns the ThreeDSRequestorName field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetThreeDSRequestorName() string { +func (o *ThreeDS2RequestFields) GetThreeDSRequestorName() string { if o == nil || common.IsNil(o.ThreeDSRequestorName) { var ret string return ret @@ -1057,7 +1057,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSRequestorName() string { // GetThreeDSRequestorNameOk returns a tuple with the ThreeDSRequestorName field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetThreeDSRequestorNameOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetThreeDSRequestorNameOk() (*string, bool) { if o == nil || common.IsNil(o.ThreeDSRequestorName) { return nil, false } @@ -1065,7 +1065,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSRequestorNameOk() (*string, bool) { } // HasThreeDSRequestorName returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasThreeDSRequestorName() bool { +func (o *ThreeDS2RequestFields) HasThreeDSRequestorName() bool { if o != nil && !common.IsNil(o.ThreeDSRequestorName) { return true } @@ -1074,12 +1074,12 @@ func (o *ThreeDS2RequestData2) HasThreeDSRequestorName() bool { } // SetThreeDSRequestorName gets a reference to the given string and assigns it to the ThreeDSRequestorName field. -func (o *ThreeDS2RequestData2) SetThreeDSRequestorName(v string) { +func (o *ThreeDS2RequestFields) SetThreeDSRequestorName(v string) { o.ThreeDSRequestorName = &v } // GetThreeDSRequestorPriorAuthenticationInfo returns the ThreeDSRequestorPriorAuthenticationInfo field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetThreeDSRequestorPriorAuthenticationInfo() ThreeDSRequestorPriorAuthenticationInfo { +func (o *ThreeDS2RequestFields) GetThreeDSRequestorPriorAuthenticationInfo() ThreeDSRequestorPriorAuthenticationInfo { if o == nil || common.IsNil(o.ThreeDSRequestorPriorAuthenticationInfo) { var ret ThreeDSRequestorPriorAuthenticationInfo return ret @@ -1089,7 +1089,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSRequestorPriorAuthenticationInfo() Thre // GetThreeDSRequestorPriorAuthenticationInfoOk returns a tuple with the ThreeDSRequestorPriorAuthenticationInfo field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetThreeDSRequestorPriorAuthenticationInfoOk() (*ThreeDSRequestorPriorAuthenticationInfo, bool) { +func (o *ThreeDS2RequestFields) GetThreeDSRequestorPriorAuthenticationInfoOk() (*ThreeDSRequestorPriorAuthenticationInfo, bool) { if o == nil || common.IsNil(o.ThreeDSRequestorPriorAuthenticationInfo) { return nil, false } @@ -1097,7 +1097,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSRequestorPriorAuthenticationInfoOk() (* } // HasThreeDSRequestorPriorAuthenticationInfo returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasThreeDSRequestorPriorAuthenticationInfo() bool { +func (o *ThreeDS2RequestFields) HasThreeDSRequestorPriorAuthenticationInfo() bool { if o != nil && !common.IsNil(o.ThreeDSRequestorPriorAuthenticationInfo) { return true } @@ -1106,12 +1106,12 @@ func (o *ThreeDS2RequestData2) HasThreeDSRequestorPriorAuthenticationInfo() bool } // SetThreeDSRequestorPriorAuthenticationInfo gets a reference to the given ThreeDSRequestorPriorAuthenticationInfo and assigns it to the ThreeDSRequestorPriorAuthenticationInfo field. -func (o *ThreeDS2RequestData2) SetThreeDSRequestorPriorAuthenticationInfo(v ThreeDSRequestorPriorAuthenticationInfo) { +func (o *ThreeDS2RequestFields) SetThreeDSRequestorPriorAuthenticationInfo(v ThreeDSRequestorPriorAuthenticationInfo) { o.ThreeDSRequestorPriorAuthenticationInfo = &v } // GetThreeDSRequestorURL returns the ThreeDSRequestorURL field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetThreeDSRequestorURL() string { +func (o *ThreeDS2RequestFields) GetThreeDSRequestorURL() string { if o == nil || common.IsNil(o.ThreeDSRequestorURL) { var ret string return ret @@ -1121,7 +1121,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSRequestorURL() string { // GetThreeDSRequestorURLOk returns a tuple with the ThreeDSRequestorURL field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetThreeDSRequestorURLOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetThreeDSRequestorURLOk() (*string, bool) { if o == nil || common.IsNil(o.ThreeDSRequestorURL) { return nil, false } @@ -1129,7 +1129,7 @@ func (o *ThreeDS2RequestData2) GetThreeDSRequestorURLOk() (*string, bool) { } // HasThreeDSRequestorURL returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasThreeDSRequestorURL() bool { +func (o *ThreeDS2RequestFields) HasThreeDSRequestorURL() bool { if o != nil && !common.IsNil(o.ThreeDSRequestorURL) { return true } @@ -1138,12 +1138,12 @@ func (o *ThreeDS2RequestData2) HasThreeDSRequestorURL() bool { } // SetThreeDSRequestorURL gets a reference to the given string and assigns it to the ThreeDSRequestorURL field. -func (o *ThreeDS2RequestData2) SetThreeDSRequestorURL(v string) { +func (o *ThreeDS2RequestFields) SetThreeDSRequestorURL(v string) { o.ThreeDSRequestorURL = &v } // GetTransType returns the TransType field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetTransType() string { +func (o *ThreeDS2RequestFields) GetTransType() string { if o == nil || common.IsNil(o.TransType) { var ret string return ret @@ -1153,7 +1153,7 @@ func (o *ThreeDS2RequestData2) GetTransType() string { // GetTransTypeOk returns a tuple with the TransType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetTransTypeOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetTransTypeOk() (*string, bool) { if o == nil || common.IsNil(o.TransType) { return nil, false } @@ -1161,7 +1161,7 @@ func (o *ThreeDS2RequestData2) GetTransTypeOk() (*string, bool) { } // HasTransType returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasTransType() bool { +func (o *ThreeDS2RequestFields) HasTransType() bool { if o != nil && !common.IsNil(o.TransType) { return true } @@ -1170,12 +1170,12 @@ func (o *ThreeDS2RequestData2) HasTransType() bool { } // SetTransType gets a reference to the given string and assigns it to the TransType field. -func (o *ThreeDS2RequestData2) SetTransType(v string) { +func (o *ThreeDS2RequestFields) SetTransType(v string) { o.TransType = &v } // GetTransactionType returns the TransactionType field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetTransactionType() string { +func (o *ThreeDS2RequestFields) GetTransactionType() string { if o == nil || common.IsNil(o.TransactionType) { var ret string return ret @@ -1185,7 +1185,7 @@ func (o *ThreeDS2RequestData2) GetTransactionType() string { // GetTransactionTypeOk returns a tuple with the TransactionType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetTransactionTypeOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetTransactionTypeOk() (*string, bool) { if o == nil || common.IsNil(o.TransactionType) { return nil, false } @@ -1193,7 +1193,7 @@ func (o *ThreeDS2RequestData2) GetTransactionTypeOk() (*string, bool) { } // HasTransactionType returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasTransactionType() bool { +func (o *ThreeDS2RequestFields) HasTransactionType() bool { if o != nil && !common.IsNil(o.TransactionType) { return true } @@ -1202,12 +1202,12 @@ func (o *ThreeDS2RequestData2) HasTransactionType() bool { } // SetTransactionType gets a reference to the given string and assigns it to the TransactionType field. -func (o *ThreeDS2RequestData2) SetTransactionType(v string) { +func (o *ThreeDS2RequestFields) SetTransactionType(v string) { o.TransactionType = &v } // GetWhiteListStatus returns the WhiteListStatus field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetWhiteListStatus() string { +func (o *ThreeDS2RequestFields) GetWhiteListStatus() string { if o == nil || common.IsNil(o.WhiteListStatus) { var ret string return ret @@ -1217,7 +1217,7 @@ func (o *ThreeDS2RequestData2) GetWhiteListStatus() string { // GetWhiteListStatusOk returns a tuple with the WhiteListStatus field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetWhiteListStatusOk() (*string, bool) { +func (o *ThreeDS2RequestFields) GetWhiteListStatusOk() (*string, bool) { if o == nil || common.IsNil(o.WhiteListStatus) { return nil, false } @@ -1225,7 +1225,7 @@ func (o *ThreeDS2RequestData2) GetWhiteListStatusOk() (*string, bool) { } // HasWhiteListStatus returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasWhiteListStatus() bool { +func (o *ThreeDS2RequestFields) HasWhiteListStatus() bool { if o != nil && !common.IsNil(o.WhiteListStatus) { return true } @@ -1234,12 +1234,12 @@ func (o *ThreeDS2RequestData2) HasWhiteListStatus() bool { } // SetWhiteListStatus gets a reference to the given string and assigns it to the WhiteListStatus field. -func (o *ThreeDS2RequestData2) SetWhiteListStatus(v string) { +func (o *ThreeDS2RequestFields) SetWhiteListStatus(v string) { o.WhiteListStatus = &v } // GetWorkPhone returns the WorkPhone field value if set, zero value otherwise. -func (o *ThreeDS2RequestData2) GetWorkPhone() Phone { +func (o *ThreeDS2RequestFields) GetWorkPhone() Phone { if o == nil || common.IsNil(o.WorkPhone) { var ret Phone return ret @@ -1249,7 +1249,7 @@ func (o *ThreeDS2RequestData2) GetWorkPhone() Phone { // GetWorkPhoneOk returns a tuple with the WorkPhone field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ThreeDS2RequestData2) GetWorkPhoneOk() (*Phone, bool) { +func (o *ThreeDS2RequestFields) GetWorkPhoneOk() (*Phone, bool) { if o == nil || common.IsNil(o.WorkPhone) { return nil, false } @@ -1257,7 +1257,7 @@ func (o *ThreeDS2RequestData2) GetWorkPhoneOk() (*Phone, bool) { } // HasWorkPhone returns a boolean if a field has been set. -func (o *ThreeDS2RequestData2) HasWorkPhone() bool { +func (o *ThreeDS2RequestFields) HasWorkPhone() bool { if o != nil && !common.IsNil(o.WorkPhone) { return true } @@ -1266,11 +1266,11 @@ func (o *ThreeDS2RequestData2) HasWorkPhone() bool { } // SetWorkPhone gets a reference to the given Phone and assigns it to the WorkPhone field. -func (o *ThreeDS2RequestData2) SetWorkPhone(v Phone) { +func (o *ThreeDS2RequestFields) SetWorkPhone(v Phone) { o.WorkPhone = &v } -func (o ThreeDS2RequestData2) MarshalJSON() ([]byte, error) { +func (o ThreeDS2RequestFields) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -1278,7 +1278,7 @@ func (o ThreeDS2RequestData2) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o ThreeDS2RequestData2) ToMap() (map[string]interface{}, error) { +func (o ThreeDS2RequestFields) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !common.IsNil(o.AcctInfo) { toSerialize["acctInfo"] = o.AcctInfo @@ -1391,43 +1391,43 @@ func (o ThreeDS2RequestData2) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -type NullableThreeDS2RequestData2 struct { - value *ThreeDS2RequestData2 +type NullableThreeDS2RequestFields struct { + value *ThreeDS2RequestFields isSet bool } -func (v NullableThreeDS2RequestData2) Get() *ThreeDS2RequestData2 { +func (v NullableThreeDS2RequestFields) Get() *ThreeDS2RequestFields { return v.value } -func (v *NullableThreeDS2RequestData2) Set(val *ThreeDS2RequestData2) { +func (v *NullableThreeDS2RequestFields) Set(val *ThreeDS2RequestFields) { v.value = val v.isSet = true } -func (v NullableThreeDS2RequestData2) IsSet() bool { +func (v NullableThreeDS2RequestFields) IsSet() bool { return v.isSet } -func (v *NullableThreeDS2RequestData2) Unset() { +func (v *NullableThreeDS2RequestFields) Unset() { v.value = nil v.isSet = false } -func NewNullableThreeDS2RequestData2(val *ThreeDS2RequestData2) *NullableThreeDS2RequestData2 { - return &NullableThreeDS2RequestData2{value: val, isSet: true} +func NewNullableThreeDS2RequestFields(val *ThreeDS2RequestFields) *NullableThreeDS2RequestFields { + return &NullableThreeDS2RequestFields{value: val, isSet: true} } -func (v NullableThreeDS2RequestData2) MarshalJSON() ([]byte, error) { +func (v NullableThreeDS2RequestFields) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableThreeDS2RequestData2) UnmarshalJSON(src []byte) error { +func (v *NullableThreeDS2RequestFields) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } -func (o *ThreeDS2RequestData2) isValidAcctType() bool { +func (o *ThreeDS2RequestFields) isValidAcctType() bool { var allowedEnumValues = []string{"01", "02", "03"} for _, allowed := range allowedEnumValues { if o.GetAcctType() == allowed { @@ -1436,7 +1436,7 @@ func (o *ThreeDS2RequestData2) isValidAcctType() bool { } return false } -func (o *ThreeDS2RequestData2) isValidAddrMatch() bool { +func (o *ThreeDS2RequestFields) isValidAddrMatch() bool { var allowedEnumValues = []string{"Y", "N"} for _, allowed := range allowedEnumValues { if o.GetAddrMatch() == allowed { @@ -1445,7 +1445,7 @@ func (o *ThreeDS2RequestData2) isValidAddrMatch() bool { } return false } -func (o *ThreeDS2RequestData2) isValidChallengeIndicator() bool { +func (o *ThreeDS2RequestFields) isValidChallengeIndicator() bool { var allowedEnumValues = []string{"noPreference", "requestNoChallenge", "requestChallenge", "requestChallengeAsMandate"} for _, allowed := range allowedEnumValues { if o.GetChallengeIndicator() == allowed { @@ -1454,7 +1454,7 @@ func (o *ThreeDS2RequestData2) isValidChallengeIndicator() bool { } return false } -func (o *ThreeDS2RequestData2) isValidThreeDSRequestorChallengeInd() bool { +func (o *ThreeDS2RequestFields) isValidThreeDSRequestorChallengeInd() bool { var allowedEnumValues = []string{"01", "02", "03", "04", "05", "06"} for _, allowed := range allowedEnumValues { if o.GetThreeDSRequestorChallengeInd() == allowed { @@ -1463,7 +1463,7 @@ func (o *ThreeDS2RequestData2) isValidThreeDSRequestorChallengeInd() bool { } return false } -func (o *ThreeDS2RequestData2) isValidTransType() bool { +func (o *ThreeDS2RequestFields) isValidTransType() bool { var allowedEnumValues = []string{"01", "03", "10", "11", "28"} for _, allowed := range allowedEnumValues { if o.GetTransType() == allowed { @@ -1472,7 +1472,7 @@ func (o *ThreeDS2RequestData2) isValidTransType() bool { } return false } -func (o *ThreeDS2RequestData2) isValidTransactionType() bool { +func (o *ThreeDS2RequestFields) isValidTransactionType() bool { var allowedEnumValues = []string{"goodsOrServicePurchase", "checkAcceptance", "accountFunding", "quasiCashTransaction", "prepaidActivationAndLoad"} for _, allowed := range allowedEnumValues { if o.GetTransactionType() == allowed { diff --git a/src/checkout/model_three_ds2_response_data.go b/src/checkout/model_three_ds2_response_data.go index 604e87652..e9619bd83 100644 --- a/src/checkout/model_three_ds2_response_data.go +++ b/src/checkout/model_three_ds2_response_data.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_three_ds2_result.go b/src/checkout/model_three_ds2_result.go index 3d62b699b..6a50a401b 100644 --- a/src/checkout/model_three_ds2_result.go +++ b/src/checkout/model_three_ds2_result.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_three_ds_request_data.go b/src/checkout/model_three_ds_request_data.go index c1029b255..33eff0451 100644 --- a/src/checkout/model_three_ds_request_data.go +++ b/src/checkout/model_three_ds_request_data.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_three_ds_requestor_authentication_info.go b/src/checkout/model_three_ds_requestor_authentication_info.go index f6ee990f8..a677adf6c 100644 --- a/src/checkout/model_three_ds_requestor_authentication_info.go +++ b/src/checkout/model_three_ds_requestor_authentication_info.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_three_ds_requestor_prior_authentication_info.go b/src/checkout/model_three_ds_requestor_prior_authentication_info.go index 38cbaf762..9a41f8466 100644 --- a/src/checkout/model_three_ds_requestor_prior_authentication_info.go +++ b/src/checkout/model_three_ds_requestor_prior_authentication_info.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_update_payment_link_request.go b/src/checkout/model_update_payment_link_request.go index ef71ea5aa..a23828083 100644 --- a/src/checkout/model_update_payment_link_request.go +++ b/src/checkout/model_update_payment_link_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_upi_collect_details.go b/src/checkout/model_upi_collect_details.go index df25f79fe..c3d9e4090 100644 --- a/src/checkout/model_upi_collect_details.go +++ b/src/checkout/model_upi_collect_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_upi_intent_details.go b/src/checkout/model_upi_intent_details.go index 67a0a20b3..4f0cd2c65 100644 --- a/src/checkout/model_upi_intent_details.go +++ b/src/checkout/model_upi_intent_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_utility_request.go b/src/checkout/model_utility_request.go index 743d2dac1..496906050 100644 --- a/src/checkout/model_utility_request.go +++ b/src/checkout/model_utility_request.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_utility_response.go b/src/checkout/model_utility_response.go index 87bc9d52c..c042d560f 100644 --- a/src/checkout/model_utility_response.go +++ b/src/checkout/model_utility_response.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_vipps_details.go b/src/checkout/model_vipps_details.go index ad63a7f61..c5d084d7e 100644 --- a/src/checkout/model_vipps_details.go +++ b/src/checkout/model_vipps_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_visa_checkout_details.go b/src/checkout/model_visa_checkout_details.go index e2472df8e..63ee5662c 100644 --- a/src/checkout/model_visa_checkout_details.go +++ b/src/checkout/model_visa_checkout_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_we_chat_pay_details.go b/src/checkout/model_we_chat_pay_details.go index 954d7290d..c2752e88a 100644 --- a/src/checkout/model_we_chat_pay_details.go +++ b/src/checkout/model_we_chat_pay_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_we_chat_pay_mini_program_details.go b/src/checkout/model_we_chat_pay_mini_program_details.go index db7d89e9c..f59de52a4 100644 --- a/src/checkout/model_we_chat_pay_mini_program_details.go +++ b/src/checkout/model_we_chat_pay_mini_program_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/checkout/model_zip_details.go b/src/checkout/model_zip_details.go index 3f54f87d9..2b455de2e 100644 --- a/src/checkout/model_zip_details.go +++ b/src/checkout/model_zip_details.go @@ -1,7 +1,7 @@ /* Adyen Checkout API -API version: 70 +API version: 71 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/common/utils.go b/src/common/utils.go index 52817b5a6..1e83d1ae5 100644 --- a/src/common/utils.go +++ b/src/common/utils.go @@ -1,14 +1,3 @@ -/* -Adyen Checkout API - -Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [online payments documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to Checkout API must be signed with an API key. For this, [get your API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key) from your Customer Area, and set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: YOUR_API_KEY\" \\ ... ``` ## Versioning Checkout API supports [versioning](https://docs.adyen.com/development-resources/versioning) using a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v70/payments ``` ## Going live To access the live endpoints, you need an API key from your live Customer Area. The live endpoint URLs contain a prefix which is unique to your company account, for example: ``` https://{PREFIX}-checkout-live.adyenpayments.com/checkout/v70/payments ``` Get your `{PREFIX}` from your live Customer Area under **Developers** > **API URLs** > **Prefix**. When preparing to do live transactions with Checkout API, follow the [go-live checklist](https://docs.adyen.com/online-payments/go-live-checklist) to make sure you've got all the required configuration in place. ## Release notes Have a look at the [release notes](https://docs.adyen.com/online-payments/release-notes?integration_type=api&version=70) to find out what changed in this version! - -API version: 70 -Contact: developer-experience@adyen.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - package common import ( diff --git a/tests/checkout/integration_test.go b/tests/checkout/integration_test.go index f7e368935..7164f8896 100644 --- a/tests/checkout/integration_test.go +++ b/tests/checkout/integration_test.go @@ -9,6 +9,7 @@ import ( "github.com/adyen/adyen-go-api-library/v8/src/adyen" "github.com/adyen/adyen-go-api-library/v8/src/checkout" "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/google/uuid" "io/ioutil" "os" "strings" @@ -92,7 +93,7 @@ func TestCheckoutIntegration(t *testing.T) { }) t.Run("iDEAL payment", func(t *testing.T) { - idempotencyKey := "b9c3947f-b282-4059-a645-56ddbbd2fef3" + idempotencyKey := uuid.New().String() ctx := common.WithIdempotencyKey(context.Background(), idempotencyKey) ideal := checkout.NewIdealDetails("1121") paymentRequest := *checkout.NewPaymentRequest( @@ -253,7 +254,7 @@ func TestCheckoutIntegration(t *testing.T) { // verify ServiceError2 includes PspReference require.NotNil(t, err.(common.APIError).RawBody) - var serviceError checkout.ServiceError2 + var serviceError checkout.ServiceError json.Unmarshal(err.(common.APIError).RawBody, &serviceError) require.NotNil(t, serviceError) require.NotNil(t, serviceError.PspReference) diff --git a/tests/readme_test.go b/tests/readme_test.go index 27c8bfd4c..26ea11c75 100644 --- a/tests/readme_test.go +++ b/tests/readme_test.go @@ -45,7 +45,7 @@ func ExampleLiveEnv() { res, httpRes, err := service.PaymentsApi.PaymentMethods(context.Background(), req) fmt.Println(res.GetPaymentMethods(), httpRes, err.(*url.Error).URL) - // Output: [] https://1797a841fbb37ca7-AdyenDemo-checkout-live.adyenpayments.com/checkout/v70/paymentMethods + // Output: [] https://1797a841fbb37ca7-AdyenDemo-checkout-live.adyenpayments.com/checkout/v71/paymentMethods } func ExampleBasicAuth() {