From 1207334e6f5a96ae411221c188af1e7c6191ffb2 Mon Sep 17 00:00:00 2001 From: xendit-devx-bot Date: Mon, 9 Oct 2023 09:28:18 +0000 Subject: [PATCH 1/4] Generated Xendit python SDK --- .openapi-generator/FILES | 268 ++++---- README.md | 3 +- docs/AccountBank.md | 16 + docs/{ChannelProperty.md => AccountCard.md} | 6 +- docs/AccountEwallet.md | 13 + docs/AccountOTC.md | 12 + docs/AccountPayLater.md | 13 + docs/AccountQRCode.md | 11 + docs/Address.md | 23 + docs/AddressRequest.md | 20 + docs/AddressStatus.md | 11 + docs/BusinessDetail.md | 15 + docs/CardVerificationResults.md | 4 +- docs/ChannelAmountLimitsAllOf.md | 14 - docs/ChannelPropertyAllOf.md | 14 - docs/CountryCode.md | 12 + docs/CreateCustomer400Response.md | 13 + docs/CreateCustomer400ResponseAllOf.md | 12 + docs/Customer.md | 26 + docs/CustomerApi.md | 289 ++++++++ docs/CustomerRequest.md | 23 + docs/DirectDebit.md | 2 +- docs/DirectDebitAllOf.md | 2 +- docs/DirectDebitBankAccount.md | 4 +- docs/DirectDebitChannelCode.md | 4 +- docs/DirectDebitChannelProperties.md | 17 +- docs/DirectDebitDebitCard.md | 3 +- docs/EWallet.md | 4 +- docs/EWalletAccount.md | 2 +- docs/EWalletChannelProperties.md | 8 +- docs/EmploymentDetail.md | 13 + docs/EndCustomerStatus.md | 11 + docs/Error.md | 7 +- docs/GetCustomerByReferenceID200Response.md | 12 + docs/GetCustomerByReferenceID400Response.md | 13 + ...etCustomerByReferenceID400ResponseAllOf.md | 12 + docs/IdentityAccountRequest.md | 15 + docs/IdentityAccountRequestProperties.md | 21 + docs/IdentityAccountResponse.md | 19 + docs/IdentityAccountResponseProperties.md | 21 + docs/IdentityAccountType.md | 11 + docs/IndividualDetail.md | 21 + docs/KYCDocumentRequest.md | 18 + docs/KYCDocumentResponse.md | 18 + docs/KYCDocumentSubType.md | 11 + docs/KYCDocumentType.md | 11 + docs/OverTheCounter.md | 6 +- docs/OverTheCounterChannelCode.md | 2 +- docs/OverTheCounterChannelProperties.md | 2 +- docs/OverTheCounterParameters.md | 4 +- docs/PatchCustomer.md | 23 + docs/PaymentChannel.md | 17 - docs/PaymentChannelAllOf.md | 17 - docs/PaymentChannelList.md | 13 - docs/PaymentChannelListLinksInner.md | 13 - docs/PaymentChannelListLinksInnerAllOf.md | 13 - docs/PaymentMethod.md | 29 +- docs/PaymentMethodApi.md | 64 -- docs/PaymentMethodParameters.md | 9 +- docs/PaymentMethodReusability.md | 2 +- docs/PaymentMethodStatus.md | 4 +- docs/PaymentMethodType.md | 4 +- docs/QRCodeParameters.md | 4 +- docs/ResponseDataNotFound.md | 12 + docs/UpdateCustomer400Response.md | 13 + docs/UpdateCustomer400ResponseAllOf.md | 12 + docs/VirtualAccountAllOf.md | 2 +- docs/VirtualAccountAlternativeDisplay.md | 2 +- docs/VirtualAccountChannelCode.md | 2 +- docs/VirtualAccountChannelProperties.md | 4 +- docs/VirtualAccountParameters.md | 8 +- setup.py | 10 +- test/test_account_bank.py | 30 + test/test_account_card.py | 30 + test/test_account_ewallet.py | 30 + test/test_account_otc.py | 30 + test/test_account_pay_later.py | 30 + test/test_account_qr_code.py | 30 + test/test_address.py | 32 + test/test_address_request.py | 34 + test/test_address_status.py | 30 + test/test_balance.py | 2 +- test/test_balance_api.py | 2 +- test/test_billing_information.py | 2 +- test/test_business_detail.py | 32 + test/test_capture.py | 2 +- test/test_capture_list.py | 2 +- test/test_capture_list_response.py | 2 +- test/test_capture_parameters.py | 2 +- test/test_card.py | 2 +- test/test_card_channel_properties.py | 2 +- test/test_card_information.py | 2 +- test/test_card_parameters.py | 2 +- test/test_card_parameters_card_information.py | 2 +- test/test_card_verification_results.py | 6 +- ...ard_verification_results_three_d_secure.py | 2 +- test/test_channel_amount_limits.py | 6 +- test/test_channel_amount_limits_all_of.py | 30 - test/test_channel_property.py | 32 - test/test_channel_property_all_of.py | 30 - test/test_channels_categories.py | 2 +- test/test_country_code.py | 30 + test/test_create_customer400_response.py | 34 + ...test_create_customer400_response_all_of.py | 30 + .../test_create_payment_method409_response.py | 2 +- .../test_create_payment_method503_response.py | 2 +- test/test_currency.py | 2 +- test/test_customer.py | 42 ++ test/test_customer_api.py | 51 ++ test/test_customer_request.py | 40 ++ test/test_date_range_filter.py | 2 +- test/test_direct_debit_all_of.py | 10 +- test/test_direct_debit_bank_account.py | 4 +- test/test_direct_debit_channel_code.py | 4 +- test/test_direct_debit_channel_properties.py | 10 +- ...t_debit_channel_properties_bank_account.py | 2 +- ..._debit_channel_properties_bank_redirect.py | 2 +- ...ect_debit_channel_properties_debit_card.py | 2 +- test/test_direct_debit_debit_card.py | 4 +- test/test_direct_debit_parameters.py | 10 +- test/test_e_wallet.py | 14 +- test/test_e_wallet_account.py | 4 +- test/test_e_wallet_all_of.py | 2 +- test/test_e_wallet_channel_code.py | 2 +- test/test_e_wallet_channel_properties.py | 2 +- test/test_e_wallet_parameters.py | 2 +- test/test_employment_detail.py | 30 + test/test_end_customer_status.py | 30 + test/test_error.py | 4 +- test/test_fee_response.py | 2 +- ...est_get_all_payment_methods400_response.py | 2 +- ...est_get_all_payment_methods403_response.py | 2 +- ...est_get_all_payment_methods404_response.py | 2 +- ...et_all_payment_methods_default_response.py | 2 +- ...et_customer_by_reference_id200_response.py | 32 + ...et_customer_by_reference_id400_response.py | 34 + ...omer_by_reference_id400_response_all_of.py | 30 + test/test_identity_account_request.py | 36 + ...est_identity_account_request_properties.py | 42 ++ test/test_identity_account_response.py | 34 + ...st_identity_account_response_properties.py | 42 ++ test/test_identity_account_type.py | 30 + test/test_individual_detail.py | 34 + test/test_kyc_document_request.py | 36 + test/test_kyc_document_response.py | 30 + test/test_kyc_document_sub_type.py | 30 + test/test_kyc_document_type.py | 30 + test/test_link_item.py | 2 +- test/test_over_the_counter.py | 12 +- test/test_over_the_counter_channel_code.py | 4 +- ...est_over_the_counter_channel_properties.py | 4 +- ...r_the_counter_channel_properties_update.py | 2 +- test/test_over_the_counter_parameters.py | 10 +- ...test_over_the_counter_update_parameters.py | 2 +- test/test_patch_customer.py | 42 ++ test/test_payment_channel.py | 36 - test/test_payment_channel_all_of.py | 34 - test/test_payment_channel_list.py | 34 - test/test_payment_channel_list_links_inner.py | 32 - ...payment_channel_list_links_inner_all_of.py | 30 - test/test_payment_method.py | 28 +- test/test_payment_method_action.py | 2 +- test/test_payment_method_api.py | 9 +- test/test_payment_method_auth_parameters.py | 2 +- test/test_payment_method_country.py | 2 +- test/test_payment_method_expire_parameters.py | 2 +- test/test_payment_method_list.py | 2 +- test/test_payment_method_parameters.py | 22 +- test/test_payment_method_reusability.py | 4 +- test/test_payment_method_status.py | 4 +- test/test_payment_method_type.py | 4 +- test/test_payment_method_update_parameters.py | 2 +- test/test_payment_request.py | 2 +- test/test_payment_request_action.py | 2 +- test/test_payment_request_api.py | 2 +- test/test_payment_request_auth_parameters.py | 2 +- test/test_payment_request_basket.py | 2 +- test/test_payment_request_basket_item.py | 2 +- test/test_payment_request_capture_method.py | 2 +- ...yment_request_card_verification_results.py | 2 +- ...d_verification_results_three_dee_secure.py | 2 +- ...test_payment_request_channel_properties.py | 2 +- test/test_payment_request_country.py | 2 +- test/test_payment_request_currency.py | 2 +- test/test_payment_request_initiator.py | 2 +- test/test_payment_request_list_response.py | 2 +- test/test_payment_request_parameters.py | 2 +- ...t_request_parameters_channel_properties.py | 2 +- ...st_parameters_channel_properties_all_of.py | 2 +- ...st_payment_request_shipping_information.py | 2 +- test/test_payment_request_status.py | 2 +- test/test_qr_code_channel_code.py | 2 +- test/test_qr_code_channel_properties.py | 2 +- test/test_qr_code_parameters.py | 2 +- test/test_response_data_not_found.py | 30 + test/test_server_error.py | 2 +- test/test_simulate_payment_request.py | 2 +- test/test_tokenized_card_information.py | 2 +- test/test_transaction_api.py | 2 +- test/test_transaction_id.py | 2 +- test/test_transaction_response.py | 2 +- test/test_transaction_response_type.py | 2 +- test/test_transaction_statuses.py | 2 +- test/test_transaction_types.py | 2 +- test/test_transactions_response.py | 2 +- test/test_update_customer400_response.py | 34 + ...test_update_customer400_response_all_of.py | 30 + test/test_validation_error.py | 2 +- test/test_virtual_account.py | 16 +- test/test_virtual_account_all_of.py | 6 +- ...est_virtual_account_alternative_display.py | 4 +- test/test_virtual_account_channel_code.py | 4 +- ...test_virtual_account_channel_properties.py | 4 +- ...irtual_account_channel_properties_patch.py | 2 +- test/test_virtual_account_parameters.py | 10 +- .../test_virtual_account_update_parameters.py | 2 +- xendit/__init__.py | 4 +- xendit/api_client.py | 14 +- xendit/apis/__init__.py | 1 + xendit/balance_and_transaction/balance_api.py | 2 +- .../balance_and_transaction/model/balance.py | 3 +- .../model/channels_categories.py | 3 +- .../balance_and_transaction/model/currency.py | 3 +- .../model/date_range_filter.py | 3 +- .../model/fee_response.py | 3 +- .../model/link_item.py | 3 +- .../model/server_error.py | 3 +- .../model/transaction_id.py | 3 +- .../model/transaction_response.py | 7 +- .../model/transaction_response_type.py | 3 +- .../model/transaction_statuses.py | 3 +- .../model/transaction_types.py | 3 +- .../model/transactions_response.py | 3 +- .../model/validation_error.py | 3 +- .../transaction_api.py | 2 +- xendit/configuration.py | 4 +- xendit/customer/__init__.py | 1 + xendit/customer/customer_api.py | 617 ++++++++++++++++++ xendit/customer/model/__init__.py | 46 ++ xendit/customer/model/account_bank.py | 306 +++++++++ .../model/account_card.py} | 37 +- xendit/customer/model/account_ewallet.py | 285 ++++++++ .../model/account_otc.py} | 44 +- xendit/customer/model/account_pay_later.py | 285 ++++++++ xendit/customer/model/account_qr_code.py | 271 ++++++++ xendit/customer/model/address.py | 366 +++++++++++ xendit/customer/model/address_request.py | 343 ++++++++++ xendit/customer/model/address_status.py | 293 +++++++++ xendit/customer/model/business_detail.py | 322 +++++++++ xendit/customer/model/country_code.py | 291 +++++++++ .../model/create_customer400_response.py} | 46 +- .../create_customer400_response_all_of.py} | 52 +- xendit/customer/model/customer.py | 405 ++++++++++++ xendit/customer/model/customer_request.py | 381 +++++++++++ xendit/customer/model/employment_detail.py | 285 ++++++++ xendit/customer/model/end_customer_status.py | 296 +++++++++ xendit/customer/model/error.py | 289 ++++++++ ...t_customer_by_reference_id200_response.py} | 40 +- ...t_customer_by_reference_id400_response.py} | 48 +- ...omer_by_reference_id400_response_all_of.py | 284 ++++++++ .../model/identity_account_request.py} | 95 ++- .../identity_account_request_properties.py} | 106 +-- .../model/identity_account_response.py | 346 ++++++++++ .../identity_account_response_properties.py | 374 +++++++++++ .../customer/model/identity_account_type.py | 296 +++++++++ xendit/customer/model/individual_detail.py | 377 +++++++++++ xendit/customer/model/kyc_document_request.py | 328 ++++++++++ .../customer/model/kyc_document_response.py | 324 +++++++++ .../customer/model/kyc_document_sub_type.py | 301 +++++++++ xendit/customer/model/kyc_document_type.py | 298 +++++++++ xendit/customer/model/patch_customer.py | 375 +++++++++++ .../customer/model/response_data_not_found.py | 283 ++++++++ .../model/update_customer400_response.py} | 53 +- .../update_customer400_response_all_of.py | 285 ++++++++ xendit/exceptions.py | 2 +- xendit/invoice/model/address_object.py | 1 - .../invoice/model/alternative_display_item.py | 1 - xendit/invoice/model/bad_request_error.py | 1 - xendit/invoice/model/bank.py | 1 - xendit/invoice/model/bank_code.py | 1 - .../invoice/model/create_invoice_request.py | 1 - xendit/invoice/model/customer_object.py | 1 - xendit/invoice/model/direct_debit.py | 1 - xendit/invoice/model/direct_debit_type.py | 1 - xendit/invoice/model/ewallet.py | 1 - xendit/invoice/model/ewallet_type.py | 1 - xendit/invoice/model/forbidden_error.py | 1 - xendit/invoice/model/invoice.py | 1 - xendit/invoice/model/invoice_client_type.py | 1 - xendit/invoice/model/invoice_currency.py | 1 - .../invoice_error404_response_definition.py | 1 - xendit/invoice/model/invoice_fee.py | 1 - xendit/invoice/model/invoice_item.py | 1 - .../invoice/model/invoice_not_found_error.py | 1 - .../invoice/model/invoice_payment_method.py | 1 - xendit/invoice/model/invoice_status.py | 1 - xendit/invoice/model/notification_channel.py | 1 - .../invoice/model/notification_preference.py | 1 - xendit/invoice/model/paylater.py | 1 - xendit/invoice/model/paylater_type.py | 1 - xendit/invoice/model/qr_code.py | 1 - xendit/invoice/model/qr_code_type.py | 1 - xendit/invoice/model/retail_outlet.py | 1 - xendit/invoice/model/retail_outlet_name.py | 1 - xendit/invoice/model/server_error.py | 1 - xendit/invoice/model/unauthorized_error.py | 1 - xendit/model_utils.py | 2 +- xendit/payment_method/model/__init__.py | 9 - .../model/billing_information.py | 3 +- xendit/payment_method/model/card.py | 7 +- .../model/card_channel_properties.py | 3 +- .../payment_method/model/card_parameters.py | 3 +- .../model/card_parameters_card_information.py | 3 +- .../model/card_verification_results.py | 5 +- ...ard_verification_results_three_d_secure.py | 3 +- .../create_payment_method409_response.py | 3 +- .../create_payment_method503_response.py | 3 +- xendit/payment_method/model/direct_debit.py | 3 +- .../model/direct_debit_all_of.py | 3 +- .../model/direct_debit_bank_account.py | 3 +- .../model/direct_debit_channel_code.py | 3 +- .../model/direct_debit_channel_properties.py | 3 +- .../model/direct_debit_debit_card.py | 3 +- .../model/direct_debit_parameters.py | 5 +- .../payment_method/model/direct_debit_type.py | 3 +- xendit/payment_method/model/e_wallet.py | 3 +- .../payment_method/model/e_wallet_account.py | 3 +- .../model/e_wallet_channel_code.py | 3 +- .../model/e_wallet_channel_properties.py | 3 +- .../model/e_wallet_parameters.py | 3 +- .../get_all_payment_methods400_response.py | 3 +- .../get_all_payment_methods403_response.py | 3 +- .../get_all_payment_methods404_response.py | 3 +- ...et_all_payment_methods_default_response.py | 3 +- .../payment_method/model/over_the_counter.py | 3 +- .../model/over_the_counter_channel_code.py | 3 +- .../over_the_counter_channel_properties.py | 3 +- ...r_the_counter_channel_properties_update.py | 3 +- .../model/over_the_counter_parameters.py | 3 +- .../over_the_counter_update_parameters.py | 3 +- xendit/payment_method/model/payment_method.py | 3 +- .../model/payment_method_action.py | 3 +- .../model/payment_method_auth_parameters.py | 3 +- .../model/payment_method_country.py | 3 +- .../model/payment_method_expire_parameters.py | 3 +- .../model/payment_method_list.py | 3 +- .../model/payment_method_parameters.py | 3 +- .../model/payment_method_reusability.py | 3 +- .../model/payment_method_status.py | 3 +- .../model/payment_method_type.py | 3 +- .../model/payment_method_update_parameters.py | 3 +- xendit/payment_method/model/qr_code.py | 3 +- .../model/qr_code_channel_code.py | 3 +- .../model/qr_code_channel_properties.py | 3 +- .../model/qr_code_parameters.py | 3 +- .../model/simulate_payment_request.py | 3 +- .../model/tokenized_card_information.py | 3 +- .../payment_method/model/virtual_account.py | 3 +- .../model/virtual_account_all_of.py | 3 +- .../virtual_account_alternative_display.py | 3 +- .../model/virtual_account_channel_code.py | 3 +- .../virtual_account_channel_properties.py | 3 +- ...irtual_account_channel_properties_patch.py | 3 +- .../model/virtual_account_parameters.py | 3 +- .../virtual_account_update_parameters.py | 3 +- xendit/payment_method/payment_method_api.py | 146 +---- xendit/payment_request/model/capture.py | 11 +- xendit/payment_request/model/capture_list.py | 3 +- .../model/capture_list_response.py | 3 +- .../model/capture_parameters.py | 3 +- xendit/payment_request/model/card.py | 3 +- .../model/card_channel_properties.py | 3 +- .../payment_request/model/card_information.py | 3 +- .../model/card_verification_results.py | 3 +- ...ard_verification_results_three_d_secure.py | 3 +- xendit/payment_request/model/direct_debit.py | 3 +- .../model/direct_debit_all_of.py | 3 +- .../model/direct_debit_bank_account.py | 3 +- .../model/direct_debit_channel_code.py | 3 +- .../model/direct_debit_channel_properties.py | 3 +- ...t_debit_channel_properties_bank_account.py | 3 +- ..._debit_channel_properties_bank_redirect.py | 3 +- ...ect_debit_channel_properties_debit_card.py | 3 +- .../model/direct_debit_debit_card.py | 3 +- .../model/direct_debit_parameters.py | 5 +- .../model/direct_debit_type.py | 3 +- xendit/payment_request/model/e_wallet.py | 3 +- .../payment_request/model/e_wallet_account.py | 3 +- .../payment_request/model/e_wallet_all_of.py | 3 +- .../model/e_wallet_channel_code.py | 3 +- .../model/e_wallet_channel_properties.py | 17 +- .../model/e_wallet_parameters.py | 3 +- xendit/payment_request/model/error.py | 3 +- .../payment_request/model/over_the_counter.py | 3 +- .../model/over_the_counter_channel_code.py | 3 +- .../over_the_counter_channel_properties.py | 3 +- .../model/over_the_counter_parameters.py | 3 +- .../payment_request/model/payment_method.py | 3 +- .../model/payment_method_parameters.py | 3 +- .../model/payment_method_reusability.py | 3 +- .../model/payment_method_status.py | 3 +- .../model/payment_method_type.py | 3 +- .../payment_request/model/payment_request.py | 3 +- .../model/payment_request_action.py | 9 +- .../model/payment_request_auth_parameters.py | 3 +- .../model/payment_request_basket.py | 3 +- .../model/payment_request_basket_item.py | 3 +- .../model/payment_request_capture_method.py | 3 +- ...yment_request_card_verification_results.py | 5 +- ...d_verification_results_three_dee_secure.py | 3 +- .../payment_request_channel_properties.py | 3 +- .../model/payment_request_country.py | 3 +- .../model/payment_request_currency.py | 3 +- .../model/payment_request_initiator.py | 3 +- .../model/payment_request_list_response.py | 3 +- .../model/payment_request_parameters.py | 3 +- ...t_request_parameters_channel_properties.py | 3 +- ...st_parameters_channel_properties_all_of.py | 3 +- .../payment_request_shipping_information.py | 3 +- .../model/payment_request_status.py | 3 +- xendit/payment_request/model/qr_code.py | 3 +- .../model/qr_code_channel_code.py | 3 +- .../model/qr_code_channel_properties.py | 3 +- .../model/qr_code_parameters.py | 3 +- .../payment_request/model/virtual_account.py | 3 +- .../model/virtual_account_all_of.py | 3 +- .../virtual_account_alternative_display.py | 3 +- .../model/virtual_account_channel_code.py | 3 +- .../virtual_account_channel_properties.py | 3 +- .../model/virtual_account_parameters.py | 3 +- xendit/payment_request/payment_request_api.py | 2 +- xendit/payout/model/channel.py | 1 - xendit/payout/model/channel_account_type.py | 1 - xendit/payout/model/channel_amount_limits.py | 1 - xendit/payout/model/channel_category.py | 1 - xendit/payout/model/create_payout_request.py | 1 - .../digital_payout_channel_properties.py | 1 - xendit/payout/model/error.py | 1 - xendit/payout/model/error_errors_inner.py | 1 - .../payout/model/get_payouts200_response.py | 1 - .../get_payouts200_response_data_inner.py | 1 - .../model/get_payouts200_response_links.py | 1 - xendit/payout/model/payout.py | 1 - xendit/payout/model/payout_all_of.py | 1 - xendit/payout/model/receipt_notification.py | 1 - xendit/refund/model/create_refund.py | 1 - .../refund/model/create_refund400_response.py | 1 - .../refund/model/create_refund403_response.py | 1 - .../refund/model/create_refund404_response.py | 1 - .../refund/model/create_refund409_response.py | 1 - .../refund/model/create_refund503_response.py | 1 - .../model/create_refund_default_response.py | 1 - xendit/refund/model/refund.py | 1 - xendit/refund/model/refund_list.py | 1 - xendit/rest.py | 2 +- 455 files changed, 11726 insertions(+), 1628 deletions(-) create mode 100644 docs/AccountBank.md rename docs/{ChannelProperty.md => AccountCard.md} (50%) create mode 100644 docs/AccountEwallet.md create mode 100644 docs/AccountOTC.md create mode 100644 docs/AccountPayLater.md create mode 100644 docs/AccountQRCode.md create mode 100644 docs/Address.md create mode 100644 docs/AddressRequest.md create mode 100644 docs/AddressStatus.md create mode 100644 docs/BusinessDetail.md delete mode 100644 docs/ChannelAmountLimitsAllOf.md delete mode 100644 docs/ChannelPropertyAllOf.md create mode 100644 docs/CountryCode.md create mode 100644 docs/CreateCustomer400Response.md create mode 100644 docs/CreateCustomer400ResponseAllOf.md create mode 100644 docs/Customer.md create mode 100644 docs/CustomerApi.md create mode 100644 docs/CustomerRequest.md create mode 100644 docs/EmploymentDetail.md create mode 100644 docs/EndCustomerStatus.md create mode 100644 docs/GetCustomerByReferenceID200Response.md create mode 100644 docs/GetCustomerByReferenceID400Response.md create mode 100644 docs/GetCustomerByReferenceID400ResponseAllOf.md create mode 100644 docs/IdentityAccountRequest.md create mode 100644 docs/IdentityAccountRequestProperties.md create mode 100644 docs/IdentityAccountResponse.md create mode 100644 docs/IdentityAccountResponseProperties.md create mode 100644 docs/IdentityAccountType.md create mode 100644 docs/IndividualDetail.md create mode 100644 docs/KYCDocumentRequest.md create mode 100644 docs/KYCDocumentResponse.md create mode 100644 docs/KYCDocumentSubType.md create mode 100644 docs/KYCDocumentType.md create mode 100644 docs/PatchCustomer.md delete mode 100644 docs/PaymentChannel.md delete mode 100644 docs/PaymentChannelAllOf.md delete mode 100644 docs/PaymentChannelList.md delete mode 100644 docs/PaymentChannelListLinksInner.md delete mode 100644 docs/PaymentChannelListLinksInnerAllOf.md create mode 100644 docs/ResponseDataNotFound.md create mode 100644 docs/UpdateCustomer400Response.md create mode 100644 docs/UpdateCustomer400ResponseAllOf.md create mode 100644 test/test_account_bank.py create mode 100644 test/test_account_card.py create mode 100644 test/test_account_ewallet.py create mode 100644 test/test_account_otc.py create mode 100644 test/test_account_pay_later.py create mode 100644 test/test_account_qr_code.py create mode 100644 test/test_address.py create mode 100644 test/test_address_request.py create mode 100644 test/test_address_status.py create mode 100644 test/test_business_detail.py delete mode 100644 test/test_channel_amount_limits_all_of.py delete mode 100644 test/test_channel_property.py delete mode 100644 test/test_channel_property_all_of.py create mode 100644 test/test_country_code.py create mode 100644 test/test_create_customer400_response.py create mode 100644 test/test_create_customer400_response_all_of.py create mode 100644 test/test_customer.py create mode 100644 test/test_customer_api.py create mode 100644 test/test_customer_request.py create mode 100644 test/test_employment_detail.py create mode 100644 test/test_end_customer_status.py create mode 100644 test/test_get_customer_by_reference_id200_response.py create mode 100644 test/test_get_customer_by_reference_id400_response.py create mode 100644 test/test_get_customer_by_reference_id400_response_all_of.py create mode 100644 test/test_identity_account_request.py create mode 100644 test/test_identity_account_request_properties.py create mode 100644 test/test_identity_account_response.py create mode 100644 test/test_identity_account_response_properties.py create mode 100644 test/test_identity_account_type.py create mode 100644 test/test_individual_detail.py create mode 100644 test/test_kyc_document_request.py create mode 100644 test/test_kyc_document_response.py create mode 100644 test/test_kyc_document_sub_type.py create mode 100644 test/test_kyc_document_type.py create mode 100644 test/test_patch_customer.py delete mode 100644 test/test_payment_channel.py delete mode 100644 test/test_payment_channel_all_of.py delete mode 100644 test/test_payment_channel_list.py delete mode 100644 test/test_payment_channel_list_links_inner.py delete mode 100644 test/test_payment_channel_list_links_inner_all_of.py create mode 100644 test/test_response_data_not_found.py create mode 100644 test/test_update_customer400_response.py create mode 100644 test/test_update_customer400_response_all_of.py create mode 100644 xendit/customer/__init__.py create mode 100644 xendit/customer/customer_api.py create mode 100644 xendit/customer/model/__init__.py create mode 100644 xendit/customer/model/account_bank.py rename xendit/{payment_method/model/channel_property_all_of.py => customer/model/account_card.py} (89%) create mode 100644 xendit/customer/model/account_ewallet.py rename xendit/{payment_method/model/channel_amount_limits_all_of.py => customer/model/account_otc.py} (87%) create mode 100644 xendit/customer/model/account_pay_later.py create mode 100644 xendit/customer/model/account_qr_code.py create mode 100644 xendit/customer/model/address.py create mode 100644 xendit/customer/model/address_request.py create mode 100644 xendit/customer/model/address_status.py create mode 100644 xendit/customer/model/business_detail.py create mode 100644 xendit/customer/model/country_code.py rename xendit/{payment_method/model/channel_amount_limits.py => customer/model/create_customer400_response.py} (89%) rename xendit/{payment_method/model/payment_channel_list_links_inner_all_of.py => customer/model/create_customer400_response_all_of.py} (86%) create mode 100644 xendit/customer/model/customer.py create mode 100644 xendit/customer/model/customer_request.py create mode 100644 xendit/customer/model/employment_detail.py create mode 100644 xendit/customer/model/end_customer_status.py create mode 100644 xendit/customer/model/error.py rename xendit/{payment_method/model/payment_channel_list.py => customer/model/get_customer_by_reference_id200_response.py} (88%) rename xendit/{payment_method/model/channel_property.py => customer/model/get_customer_by_reference_id400_response.py} (87%) create mode 100644 xendit/customer/model/get_customer_by_reference_id400_response_all_of.py rename xendit/{payment_method/model/payment_channel_all_of.py => customer/model/identity_account_request.py} (77%) rename xendit/{payment_method/model/payment_channel.py => customer/model/identity_account_request_properties.py} (72%) create mode 100644 xendit/customer/model/identity_account_response.py create mode 100644 xendit/customer/model/identity_account_response_properties.py create mode 100644 xendit/customer/model/identity_account_type.py create mode 100644 xendit/customer/model/individual_detail.py create mode 100644 xendit/customer/model/kyc_document_request.py create mode 100644 xendit/customer/model/kyc_document_response.py create mode 100644 xendit/customer/model/kyc_document_sub_type.py create mode 100644 xendit/customer/model/kyc_document_type.py create mode 100644 xendit/customer/model/patch_customer.py create mode 100644 xendit/customer/model/response_data_not_found.py rename xendit/{payment_method/model/payment_channel_list_links_inner.py => customer/model/update_customer400_response.py} (88%) create mode 100644 xendit/customer/model/update_customer400_response_all_of.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 409bafc6..32fc43e0 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -3,121 +3,107 @@ .gitignore LICENSE README.md -docs/BillingInformation.md +docs/Capture.md +docs/CaptureList.md +docs/CaptureListResponse.md +docs/CaptureParameters.md docs/Card.md docs/CardChannelProperties.md -docs/CardParameters.md -docs/CardParametersCardInformation.md +docs/CardInformation.md docs/CardVerificationResults.md docs/CardVerificationResultsThreeDSecure.md -docs/ChannelAmountLimits.md -docs/ChannelAmountLimitsAllOf.md -docs/ChannelProperty.md -docs/ChannelPropertyAllOf.md -docs/CreatePaymentMethod409Response.md -docs/CreatePaymentMethod503Response.md docs/DirectDebit.md docs/DirectDebitAllOf.md docs/DirectDebitBankAccount.md docs/DirectDebitChannelCode.md docs/DirectDebitChannelProperties.md +docs/DirectDebitChannelPropertiesBankAccount.md +docs/DirectDebitChannelPropertiesBankRedirect.md +docs/DirectDebitChannelPropertiesDebitCard.md docs/DirectDebitDebitCard.md docs/DirectDebitParameters.md docs/DirectDebitType.md docs/EWallet.md docs/EWalletAccount.md +docs/EWalletAllOf.md docs/EWalletChannelCode.md docs/EWalletChannelProperties.md docs/EWalletParameters.md -docs/GetAllPaymentMethods400Response.md -docs/GetAllPaymentMethods403Response.md -docs/GetAllPaymentMethods404Response.md -docs/GetAllPaymentMethodsDefaultResponse.md +docs/Error.md docs/OverTheCounter.md docs/OverTheCounterChannelCode.md docs/OverTheCounterChannelProperties.md -docs/OverTheCounterChannelPropertiesUpdate.md docs/OverTheCounterParameters.md -docs/OverTheCounterUpdateParameters.md -docs/PaymentChannel.md -docs/PaymentChannelAllOf.md -docs/PaymentChannelList.md -docs/PaymentChannelListLinksInner.md -docs/PaymentChannelListLinksInnerAllOf.md docs/PaymentMethod.md -docs/PaymentMethodAction.md -docs/PaymentMethodApi.md -docs/PaymentMethodAuthParameters.md -docs/PaymentMethodCountry.md -docs/PaymentMethodExpireParameters.md -docs/PaymentMethodList.md docs/PaymentMethodParameters.md docs/PaymentMethodReusability.md docs/PaymentMethodStatus.md docs/PaymentMethodType.md -docs/PaymentMethodUpdateParameters.md +docs/PaymentRequest.md +docs/PaymentRequestAction.md +docs/PaymentRequestApi.md +docs/PaymentRequestAuthParameters.md +docs/PaymentRequestBasket.md +docs/PaymentRequestBasketItem.md +docs/PaymentRequestCaptureMethod.md +docs/PaymentRequestCardVerificationResults.md +docs/PaymentRequestCardVerificationResultsThreeDeeSecure.md +docs/PaymentRequestChannelProperties.md +docs/PaymentRequestCountry.md +docs/PaymentRequestCurrency.md +docs/PaymentRequestInitiator.md +docs/PaymentRequestListResponse.md +docs/PaymentRequestParameters.md +docs/PaymentRequestParametersChannelProperties.md +docs/PaymentRequestParametersChannelPropertiesAllOf.md +docs/PaymentRequestShippingInformation.md +docs/PaymentRequestStatus.md docs/QRCode.md docs/QRCodeChannelCode.md docs/QRCodeChannelProperties.md docs/QRCodeParameters.md -docs/SimulatePaymentRequest.md -docs/TokenizedCardInformation.md docs/VirtualAccount.md docs/VirtualAccountAllOf.md docs/VirtualAccountAlternativeDisplay.md docs/VirtualAccountChannelCode.md docs/VirtualAccountChannelProperties.md -docs/VirtualAccountChannelPropertiesPatch.md docs/VirtualAccountParameters.md -docs/VirtualAccountUpdateParameters.md docs/header.jpg requirements.txt setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_billing_information.py -test/test_card.py -test/test_card_channel_properties.py -test/test_card_parameters.py -test/test_card_parameters_card_information.py -test/test_card_verification_results_three_d_secure.py -test/test_channel_amount_limits.py -test/test_channel_amount_limits_all_of.py -test/test_channel_property.py -test/test_channel_property_all_of.py -test/test_create_payment_method409_response.py -test/test_create_payment_method503_response.py -test/test_e_wallet_channel_code.py -test/test_e_wallet_channel_properties.py -test/test_e_wallet_parameters.py -test/test_get_all_payment_methods400_response.py -test/test_get_all_payment_methods403_response.py -test/test_get_all_payment_methods404_response.py -test/test_get_all_payment_methods_default_response.py -test/test_over_the_counter_channel_properties_update.py -test/test_over_the_counter_update_parameters.py -test/test_payment_channel.py -test/test_payment_channel_all_of.py -test/test_payment_channel_list.py -test/test_payment_channel_list_links_inner.py -test/test_payment_channel_list_links_inner_all_of.py -test/test_payment_method_action.py -test/test_payment_method_api.py -test/test_payment_method_auth_parameters.py -test/test_payment_method_country.py -test/test_payment_method_expire_parameters.py -test/test_payment_method_list.py -test/test_payment_method_update_parameters.py -test/test_qr_code_channel_code.py -test/test_qr_code_channel_properties.py -test/test_qr_code_parameters.py -test/test_simulate_payment_request.py -test/test_tokenized_card_information.py -test/test_virtual_account_channel_properties_patch.py -test/test_virtual_account_update_parameters.py -tmp/payment_method.api.py -tmp/payment_method.model.py +test/test_capture.py +test/test_capture_list.py +test/test_capture_list_response.py +test/test_capture_parameters.py +test/test_card_information.py +test/test_direct_debit_channel_properties_bank_account.py +test/test_direct_debit_channel_properties_bank_redirect.py +test/test_direct_debit_channel_properties_debit_card.py +test/test_e_wallet_all_of.py +test/test_payment_request.py +test/test_payment_request_action.py +test/test_payment_request_api.py +test/test_payment_request_auth_parameters.py +test/test_payment_request_basket.py +test/test_payment_request_basket_item.py +test/test_payment_request_capture_method.py +test/test_payment_request_card_verification_results.py +test/test_payment_request_card_verification_results_three_dee_secure.py +test/test_payment_request_channel_properties.py +test/test_payment_request_country.py +test/test_payment_request_currency.py +test/test_payment_request_initiator.py +test/test_payment_request_list_response.py +test/test_payment_request_parameters.py +test/test_payment_request_parameters_channel_properties.py +test/test_payment_request_parameters_channel_properties_all_of.py +test/test_payment_request_shipping_information.py +test/test_payment_request_status.py +tmp/payment_request.api.py +tmp/payment_request.model.py tox.ini xendit/__init__.py xendit/api_client.py @@ -126,73 +112,71 @@ xendit/configuration.py xendit/exceptions.py xendit/model_utils.py xendit/models/__init__.py -xendit/payment_method/__init__.py -xendit/payment_method/model/__init__.py -xendit/payment_method/model/billing_information.py -xendit/payment_method/model/card.py -xendit/payment_method/model/card_channel_properties.py -xendit/payment_method/model/card_parameters.py -xendit/payment_method/model/card_parameters_card_information.py -xendit/payment_method/model/card_verification_results.py -xendit/payment_method/model/card_verification_results_three_d_secure.py -xendit/payment_method/model/channel_amount_limits.py -xendit/payment_method/model/channel_amount_limits_all_of.py -xendit/payment_method/model/channel_property.py -xendit/payment_method/model/channel_property_all_of.py -xendit/payment_method/model/create_payment_method409_response.py -xendit/payment_method/model/create_payment_method503_response.py -xendit/payment_method/model/direct_debit.py -xendit/payment_method/model/direct_debit_all_of.py -xendit/payment_method/model/direct_debit_bank_account.py -xendit/payment_method/model/direct_debit_channel_code.py -xendit/payment_method/model/direct_debit_channel_properties.py -xendit/payment_method/model/direct_debit_debit_card.py -xendit/payment_method/model/direct_debit_parameters.py -xendit/payment_method/model/direct_debit_type.py -xendit/payment_method/model/e_wallet.py -xendit/payment_method/model/e_wallet_account.py -xendit/payment_method/model/e_wallet_channel_code.py -xendit/payment_method/model/e_wallet_channel_properties.py -xendit/payment_method/model/e_wallet_parameters.py -xendit/payment_method/model/get_all_payment_methods400_response.py -xendit/payment_method/model/get_all_payment_methods403_response.py -xendit/payment_method/model/get_all_payment_methods404_response.py -xendit/payment_method/model/get_all_payment_methods_default_response.py -xendit/payment_method/model/over_the_counter.py -xendit/payment_method/model/over_the_counter_channel_code.py -xendit/payment_method/model/over_the_counter_channel_properties.py -xendit/payment_method/model/over_the_counter_channel_properties_update.py -xendit/payment_method/model/over_the_counter_parameters.py -xendit/payment_method/model/over_the_counter_update_parameters.py -xendit/payment_method/model/payment_channel.py -xendit/payment_method/model/payment_channel_all_of.py -xendit/payment_method/model/payment_channel_list.py -xendit/payment_method/model/payment_channel_list_links_inner.py -xendit/payment_method/model/payment_channel_list_links_inner_all_of.py -xendit/payment_method/model/payment_method.py -xendit/payment_method/model/payment_method_action.py -xendit/payment_method/model/payment_method_auth_parameters.py -xendit/payment_method/model/payment_method_country.py -xendit/payment_method/model/payment_method_expire_parameters.py -xendit/payment_method/model/payment_method_list.py -xendit/payment_method/model/payment_method_parameters.py -xendit/payment_method/model/payment_method_reusability.py -xendit/payment_method/model/payment_method_status.py -xendit/payment_method/model/payment_method_type.py -xendit/payment_method/model/payment_method_update_parameters.py -xendit/payment_method/model/qr_code.py -xendit/payment_method/model/qr_code_channel_code.py -xendit/payment_method/model/qr_code_channel_properties.py -xendit/payment_method/model/qr_code_parameters.py -xendit/payment_method/model/simulate_payment_request.py -xendit/payment_method/model/tokenized_card_information.py -xendit/payment_method/model/virtual_account.py -xendit/payment_method/model/virtual_account_all_of.py -xendit/payment_method/model/virtual_account_alternative_display.py -xendit/payment_method/model/virtual_account_channel_code.py -xendit/payment_method/model/virtual_account_channel_properties.py -xendit/payment_method/model/virtual_account_channel_properties_patch.py -xendit/payment_method/model/virtual_account_parameters.py -xendit/payment_method/model/virtual_account_update_parameters.py -xendit/payment_method/payment_method_api.py +xendit/payment_request/__init__.py +xendit/payment_request/model/__init__.py +xendit/payment_request/model/capture.py +xendit/payment_request/model/capture_list.py +xendit/payment_request/model/capture_list_response.py +xendit/payment_request/model/capture_parameters.py +xendit/payment_request/model/card.py +xendit/payment_request/model/card_channel_properties.py +xendit/payment_request/model/card_information.py +xendit/payment_request/model/card_verification_results.py +xendit/payment_request/model/card_verification_results_three_d_secure.py +xendit/payment_request/model/direct_debit.py +xendit/payment_request/model/direct_debit_all_of.py +xendit/payment_request/model/direct_debit_bank_account.py +xendit/payment_request/model/direct_debit_channel_code.py +xendit/payment_request/model/direct_debit_channel_properties.py +xendit/payment_request/model/direct_debit_channel_properties_bank_account.py +xendit/payment_request/model/direct_debit_channel_properties_bank_redirect.py +xendit/payment_request/model/direct_debit_channel_properties_debit_card.py +xendit/payment_request/model/direct_debit_debit_card.py +xendit/payment_request/model/direct_debit_parameters.py +xendit/payment_request/model/direct_debit_type.py +xendit/payment_request/model/e_wallet.py +xendit/payment_request/model/e_wallet_account.py +xendit/payment_request/model/e_wallet_all_of.py +xendit/payment_request/model/e_wallet_channel_code.py +xendit/payment_request/model/e_wallet_channel_properties.py +xendit/payment_request/model/e_wallet_parameters.py +xendit/payment_request/model/error.py +xendit/payment_request/model/over_the_counter.py +xendit/payment_request/model/over_the_counter_channel_code.py +xendit/payment_request/model/over_the_counter_channel_properties.py +xendit/payment_request/model/over_the_counter_parameters.py +xendit/payment_request/model/payment_method.py +xendit/payment_request/model/payment_method_parameters.py +xendit/payment_request/model/payment_method_reusability.py +xendit/payment_request/model/payment_method_status.py +xendit/payment_request/model/payment_method_type.py +xendit/payment_request/model/payment_request.py +xendit/payment_request/model/payment_request_action.py +xendit/payment_request/model/payment_request_auth_parameters.py +xendit/payment_request/model/payment_request_basket.py +xendit/payment_request/model/payment_request_basket_item.py +xendit/payment_request/model/payment_request_capture_method.py +xendit/payment_request/model/payment_request_card_verification_results.py +xendit/payment_request/model/payment_request_card_verification_results_three_dee_secure.py +xendit/payment_request/model/payment_request_channel_properties.py +xendit/payment_request/model/payment_request_country.py +xendit/payment_request/model/payment_request_currency.py +xendit/payment_request/model/payment_request_initiator.py +xendit/payment_request/model/payment_request_list_response.py +xendit/payment_request/model/payment_request_parameters.py +xendit/payment_request/model/payment_request_parameters_channel_properties.py +xendit/payment_request/model/payment_request_parameters_channel_properties_all_of.py +xendit/payment_request/model/payment_request_shipping_information.py +xendit/payment_request/model/payment_request_status.py +xendit/payment_request/model/qr_code.py +xendit/payment_request/model/qr_code_channel_code.py +xendit/payment_request/model/qr_code_channel_properties.py +xendit/payment_request/model/qr_code_parameters.py +xendit/payment_request/model/virtual_account.py +xendit/payment_request/model/virtual_account_all_of.py +xendit/payment_request/model/virtual_account_alternative_display.py +xendit/payment_request/model/virtual_account_channel_code.py +xendit/payment_request/model/virtual_account_channel_properties.py +xendit/payment_request/model/virtual_account_parameters.py +xendit/payment_request/payment_request_api.py xendit/rest.py diff --git a/README.md b/README.md index 59f0a3db..b1dff692 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ The official Xendit Python SDK provides a simple and convenient way to call Xendit's REST API in applications written in Python. -* Package version: 3.2.0 +* Package version: 3.3.0 ## Requirements. @@ -67,6 +67,7 @@ except xendit.XenditSdkException as e: Find detailed API information and examples for each of our product's by clicking the links below, * [Balance](docs/BalanceApi.md) +* [Customer](docs/CustomerApi.md) * [Invoice](docs/InvoiceApi.md) * [PaymentMethod](docs/PaymentMethodApi.md) * [PaymentRequest](docs/PaymentRequestApi.md) diff --git a/docs/AccountBank.md b/docs/AccountBank.md new file mode 100644 index 00000000..2c7ba779 --- /dev/null +++ b/docs/AccountBank.md @@ -0,0 +1,16 @@ +# xendit.customer.model.AccountBank + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_number** | **str** | Unique account identifier as per the bank records. | [optional] +**account_holder_name** | **str, none_type** | Name of account holder as per the bank records. Needs to match the registered account name exactly. . | [optional] +**swift_code** | **str, none_type** | The SWIFT code for international payments | [optional] +**account_type** | **str, none_type** | Free text account type, e.g., Savings, Transaction, Virtual Account. | [optional] +**account_details** | **str, none_type** | Potentially masked account detail, for display purposes only. | [optional] +**currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChannelProperty.md b/docs/AccountCard.md similarity index 50% rename from docs/ChannelProperty.md rename to docs/AccountCard.md index 412ec760..7f7b68b7 100644 --- a/docs/ChannelProperty.md +++ b/docs/AccountCard.md @@ -1,12 +1,10 @@ -# xendit.payment_method.model.ChannelProperty +# xendit.customer.model.AccountCard ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The corresponding parameter name | [optional] -**type** | **str** | Data type of the parameter | [optional] -**is_required** | **bool** | Indicates whether or not the parameter is required | [optional] +**token_id** | **str** | The token id returned in tokenisation | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AccountEwallet.md b/docs/AccountEwallet.md new file mode 100644 index 00000000..61c8fbff --- /dev/null +++ b/docs/AccountEwallet.md @@ -0,0 +1,13 @@ +# xendit.customer.model.AccountEwallet + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_number** | **str** | Unique account identifier as per the bank records. | [optional] +**account_holder_name** | **str, none_type** | Name of account holder as per the bank records. Needs to match the registered account name exactly. | [optional] +**currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AccountOTC.md b/docs/AccountOTC.md new file mode 100644 index 00000000..9239c483 --- /dev/null +++ b/docs/AccountOTC.md @@ -0,0 +1,12 @@ +# xendit.customer.model.AccountOTC + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_code** | **str** | Complete fixed payment code (including prefix) | [optional] +**expires_at** | **str, none_type** | YYYY-MM-DD string with expiry date for the payment code | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AccountPayLater.md b/docs/AccountPayLater.md new file mode 100644 index 00000000..4aa09b05 --- /dev/null +++ b/docs/AccountPayLater.md @@ -0,0 +1,13 @@ +# xendit.customer.model.AccountPayLater + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **str** | Alphanumeric string identifying this account. Usually an email address or phone number. | [optional] +**account_holder_name** | **str, none_type** | Name of account holder as per the cardless credit account. | [optional] +**currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AccountQRCode.md b/docs/AccountQRCode.md new file mode 100644 index 00000000..6d56949d --- /dev/null +++ b/docs/AccountQRCode.md @@ -0,0 +1,11 @@ +# xendit.customer.model.AccountQRCode + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qr_string** | **str** | String representation of the QR Code image | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Address.md b/docs/Address.md new file mode 100644 index 00000000..401c3816 --- /dev/null +++ b/docs/Address.md @@ -0,0 +1,23 @@ +# xendit.customer.model.Address + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category** | **str, none_type** | | +**country** | **bool, date, datetime, dict, float, int, list, str, none_type** | | +**province_state** | **str, none_type** | | +**city** | **str, none_type** | | +**postal_code** | **str, none_type** | | +**street_line1** | **str, none_type** | | +**street_line2** | **str, none_type** | | +**is_primary** | **bool, none_type** | | +**id** | **str** | | [optional] +**status** | [**AddressStatus**](AddressStatus.md) | | [optional] +**meta** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] +**created** | **datetime** | | [optional] +**updated** | **datetime** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AddressRequest.md b/docs/AddressRequest.md new file mode 100644 index 00000000..b4457718 --- /dev/null +++ b/docs/AddressRequest.md @@ -0,0 +1,20 @@ +# xendit.customer.model.AddressRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category** | **str** | Home, work or provincial | [optional] +**country_code** | [**CountryCode**](CountryCode.md) | | [optional] +**province_state** | **str** | | [optional] +**city** | **str** | | [optional] +**suburb** | **str** | | [optional] +**postal_code** | **str** | | [optional] +**line_1** | **str** | | [optional] +**line_2** | **str** | | [optional] +**status** | [**AddressStatus**](AddressStatus.md) | | [optional] +**is_primary** | **bool** | | [optional] if omitted the server will use the default value of False + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AddressStatus.md b/docs/AddressStatus.md new file mode 100644 index 00000000..e0b5cf54 --- /dev/null +++ b/docs/AddressStatus.md @@ -0,0 +1,11 @@ +# xendit.customer.model.AddressStatus + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | | must be one of ["ACTIVE", "DELETED", ] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BusinessDetail.md b/docs/BusinessDetail.md new file mode 100644 index 00000000..6339b26e --- /dev/null +++ b/docs/BusinessDetail.md @@ -0,0 +1,15 @@ +# xendit.customer.model.BusinessDetail + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**business_name** | **str** | | [optional] +**business_type** | **str, none_type** | | [optional] +**date_of_registration** | **str, none_type** | | [optional] +**nature_of_business** | **str, none_type** | | [optional] +**business_domicile** | [**CountryCode**](CountryCode.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CardVerificationResults.md b/docs/CardVerificationResults.md index e1e3ea3c..7a74dae4 100644 --- a/docs/CardVerificationResults.md +++ b/docs/CardVerificationResults.md @@ -1,10 +1,10 @@ -# xendit.payment_method.model.CardVerificationResults +# xendit.payment_request.model.CardVerificationResults ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**three_d_secure** | [**CardVerificationResultsThreeDSecure**](CardVerificationResultsThreeDSecure.md) | | +**three_d_secure** | [**CardVerificationResultsThreeDSecure**](CardVerificationResultsThreeDSecure.md) | | [optional] **cvv_result** | **str, none_type** | | [optional] **address_verification_result** | **str, none_type** | | [optional] diff --git a/docs/ChannelAmountLimitsAllOf.md b/docs/ChannelAmountLimitsAllOf.md deleted file mode 100644 index 0985dccc..00000000 --- a/docs/ChannelAmountLimitsAllOf.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_method.model.ChannelAmountLimitsAllOf - -Contains objects of the support currencies and its respective limits per transaction - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency** | **str** | Currency supported by the payment channel | [optional] -**min_limit** | **float** | The minimum allowed transaction amount for the payment channel | [optional] -**max_limit** | **float** | The minimum allowed transaction amount for the payment channel | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ChannelPropertyAllOf.md b/docs/ChannelPropertyAllOf.md deleted file mode 100644 index bd8573c6..00000000 --- a/docs/ChannelPropertyAllOf.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_method.model.ChannelPropertyAllOf - -Objects that enumerate the parameters needed as `channel_properties` when creating a Payment Method - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The corresponding parameter name | [optional] -**type** | **str** | Data type of the parameter | [optional] -**is_required** | **bool** | Indicates whether or not the parameter is required | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CountryCode.md b/docs/CountryCode.md new file mode 100644 index 00000000..2b0208d1 --- /dev/null +++ b/docs/CountryCode.md @@ -0,0 +1,12 @@ +# xendit.customer.model.CountryCode + +ISO3166-2 country code + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | ISO3166-2 country code | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateCustomer400Response.md b/docs/CreateCustomer400Response.md new file mode 100644 index 00000000..a787d78b --- /dev/null +++ b/docs/CreateCustomer400Response.md @@ -0,0 +1,13 @@ +# xendit.customer.model.CreateCustomer400Response + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_code** | **str** | | +**message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | +**errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateCustomer400ResponseAllOf.md b/docs/CreateCustomer400ResponseAllOf.md new file mode 100644 index 00000000..372292b9 --- /dev/null +++ b/docs/CreateCustomer400ResponseAllOf.md @@ -0,0 +1,12 @@ +# xendit.customer.model.CreateCustomer400ResponseAllOf + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_code** | **str** | | [optional] +**message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Customer.md b/docs/Customer.md new file mode 100644 index 00000000..c2556838 --- /dev/null +++ b/docs/Customer.md @@ -0,0 +1,26 @@ +# xendit.customer.model.Customer + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reference_id** | **str** | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | +**individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | +**business_detail** | [**BusinessDetail**](BusinessDetail.md) | | +**description** | **str, none_type** | | +**email** | **str, none_type** | | +**mobile_number** | **str, none_type** | | +**phone_number** | **str, none_type** | | +**addresses** | [**[Address], none_type**](Address.md) | | +**identity_accounts** | [**[IdentityAccountResponse], none_type**](IdentityAccountResponse.md) | | +**kyc_documents** | [**[KYCDocumentResponse], none_type**](KYCDocumentResponse.md) | | +**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | +**id** | **str** | | +**created** | **datetime** | | +**updated** | **datetime** | | +**type** | **str** | | defaults to "INDIVIDUAL" +**status** | [**EndCustomerStatus**](EndCustomerStatus.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CustomerApi.md b/docs/CustomerApi.md new file mode 100644 index 00000000..0bee67b0 --- /dev/null +++ b/docs/CustomerApi.md @@ -0,0 +1,289 @@ +# xendit.apis.CustomerApi + +All URIs are relative to *https://api.xendit.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_customer**](CustomerApi.md#create_customer) | **POST** /customers | Create Customer +[**get_customer**](CustomerApi.md#get_customer) | **GET** /customers/{id} | Get Customer By ID +[**get_customer_by_reference_id**](CustomerApi.md#get_customer_by_reference_id) | **GET** /customers | GET customers by reference id +[**update_customer**](CustomerApi.md#update_customer) | **PATCH** /customers/{id} | Update End Customer Resource + + +# **create_customer** +> Customer create_customer() + +Create Customer + +Function to create a customer that you may use in your Invoice or Payment Requests. For detail explanations, see this link: https://developers.xendit.co/api-reference/#create-customer + +### Example + + +```python +import time +import xendit +from xendit.apis import CustomerApi +from xendit.customer.model.customer import Customer +from xendit.customer.model.customer_request import CustomerRequest +from xendit.customer.model.create_customer400_response import CreateCustomer400Response +from xendit.customer.model.error import Error +from pprint import pprint + +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') + + +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() +# Create an instance of the API class +api_instance = CustomerApi(api_client) + +# example passing only required values which don't have defaults set +# and optional values +try: + # Create Customer + api_response = api_instance.create_customer(idempotency_key=idempotency_key, for_user_id=for_user_id, customer_request=customer_request) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling CustomerApi->create_customer: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique key to prevent processing duplicate requests. | [optional] + **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. | [optional] + **customer_request** | [**CustomerRequest**](CustomerRequest.md)| Request object for end customer object | [optional] + +### Return type + +[**Customer**](Customer.md) + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Created End Customer | - | +**400** | Various errors | - | +**0** | Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_customer** +> Customer get_customer(id) + +Get Customer By ID + +Retrieves a single customer object For detail explanations, see this link: https://developers.xendit.co/api-reference/#get-customer + +### Example + + +```python +import time +import xendit +from xendit.apis import CustomerApi +from xendit.customer.model.customer import Customer +from xendit.customer.model.get_customer_by_reference_id400_response import GetCustomerByReferenceID400Response +from xendit.customer.model.error import Error +from xendit.customer.model.response_data_not_found import ResponseDataNotFound +from pprint import pprint + +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') + + +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() +# Create an instance of the API class +api_instance = CustomerApi(api_client) +id = "d290f1ee-6c54-4b01-90e6-d701748f0851" # str | End customer resource id + +# example passing only required values which don't have defaults set +try: + # Get Customer By ID + api_response = api_instance.get_customer(id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling CustomerApi->get_customer: %s\n" % e) + +# example passing only required values which don't have defaults set +# and optional values +try: + # Get Customer By ID + api_response = api_instance.get_customer(id, for_user_id=for_user_id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling CustomerApi->get_customer: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| End customer resource id | + **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. | [optional] + +### Return type + +[**Customer**](Customer.md) + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | End Customer Resource | - | +**400** | Various errors | - | +**404** | Customer not found | - | +**0** | Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_customer_by_reference_id** +> GetCustomerByReferenceID200Response get_customer_by_reference_id(reference_id) + +GET customers by reference id + +Retrieves an array with a customer object that matches the provided reference_id - the identifier provided by you For detail explanations, see this link: https://developers.xendit.co/api-reference/#get-customer-by-reference-id + +### Example + + +```python +import time +import xendit +from xendit.apis import CustomerApi +from xendit.customer.model.get_customer_by_reference_id400_response import GetCustomerByReferenceID400Response +from xendit.customer.model.error import Error +from xendit.customer.model.get_customer_by_reference_id200_response import GetCustomerByReferenceID200Response +from pprint import pprint + +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') + + +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() +# Create an instance of the API class +api_instance = CustomerApi(api_client) +reference_id = "reference_id_example" # str | Merchant's reference of end customer + +# example passing only required values which don't have defaults set +try: + # GET customers by reference id + api_response = api_instance.get_customer_by_reference_id(reference_id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling CustomerApi->get_customer_by_reference_id: %s\n" % e) + +# example passing only required values which don't have defaults set +# and optional values +try: + # GET customers by reference id + api_response = api_instance.get_customer_by_reference_id(reference_id, for_user_id=for_user_id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling CustomerApi->get_customer_by_reference_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reference_id** | **str**| Merchant's reference of end customer | + **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. | [optional] + +### Return type + +[**GetCustomerByReferenceID200Response**](GetCustomerByReferenceID200Response.md) + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | End Customers | - | +**400** | Various errors | - | +**0** | Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_customer** +> Customer update_customer(id) + +Update End Customer Resource + +Function to update an existing customer. For a detailed explanation For detail explanations, see this link: https://developers.xendit.co/api-reference/#update-customer + +### Example + + +```python +import time +import xendit +from xendit.apis import CustomerApi +from xendit.customer.model.customer import Customer +from xendit.customer.model.update_customer400_response import UpdateCustomer400Response +from xendit.customer.model.error import Error +from xendit.customer.model.patch_customer import PatchCustomer +from pprint import pprint + +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') + + +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() +# Create an instance of the API class +api_instance = CustomerApi(api_client) +id = "d290f1ee-6c54-4b01-90e6-d701748f0851" # str | End customer resource id + +# example passing only required values which don't have defaults set +try: + # Update End Customer Resource + api_response = api_instance.update_customer(id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling CustomerApi->update_customer: %s\n" % e) + +# example passing only required values which don't have defaults set +# and optional values +try: + # Update End Customer Resource + api_response = api_instance.update_customer(id, for_user_id=for_user_id, patch_customer=patch_customer) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling CustomerApi->update_customer: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| End customer resource id | + **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. | [optional] + **patch_customer** | [**PatchCustomer**](PatchCustomer.md)| Update Request for end customer object | [optional] + +### Return type + +[**Customer**](Customer.md) + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Updated End Customer | - | +**400** | Various errors | - | +**0** | Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CustomerRequest.md b/docs/CustomerRequest.md new file mode 100644 index 00000000..e5b220af --- /dev/null +++ b/docs/CustomerRequest.md @@ -0,0 +1,23 @@ +# xendit.customer.model.CustomerRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reference_id** | **str** | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | +**client_name** | **str** | Entity's name for this client | [optional] +**type** | **str** | | [optional] if omitted the server will use the default value of "INDIVIDUAL" +**individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | [optional] +**business_detail** | [**BusinessDetail**](BusinessDetail.md) | | [optional] +**description** | **str, none_type** | | [optional] +**email** | **str** | | [optional] +**mobile_number** | **str** | | [optional] +**phone_number** | **str** | | [optional] +**addresses** | [**[AddressRequest]**](AddressRequest.md) | | [optional] +**identity_accounts** | [**[IdentityAccountRequest]**](IdentityAccountRequest.md) | | [optional] +**kyc_documents** | [**[KYCDocumentRequest]**](KYCDocumentRequest.md) | | [optional] +**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DirectDebit.md b/docs/DirectDebit.md index 1e997619..9761278d 100644 --- a/docs/DirectDebit.md +++ b/docs/DirectDebit.md @@ -1,4 +1,4 @@ -# xendit.payment_method.model.DirectDebit +# xendit.payment_request.model.DirectDebit Direct Debit Payment Method Details diff --git a/docs/DirectDebitAllOf.md b/docs/DirectDebitAllOf.md index 6daf9b1d..aa5e6d61 100644 --- a/docs/DirectDebitAllOf.md +++ b/docs/DirectDebitAllOf.md @@ -1,4 +1,4 @@ -# xendit.payment_method.model.DirectDebitAllOf +# xendit.payment_request.model.DirectDebitAllOf ## Properties diff --git a/docs/DirectDebitBankAccount.md b/docs/DirectDebitBankAccount.md index 5bb65247..67e2e877 100644 --- a/docs/DirectDebitBankAccount.md +++ b/docs/DirectDebitBankAccount.md @@ -1,4 +1,4 @@ -# xendit.payment_method.model.DirectDebitBankAccount +# xendit.payment_request.model.DirectDebitBankAccount ## Properties @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **masked_bank_account_number** | **str, none_type** | | [optional] **bank_account_hash** | **str, none_type** | | [optional] -**mobile_number** | **str, none_type** | Mobile number of the customer registered to the partner channel | [optional] -**identity_document_number** | **str, none_type** | Identity number of the customer registered to the partner channel | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DirectDebitChannelCode.md b/docs/DirectDebitChannelCode.md index 45bf1ba9..aad94a72 100644 --- a/docs/DirectDebitChannelCode.md +++ b/docs/DirectDebitChannelCode.md @@ -1,11 +1,11 @@ -# xendit.payment_method.model.DirectDebitChannelCode +# xendit.payment_request.model.DirectDebitChannelCode Direct Debit Channel Code ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **str** | Direct Debit Channel Code | must be one of ["BCA_KLIKPAY", "BCA_ONEKLIK", "BDO", "BPI", "BRI", "BNI", "CHINABANK", "CIMBNIAGA", "MTB", "RCBC", "UBP", "MANDIRI", "BBL", "SCB", "KTB", "BAY", "KBANK_MB", "BAY_MB", "KTB_MB", "BBL_MB", "SCB_MB", "BDO_EPAY", "AUTODEBIT_UBP", "AFFIN_FPX", "AGRO_FPX", "ALLIANCE_FPX", "AMBANK_FPX", "ISLAM_FPX", "MUAMALAT_FPX", "BOC_FPX", "RAKYAT_FPX", "BSN_FPX", "CIMB_FPX", "HLB_FPX", "HSBC_FPX", "KFH_FPX", "MAYB2E_FPX", "MAYB2U_FPX", "OCBC_FPX", "PUBLIC_FPX", "RHB_FPX", "SCH_FPX", "UOB_FPX", "AFFIN_FPX_BUSINESS", "AGRO_FPX_BUSINESS", "ALLIANCE_FPX_BUSINESS", "AMBANK_FPX_BUSINESS", "ISLAM_FPX_BUSINESS", "MUAMALAT_FPX_BUSINESS", "BNP_FPX_BUSINESS", "CIMB_FPX_BUSINESS", "CITIBANK_FPX_BUSINESS", "DEUTSCHE_FPX_BUSINESS", "HLB_FPX_BUSINESS", "HSBC_FPX_BUSINESS", "RAKYAT_FPX_BUSINESS", "KFH_FPX_BUSINESS", "MAYB2E_FPX_BUSINESS", "OCBC_FPX_BUSINESS", "PUBLIC_FPX_BUSINESS", "RHB_FPX_BUSINESS", "SCH_FPX_BUSINESS", "UOB_FPX_BUSINESS", ] +**value** | **str** | Direct Debit Channel Code | must be one of ["BCA_KLIKPAY", "BCA_ONEKLIK", "BRI", "BNI", "MANDIRI", "BPI", "BDO", "CIMBNIAGA", "MTB", "RCBC", "UBP", "AUTODEBIT_UBP", "CHINABANK", "BAY", "KTB", "BBL", "SCB", "KBANK_MB", "BAY_MB", "KTB_MB", "BBL_MB", "SCB_MB", "BDO_EPAY", "AFFIN_FPX", "AGRO_FPX", "ALLIANCE_FPX", "AMBANK_FPX", "ISLAM_FPX", "MUAMALAT_FPX", "BOC_FPX", "RAKYAT_FPX", "BSN_FPX", "CIMB_FPX", "HLB_FPX", "HSBC_FPX", "KFH_FPX", "MAYB2E_FPX", "MAYB2U_FPX", "OCBC_FPX", "PUBLIC_FPX", "RHB_FPX", "SCH_FPX", "UOB_FPX", "AFFIN_FPX_BUSINESS", "AGRO_FPX_BUSINESS", "ALLIANCE_FPX_BUSINESS", "AMBANK_FPX_BUSINESS", "ISLAM_FPX_BUSINESS", "MUAMALAT_FPX_BUSINESS", "BNP_FPX_BUSINESS", "CIMB_FPX_BUSINESS", "CITIBANK_FPX_BUSINESS", "DEUTSCHE_FPX_BUSINESS", "HLB_FPX_BUSINESS", "HSBC_FPX_BUSINESS", "RAKYAT_FPX_BUSINESS", "KFH_FPX_BUSINESS", "MAYB2E_FPX_BUSINESS", "OCBC_FPX_BUSINESS", "PUBLIC_FPX_BUSINESS", "RHB_FPX_BUSINESS", "SCH_FPX_BUSINESS", "UOB_FPX_BUSINESS", ] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DirectDebitChannelProperties.md b/docs/DirectDebitChannelProperties.md index b044f24c..1d9ee14f 100644 --- a/docs/DirectDebitChannelProperties.md +++ b/docs/DirectDebitChannelProperties.md @@ -1,18 +1,17 @@ -# xendit.payment_method.model.DirectDebitChannelProperties +# xendit.payment_request.model.DirectDebitChannelProperties -Direct Debit Channel Properties ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**mobile_number** | **str** | Mobile number of the customer registered to the partner channel | [optional] **success_return_url** | **str** | | [optional] -**failure_return_url** | **str, none_type** | | [optional] -**mobile_number** | **str, none_type** | Mobile number of the customer registered to the partner channel | [optional] -**card_last_four** | **str, none_type** | Last four digits of the debit card | [optional] -**card_expiry** | **str, none_type** | Expiry month and year of the debit card (in MM/YY format) | [optional] -**email** | **str, none_type** | Email address of the customer that is registered to the partner channel | [optional] -**identity_document_number** | **str, none_type** | Identity number of the customer registered to the partner channel | [optional] -**require_auth** | **bool, none_type** | | [optional] +**failure_return_url** | **str** | | [optional] +**identity_document_number** | **str** | | [optional] +**account_number** | **str** | | [optional] +**card_last_four** | **str** | Last four digits of the debit card | [optional] +**card_expiry** | **str** | Expiry month and year of the debit card (in MM/YY format) | [optional] +**email** | **str** | Email address of the customer that is registered to the partner channel | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DirectDebitDebitCard.md b/docs/DirectDebitDebitCard.md index f1ab04cf..46223137 100644 --- a/docs/DirectDebitDebitCard.md +++ b/docs/DirectDebitDebitCard.md @@ -1,10 +1,11 @@ -# xendit.payment_method.model.DirectDebitDebitCard +# xendit.payment_request.model.DirectDebitDebitCard ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **mobile_number** | **str, none_type** | Mobile number of the customer registered to the partner channel | [optional] +**account_number** | **str** | | [optional] **card_last_four** | **str, none_type** | Last four digits of the debit card | [optional] **card_expiry** | **str, none_type** | Expiry month and year of the debit card (in MM/YY format) | [optional] **email** | **str, none_type** | Email address of the customer that is registered to the partner channel | [optional] diff --git a/docs/EWallet.md b/docs/EWallet.md index ab1121fa..a33aaeca 100644 --- a/docs/EWallet.md +++ b/docs/EWallet.md @@ -1,11 +1,11 @@ -# xendit.payment_method.model.EWallet +# xendit.payment_request.model.EWallet Ewallet Payment Method Details ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | | +**channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | | [optional] **channel_properties** | [**EWalletChannelProperties**](EWalletChannelProperties.md) | | [optional] **account** | [**EWalletAccount**](EWalletAccount.md) | | [optional] diff --git a/docs/EWalletAccount.md b/docs/EWalletAccount.md index 060dbf3a..7422a70f 100644 --- a/docs/EWalletAccount.md +++ b/docs/EWalletAccount.md @@ -1,4 +1,4 @@ -# xendit.payment_method.model.EWalletAccount +# xendit.payment_request.model.EWalletAccount EWallet Account Properties diff --git a/docs/EWalletChannelProperties.md b/docs/EWalletChannelProperties.md index 4a12bef5..099f818b 100644 --- a/docs/EWalletChannelProperties.md +++ b/docs/EWalletChannelProperties.md @@ -1,6 +1,6 @@ -# xendit.payment_method.model.EWalletChannelProperties +# xendit.payment_request.model.EWalletChannelProperties -EWallet Channel Properties +Ewallet Channel Properties ## Properties Name | Type | Description | Notes @@ -8,9 +8,9 @@ Name | Type | Description | Notes **success_return_url** | **str** | URL where the end-customer is redirected if the authorization is successful | [optional] **failure_return_url** | **str** | URL where the end-customer is redirected if the authorization failed | [optional] **cancel_return_url** | **str** | URL where the end-customer is redirected if the authorization cancelled | [optional] -**mobile_number** | **str** | Mobile number of customer in E.164 format (e.g. +628123123123). For OVO one time payment use only. | [optional] **redeem_points** | **str** | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | [optional] -**cashtag** | **str** | Available for JENIUSPAY only | [optional] +**mobile_number** | **str** | | [optional] +**cashtag** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EmploymentDetail.md b/docs/EmploymentDetail.md new file mode 100644 index 00000000..61017e95 --- /dev/null +++ b/docs/EmploymentDetail.md @@ -0,0 +1,13 @@ +# xendit.customer.model.EmploymentDetail + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**employer_name** | **str, none_type** | Name of employer | [optional] +**nature_of_business** | **str, none_type** | Industry or nature of business | [optional] +**role_description** | **str, none_type** | Occupation or title | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EndCustomerStatus.md b/docs/EndCustomerStatus.md new file mode 100644 index 00000000..4e096dc1 --- /dev/null +++ b/docs/EndCustomerStatus.md @@ -0,0 +1,11 @@ +# xendit.customer.model.EndCustomerStatus + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | | must be one of ["ACTIVE", "INACTIVE", "PENDING", "BLOCKED", "DELETED", ] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Error.md b/docs/Error.md index 0c9377b5..eda40f1e 100644 --- a/docs/Error.md +++ b/docs/Error.md @@ -1,12 +1,11 @@ -# xendit.payout.model.Error +# xendit.payment_request.model.Error ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**error_code** | **str** | Specific error encountered when processing the request, can refer to the API documentation on proper handling of each available error code https://developers.xendit.co/api-reference/#payouts | -**message** | **str** | Human readable error message | -**errors** | [**[ErrorErrorsInner]**](ErrorErrorsInner.md) | | [optional] +**error_code** | **str, none_type** | | [optional] +**message** | **str, none_type** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetCustomerByReferenceID200Response.md b/docs/GetCustomerByReferenceID200Response.md new file mode 100644 index 00000000..b2056762 --- /dev/null +++ b/docs/GetCustomerByReferenceID200Response.md @@ -0,0 +1,12 @@ +# xendit.customer.model.GetCustomerByReferenceID200Response + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**has_more** | **bool** | | [optional] +**data** | [**[Customer]**](Customer.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetCustomerByReferenceID400Response.md b/docs/GetCustomerByReferenceID400Response.md new file mode 100644 index 00000000..c6fefe0a --- /dev/null +++ b/docs/GetCustomerByReferenceID400Response.md @@ -0,0 +1,13 @@ +# xendit.customer.model.GetCustomerByReferenceID400Response + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_code** | **str** | | +**message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | +**errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetCustomerByReferenceID400ResponseAllOf.md b/docs/GetCustomerByReferenceID400ResponseAllOf.md new file mode 100644 index 00000000..02aa32d8 --- /dev/null +++ b/docs/GetCustomerByReferenceID400ResponseAllOf.md @@ -0,0 +1,12 @@ +# xendit.customer.model.GetCustomerByReferenceID400ResponseAllOf + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_code** | **str** | | [optional] +**message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IdentityAccountRequest.md b/docs/IdentityAccountRequest.md new file mode 100644 index 00000000..2ea2d03e --- /dev/null +++ b/docs/IdentityAccountRequest.md @@ -0,0 +1,15 @@ +# xendit.customer.model.IdentityAccountRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**IdentityAccountType**](IdentityAccountType.md) | | [optional] +**company** | **str** | The issuing institution associated with the account (e.g., OCBC, GOPAY, 7-11). If adding financial accounts that Xendit supports, we recommend you use the channel_name found at https://xendit.github.io/apireference/#payment-channels for this field | [optional] +**description** | **str** | Free text description of this account | [optional] +**country** | [**CountryCode**](CountryCode.md) | | [optional] +**properties** | [**IdentityAccountRequestProperties**](IdentityAccountRequestProperties.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IdentityAccountRequestProperties.md b/docs/IdentityAccountRequestProperties.md new file mode 100644 index 00000000..849401e5 --- /dev/null +++ b/docs/IdentityAccountRequestProperties.md @@ -0,0 +1,21 @@ +# xendit.customer.model.IdentityAccountRequestProperties + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_number** | **str** | Unique account identifier as per the bank records. | [optional] +**account_holder_name** | **str, none_type** | Name of account holder as per the cardless credit account. | [optional] +**swift_code** | **str, none_type** | The SWIFT code for international payments | [optional] +**account_type** | **str, none_type** | Free text account type, e.g., Savings, Transaction, Virtual Account. | [optional] +**account_details** | **str, none_type** | Potentially masked account detail, for display purposes only. | [optional] +**currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] +**token_id** | **str** | The token id returned in tokenisation | [optional] +**account_id** | **str** | Alphanumeric string identifying this account. Usually an email address or phone number. | [optional] +**payment_code** | **str** | Complete fixed payment code (including prefix) | [optional] +**expires_at** | **str, none_type** | YYYY-MM-DD string with expiry date for the payment code | [optional] +**qr_string** | **str** | String representation of the QR Code image | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IdentityAccountResponse.md b/docs/IdentityAccountResponse.md new file mode 100644 index 00000000..861d4e98 --- /dev/null +++ b/docs/IdentityAccountResponse.md @@ -0,0 +1,19 @@ +# xendit.customer.model.IdentityAccountResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**company** | **str, none_type** | | +**description** | **str, none_type** | | +**country** | [**CountryCode**](CountryCode.md) | | +**type** | **str, none_type** | | +**properties** | [**IdentityAccountResponseProperties**](IdentityAccountResponseProperties.md) | | +**id** | **str** | | [optional] +**code** | **str, none_type** | | [optional] +**holder_name** | **str, none_type** | | [optional] +**created** | **datetime** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IdentityAccountResponseProperties.md b/docs/IdentityAccountResponseProperties.md new file mode 100644 index 00000000..df3b62ee --- /dev/null +++ b/docs/IdentityAccountResponseProperties.md @@ -0,0 +1,21 @@ +# xendit.customer.model.IdentityAccountResponseProperties + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_number** | **str** | Unique account identifier as per the bank records. | [optional] +**account_holder_name** | **str, none_type** | Name of account holder as per the cardless credit account. | [optional] +**swift_code** | **str, none_type** | The SWIFT code for international payments | [optional] +**account_type** | **str, none_type** | Free text account type, e.g., Savings, Transaction, Virtual Account. | [optional] +**account_details** | **str, none_type** | Potentially masked account detail, for display purposes only. | [optional] +**currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] +**token_id** | **str** | The token id returned in tokenisation | [optional] +**payment_code** | **str** | Complete fixed payment code (including prefix) | [optional] +**expires_at** | **str, none_type** | YYYY-MM-DD string with expiry date for the payment code | [optional] +**qr_string** | **str** | String representation of the QR Code image | [optional] +**account_id** | **str** | Alphanumeric string identifying this account. Usually an email address or phone number. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IdentityAccountType.md b/docs/IdentityAccountType.md new file mode 100644 index 00000000..52225bad --- /dev/null +++ b/docs/IdentityAccountType.md @@ -0,0 +1,11 @@ +# xendit.customer.model.IdentityAccountType + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | | must be one of ["BANK_ACCOUNT", "EWALLET", "CREDIT_CARD", "PAY_LATER", "OTC", "QR_CODE", ] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IndividualDetail.md b/docs/IndividualDetail.md new file mode 100644 index 00000000..301df694 --- /dev/null +++ b/docs/IndividualDetail.md @@ -0,0 +1,21 @@ +# xendit.customer.model.IndividualDetail + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**given_names** | **str** | | [optional] +**given_names_non_roman** | **str, none_type** | | [optional] +**middle_name** | **str, none_type** | | [optional] +**surname** | **str, none_type** | | [optional] +**surname_non_roman** | **str, none_type** | | [optional] +**mother_maiden_name** | **str, none_type** | | [optional] +**gender** | **str, none_type** | | [optional] +**date_of_birth** | **str, none_type** | | [optional] +**nationality** | [**CountryCode**](CountryCode.md) | | [optional] +**place_of_birth** | **str, none_type** | | [optional] +**employment** | [**EmploymentDetail**](EmploymentDetail.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KYCDocumentRequest.md b/docs/KYCDocumentRequest.md new file mode 100644 index 00000000..664f17f2 --- /dev/null +++ b/docs/KYCDocumentRequest.md @@ -0,0 +1,18 @@ +# xendit.customer.model.KYCDocumentRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**country** | [**CountryCode**](CountryCode.md) | | [optional] +**type** | [**KYCDocumentType**](KYCDocumentType.md) | | [optional] +**sub_type** | [**KYCDocumentSubType**](KYCDocumentSubType.md) | | [optional] +**document_name** | **str** | | [optional] +**document_number** | **str** | | [optional] +**expires_at** | **str** | | [optional] +**holder_name** | **str** | | [optional] +**document_images** | **[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KYCDocumentResponse.md b/docs/KYCDocumentResponse.md new file mode 100644 index 00000000..fe1d8fef --- /dev/null +++ b/docs/KYCDocumentResponse.md @@ -0,0 +1,18 @@ +# xendit.customer.model.KYCDocumentResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**country** | **bool, date, datetime, dict, float, int, list, str, none_type** | | +**type** | **bool, date, datetime, dict, float, int, list, str, none_type** | | +**sub_type** | **bool, date, datetime, dict, float, int, list, str, none_type** | | +**document_name** | **str, none_type** | | +**document_number** | **str, none_type** | | +**expires_at** | **str, none_type** | | +**holder_name** | **str, none_type** | | +**document_images** | **[str], none_type** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KYCDocumentSubType.md b/docs/KYCDocumentSubType.md new file mode 100644 index 00000000..732151db --- /dev/null +++ b/docs/KYCDocumentSubType.md @@ -0,0 +1,11 @@ +# xendit.customer.model.KYCDocumentSubType + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | | must be one of ["NATIONAL_ID", "CONSULAR_ID", "VOTER_ID", "POSTAL_ID", "RESIDENCE_PERMIT", "TAX_ID", "STUDENT_ID", "MILITARY_ID", "MEDICAL_ID", "OTHERS", ] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KYCDocumentType.md b/docs/KYCDocumentType.md new file mode 100644 index 00000000..38fbe15d --- /dev/null +++ b/docs/KYCDocumentType.md @@ -0,0 +1,11 @@ +# xendit.customer.model.KYCDocumentType + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | | must be one of ["BIRTH_CERTIFICATE", "BANK_STATEMENT", "DRIVING_LICENSE", "IDENTITY_CARD", "PASSPORT", "VISA", "BUSINESS_REGISTRATION", "BUSINESS_LICENSE", ] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OverTheCounter.md b/docs/OverTheCounter.md index f195e987..15abf680 100644 --- a/docs/OverTheCounter.md +++ b/docs/OverTheCounter.md @@ -1,6 +1,6 @@ -# xendit.payment_method.model.OverTheCounter +# xendit.payment_request.model.OverTheCounter -Over The Counter Payment Method Details +Over the Counter Payment Method Details ## Properties Name | Type | Description | Notes @@ -8,7 +8,7 @@ Name | Type | Description | Notes **channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | | **channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | | **amount** | **float, none_type** | | [optional] -**currency** | **str** | | [optional] +**currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OverTheCounterChannelCode.md b/docs/OverTheCounterChannelCode.md index 9f5f58ba..fe547247 100644 --- a/docs/OverTheCounterChannelCode.md +++ b/docs/OverTheCounterChannelCode.md @@ -1,4 +1,4 @@ -# xendit.payment_method.model.OverTheCounterChannelCode +# xendit.payment_request.model.OverTheCounterChannelCode Over The Counter Channel Code diff --git a/docs/OverTheCounterChannelProperties.md b/docs/OverTheCounterChannelProperties.md index 3db427e3..6c0e72dd 100644 --- a/docs/OverTheCounterChannelProperties.md +++ b/docs/OverTheCounterChannelProperties.md @@ -1,4 +1,4 @@ -# xendit.payment_method.model.OverTheCounterChannelProperties +# xendit.payment_request.model.OverTheCounterChannelProperties Over The Counter Channel Properties diff --git a/docs/OverTheCounterParameters.md b/docs/OverTheCounterParameters.md index 28edeeb6..b4f3452b 100644 --- a/docs/OverTheCounterParameters.md +++ b/docs/OverTheCounterParameters.md @@ -1,4 +1,4 @@ -# xendit.payment_method.model.OverTheCounterParameters +# xendit.payment_request.model.OverTheCounterParameters ## Properties @@ -7,7 +7,7 @@ Name | Type | Description | Notes **channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | | **channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | | **amount** | **float, none_type** | | [optional] -**currency** | **str** | | [optional] +**currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PatchCustomer.md b/docs/PatchCustomer.md new file mode 100644 index 00000000..fe108659 --- /dev/null +++ b/docs/PatchCustomer.md @@ -0,0 +1,23 @@ +# xendit.customer.model.PatchCustomer + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_name** | **str, none_type** | Entity's name for this client | [optional] +**reference_id** | **str, none_type** | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | [optional] +**individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | [optional] +**business_detail** | [**BusinessDetail**](BusinessDetail.md) | | [optional] +**description** | **str, none_type** | | [optional] +**email** | **str, none_type** | | [optional] +**mobile_number** | **str, none_type** | | [optional] +**phone_number** | **str, none_type** | | [optional] +**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] +**addresses** | [**[AddressRequest], none_type**](AddressRequest.md) | | [optional] +**identity_accounts** | [**[IdentityAccountRequest], none_type**](IdentityAccountRequest.md) | | [optional] +**kyc_documents** | [**[KYCDocumentRequest], none_type**](KYCDocumentRequest.md) | | [optional] +**status** | [**EndCustomerStatus**](EndCustomerStatus.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaymentChannel.md b/docs/PaymentChannel.md deleted file mode 100644 index 0e215165..00000000 --- a/docs/PaymentChannel.md +++ /dev/null @@ -1,17 +0,0 @@ -# xendit.payment_method.model.PaymentChannel - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel_code** | **str** | The specific Xendit code used to identify the partner channel | [optional] -**type** | **str** | The payment method type | [optional] -**country** | **str** | The country where the channel operates in ISO 3166-2 country code | [optional] -**channel_name** | **str** | Official parter name of the payment channel | [optional] -**channel_properties** | [**[ChannelProperty]**](ChannelProperty.md) | | [optional] -**logo_url** | **str** | If available, this contains a URL to the logo of the partner channel | [optional] -**amount_limits** | [**[ChannelAmountLimits]**](ChannelAmountLimits.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentChannelAllOf.md b/docs/PaymentChannelAllOf.md deleted file mode 100644 index b93c8396..00000000 --- a/docs/PaymentChannelAllOf.md +++ /dev/null @@ -1,17 +0,0 @@ -# xendit.payment_method.model.PaymentChannelAllOf - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel_code** | **str** | The specific Xendit code used to identify the partner channel | [optional] -**type** | **str** | The payment method type | [optional] -**country** | **str** | The country where the channel operates in ISO 3166-2 country code | [optional] -**channel_name** | **str** | Official parter name of the payment channel | [optional] -**channel_properties** | [**[ChannelProperty]**](ChannelProperty.md) | | [optional] -**logo_url** | **str** | If available, this contains a URL to the logo of the partner channel | [optional] -**amount_limits** | [**[ChannelAmountLimits]**](ChannelAmountLimits.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentChannelList.md b/docs/PaymentChannelList.md deleted file mode 100644 index 2a9bdd38..00000000 --- a/docs/PaymentChannelList.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_method.model.PaymentChannelList - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PaymentChannel]**](PaymentChannel.md) | Array of resources that match the provided filters | [optional] -**links** | [**[PaymentChannelListLinksInner]**](PaymentChannelListLinksInner.md) | Array of objects that can be used to assist on navigating through the data | [optional] -**has_more** | **bool** | Indicates whether there are more items in the list | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentChannelListLinksInner.md b/docs/PaymentChannelListLinksInner.md deleted file mode 100644 index 6b781028..00000000 --- a/docs/PaymentChannelListLinksInner.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_method.model.PaymentChannelListLinksInner - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **str** | Target URI that should contain a target to Internationalized Resource Identifiers (IRI) | [optional] -**rel** | **str** | The link relation type described how the current context (source) is related to target resource | [optional] -**method** | **str** | The HTTP method to be used to call `href` | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentChannelListLinksInnerAllOf.md b/docs/PaymentChannelListLinksInnerAllOf.md deleted file mode 100644 index 417c2a96..00000000 --- a/docs/PaymentChannelListLinksInnerAllOf.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_method.model.PaymentChannelListLinksInnerAllOf - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **str** | Target URI that should contain a target to Internationalized Resource Identifiers (IRI) | [optional] -**rel** | **str** | The link relation type described how the current context (source) is related to target resource | [optional] -**method** | **str** | The HTTP method to be used to call `href` | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentMethod.md b/docs/PaymentMethod.md index 3a012260..9e14be33 100644 --- a/docs/PaymentMethod.md +++ b/docs/PaymentMethod.md @@ -1,31 +1,24 @@ -# xendit.payment_method.model.PaymentMethod +# xendit.payment_request.model.PaymentMethod ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | -**business_id** | **str** | | [optional] -**type** | [**PaymentMethodType**](PaymentMethodType.md) | | [optional] -**country** | [**PaymentMethodCountry**](PaymentMethodCountry.md) | | [optional] -**customer_id** | **str, none_type** | | [optional] -**customer** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] -**reference_id** | **str** | | [optional] +**type** | [**PaymentMethodType**](PaymentMethodType.md) | | +**reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | +**status** | [**PaymentMethodStatus**](PaymentMethodStatus.md) | | +**created** | **str** | | [optional] +**updated** | **str** | | [optional] **description** | **str, none_type** | | [optional] -**status** | [**PaymentMethodStatus**](PaymentMethodStatus.md) | | [optional] -**reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | [optional] -**actions** | [**[PaymentMethodAction]**](PaymentMethodAction.md) | | [optional] -**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] -**billing_information** | [**BillingInformation**](BillingInformation.md) | | [optional] -**failure_code** | **str, none_type** | | [optional] -**created** | **datetime** | | [optional] -**updated** | **datetime** | | [optional] -**ewallet** | [**EWallet**](EWallet.md) | | [optional] +**reference_id** | **str** | | [optional] +**card** | [**Card**](Card.md) | | [optional] **direct_debit** | [**DirectDebit**](DirectDebit.md) | | [optional] +**ewallet** | [**EWallet**](EWallet.md) | | [optional] **over_the_counter** | [**OverTheCounter**](OverTheCounter.md) | | [optional] -**card** | [**Card**](Card.md) | | [optional] -**qr_code** | [**QRCode**](QRCode.md) | | [optional] **virtual_account** | [**VirtualAccount**](VirtualAccount.md) | | [optional] +**qr_code** | [**QRCode**](QRCode.md) | | [optional] +**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentMethodApi.md b/docs/PaymentMethodApi.md index c8ca86b6..52b011e3 100644 --- a/docs/PaymentMethodApi.md +++ b/docs/PaymentMethodApi.md @@ -7,7 +7,6 @@ Method | HTTP request | Description [**auth_payment_method**](PaymentMethodApi.md#auth_payment_method) | **POST** /v2/payment_methods/{paymentMethodId}/auth | Validate a payment method's linking OTP [**create_payment_method**](PaymentMethodApi.md#create_payment_method) | **POST** /v2/payment_methods | Creates payment method [**expire_payment_method**](PaymentMethodApi.md#expire_payment_method) | **POST** /v2/payment_methods/{paymentMethodId}/expire | Expires a payment method -[**get_all_payment_channels**](PaymentMethodApi.md#get_all_payment_channels) | **GET** /v2/payment_methods/channels | Get all payment channels [**get_all_payment_methods**](PaymentMethodApi.md#get_all_payment_methods) | **GET** /v2/payment_methods | Get all payment methods by filters [**get_payment_method_by_id**](PaymentMethodApi.md#get_payment_method_by_id) | **GET** /v2/payment_methods/{paymentMethodId} | Get payment method by ID [**get_payments_by_payment_method_id**](PaymentMethodApi.md#get_payments_by_payment_method_id) | **GET** /v2/payment_methods/{paymentMethodId}/payments | Returns payments with matching PaymentMethodID. @@ -240,69 +239,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_all_payment_channels** -> PaymentChannelList get_all_payment_channels() - -Get all payment channels - -Get all payment channels - -### Example - - -```python -import time -import xendit -from xendit.apis import PaymentMethodApi -from xendit.payment_method.model.get_all_payment_methods403_response import GetAllPaymentMethods403Response -from xendit.payment_method.model.get_all_payment_methods400_response import GetAllPaymentMethods400Response -from xendit.payment_method.model.payment_channel_list import PaymentChannelList -from xendit.payment_method.model.get_all_payment_methods_default_response import GetAllPaymentMethodsDefaultResponse -from pprint import pprint - -# See configuration.py for a list of all supported configuration parameters. -xendit.set_api_key('XENDIT API KEY') - - -# Enter a context with an instance of the API client -api_client = xendit.ApiClient() -# Create an instance of the API class -api_instance = PaymentMethodApi(api_client) - -# example passing only required values which don't have defaults set -# and optional values -try: - # Get all payment channels - api_response = api_instance.get_all_payment_channels(is_activated=is_activated, type=type) - pprint(api_response) -except xendit.XenditSdkException as e: - print("Exception when calling PaymentMethodApi->get_all_payment_channels: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **is_activated** | **bool**| | [optional] if omitted the server will use the default value of True - **type** | **str**| | [optional] - -### Return type - -[**PaymentChannelList**](PaymentChannelList.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Request successful | - | -**400** | Bad request | - | -**403** | Forbidden due to permissions | - | -**0** | Internal server error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_all_payment_methods** > PaymentMethodList get_all_payment_methods() diff --git a/docs/PaymentMethodParameters.md b/docs/PaymentMethodParameters.md index 82f26c6f..efcf8a7d 100644 --- a/docs/PaymentMethodParameters.md +++ b/docs/PaymentMethodParameters.md @@ -1,4 +1,4 @@ -# xendit.payment_method.model.PaymentMethodParameters +# xendit.payment_request.model.PaymentMethodParameters ## Properties @@ -6,18 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | [**PaymentMethodType**](PaymentMethodType.md) | | **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | -**country** | **str, none_type** | | [optional] -**customer_id** | **str, none_type** | | [optional] -**reference_id** | **str** | | [optional] **description** | **str, none_type** | | [optional] -**card** | [**CardParameters**](CardParameters.md) | | [optional] +**reference_id** | **str** | | [optional] **direct_debit** | [**DirectDebitParameters**](DirectDebitParameters.md) | | [optional] **ewallet** | [**EWalletParameters**](EWalletParameters.md) | | [optional] **over_the_counter** | [**OverTheCounterParameters**](OverTheCounterParameters.md) | | [optional] **virtual_account** | [**VirtualAccountParameters**](VirtualAccountParameters.md) | | [optional] **qr_code** | [**QRCodeParameters**](QRCodeParameters.md) | | [optional] -**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] -**billing_information** | [**BillingInformation**](BillingInformation.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentMethodReusability.md b/docs/PaymentMethodReusability.md index 4444d101..56227301 100644 --- a/docs/PaymentMethodReusability.md +++ b/docs/PaymentMethodReusability.md @@ -1,4 +1,4 @@ -# xendit.payment_method.model.PaymentMethodReusability +# xendit.payment_request.model.PaymentMethodReusability ## Properties diff --git a/docs/PaymentMethodStatus.md b/docs/PaymentMethodStatus.md index 624959a5..59c452e2 100644 --- a/docs/PaymentMethodStatus.md +++ b/docs/PaymentMethodStatus.md @@ -1,10 +1,10 @@ -# xendit.payment_method.model.PaymentMethodStatus +# xendit.payment_request.model.PaymentMethodStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["ACTIVE", "EXPIRED", "INACTIVE", "PENDING", "REQUIRES_ACTION", "FAILED", ] +**value** | **str** | | must be one of ["ACTIVE", "INACTIVE", "PENDING", "EXPIRED", "FAILED", ] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentMethodType.md b/docs/PaymentMethodType.md index a7b9f1a0..6d61a04b 100644 --- a/docs/PaymentMethodType.md +++ b/docs/PaymentMethodType.md @@ -1,10 +1,10 @@ -# xendit.payment_method.model.PaymentMethodType +# xendit.payment_request.model.PaymentMethodType ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["CARD", "CRYPTOCURRENCY", "DIRECT_BANK_TRANSFER", "DIRECT_DEBIT", "EWALLET", "OVER_THE_COUNTER", "QR_CODE", "VIRTUAL_ACCOUNT", ] +**value** | **str** | | must be one of ["CARD", "DIRECT_DEBIT", "EWALLET", "OVER_THE_COUNTER", "QR_CODE", "VIRTUAL_ACCOUNT", ] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/QRCodeParameters.md b/docs/QRCodeParameters.md index 8b22b626..1230ef94 100644 --- a/docs/QRCodeParameters.md +++ b/docs/QRCodeParameters.md @@ -1,11 +1,9 @@ -# xendit.payment_method.model.QRCodeParameters +# xendit.payment_request.model.QRCodeParameters ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**amount** | **float, none_type** | | [optional] -**currency** | **str** | | [optional] **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | [optional] **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | [optional] diff --git a/docs/ResponseDataNotFound.md b/docs/ResponseDataNotFound.md new file mode 100644 index 00000000..92836a5e --- /dev/null +++ b/docs/ResponseDataNotFound.md @@ -0,0 +1,12 @@ +# xendit.customer.model.ResponseDataNotFound + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_code** | **str** | | [optional] +**message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateCustomer400Response.md b/docs/UpdateCustomer400Response.md new file mode 100644 index 00000000..a9ca7dee --- /dev/null +++ b/docs/UpdateCustomer400Response.md @@ -0,0 +1,13 @@ +# xendit.customer.model.UpdateCustomer400Response + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_code** | **str** | | +**message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | +**errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateCustomer400ResponseAllOf.md b/docs/UpdateCustomer400ResponseAllOf.md new file mode 100644 index 00000000..80350536 --- /dev/null +++ b/docs/UpdateCustomer400ResponseAllOf.md @@ -0,0 +1,12 @@ +# xendit.customer.model.UpdateCustomer400ResponseAllOf + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_code** | **str** | | [optional] +**message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VirtualAccountAllOf.md b/docs/VirtualAccountAllOf.md index ce2ea2a0..514161b6 100644 --- a/docs/VirtualAccountAllOf.md +++ b/docs/VirtualAccountAllOf.md @@ -1,4 +1,4 @@ -# xendit.payment_method.model.VirtualAccountAllOf +# xendit.payment_request.model.VirtualAccountAllOf ## Properties diff --git a/docs/VirtualAccountAlternativeDisplay.md b/docs/VirtualAccountAlternativeDisplay.md index d3acfad2..7aa466a4 100644 --- a/docs/VirtualAccountAlternativeDisplay.md +++ b/docs/VirtualAccountAlternativeDisplay.md @@ -1,4 +1,4 @@ -# xendit.payment_method.model.VirtualAccountAlternativeDisplay +# xendit.payment_request.model.VirtualAccountAlternativeDisplay Alternative Display Object diff --git a/docs/VirtualAccountChannelCode.md b/docs/VirtualAccountChannelCode.md index 95c31d47..df5d7274 100644 --- a/docs/VirtualAccountChannelCode.md +++ b/docs/VirtualAccountChannelCode.md @@ -1,4 +1,4 @@ -# xendit.payment_method.model.VirtualAccountChannelCode +# xendit.payment_request.model.VirtualAccountChannelCode Virtual Account Channel Code diff --git a/docs/VirtualAccountChannelProperties.md b/docs/VirtualAccountChannelProperties.md index 15ef0b20..9c540c0e 100644 --- a/docs/VirtualAccountChannelProperties.md +++ b/docs/VirtualAccountChannelProperties.md @@ -1,11 +1,11 @@ -# xendit.payment_method.model.VirtualAccountChannelProperties +# xendit.payment_request.model.VirtualAccountChannelProperties Virtual Account Channel Properties ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**customer_name** | **str** | Name of customer. | [optional] +**customer_name** | **str** | Name of customer. | **virtual_account_number** | **str** | You can assign specific Virtual Account number using this parameter. If you do not send one, one will be picked at random. Make sure the number you specify is within your Virtual Account range. | [optional] **expires_at** | **datetime** | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | [optional] **suggested_amount** | **float** | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | [optional] diff --git a/docs/VirtualAccountParameters.md b/docs/VirtualAccountParameters.md index eca0e892..5527659e 100644 --- a/docs/VirtualAccountParameters.md +++ b/docs/VirtualAccountParameters.md @@ -1,4 +1,4 @@ -# xendit.payment_method.model.VirtualAccountParameters +# xendit.payment_request.model.VirtualAccountParameters ## Properties @@ -6,11 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | | **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | | -**amount** | **float, none_type** | | [optional] **min_amount** | **float, none_type** | | [optional] **max_amount** | **float, none_type** | | [optional] -**currency** | **str** | | [optional] -**alternative_display_types** | **[str]** | For payments in Vietnam only, alternative display requested for the virtual account | [optional] +**amount** | **float, none_type** | | [optional] +**currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | [optional] +**alternative_display_types** | **[str]** | Alternative display requested for the virtual account | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/setup.py b/setup.py index 38ec47e4..b1599fc5 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,12 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.44.1 """ from setuptools import setup, find_packages # noqa: H301 NAME = "xendit" -VERSION = "3.2.0" +VERSION = "3.3.0" # To install the library, run the following # # python setup.py install @@ -22,16 +22,16 @@ setup( name=NAME, version=VERSION, - description="Payment Method Service v2", + description="Payment Requests", author="OpenAPI Generator community", author_email="team@openapitools.org", url="", - keywords=["OpenAPI", "OpenAPI-Generator", "Payment Method Service v2"], + keywords=["OpenAPI", "OpenAPI-Generator", "Payment Requests"], python_requires=">=3.6", install_requires=REQUIRES, packages=find_packages(exclude=["test", "tests"]), include_package_data=True, long_description="""\ - This API is used for Payment Method Service v2 # noqa: E501 + This API is used for Payment Requests # noqa: E501 """ ) diff --git a/test/test_account_bank.py b/test/test_account_bank.py new file mode 100644 index 00000000..39e95a13 --- /dev/null +++ b/test/test_account_bank.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.account_bank import AccountBank + + +class TestAccountBank(unittest.TestCase): + """AccountBank unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAccountBank(self): + """Test AccountBank""" + # FIXME: construct object with mandatory attributes with example values + # model = AccountBank() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_account_card.py b/test/test_account_card.py new file mode 100644 index 00000000..7bded5b5 --- /dev/null +++ b/test/test_account_card.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.account_card import AccountCard + + +class TestAccountCard(unittest.TestCase): + """AccountCard unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAccountCard(self): + """Test AccountCard""" + # FIXME: construct object with mandatory attributes with example values + # model = AccountCard() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_account_ewallet.py b/test/test_account_ewallet.py new file mode 100644 index 00000000..3e9cad29 --- /dev/null +++ b/test/test_account_ewallet.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.account_ewallet import AccountEwallet + + +class TestAccountEwallet(unittest.TestCase): + """AccountEwallet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAccountEwallet(self): + """Test AccountEwallet""" + # FIXME: construct object with mandatory attributes with example values + # model = AccountEwallet() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_account_otc.py b/test/test_account_otc.py new file mode 100644 index 00000000..25493c16 --- /dev/null +++ b/test/test_account_otc.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.account_otc import AccountOTC + + +class TestAccountOTC(unittest.TestCase): + """AccountOTC unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAccountOTC(self): + """Test AccountOTC""" + # FIXME: construct object with mandatory attributes with example values + # model = AccountOTC() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_account_pay_later.py b/test/test_account_pay_later.py new file mode 100644 index 00000000..18d7bb49 --- /dev/null +++ b/test/test_account_pay_later.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.account_pay_later import AccountPayLater + + +class TestAccountPayLater(unittest.TestCase): + """AccountPayLater unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAccountPayLater(self): + """Test AccountPayLater""" + # FIXME: construct object with mandatory attributes with example values + # model = AccountPayLater() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_account_qr_code.py b/test/test_account_qr_code.py new file mode 100644 index 00000000..ad2b5a03 --- /dev/null +++ b/test/test_account_qr_code.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.account_qr_code import AccountQRCode + + +class TestAccountQRCode(unittest.TestCase): + """AccountQRCode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAccountQRCode(self): + """Test AccountQRCode""" + # FIXME: construct object with mandatory attributes with example values + # model = AccountQRCode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_address.py b/test/test_address.py new file mode 100644 index 00000000..7c1c6a09 --- /dev/null +++ b/test/test_address.py @@ -0,0 +1,32 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.address_status import AddressStatus +globals()['AddressStatus'] = AddressStatus +from xendit.customer.model.address import Address + + +class TestAddress(unittest.TestCase): + """Address unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAddress(self): + """Test Address""" + # FIXME: construct object with mandatory attributes with example values + # model = Address() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_address_request.py b/test/test_address_request.py new file mode 100644 index 00000000..acca7e75 --- /dev/null +++ b/test/test_address_request.py @@ -0,0 +1,34 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.address_status import AddressStatus +from xendit.customer.model.country_code import CountryCode +globals()['AddressStatus'] = AddressStatus +globals()['CountryCode'] = CountryCode +from xendit.customer.model.address_request import AddressRequest + + +class TestAddressRequest(unittest.TestCase): + """AddressRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAddressRequest(self): + """Test AddressRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = AddressRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_address_status.py b/test/test_address_status.py new file mode 100644 index 00000000..43967d17 --- /dev/null +++ b/test/test_address_status.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.address_status import AddressStatus + + +class TestAddressStatus(unittest.TestCase): + """AddressStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAddressStatus(self): + """Test AddressStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = AddressStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_balance.py b/test/test_balance.py index 8d40a80e..970d86ca 100644 --- a/test/test_balance.py +++ b/test/test_balance.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_balance_api.py b/test/test_balance_api.py index 603b8eb7..113d9897 100644 --- a/test/test_balance_api.py +++ b/test/test_balance_api.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_billing_information.py b/test/test_billing_information.py index 15cffe8e..61455e8f 100644 --- a/test/test_billing_information.py +++ b/test/test_billing_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_business_detail.py b/test/test_business_detail.py new file mode 100644 index 00000000..6a12b15c --- /dev/null +++ b/test/test_business_detail.py @@ -0,0 +1,32 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.country_code import CountryCode +globals()['CountryCode'] = CountryCode +from xendit.customer.model.business_detail import BusinessDetail + + +class TestBusinessDetail(unittest.TestCase): + """BusinessDetail unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBusinessDetail(self): + """Test BusinessDetail""" + # FIXME: construct object with mandatory attributes with example values + # model = BusinessDetail() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_capture.py b/test/test_capture.py index 9343f27f..d7e3dada 100644 --- a/test/test_capture.py +++ b/test/test_capture.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_capture_list.py b/test/test_capture_list.py index 628a56e9..c243aea3 100644 --- a/test/test_capture_list.py +++ b/test/test_capture_list.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_capture_list_response.py b/test/test_capture_list_response.py index 43b357ea..5379cf2f 100644 --- a/test/test_capture_list_response.py +++ b/test/test_capture_list_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_capture_parameters.py b/test/test_capture_parameters.py index 4c1e05e0..f9f2ecab 100644 --- a/test/test_capture_parameters.py +++ b/test/test_capture_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_card.py b/test/test_card.py index 36429d62..09810a22 100644 --- a/test/test_card.py +++ b/test/test_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_card_channel_properties.py b/test/test_card_channel_properties.py index 931903fe..124e5dec 100644 --- a/test/test_card_channel_properties.py +++ b/test/test_card_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_card_information.py b/test/test_card_information.py index 7f3f3088..f8ebb0b2 100644 --- a/test/test_card_information.py +++ b/test/test_card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_card_parameters.py b/test/test_card_parameters.py index 037fa025..f9bb1ea3 100644 --- a/test/test_card_parameters.py +++ b/test/test_card_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_card_parameters_card_information.py b/test/test_card_parameters_card_information.py index 0aaf4cc0..51c7864e 100644 --- a/test/test_card_parameters_card_information.py +++ b/test/test_card_parameters_card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_card_verification_results.py b/test/test_card_verification_results.py index 32e81e01..7344d3b3 100644 --- a/test/test_card_verification_results.py +++ b/test/test_card_verification_results.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,9 +7,9 @@ import unittest import xendit -from xendit.payment_request.model.card_verification_results_three_d_secure import CardVerificationResultsThreeDSecure +from xendit.payment_method.model.card_verification_results_three_d_secure import CardVerificationResultsThreeDSecure globals()['CardVerificationResultsThreeDSecure'] = CardVerificationResultsThreeDSecure -from xendit.payment_request.model.card_verification_results import CardVerificationResults +from xendit.payment_method.model.card_verification_results import CardVerificationResults class TestCardVerificationResults(unittest.TestCase): diff --git a/test/test_card_verification_results_three_d_secure.py b/test/test_card_verification_results_three_d_secure.py index 8104ce56..0fe79994 100644 --- a/test/test_card_verification_results_three_d_secure.py +++ b/test/test_card_verification_results_three_d_secure.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_channel_amount_limits.py b/test/test_channel_amount_limits.py index d885eae5..f6c91818 100644 --- a/test/test_channel_amount_limits.py +++ b/test/test_channel_amount_limits.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.0.0 """ @@ -7,9 +7,7 @@ import unittest import xendit -from xendit.payment_method.model.channel_amount_limits_all_of import ChannelAmountLimitsAllOf -globals()['ChannelAmountLimitsAllOf'] = ChannelAmountLimitsAllOf -from xendit.payment_method.model.channel_amount_limits import ChannelAmountLimits +from xendit.payout.model.channel_amount_limits import ChannelAmountLimits class TestChannelAmountLimits(unittest.TestCase): diff --git a/test/test_channel_amount_limits_all_of.py b/test/test_channel_amount_limits_all_of.py deleted file mode 100644 index 5e3bf4bd..00000000 --- a/test/test_channel_amount_limits_all_of.py +++ /dev/null @@ -1,30 +0,0 @@ -""" - The version of the XENDIT API: 2.87.2 -""" - - -import sys -import unittest - -import xendit -from xendit.payment_method.model.channel_amount_limits_all_of import ChannelAmountLimitsAllOf - - -class TestChannelAmountLimitsAllOf(unittest.TestCase): - """ChannelAmountLimitsAllOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testChannelAmountLimitsAllOf(self): - """Test ChannelAmountLimitsAllOf""" - # FIXME: construct object with mandatory attributes with example values - # model = ChannelAmountLimitsAllOf() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_channel_property.py b/test/test_channel_property.py deleted file mode 100644 index 19a99d32..00000000 --- a/test/test_channel_property.py +++ /dev/null @@ -1,32 +0,0 @@ -""" - The version of the XENDIT API: 2.87.2 -""" - - -import sys -import unittest - -import xendit -from xendit.payment_method.model.channel_property_all_of import ChannelPropertyAllOf -globals()['ChannelPropertyAllOf'] = ChannelPropertyAllOf -from xendit.payment_method.model.channel_property import ChannelProperty - - -class TestChannelProperty(unittest.TestCase): - """ChannelProperty unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testChannelProperty(self): - """Test ChannelProperty""" - # FIXME: construct object with mandatory attributes with example values - # model = ChannelProperty() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_channel_property_all_of.py b/test/test_channel_property_all_of.py deleted file mode 100644 index 61cb7af5..00000000 --- a/test/test_channel_property_all_of.py +++ /dev/null @@ -1,30 +0,0 @@ -""" - The version of the XENDIT API: 2.87.2 -""" - - -import sys -import unittest - -import xendit -from xendit.payment_method.model.channel_property_all_of import ChannelPropertyAllOf - - -class TestChannelPropertyAllOf(unittest.TestCase): - """ChannelPropertyAllOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testChannelPropertyAllOf(self): - """Test ChannelPropertyAllOf""" - # FIXME: construct object with mandatory attributes with example values - # model = ChannelPropertyAllOf() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_channels_categories.py b/test/test_channels_categories.py index 202c7cd5..2c8d3739 100644 --- a/test/test_channels_categories.py +++ b/test/test_channels_categories.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_country_code.py b/test/test_country_code.py new file mode 100644 index 00000000..adbc24ae --- /dev/null +++ b/test/test_country_code.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.country_code import CountryCode + + +class TestCountryCode(unittest.TestCase): + """CountryCode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCountryCode(self): + """Test CountryCode""" + # FIXME: construct object with mandatory attributes with example values + # model = CountryCode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_customer400_response.py b/test/test_create_customer400_response.py new file mode 100644 index 00000000..9008f318 --- /dev/null +++ b/test/test_create_customer400_response.py @@ -0,0 +1,34 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.create_customer400_response_all_of import CreateCustomer400ResponseAllOf +from xendit.customer.model.error import Error +globals()['CreateCustomer400ResponseAllOf'] = CreateCustomer400ResponseAllOf +globals()['Error'] = Error +from xendit.customer.model.create_customer400_response import CreateCustomer400Response + + +class TestCreateCustomer400Response(unittest.TestCase): + """CreateCustomer400Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateCustomer400Response(self): + """Test CreateCustomer400Response""" + # FIXME: construct object with mandatory attributes with example values + # model = CreateCustomer400Response() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_customer400_response_all_of.py b/test/test_create_customer400_response_all_of.py new file mode 100644 index 00000000..2021da61 --- /dev/null +++ b/test/test_create_customer400_response_all_of.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.create_customer400_response_all_of import CreateCustomer400ResponseAllOf + + +class TestCreateCustomer400ResponseAllOf(unittest.TestCase): + """CreateCustomer400ResponseAllOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateCustomer400ResponseAllOf(self): + """Test CreateCustomer400ResponseAllOf""" + # FIXME: construct object with mandatory attributes with example values + # model = CreateCustomer400ResponseAllOf() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_payment_method409_response.py b/test/test_create_payment_method409_response.py index 7b7db8cb..5f200859 100644 --- a/test/test_create_payment_method409_response.py +++ b/test/test_create_payment_method409_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_create_payment_method503_response.py b/test/test_create_payment_method503_response.py index c6a61a01..49e9a0ca 100644 --- a/test/test_create_payment_method503_response.py +++ b/test/test_create_payment_method503_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_currency.py b/test/test_currency.py index 5da63cef..bcdadeb3 100644 --- a/test/test_currency.py +++ b/test/test_currency.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_customer.py b/test/test_customer.py new file mode 100644 index 00000000..2eba16e3 --- /dev/null +++ b/test/test_customer.py @@ -0,0 +1,42 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.address import Address +from xendit.customer.model.business_detail import BusinessDetail +from xendit.customer.model.end_customer_status import EndCustomerStatus +from xendit.customer.model.identity_account_response import IdentityAccountResponse +from xendit.customer.model.individual_detail import IndividualDetail +from xendit.customer.model.kyc_document_response import KYCDocumentResponse +globals()['Address'] = Address +globals()['BusinessDetail'] = BusinessDetail +globals()['EndCustomerStatus'] = EndCustomerStatus +globals()['IdentityAccountResponse'] = IdentityAccountResponse +globals()['IndividualDetail'] = IndividualDetail +globals()['KYCDocumentResponse'] = KYCDocumentResponse +from xendit.customer.model.customer import Customer + + +class TestCustomer(unittest.TestCase): + """Customer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCustomer(self): + """Test Customer""" + # FIXME: construct object with mandatory attributes with example values + # model = Customer() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_customer_api.py b/test/test_customer_api.py new file mode 100644 index 00000000..6d776a56 --- /dev/null +++ b/test/test_customer_api.py @@ -0,0 +1,51 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import unittest + +import xendit +from customer.customer_api import CustomerApi # noqa: E501 + + +class TestCustomerApi(unittest.TestCase): + """CustomerApi unit test stubs""" + + def setUp(self): + self.api = CustomerApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_customer(self): + """Test case for create_customer + + Create Customer # noqa: E501 + """ + pass + + def test_get_customer(self): + """Test case for get_customer + + Get Customer By ID # noqa: E501 + """ + pass + + def test_get_customer_by_reference_id(self): + """Test case for get_customer_by_reference_id + + GET customers by reference id # noqa: E501 + """ + pass + + def test_update_customer(self): + """Test case for update_customer + + Update End Customer Resource # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_customer_request.py b/test/test_customer_request.py new file mode 100644 index 00000000..20aecb19 --- /dev/null +++ b/test/test_customer_request.py @@ -0,0 +1,40 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.address_request import AddressRequest +from xendit.customer.model.business_detail import BusinessDetail +from xendit.customer.model.identity_account_request import IdentityAccountRequest +from xendit.customer.model.individual_detail import IndividualDetail +from xendit.customer.model.kyc_document_request import KYCDocumentRequest +globals()['AddressRequest'] = AddressRequest +globals()['BusinessDetail'] = BusinessDetail +globals()['IdentityAccountRequest'] = IdentityAccountRequest +globals()['IndividualDetail'] = IndividualDetail +globals()['KYCDocumentRequest'] = KYCDocumentRequest +from xendit.customer.model.customer_request import CustomerRequest + + +class TestCustomerRequest(unittest.TestCase): + """CustomerRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCustomerRequest(self): + """Test CustomerRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = CustomerRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_date_range_filter.py b/test/test_date_range_filter.py index 1a35674e..91b95a84 100644 --- a/test/test_date_range_filter.py +++ b/test/test_date_range_filter.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_direct_debit_all_of.py b/test/test_direct_debit_all_of.py index cc865613..eb52005d 100644 --- a/test/test_direct_debit_all_of.py +++ b/test/test_direct_debit_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,13 +7,13 @@ import unittest import xendit -from xendit.payment_request.model.direct_debit_bank_account import DirectDebitBankAccount -from xendit.payment_request.model.direct_debit_debit_card import DirectDebitDebitCard -from xendit.payment_request.model.direct_debit_type import DirectDebitType +from xendit.payment_method.model.direct_debit_bank_account import DirectDebitBankAccount +from xendit.payment_method.model.direct_debit_debit_card import DirectDebitDebitCard +from xendit.payment_method.model.direct_debit_type import DirectDebitType globals()['DirectDebitBankAccount'] = DirectDebitBankAccount globals()['DirectDebitDebitCard'] = DirectDebitDebitCard globals()['DirectDebitType'] = DirectDebitType -from xendit.payment_request.model.direct_debit_all_of import DirectDebitAllOf +from xendit.payment_method.model.direct_debit_all_of import DirectDebitAllOf class TestDirectDebitAllOf(unittest.TestCase): diff --git a/test/test_direct_debit_bank_account.py b/test/test_direct_debit_bank_account.py index 75b137c4..75e8fd3a 100644 --- a/test/test_direct_debit_bank_account.py +++ b/test/test_direct_debit_bank_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,7 +7,7 @@ import unittest import xendit -from xendit.payment_request.model.direct_debit_bank_account import DirectDebitBankAccount +from xendit.payment_method.model.direct_debit_bank_account import DirectDebitBankAccount class TestDirectDebitBankAccount(unittest.TestCase): diff --git a/test/test_direct_debit_channel_code.py b/test/test_direct_debit_channel_code.py index 530d187a..57c9490d 100644 --- a/test/test_direct_debit_channel_code.py +++ b/test/test_direct_debit_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,7 +7,7 @@ import unittest import xendit -from xendit.payment_request.model.direct_debit_channel_code import DirectDebitChannelCode +from xendit.payment_method.model.direct_debit_channel_code import DirectDebitChannelCode class TestDirectDebitChannelCode(unittest.TestCase): diff --git a/test/test_direct_debit_channel_properties.py b/test/test_direct_debit_channel_properties.py index cbc097d6..22f5bfa4 100644 --- a/test/test_direct_debit_channel_properties.py +++ b/test/test_direct_debit_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,13 +7,7 @@ import unittest import xendit -from xendit.payment_request.model.direct_debit_channel_properties_bank_account import DirectDebitChannelPropertiesBankAccount -from xendit.payment_request.model.direct_debit_channel_properties_bank_redirect import DirectDebitChannelPropertiesBankRedirect -from xendit.payment_request.model.direct_debit_channel_properties_debit_card import DirectDebitChannelPropertiesDebitCard -globals()['DirectDebitChannelPropertiesBankAccount'] = DirectDebitChannelPropertiesBankAccount -globals()['DirectDebitChannelPropertiesBankRedirect'] = DirectDebitChannelPropertiesBankRedirect -globals()['DirectDebitChannelPropertiesDebitCard'] = DirectDebitChannelPropertiesDebitCard -from xendit.payment_request.model.direct_debit_channel_properties import DirectDebitChannelProperties +from xendit.payment_method.model.direct_debit_channel_properties import DirectDebitChannelProperties class TestDirectDebitChannelProperties(unittest.TestCase): diff --git a/test/test_direct_debit_channel_properties_bank_account.py b/test/test_direct_debit_channel_properties_bank_account.py index 3e80f39d..65818763 100644 --- a/test/test_direct_debit_channel_properties_bank_account.py +++ b/test/test_direct_debit_channel_properties_bank_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_direct_debit_channel_properties_bank_redirect.py b/test/test_direct_debit_channel_properties_bank_redirect.py index 9a11ae8e..0d2a7e3f 100644 --- a/test/test_direct_debit_channel_properties_bank_redirect.py +++ b/test/test_direct_debit_channel_properties_bank_redirect.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_direct_debit_channel_properties_debit_card.py b/test/test_direct_debit_channel_properties_debit_card.py index bc9c6de3..cf5a8e0d 100644 --- a/test/test_direct_debit_channel_properties_debit_card.py +++ b/test/test_direct_debit_channel_properties_debit_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_direct_debit_debit_card.py b/test/test_direct_debit_debit_card.py index 0ab84b29..4e10c4ca 100644 --- a/test/test_direct_debit_debit_card.py +++ b/test/test_direct_debit_debit_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,7 +7,7 @@ import unittest import xendit -from xendit.payment_request.model.direct_debit_debit_card import DirectDebitDebitCard +from xendit.payment_method.model.direct_debit_debit_card import DirectDebitDebitCard class TestDirectDebitDebitCard(unittest.TestCase): diff --git a/test/test_direct_debit_parameters.py b/test/test_direct_debit_parameters.py index 0e0984a7..8b8d3159 100644 --- a/test/test_direct_debit_parameters.py +++ b/test/test_direct_debit_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,13 +7,11 @@ import unittest import xendit -from xendit.payment_request.model.direct_debit_channel_code import DirectDebitChannelCode -from xendit.payment_request.model.direct_debit_channel_properties import DirectDebitChannelProperties -from xendit.payment_request.model.direct_debit_type import DirectDebitType +from xendit.payment_method.model.direct_debit_channel_code import DirectDebitChannelCode +from xendit.payment_method.model.direct_debit_channel_properties import DirectDebitChannelProperties globals()['DirectDebitChannelCode'] = DirectDebitChannelCode globals()['DirectDebitChannelProperties'] = DirectDebitChannelProperties -globals()['DirectDebitType'] = DirectDebitType -from xendit.payment_request.model.direct_debit_parameters import DirectDebitParameters +from xendit.payment_method.model.direct_debit_parameters import DirectDebitParameters class TestDirectDebitParameters(unittest.TestCase): diff --git a/test/test_e_wallet.py b/test/test_e_wallet.py index ff9dfdeb..6bddb5cd 100644 --- a/test/test_e_wallet.py +++ b/test/test_e_wallet.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,17 +7,15 @@ import unittest import xendit -from xendit.payment_request.model.e_wallet_account import EWalletAccount -from xendit.payment_request.model.e_wallet_all_of import EWalletAllOf -from xendit.payment_request.model.e_wallet_channel_code import EWalletChannelCode -from xendit.payment_request.model.e_wallet_channel_properties import EWalletChannelProperties -from xendit.payment_request.model.e_wallet_parameters import EWalletParameters +from xendit.payment_method.model.e_wallet_account import EWalletAccount +from xendit.payment_method.model.e_wallet_channel_code import EWalletChannelCode +from xendit.payment_method.model.e_wallet_channel_properties import EWalletChannelProperties +from xendit.payment_method.model.e_wallet_parameters import EWalletParameters globals()['EWalletAccount'] = EWalletAccount -globals()['EWalletAllOf'] = EWalletAllOf globals()['EWalletChannelCode'] = EWalletChannelCode globals()['EWalletChannelProperties'] = EWalletChannelProperties globals()['EWalletParameters'] = EWalletParameters -from xendit.payment_request.model.e_wallet import EWallet +from xendit.payment_method.model.e_wallet import EWallet class TestEWallet(unittest.TestCase): diff --git a/test/test_e_wallet_account.py b/test/test_e_wallet_account.py index 4e2fe164..0b992f4a 100644 --- a/test/test_e_wallet_account.py +++ b/test/test_e_wallet_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,7 +7,7 @@ import unittest import xendit -from xendit.payment_request.model.e_wallet_account import EWalletAccount +from xendit.payment_method.model.e_wallet_account import EWalletAccount class TestEWalletAccount(unittest.TestCase): diff --git a/test/test_e_wallet_all_of.py b/test/test_e_wallet_all_of.py index 0bd7306a..fd702628 100644 --- a/test/test_e_wallet_all_of.py +++ b/test/test_e_wallet_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_e_wallet_channel_code.py b/test/test_e_wallet_channel_code.py index 598d3a8b..b6837377 100644 --- a/test/test_e_wallet_channel_code.py +++ b/test/test_e_wallet_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_e_wallet_channel_properties.py b/test/test_e_wallet_channel_properties.py index 62c703ea..723c03f1 100644 --- a/test/test_e_wallet_channel_properties.py +++ b/test/test_e_wallet_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_e_wallet_parameters.py b/test/test_e_wallet_parameters.py index e3ea660e..874dd600 100644 --- a/test/test_e_wallet_parameters.py +++ b/test/test_e_wallet_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_employment_detail.py b/test/test_employment_detail.py new file mode 100644 index 00000000..62b653a2 --- /dev/null +++ b/test/test_employment_detail.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.employment_detail import EmploymentDetail + + +class TestEmploymentDetail(unittest.TestCase): + """EmploymentDetail unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEmploymentDetail(self): + """Test EmploymentDetail""" + # FIXME: construct object with mandatory attributes with example values + # model = EmploymentDetail() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_end_customer_status.py b/test/test_end_customer_status.py new file mode 100644 index 00000000..22107335 --- /dev/null +++ b/test/test_end_customer_status.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.end_customer_status import EndCustomerStatus + + +class TestEndCustomerStatus(unittest.TestCase): + """EndCustomerStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEndCustomerStatus(self): + """Test EndCustomerStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = EndCustomerStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_error.py b/test/test_error.py index 733026e9..a0cc6353 100644 --- a/test/test_error.py +++ b/test/test_error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.0.0 """ @@ -7,7 +7,7 @@ import unittest import xendit -from xendit.payment_request.model.error import Error +from xendit.customer.model.error import Error class TestError(unittest.TestCase): diff --git a/test/test_fee_response.py b/test/test_fee_response.py index f991d607..f614de2c 100644 --- a/test/test_fee_response.py +++ b/test/test_fee_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_get_all_payment_methods400_response.py b/test/test_get_all_payment_methods400_response.py index cc708f62..51ac7865 100644 --- a/test/test_get_all_payment_methods400_response.py +++ b/test/test_get_all_payment_methods400_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_get_all_payment_methods403_response.py b/test/test_get_all_payment_methods403_response.py index 9228392f..1a90795f 100644 --- a/test/test_get_all_payment_methods403_response.py +++ b/test/test_get_all_payment_methods403_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_get_all_payment_methods404_response.py b/test/test_get_all_payment_methods404_response.py index db98fef0..dedd0587 100644 --- a/test/test_get_all_payment_methods404_response.py +++ b/test/test_get_all_payment_methods404_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_get_all_payment_methods_default_response.py b/test/test_get_all_payment_methods_default_response.py index 12501870..bef46fb8 100644 --- a/test/test_get_all_payment_methods_default_response.py +++ b/test/test_get_all_payment_methods_default_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_get_customer_by_reference_id200_response.py b/test/test_get_customer_by_reference_id200_response.py new file mode 100644 index 00000000..40de7d90 --- /dev/null +++ b/test/test_get_customer_by_reference_id200_response.py @@ -0,0 +1,32 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.customer import Customer +globals()['Customer'] = Customer +from xendit.customer.model.get_customer_by_reference_id200_response import GetCustomerByReferenceID200Response + + +class TestGetCustomerByReferenceID200Response(unittest.TestCase): + """GetCustomerByReferenceID200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetCustomerByReferenceID200Response(self): + """Test GetCustomerByReferenceID200Response""" + # FIXME: construct object with mandatory attributes with example values + # model = GetCustomerByReferenceID200Response() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_customer_by_reference_id400_response.py b/test/test_get_customer_by_reference_id400_response.py new file mode 100644 index 00000000..0892d375 --- /dev/null +++ b/test/test_get_customer_by_reference_id400_response.py @@ -0,0 +1,34 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.error import Error +from xendit.customer.model.get_customer_by_reference_id400_response_all_of import GetCustomerByReferenceID400ResponseAllOf +globals()['Error'] = Error +globals()['GetCustomerByReferenceID400ResponseAllOf'] = GetCustomerByReferenceID400ResponseAllOf +from xendit.customer.model.get_customer_by_reference_id400_response import GetCustomerByReferenceID400Response + + +class TestGetCustomerByReferenceID400Response(unittest.TestCase): + """GetCustomerByReferenceID400Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetCustomerByReferenceID400Response(self): + """Test GetCustomerByReferenceID400Response""" + # FIXME: construct object with mandatory attributes with example values + # model = GetCustomerByReferenceID400Response() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_customer_by_reference_id400_response_all_of.py b/test/test_get_customer_by_reference_id400_response_all_of.py new file mode 100644 index 00000000..b5ebf42c --- /dev/null +++ b/test/test_get_customer_by_reference_id400_response_all_of.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.get_customer_by_reference_id400_response_all_of import GetCustomerByReferenceID400ResponseAllOf + + +class TestGetCustomerByReferenceID400ResponseAllOf(unittest.TestCase): + """GetCustomerByReferenceID400ResponseAllOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetCustomerByReferenceID400ResponseAllOf(self): + """Test GetCustomerByReferenceID400ResponseAllOf""" + # FIXME: construct object with mandatory attributes with example values + # model = GetCustomerByReferenceID400ResponseAllOf() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_identity_account_request.py b/test/test_identity_account_request.py new file mode 100644 index 00000000..7732da57 --- /dev/null +++ b/test/test_identity_account_request.py @@ -0,0 +1,36 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.country_code import CountryCode +from xendit.customer.model.identity_account_request_properties import IdentityAccountRequestProperties +from xendit.customer.model.identity_account_type import IdentityAccountType +globals()['CountryCode'] = CountryCode +globals()['IdentityAccountRequestProperties'] = IdentityAccountRequestProperties +globals()['IdentityAccountType'] = IdentityAccountType +from xendit.customer.model.identity_account_request import IdentityAccountRequest + + +class TestIdentityAccountRequest(unittest.TestCase): + """IdentityAccountRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIdentityAccountRequest(self): + """Test IdentityAccountRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = IdentityAccountRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_identity_account_request_properties.py b/test/test_identity_account_request_properties.py new file mode 100644 index 00000000..d65a0bfb --- /dev/null +++ b/test/test_identity_account_request_properties.py @@ -0,0 +1,42 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.account_bank import AccountBank +from xendit.customer.model.account_card import AccountCard +from xendit.customer.model.account_ewallet import AccountEwallet +from xendit.customer.model.account_otc import AccountOTC +from xendit.customer.model.account_pay_later import AccountPayLater +from xendit.customer.model.account_qr_code import AccountQRCode +globals()['AccountBank'] = AccountBank +globals()['AccountCard'] = AccountCard +globals()['AccountEwallet'] = AccountEwallet +globals()['AccountOTC'] = AccountOTC +globals()['AccountPayLater'] = AccountPayLater +globals()['AccountQRCode'] = AccountQRCode +from xendit.customer.model.identity_account_request_properties import IdentityAccountRequestProperties + + +class TestIdentityAccountRequestProperties(unittest.TestCase): + """IdentityAccountRequestProperties unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIdentityAccountRequestProperties(self): + """Test IdentityAccountRequestProperties""" + # FIXME: construct object with mandatory attributes with example values + # model = IdentityAccountRequestProperties() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_identity_account_response.py b/test/test_identity_account_response.py new file mode 100644 index 00000000..dc627a05 --- /dev/null +++ b/test/test_identity_account_response.py @@ -0,0 +1,34 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.country_code import CountryCode +from xendit.customer.model.identity_account_response_properties import IdentityAccountResponseProperties +globals()['CountryCode'] = CountryCode +globals()['IdentityAccountResponseProperties'] = IdentityAccountResponseProperties +from xendit.customer.model.identity_account_response import IdentityAccountResponse + + +class TestIdentityAccountResponse(unittest.TestCase): + """IdentityAccountResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIdentityAccountResponse(self): + """Test IdentityAccountResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = IdentityAccountResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_identity_account_response_properties.py b/test/test_identity_account_response_properties.py new file mode 100644 index 00000000..402df8d5 --- /dev/null +++ b/test/test_identity_account_response_properties.py @@ -0,0 +1,42 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.account_bank import AccountBank +from xendit.customer.model.account_card import AccountCard +from xendit.customer.model.account_ewallet import AccountEwallet +from xendit.customer.model.account_otc import AccountOTC +from xendit.customer.model.account_pay_later import AccountPayLater +from xendit.customer.model.account_qr_code import AccountQRCode +globals()['AccountBank'] = AccountBank +globals()['AccountCard'] = AccountCard +globals()['AccountEwallet'] = AccountEwallet +globals()['AccountOTC'] = AccountOTC +globals()['AccountPayLater'] = AccountPayLater +globals()['AccountQRCode'] = AccountQRCode +from xendit.customer.model.identity_account_response_properties import IdentityAccountResponseProperties + + +class TestIdentityAccountResponseProperties(unittest.TestCase): + """IdentityAccountResponseProperties unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIdentityAccountResponseProperties(self): + """Test IdentityAccountResponseProperties""" + # FIXME: construct object with mandatory attributes with example values + # model = IdentityAccountResponseProperties() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_identity_account_type.py b/test/test_identity_account_type.py new file mode 100644 index 00000000..37c17aa4 --- /dev/null +++ b/test/test_identity_account_type.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.identity_account_type import IdentityAccountType + + +class TestIdentityAccountType(unittest.TestCase): + """IdentityAccountType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIdentityAccountType(self): + """Test IdentityAccountType""" + # FIXME: construct object with mandatory attributes with example values + # model = IdentityAccountType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_individual_detail.py b/test/test_individual_detail.py new file mode 100644 index 00000000..64f7dc51 --- /dev/null +++ b/test/test_individual_detail.py @@ -0,0 +1,34 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.country_code import CountryCode +from xendit.customer.model.employment_detail import EmploymentDetail +globals()['CountryCode'] = CountryCode +globals()['EmploymentDetail'] = EmploymentDetail +from xendit.customer.model.individual_detail import IndividualDetail + + +class TestIndividualDetail(unittest.TestCase): + """IndividualDetail unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIndividualDetail(self): + """Test IndividualDetail""" + # FIXME: construct object with mandatory attributes with example values + # model = IndividualDetail() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kyc_document_request.py b/test/test_kyc_document_request.py new file mode 100644 index 00000000..3206285f --- /dev/null +++ b/test/test_kyc_document_request.py @@ -0,0 +1,36 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.country_code import CountryCode +from xendit.customer.model.kyc_document_sub_type import KYCDocumentSubType +from xendit.customer.model.kyc_document_type import KYCDocumentType +globals()['CountryCode'] = CountryCode +globals()['KYCDocumentSubType'] = KYCDocumentSubType +globals()['KYCDocumentType'] = KYCDocumentType +from xendit.customer.model.kyc_document_request import KYCDocumentRequest + + +class TestKYCDocumentRequest(unittest.TestCase): + """KYCDocumentRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testKYCDocumentRequest(self): + """Test KYCDocumentRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = KYCDocumentRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kyc_document_response.py b/test/test_kyc_document_response.py new file mode 100644 index 00000000..39b590bb --- /dev/null +++ b/test/test_kyc_document_response.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.kyc_document_response import KYCDocumentResponse + + +class TestKYCDocumentResponse(unittest.TestCase): + """KYCDocumentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testKYCDocumentResponse(self): + """Test KYCDocumentResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = KYCDocumentResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kyc_document_sub_type.py b/test/test_kyc_document_sub_type.py new file mode 100644 index 00000000..eb506ab8 --- /dev/null +++ b/test/test_kyc_document_sub_type.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.kyc_document_sub_type import KYCDocumentSubType + + +class TestKYCDocumentSubType(unittest.TestCase): + """KYCDocumentSubType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testKYCDocumentSubType(self): + """Test KYCDocumentSubType""" + # FIXME: construct object with mandatory attributes with example values + # model = KYCDocumentSubType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kyc_document_type.py b/test/test_kyc_document_type.py new file mode 100644 index 00000000..af2f33b2 --- /dev/null +++ b/test/test_kyc_document_type.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.kyc_document_type import KYCDocumentType + + +class TestKYCDocumentType(unittest.TestCase): + """KYCDocumentType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testKYCDocumentType(self): + """Test KYCDocumentType""" + # FIXME: construct object with mandatory attributes with example values + # model = KYCDocumentType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_link_item.py b/test/test_link_item.py index d0eeb6dd..38aefe4f 100644 --- a/test/test_link_item.py +++ b/test/test_link_item.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_over_the_counter.py b/test/test_over_the_counter.py index dc6607e6..0c750af9 100644 --- a/test/test_over_the_counter.py +++ b/test/test_over_the_counter.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,15 +7,13 @@ import unittest import xendit -from xendit.payment_request.model.over_the_counter_channel_code import OverTheCounterChannelCode -from xendit.payment_request.model.over_the_counter_channel_properties import OverTheCounterChannelProperties -from xendit.payment_request.model.over_the_counter_parameters import OverTheCounterParameters -from xendit.payment_request.model.payment_request_currency import PaymentRequestCurrency +from xendit.payment_method.model.over_the_counter_channel_code import OverTheCounterChannelCode +from xendit.payment_method.model.over_the_counter_channel_properties import OverTheCounterChannelProperties +from xendit.payment_method.model.over_the_counter_parameters import OverTheCounterParameters globals()['OverTheCounterChannelCode'] = OverTheCounterChannelCode globals()['OverTheCounterChannelProperties'] = OverTheCounterChannelProperties globals()['OverTheCounterParameters'] = OverTheCounterParameters -globals()['PaymentRequestCurrency'] = PaymentRequestCurrency -from xendit.payment_request.model.over_the_counter import OverTheCounter +from xendit.payment_method.model.over_the_counter import OverTheCounter class TestOverTheCounter(unittest.TestCase): diff --git a/test/test_over_the_counter_channel_code.py b/test/test_over_the_counter_channel_code.py index b681593a..87510e92 100644 --- a/test/test_over_the_counter_channel_code.py +++ b/test/test_over_the_counter_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,7 +7,7 @@ import unittest import xendit -from xendit.payment_request.model.over_the_counter_channel_code import OverTheCounterChannelCode +from xendit.payment_method.model.over_the_counter_channel_code import OverTheCounterChannelCode class TestOverTheCounterChannelCode(unittest.TestCase): diff --git a/test/test_over_the_counter_channel_properties.py b/test/test_over_the_counter_channel_properties.py index abae8a51..08a55bcf 100644 --- a/test/test_over_the_counter_channel_properties.py +++ b/test/test_over_the_counter_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,7 +7,7 @@ import unittest import xendit -from xendit.payment_request.model.over_the_counter_channel_properties import OverTheCounterChannelProperties +from xendit.payment_method.model.over_the_counter_channel_properties import OverTheCounterChannelProperties class TestOverTheCounterChannelProperties(unittest.TestCase): diff --git a/test/test_over_the_counter_channel_properties_update.py b/test/test_over_the_counter_channel_properties_update.py index 5cd2672a..f79b2392 100644 --- a/test/test_over_the_counter_channel_properties_update.py +++ b/test/test_over_the_counter_channel_properties_update.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_over_the_counter_parameters.py b/test/test_over_the_counter_parameters.py index 1beb31c7..d549723d 100644 --- a/test/test_over_the_counter_parameters.py +++ b/test/test_over_the_counter_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,13 +7,11 @@ import unittest import xendit -from xendit.payment_request.model.over_the_counter_channel_code import OverTheCounterChannelCode -from xendit.payment_request.model.over_the_counter_channel_properties import OverTheCounterChannelProperties -from xendit.payment_request.model.payment_request_currency import PaymentRequestCurrency +from xendit.payment_method.model.over_the_counter_channel_code import OverTheCounterChannelCode +from xendit.payment_method.model.over_the_counter_channel_properties import OverTheCounterChannelProperties globals()['OverTheCounterChannelCode'] = OverTheCounterChannelCode globals()['OverTheCounterChannelProperties'] = OverTheCounterChannelProperties -globals()['PaymentRequestCurrency'] = PaymentRequestCurrency -from xendit.payment_request.model.over_the_counter_parameters import OverTheCounterParameters +from xendit.payment_method.model.over_the_counter_parameters import OverTheCounterParameters class TestOverTheCounterParameters(unittest.TestCase): diff --git a/test/test_over_the_counter_update_parameters.py b/test/test_over_the_counter_update_parameters.py index e126dd26..ce1754d7 100644 --- a/test/test_over_the_counter_update_parameters.py +++ b/test/test_over_the_counter_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_patch_customer.py b/test/test_patch_customer.py new file mode 100644 index 00000000..bf105603 --- /dev/null +++ b/test/test_patch_customer.py @@ -0,0 +1,42 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.address_request import AddressRequest +from xendit.customer.model.business_detail import BusinessDetail +from xendit.customer.model.end_customer_status import EndCustomerStatus +from xendit.customer.model.identity_account_request import IdentityAccountRequest +from xendit.customer.model.individual_detail import IndividualDetail +from xendit.customer.model.kyc_document_request import KYCDocumentRequest +globals()['AddressRequest'] = AddressRequest +globals()['BusinessDetail'] = BusinessDetail +globals()['EndCustomerStatus'] = EndCustomerStatus +globals()['IdentityAccountRequest'] = IdentityAccountRequest +globals()['IndividualDetail'] = IndividualDetail +globals()['KYCDocumentRequest'] = KYCDocumentRequest +from xendit.customer.model.patch_customer import PatchCustomer + + +class TestPatchCustomer(unittest.TestCase): + """PatchCustomer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPatchCustomer(self): + """Test PatchCustomer""" + # FIXME: construct object with mandatory attributes with example values + # model = PatchCustomer() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_payment_channel.py b/test/test_payment_channel.py deleted file mode 100644 index 72644d56..00000000 --- a/test/test_payment_channel.py +++ /dev/null @@ -1,36 +0,0 @@ -""" - The version of the XENDIT API: 2.87.2 -""" - - -import sys -import unittest - -import xendit -from xendit.payment_method.model.channel_amount_limits import ChannelAmountLimits -from xendit.payment_method.model.channel_property import ChannelProperty -from xendit.payment_method.model.payment_channel_all_of import PaymentChannelAllOf -globals()['ChannelAmountLimits'] = ChannelAmountLimits -globals()['ChannelProperty'] = ChannelProperty -globals()['PaymentChannelAllOf'] = PaymentChannelAllOf -from xendit.payment_method.model.payment_channel import PaymentChannel - - -class TestPaymentChannel(unittest.TestCase): - """PaymentChannel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentChannel(self): - """Test PaymentChannel""" - # FIXME: construct object with mandatory attributes with example values - # model = PaymentChannel() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payment_channel_all_of.py b/test/test_payment_channel_all_of.py deleted file mode 100644 index e15e5fd3..00000000 --- a/test/test_payment_channel_all_of.py +++ /dev/null @@ -1,34 +0,0 @@ -""" - The version of the XENDIT API: 2.87.2 -""" - - -import sys -import unittest - -import xendit -from xendit.payment_method.model.channel_amount_limits import ChannelAmountLimits -from xendit.payment_method.model.channel_property import ChannelProperty -globals()['ChannelAmountLimits'] = ChannelAmountLimits -globals()['ChannelProperty'] = ChannelProperty -from xendit.payment_method.model.payment_channel_all_of import PaymentChannelAllOf - - -class TestPaymentChannelAllOf(unittest.TestCase): - """PaymentChannelAllOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentChannelAllOf(self): - """Test PaymentChannelAllOf""" - # FIXME: construct object with mandatory attributes with example values - # model = PaymentChannelAllOf() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payment_channel_list.py b/test/test_payment_channel_list.py deleted file mode 100644 index b534d6da..00000000 --- a/test/test_payment_channel_list.py +++ /dev/null @@ -1,34 +0,0 @@ -""" - The version of the XENDIT API: 2.87.2 -""" - - -import sys -import unittest - -import xendit -from xendit.payment_method.model.payment_channel import PaymentChannel -from xendit.payment_method.model.payment_channel_list_links_inner import PaymentChannelListLinksInner -globals()['PaymentChannel'] = PaymentChannel -globals()['PaymentChannelListLinksInner'] = PaymentChannelListLinksInner -from xendit.payment_method.model.payment_channel_list import PaymentChannelList - - -class TestPaymentChannelList(unittest.TestCase): - """PaymentChannelList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentChannelList(self): - """Test PaymentChannelList""" - # FIXME: construct object with mandatory attributes with example values - # model = PaymentChannelList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payment_channel_list_links_inner.py b/test/test_payment_channel_list_links_inner.py deleted file mode 100644 index 9a99d1f1..00000000 --- a/test/test_payment_channel_list_links_inner.py +++ /dev/null @@ -1,32 +0,0 @@ -""" - The version of the XENDIT API: 2.87.2 -""" - - -import sys -import unittest - -import xendit -from xendit.payment_method.model.payment_channel_list_links_inner_all_of import PaymentChannelListLinksInnerAllOf -globals()['PaymentChannelListLinksInnerAllOf'] = PaymentChannelListLinksInnerAllOf -from xendit.payment_method.model.payment_channel_list_links_inner import PaymentChannelListLinksInner - - -class TestPaymentChannelListLinksInner(unittest.TestCase): - """PaymentChannelListLinksInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentChannelListLinksInner(self): - """Test PaymentChannelListLinksInner""" - # FIXME: construct object with mandatory attributes with example values - # model = PaymentChannelListLinksInner() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payment_channel_list_links_inner_all_of.py b/test/test_payment_channel_list_links_inner_all_of.py deleted file mode 100644 index 53d0ba63..00000000 --- a/test/test_payment_channel_list_links_inner_all_of.py +++ /dev/null @@ -1,30 +0,0 @@ -""" - The version of the XENDIT API: 2.87.2 -""" - - -import sys -import unittest - -import xendit -from xendit.payment_method.model.payment_channel_list_links_inner_all_of import PaymentChannelListLinksInnerAllOf - - -class TestPaymentChannelListLinksInnerAllOf(unittest.TestCase): - """PaymentChannelListLinksInnerAllOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentChannelListLinksInnerAllOf(self): - """Test PaymentChannelListLinksInnerAllOf""" - # FIXME: construct object with mandatory attributes with example values - # model = PaymentChannelListLinksInnerAllOf() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payment_method.py b/test/test_payment_method.py index 7e6b6728..2d2e08e9 100644 --- a/test/test_payment_method.py +++ b/test/test_payment_method.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,25 +7,31 @@ import unittest import xendit -from xendit.payment_request.model.card import Card -from xendit.payment_request.model.direct_debit import DirectDebit -from xendit.payment_request.model.e_wallet import EWallet -from xendit.payment_request.model.over_the_counter import OverTheCounter -from xendit.payment_request.model.payment_method_reusability import PaymentMethodReusability -from xendit.payment_request.model.payment_method_status import PaymentMethodStatus -from xendit.payment_request.model.payment_method_type import PaymentMethodType -from xendit.payment_request.model.qr_code import QRCode -from xendit.payment_request.model.virtual_account import VirtualAccount +from xendit.payment_method.model.billing_information import BillingInformation +from xendit.payment_method.model.card import Card +from xendit.payment_method.model.direct_debit import DirectDebit +from xendit.payment_method.model.e_wallet import EWallet +from xendit.payment_method.model.over_the_counter import OverTheCounter +from xendit.payment_method.model.payment_method_action import PaymentMethodAction +from xendit.payment_method.model.payment_method_country import PaymentMethodCountry +from xendit.payment_method.model.payment_method_reusability import PaymentMethodReusability +from xendit.payment_method.model.payment_method_status import PaymentMethodStatus +from xendit.payment_method.model.payment_method_type import PaymentMethodType +from xendit.payment_method.model.qr_code import QRCode +from xendit.payment_method.model.virtual_account import VirtualAccount +globals()['BillingInformation'] = BillingInformation globals()['Card'] = Card globals()['DirectDebit'] = DirectDebit globals()['EWallet'] = EWallet globals()['OverTheCounter'] = OverTheCounter +globals()['PaymentMethodAction'] = PaymentMethodAction +globals()['PaymentMethodCountry'] = PaymentMethodCountry globals()['PaymentMethodReusability'] = PaymentMethodReusability globals()['PaymentMethodStatus'] = PaymentMethodStatus globals()['PaymentMethodType'] = PaymentMethodType globals()['QRCode'] = QRCode globals()['VirtualAccount'] = VirtualAccount -from xendit.payment_request.model.payment_method import PaymentMethod +from xendit.payment_method.model.payment_method import PaymentMethod class TestPaymentMethod(unittest.TestCase): diff --git a/test/test_payment_method_action.py b/test/test_payment_method_action.py index 41598da6..1bbc6b86 100644 --- a/test/test_payment_method_action.py +++ b/test/test_payment_method_action.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_payment_method_api.py b/test/test_payment_method_api.py index 718d853a..b4441ef7 100644 --- a/test/test_payment_method_api.py +++ b/test/test_payment_method_api.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -39,13 +39,6 @@ def test_expire_payment_method(self): """ pass - def test_get_all_payment_channels(self): - """Test case for get_all_payment_channels - - Get all payment channels # noqa: E501 - """ - pass - def test_get_all_payment_methods(self): """Test case for get_all_payment_methods diff --git a/test/test_payment_method_auth_parameters.py b/test/test_payment_method_auth_parameters.py index 71897c11..cc46f880 100644 --- a/test/test_payment_method_auth_parameters.py +++ b/test/test_payment_method_auth_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_payment_method_country.py b/test/test_payment_method_country.py index d2abad42..a38b1a03 100644 --- a/test/test_payment_method_country.py +++ b/test/test_payment_method_country.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_payment_method_expire_parameters.py b/test/test_payment_method_expire_parameters.py index 00babfb2..379cc743 100644 --- a/test/test_payment_method_expire_parameters.py +++ b/test/test_payment_method_expire_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_payment_method_list.py b/test/test_payment_method_list.py index 7ebc5fb2..b9cc0623 100644 --- a/test/test_payment_method_list.py +++ b/test/test_payment_method_list.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_payment_method_parameters.py b/test/test_payment_method_parameters.py index 16a0d255..882e4dd3 100644 --- a/test/test_payment_method_parameters.py +++ b/test/test_payment_method_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,13 +7,17 @@ import unittest import xendit -from xendit.payment_request.model.direct_debit_parameters import DirectDebitParameters -from xendit.payment_request.model.e_wallet_parameters import EWalletParameters -from xendit.payment_request.model.over_the_counter_parameters import OverTheCounterParameters -from xendit.payment_request.model.payment_method_reusability import PaymentMethodReusability -from xendit.payment_request.model.payment_method_type import PaymentMethodType -from xendit.payment_request.model.qr_code_parameters import QRCodeParameters -from xendit.payment_request.model.virtual_account_parameters import VirtualAccountParameters +from xendit.payment_method.model.billing_information import BillingInformation +from xendit.payment_method.model.card_parameters import CardParameters +from xendit.payment_method.model.direct_debit_parameters import DirectDebitParameters +from xendit.payment_method.model.e_wallet_parameters import EWalletParameters +from xendit.payment_method.model.over_the_counter_parameters import OverTheCounterParameters +from xendit.payment_method.model.payment_method_reusability import PaymentMethodReusability +from xendit.payment_method.model.payment_method_type import PaymentMethodType +from xendit.payment_method.model.qr_code_parameters import QRCodeParameters +from xendit.payment_method.model.virtual_account_parameters import VirtualAccountParameters +globals()['BillingInformation'] = BillingInformation +globals()['CardParameters'] = CardParameters globals()['DirectDebitParameters'] = DirectDebitParameters globals()['EWalletParameters'] = EWalletParameters globals()['OverTheCounterParameters'] = OverTheCounterParameters @@ -21,7 +25,7 @@ globals()['PaymentMethodType'] = PaymentMethodType globals()['QRCodeParameters'] = QRCodeParameters globals()['VirtualAccountParameters'] = VirtualAccountParameters -from xendit.payment_request.model.payment_method_parameters import PaymentMethodParameters +from xendit.payment_method.model.payment_method_parameters import PaymentMethodParameters class TestPaymentMethodParameters(unittest.TestCase): diff --git a/test/test_payment_method_reusability.py b/test/test_payment_method_reusability.py index e3e82e38..abc179af 100644 --- a/test/test_payment_method_reusability.py +++ b/test/test_payment_method_reusability.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,7 +7,7 @@ import unittest import xendit -from xendit.payment_request.model.payment_method_reusability import PaymentMethodReusability +from xendit.payment_method.model.payment_method_reusability import PaymentMethodReusability class TestPaymentMethodReusability(unittest.TestCase): diff --git a/test/test_payment_method_status.py b/test/test_payment_method_status.py index 50b72063..883690d5 100644 --- a/test/test_payment_method_status.py +++ b/test/test_payment_method_status.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,7 +7,7 @@ import unittest import xendit -from xendit.payment_request.model.payment_method_status import PaymentMethodStatus +from xendit.payment_method.model.payment_method_status import PaymentMethodStatus class TestPaymentMethodStatus(unittest.TestCase): diff --git a/test/test_payment_method_type.py b/test/test_payment_method_type.py index 46ce073f..afb25969 100644 --- a/test/test_payment_method_type.py +++ b/test/test_payment_method_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,7 +7,7 @@ import unittest import xendit -from xendit.payment_request.model.payment_method_type import PaymentMethodType +from xendit.payment_method.model.payment_method_type import PaymentMethodType class TestPaymentMethodType(unittest.TestCase): diff --git a/test/test_payment_method_update_parameters.py b/test/test_payment_method_update_parameters.py index dec1bcce..7238ea6f 100644 --- a/test/test_payment_method_update_parameters.py +++ b/test/test_payment_method_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_payment_request.py b/test/test_payment_request.py index f0aecb93..8603cf84 100644 --- a/test/test_payment_request.py +++ b/test/test_payment_request.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_action.py b/test/test_payment_request_action.py index 7b1079ff..367089aa 100644 --- a/test/test_payment_request_action.py +++ b/test/test_payment_request_action.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_api.py b/test/test_payment_request_api.py index 55a7ba0c..2e9c6fa7 100644 --- a/test/test_payment_request_api.py +++ b/test/test_payment_request_api.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_auth_parameters.py b/test/test_payment_request_auth_parameters.py index 04405e08..aca870e5 100644 --- a/test/test_payment_request_auth_parameters.py +++ b/test/test_payment_request_auth_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_basket.py b/test/test_payment_request_basket.py index 59961ea5..e6cbb5ad 100644 --- a/test/test_payment_request_basket.py +++ b/test/test_payment_request_basket.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_basket_item.py b/test/test_payment_request_basket_item.py index 06f07cf8..c20a6b0c 100644 --- a/test/test_payment_request_basket_item.py +++ b/test/test_payment_request_basket_item.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_capture_method.py b/test/test_payment_request_capture_method.py index e148b0af..7c1c73d0 100644 --- a/test/test_payment_request_capture_method.py +++ b/test/test_payment_request_capture_method.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_card_verification_results.py b/test/test_payment_request_card_verification_results.py index ca21ca40..f5784be0 100644 --- a/test/test_payment_request_card_verification_results.py +++ b/test/test_payment_request_card_verification_results.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_card_verification_results_three_dee_secure.py b/test/test_payment_request_card_verification_results_three_dee_secure.py index 09bcde37..f5f803ab 100644 --- a/test/test_payment_request_card_verification_results_three_dee_secure.py +++ b/test/test_payment_request_card_verification_results_three_dee_secure.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_channel_properties.py b/test/test_payment_request_channel_properties.py index 99026e05..8af6c369 100644 --- a/test/test_payment_request_channel_properties.py +++ b/test/test_payment_request_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_country.py b/test/test_payment_request_country.py index c0978223..f2b96a4a 100644 --- a/test/test_payment_request_country.py +++ b/test/test_payment_request_country.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_currency.py b/test/test_payment_request_currency.py index f0e3902e..3aa96c85 100644 --- a/test/test_payment_request_currency.py +++ b/test/test_payment_request_currency.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_initiator.py b/test/test_payment_request_initiator.py index 6607c805..9f10995a 100644 --- a/test/test_payment_request_initiator.py +++ b/test/test_payment_request_initiator.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_list_response.py b/test/test_payment_request_list_response.py index 465e1eab..a6801167 100644 --- a/test/test_payment_request_list_response.py +++ b/test/test_payment_request_list_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_parameters.py b/test/test_payment_request_parameters.py index d0763a21..e63ea346 100644 --- a/test/test_payment_request_parameters.py +++ b/test/test_payment_request_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_parameters_channel_properties.py b/test/test_payment_request_parameters_channel_properties.py index dad8a2bb..339e3552 100644 --- a/test/test_payment_request_parameters_channel_properties.py +++ b/test/test_payment_request_parameters_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_parameters_channel_properties_all_of.py b/test/test_payment_request_parameters_channel_properties_all_of.py index 410ab641..1b5f5551 100644 --- a/test/test_payment_request_parameters_channel_properties_all_of.py +++ b/test/test_payment_request_parameters_channel_properties_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_shipping_information.py b/test/test_payment_request_shipping_information.py index e11a7cca..ebdbf8d5 100644 --- a/test/test_payment_request_shipping_information.py +++ b/test/test_payment_request_shipping_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_payment_request_status.py b/test/test_payment_request_status.py index 445ae5d2..9360fe33 100644 --- a/test/test_payment_request_status.py +++ b/test/test_payment_request_status.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ diff --git a/test/test_qr_code_channel_code.py b/test/test_qr_code_channel_code.py index 637db792..6ea191c9 100644 --- a/test/test_qr_code_channel_code.py +++ b/test/test_qr_code_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_qr_code_channel_properties.py b/test/test_qr_code_channel_properties.py index a0427efb..02dbd2e6 100644 --- a/test/test_qr_code_channel_properties.py +++ b/test/test_qr_code_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_qr_code_parameters.py b/test/test_qr_code_parameters.py index 038f3d91..2eee5bc1 100644 --- a/test/test_qr_code_parameters.py +++ b/test/test_qr_code_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_response_data_not_found.py b/test/test_response_data_not_found.py new file mode 100644 index 00000000..19362d59 --- /dev/null +++ b/test/test_response_data_not_found.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.response_data_not_found import ResponseDataNotFound + + +class TestResponseDataNotFound(unittest.TestCase): + """ResponseDataNotFound unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResponseDataNotFound(self): + """Test ResponseDataNotFound""" + # FIXME: construct object with mandatory attributes with example values + # model = ResponseDataNotFound() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_server_error.py b/test/test_server_error.py index 612d228c..1d995010 100644 --- a/test/test_server_error.py +++ b/test/test_server_error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_simulate_payment_request.py b/test/test_simulate_payment_request.py index a8254354..42d27621 100644 --- a/test/test_simulate_payment_request.py +++ b/test/test_simulate_payment_request.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_tokenized_card_information.py b/test/test_tokenized_card_information.py index effd6a96..88978297 100644 --- a/test/test_tokenized_card_information.py +++ b/test/test_tokenized_card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_transaction_api.py b/test/test_transaction_api.py index a8eabc93..a1684188 100644 --- a/test/test_transaction_api.py +++ b/test/test_transaction_api.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_transaction_id.py b/test/test_transaction_id.py index af8f486d..87dc541f 100644 --- a/test/test_transaction_id.py +++ b/test/test_transaction_id.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_transaction_response.py b/test/test_transaction_response.py index 8e11f3f2..e5597c61 100644 --- a/test/test_transaction_response.py +++ b/test/test_transaction_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_transaction_response_type.py b/test/test_transaction_response_type.py index 95ed039c..d16fc3aa 100644 --- a/test/test_transaction_response_type.py +++ b/test/test_transaction_response_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_transaction_statuses.py b/test/test_transaction_statuses.py index 36d4908f..f1e5b314 100644 --- a/test/test_transaction_statuses.py +++ b/test/test_transaction_statuses.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_transaction_types.py b/test/test_transaction_types.py index eda4f4e7..fd5fc188 100644 --- a/test/test_transaction_types.py +++ b/test/test_transaction_types.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_transactions_response.py b/test/test_transactions_response.py index aa1d472b..67ef9be6 100644 --- a/test/test_transactions_response.py +++ b/test/test_transactions_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_update_customer400_response.py b/test/test_update_customer400_response.py new file mode 100644 index 00000000..5cb7354b --- /dev/null +++ b/test/test_update_customer400_response.py @@ -0,0 +1,34 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.error import Error +from xendit.customer.model.update_customer400_response_all_of import UpdateCustomer400ResponseAllOf +globals()['Error'] = Error +globals()['UpdateCustomer400ResponseAllOf'] = UpdateCustomer400ResponseAllOf +from xendit.customer.model.update_customer400_response import UpdateCustomer400Response + + +class TestUpdateCustomer400Response(unittest.TestCase): + """UpdateCustomer400Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpdateCustomer400Response(self): + """Test UpdateCustomer400Response""" + # FIXME: construct object with mandatory attributes with example values + # model = UpdateCustomer400Response() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_update_customer400_response_all_of.py b/test/test_update_customer400_response_all_of.py new file mode 100644 index 00000000..613562da --- /dev/null +++ b/test/test_update_customer400_response_all_of.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import sys +import unittest + +import xendit +from xendit.customer.model.update_customer400_response_all_of import UpdateCustomer400ResponseAllOf + + +class TestUpdateCustomer400ResponseAllOf(unittest.TestCase): + """UpdateCustomer400ResponseAllOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpdateCustomer400ResponseAllOf(self): + """Test UpdateCustomer400ResponseAllOf""" + # FIXME: construct object with mandatory attributes with example values + # model = UpdateCustomer400ResponseAllOf() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_validation_error.py b/test/test_validation_error.py index ae172db7..f4910b03 100644 --- a/test/test_validation_error.py +++ b/test/test_validation_error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ diff --git a/test/test_virtual_account.py b/test/test_virtual_account.py index 3dcb6f92..3e214bf4 100644 --- a/test/test_virtual_account.py +++ b/test/test_virtual_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,19 +7,17 @@ import unittest import xendit -from xendit.payment_request.model.payment_request_currency import PaymentRequestCurrency -from xendit.payment_request.model.virtual_account_all_of import VirtualAccountAllOf -from xendit.payment_request.model.virtual_account_alternative_display import VirtualAccountAlternativeDisplay -from xendit.payment_request.model.virtual_account_channel_code import VirtualAccountChannelCode -from xendit.payment_request.model.virtual_account_channel_properties import VirtualAccountChannelProperties -from xendit.payment_request.model.virtual_account_parameters import VirtualAccountParameters -globals()['PaymentRequestCurrency'] = PaymentRequestCurrency +from xendit.payment_method.model.virtual_account_all_of import VirtualAccountAllOf +from xendit.payment_method.model.virtual_account_alternative_display import VirtualAccountAlternativeDisplay +from xendit.payment_method.model.virtual_account_channel_code import VirtualAccountChannelCode +from xendit.payment_method.model.virtual_account_channel_properties import VirtualAccountChannelProperties +from xendit.payment_method.model.virtual_account_parameters import VirtualAccountParameters globals()['VirtualAccountAllOf'] = VirtualAccountAllOf globals()['VirtualAccountAlternativeDisplay'] = VirtualAccountAlternativeDisplay globals()['VirtualAccountChannelCode'] = VirtualAccountChannelCode globals()['VirtualAccountChannelProperties'] = VirtualAccountChannelProperties globals()['VirtualAccountParameters'] = VirtualAccountParameters -from xendit.payment_request.model.virtual_account import VirtualAccount +from xendit.payment_method.model.virtual_account import VirtualAccount class TestVirtualAccount(unittest.TestCase): diff --git a/test/test_virtual_account_all_of.py b/test/test_virtual_account_all_of.py index a0ee7e03..b9d8742a 100644 --- a/test/test_virtual_account_all_of.py +++ b/test/test_virtual_account_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,9 +7,9 @@ import unittest import xendit -from xendit.payment_request.model.virtual_account_alternative_display import VirtualAccountAlternativeDisplay +from xendit.payment_method.model.virtual_account_alternative_display import VirtualAccountAlternativeDisplay globals()['VirtualAccountAlternativeDisplay'] = VirtualAccountAlternativeDisplay -from xendit.payment_request.model.virtual_account_all_of import VirtualAccountAllOf +from xendit.payment_method.model.virtual_account_all_of import VirtualAccountAllOf class TestVirtualAccountAllOf(unittest.TestCase): diff --git a/test/test_virtual_account_alternative_display.py b/test/test_virtual_account_alternative_display.py index 0fdba1e3..21c86708 100644 --- a/test/test_virtual_account_alternative_display.py +++ b/test/test_virtual_account_alternative_display.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,7 +7,7 @@ import unittest import xendit -from xendit.payment_request.model.virtual_account_alternative_display import VirtualAccountAlternativeDisplay +from xendit.payment_method.model.virtual_account_alternative_display import VirtualAccountAlternativeDisplay class TestVirtualAccountAlternativeDisplay(unittest.TestCase): diff --git a/test/test_virtual_account_channel_code.py b/test/test_virtual_account_channel_code.py index f87ab0a3..b3dcb3d1 100644 --- a/test/test_virtual_account_channel_code.py +++ b/test/test_virtual_account_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,7 +7,7 @@ import unittest import xendit -from xendit.payment_request.model.virtual_account_channel_code import VirtualAccountChannelCode +from xendit.payment_method.model.virtual_account_channel_code import VirtualAccountChannelCode class TestVirtualAccountChannelCode(unittest.TestCase): diff --git a/test/test_virtual_account_channel_properties.py b/test/test_virtual_account_channel_properties.py index 7f278e2c..37f501ca 100644 --- a/test/test_virtual_account_channel_properties.py +++ b/test/test_virtual_account_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,7 +7,7 @@ import unittest import xendit -from xendit.payment_request.model.virtual_account_channel_properties import VirtualAccountChannelProperties +from xendit.payment_method.model.virtual_account_channel_properties import VirtualAccountChannelProperties class TestVirtualAccountChannelProperties(unittest.TestCase): diff --git a/test/test_virtual_account_channel_properties_patch.py b/test/test_virtual_account_channel_properties_patch.py index a967a6f4..7d06f7f0 100644 --- a/test/test_virtual_account_channel_properties_patch.py +++ b/test/test_virtual_account_channel_properties_patch.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/test/test_virtual_account_parameters.py b/test/test_virtual_account_parameters.py index bf2327f3..a3550bc0 100644 --- a/test/test_virtual_account_parameters.py +++ b/test/test_virtual_account_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 2.89.1 """ @@ -7,13 +7,11 @@ import unittest import xendit -from xendit.payment_request.model.payment_request_currency import PaymentRequestCurrency -from xendit.payment_request.model.virtual_account_channel_code import VirtualAccountChannelCode -from xendit.payment_request.model.virtual_account_channel_properties import VirtualAccountChannelProperties -globals()['PaymentRequestCurrency'] = PaymentRequestCurrency +from xendit.payment_method.model.virtual_account_channel_code import VirtualAccountChannelCode +from xendit.payment_method.model.virtual_account_channel_properties import VirtualAccountChannelProperties globals()['VirtualAccountChannelCode'] = VirtualAccountChannelCode globals()['VirtualAccountChannelProperties'] = VirtualAccountChannelProperties -from xendit.payment_request.model.virtual_account_parameters import VirtualAccountParameters +from xendit.payment_method.model.virtual_account_parameters import VirtualAccountParameters class TestVirtualAccountParameters(unittest.TestCase): diff --git a/test/test_virtual_account_update_parameters.py b/test/test_virtual_account_update_parameters.py index 3ef20d58..cc7e0cf9 100644 --- a/test/test_virtual_account_update_parameters.py +++ b/test/test_virtual_account_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ diff --git a/xendit/__init__.py b/xendit/__init__.py index 707f299d..c2207aee 100644 --- a/xendit/__init__.py +++ b/xendit/__init__.py @@ -1,11 +1,11 @@ # flake8: noqa """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.44.1 """ -__version__ = "3.2.0" +__version__ = "3.3.0" # import ApiClient from xendit.api_client import ApiClient diff --git a/xendit/api_client.py b/xendit/api_client.py index cb8c1ee6..df8f9ab0 100644 --- a/xendit/api_client.py +++ b/xendit/api_client.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.44.1 """ @@ -74,11 +74,11 @@ def __init__(self, configuration=None, header_name=None, header_value=None, # XENDIT headers self.default_headers['xendit-lib'] = 'python' - self.default_headers['xendit-lib-version'] = '3.2.0' + self.default_headers['xendit-lib-version'] = '3.3.0' self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/3.2.0/python' + self.user_agent = 'OpenAPI-Generator/3.3.0/python' def __enter__(self): return self @@ -805,11 +805,11 @@ def __call__(self, *args, **kwargs): """ This method is invoked when endpoints are called Example: - api_instance = PaymentMethodApi() - api_instance.auth_payment_method # this is an instance of the class Endpoint - api_instance.auth_payment_method() # this invokes api_instance.auth_payment_method.__call__() + api_instance = PaymentRequestApi() + api_instance.authorize_payment_request # this is an instance of the class Endpoint + api_instance.authorize_payment_request() # this invokes api_instance.authorize_payment_request.__call__() which then invokes the callable functions stored in that endpoint at - api_instance.auth_payment_method.callable or self.callable in this class + api_instance.authorize_payment_request.callable or self.callable in this class """ return self.callable(self, *args, **kwargs) diff --git a/xendit/apis/__init__.py b/xendit/apis/__init__.py index 327b007d..91c1c1e7 100644 --- a/xendit/apis/__init__.py +++ b/xendit/apis/__init__.py @@ -1,5 +1,6 @@ from xendit.balance_and_transaction.balance_api import BalanceApi from xendit.balance_and_transaction.transaction_api import TransactionApi +from xendit.customer.customer_api import CustomerApi from xendit.invoice.invoice_api import InvoiceApi from xendit.payment_method.payment_method_api import PaymentMethodApi from xendit.payment_request.payment_request_api import PaymentRequestApi diff --git a/xendit/balance_and_transaction/balance_api.py b/xendit/balance_and_transaction/balance_api.py index db921627..eda94a60 100644 --- a/xendit/balance_and_transaction/balance_api.py +++ b/xendit/balance_and_transaction/balance_api.py @@ -3,7 +3,7 @@ # Introduction This specification describes how to use the Transaction Service V4 API. **Transaction Service** is the service that records the customer transactions and is responsible to calculate their balance. All products that move customer money around whether it is money-in, money-out, or transfer will interact with the Transaction Service on its flow. Transaction Service is the source of truth of Xendit and Customer regarding how much money that customer has that is stored in Xendit. Transaction Service is the source that is used for both our internal and customer financial reconciliation. Internally, the Transaction Service data structure is similar to how double-entry accounting works. ## How Xendit teams/services do integrate with Transaction Service V4 **Channel product team/service** They interact with the Transaction Service when they want to record the transactions. This transaction can be money-in (balance added), money-out (balance deducted), transfer, refund/void/reversal, or other kind of transaction that affects customer balance. Product team also interacts with the Transaction Service for getting information about the transaction or balance. **Billing/Fee team/service** They interact with Transaction Service either as the dependency of Transaction Service for getting the correct fee calculation/settings. Or using Transaction Service for getting the transaction/fee information to calculate the bill for the customer. **NUX team/service** They interact with the Transaction Service to set up the customer ledger_account that is used to record their transactions. **Finance team/service** They interact with the Transaction Service to get the transaction and balance data for each customer to do reconciliation. **Dashboard/API team/service** They interact with the Transaction Service as a proxy to show the data to the Customer. ## Prerequisites Before staring to use **Transaction Service API** you need to complete a few things: 1. Find out **Base URL** for the API. Every endpoint definition in this document contains list of available servers (local, staging, production) 2. Set up ledger accounts using business id and currency. **Ledger Account** represents the account of the customer that will be used to associate with ledger lines. Each business may have at least 1 ledger account group (a group consists of a few accounts of types such as cash, liability, holding), and the money movement of their ledger will revolve around those ledger accounts. **Ledger Lines** that show a debit or credit transaction for a ledger account. We’re using the double-entry principle in accounting where we should post 2 lines every time we make a transaction, 1 to debit an account and 1 to credit another account. See how to call Create cash, liability, holding, and tax account for a business (api/ledger-accounts/setup) section of this document 3. To be able to create payments with fee/VAT the Product rate settings and VAT rate settings should be created using Transaction Fee Service. See Fee Service Documentation for details about how to create Product/VAT rate settings. ## Transaction flows To integrate with the Transaction Service you should decide what types of transaction flows your integration will be using. Transaction flow is set by the transaction `type` during transaction creation 1. Money In flows 1. Payment from credit card `type: CREDIT_CARD_PAYMENT` 3. Payment from other sources without fee/VAT `type: DEPOSIT, FOREX_DEPOSIT, ISSUING_FUNDING_REFUND, BNPL_PARTNER_SETTLEMENT_CREDIT, PROMO_FEE_CASHBACK, PROMO_VAT_CASHBACK, BATCH_VA_PAYMENT` 4. Payment from other sources with fee/VAT `type: VA_PAYMENT, IM_ESCROW_VA_PAYMENT, IM_DEPOSIT, RO_PAYMENT, EWALLET_PAYMENT, CARDLESS_CREDIT_PAYMENT, IM_REMITTANCE_VA_PAYMENT, PAYLATER_PAYMENT, INVOICE, QR_CODE_PAYMENT, DIRECT_DEBIT_PAYMENT, DIRECT_BANK_TRANSFER, ACH_PAYMENT, CRYPTO_PAYMENT` 5. Billing deposit from cash `type: BILLING_DEPOSIT` 6. Billing deposit from other sources `type: BILLING_DIRECT_DEPOSIT, BILLING_VA_DIRECT_DEPOSIT` 2. Money out flows 1. Instant payment `type: simple money out types` `status: COMPLETED` 2. Simple payment without fee/VAT `type: CHARGEBACK_DEDUCTION, FRAUD_DEDUCTION, LOAN_REPAYMENT, FOREX_DEDUCTION, BNPL_PARTNER_SETTLEMENT_DEBIT, WITHDRAWAL` 3. Simple payment with fee/VAT `type: ISSUING_FUNDING, BATCH_DISBURSEMENT, CASH_DISBURSEMENT, DISBURSEMENT, REMITTANCE, REMITTANCE_PAYOUT, TAX_DISBURSEMENT` 4. Billing withdraw to cash `type: BILLING_WITHDRAWAL` 4. Billing withdraw to other destinations `type: BILL_PAYMENT` 3. Reversal flow Some of transactions could be reversed. See Reversible / non reversible transaction types section of this document. To reverse transaction you should call Update transaction (/api/transactions/:id) endpoint with the transaction status `REVERSED`. 4. Void/Cancellation Flow Transaction in the `PENDING_SETTLEMENT` status could be canceled. To do that you should call Update transaction (/api/transactions/:id) endpoint with the transaction status `VOIDED`. 5. Switcher flow Switchers are transactions that do not affect the customer balance. These are transactions that goes directly to the customers’ account and simply passes through Xendit. Therefore, it will not impact the customer balance and we will only charge Fee and VAT. To create switcher flow you should set `is_switcher_payment` field to `true`. ## Instant/non instant settlement Transactions can be performed instantly (instant settlement) or with delay (non instant settlement). Some of the transaction types are only instantly processed, some of them support both instant and non instant settlement and some of them have only non instant settlement. If settlement is instant than balance will be changed instantly. In opposite case the transaction status has to be set into PENDING_SETTLEMENT and settlement date should be provided. 1. Instant settlement Money In transaction types `DEPOSIT, BATCH_VA_PAYMENT, FOREX_DEPOSIT, IM_DEPOSIT, CARDLESS_CREDIT_PAYMENT, ISSUING_FUNDING_REFUND, BNPL_PARTNER_SETTLEMENT_CREDIT, PROMO_FEE_CASHBACK, PROMO_VAT_CASHBACK, REMITTANCE_VA_PAYMENT_CLAIM` 2. Both instant and non instant Money In transaction types `DIRECT_DEBIT_PAYMENT, DIRECT_BANK_TRANSFER, ACH_PAYMENT, RO_PAYMENT, EWALLET_PAYMENT, QR_CODE_PAYMENT, VA_PAYMENT, INVOICE, PAYLATER_PAYMENT` 3. Non Instant settlement Money In transaction types `CREDIT_CARD_PAYMENT` 4. Instant settlement Money Out transaction types `LOAN_REPAYMENT, FOREX_DEDUCTION, BILL_PAYMENT, ISSUING_FUNDING, BNPL_PARTNER_SETTLEMENT_DEBIT, FRAUD_DEDUCTION` 5. Both instant and non instant settlement supported Money Out transaction types `CHARGEBACK_DEDUCTION` 6. Non Instant settlement Money Out transaction types All other money out types are non instant settlement ## Reversible / non reversible transaction types Some transactions can be reversed. Here are the list of transaction types that could be reversed: `CASH_DISBURSEMENT, DISBURSEMENT, BATCH_DISBURSEMENT, REMITTANCE, REMITTANCE_PAYOUT, TAX_DISBURSEMENT, WITHDRAWAL, DEPOSIT, FOREX_DEPOSIT, FOREX_DEDUCTION, VA_PAYMENT, BATCH_VA_PAYMENT, IM_REMITTANCE_VA_PAYMENT, IM_ESCROW_VA_PAYMENT, IM_DEPOSIT, REMITTANCE_VA_PAYMENT, REMITTANCE_VA_PAYMENT_CLAIM, RO_PAYMENT, CARDLESS_CREDIT_PAYMENT, PAYLATER_PAYMENT, INVOICE, QR_CODE_PAYMENT, CREDIT_CARD_PAYMENT, EWALLET_PAYMENT, DIRECT_DEBIT_PAYMENT, DIRECT_BANK_TRANSFER, ACH_PAYMENT, CHARGEBACK_DEDUCTION, FRAUD_DEDUCTION, LOAN_REPAYMENT, ISSUING_FUNDING, ISSUING_FUNDING_REFUND, BNPL_PARTNER_SETTLEMENT_DEBIT, BNPL_PARTNER_SETTLEMENT_CREDIT, BILLING_DEPOSIT, BILLING_DIRECT_DEPOSIT, BILLING_VA_DIRECT_DEPOSIT, BILLING_WITHDRAWAL, BILL_PAYMENT, PROMO_FEE_CASHBACK, PROMO_VAT_CASHBACK` ## How to create transaction After you created or already have the `BUSINESS_CASH` ledger account ID (See Prerequisites section) and you know what transaction flows are going to be used you can create the new transaction using POST request to the Create a new transaction (/api/transactions) endpoint ## How to update transaction To update transaction you should do PATCH request to the Update transaction (/api/transactions/::id) endpoint # noqa: E501 - The version of the OpenAPI document: 3.4.2 + The version of the OpenAPI document: 3.4.3 """ import re # noqa: F401 diff --git a/xendit/balance_and_transaction/model/balance.py b/xendit/balance_and_transaction/model/balance.py index 8396ba38..059328b3 100644 --- a/xendit/balance_and_transaction/model/balance.py +++ b/xendit/balance_and_transaction/model/balance.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/balance_and_transaction/model/channels_categories.py b/xendit/balance_and_transaction/model/channels_categories.py index 4ea7748e..77f385e9 100644 --- a/xendit/balance_and_transaction/model/channels_categories.py +++ b/xendit/balance_and_transaction/model/channels_categories.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/balance_and_transaction/model/currency.py b/xendit/balance_and_transaction/model/currency.py index 6efcdf72..c067b02a 100644 --- a/xendit/balance_and_transaction/model/currency.py +++ b/xendit/balance_and_transaction/model/currency.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/balance_and_transaction/model/date_range_filter.py b/xendit/balance_and_transaction/model/date_range_filter.py index 118f0dbb..734ee6fd 100644 --- a/xendit/balance_and_transaction/model/date_range_filter.py +++ b/xendit/balance_and_transaction/model/date_range_filter.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/balance_and_transaction/model/fee_response.py b/xendit/balance_and_transaction/model/fee_response.py index 513a97cf..df473f06 100644 --- a/xendit/balance_and_transaction/model/fee_response.py +++ b/xendit/balance_and_transaction/model/fee_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/balance_and_transaction/model/link_item.py b/xendit/balance_and_transaction/model/link_item.py index 21d99471..93c58bb5 100644 --- a/xendit/balance_and_transaction/model/link_item.py +++ b/xendit/balance_and_transaction/model/link_item.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/balance_and_transaction/model/server_error.py b/xendit/balance_and_transaction/model/server_error.py index adee2828..965a04ff 100644 --- a/xendit/balance_and_transaction/model/server_error.py +++ b/xendit/balance_and_transaction/model/server_error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/balance_and_transaction/model/transaction_id.py b/xendit/balance_and_transaction/model/transaction_id.py index 9cd4b6a5..31ae7942 100644 --- a/xendit/balance_and_transaction/model/transaction_id.py +++ b/xendit/balance_and_transaction/model/transaction_id.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/balance_and_transaction/model/transaction_response.py b/xendit/balance_and_transaction/model/transaction_response.py index 39fa0a63..1c1ca5c6 100644 --- a/xendit/balance_and_transaction/model/transaction_response.py +++ b/xendit/balance_and_transaction/model/transaction_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ @@ -37,7 +37,6 @@ globals()['TransactionResponseType'] = TransactionResponseType globals()['TransactionStatuses'] = TransactionStatuses - def lazy_import(): pass @@ -281,8 +280,8 @@ def __init__(self, type: TransactionResponseType, status: TransactionStatuses, channel_category: ChannelsCategories, - channel_code: str, - account_identifier: str, + channel_code: str | None, + account_identifier: str | None, reference_id: str, currency: Currency, amount: float, diff --git a/xendit/balance_and_transaction/model/transaction_response_type.py b/xendit/balance_and_transaction/model/transaction_response_type.py index fb9ea302..eebc5ba8 100644 --- a/xendit/balance_and_transaction/model/transaction_response_type.py +++ b/xendit/balance_and_transaction/model/transaction_response_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ @@ -27,7 +27,6 @@ from xendit.balance_and_transaction.model.transaction_types import TransactionTypes globals()['TransactionTypes'] = TransactionTypes - def lazy_import(): pass diff --git a/xendit/balance_and_transaction/model/transaction_statuses.py b/xendit/balance_and_transaction/model/transaction_statuses.py index f09cd8fc..17721aae 100644 --- a/xendit/balance_and_transaction/model/transaction_statuses.py +++ b/xendit/balance_and_transaction/model/transaction_statuses.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/balance_and_transaction/model/transaction_types.py b/xendit/balance_and_transaction/model/transaction_types.py index 36bfa9e6..2b10915e 100644 --- a/xendit/balance_and_transaction/model/transaction_types.py +++ b/xendit/balance_and_transaction/model/transaction_types.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/balance_and_transaction/model/transactions_response.py b/xendit/balance_and_transaction/model/transactions_response.py index f340dd58..755fa265 100644 --- a/xendit/balance_and_transaction/model/transactions_response.py +++ b/xendit/balance_and_transaction/model/transactions_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ @@ -29,7 +29,6 @@ globals()['LinkItem'] = LinkItem globals()['TransactionResponse'] = TransactionResponse - def lazy_import(): pass diff --git a/xendit/balance_and_transaction/model/validation_error.py b/xendit/balance_and_transaction/model/validation_error.py index 85aa7949..9be7e79b 100644 --- a/xendit/balance_and_transaction/model/validation_error.py +++ b/xendit/balance_and_transaction/model/validation_error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.2 + The version of the XENDIT API: 3.4.3 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/balance_and_transaction/transaction_api.py b/xendit/balance_and_transaction/transaction_api.py index f4ae8547..1aee1dd5 100644 --- a/xendit/balance_and_transaction/transaction_api.py +++ b/xendit/balance_and_transaction/transaction_api.py @@ -3,7 +3,7 @@ # Introduction This specification describes how to use the Transaction Service V4 API. **Transaction Service** is the service that records the customer transactions and is responsible to calculate their balance. All products that move customer money around whether it is money-in, money-out, or transfer will interact with the Transaction Service on its flow. Transaction Service is the source of truth of Xendit and Customer regarding how much money that customer has that is stored in Xendit. Transaction Service is the source that is used for both our internal and customer financial reconciliation. Internally, the Transaction Service data structure is similar to how double-entry accounting works. ## How Xendit teams/services do integrate with Transaction Service V4 **Channel product team/service** They interact with the Transaction Service when they want to record the transactions. This transaction can be money-in (balance added), money-out (balance deducted), transfer, refund/void/reversal, or other kind of transaction that affects customer balance. Product team also interacts with the Transaction Service for getting information about the transaction or balance. **Billing/Fee team/service** They interact with Transaction Service either as the dependency of Transaction Service for getting the correct fee calculation/settings. Or using Transaction Service for getting the transaction/fee information to calculate the bill for the customer. **NUX team/service** They interact with the Transaction Service to set up the customer ledger_account that is used to record their transactions. **Finance team/service** They interact with the Transaction Service to get the transaction and balance data for each customer to do reconciliation. **Dashboard/API team/service** They interact with the Transaction Service as a proxy to show the data to the Customer. ## Prerequisites Before staring to use **Transaction Service API** you need to complete a few things: 1. Find out **Base URL** for the API. Every endpoint definition in this document contains list of available servers (local, staging, production) 2. Set up ledger accounts using business id and currency. **Ledger Account** represents the account of the customer that will be used to associate with ledger lines. Each business may have at least 1 ledger account group (a group consists of a few accounts of types such as cash, liability, holding), and the money movement of their ledger will revolve around those ledger accounts. **Ledger Lines** that show a debit or credit transaction for a ledger account. We’re using the double-entry principle in accounting where we should post 2 lines every time we make a transaction, 1 to debit an account and 1 to credit another account. See how to call Create cash, liability, holding, and tax account for a business (api/ledger-accounts/setup) section of this document 3. To be able to create payments with fee/VAT the Product rate settings and VAT rate settings should be created using Transaction Fee Service. See Fee Service Documentation for details about how to create Product/VAT rate settings. ## Transaction flows To integrate with the Transaction Service you should decide what types of transaction flows your integration will be using. Transaction flow is set by the transaction `type` during transaction creation 1. Money In flows 1. Payment from credit card `type: CREDIT_CARD_PAYMENT` 3. Payment from other sources without fee/VAT `type: DEPOSIT, FOREX_DEPOSIT, ISSUING_FUNDING_REFUND, BNPL_PARTNER_SETTLEMENT_CREDIT, PROMO_FEE_CASHBACK, PROMO_VAT_CASHBACK, BATCH_VA_PAYMENT` 4. Payment from other sources with fee/VAT `type: VA_PAYMENT, IM_ESCROW_VA_PAYMENT, IM_DEPOSIT, RO_PAYMENT, EWALLET_PAYMENT, CARDLESS_CREDIT_PAYMENT, IM_REMITTANCE_VA_PAYMENT, PAYLATER_PAYMENT, INVOICE, QR_CODE_PAYMENT, DIRECT_DEBIT_PAYMENT, DIRECT_BANK_TRANSFER, ACH_PAYMENT, CRYPTO_PAYMENT` 5. Billing deposit from cash `type: BILLING_DEPOSIT` 6. Billing deposit from other sources `type: BILLING_DIRECT_DEPOSIT, BILLING_VA_DIRECT_DEPOSIT` 2. Money out flows 1. Instant payment `type: simple money out types` `status: COMPLETED` 2. Simple payment without fee/VAT `type: CHARGEBACK_DEDUCTION, FRAUD_DEDUCTION, LOAN_REPAYMENT, FOREX_DEDUCTION, BNPL_PARTNER_SETTLEMENT_DEBIT, WITHDRAWAL` 3. Simple payment with fee/VAT `type: ISSUING_FUNDING, BATCH_DISBURSEMENT, CASH_DISBURSEMENT, DISBURSEMENT, REMITTANCE, REMITTANCE_PAYOUT, TAX_DISBURSEMENT` 4. Billing withdraw to cash `type: BILLING_WITHDRAWAL` 4. Billing withdraw to other destinations `type: BILL_PAYMENT` 3. Reversal flow Some of transactions could be reversed. See Reversible / non reversible transaction types section of this document. To reverse transaction you should call Update transaction (/api/transactions/:id) endpoint with the transaction status `REVERSED`. 4. Void/Cancellation Flow Transaction in the `PENDING_SETTLEMENT` status could be canceled. To do that you should call Update transaction (/api/transactions/:id) endpoint with the transaction status `VOIDED`. 5. Switcher flow Switchers are transactions that do not affect the customer balance. These are transactions that goes directly to the customers’ account and simply passes through Xendit. Therefore, it will not impact the customer balance and we will only charge Fee and VAT. To create switcher flow you should set `is_switcher_payment` field to `true`. ## Instant/non instant settlement Transactions can be performed instantly (instant settlement) or with delay (non instant settlement). Some of the transaction types are only instantly processed, some of them support both instant and non instant settlement and some of them have only non instant settlement. If settlement is instant than balance will be changed instantly. In opposite case the transaction status has to be set into PENDING_SETTLEMENT and settlement date should be provided. 1. Instant settlement Money In transaction types `DEPOSIT, BATCH_VA_PAYMENT, FOREX_DEPOSIT, IM_DEPOSIT, CARDLESS_CREDIT_PAYMENT, ISSUING_FUNDING_REFUND, BNPL_PARTNER_SETTLEMENT_CREDIT, PROMO_FEE_CASHBACK, PROMO_VAT_CASHBACK, REMITTANCE_VA_PAYMENT_CLAIM` 2. Both instant and non instant Money In transaction types `DIRECT_DEBIT_PAYMENT, DIRECT_BANK_TRANSFER, ACH_PAYMENT, RO_PAYMENT, EWALLET_PAYMENT, QR_CODE_PAYMENT, VA_PAYMENT, INVOICE, PAYLATER_PAYMENT` 3. Non Instant settlement Money In transaction types `CREDIT_CARD_PAYMENT` 4. Instant settlement Money Out transaction types `LOAN_REPAYMENT, FOREX_DEDUCTION, BILL_PAYMENT, ISSUING_FUNDING, BNPL_PARTNER_SETTLEMENT_DEBIT, FRAUD_DEDUCTION` 5. Both instant and non instant settlement supported Money Out transaction types `CHARGEBACK_DEDUCTION` 6. Non Instant settlement Money Out transaction types All other money out types are non instant settlement ## Reversible / non reversible transaction types Some transactions can be reversed. Here are the list of transaction types that could be reversed: `CASH_DISBURSEMENT, DISBURSEMENT, BATCH_DISBURSEMENT, REMITTANCE, REMITTANCE_PAYOUT, TAX_DISBURSEMENT, WITHDRAWAL, DEPOSIT, FOREX_DEPOSIT, FOREX_DEDUCTION, VA_PAYMENT, BATCH_VA_PAYMENT, IM_REMITTANCE_VA_PAYMENT, IM_ESCROW_VA_PAYMENT, IM_DEPOSIT, REMITTANCE_VA_PAYMENT, REMITTANCE_VA_PAYMENT_CLAIM, RO_PAYMENT, CARDLESS_CREDIT_PAYMENT, PAYLATER_PAYMENT, INVOICE, QR_CODE_PAYMENT, CREDIT_CARD_PAYMENT, EWALLET_PAYMENT, DIRECT_DEBIT_PAYMENT, DIRECT_BANK_TRANSFER, ACH_PAYMENT, CHARGEBACK_DEDUCTION, FRAUD_DEDUCTION, LOAN_REPAYMENT, ISSUING_FUNDING, ISSUING_FUNDING_REFUND, BNPL_PARTNER_SETTLEMENT_DEBIT, BNPL_PARTNER_SETTLEMENT_CREDIT, BILLING_DEPOSIT, BILLING_DIRECT_DEPOSIT, BILLING_VA_DIRECT_DEPOSIT, BILLING_WITHDRAWAL, BILL_PAYMENT, PROMO_FEE_CASHBACK, PROMO_VAT_CASHBACK` ## How to create transaction After you created or already have the `BUSINESS_CASH` ledger account ID (See Prerequisites section) and you know what transaction flows are going to be used you can create the new transaction using POST request to the Create a new transaction (/api/transactions) endpoint ## How to update transaction To update transaction you should do PATCH request to the Update transaction (/api/transactions/::id) endpoint # noqa: E501 - The version of the OpenAPI document: 3.4.2 + The version of the OpenAPI document: 3.4.3 """ import re # noqa: F401 diff --git a/xendit/configuration.py b/xendit/configuration.py index ad0983b3..40e09906 100644 --- a/xendit/configuration.py +++ b/xendit/configuration.py @@ -364,8 +364,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 2.87.2\n"\ - "SDK Package Version: 3.2.0".\ + "Version of the API: 1.44.1\n"\ + "SDK Package Version: 3.3.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/xendit/customer/__init__.py b/xendit/customer/__init__.py new file mode 100644 index 00000000..30b0cd1d --- /dev/null +++ b/xendit/customer/__init__.py @@ -0,0 +1 @@ +from xendit.customer.customer_api import CustomerApi diff --git a/xendit/customer/customer_api.py b/xendit/customer/customer_api.py new file mode 100644 index 00000000..bb0a37f6 --- /dev/null +++ b/xendit/customer/customer_api.py @@ -0,0 +1,617 @@ +""" + XENDIT SDK openapi spec + + XENDIT SDK openapi spec # noqa: E501 + + The version of the OpenAPI document: 1.0.0 +""" + +import re # noqa: F401 +import sys # noqa: F401 + +from xendit.api_client import ApiClient, Endpoint as _Endpoint +from xendit.model_utils import ( # noqa: F401 + check_allowed_values, + check_validations, + date, + datetime, + file_type, + none_type, + validate_and_convert_types +) +from typing import Optional, List # noqa: F401 + +from xendit.customer.model import * # noqa: F401,E501 + +class CustomerApi(object): + """NOTE: This class is auto generated by the OpenAPI Generator. + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + self.create_customer_endpoint = _Endpoint( + settings={ + 'response_type': (Customer,), + 'auth': [], + 'endpoint_path': '/customers', + 'operation_id': 'create_customer', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'idempotency_key', + 'for_user_id', + 'customer_request', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'idempotency_key': + (str,), + 'for_user_id': + (str,), + 'customer_request': + (CustomerRequest,), + }, + 'attribute_map': { + 'idempotency_key': 'IDEMPOTENCY-KEY', + 'for_user_id': 'for-user-id', + }, + 'location_map': { + 'idempotency_key': 'header', + 'for_user_id': 'header', + 'customer_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.get_customer_endpoint = _Endpoint( + settings={ + 'response_type': (Customer,), + 'auth': [], + 'endpoint_path': '/customers/{id}', + 'operation_id': 'get_customer', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + 'for_user_id', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + 'for_user_id': + (str,), + }, + 'attribute_map': { + 'id': 'id', + 'for_user_id': 'for-user-id', + }, + 'location_map': { + 'id': 'path', + 'for_user_id': 'header', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_customer_by_reference_id_endpoint = _Endpoint( + settings={ + 'response_type': (GetCustomerByReferenceID200Response,), + 'auth': [], + 'endpoint_path': '/customers', + 'operation_id': 'get_customer_by_reference_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'reference_id', + 'for_user_id', + ], + 'required': [ + 'reference_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + 'reference_id', + ] + }, + root_map={ + 'validations': { + ('reference_id',): { + 'max_length': 255, + }, + }, + 'allowed_values': { + }, + 'openapi_types': { + 'reference_id': + (str,), + 'for_user_id': + (str,), + }, + 'attribute_map': { + 'reference_id': 'reference_id', + 'for_user_id': 'for-user-id', + }, + 'location_map': { + 'reference_id': 'query', + 'for_user_id': 'header', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.update_customer_endpoint = _Endpoint( + settings={ + 'response_type': (Customer,), + 'auth': [], + 'endpoint_path': '/customers/{id}', + 'operation_id': 'update_customer', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + 'for_user_id', + 'patch_customer', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + 'for_user_id': + (str,), + 'patch_customer': + (PatchCustomer,), + }, + 'attribute_map': { + 'id': 'id', + 'for_user_id': 'for-user-id', + }, + 'location_map': { + 'id': 'path', + 'for_user_id': 'header', + 'patch_customer': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + + def create_customer( + self, + idempotency_key: Optional[str] = None, + for_user_id: Optional[str] = None, + customer_request: Optional[CustomerRequest] = None, + **kwargs + ) -> Customer: + """Create Customer # noqa: E501 + + Function to create a customer that you may use in your Invoice or Payment Requests. For detail explanations, see this link: https://developers.xendit.co/api-reference/#create-customer # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_customer(idempotency_key, for_user_id, customer_request, async_req=True) + >>> result = thread.get() + + + Keyword Args: + idempotency_key (str): A unique key to prevent processing duplicate requests.. [optional] + for_user_id (str): The sub-account user-id that you want to make this transaction for.. [optional] + customer_request (CustomerRequest): Request object for end customer object. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + Customer + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + if idempotency_key is not None: + kwargs['idempotency_key'] = idempotency_key + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + if customer_request is not None: + kwargs['customer_request'] = customer_request + return self.create_customer_endpoint.call_with_http_info(**kwargs) + + def get_customer( + self, + id: str, + for_user_id: Optional[str] = None, + **kwargs + ) -> Customer: + """Get Customer By ID # noqa: E501 + + Retrieves a single customer object For detail explanations, see this link: https://developers.xendit.co/api-reference/#get-customer # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_customer(id, for_user_id, async_req=True) + >>> result = thread.get() + + Args: + id (str): End customer resource id + + Keyword Args: + for_user_id (str): The sub-account user-id that you want to make this transaction for.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + Customer + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['id'] = id + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + return self.get_customer_endpoint.call_with_http_info(**kwargs) + + def get_customer_by_reference_id( + self, + reference_id: str, + for_user_id: Optional[str] = None, + **kwargs + ) -> GetCustomerByReferenceID200Response: + """GET customers by reference id # noqa: E501 + + Retrieves an array with a customer object that matches the provided reference_id - the identifier provided by you For detail explanations, see this link: https://developers.xendit.co/api-reference/#get-customer-by-reference-id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_customer_by_reference_id(reference_id, for_user_id, async_req=True) + >>> result = thread.get() + + Args: + reference_id (str): Merchant's reference of end customer + + Keyword Args: + for_user_id (str): The sub-account user-id that you want to make this transaction for.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + GetCustomerByReferenceID200Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['reference_id'] = reference_id + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + return self.get_customer_by_reference_id_endpoint.call_with_http_info(**kwargs) + + def update_customer( + self, + id: str, + for_user_id: Optional[str] = None, + patch_customer: Optional[PatchCustomer] = None, + **kwargs + ) -> Customer: + """Update End Customer Resource # noqa: E501 + + Function to update an existing customer. For a detailed explanation For detail explanations, see this link: https://developers.xendit.co/api-reference/#update-customer # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_customer(id, for_user_id, patch_customer, async_req=True) + >>> result = thread.get() + + Args: + id (str): End customer resource id + + Keyword Args: + for_user_id (str): The sub-account user-id that you want to make this transaction for.. [optional] + patch_customer (PatchCustomer): Update Request for end customer object. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + Customer + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['id'] = id + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + if patch_customer is not None: + kwargs['patch_customer'] = patch_customer + return self.update_customer_endpoint.call_with_http_info(**kwargs) + diff --git a/xendit/customer/model/__init__.py b/xendit/customer/model/__init__.py new file mode 100644 index 00000000..5857f453 --- /dev/null +++ b/xendit/customer/model/__init__.py @@ -0,0 +1,46 @@ +# flake8: noqa + +# import all models into this package +# if you have many models here with many references from one model to another this may +# raise a RecursionError +# to avoid this, import only the models that you directly need like: +# from xendit.customer.model.pet import Pet +# or import this package, but before doing it, use: +# import sys +# sys.setrecursionlimit(n) + +from xendit.customer.model.account_bank import AccountBank +from xendit.customer.model.account_card import AccountCard +from xendit.customer.model.account_ewallet import AccountEwallet +from xendit.customer.model.account_otc import AccountOTC +from xendit.customer.model.account_pay_later import AccountPayLater +from xendit.customer.model.account_qr_code import AccountQRCode +from xendit.customer.model.address import Address +from xendit.customer.model.address_request import AddressRequest +from xendit.customer.model.address_status import AddressStatus +from xendit.customer.model.business_detail import BusinessDetail +from xendit.customer.model.country_code import CountryCode +from xendit.customer.model.create_customer400_response import CreateCustomer400Response +from xendit.customer.model.create_customer400_response_all_of import CreateCustomer400ResponseAllOf +from xendit.customer.model.customer import Customer +from xendit.customer.model.customer_request import CustomerRequest +from xendit.customer.model.employment_detail import EmploymentDetail +from xendit.customer.model.end_customer_status import EndCustomerStatus +from xendit.customer.model.error import Error +from xendit.customer.model.get_customer_by_reference_id200_response import GetCustomerByReferenceID200Response +from xendit.customer.model.get_customer_by_reference_id400_response import GetCustomerByReferenceID400Response +from xendit.customer.model.get_customer_by_reference_id400_response_all_of import GetCustomerByReferenceID400ResponseAllOf +from xendit.customer.model.identity_account_request import IdentityAccountRequest +from xendit.customer.model.identity_account_request_properties import IdentityAccountRequestProperties +from xendit.customer.model.identity_account_response import IdentityAccountResponse +from xendit.customer.model.identity_account_response_properties import IdentityAccountResponseProperties +from xendit.customer.model.identity_account_type import IdentityAccountType +from xendit.customer.model.individual_detail import IndividualDetail +from xendit.customer.model.kyc_document_request import KYCDocumentRequest +from xendit.customer.model.kyc_document_response import KYCDocumentResponse +from xendit.customer.model.kyc_document_sub_type import KYCDocumentSubType +from xendit.customer.model.kyc_document_type import KYCDocumentType +from xendit.customer.model.patch_customer import PatchCustomer +from xendit.customer.model.response_data_not_found import ResponseDataNotFound +from xendit.customer.model.update_customer400_response import UpdateCustomer400Response +from xendit.customer.model.update_customer400_response_all_of import UpdateCustomer400ResponseAllOf diff --git a/xendit/customer/model/account_bank.py b/xendit/customer/model/account_bank.py new file mode 100644 index 00000000..9123c718 --- /dev/null +++ b/xendit/customer/model/account_bank.py @@ -0,0 +1,306 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class AccountBank(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'account_number': (str, none_type), # noqa: E501 + 'account_holder_name': (str, none_type, none_type), # noqa: E501 + 'swift_code': (str, none_type, none_type), # noqa: E501 + 'account_type': (str, none_type, none_type), # noqa: E501 + 'account_details': (str, none_type, none_type), # noqa: E501 + 'currency': (bool, date, datetime, dict, float, int, list, str, none_type, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'account_number': 'account_number', # noqa: E501 + 'account_holder_name': 'account_holder_name', # noqa: E501 + 'swift_code': 'swift_code', # noqa: E501 + 'account_type': 'account_type', # noqa: E501 + 'account_details': 'account_details', # noqa: E501 + 'currency': 'currency', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AccountBank - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + account_number (str): Unique account identifier as per the bank records.. [optional] # noqa: E501 + account_holder_name (str, none_type): Name of account holder as per the bank records. Needs to match the registered account name exactly. .. [optional] # noqa: E501 + swift_code (str, none_type): The SWIFT code for international payments. [optional] # noqa: E501 + account_type (str, none_type): Free text account type, e.g., Savings, Transaction, Virtual Account.. [optional] # noqa: E501 + account_details (str, none_type): Potentially masked account detail, for display purposes only.. [optional] # noqa: E501 + currency (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + account_number: str | None = None, + account_holder_name: str | None = None, + swift_code: str | None = None, + account_type: str | None = None, + account_details: str | None = None, + currency: object | None = None, + *args, **kwargs + ): # noqa: E501 + """AccountBank - a model defined in OpenAPI + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + account_number (str): Unique account identifier as per the bank records.. [optional] # noqa: E501 + account_holder_name (str, none_type): Name of account holder as per the bank records. Needs to match the registered account name exactly. .. [optional] # noqa: E501 + swift_code (str, none_type): The SWIFT code for international payments. [optional] # noqa: E501 + account_type (str, none_type): Free text account type, e.g., Savings, Transaction, Virtual Account.. [optional] # noqa: E501 + account_details (str, none_type): Potentially masked account detail, for display purposes only.. [optional] # noqa: E501 + currency (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + if account_number is not None: + self.account_number = account_number + if account_holder_name is not None: + self.account_holder_name = account_holder_name + if swift_code is not None: + self.swift_code = swift_code + if account_type is not None: + self.account_type = account_type + if account_details is not None: + self.account_details = account_details + if currency is not None: + self.currency = currency + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/payment_method/model/channel_property_all_of.py b/xendit/customer/model/account_card.py similarity index 89% rename from xendit/payment_method/model/channel_property_all_of.py rename to xendit/customer/model/account_card.py index 1e87fa2f..a8863117 100644 --- a/xendit/payment_method/model/channel_property_all_of.py +++ b/xendit/customer/model/account_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.0.0 """ @@ -25,11 +25,10 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass -class ChannelPropertyAllOf(ModelNormal): +class AccountCard(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -80,9 +79,7 @@ def openapi_types(): and the value is attribute type. """ return { - 'name': (str, none_type), # noqa: E501 - 'type': (str, none_type), # noqa: E501 - 'is_required': (bool, none_type), # noqa: E501 + 'token_id': (str, none_type), # noqa: E501 } @cached_property @@ -91,9 +88,7 @@ def discriminator(): attribute_map = { - 'name': 'name', # noqa: E501 - 'type': 'type', # noqa: E501 - 'is_required': 'is_required', # noqa: E501 + 'token_id': 'token_id', # noqa: E501 } read_only_vars = { @@ -104,7 +99,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ChannelPropertyAllOf - a model defined in OpenAPI + """AccountCard - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -137,9 +132,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): The corresponding parameter name. [optional] # noqa: E501 - type (str): Data type of the parameter. [optional] # noqa: E501 - is_required (bool): Indicates whether or not the parameter is required. [optional] # noqa: E501 + token_id (str): The token id returned in tokenisation. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -194,12 +187,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, - name: str | None = None, - type: str | None = None, - is_required: bool | None = None, + token_id: str | None = None, *args, **kwargs ): # noqa: E501 - """ChannelPropertyAllOf - a model defined in OpenAPI + """AccountCard - a model defined in OpenAPI Keyword Args: @@ -233,9 +224,7 @@ def __init__(self, Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): The corresponding parameter name. [optional] # noqa: E501 - type (str): Data type of the parameter. [optional] # noqa: E501 - is_required (bool): Indicates whether or not the parameter is required. [optional] # noqa: E501 + token_id (str): The token id returned in tokenisation. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -267,12 +256,8 @@ def __init__(self, self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - if name is not None: - self.name = name - if type is not None: - self.type = type - if is_required is not None: - self.is_required = is_required + if token_id is not None: + self.token_id = token_id for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/xendit/customer/model/account_ewallet.py b/xendit/customer/model/account_ewallet.py new file mode 100644 index 00000000..53f68115 --- /dev/null +++ b/xendit/customer/model/account_ewallet.py @@ -0,0 +1,285 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class AccountEwallet(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'account_number': (str, none_type), # noqa: E501 + 'account_holder_name': (str, none_type, none_type), # noqa: E501 + 'currency': (bool, date, datetime, dict, float, int, list, str, none_type, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'account_number': 'account_number', # noqa: E501 + 'account_holder_name': 'account_holder_name', # noqa: E501 + 'currency': 'currency', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AccountEwallet - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + account_number (str): Unique account identifier as per the bank records.. [optional] # noqa: E501 + account_holder_name (str, none_type): Name of account holder as per the bank records. Needs to match the registered account name exactly.. [optional] # noqa: E501 + currency (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + account_number: str | None = None, + account_holder_name: str | None = None, + currency: object | None = None, + *args, **kwargs + ): # noqa: E501 + """AccountEwallet - a model defined in OpenAPI + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + account_number (str): Unique account identifier as per the bank records.. [optional] # noqa: E501 + account_holder_name (str, none_type): Name of account holder as per the bank records. Needs to match the registered account name exactly.. [optional] # noqa: E501 + currency (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + if account_number is not None: + self.account_number = account_number + if account_holder_name is not None: + self.account_holder_name = account_holder_name + if currency is not None: + self.currency = currency + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/payment_method/model/channel_amount_limits_all_of.py b/xendit/customer/model/account_otc.py similarity index 87% rename from xendit/payment_method/model/channel_amount_limits_all_of.py rename to xendit/customer/model/account_otc.py index fa9ec284..812bd908 100644 --- a/xendit/payment_method/model/channel_amount_limits_all_of.py +++ b/xendit/customer/model/account_otc.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.0.0 """ @@ -25,11 +25,10 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass -class ChannelAmountLimitsAllOf(ModelNormal): +class AccountOTC(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -80,9 +79,8 @@ def openapi_types(): and the value is attribute type. """ return { - 'currency': (str, none_type), # noqa: E501 - 'min_limit': (float, none_type), # noqa: E501 - 'max_limit': (float, none_type), # noqa: E501 + 'payment_code': (str, none_type), # noqa: E501 + 'expires_at': (str, none_type, none_type), # noqa: E501 } @cached_property @@ -91,9 +89,8 @@ def discriminator(): attribute_map = { - 'currency': 'currency', # noqa: E501 - 'min_limit': 'min_limit', # noqa: E501 - 'max_limit': 'max_limit', # noqa: E501 + 'payment_code': 'payment_code', # noqa: E501 + 'expires_at': 'expires_at', # noqa: E501 } read_only_vars = { @@ -104,7 +101,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ChannelAmountLimitsAllOf - a model defined in OpenAPI + """AccountOTC - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -137,9 +134,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - currency (str): Currency supported by the payment channel. [optional] # noqa: E501 - min_limit (float): The minimum allowed transaction amount for the payment channel. [optional] # noqa: E501 - max_limit (float): The minimum allowed transaction amount for the payment channel. [optional] # noqa: E501 + payment_code (str): Complete fixed payment code (including prefix). [optional] # noqa: E501 + expires_at (str, none_type): YYYY-MM-DD string with expiry date for the payment code. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -194,12 +190,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, - currency: str | None = None, - min_limit: float | None = None, - max_limit: float | None = None, + payment_code: str | None = None, + expires_at: str | None = None, *args, **kwargs ): # noqa: E501 - """ChannelAmountLimitsAllOf - a model defined in OpenAPI + """AccountOTC - a model defined in OpenAPI Keyword Args: @@ -233,9 +228,8 @@ def __init__(self, Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - currency (str): Currency supported by the payment channel. [optional] # noqa: E501 - min_limit (float): The minimum allowed transaction amount for the payment channel. [optional] # noqa: E501 - max_limit (float): The minimum allowed transaction amount for the payment channel. [optional] # noqa: E501 + payment_code (str): Complete fixed payment code (including prefix). [optional] # noqa: E501 + expires_at (str, none_type): YYYY-MM-DD string with expiry date for the payment code. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -267,12 +261,10 @@ def __init__(self, self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - if currency is not None: - self.currency = currency - if min_limit is not None: - self.min_limit = min_limit - if max_limit is not None: - self.max_limit = max_limit + if payment_code is not None: + self.payment_code = payment_code + if expires_at is not None: + self.expires_at = expires_at for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/xendit/customer/model/account_pay_later.py b/xendit/customer/model/account_pay_later.py new file mode 100644 index 00000000..d9c05b22 --- /dev/null +++ b/xendit/customer/model/account_pay_later.py @@ -0,0 +1,285 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class AccountPayLater(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'account_id': (str, none_type), # noqa: E501 + 'account_holder_name': (str, none_type, none_type), # noqa: E501 + 'currency': (bool, date, datetime, dict, float, int, list, str, none_type, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'account_id': 'account_id', # noqa: E501 + 'account_holder_name': 'account_holder_name', # noqa: E501 + 'currency': 'currency', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AccountPayLater - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + account_id (str): Alphanumeric string identifying this account. Usually an email address or phone number.. [optional] # noqa: E501 + account_holder_name (str, none_type): Name of account holder as per the cardless credit account.. [optional] # noqa: E501 + currency (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + account_id: str | None = None, + account_holder_name: str | None = None, + currency: object | None = None, + *args, **kwargs + ): # noqa: E501 + """AccountPayLater - a model defined in OpenAPI + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + account_id (str): Alphanumeric string identifying this account. Usually an email address or phone number.. [optional] # noqa: E501 + account_holder_name (str, none_type): Name of account holder as per the cardless credit account.. [optional] # noqa: E501 + currency (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + if account_id is not None: + self.account_id = account_id + if account_holder_name is not None: + self.account_holder_name = account_holder_name + if currency is not None: + self.currency = currency + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/customer/model/account_qr_code.py b/xendit/customer/model/account_qr_code.py new file mode 100644 index 00000000..204e2ae8 --- /dev/null +++ b/xendit/customer/model/account_qr_code.py @@ -0,0 +1,271 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class AccountQRCode(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'qr_string': (str, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'qr_string': 'qr_string', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AccountQRCode - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + qr_string (str): String representation of the QR Code image. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + qr_string: str | None = None, + *args, **kwargs + ): # noqa: E501 + """AccountQRCode - a model defined in OpenAPI + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + qr_string (str): String representation of the QR Code image. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + if qr_string is not None: + self.qr_string = qr_string + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/customer/model/address.py b/xendit/customer/model/address.py new file mode 100644 index 00000000..9c9da1be --- /dev/null +++ b/xendit/customer/model/address.py @@ -0,0 +1,366 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + +from xendit.customer.model.address_status import AddressStatus +globals()['AddressStatus'] = AddressStatus + +def lazy_import(): + pass + +class Address(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('category',): { + 'max_length': 255, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'category': (str, none_type,), # noqa: E501 + 'country': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'province_state': (str, none_type,), # noqa: E501 + 'city': (str, none_type,), # noqa: E501 + 'postal_code': (str, none_type,), # noqa: E501 + 'street_line1': (str, none_type,), # noqa: E501 + 'street_line2': (str, none_type,), # noqa: E501 + 'is_primary': (bool, none_type,), # noqa: E501 + 'id': (str, none_type), # noqa: E501 + 'status': (AddressStatus, none_type), # noqa: E501 + 'meta': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type, none_type), # noqa: E501 + 'created': (datetime, none_type), # noqa: E501 + 'updated': (datetime, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'category': 'category', # noqa: E501 + 'country': 'country', # noqa: E501 + 'province_state': 'province_state', # noqa: E501 + 'city': 'city', # noqa: E501 + 'postal_code': 'postal_code', # noqa: E501 + 'street_line1': 'street_line1', # noqa: E501 + 'street_line2': 'street_line2', # noqa: E501 + 'is_primary': 'is_primary', # noqa: E501 + 'id': 'id', # noqa: E501 + 'status': 'status', # noqa: E501 + 'meta': 'meta', # noqa: E501 + 'created': 'created', # noqa: E501 + 'updated': 'updated', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, category, country, province_state, city, postal_code, street_line1, street_line2, is_primary, *args, **kwargs): # noqa: E501 + """Address - a model defined in OpenAPI + + Args: + category (str, none_type): + country (bool, date, datetime, dict, float, int, list, str, none_type): + province_state (str, none_type): + city (str, none_type): + postal_code (str, none_type): + street_line1 (str, none_type): + street_line2 (str, none_type): + is_primary (bool, none_type): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): [optional] # noqa: E501 + status (AddressStatus): [optional] # noqa: E501 + meta ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 + created (datetime): [optional] # noqa: E501 + updated (datetime): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.category = category + self.country = country + self.province_state = province_state + self.city = city + self.postal_code = postal_code + self.street_line1 = street_line1 + self.street_line2 = street_line2 + self.is_primary = is_primary + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + category: str | None, + country: object, + province_state: str | None, + city: str | None, + postal_code: str | None, + street_line1: str | None, + street_line2: str | None, + is_primary: bool | None, + id: str | None = None, + status: AddressStatus | None = None, + meta: dict | None = None, + created: datetime | None = None, + updated: datetime | None = None, + *args, **kwargs + ): # noqa: E501 + """Address - a model defined in OpenAPI + + Args: + category (str, none_type): + country (bool, date, datetime, dict, float, int, list, str, none_type): + province_state (str, none_type): + city (str, none_type): + postal_code (str, none_type): + street_line1 (str, none_type): + street_line2 (str, none_type): + is_primary (bool, none_type): + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): [optional] # noqa: E501 + status (AddressStatus): [optional] # noqa: E501 + meta ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 + created (datetime): [optional] # noqa: E501 + updated (datetime): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.category = category + self.country = country + self.province_state = province_state + self.city = city + self.postal_code = postal_code + self.street_line1 = street_line1 + self.street_line2 = street_line2 + self.is_primary = is_primary + if id is not None: + self.id = id + if status is not None: + self.status = status + if meta is not None: + self.meta = meta + if created is not None: + self.created = created + if updated is not None: + self.updated = updated + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/customer/model/address_request.py b/xendit/customer/model/address_request.py new file mode 100644 index 00000000..a192e8df --- /dev/null +++ b/xendit/customer/model/address_request.py @@ -0,0 +1,343 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + +from xendit.customer.model.address_status import AddressStatus +from xendit.customer.model.country_code import CountryCode +globals()['AddressStatus'] = AddressStatus +globals()['CountryCode'] = CountryCode + +def lazy_import(): + pass + +class AddressRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('category',): { + 'max_length': 255, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'category': (str, none_type), # noqa: E501 + 'country_code': (CountryCode, none_type), # noqa: E501 + 'province_state': (str, none_type), # noqa: E501 + 'city': (str, none_type), # noqa: E501 + 'suburb': (str, none_type), # noqa: E501 + 'postal_code': (str, none_type), # noqa: E501 + 'line_1': (str, none_type), # noqa: E501 + 'line_2': (str, none_type), # noqa: E501 + 'status': (AddressStatus, none_type), # noqa: E501 + 'is_primary': (bool, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'category': 'category', # noqa: E501 + 'country_code': 'country_code', # noqa: E501 + 'province_state': 'province_state', # noqa: E501 + 'city': 'city', # noqa: E501 + 'suburb': 'suburb', # noqa: E501 + 'postal_code': 'postal_code', # noqa: E501 + 'line_1': 'line_1', # noqa: E501 + 'line_2': 'line_2', # noqa: E501 + 'status': 'status', # noqa: E501 + 'is_primary': 'is_primary', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AddressRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + category (str): Home, work or provincial. [optional] # noqa: E501 + country_code (CountryCode): [optional] # noqa: E501 + province_state (str): [optional] # noqa: E501 + city (str): [optional] # noqa: E501 + suburb (str): [optional] # noqa: E501 + postal_code (str): [optional] # noqa: E501 + line_1 (str): [optional] # noqa: E501 + line_2 (str): [optional] # noqa: E501 + status (AddressStatus): [optional] # noqa: E501 + is_primary (bool): [optional] if omitted the server will use the default value of False # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + category: str | None = None, + country_code: str | None = None, + province_state: str | None = None, + city: str | None = None, + suburb: str | None = None, + postal_code: str | None = None, + line_1: str | None = None, + line_2: str | None = None, + status: AddressStatus | None = None, + is_primary: bool | None = False, + *args, **kwargs + ): # noqa: E501 + """AddressRequest - a model defined in OpenAPI + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + category (str): Home, work or provincial. [optional] # noqa: E501 + country_code (CountryCode): [optional] # noqa: E501 + province_state (str): [optional] # noqa: E501 + city (str): [optional] # noqa: E501 + suburb (str): [optional] # noqa: E501 + postal_code (str): [optional] # noqa: E501 + line_1 (str): [optional] # noqa: E501 + line_2 (str): [optional] # noqa: E501 + status (AddressStatus): [optional] # noqa: E501 + is_primary (bool): [optional] if omitted the server will use the default value of False # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + if category is not None: + self.category = category + if country_code is not None: + self.country_code = country_code + if province_state is not None: + self.province_state = province_state + if city is not None: + self.city = city + if suburb is not None: + self.suburb = suburb + if postal_code is not None: + self.postal_code = postal_code + if line_1 is not None: + self.line_1 = line_1 + if line_2 is not None: + self.line_2 = line_2 + if status is not None: + self.status = status + if is_primary is not None: + self.is_primary = is_primary + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/customer/model/address_status.py b/xendit/customer/model/address_status.py new file mode 100644 index 00000000..332ef218 --- /dev/null +++ b/xendit/customer/model/address_status.py @@ -0,0 +1,293 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class AddressStatus(ModelSimple): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('value',): { + 'None': None, + 'ACTIVE': "ACTIVE", + 'DELETED': "DELETED", + }, + } + + validations = { + } + + additional_properties_type = None + + _nullable = True + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'value': (str,), + } + + @cached_property + def discriminator(): + return None + + + attribute_map = {} + + read_only_vars = set() + + _composed_schemas = None + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): + """AddressStatus - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str):, must be one of ["ACTIVE", "DELETED", ] # noqa: E501 + + Keyword Args: + value (str):, must be one of ["ACTIVE", "DELETED", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): + """AddressStatus - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str):, must be one of ["ACTIVE", "DELETED", ] # noqa: E501 + + Keyword Args: + value (str):, must be one of ["ACTIVE", "DELETED", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + return self diff --git a/xendit/customer/model/business_detail.py b/xendit/customer/model/business_detail.py new file mode 100644 index 00000000..b911598b --- /dev/null +++ b/xendit/customer/model/business_detail.py @@ -0,0 +1,322 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + +from xendit.customer.model.country_code import CountryCode +globals()['CountryCode'] = CountryCode + +def lazy_import(): + pass + +class BusinessDetail(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('business_type',): { + 'None': None, + 'CORPORATION': "CORPORATION", + 'SOLE_PROPRIETOR': "SOLE_PROPRIETOR", + 'PARTNERSHIP': "PARTNERSHIP", + 'COOPERATIVE': "COOPERATIVE", + 'TRUST': "TRUST", + 'NON_PROFIT': "NON_PROFIT", + 'GOVERNMENT': "GOVERNMENT", + }, + } + + validations = { + ('business_name',): { + 'max_length': 255, + }, + ('date_of_registration',): { + 'max_length': 10, + }, + ('nature_of_business',): { + 'max_length': 255, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = True + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'business_name': (str, none_type), # noqa: E501 + 'business_type': (str, none_type, none_type), # noqa: E501 + 'date_of_registration': (str, none_type, none_type), # noqa: E501 + 'nature_of_business': (str, none_type, none_type), # noqa: E501 + 'business_domicile': (CountryCode, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'business_name': 'business_name', # noqa: E501 + 'business_type': 'business_type', # noqa: E501 + 'date_of_registration': 'date_of_registration', # noqa: E501 + 'nature_of_business': 'nature_of_business', # noqa: E501 + 'business_domicile': 'business_domicile', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """BusinessDetail - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + business_name (str): [optional] # noqa: E501 + business_type (str, none_type): [optional] # noqa: E501 + date_of_registration (str, none_type): [optional] # noqa: E501 + nature_of_business (str, none_type): [optional] # noqa: E501 + business_domicile (CountryCode): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + business_name: str | None = None, + business_type: str | None = None, + date_of_registration: str | None = None, + nature_of_business: str | None = None, + business_domicile: str | None = None, + *args, **kwargs + ): # noqa: E501 + """BusinessDetail - a model defined in OpenAPI + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + business_name (str): [optional] # noqa: E501 + business_type (str, none_type): [optional] # noqa: E501 + date_of_registration (str, none_type): [optional] # noqa: E501 + nature_of_business (str, none_type): [optional] # noqa: E501 + business_domicile (CountryCode): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + if business_name is not None: + self.business_name = business_name + if business_type is not None: + self.business_type = business_type + if date_of_registration is not None: + self.date_of_registration = date_of_registration + if nature_of_business is not None: + self.nature_of_business = nature_of_business + if business_domicile is not None: + self.business_domicile = business_domicile + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/customer/model/country_code.py b/xendit/customer/model/country_code.py new file mode 100644 index 00000000..79f63a12 --- /dev/null +++ b/xendit/customer/model/country_code.py @@ -0,0 +1,291 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class CountryCode(ModelSimple): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('value',): { + 'max_length': 2, + }, + } + + additional_properties_type = None + + _nullable = True + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'value': (str,), + } + + @cached_property + def discriminator(): + return None + + + attribute_map = {} + + read_only_vars = set() + + _composed_schemas = None + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): + """CountryCode - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str): ISO3166-2 country code. # noqa: E501 + + Keyword Args: + value (str): ISO3166-2 country code. # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): + """CountryCode - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str): ISO3166-2 country code. # noqa: E501 + + Keyword Args: + value (str): ISO3166-2 country code. # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + return self diff --git a/xendit/payment_method/model/channel_amount_limits.py b/xendit/customer/model/create_customer400_response.py similarity index 89% rename from xendit/payment_method/model/channel_amount_limits.py rename to xendit/customer/model/create_customer400_response.py index 3a07cf83..1fc2ce7f 100644 --- a/xendit/payment_method/model/channel_amount_limits.py +++ b/xendit/customer/model/create_customer400_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.0.0 """ @@ -24,14 +24,15 @@ ) from xendit.exceptions import ApiAttributeError -from xendit.payment_method.model.channel_amount_limits_all_of import ChannelAmountLimitsAllOf -globals()['ChannelAmountLimitsAllOf'] = ChannelAmountLimitsAllOf - +from xendit.customer.model.create_customer400_response_all_of import CreateCustomer400ResponseAllOf +from xendit.customer.model.error import Error +globals()['CreateCustomer400ResponseAllOf'] = CreateCustomer400ResponseAllOf +globals()['Error'] = Error def lazy_import(): pass -class ChannelAmountLimits(ModelComposed): +class CreateCustomer400Response(ModelComposed): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -56,6 +57,10 @@ class ChannelAmountLimits(ModelComposed): """ allowed_values = { + ('error_code',): { + 'DUPLICATE_END_CUSTOMER_ERROR': "DUPLICATE_END_CUSTOMER_ERROR", + 'API_VALIDATION_ERROR': "API_VALIDATION_ERROR", + }, } validations = { @@ -84,9 +89,9 @@ def openapi_types(): """ lazy_import() return { - 'currency': (str, none_type), # noqa: E501 - 'min_limit': (float, none_type), # noqa: E501 - 'max_limit': (float, none_type), # noqa: E501 + 'error_code': (str,), # noqa: E501 + 'message': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'errors': ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}], none_type), # noqa: E501 } @cached_property @@ -95,9 +100,9 @@ def discriminator(): attribute_map = { - 'currency': 'currency', # noqa: E501 - 'min_limit': 'min_limit', # noqa: E501 - 'max_limit': 'max_limit', # noqa: E501 + 'error_code': 'error_code', # noqa: E501 + 'message': 'message', # noqa: E501 + 'errors': 'errors', # noqa: E501 } read_only_vars = { @@ -106,9 +111,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ChannelAmountLimits - a model defined in OpenAPI + """CreateCustomer400Response - a model defined in OpenAPI Keyword Args: + error_code (str): + message (bool, date, datetime, dict, float, int, list, str, none_type): _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -139,9 +146,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - currency (str): Currency supported by the payment channel. [optional] # noqa: E501 - min_limit (float): The minimum allowed transaction amount for the payment channel. [optional] # noqa: E501 - max_limit (float): The minimum allowed transaction amount for the payment channel. [optional] # noqa: E501 + errors ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -214,9 +219,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ChannelAmountLimits - a model defined in OpenAPI + """CreateCustomer400Response - a model defined in OpenAPI Keyword Args: + error_code (str): + message (bool, date, datetime, dict, float, int, list, str, none_type): _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -247,9 +254,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - currency (str): Currency supported by the payment channel. [optional] # noqa: E501 - min_limit (float): The minimum allowed transaction amount for the payment channel. [optional] # noqa: E501 - max_limit (float): The minimum allowed transaction amount for the payment channel. [optional] # noqa: E501 + errors ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -321,7 +326,8 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - ChannelAmountLimitsAllOf, + CreateCustomer400ResponseAllOf, + Error, ], 'oneOf': [ ], diff --git a/xendit/payment_method/model/payment_channel_list_links_inner_all_of.py b/xendit/customer/model/create_customer400_response_all_of.py similarity index 86% rename from xendit/payment_method/model/payment_channel_list_links_inner_all_of.py rename to xendit/customer/model/create_customer400_response_all_of.py index 4eab2284..72328433 100644 --- a/xendit/payment_method/model/payment_channel_list_links_inner_all_of.py +++ b/xendit/customer/model/create_customer400_response_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.0.0 """ @@ -25,11 +25,10 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass -class PaymentChannelListLinksInnerAllOf(ModelNormal): +class CreateCustomer400ResponseAllOf(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -54,11 +53,9 @@ class PaymentChannelListLinksInnerAllOf(ModelNormal): """ allowed_values = { - ('rel',): { - 'FIRST': "first", - 'LAST': "last", - 'NEXT': "next", - 'PREV': "prev", + ('error_code',): { + 'DUPLICATE_END_CUSTOMER_ERROR': "DUPLICATE_END_CUSTOMER_ERROR", + 'API_VALIDATION_ERROR': "API_VALIDATION_ERROR", }, } @@ -86,9 +83,8 @@ def openapi_types(): and the value is attribute type. """ return { - 'href': (str, none_type), # noqa: E501 - 'rel': (str, none_type), # noqa: E501 - 'method': (str, none_type), # noqa: E501 + 'error_code': (str, none_type), # noqa: E501 + 'message': (bool, date, datetime, dict, float, int, list, str, none_type, none_type), # noqa: E501 } @cached_property @@ -97,9 +93,8 @@ def discriminator(): attribute_map = { - 'href': 'href', # noqa: E501 - 'rel': 'rel', # noqa: E501 - 'method': 'method', # noqa: E501 + 'error_code': 'error_code', # noqa: E501 + 'message': 'message', # noqa: E501 } read_only_vars = { @@ -110,7 +105,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PaymentChannelListLinksInnerAllOf - a model defined in OpenAPI + """CreateCustomer400ResponseAllOf - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,9 +138,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - href (str): Target URI that should contain a target to Internationalized Resource Identifiers (IRI). [optional] # noqa: E501 - rel (str): The link relation type described how the current context (source) is related to target resource. [optional] # noqa: E501 - method (str): The HTTP method to be used to call `href`. [optional] # noqa: E501 + error_code (str): [optional] # noqa: E501 + message (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -200,12 +194,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, - href: str | None = None, - rel: str | None = None, - method: str | None = None, + error_code: str | None = None, + message: object | None = None, *args, **kwargs ): # noqa: E501 - """PaymentChannelListLinksInnerAllOf - a model defined in OpenAPI + """CreateCustomer400ResponseAllOf - a model defined in OpenAPI Keyword Args: @@ -239,9 +232,8 @@ def __init__(self, Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - href (str): Target URI that should contain a target to Internationalized Resource Identifiers (IRI). [optional] # noqa: E501 - rel (str): The link relation type described how the current context (source) is related to target resource. [optional] # noqa: E501 - method (str): The HTTP method to be used to call `href`. [optional] # noqa: E501 + error_code (str): [optional] # noqa: E501 + message (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -273,12 +265,10 @@ def __init__(self, self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - if href is not None: - self.href = href - if rel is not None: - self.rel = rel - if method is not None: - self.method = method + if error_code is not None: + self.error_code = error_code + if message is not None: + self.message = message for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/xendit/customer/model/customer.py b/xendit/customer/model/customer.py new file mode 100644 index 00000000..15b04f5d --- /dev/null +++ b/xendit/customer/model/customer.py @@ -0,0 +1,405 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + +from xendit.customer.model.address import Address +from xendit.customer.model.business_detail import BusinessDetail +from xendit.customer.model.end_customer_status import EndCustomerStatus +from xendit.customer.model.identity_account_response import IdentityAccountResponse +from xendit.customer.model.individual_detail import IndividualDetail +from xendit.customer.model.kyc_document_response import KYCDocumentResponse +globals()['Address'] = Address +globals()['BusinessDetail'] = BusinessDetail +globals()['EndCustomerStatus'] = EndCustomerStatus +globals()['IdentityAccountResponse'] = IdentityAccountResponse +globals()['IndividualDetail'] = IndividualDetail +globals()['KYCDocumentResponse'] = KYCDocumentResponse + +def lazy_import(): + pass + +class Customer(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'INDIVIDUAL': "INDIVIDUAL", + 'BUSINESS': "BUSINESS", + }, + } + + validations = { + ('reference_id',): { + 'max_length': 255, + }, + ('description',): { + 'max_length': 1000, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'reference_id': (str,), # noqa: E501 + 'individual_detail': (IndividualDetail,), # noqa: E501 + 'business_detail': (BusinessDetail,), # noqa: E501 + 'description': (str, none_type,), # noqa: E501 + 'email': (str, none_type,), # noqa: E501 + 'mobile_number': (str, none_type,), # noqa: E501 + 'phone_number': (str, none_type,), # noqa: E501 + 'addresses': ([Address], none_type,), # noqa: E501 + 'identity_accounts': ([IdentityAccountResponse], none_type,), # noqa: E501 + 'kyc_documents': ([KYCDocumentResponse], none_type,), # noqa: E501 + 'metadata': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'created': (datetime,), # noqa: E501 + 'updated': (datetime,), # noqa: E501 + 'status': (EndCustomerStatus, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'reference_id': 'reference_id', # noqa: E501 + 'individual_detail': 'individual_detail', # noqa: E501 + 'business_detail': 'business_detail', # noqa: E501 + 'description': 'description', # noqa: E501 + 'email': 'email', # noqa: E501 + 'mobile_number': 'mobile_number', # noqa: E501 + 'phone_number': 'phone_number', # noqa: E501 + 'addresses': 'addresses', # noqa: E501 + 'identity_accounts': 'identity_accounts', # noqa: E501 + 'kyc_documents': 'kyc_documents', # noqa: E501 + 'metadata': 'metadata', # noqa: E501 + 'id': 'id', # noqa: E501 + 'created': 'created', # noqa: E501 + 'updated': 'updated', # noqa: E501 + 'status': 'status', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, reference_id, individual_detail, business_detail, description, email, mobile_number, phone_number, addresses, identity_accounts, kyc_documents, metadata, id, created, updated, *args, **kwargs): # noqa: E501 + """Customer - a model defined in OpenAPI + + Args: + reference_id (str): Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. + individual_detail (IndividualDetail): + business_detail (BusinessDetail): + description (str, none_type): + email (str, none_type): + mobile_number (str, none_type): + phone_number (str, none_type): + addresses ([Address], none_type): + identity_accounts ([IdentityAccountResponse], none_type): + kyc_documents ([KYCDocumentResponse], none_type): + metadata ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): + id (str): + created (datetime): + updated (datetime): + + Keyword Args: + type (str): defaults to "INDIVIDUAL", must be one of ["INDIVIDUAL", "BUSINESS", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + status (EndCustomerStatus): [optional] # noqa: E501 + """ + + type = kwargs.get('type', "INDIVIDUAL") + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.reference_id = reference_id + self.individual_detail = individual_detail + self.business_detail = business_detail + self.description = description + self.email = email + self.mobile_number = mobile_number + self.phone_number = phone_number + self.addresses = addresses + self.identity_accounts = identity_accounts + self.kyc_documents = kyc_documents + self.metadata = metadata + self.id = id + self.created = created + self.updated = updated + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + reference_id: str, + individual_detail: IndividualDetail | None, + business_detail: BusinessDetail | None, + description: str | None, + email: str | None, + mobile_number: str | None, + phone_number: str | None, + addresses: list | None, + identity_accounts: list | None, + kyc_documents: list | None, + metadata: dict | None, + id: str, + created: datetime, + updated: datetime, + status: EndCustomerStatus | None = None, + type: str = "INDIVIDUAL", + *args, **kwargs + ): # noqa: E501 + """Customer - a model defined in OpenAPI + + Args: + reference_id (str): Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. + individual_detail (IndividualDetail): + business_detail (BusinessDetail): + description (str, none_type): + email (str, none_type): + mobile_number (str, none_type): + phone_number (str, none_type): + addresses ([Address], none_type): + identity_accounts ([IdentityAccountResponse], none_type): + kyc_documents ([KYCDocumentResponse], none_type): + metadata ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): + id (str): + created (datetime): + updated (datetime): + + + Keyword Args: + type (str): defaults to "INDIVIDUAL", must be one of ["INDIVIDUAL", "BUSINESS", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + status (EndCustomerStatus): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.reference_id = reference_id + self.individual_detail = individual_detail + self.business_detail = business_detail + self.description = description + self.email = email + self.mobile_number = mobile_number + self.phone_number = phone_number + self.addresses = addresses + self.identity_accounts = identity_accounts + self.kyc_documents = kyc_documents + self.metadata = metadata + self.id = id + self.created = created + self.updated = updated + if status is not None: + self.status = status + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/customer/model/customer_request.py b/xendit/customer/model/customer_request.py new file mode 100644 index 00000000..957e6ac0 --- /dev/null +++ b/xendit/customer/model/customer_request.py @@ -0,0 +1,381 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + +from xendit.customer.model.address_request import AddressRequest +from xendit.customer.model.business_detail import BusinessDetail +from xendit.customer.model.identity_account_request import IdentityAccountRequest +from xendit.customer.model.individual_detail import IndividualDetail +from xendit.customer.model.kyc_document_request import KYCDocumentRequest +globals()['AddressRequest'] = AddressRequest +globals()['BusinessDetail'] = BusinessDetail +globals()['IdentityAccountRequest'] = IdentityAccountRequest +globals()['IndividualDetail'] = IndividualDetail +globals()['KYCDocumentRequest'] = KYCDocumentRequest + +def lazy_import(): + pass + +class CustomerRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'INDIVIDUAL': "INDIVIDUAL", + 'BUSINESS': "BUSINESS", + }, + } + + validations = { + ('reference_id',): { + 'max_length': 255, + }, + ('description',): { + 'max_length': 1000, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'reference_id': (str,), # noqa: E501 + 'client_name': (str, none_type), # noqa: E501 + 'type': (str, none_type), # noqa: E501 + 'individual_detail': (IndividualDetail, none_type), # noqa: E501 + 'business_detail': (BusinessDetail, none_type), # noqa: E501 + 'description': (str, none_type, none_type), # noqa: E501 + 'email': (str, none_type), # noqa: E501 + 'mobile_number': (str, none_type), # noqa: E501 + 'phone_number': (str, none_type), # noqa: E501 + 'addresses': ([AddressRequest], none_type), # noqa: E501 + 'identity_accounts': ([IdentityAccountRequest], none_type), # noqa: E501 + 'kyc_documents': ([KYCDocumentRequest], none_type), # noqa: E501 + 'metadata': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'reference_id': 'reference_id', # noqa: E501 + 'client_name': 'client_name', # noqa: E501 + 'type': 'type', # noqa: E501 + 'individual_detail': 'individual_detail', # noqa: E501 + 'business_detail': 'business_detail', # noqa: E501 + 'description': 'description', # noqa: E501 + 'email': 'email', # noqa: E501 + 'mobile_number': 'mobile_number', # noqa: E501 + 'phone_number': 'phone_number', # noqa: E501 + 'addresses': 'addresses', # noqa: E501 + 'identity_accounts': 'identity_accounts', # noqa: E501 + 'kyc_documents': 'kyc_documents', # noqa: E501 + 'metadata': 'metadata', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, reference_id, *args, **kwargs): # noqa: E501 + """CustomerRequest - a model defined in OpenAPI + + Args: + reference_id (str): Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + client_name (str): Entity's name for this client. [optional] # noqa: E501 + type (str): [optional] if omitted the server will use the default value of "INDIVIDUAL" # noqa: E501 + individual_detail (IndividualDetail): [optional] # noqa: E501 + business_detail (BusinessDetail): [optional] # noqa: E501 + description (str, none_type): [optional] # noqa: E501 + email (str): [optional] # noqa: E501 + mobile_number (str): [optional] # noqa: E501 + phone_number (str): [optional] # noqa: E501 + addresses ([AddressRequest]): [optional] # noqa: E501 + identity_accounts ([IdentityAccountRequest]): [optional] # noqa: E501 + kyc_documents ([KYCDocumentRequest]): [optional] # noqa: E501 + metadata ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.reference_id = reference_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + reference_id: str, + client_name: str | None = None, + individual_detail: IndividualDetail | None = None, + business_detail: BusinessDetail | None = None, + description: str | None = None, + email: str | None = None, + mobile_number: str | None = None, + phone_number: str | None = None, + addresses: list | None = None, + identity_accounts: list | None = None, + kyc_documents: list | None = None, + metadata: dict | None = None, + type: str | None = "INDIVIDUAL", + *args, **kwargs + ): # noqa: E501 + """CustomerRequest - a model defined in OpenAPI + + Args: + reference_id (str): Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + client_name (str): Entity's name for this client. [optional] # noqa: E501 + type (str): [optional] if omitted the server will use the default value of "INDIVIDUAL" # noqa: E501 + individual_detail (IndividualDetail): [optional] # noqa: E501 + business_detail (BusinessDetail): [optional] # noqa: E501 + description (str, none_type): [optional] # noqa: E501 + email (str): [optional] # noqa: E501 + mobile_number (str): [optional] # noqa: E501 + phone_number (str): [optional] # noqa: E501 + addresses ([AddressRequest]): [optional] # noqa: E501 + identity_accounts ([IdentityAccountRequest]): [optional] # noqa: E501 + kyc_documents ([KYCDocumentRequest]): [optional] # noqa: E501 + metadata ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.reference_id = reference_id + if client_name is not None: + self.client_name = client_name + if type is not None: + self.type = type + if individual_detail is not None: + self.individual_detail = individual_detail + if business_detail is not None: + self.business_detail = business_detail + if description is not None: + self.description = description + if email is not None: + self.email = email + if mobile_number is not None: + self.mobile_number = mobile_number + if phone_number is not None: + self.phone_number = phone_number + if addresses is not None: + self.addresses = addresses + if identity_accounts is not None: + self.identity_accounts = identity_accounts + if kyc_documents is not None: + self.kyc_documents = kyc_documents + if metadata is not None: + self.metadata = metadata + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/customer/model/employment_detail.py b/xendit/customer/model/employment_detail.py new file mode 100644 index 00000000..c915cb44 --- /dev/null +++ b/xendit/customer/model/employment_detail.py @@ -0,0 +1,285 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class EmploymentDetail(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = True + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'employer_name': (str, none_type, none_type), # noqa: E501 + 'nature_of_business': (str, none_type, none_type), # noqa: E501 + 'role_description': (str, none_type, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'employer_name': 'employer_name', # noqa: E501 + 'nature_of_business': 'nature_of_business', # noqa: E501 + 'role_description': 'role_description', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """EmploymentDetail - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + employer_name (str, none_type): Name of employer. [optional] # noqa: E501 + nature_of_business (str, none_type): Industry or nature of business. [optional] # noqa: E501 + role_description (str, none_type): Occupation or title. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + employer_name: str | None = None, + nature_of_business: str | None = None, + role_description: str | None = None, + *args, **kwargs + ): # noqa: E501 + """EmploymentDetail - a model defined in OpenAPI + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + employer_name (str, none_type): Name of employer. [optional] # noqa: E501 + nature_of_business (str, none_type): Industry or nature of business. [optional] # noqa: E501 + role_description (str, none_type): Occupation or title. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + if employer_name is not None: + self.employer_name = employer_name + if nature_of_business is not None: + self.nature_of_business = nature_of_business + if role_description is not None: + self.role_description = role_description + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/customer/model/end_customer_status.py b/xendit/customer/model/end_customer_status.py new file mode 100644 index 00000000..c4089fb5 --- /dev/null +++ b/xendit/customer/model/end_customer_status.py @@ -0,0 +1,296 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class EndCustomerStatus(ModelSimple): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('value',): { + 'None': None, + 'ACTIVE': "ACTIVE", + 'INACTIVE': "INACTIVE", + 'PENDING': "PENDING", + 'BLOCKED': "BLOCKED", + 'DELETED': "DELETED", + }, + } + + validations = { + } + + additional_properties_type = None + + _nullable = True + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'value': (str,), + } + + @cached_property + def discriminator(): + return None + + + attribute_map = {} + + read_only_vars = set() + + _composed_schemas = None + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): + """EndCustomerStatus - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str):, must be one of ["ACTIVE", "INACTIVE", "PENDING", "BLOCKED", "DELETED", ] # noqa: E501 + + Keyword Args: + value (str):, must be one of ["ACTIVE", "INACTIVE", "PENDING", "BLOCKED", "DELETED", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): + """EndCustomerStatus - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str):, must be one of ["ACTIVE", "INACTIVE", "PENDING", "BLOCKED", "DELETED", ] # noqa: E501 + + Keyword Args: + value (str):, must be one of ["ACTIVE", "INACTIVE", "PENDING", "BLOCKED", "DELETED", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + return self diff --git a/xendit/customer/model/error.py b/xendit/customer/model/error.py new file mode 100644 index 00000000..e12b3dfd --- /dev/null +++ b/xendit/customer/model/error.py @@ -0,0 +1,289 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class Error(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'error_code': (str,), # noqa: E501 + 'message': (str,), # noqa: E501 + 'errors': ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}], none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'error_code': 'error_code', # noqa: E501 + 'message': 'message', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, error_code, message, *args, **kwargs): # noqa: E501 + """Error - a model defined in OpenAPI + + Args: + error_code (str): + message (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.error_code = error_code + self.message = message + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + error_code: str, + message: str, + errors: list | None = None, + *args, **kwargs + ): # noqa: E501 + """Error - a model defined in OpenAPI + + Args: + error_code (str): + message (str): + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.error_code = error_code + self.message = message + if errors is not None: + self.errors = errors + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/payment_method/model/payment_channel_list.py b/xendit/customer/model/get_customer_by_reference_id200_response.py similarity index 88% rename from xendit/payment_method/model/payment_channel_list.py rename to xendit/customer/model/get_customer_by_reference_id200_response.py index 2038e98e..b60ea60a 100644 --- a/xendit/payment_method/model/payment_channel_list.py +++ b/xendit/customer/model/get_customer_by_reference_id200_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.0.0 """ @@ -24,16 +24,13 @@ ) from xendit.exceptions import ApiAttributeError -from xendit.payment_method.model.payment_channel import PaymentChannel -from xendit.payment_method.model.payment_channel_list_links_inner import PaymentChannelListLinksInner -globals()['PaymentChannel'] = PaymentChannel -globals()['PaymentChannelListLinksInner'] = PaymentChannelListLinksInner - +from xendit.customer.model.customer import Customer +globals()['Customer'] = Customer def lazy_import(): pass -class PaymentChannelList(ModelNormal): +class GetCustomerByReferenceID200Response(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -86,9 +83,8 @@ def openapi_types(): """ lazy_import() return { - 'data': ([PaymentChannel], none_type), # noqa: E501 - 'links': ([PaymentChannelListLinksInner], none_type), # noqa: E501 'has_more': (bool, none_type), # noqa: E501 + 'data': ([Customer], none_type), # noqa: E501 } @cached_property @@ -97,9 +93,8 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 - 'links': 'links', # noqa: E501 'has_more': 'has_more', # noqa: E501 + 'data': 'data', # noqa: E501 } read_only_vars = { @@ -110,7 +105,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PaymentChannelList - a model defined in OpenAPI + """GetCustomerByReferenceID200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,9 +138,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data ([PaymentChannel]): Array of resources that match the provided filters. [optional] # noqa: E501 - links ([PaymentChannelListLinksInner]): Array of objects that can be used to assist on navigating through the data. [optional] # noqa: E501 - has_more (bool): Indicates whether there are more items in the list. [optional] # noqa: E501 + has_more (bool): [optional] # noqa: E501 + data ([Customer]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -200,12 +194,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, - data: list | None = None, - links: list | None = None, has_more: bool | None = None, + data: list | None = None, *args, **kwargs ): # noqa: E501 - """PaymentChannelList - a model defined in OpenAPI + """GetCustomerByReferenceID200Response - a model defined in OpenAPI Keyword Args: @@ -239,9 +232,8 @@ def __init__(self, Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data ([PaymentChannel]): Array of resources that match the provided filters. [optional] # noqa: E501 - links ([PaymentChannelListLinksInner]): Array of objects that can be used to assist on navigating through the data. [optional] # noqa: E501 - has_more (bool): Indicates whether there are more items in the list. [optional] # noqa: E501 + has_more (bool): [optional] # noqa: E501 + data ([Customer]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -273,12 +265,10 @@ def __init__(self, self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - if data is not None: - self.data = data - if links is not None: - self.links = links if has_more is not None: self.has_more = has_more + if data is not None: + self.data = data for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/xendit/payment_method/model/channel_property.py b/xendit/customer/model/get_customer_by_reference_id400_response.py similarity index 87% rename from xendit/payment_method/model/channel_property.py rename to xendit/customer/model/get_customer_by_reference_id400_response.py index 1e6f7812..86f7d369 100644 --- a/xendit/payment_method/model/channel_property.py +++ b/xendit/customer/model/get_customer_by_reference_id400_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.0.0 """ @@ -24,14 +24,15 @@ ) from xendit.exceptions import ApiAttributeError -from xendit.payment_method.model.channel_property_all_of import ChannelPropertyAllOf -globals()['ChannelPropertyAllOf'] = ChannelPropertyAllOf - +from xendit.customer.model.error import Error +from xendit.customer.model.get_customer_by_reference_id400_response_all_of import GetCustomerByReferenceID400ResponseAllOf +globals()['Error'] = Error +globals()['GetCustomerByReferenceID400ResponseAllOf'] = GetCustomerByReferenceID400ResponseAllOf def lazy_import(): pass -class ChannelProperty(ModelComposed): +class GetCustomerByReferenceID400Response(ModelComposed): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -56,6 +57,12 @@ class ChannelProperty(ModelComposed): """ allowed_values = { + ('error_code',): { + 'ENTITY_NOT_FOUND_ERROR': "ENTITY_NOT_FOUND_ERROR", + 'CLIENT_NOT_FOUND_ERROR': "CLIENT_NOT_FOUND_ERROR", + 'END_CUSTOMER_NOT_FOUND_ERROR': "END_CUSTOMER_NOT_FOUND_ERROR", + 'API_VALIDATION_ERROR': "API_VALIDATION_ERROR", + }, } validations = { @@ -84,9 +91,9 @@ def openapi_types(): """ lazy_import() return { - 'name': (str, none_type), # noqa: E501 - 'type': (str, none_type), # noqa: E501 - 'is_required': (bool, none_type), # noqa: E501 + 'error_code': (str,), # noqa: E501 + 'message': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'errors': ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}], none_type), # noqa: E501 } @cached_property @@ -95,9 +102,9 @@ def discriminator(): attribute_map = { - 'name': 'name', # noqa: E501 - 'type': 'type', # noqa: E501 - 'is_required': 'is_required', # noqa: E501 + 'error_code': 'error_code', # noqa: E501 + 'message': 'message', # noqa: E501 + 'errors': 'errors', # noqa: E501 } read_only_vars = { @@ -106,9 +113,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ChannelProperty - a model defined in OpenAPI + """GetCustomerByReferenceID400Response - a model defined in OpenAPI Keyword Args: + error_code (str): + message (bool, date, datetime, dict, float, int, list, str, none_type): _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -139,9 +148,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): The corresponding parameter name. [optional] # noqa: E501 - type (str): Data type of the parameter. [optional] # noqa: E501 - is_required (bool): Indicates whether or not the parameter is required. [optional] # noqa: E501 + errors ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -214,9 +221,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ChannelProperty - a model defined in OpenAPI + """GetCustomerByReferenceID400Response - a model defined in OpenAPI Keyword Args: + error_code (str): + message (bool, date, datetime, dict, float, int, list, str, none_type): _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -247,9 +256,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): The corresponding parameter name. [optional] # noqa: E501 - type (str): Data type of the parameter. [optional] # noqa: E501 - is_required (bool): Indicates whether or not the parameter is required. [optional] # noqa: E501 + errors ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -321,7 +328,8 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - ChannelPropertyAllOf, + Error, + GetCustomerByReferenceID400ResponseAllOf, ], 'oneOf': [ ], diff --git a/xendit/customer/model/get_customer_by_reference_id400_response_all_of.py b/xendit/customer/model/get_customer_by_reference_id400_response_all_of.py new file mode 100644 index 00000000..7ff490ee --- /dev/null +++ b/xendit/customer/model/get_customer_by_reference_id400_response_all_of.py @@ -0,0 +1,284 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class GetCustomerByReferenceID400ResponseAllOf(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('error_code',): { + 'ENTITY_NOT_FOUND_ERROR': "ENTITY_NOT_FOUND_ERROR", + 'CLIENT_NOT_FOUND_ERROR': "CLIENT_NOT_FOUND_ERROR", + 'END_CUSTOMER_NOT_FOUND_ERROR': "END_CUSTOMER_NOT_FOUND_ERROR", + 'API_VALIDATION_ERROR': "API_VALIDATION_ERROR", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'error_code': (str, none_type), # noqa: E501 + 'message': (bool, date, datetime, dict, float, int, list, str, none_type, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'error_code': 'error_code', # noqa: E501 + 'message': 'message', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """GetCustomerByReferenceID400ResponseAllOf - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + error_code (str): [optional] # noqa: E501 + message (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + error_code: str | None = None, + message: object | None = None, + *args, **kwargs + ): # noqa: E501 + """GetCustomerByReferenceID400ResponseAllOf - a model defined in OpenAPI + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + error_code (str): [optional] # noqa: E501 + message (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + if error_code is not None: + self.error_code = error_code + if message is not None: + self.message = message + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/payment_method/model/payment_channel_all_of.py b/xendit/customer/model/identity_account_request.py similarity index 77% rename from xendit/payment_method/model/payment_channel_all_of.py rename to xendit/customer/model/identity_account_request.py index 920bf218..a6bd15eb 100644 --- a/xendit/payment_method/model/payment_channel_all_of.py +++ b/xendit/customer/model/identity_account_request.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.0.0 """ @@ -24,16 +24,17 @@ ) from xendit.exceptions import ApiAttributeError -from xendit.payment_method.model.channel_amount_limits import ChannelAmountLimits -from xendit.payment_method.model.channel_property import ChannelProperty -globals()['ChannelAmountLimits'] = ChannelAmountLimits -globals()['ChannelProperty'] = ChannelProperty - +from xendit.customer.model.country_code import CountryCode +from xendit.customer.model.identity_account_request_properties import IdentityAccountRequestProperties +from xendit.customer.model.identity_account_type import IdentityAccountType +globals()['CountryCode'] = CountryCode +globals()['IdentityAccountRequestProperties'] = IdentityAccountRequestProperties +globals()['IdentityAccountType'] = IdentityAccountType def lazy_import(): pass -class PaymentChannelAllOf(ModelNormal): +class IdentityAccountRequest(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -61,6 +62,12 @@ class PaymentChannelAllOf(ModelNormal): } validations = { + ('company',): { + 'max_length': 100, + }, + ('description',): { + 'max_length': 255, + }, } @cached_property @@ -86,13 +93,11 @@ def openapi_types(): """ lazy_import() return { - 'channel_code': (str, none_type), # noqa: E501 - 'type': (str, none_type), # noqa: E501 - 'country': (str, none_type), # noqa: E501 - 'channel_name': (str, none_type), # noqa: E501 - 'channel_properties': ([ChannelProperty], none_type), # noqa: E501 - 'logo_url': (str, none_type), # noqa: E501 - 'amount_limits': ([ChannelAmountLimits], none_type), # noqa: E501 + 'type': (IdentityAccountType, none_type), # noqa: E501 + 'company': (str, none_type), # noqa: E501 + 'description': (str, none_type), # noqa: E501 + 'country': (CountryCode, none_type), # noqa: E501 + 'properties': (IdentityAccountRequestProperties, none_type), # noqa: E501 } @cached_property @@ -101,13 +106,11 @@ def discriminator(): attribute_map = { - 'channel_code': 'channel_code', # noqa: E501 'type': 'type', # noqa: E501 + 'company': 'company', # noqa: E501 + 'description': 'description', # noqa: E501 'country': 'country', # noqa: E501 - 'channel_name': 'channel_name', # noqa: E501 - 'channel_properties': 'channel_properties', # noqa: E501 - 'logo_url': 'logo_url', # noqa: E501 - 'amount_limits': 'amount_limits', # noqa: E501 + 'properties': 'properties', # noqa: E501 } read_only_vars = { @@ -118,7 +121,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PaymentChannelAllOf - a model defined in OpenAPI + """IdentityAccountRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -151,13 +154,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - channel_code (str): The specific Xendit code used to identify the partner channel. [optional] # noqa: E501 - type (str): The payment method type. [optional] # noqa: E501 - country (str): The country where the channel operates in ISO 3166-2 country code. [optional] # noqa: E501 - channel_name (str): Official parter name of the payment channel. [optional] # noqa: E501 - channel_properties ([ChannelProperty]): [optional] # noqa: E501 - logo_url (str): If available, this contains a URL to the logo of the partner channel. [optional] # noqa: E501 - amount_limits ([ChannelAmountLimits]): [optional] # noqa: E501 + type (IdentityAccountType): [optional] # noqa: E501 + company (str): The issuing institution associated with the account (e.g., OCBC, GOPAY, 7-11). If adding financial accounts that Xendit supports, we recommend you use the channel_name found at https://xendit.github.io/apireference/#payment-channels for this field. [optional] # noqa: E501 + description (str): Free text description of this account. [optional] # noqa: E501 + country (CountryCode): [optional] # noqa: E501 + properties (IdentityAccountRequestProperties): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -212,16 +213,14 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, - channel_code: str | None = None, - type: str | None = None, + type: IdentityAccountType | None = None, + company: str | None = None, + description: str | None = None, country: str | None = None, - channel_name: str | None = None, - channel_properties: list | None = None, - logo_url: str | None = None, - amount_limits: list | None = None, + properties: IdentityAccountRequestProperties | None = None, *args, **kwargs ): # noqa: E501 - """PaymentChannelAllOf - a model defined in OpenAPI + """IdentityAccountRequest - a model defined in OpenAPI Keyword Args: @@ -255,13 +254,11 @@ def __init__(self, Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - channel_code (str): The specific Xendit code used to identify the partner channel. [optional] # noqa: E501 - type (str): The payment method type. [optional] # noqa: E501 - country (str): The country where the channel operates in ISO 3166-2 country code. [optional] # noqa: E501 - channel_name (str): Official parter name of the payment channel. [optional] # noqa: E501 - channel_properties ([ChannelProperty]): [optional] # noqa: E501 - logo_url (str): If available, this contains a URL to the logo of the partner channel. [optional] # noqa: E501 - amount_limits ([ChannelAmountLimits]): [optional] # noqa: E501 + type (IdentityAccountType): [optional] # noqa: E501 + company (str): The issuing institution associated with the account (e.g., OCBC, GOPAY, 7-11). If adding financial accounts that Xendit supports, we recommend you use the channel_name found at https://xendit.github.io/apireference/#payment-channels for this field. [optional] # noqa: E501 + description (str): Free text description of this account. [optional] # noqa: E501 + country (CountryCode): [optional] # noqa: E501 + properties (IdentityAccountRequestProperties): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -293,20 +290,16 @@ def __init__(self, self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - if channel_code is not None: - self.channel_code = channel_code if type is not None: self.type = type + if company is not None: + self.company = company + if description is not None: + self.description = description if country is not None: self.country = country - if channel_name is not None: - self.channel_name = channel_name - if channel_properties is not None: - self.channel_properties = channel_properties - if logo_url is not None: - self.logo_url = logo_url - if amount_limits is not None: - self.amount_limits = amount_limits + if properties is not None: + self.properties = properties for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/xendit/payment_method/model/payment_channel.py b/xendit/customer/model/identity_account_request_properties.py similarity index 72% rename from xendit/payment_method/model/payment_channel.py rename to xendit/customer/model/identity_account_request_properties.py index 12ff9a78..f19a7fce 100644 --- a/xendit/payment_method/model/payment_channel.py +++ b/xendit/customer/model/identity_account_request_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.0.0 """ @@ -24,18 +24,23 @@ ) from xendit.exceptions import ApiAttributeError -from xendit.payment_method.model.channel_amount_limits import ChannelAmountLimits -from xendit.payment_method.model.channel_property import ChannelProperty -from xendit.payment_method.model.payment_channel_all_of import PaymentChannelAllOf -globals()['ChannelAmountLimits'] = ChannelAmountLimits -globals()['ChannelProperty'] = ChannelProperty -globals()['PaymentChannelAllOf'] = PaymentChannelAllOf - +from xendit.customer.model.account_bank import AccountBank +from xendit.customer.model.account_card import AccountCard +from xendit.customer.model.account_ewallet import AccountEwallet +from xendit.customer.model.account_otc import AccountOTC +from xendit.customer.model.account_pay_later import AccountPayLater +from xendit.customer.model.account_qr_code import AccountQRCode +globals()['AccountBank'] = AccountBank +globals()['AccountCard'] = AccountCard +globals()['AccountEwallet'] = AccountEwallet +globals()['AccountOTC'] = AccountOTC +globals()['AccountPayLater'] = AccountPayLater +globals()['AccountQRCode'] = AccountQRCode def lazy_import(): pass -class PaymentChannel(ModelComposed): +class IdentityAccountRequestProperties(ModelComposed): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,13 +93,17 @@ def openapi_types(): """ lazy_import() return { - 'channel_code': (str, none_type), # noqa: E501 - 'type': (str, none_type), # noqa: E501 - 'country': (str, none_type), # noqa: E501 - 'channel_name': (str, none_type), # noqa: E501 - 'channel_properties': ([ChannelProperty], none_type), # noqa: E501 - 'logo_url': (str, none_type), # noqa: E501 - 'amount_limits': ([ChannelAmountLimits], none_type), # noqa: E501 + 'account_number': (str, none_type), # noqa: E501 + 'account_holder_name': (str, none_type, none_type), # noqa: E501 + 'swift_code': (str, none_type, none_type), # noqa: E501 + 'account_type': (str, none_type, none_type), # noqa: E501 + 'account_details': (str, none_type, none_type), # noqa: E501 + 'currency': (bool, date, datetime, dict, float, int, list, str, none_type, none_type), # noqa: E501 + 'token_id': (str, none_type), # noqa: E501 + 'account_id': (str, none_type), # noqa: E501 + 'payment_code': (str, none_type), # noqa: E501 + 'expires_at': (str, none_type, none_type), # noqa: E501 + 'qr_string': (str, none_type), # noqa: E501 } @cached_property @@ -103,13 +112,17 @@ def discriminator(): attribute_map = { - 'channel_code': 'channel_code', # noqa: E501 - 'type': 'type', # noqa: E501 - 'country': 'country', # noqa: E501 - 'channel_name': 'channel_name', # noqa: E501 - 'channel_properties': 'channel_properties', # noqa: E501 - 'logo_url': 'logo_url', # noqa: E501 - 'amount_limits': 'amount_limits', # noqa: E501 + 'account_number': 'account_number', # noqa: E501 + 'account_holder_name': 'account_holder_name', # noqa: E501 + 'swift_code': 'swift_code', # noqa: E501 + 'account_type': 'account_type', # noqa: E501 + 'account_details': 'account_details', # noqa: E501 + 'currency': 'currency', # noqa: E501 + 'token_id': 'token_id', # noqa: E501 + 'account_id': 'account_id', # noqa: E501 + 'payment_code': 'payment_code', # noqa: E501 + 'expires_at': 'expires_at', # noqa: E501 + 'qr_string': 'qr_string', # noqa: E501 } read_only_vars = { @@ -118,7 +131,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PaymentChannel - a model defined in OpenAPI + """IdentityAccountRequestProperties - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -151,13 +164,17 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - channel_code (str): The specific Xendit code used to identify the partner channel. [optional] # noqa: E501 - type (str): The payment method type. [optional] # noqa: E501 - country (str): The country where the channel operates in ISO 3166-2 country code. [optional] # noqa: E501 - channel_name (str): Official parter name of the payment channel. [optional] # noqa: E501 - channel_properties ([ChannelProperty]): [optional] # noqa: E501 - logo_url (str): If available, this contains a URL to the logo of the partner channel. [optional] # noqa: E501 - amount_limits ([ChannelAmountLimits]): [optional] # noqa: E501 + account_number (str): Unique account identifier as per the bank records.. [optional] # noqa: E501 + account_holder_name (str, none_type): Name of account holder as per the cardless credit account.. [optional] # noqa: E501 + swift_code (str, none_type): The SWIFT code for international payments. [optional] # noqa: E501 + account_type (str, none_type): Free text account type, e.g., Savings, Transaction, Virtual Account.. [optional] # noqa: E501 + account_details (str, none_type): Potentially masked account detail, for display purposes only.. [optional] # noqa: E501 + currency (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + token_id (str): The token id returned in tokenisation. [optional] # noqa: E501 + account_id (str): Alphanumeric string identifying this account. Usually an email address or phone number.. [optional] # noqa: E501 + payment_code (str): Complete fixed payment code (including prefix). [optional] # noqa: E501 + expires_at (str, none_type): YYYY-MM-DD string with expiry date for the payment code. [optional] # noqa: E501 + qr_string (str): String representation of the QR Code image. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -230,7 +247,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """PaymentChannel - a model defined in OpenAPI + """IdentityAccountRequestProperties - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -263,13 +280,17 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - channel_code (str): The specific Xendit code used to identify the partner channel. [optional] # noqa: E501 - type (str): The payment method type. [optional] # noqa: E501 - country (str): The country where the channel operates in ISO 3166-2 country code. [optional] # noqa: E501 - channel_name (str): Official parter name of the payment channel. [optional] # noqa: E501 - channel_properties ([ChannelProperty]): [optional] # noqa: E501 - logo_url (str): If available, this contains a URL to the logo of the partner channel. [optional] # noqa: E501 - amount_limits ([ChannelAmountLimits]): [optional] # noqa: E501 + account_number (str): Unique account identifier as per the bank records.. [optional] # noqa: E501 + account_holder_name (str, none_type): Name of account holder as per the cardless credit account.. [optional] # noqa: E501 + swift_code (str, none_type): The SWIFT code for international payments. [optional] # noqa: E501 + account_type (str, none_type): Free text account type, e.g., Savings, Transaction, Virtual Account.. [optional] # noqa: E501 + account_details (str, none_type): Potentially masked account detail, for display purposes only.. [optional] # noqa: E501 + currency (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + token_id (str): The token id returned in tokenisation. [optional] # noqa: E501 + account_id (str): Alphanumeric string identifying this account. Usually an email address or phone number.. [optional] # noqa: E501 + payment_code (str): Complete fixed payment code (including prefix). [optional] # noqa: E501 + expires_at (str, none_type): YYYY-MM-DD string with expiry date for the payment code. [optional] # noqa: E501 + qr_string (str): String representation of the QR Code image. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -339,9 +360,14 @@ def _composed_schemas(): lazy_import() return { 'anyOf': [ + AccountBank, + AccountCard, + AccountEwallet, + AccountOTC, + AccountPayLater, + AccountQRCode, ], 'allOf': [ - PaymentChannelAllOf, ], 'oneOf': [ ], diff --git a/xendit/customer/model/identity_account_response.py b/xendit/customer/model/identity_account_response.py new file mode 100644 index 00000000..37add569 --- /dev/null +++ b/xendit/customer/model/identity_account_response.py @@ -0,0 +1,346 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + +from xendit.customer.model.country_code import CountryCode +from xendit.customer.model.identity_account_response_properties import IdentityAccountResponseProperties +globals()['CountryCode'] = CountryCode +globals()['IdentityAccountResponseProperties'] = IdentityAccountResponseProperties + +def lazy_import(): + pass + +class IdentityAccountResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'None': None, + 'BANK_ACCOUNT': "BANK_ACCOUNT", + 'EWALLET': "EWALLET", + 'CREDIT_CARD': "CREDIT_CARD", + 'OTC': "OTC", + 'QR_CODE': "QR_CODE", + 'CARDLESS_CREDIT': "CARDLESS_CREDIT", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'company': (str, none_type,), # noqa: E501 + 'description': (str, none_type,), # noqa: E501 + 'country': (CountryCode,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 + 'properties': (IdentityAccountResponseProperties,), # noqa: E501 + 'id': (str, none_type), # noqa: E501 + 'code': (str, none_type, none_type), # noqa: E501 + 'holder_name': (str, none_type, none_type), # noqa: E501 + 'created': (datetime, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'company': 'company', # noqa: E501 + 'description': 'description', # noqa: E501 + 'country': 'country', # noqa: E501 + 'type': 'type', # noqa: E501 + 'properties': 'properties', # noqa: E501 + 'id': 'id', # noqa: E501 + 'code': 'code', # noqa: E501 + 'holder_name': 'holder_name', # noqa: E501 + 'created': 'created', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, company, description, country, type, properties, *args, **kwargs): # noqa: E501 + """IdentityAccountResponse - a model defined in OpenAPI + + Args: + company (str, none_type): + description (str, none_type): + country (CountryCode): + type (str, none_type): + properties (IdentityAccountResponseProperties): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): [optional] # noqa: E501 + code (str, none_type): [optional] # noqa: E501 + holder_name (str, none_type): [optional] # noqa: E501 + created (datetime): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.company = company + self.description = description + self.country = country + self.type = type + self.properties = properties + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + company: str | None, + description: str | None, + country: str | None, + type: str | None, + properties: IdentityAccountResponseProperties, + id: str | None = None, + code: str | None = None, + holder_name: str | None = None, + created: datetime | None = None, + *args, **kwargs + ): # noqa: E501 + """IdentityAccountResponse - a model defined in OpenAPI + + Args: + company (str, none_type): + description (str, none_type): + country (CountryCode): + type (str, none_type): + properties (IdentityAccountResponseProperties): + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): [optional] # noqa: E501 + code (str, none_type): [optional] # noqa: E501 + holder_name (str, none_type): [optional] # noqa: E501 + created (datetime): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.company = company + self.description = description + self.country = country + self.type = type + self.properties = properties + if id is not None: + self.id = id + if code is not None: + self.code = code + if holder_name is not None: + self.holder_name = holder_name + if created is not None: + self.created = created + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/customer/model/identity_account_response_properties.py b/xendit/customer/model/identity_account_response_properties.py new file mode 100644 index 00000000..768cb8ba --- /dev/null +++ b/xendit/customer/model/identity_account_response_properties.py @@ -0,0 +1,374 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + +from xendit.customer.model.account_bank import AccountBank +from xendit.customer.model.account_card import AccountCard +from xendit.customer.model.account_ewallet import AccountEwallet +from xendit.customer.model.account_otc import AccountOTC +from xendit.customer.model.account_pay_later import AccountPayLater +from xendit.customer.model.account_qr_code import AccountQRCode +globals()['AccountBank'] = AccountBank +globals()['AccountCard'] = AccountCard +globals()['AccountEwallet'] = AccountEwallet +globals()['AccountOTC'] = AccountOTC +globals()['AccountPayLater'] = AccountPayLater +globals()['AccountQRCode'] = AccountQRCode + +def lazy_import(): + pass + +class IdentityAccountResponseProperties(ModelComposed): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'account_number': (str, none_type), # noqa: E501 + 'account_holder_name': (str, none_type, none_type), # noqa: E501 + 'swift_code': (str, none_type, none_type), # noqa: E501 + 'account_type': (str, none_type, none_type), # noqa: E501 + 'account_details': (str, none_type, none_type), # noqa: E501 + 'currency': (bool, date, datetime, dict, float, int, list, str, none_type, none_type), # noqa: E501 + 'token_id': (str, none_type), # noqa: E501 + 'payment_code': (str, none_type), # noqa: E501 + 'expires_at': (str, none_type, none_type), # noqa: E501 + 'qr_string': (str, none_type), # noqa: E501 + 'account_id': (str, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'account_number': 'account_number', # noqa: E501 + 'account_holder_name': 'account_holder_name', # noqa: E501 + 'swift_code': 'swift_code', # noqa: E501 + 'account_type': 'account_type', # noqa: E501 + 'account_details': 'account_details', # noqa: E501 + 'currency': 'currency', # noqa: E501 + 'token_id': 'token_id', # noqa: E501 + 'payment_code': 'payment_code', # noqa: E501 + 'expires_at': 'expires_at', # noqa: E501 + 'qr_string': 'qr_string', # noqa: E501 + 'account_id': 'account_id', # noqa: E501 + } + + read_only_vars = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """IdentityAccountResponseProperties - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + account_number (str): Unique account identifier as per the bank records.. [optional] # noqa: E501 + account_holder_name (str, none_type): Name of account holder as per the cardless credit account.. [optional] # noqa: E501 + swift_code (str, none_type): The SWIFT code for international payments. [optional] # noqa: E501 + account_type (str, none_type): Free text account type, e.g., Savings, Transaction, Virtual Account.. [optional] # noqa: E501 + account_details (str, none_type): Potentially masked account detail, for display purposes only.. [optional] # noqa: E501 + currency (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + token_id (str): The token id returned in tokenisation. [optional] # noqa: E501 + payment_code (str): Complete fixed payment code (including prefix). [optional] # noqa: E501 + expires_at (str, none_type): YYYY-MM-DD string with expiry date for the payment code. [optional] # noqa: E501 + qr_string (str): String representation of the QR Code image. [optional] # noqa: E501 + account_id (str): Alphanumeric string identifying this account. Usually an email address or phone number.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + '_composed_instances', + '_var_name_to_model_instances', + '_additional_properties_model_instances', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """IdentityAccountResponseProperties - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + account_number (str): Unique account identifier as per the bank records.. [optional] # noqa: E501 + account_holder_name (str, none_type): Name of account holder as per the cardless credit account.. [optional] # noqa: E501 + swift_code (str, none_type): The SWIFT code for international payments. [optional] # noqa: E501 + account_type (str, none_type): Free text account type, e.g., Savings, Transaction, Virtual Account.. [optional] # noqa: E501 + account_details (str, none_type): Potentially masked account detail, for display purposes only.. [optional] # noqa: E501 + currency (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + token_id (str): The token id returned in tokenisation. [optional] # noqa: E501 + payment_code (str): Complete fixed payment code (including prefix). [optional] # noqa: E501 + expires_at (str, none_type): YYYY-MM-DD string with expiry date for the payment code. [optional] # noqa: E501 + qr_string (str): String representation of the QR Code image. [optional] # noqa: E501 + account_id (str): Alphanumeric string identifying this account. Usually an email address or phone number.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") + + @cached_property + def _composed_schemas(): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + lazy_import() + return { + 'anyOf': [ + AccountBank, + AccountCard, + AccountEwallet, + AccountOTC, + AccountPayLater, + AccountQRCode, + ], + 'allOf': [ + ], + 'oneOf': [ + ], + } diff --git a/xendit/customer/model/identity_account_type.py b/xendit/customer/model/identity_account_type.py new file mode 100644 index 00000000..0eb2e112 --- /dev/null +++ b/xendit/customer/model/identity_account_type.py @@ -0,0 +1,296 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class IdentityAccountType(ModelSimple): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('value',): { + 'BANK_ACCOUNT': "BANK_ACCOUNT", + 'EWALLET': "EWALLET", + 'CREDIT_CARD': "CREDIT_CARD", + 'PAY_LATER': "PAY_LATER", + 'OTC': "OTC", + 'QR_CODE': "QR_CODE", + }, + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'value': (str,), + } + + @cached_property + def discriminator(): + return None + + + attribute_map = {} + + read_only_vars = set() + + _composed_schemas = None + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): + """IdentityAccountType - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str):, must be one of ["BANK_ACCOUNT", "EWALLET", "CREDIT_CARD", "PAY_LATER", "OTC", "QR_CODE", ] # noqa: E501 + + Keyword Args: + value (str):, must be one of ["BANK_ACCOUNT", "EWALLET", "CREDIT_CARD", "PAY_LATER", "OTC", "QR_CODE", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): + """IdentityAccountType - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str):, must be one of ["BANK_ACCOUNT", "EWALLET", "CREDIT_CARD", "PAY_LATER", "OTC", "QR_CODE", ] # noqa: E501 + + Keyword Args: + value (str):, must be one of ["BANK_ACCOUNT", "EWALLET", "CREDIT_CARD", "PAY_LATER", "OTC", "QR_CODE", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + return self diff --git a/xendit/customer/model/individual_detail.py b/xendit/customer/model/individual_detail.py new file mode 100644 index 00000000..b813ed0f --- /dev/null +++ b/xendit/customer/model/individual_detail.py @@ -0,0 +1,377 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + +from xendit.customer.model.country_code import CountryCode +from xendit.customer.model.employment_detail import EmploymentDetail +globals()['CountryCode'] = CountryCode +globals()['EmploymentDetail'] = EmploymentDetail + +def lazy_import(): + pass + +class IndividualDetail(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('gender',): { + 'None': None, + 'MALE': "MALE", + 'FEMALE': "FEMALE", + 'OTHER': "OTHER", + }, + } + + validations = { + ('given_names',): { + 'max_length': 255, + }, + ('given_names_non_roman',): { + 'max_length': 255, + }, + ('middle_name',): { + 'max_length': 255, + }, + ('surname',): { + 'max_length': 255, + }, + ('surname_non_roman',): { + 'max_length': 255, + }, + ('mother_maiden_name',): { + 'max_length': 255, + }, + ('date_of_birth',): { + 'max_length': 30, + }, + ('place_of_birth',): { + 'max_length': 255, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = True + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'given_names': (str, none_type), # noqa: E501 + 'given_names_non_roman': (str, none_type, none_type), # noqa: E501 + 'middle_name': (str, none_type, none_type), # noqa: E501 + 'surname': (str, none_type, none_type), # noqa: E501 + 'surname_non_roman': (str, none_type, none_type), # noqa: E501 + 'mother_maiden_name': (str, none_type, none_type), # noqa: E501 + 'gender': (str, none_type, none_type), # noqa: E501 + 'date_of_birth': (str, none_type, none_type), # noqa: E501 + 'nationality': (CountryCode, none_type), # noqa: E501 + 'place_of_birth': (str, none_type, none_type), # noqa: E501 + 'employment': (EmploymentDetail, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'given_names': 'given_names', # noqa: E501 + 'given_names_non_roman': 'given_names_non_roman', # noqa: E501 + 'middle_name': 'middle_name', # noqa: E501 + 'surname': 'surname', # noqa: E501 + 'surname_non_roman': 'surname_non_roman', # noqa: E501 + 'mother_maiden_name': 'mother_maiden_name', # noqa: E501 + 'gender': 'gender', # noqa: E501 + 'date_of_birth': 'date_of_birth', # noqa: E501 + 'nationality': 'nationality', # noqa: E501 + 'place_of_birth': 'place_of_birth', # noqa: E501 + 'employment': 'employment', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """IndividualDetail - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + given_names (str): [optional] # noqa: E501 + given_names_non_roman (str, none_type): [optional] # noqa: E501 + middle_name (str, none_type): [optional] # noqa: E501 + surname (str, none_type): [optional] # noqa: E501 + surname_non_roman (str, none_type): [optional] # noqa: E501 + mother_maiden_name (str, none_type): [optional] # noqa: E501 + gender (str, none_type): [optional] # noqa: E501 + date_of_birth (str, none_type): [optional] # noqa: E501 + nationality (CountryCode): [optional] # noqa: E501 + place_of_birth (str, none_type): [optional] # noqa: E501 + employment (EmploymentDetail): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + given_names: str | None = None, + given_names_non_roman: str | None = None, + middle_name: str | None = None, + surname: str | None = None, + surname_non_roman: str | None = None, + mother_maiden_name: str | None = None, + gender: str | None = None, + date_of_birth: str | None = None, + nationality: str | None = None, + place_of_birth: str | None = None, + employment: EmploymentDetail | None = None, + *args, **kwargs + ): # noqa: E501 + """IndividualDetail - a model defined in OpenAPI + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + given_names (str): [optional] # noqa: E501 + given_names_non_roman (str, none_type): [optional] # noqa: E501 + middle_name (str, none_type): [optional] # noqa: E501 + surname (str, none_type): [optional] # noqa: E501 + surname_non_roman (str, none_type): [optional] # noqa: E501 + mother_maiden_name (str, none_type): [optional] # noqa: E501 + gender (str, none_type): [optional] # noqa: E501 + date_of_birth (str, none_type): [optional] # noqa: E501 + nationality (CountryCode): [optional] # noqa: E501 + place_of_birth (str, none_type): [optional] # noqa: E501 + employment (EmploymentDetail): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + if given_names is not None: + self.given_names = given_names + if given_names_non_roman is not None: + self.given_names_non_roman = given_names_non_roman + if middle_name is not None: + self.middle_name = middle_name + if surname is not None: + self.surname = surname + if surname_non_roman is not None: + self.surname_non_roman = surname_non_roman + if mother_maiden_name is not None: + self.mother_maiden_name = mother_maiden_name + if gender is not None: + self.gender = gender + if date_of_birth is not None: + self.date_of_birth = date_of_birth + if nationality is not None: + self.nationality = nationality + if place_of_birth is not None: + self.place_of_birth = place_of_birth + if employment is not None: + self.employment = employment + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/customer/model/kyc_document_request.py b/xendit/customer/model/kyc_document_request.py new file mode 100644 index 00000000..e75c18b5 --- /dev/null +++ b/xendit/customer/model/kyc_document_request.py @@ -0,0 +1,328 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + +from xendit.customer.model.country_code import CountryCode +from xendit.customer.model.kyc_document_sub_type import KYCDocumentSubType +from xendit.customer.model.kyc_document_type import KYCDocumentType +globals()['CountryCode'] = CountryCode +globals()['KYCDocumentSubType'] = KYCDocumentSubType +globals()['KYCDocumentType'] = KYCDocumentType + +def lazy_import(): + pass + +class KYCDocumentRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'country': (CountryCode, none_type), # noqa: E501 + 'type': (KYCDocumentType, none_type), # noqa: E501 + 'sub_type': (KYCDocumentSubType, none_type), # noqa: E501 + 'document_name': (str, none_type), # noqa: E501 + 'document_number': (str, none_type), # noqa: E501 + 'expires_at': (str, none_type), # noqa: E501 + 'holder_name': (str, none_type), # noqa: E501 + 'document_images': ([str], none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'country': 'country', # noqa: E501 + 'type': 'type', # noqa: E501 + 'sub_type': 'sub_type', # noqa: E501 + 'document_name': 'document_name', # noqa: E501 + 'document_number': 'document_number', # noqa: E501 + 'expires_at': 'expires_at', # noqa: E501 + 'holder_name': 'holder_name', # noqa: E501 + 'document_images': 'document_images', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """KYCDocumentRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + country (CountryCode): [optional] # noqa: E501 + type (KYCDocumentType): [optional] # noqa: E501 + sub_type (KYCDocumentSubType): [optional] # noqa: E501 + document_name (str): [optional] # noqa: E501 + document_number (str): [optional] # noqa: E501 + expires_at (str): [optional] # noqa: E501 + holder_name (str): [optional] # noqa: E501 + document_images ([str]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + country: str | None = None, + type: KYCDocumentType | None = None, + sub_type: KYCDocumentSubType | None = None, + document_name: str | None = None, + document_number: str | None = None, + expires_at: str | None = None, + holder_name: str | None = None, + document_images: list | None = None, + *args, **kwargs + ): # noqa: E501 + """KYCDocumentRequest - a model defined in OpenAPI + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + country (CountryCode): [optional] # noqa: E501 + type (KYCDocumentType): [optional] # noqa: E501 + sub_type (KYCDocumentSubType): [optional] # noqa: E501 + document_name (str): [optional] # noqa: E501 + document_number (str): [optional] # noqa: E501 + expires_at (str): [optional] # noqa: E501 + holder_name (str): [optional] # noqa: E501 + document_images ([str]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + if country is not None: + self.country = country + if type is not None: + self.type = type + if sub_type is not None: + self.sub_type = sub_type + if document_name is not None: + self.document_name = document_name + if document_number is not None: + self.document_number = document_number + if expires_at is not None: + self.expires_at = expires_at + if holder_name is not None: + self.holder_name = holder_name + if document_images is not None: + self.document_images = document_images + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/customer/model/kyc_document_response.py b/xendit/customer/model/kyc_document_response.py new file mode 100644 index 00000000..49c72f19 --- /dev/null +++ b/xendit/customer/model/kyc_document_response.py @@ -0,0 +1,324 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class KYCDocumentResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'country': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'sub_type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'document_name': (str, none_type,), # noqa: E501 + 'document_number': (str, none_type,), # noqa: E501 + 'expires_at': (str, none_type,), # noqa: E501 + 'holder_name': (str, none_type,), # noqa: E501 + 'document_images': ([str], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'country': 'country', # noqa: E501 + 'type': 'type', # noqa: E501 + 'sub_type': 'sub_type', # noqa: E501 + 'document_name': 'document_name', # noqa: E501 + 'document_number': 'document_number', # noqa: E501 + 'expires_at': 'expires_at', # noqa: E501 + 'holder_name': 'holder_name', # noqa: E501 + 'document_images': 'document_images', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, country, type, sub_type, document_name, document_number, expires_at, holder_name, document_images, *args, **kwargs): # noqa: E501 + """KYCDocumentResponse - a model defined in OpenAPI + + Args: + country (bool, date, datetime, dict, float, int, list, str, none_type): + type (bool, date, datetime, dict, float, int, list, str, none_type): + sub_type (bool, date, datetime, dict, float, int, list, str, none_type): + document_name (str, none_type): + document_number (str, none_type): + expires_at (str, none_type): + holder_name (str, none_type): + document_images ([str], none_type): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.country = country + self.type = type + self.sub_type = sub_type + self.document_name = document_name + self.document_number = document_number + self.expires_at = expires_at + self.holder_name = holder_name + self.document_images = document_images + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + country: object, + type: object, + sub_type: object, + document_name: str | None, + document_number: str | None, + expires_at: str | None, + holder_name: str | None, + document_images: list | None, + *args, **kwargs + ): # noqa: E501 + """KYCDocumentResponse - a model defined in OpenAPI + + Args: + country (bool, date, datetime, dict, float, int, list, str, none_type): + type (bool, date, datetime, dict, float, int, list, str, none_type): + sub_type (bool, date, datetime, dict, float, int, list, str, none_type): + document_name (str, none_type): + document_number (str, none_type): + expires_at (str, none_type): + holder_name (str, none_type): + document_images ([str], none_type): + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.country = country + self.type = type + self.sub_type = sub_type + self.document_name = document_name + self.document_number = document_number + self.expires_at = expires_at + self.holder_name = holder_name + self.document_images = document_images + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/customer/model/kyc_document_sub_type.py b/xendit/customer/model/kyc_document_sub_type.py new file mode 100644 index 00000000..2d3c655a --- /dev/null +++ b/xendit/customer/model/kyc_document_sub_type.py @@ -0,0 +1,301 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class KYCDocumentSubType(ModelSimple): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('value',): { + 'None': None, + 'NATIONAL_ID': "NATIONAL_ID", + 'CONSULAR_ID': "CONSULAR_ID", + 'VOTER_ID': "VOTER_ID", + 'POSTAL_ID': "POSTAL_ID", + 'RESIDENCE_PERMIT': "RESIDENCE_PERMIT", + 'TAX_ID': "TAX_ID", + 'STUDENT_ID': "STUDENT_ID", + 'MILITARY_ID': "MILITARY_ID", + 'MEDICAL_ID': "MEDICAL_ID", + 'OTHERS': "OTHERS", + }, + } + + validations = { + } + + additional_properties_type = None + + _nullable = True + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'value': (str,), + } + + @cached_property + def discriminator(): + return None + + + attribute_map = {} + + read_only_vars = set() + + _composed_schemas = None + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): + """KYCDocumentSubType - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str):, must be one of ["NATIONAL_ID", "CONSULAR_ID", "VOTER_ID", "POSTAL_ID", "RESIDENCE_PERMIT", "TAX_ID", "STUDENT_ID", "MILITARY_ID", "MEDICAL_ID", "OTHERS", ] # noqa: E501 + + Keyword Args: + value (str):, must be one of ["NATIONAL_ID", "CONSULAR_ID", "VOTER_ID", "POSTAL_ID", "RESIDENCE_PERMIT", "TAX_ID", "STUDENT_ID", "MILITARY_ID", "MEDICAL_ID", "OTHERS", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): + """KYCDocumentSubType - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str):, must be one of ["NATIONAL_ID", "CONSULAR_ID", "VOTER_ID", "POSTAL_ID", "RESIDENCE_PERMIT", "TAX_ID", "STUDENT_ID", "MILITARY_ID", "MEDICAL_ID", "OTHERS", ] # noqa: E501 + + Keyword Args: + value (str):, must be one of ["NATIONAL_ID", "CONSULAR_ID", "VOTER_ID", "POSTAL_ID", "RESIDENCE_PERMIT", "TAX_ID", "STUDENT_ID", "MILITARY_ID", "MEDICAL_ID", "OTHERS", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + return self diff --git a/xendit/customer/model/kyc_document_type.py b/xendit/customer/model/kyc_document_type.py new file mode 100644 index 00000000..8d07b7dd --- /dev/null +++ b/xendit/customer/model/kyc_document_type.py @@ -0,0 +1,298 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class KYCDocumentType(ModelSimple): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('value',): { + 'BIRTH_CERTIFICATE': "BIRTH_CERTIFICATE", + 'BANK_STATEMENT': "BANK_STATEMENT", + 'DRIVING_LICENSE': "DRIVING_LICENSE", + 'IDENTITY_CARD': "IDENTITY_CARD", + 'PASSPORT': "PASSPORT", + 'VISA': "VISA", + 'BUSINESS_REGISTRATION': "BUSINESS_REGISTRATION", + 'BUSINESS_LICENSE': "BUSINESS_LICENSE", + }, + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'value': (str,), + } + + @cached_property + def discriminator(): + return None + + + attribute_map = {} + + read_only_vars = set() + + _composed_schemas = None + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): + """KYCDocumentType - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str):, must be one of ["BIRTH_CERTIFICATE", "BANK_STATEMENT", "DRIVING_LICENSE", "IDENTITY_CARD", "PASSPORT", "VISA", "BUSINESS_REGISTRATION", "BUSINESS_LICENSE", ] # noqa: E501 + + Keyword Args: + value (str):, must be one of ["BIRTH_CERTIFICATE", "BANK_STATEMENT", "DRIVING_LICENSE", "IDENTITY_CARD", "PASSPORT", "VISA", "BUSINESS_REGISTRATION", "BUSINESS_LICENSE", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): + """KYCDocumentType - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str):, must be one of ["BIRTH_CERTIFICATE", "BANK_STATEMENT", "DRIVING_LICENSE", "IDENTITY_CARD", "PASSPORT", "VISA", "BUSINESS_REGISTRATION", "BUSINESS_LICENSE", ] # noqa: E501 + + Keyword Args: + value (str):, must be one of ["BIRTH_CERTIFICATE", "BANK_STATEMENT", "DRIVING_LICENSE", "IDENTITY_CARD", "PASSPORT", "VISA", "BUSINESS_REGISTRATION", "BUSINESS_LICENSE", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + return self diff --git a/xendit/customer/model/patch_customer.py b/xendit/customer/model/patch_customer.py new file mode 100644 index 00000000..cd8031ec --- /dev/null +++ b/xendit/customer/model/patch_customer.py @@ -0,0 +1,375 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + +from xendit.customer.model.address_request import AddressRequest +from xendit.customer.model.business_detail import BusinessDetail +from xendit.customer.model.end_customer_status import EndCustomerStatus +from xendit.customer.model.identity_account_request import IdentityAccountRequest +from xendit.customer.model.individual_detail import IndividualDetail +from xendit.customer.model.kyc_document_request import KYCDocumentRequest +globals()['AddressRequest'] = AddressRequest +globals()['BusinessDetail'] = BusinessDetail +globals()['EndCustomerStatus'] = EndCustomerStatus +globals()['IdentityAccountRequest'] = IdentityAccountRequest +globals()['IndividualDetail'] = IndividualDetail +globals()['KYCDocumentRequest'] = KYCDocumentRequest + +def lazy_import(): + pass + +class PatchCustomer(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('reference_id',): { + 'max_length': 255, + }, + ('description',): { + 'max_length': 1000, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'client_name': (str, none_type, none_type), # noqa: E501 + 'reference_id': (str, none_type, none_type), # noqa: E501 + 'individual_detail': (IndividualDetail, none_type), # noqa: E501 + 'business_detail': (BusinessDetail, none_type), # noqa: E501 + 'description': (str, none_type, none_type), # noqa: E501 + 'email': (str, none_type, none_type), # noqa: E501 + 'mobile_number': (str, none_type, none_type), # noqa: E501 + 'phone_number': (str, none_type, none_type), # noqa: E501 + 'metadata': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type, none_type), # noqa: E501 + 'addresses': ([AddressRequest], none_type, none_type), # noqa: E501 + 'identity_accounts': ([IdentityAccountRequest], none_type, none_type), # noqa: E501 + 'kyc_documents': ([KYCDocumentRequest], none_type, none_type), # noqa: E501 + 'status': (EndCustomerStatus, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'client_name': 'client_name', # noqa: E501 + 'reference_id': 'reference_id', # noqa: E501 + 'individual_detail': 'individual_detail', # noqa: E501 + 'business_detail': 'business_detail', # noqa: E501 + 'description': 'description', # noqa: E501 + 'email': 'email', # noqa: E501 + 'mobile_number': 'mobile_number', # noqa: E501 + 'phone_number': 'phone_number', # noqa: E501 + 'metadata': 'metadata', # noqa: E501 + 'addresses': 'addresses', # noqa: E501 + 'identity_accounts': 'identity_accounts', # noqa: E501 + 'kyc_documents': 'kyc_documents', # noqa: E501 + 'status': 'status', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchCustomer - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + client_name (str, none_type): Entity's name for this client. [optional] # noqa: E501 + reference_id (str, none_type): Merchant's reference of this end customer, eg Merchant's user's id. Must be unique.. [optional] # noqa: E501 + individual_detail (IndividualDetail): [optional] # noqa: E501 + business_detail (BusinessDetail): [optional] # noqa: E501 + description (str, none_type): [optional] # noqa: E501 + email (str, none_type): [optional] # noqa: E501 + mobile_number (str, none_type): [optional] # noqa: E501 + phone_number (str, none_type): [optional] # noqa: E501 + metadata ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 + addresses ([AddressRequest], none_type): [optional] # noqa: E501 + identity_accounts ([IdentityAccountRequest], none_type): [optional] # noqa: E501 + kyc_documents ([KYCDocumentRequest], none_type): [optional] # noqa: E501 + status (EndCustomerStatus): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + client_name: str | None = None, + reference_id: str | None = None, + individual_detail: IndividualDetail | None = None, + business_detail: BusinessDetail | None = None, + description: str | None = None, + email: str | None = None, + mobile_number: str | None = None, + phone_number: str | None = None, + metadata: dict | None = None, + addresses: list | None = None, + identity_accounts: list | None = None, + kyc_documents: list | None = None, + status: EndCustomerStatus | None = None, + *args, **kwargs + ): # noqa: E501 + """PatchCustomer - a model defined in OpenAPI + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + client_name (str, none_type): Entity's name for this client. [optional] # noqa: E501 + reference_id (str, none_type): Merchant's reference of this end customer, eg Merchant's user's id. Must be unique.. [optional] # noqa: E501 + individual_detail (IndividualDetail): [optional] # noqa: E501 + business_detail (BusinessDetail): [optional] # noqa: E501 + description (str, none_type): [optional] # noqa: E501 + email (str, none_type): [optional] # noqa: E501 + mobile_number (str, none_type): [optional] # noqa: E501 + phone_number (str, none_type): [optional] # noqa: E501 + metadata ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 + addresses ([AddressRequest], none_type): [optional] # noqa: E501 + identity_accounts ([IdentityAccountRequest], none_type): [optional] # noqa: E501 + kyc_documents ([KYCDocumentRequest], none_type): [optional] # noqa: E501 + status (EndCustomerStatus): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + if client_name is not None: + self.client_name = client_name + if reference_id is not None: + self.reference_id = reference_id + if individual_detail is not None: + self.individual_detail = individual_detail + if business_detail is not None: + self.business_detail = business_detail + if description is not None: + self.description = description + if email is not None: + self.email = email + if mobile_number is not None: + self.mobile_number = mobile_number + if phone_number is not None: + self.phone_number = phone_number + if metadata is not None: + self.metadata = metadata + if addresses is not None: + self.addresses = addresses + if identity_accounts is not None: + self.identity_accounts = identity_accounts + if kyc_documents is not None: + self.kyc_documents = kyc_documents + if status is not None: + self.status = status + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/customer/model/response_data_not_found.py b/xendit/customer/model/response_data_not_found.py new file mode 100644 index 00000000..241da43f --- /dev/null +++ b/xendit/customer/model/response_data_not_found.py @@ -0,0 +1,283 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class ResponseDataNotFound(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('error_code',): { + 'DATA_NOT_FOUND': "DATA_NOT_FOUND", + 'ENTITY_NOT_FOUND_ERROR': "ENTITY_NOT_FOUND_ERROR", + 'CLIENT_NOT_FOUND_ERROR': "CLIENT_NOT_FOUND_ERROR", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'error_code': (str, none_type), # noqa: E501 + 'message': (bool, date, datetime, dict, float, int, list, str, none_type, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'error_code': 'error_code', # noqa: E501 + 'message': 'message', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResponseDataNotFound - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + error_code (str): [optional] # noqa: E501 + message (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + error_code: str | None = None, + message: object | None = None, + *args, **kwargs + ): # noqa: E501 + """ResponseDataNotFound - a model defined in OpenAPI + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + error_code (str): [optional] # noqa: E501 + message (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + if error_code is not None: + self.error_code = error_code + if message is not None: + self.message = message + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/payment_method/model/payment_channel_list_links_inner.py b/xendit/customer/model/update_customer400_response.py similarity index 88% rename from xendit/payment_method/model/payment_channel_list_links_inner.py rename to xendit/customer/model/update_customer400_response.py index e3454d2d..94390d48 100644 --- a/xendit/payment_method/model/payment_channel_list_links_inner.py +++ b/xendit/customer/model/update_customer400_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.0.0 """ @@ -24,14 +24,15 @@ ) from xendit.exceptions import ApiAttributeError -from xendit.payment_method.model.payment_channel_list_links_inner_all_of import PaymentChannelListLinksInnerAllOf -globals()['PaymentChannelListLinksInnerAllOf'] = PaymentChannelListLinksInnerAllOf - +from xendit.customer.model.error import Error +from xendit.customer.model.update_customer400_response_all_of import UpdateCustomer400ResponseAllOf +globals()['Error'] = Error +globals()['UpdateCustomer400ResponseAllOf'] = UpdateCustomer400ResponseAllOf def lazy_import(): pass -class PaymentChannelListLinksInner(ModelComposed): +class UpdateCustomer400Response(ModelComposed): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -56,11 +57,12 @@ class PaymentChannelListLinksInner(ModelComposed): """ allowed_values = { - ('rel',): { - 'FIRST': "first", - 'LAST': "last", - 'NEXT': "next", - 'PREV': "prev", + ('error_code',): { + 'ENTITY_NOT_FOUND_ERROR': "ENTITY_NOT_FOUND_ERROR", + 'CLIENT_NOT_FOUND_ERROR': "CLIENT_NOT_FOUND_ERROR", + 'END_CUSTOMER_NOT_FOUND_ERROR': "END_CUSTOMER_NOT_FOUND_ERROR", + 'DUPLICATE_END_CUSTOMER_ERROR': "DUPLICATE_END_CUSTOMER_ERROR", + 'API_VALIDATION_ERROR': "API_VALIDATION_ERROR", }, } @@ -90,9 +92,9 @@ def openapi_types(): """ lazy_import() return { - 'href': (str, none_type), # noqa: E501 - 'rel': (str, none_type), # noqa: E501 - 'method': (str, none_type), # noqa: E501 + 'error_code': (str,), # noqa: E501 + 'message': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'errors': ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}], none_type), # noqa: E501 } @cached_property @@ -101,9 +103,9 @@ def discriminator(): attribute_map = { - 'href': 'href', # noqa: E501 - 'rel': 'rel', # noqa: E501 - 'method': 'method', # noqa: E501 + 'error_code': 'error_code', # noqa: E501 + 'message': 'message', # noqa: E501 + 'errors': 'errors', # noqa: E501 } read_only_vars = { @@ -112,9 +114,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PaymentChannelListLinksInner - a model defined in OpenAPI + """UpdateCustomer400Response - a model defined in OpenAPI Keyword Args: + error_code (str): + message (bool, date, datetime, dict, float, int, list, str, none_type): _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -145,9 +149,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - href (str): Target URI that should contain a target to Internationalized Resource Identifiers (IRI). [optional] # noqa: E501 - rel (str): The link relation type described how the current context (source) is related to target resource. [optional] # noqa: E501 - method (str): The HTTP method to be used to call `href`. [optional] # noqa: E501 + errors ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -220,9 +222,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """PaymentChannelListLinksInner - a model defined in OpenAPI + """UpdateCustomer400Response - a model defined in OpenAPI Keyword Args: + error_code (str): + message (bool, date, datetime, dict, float, int, list, str, none_type): _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -253,9 +257,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - href (str): Target URI that should contain a target to Internationalized Resource Identifiers (IRI). [optional] # noqa: E501 - rel (str): The link relation type described how the current context (source) is related to target resource. [optional] # noqa: E501 - method (str): The HTTP method to be used to call `href`. [optional] # noqa: E501 + errors ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -327,7 +329,8 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - PaymentChannelListLinksInnerAllOf, + Error, + UpdateCustomer400ResponseAllOf, ], 'oneOf': [ ], diff --git a/xendit/customer/model/update_customer400_response_all_of.py b/xendit/customer/model/update_customer400_response_all_of.py new file mode 100644 index 00000000..8ef41559 --- /dev/null +++ b/xendit/customer/model/update_customer400_response_all_of.py @@ -0,0 +1,285 @@ +""" + The version of the XENDIT API: 1.0.0 +""" + + +import re # noqa: F401 +import sys # noqa: F401 +from typing import List # noqa: F401 + +from xendit.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from xendit.exceptions import ApiAttributeError + + +def lazy_import(): + pass + +class UpdateCustomer400ResponseAllOf(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('error_code',): { + 'ENTITY_NOT_FOUND_ERROR': "ENTITY_NOT_FOUND_ERROR", + 'CLIENT_NOT_FOUND_ERROR': "CLIENT_NOT_FOUND_ERROR", + 'END_CUSTOMER_NOT_FOUND_ERROR': "END_CUSTOMER_NOT_FOUND_ERROR", + 'DUPLICATE_END_CUSTOMER_ERROR': "DUPLICATE_END_CUSTOMER_ERROR", + 'API_VALIDATION_ERROR': "API_VALIDATION_ERROR", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'error_code': (str, none_type), # noqa: E501 + 'message': (bool, date, datetime, dict, float, int, list, str, none_type, none_type), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'error_code': 'error_code', # noqa: E501 + 'message': 'message', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """UpdateCustomer400ResponseAllOf - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + error_code (str): [optional] # noqa: E501 + message (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, + error_code: str | None = None, + message: object | None = None, + *args, **kwargs + ): # noqa: E501 + """UpdateCustomer400ResponseAllOf - a model defined in OpenAPI + + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + error_code (str): [optional] # noqa: E501 + message (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + elif isinstance(arg, str): + kwargs.update({"value": arg}) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + if error_code is not None: + self.error_code = error_code + if message is not None: + self.message = message + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/xendit/exceptions.py b/xendit/exceptions.py index c711eb98..bebb60c7 100644 --- a/xendit/exceptions.py +++ b/xendit/exceptions.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.44.1 """ import json diff --git a/xendit/invoice/model/address_object.py b/xendit/invoice/model/address_object.py index 552d7d3e..87ca2b09 100644 --- a/xendit/invoice/model/address_object.py +++ b/xendit/invoice/model/address_object.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/alternative_display_item.py b/xendit/invoice/model/alternative_display_item.py index ebb02fd9..ad664e34 100644 --- a/xendit/invoice/model/alternative_display_item.py +++ b/xendit/invoice/model/alternative_display_item.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/bad_request_error.py b/xendit/invoice/model/bad_request_error.py index 38c55b24..7d12dd68 100644 --- a/xendit/invoice/model/bad_request_error.py +++ b/xendit/invoice/model/bad_request_error.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/bank.py b/xendit/invoice/model/bank.py index 2c726e47..89a86e46 100644 --- a/xendit/invoice/model/bank.py +++ b/xendit/invoice/model/bank.py @@ -29,7 +29,6 @@ globals()['AlternativeDisplayItem'] = AlternativeDisplayItem globals()['BankCode'] = BankCode - def lazy_import(): pass diff --git a/xendit/invoice/model/bank_code.py b/xendit/invoice/model/bank_code.py index 519b6606..62587109 100644 --- a/xendit/invoice/model/bank_code.py +++ b/xendit/invoice/model/bank_code.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/create_invoice_request.py b/xendit/invoice/model/create_invoice_request.py index 6e47a9a4..b330b33b 100644 --- a/xendit/invoice/model/create_invoice_request.py +++ b/xendit/invoice/model/create_invoice_request.py @@ -33,7 +33,6 @@ globals()['InvoiceItem'] = InvoiceItem globals()['NotificationPreference'] = NotificationPreference - def lazy_import(): pass diff --git a/xendit/invoice/model/customer_object.py b/xendit/invoice/model/customer_object.py index cbcc2451..c81a8f49 100644 --- a/xendit/invoice/model/customer_object.py +++ b/xendit/invoice/model/customer_object.py @@ -27,7 +27,6 @@ from xendit.invoice.model.address_object import AddressObject globals()['AddressObject'] = AddressObject - def lazy_import(): pass diff --git a/xendit/invoice/model/direct_debit.py b/xendit/invoice/model/direct_debit.py index cd591d9c..5fcf53ea 100644 --- a/xendit/invoice/model/direct_debit.py +++ b/xendit/invoice/model/direct_debit.py @@ -27,7 +27,6 @@ from xendit.invoice.model.direct_debit_type import DirectDebitType globals()['DirectDebitType'] = DirectDebitType - def lazy_import(): pass diff --git a/xendit/invoice/model/direct_debit_type.py b/xendit/invoice/model/direct_debit_type.py index 62bb9914..40def0ab 100644 --- a/xendit/invoice/model/direct_debit_type.py +++ b/xendit/invoice/model/direct_debit_type.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/ewallet.py b/xendit/invoice/model/ewallet.py index 1602bcb9..7945ad20 100644 --- a/xendit/invoice/model/ewallet.py +++ b/xendit/invoice/model/ewallet.py @@ -27,7 +27,6 @@ from xendit.invoice.model.ewallet_type import EwalletType globals()['EwalletType'] = EwalletType - def lazy_import(): pass diff --git a/xendit/invoice/model/ewallet_type.py b/xendit/invoice/model/ewallet_type.py index 4ccf7fc7..345e5fdf 100644 --- a/xendit/invoice/model/ewallet_type.py +++ b/xendit/invoice/model/ewallet_type.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/forbidden_error.py b/xendit/invoice/model/forbidden_error.py index e36d4c35..230953b3 100644 --- a/xendit/invoice/model/forbidden_error.py +++ b/xendit/invoice/model/forbidden_error.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/invoice.py b/xendit/invoice/model/invoice.py index a189cd9b..245099cc 100644 --- a/xendit/invoice/model/invoice.py +++ b/xendit/invoice/model/invoice.py @@ -51,7 +51,6 @@ globals()['QrCode'] = QrCode globals()['RetailOutlet'] = RetailOutlet - def lazy_import(): pass diff --git a/xendit/invoice/model/invoice_client_type.py b/xendit/invoice/model/invoice_client_type.py index f4e4f25a..2a7030b4 100644 --- a/xendit/invoice/model/invoice_client_type.py +++ b/xendit/invoice/model/invoice_client_type.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/invoice_currency.py b/xendit/invoice/model/invoice_currency.py index 1ddb1235..0f36ac5a 100644 --- a/xendit/invoice/model/invoice_currency.py +++ b/xendit/invoice/model/invoice_currency.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/invoice_error404_response_definition.py b/xendit/invoice/model/invoice_error404_response_definition.py index 6bb82e79..5b1cd9c3 100644 --- a/xendit/invoice/model/invoice_error404_response_definition.py +++ b/xendit/invoice/model/invoice_error404_response_definition.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/invoice_fee.py b/xendit/invoice/model/invoice_fee.py index b8443705..0893d892 100644 --- a/xendit/invoice/model/invoice_fee.py +++ b/xendit/invoice/model/invoice_fee.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/invoice_item.py b/xendit/invoice/model/invoice_item.py index c3927eba..2cbe38a1 100644 --- a/xendit/invoice/model/invoice_item.py +++ b/xendit/invoice/model/invoice_item.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/invoice_not_found_error.py b/xendit/invoice/model/invoice_not_found_error.py index 41c52f41..78edb7cc 100644 --- a/xendit/invoice/model/invoice_not_found_error.py +++ b/xendit/invoice/model/invoice_not_found_error.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/invoice_payment_method.py b/xendit/invoice/model/invoice_payment_method.py index 71dee369..28844ccd 100644 --- a/xendit/invoice/model/invoice_payment_method.py +++ b/xendit/invoice/model/invoice_payment_method.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/invoice_status.py b/xendit/invoice/model/invoice_status.py index c760a8b2..60bc1bef 100644 --- a/xendit/invoice/model/invoice_status.py +++ b/xendit/invoice/model/invoice_status.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/notification_channel.py b/xendit/invoice/model/notification_channel.py index 4b9cf300..d6a062e6 100644 --- a/xendit/invoice/model/notification_channel.py +++ b/xendit/invoice/model/notification_channel.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/notification_preference.py b/xendit/invoice/model/notification_preference.py index f69b95dd..8f1f20b2 100644 --- a/xendit/invoice/model/notification_preference.py +++ b/xendit/invoice/model/notification_preference.py @@ -27,7 +27,6 @@ from xendit.invoice.model.notification_channel import NotificationChannel globals()['NotificationChannel'] = NotificationChannel - def lazy_import(): pass diff --git a/xendit/invoice/model/paylater.py b/xendit/invoice/model/paylater.py index 56926f08..462592b9 100644 --- a/xendit/invoice/model/paylater.py +++ b/xendit/invoice/model/paylater.py @@ -27,7 +27,6 @@ from xendit.invoice.model.paylater_type import PaylaterType globals()['PaylaterType'] = PaylaterType - def lazy_import(): pass diff --git a/xendit/invoice/model/paylater_type.py b/xendit/invoice/model/paylater_type.py index edb1c26b..e4ffd1fc 100644 --- a/xendit/invoice/model/paylater_type.py +++ b/xendit/invoice/model/paylater_type.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/qr_code.py b/xendit/invoice/model/qr_code.py index 80236ed7..977b4188 100644 --- a/xendit/invoice/model/qr_code.py +++ b/xendit/invoice/model/qr_code.py @@ -27,7 +27,6 @@ from xendit.invoice.model.qr_code_type import QrCodeType globals()['QrCodeType'] = QrCodeType - def lazy_import(): pass diff --git a/xendit/invoice/model/qr_code_type.py b/xendit/invoice/model/qr_code_type.py index f868299f..89fbc1f4 100644 --- a/xendit/invoice/model/qr_code_type.py +++ b/xendit/invoice/model/qr_code_type.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/retail_outlet.py b/xendit/invoice/model/retail_outlet.py index 80f80a0b..9e6afc0a 100644 --- a/xendit/invoice/model/retail_outlet.py +++ b/xendit/invoice/model/retail_outlet.py @@ -27,7 +27,6 @@ from xendit.invoice.model.retail_outlet_name import RetailOutletName globals()['RetailOutletName'] = RetailOutletName - def lazy_import(): pass diff --git a/xendit/invoice/model/retail_outlet_name.py b/xendit/invoice/model/retail_outlet_name.py index 0bf8cd3b..fa156707 100644 --- a/xendit/invoice/model/retail_outlet_name.py +++ b/xendit/invoice/model/retail_outlet_name.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/server_error.py b/xendit/invoice/model/server_error.py index 088a348a..54caac54 100644 --- a/xendit/invoice/model/server_error.py +++ b/xendit/invoice/model/server_error.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/invoice/model/unauthorized_error.py b/xendit/invoice/model/unauthorized_error.py index 83c489ee..b3ac6b77 100644 --- a/xendit/invoice/model/unauthorized_error.py +++ b/xendit/invoice/model/unauthorized_error.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/model_utils.py b/xendit/model_utils.py index 6f252e47..4f8be948 100644 --- a/xendit/model_utils.py +++ b/xendit/model_utils.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.44.1 """ diff --git a/xendit/payment_method/model/__init__.py b/xendit/payment_method/model/__init__.py index 28c359fc..96ddd968 100644 --- a/xendit/payment_method/model/__init__.py +++ b/xendit/payment_method/model/__init__.py @@ -16,10 +16,6 @@ from xendit.payment_method.model.card_parameters_card_information import CardParametersCardInformation from xendit.payment_method.model.card_verification_results import CardVerificationResults from xendit.payment_method.model.card_verification_results_three_d_secure import CardVerificationResultsThreeDSecure -from xendit.payment_method.model.channel_amount_limits import ChannelAmountLimits -from xendit.payment_method.model.channel_amount_limits_all_of import ChannelAmountLimitsAllOf -from xendit.payment_method.model.channel_property import ChannelProperty -from xendit.payment_method.model.channel_property_all_of import ChannelPropertyAllOf from xendit.payment_method.model.create_payment_method409_response import CreatePaymentMethod409Response from xendit.payment_method.model.create_payment_method503_response import CreatePaymentMethod503Response from xendit.payment_method.model.direct_debit import DirectDebit @@ -45,11 +41,6 @@ from xendit.payment_method.model.over_the_counter_channel_properties_update import OverTheCounterChannelPropertiesUpdate from xendit.payment_method.model.over_the_counter_parameters import OverTheCounterParameters from xendit.payment_method.model.over_the_counter_update_parameters import OverTheCounterUpdateParameters -from xendit.payment_method.model.payment_channel import PaymentChannel -from xendit.payment_method.model.payment_channel_all_of import PaymentChannelAllOf -from xendit.payment_method.model.payment_channel_list import PaymentChannelList -from xendit.payment_method.model.payment_channel_list_links_inner import PaymentChannelListLinksInner -from xendit.payment_method.model.payment_channel_list_links_inner_all_of import PaymentChannelListLinksInnerAllOf from xendit.payment_method.model.payment_method import PaymentMethod from xendit.payment_method.model.payment_method_action import PaymentMethodAction from xendit.payment_method.model.payment_method_auth_parameters import PaymentMethodAuthParameters diff --git a/xendit/payment_method/model/billing_information.py b/xendit/payment_method/model/billing_information.py index 2748be82..e6eef973 100644 --- a/xendit/payment_method/model/billing_information.py +++ b/xendit/payment_method/model/billing_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/card.py b/xendit/payment_method/model/card.py index 18ebb224..4a6d2ff2 100644 --- a/xendit/payment_method/model/card.py +++ b/xendit/payment_method/model/card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -31,7 +31,6 @@ globals()['CardVerificationResults'] = CardVerificationResults globals()['TokenizedCardInformation'] = TokenizedCardInformation - def lazy_import(): pass @@ -209,8 +208,8 @@ def _from_openapi_data(cls, currency, channel_properties, *args, **kwargs): # n @convert_js_args_to_python_args def __init__(self, - currency: str, - channel_properties: CardChannelProperties, + currency: str | None, + channel_properties: CardChannelProperties | None, card_information: TokenizedCardInformation | None = None, card_verification_results: CardVerificationResults | None = None, *args, **kwargs diff --git a/xendit/payment_method/model/card_channel_properties.py b/xendit/payment_method/model/card_channel_properties.py index eb932e84..9431f11c 100644 --- a/xendit/payment_method/model/card_channel_properties.py +++ b/xendit/payment_method/model/card_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/card_parameters.py b/xendit/payment_method/model/card_parameters.py index ff7b3c6d..fa2b305a 100644 --- a/xendit/payment_method/model/card_parameters.py +++ b/xendit/payment_method/model/card_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -29,7 +29,6 @@ globals()['CardChannelProperties'] = CardChannelProperties globals()['CardParametersCardInformation'] = CardParametersCardInformation - def lazy_import(): pass diff --git a/xendit/payment_method/model/card_parameters_card_information.py b/xendit/payment_method/model/card_parameters_card_information.py index e3f7236a..45438751 100644 --- a/xendit/payment_method/model/card_parameters_card_information.py +++ b/xendit/payment_method/model/card_parameters_card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/card_verification_results.py b/xendit/payment_method/model/card_verification_results.py index 994a3168..7c6ecb8f 100644 --- a/xendit/payment_method/model/card_verification_results.py +++ b/xendit/payment_method/model/card_verification_results.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -27,7 +27,6 @@ from xendit.payment_method.model.card_verification_results_three_d_secure import CardVerificationResultsThreeDSecure globals()['CardVerificationResultsThreeDSecure'] = CardVerificationResultsThreeDSecure - def lazy_import(): pass @@ -201,7 +200,7 @@ def _from_openapi_data(cls, three_d_secure, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, - three_d_secure: CardVerificationResultsThreeDSecure, + three_d_secure: CardVerificationResultsThreeDSecure | None, cvv_result: str | None = None, address_verification_result: str | None = None, *args, **kwargs diff --git a/xendit/payment_method/model/card_verification_results_three_d_secure.py b/xendit/payment_method/model/card_verification_results_three_d_secure.py index 7e6e4d3f..bdf9b9d4 100644 --- a/xendit/payment_method/model/card_verification_results_three_d_secure.py +++ b/xendit/payment_method/model/card_verification_results_three_d_secure.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/create_payment_method409_response.py b/xendit/payment_method/model/create_payment_method409_response.py index 447209c7..aefa2bbd 100644 --- a/xendit/payment_method/model/create_payment_method409_response.py +++ b/xendit/payment_method/model/create_payment_method409_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/create_payment_method503_response.py b/xendit/payment_method/model/create_payment_method503_response.py index a20120a8..4b664a4b 100644 --- a/xendit/payment_method/model/create_payment_method503_response.py +++ b/xendit/payment_method/model/create_payment_method503_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/direct_debit.py b/xendit/payment_method/model/direct_debit.py index ab63a44e..ef62d786 100644 --- a/xendit/payment_method/model/direct_debit.py +++ b/xendit/payment_method/model/direct_debit.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -39,7 +39,6 @@ globals()['DirectDebitParameters'] = DirectDebitParameters globals()['DirectDebitType'] = DirectDebitType - def lazy_import(): pass diff --git a/xendit/payment_method/model/direct_debit_all_of.py b/xendit/payment_method/model/direct_debit_all_of.py index 0c7af953..283d6b58 100644 --- a/xendit/payment_method/model/direct_debit_all_of.py +++ b/xendit/payment_method/model/direct_debit_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -31,7 +31,6 @@ globals()['DirectDebitDebitCard'] = DirectDebitDebitCard globals()['DirectDebitType'] = DirectDebitType - def lazy_import(): pass diff --git a/xendit/payment_method/model/direct_debit_bank_account.py b/xendit/payment_method/model/direct_debit_bank_account.py index 9da05c77..fc6b11a3 100644 --- a/xendit/payment_method/model/direct_debit_bank_account.py +++ b/xendit/payment_method/model/direct_debit_bank_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/direct_debit_channel_code.py b/xendit/payment_method/model/direct_debit_channel_code.py index 778f6ec7..9a2662e0 100644 --- a/xendit/payment_method/model/direct_debit_channel_code.py +++ b/xendit/payment_method/model/direct_debit_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/direct_debit_channel_properties.py b/xendit/payment_method/model/direct_debit_channel_properties.py index e4868773..dd914aad 100644 --- a/xendit/payment_method/model/direct_debit_channel_properties.py +++ b/xendit/payment_method/model/direct_debit_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/direct_debit_debit_card.py b/xendit/payment_method/model/direct_debit_debit_card.py index aae4a37a..7efc0f71 100644 --- a/xendit/payment_method/model/direct_debit_debit_card.py +++ b/xendit/payment_method/model/direct_debit_debit_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/direct_debit_parameters.py b/xendit/payment_method/model/direct_debit_parameters.py index dbaf309d..71b41659 100644 --- a/xendit/payment_method/model/direct_debit_parameters.py +++ b/xendit/payment_method/model/direct_debit_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -29,7 +29,6 @@ globals()['DirectDebitChannelCode'] = DirectDebitChannelCode globals()['DirectDebitChannelProperties'] = DirectDebitChannelProperties - def lazy_import(): pass @@ -202,7 +201,7 @@ def _from_openapi_data(cls, channel_code, channel_properties, *args, **kwargs): @convert_js_args_to_python_args def __init__(self, channel_code: DirectDebitChannelCode, - channel_properties: DirectDebitChannelProperties, + channel_properties: DirectDebitChannelProperties | None, *args, **kwargs ): # noqa: E501 """DirectDebitParameters - a model defined in OpenAPI diff --git a/xendit/payment_method/model/direct_debit_type.py b/xendit/payment_method/model/direct_debit_type.py index c46da87d..8c4c7841 100644 --- a/xendit/payment_method/model/direct_debit_type.py +++ b/xendit/payment_method/model/direct_debit_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/e_wallet.py b/xendit/payment_method/model/e_wallet.py index 305903f0..80058a6b 100644 --- a/xendit/payment_method/model/e_wallet.py +++ b/xendit/payment_method/model/e_wallet.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -33,7 +33,6 @@ globals()['EWalletChannelProperties'] = EWalletChannelProperties globals()['EWalletParameters'] = EWalletParameters - def lazy_import(): pass diff --git a/xendit/payment_method/model/e_wallet_account.py b/xendit/payment_method/model/e_wallet_account.py index 37d3637b..c39c4740 100644 --- a/xendit/payment_method/model/e_wallet_account.py +++ b/xendit/payment_method/model/e_wallet_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/e_wallet_channel_code.py b/xendit/payment_method/model/e_wallet_channel_code.py index 91aec071..968abe21 100644 --- a/xendit/payment_method/model/e_wallet_channel_code.py +++ b/xendit/payment_method/model/e_wallet_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/e_wallet_channel_properties.py b/xendit/payment_method/model/e_wallet_channel_properties.py index 63b6de21..18ed7903 100644 --- a/xendit/payment_method/model/e_wallet_channel_properties.py +++ b/xendit/payment_method/model/e_wallet_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/e_wallet_parameters.py b/xendit/payment_method/model/e_wallet_parameters.py index 6d926426..dcc6c149 100644 --- a/xendit/payment_method/model/e_wallet_parameters.py +++ b/xendit/payment_method/model/e_wallet_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -31,7 +31,6 @@ globals()['EWalletChannelCode'] = EWalletChannelCode globals()['EWalletChannelProperties'] = EWalletChannelProperties - def lazy_import(): pass diff --git a/xendit/payment_method/model/get_all_payment_methods400_response.py b/xendit/payment_method/model/get_all_payment_methods400_response.py index c4308d4b..d29ea866 100644 --- a/xendit/payment_method/model/get_all_payment_methods400_response.py +++ b/xendit/payment_method/model/get_all_payment_methods400_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/get_all_payment_methods403_response.py b/xendit/payment_method/model/get_all_payment_methods403_response.py index d0b7f388..a2b258be 100644 --- a/xendit/payment_method/model/get_all_payment_methods403_response.py +++ b/xendit/payment_method/model/get_all_payment_methods403_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/get_all_payment_methods404_response.py b/xendit/payment_method/model/get_all_payment_methods404_response.py index 07767b1a..17da3cca 100644 --- a/xendit/payment_method/model/get_all_payment_methods404_response.py +++ b/xendit/payment_method/model/get_all_payment_methods404_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/get_all_payment_methods_default_response.py b/xendit/payment_method/model/get_all_payment_methods_default_response.py index 85f387b4..0aec569b 100644 --- a/xendit/payment_method/model/get_all_payment_methods_default_response.py +++ b/xendit/payment_method/model/get_all_payment_methods_default_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/over_the_counter.py b/xendit/payment_method/model/over_the_counter.py index 12abbe12..de2a52cb 100644 --- a/xendit/payment_method/model/over_the_counter.py +++ b/xendit/payment_method/model/over_the_counter.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -31,7 +31,6 @@ globals()['OverTheCounterChannelProperties'] = OverTheCounterChannelProperties globals()['OverTheCounterParameters'] = OverTheCounterParameters - def lazy_import(): pass diff --git a/xendit/payment_method/model/over_the_counter_channel_code.py b/xendit/payment_method/model/over_the_counter_channel_code.py index 1dbe9f0a..adf6ebfa 100644 --- a/xendit/payment_method/model/over_the_counter_channel_code.py +++ b/xendit/payment_method/model/over_the_counter_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/over_the_counter_channel_properties.py b/xendit/payment_method/model/over_the_counter_channel_properties.py index 95935a60..4058c2c2 100644 --- a/xendit/payment_method/model/over_the_counter_channel_properties.py +++ b/xendit/payment_method/model/over_the_counter_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/over_the_counter_channel_properties_update.py b/xendit/payment_method/model/over_the_counter_channel_properties_update.py index bd7e0a1f..2844a4be 100644 --- a/xendit/payment_method/model/over_the_counter_channel_properties_update.py +++ b/xendit/payment_method/model/over_the_counter_channel_properties_update.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/over_the_counter_parameters.py b/xendit/payment_method/model/over_the_counter_parameters.py index 247fef2c..b9d8e99b 100644 --- a/xendit/payment_method/model/over_the_counter_parameters.py +++ b/xendit/payment_method/model/over_the_counter_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -29,7 +29,6 @@ globals()['OverTheCounterChannelCode'] = OverTheCounterChannelCode globals()['OverTheCounterChannelProperties'] = OverTheCounterChannelProperties - def lazy_import(): pass diff --git a/xendit/payment_method/model/over_the_counter_update_parameters.py b/xendit/payment_method/model/over_the_counter_update_parameters.py index ea248be6..29add14d 100644 --- a/xendit/payment_method/model/over_the_counter_update_parameters.py +++ b/xendit/payment_method/model/over_the_counter_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -27,7 +27,6 @@ from xendit.payment_method.model.over_the_counter_channel_properties_update import OverTheCounterChannelPropertiesUpdate globals()['OverTheCounterChannelPropertiesUpdate'] = OverTheCounterChannelPropertiesUpdate - def lazy_import(): pass diff --git a/xendit/payment_method/model/payment_method.py b/xendit/payment_method/model/payment_method.py index 0624a290..0a6e38da 100644 --- a/xendit/payment_method/model/payment_method.py +++ b/xendit/payment_method/model/payment_method.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -49,7 +49,6 @@ globals()['QRCode'] = QRCode globals()['VirtualAccount'] = VirtualAccount - def lazy_import(): pass diff --git a/xendit/payment_method/model/payment_method_action.py b/xendit/payment_method/model/payment_method_action.py index 8eca725d..cc31d211 100644 --- a/xendit/payment_method/model/payment_method_action.py +++ b/xendit/payment_method/model/payment_method_action.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/payment_method_auth_parameters.py b/xendit/payment_method/model/payment_method_auth_parameters.py index ca9bae8c..1e5ecf5e 100644 --- a/xendit/payment_method/model/payment_method_auth_parameters.py +++ b/xendit/payment_method/model/payment_method_auth_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/payment_method_country.py b/xendit/payment_method/model/payment_method_country.py index 7ecc1c97..b633cf62 100644 --- a/xendit/payment_method/model/payment_method_country.py +++ b/xendit/payment_method/model/payment_method_country.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/payment_method_expire_parameters.py b/xendit/payment_method/model/payment_method_expire_parameters.py index a011e6c8..4ffbe823 100644 --- a/xendit/payment_method/model/payment_method_expire_parameters.py +++ b/xendit/payment_method/model/payment_method_expire_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/payment_method_list.py b/xendit/payment_method/model/payment_method_list.py index aa453e0e..90a0d739 100644 --- a/xendit/payment_method/model/payment_method_list.py +++ b/xendit/payment_method/model/payment_method_list.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -27,7 +27,6 @@ from xendit.payment_method.model.payment_method import PaymentMethod globals()['PaymentMethod'] = PaymentMethod - def lazy_import(): pass diff --git a/xendit/payment_method/model/payment_method_parameters.py b/xendit/payment_method/model/payment_method_parameters.py index e0f6275b..87b8f81c 100644 --- a/xendit/payment_method/model/payment_method_parameters.py +++ b/xendit/payment_method/model/payment_method_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -43,7 +43,6 @@ globals()['QRCodeParameters'] = QRCodeParameters globals()['VirtualAccountParameters'] = VirtualAccountParameters - def lazy_import(): pass diff --git a/xendit/payment_method/model/payment_method_reusability.py b/xendit/payment_method/model/payment_method_reusability.py index 8e8ac438..906648c6 100644 --- a/xendit/payment_method/model/payment_method_reusability.py +++ b/xendit/payment_method/model/payment_method_reusability.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/payment_method_status.py b/xendit/payment_method/model/payment_method_status.py index 0aeeafbe..304f3160 100644 --- a/xendit/payment_method/model/payment_method_status.py +++ b/xendit/payment_method/model/payment_method_status.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/payment_method_type.py b/xendit/payment_method/model/payment_method_type.py index b60bddca..c4e5513b 100644 --- a/xendit/payment_method/model/payment_method_type.py +++ b/xendit/payment_method/model/payment_method_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/payment_method_update_parameters.py b/xendit/payment_method/model/payment_method_update_parameters.py index a914b272..084fe502 100644 --- a/xendit/payment_method/model/payment_method_update_parameters.py +++ b/xendit/payment_method/model/payment_method_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -33,7 +33,6 @@ globals()['PaymentMethodStatus'] = PaymentMethodStatus globals()['VirtualAccountUpdateParameters'] = VirtualAccountUpdateParameters - def lazy_import(): pass diff --git a/xendit/payment_method/model/qr_code.py b/xendit/payment_method/model/qr_code.py index c4d18aec..1e87879c 100644 --- a/xendit/payment_method/model/qr_code.py +++ b/xendit/payment_method/model/qr_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -31,7 +31,6 @@ globals()['QRCodeChannelProperties'] = QRCodeChannelProperties globals()['QRCodeParameters'] = QRCodeParameters - def lazy_import(): pass diff --git a/xendit/payment_method/model/qr_code_channel_code.py b/xendit/payment_method/model/qr_code_channel_code.py index fb8f9519..8fad3f16 100644 --- a/xendit/payment_method/model/qr_code_channel_code.py +++ b/xendit/payment_method/model/qr_code_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/qr_code_channel_properties.py b/xendit/payment_method/model/qr_code_channel_properties.py index 0a37df36..7f0ed628 100644 --- a/xendit/payment_method/model/qr_code_channel_properties.py +++ b/xendit/payment_method/model/qr_code_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/qr_code_parameters.py b/xendit/payment_method/model/qr_code_parameters.py index 1e5ad53c..91dd319a 100644 --- a/xendit/payment_method/model/qr_code_parameters.py +++ b/xendit/payment_method/model/qr_code_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -29,7 +29,6 @@ globals()['QRCodeChannelCode'] = QRCodeChannelCode globals()['QRCodeChannelProperties'] = QRCodeChannelProperties - def lazy_import(): pass diff --git a/xendit/payment_method/model/simulate_payment_request.py b/xendit/payment_method/model/simulate_payment_request.py index c33a8972..b0a2e3fc 100644 --- a/xendit/payment_method/model/simulate_payment_request.py +++ b/xendit/payment_method/model/simulate_payment_request.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/tokenized_card_information.py b/xendit/payment_method/model/tokenized_card_information.py index 6a8b5b8e..08670494 100644 --- a/xendit/payment_method/model/tokenized_card_information.py +++ b/xendit/payment_method/model/tokenized_card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/virtual_account.py b/xendit/payment_method/model/virtual_account.py index 6ad1886f..6b2a4e44 100644 --- a/xendit/payment_method/model/virtual_account.py +++ b/xendit/payment_method/model/virtual_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -35,7 +35,6 @@ globals()['VirtualAccountChannelProperties'] = VirtualAccountChannelProperties globals()['VirtualAccountParameters'] = VirtualAccountParameters - def lazy_import(): pass diff --git a/xendit/payment_method/model/virtual_account_all_of.py b/xendit/payment_method/model/virtual_account_all_of.py index 0347f676..d0ec870f 100644 --- a/xendit/payment_method/model/virtual_account_all_of.py +++ b/xendit/payment_method/model/virtual_account_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -27,7 +27,6 @@ from xendit.payment_method.model.virtual_account_alternative_display import VirtualAccountAlternativeDisplay globals()['VirtualAccountAlternativeDisplay'] = VirtualAccountAlternativeDisplay - def lazy_import(): pass diff --git a/xendit/payment_method/model/virtual_account_alternative_display.py b/xendit/payment_method/model/virtual_account_alternative_display.py index 228618e6..efa7a73d 100644 --- a/xendit/payment_method/model/virtual_account_alternative_display.py +++ b/xendit/payment_method/model/virtual_account_alternative_display.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/virtual_account_channel_code.py b/xendit/payment_method/model/virtual_account_channel_code.py index 41c44eed..a91faaad 100644 --- a/xendit/payment_method/model/virtual_account_channel_code.py +++ b/xendit/payment_method/model/virtual_account_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/virtual_account_channel_properties.py b/xendit/payment_method/model/virtual_account_channel_properties.py index 13e26115..132fdd20 100644 --- a/xendit/payment_method/model/virtual_account_channel_properties.py +++ b/xendit/payment_method/model/virtual_account_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/virtual_account_channel_properties_patch.py b/xendit/payment_method/model/virtual_account_channel_properties_patch.py index a7baad55..83341979 100644 --- a/xendit/payment_method/model/virtual_account_channel_properties_patch.py +++ b/xendit/payment_method/model/virtual_account_channel_properties_patch.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_method/model/virtual_account_parameters.py b/xendit/payment_method/model/virtual_account_parameters.py index 7d06b4cb..ca5f2a7c 100644 --- a/xendit/payment_method/model/virtual_account_parameters.py +++ b/xendit/payment_method/model/virtual_account_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -29,7 +29,6 @@ globals()['VirtualAccountChannelCode'] = VirtualAccountChannelCode globals()['VirtualAccountChannelProperties'] = VirtualAccountChannelProperties - def lazy_import(): pass diff --git a/xendit/payment_method/model/virtual_account_update_parameters.py b/xendit/payment_method/model/virtual_account_update_parameters.py index 8888d7e9..e32c22b7 100644 --- a/xendit/payment_method/model/virtual_account_update_parameters.py +++ b/xendit/payment_method/model/virtual_account_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 2.89.1 """ @@ -27,7 +27,6 @@ from xendit.payment_method.model.virtual_account_channel_properties_patch import VirtualAccountChannelPropertiesPatch globals()['VirtualAccountChannelPropertiesPatch'] = VirtualAccountChannelPropertiesPatch - def lazy_import(): pass diff --git a/xendit/payment_method/payment_method_api.py b/xendit/payment_method/payment_method_api.py index d28d7482..7f7a521e 100644 --- a/xendit/payment_method/payment_method_api.py +++ b/xendit/payment_method/payment_method_api.py @@ -3,7 +3,7 @@ This API is used for Payment Method Service v2 # noqa: E501 - The version of the OpenAPI document: 2.87.2 + The version of the OpenAPI document: 2.89.1 """ import re # noqa: F401 @@ -191,64 +191,6 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_all_payment_channels_endpoint = _Endpoint( - settings={ - 'response_type': (PaymentChannelList,), - 'auth': [], - 'endpoint_path': '/v2/payment_methods/channels', - 'operation_id': 'get_all_payment_channels', - 'http_method': 'GET', - 'servers': None, - }, - params_map={ - 'all': [ - 'is_activated', - 'type', - ], - 'required': [], - 'nullable': [ - ], - 'enum': [ - 'is_activated', - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - ('is_activated',): { - - "TRUE": True, - "FALSE": False - }, - }, - 'openapi_types': { - 'is_activated': - (bool,), - 'type': - (str,), - }, - 'attribute_map': { - 'is_activated': 'is_activated', - 'type': 'type', - }, - 'location_map': { - 'is_activated': 'query', - 'type': 'query', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/json' - ], - 'content_type': [], - }, - api_client=api_client - ) self.get_all_payment_methods_endpoint = _Endpoint( settings={ 'response_type': (PaymentMethodList,), @@ -874,92 +816,6 @@ def expire_payment_method( kwargs['payment_method_expire_parameters'] = payment_method_expire_parameters return self.expire_payment_method_endpoint.call_with_http_info(**kwargs) - def get_all_payment_channels( - self, - is_activated: Optional[bool] = True, - type: Optional[str] = None, - **kwargs - ) -> PaymentChannelList: - """Get all payment channels # noqa: E501 - - Get all payment channels # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_all_payment_channels(type, is_activated=True, async_req=True) - >>> result = thread.get() - - - Keyword Args: - is_activated (bool): [optional] if omitted the server will use the default value of True - type (str): [optional] - _return_http_data_only (bool): response data without head status - code and headers. Default is True. - _preload_content (bool): if False, the urllib3.HTTPResponse object - will be returned without reading/decoding response data. - Default is True. - _request_timeout (int/float/tuple): timeout setting for this request. If - one number provided, it will be total request timeout. It can also - be a pair (tuple) of (connection, read) timeouts. - Default is None. - _check_input_type (bool): specifies if type checking - should be done one the data sent to the server. - Default is True. - _check_return_type (bool): specifies if type checking - should be done one the data received from the server. - Default is True. - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - async_req (bool): execute request asynchronously - - Returns: - PaymentChannelList - If the method is called asynchronously, returns the request - thread. - """ - kwargs['async_req'] = kwargs.get( - 'async_req', False - ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True - ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True - ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None - ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True - ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True - ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - if is_activated is not None: - kwargs['is_activated'] = is_activated - if type is not None: - kwargs['type'] = type - return self.get_all_payment_channels_endpoint.call_with_http_info(**kwargs) - def get_all_payment_methods( self, id: Optional[List[str]] = None, diff --git a/xendit/payment_request/model/capture.py b/xendit/payment_request/model/capture.py index 3aff9acb..c4e99f94 100644 --- a/xendit/payment_request/model/capture.py +++ b/xendit/payment_request/model/capture.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -27,7 +27,6 @@ from xendit.payment_request.model.payment_method import PaymentMethod globals()['PaymentMethod'] = PaymentMethod - def lazy_import(): pass @@ -264,10 +263,10 @@ def __init__(self, captured_amount: float, status: str, payment_method: PaymentMethod, - failure_code: str, - customer_id: str, - metadata: dict, - channel_properties: dict, + failure_code: str | None, + customer_id: str | None, + metadata: dict | None, + channel_properties: dict | None, created: str, updated: str, *args, **kwargs diff --git a/xendit/payment_request/model/capture_list.py b/xendit/payment_request/model/capture_list.py index 917d7323..8ebc3bc9 100644 --- a/xendit/payment_request/model/capture_list.py +++ b/xendit/payment_request/model/capture_list.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -27,7 +27,6 @@ from xendit.payment_request.model.capture import Capture globals()['Capture'] = Capture - def lazy_import(): pass diff --git a/xendit/payment_request/model/capture_list_response.py b/xendit/payment_request/model/capture_list_response.py index 2ea72a90..74712174 100644 --- a/xendit/payment_request/model/capture_list_response.py +++ b/xendit/payment_request/model/capture_list_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -27,7 +27,6 @@ from xendit.payment_request.model.capture_list import CaptureList globals()['CaptureList'] = CaptureList - def lazy_import(): pass diff --git a/xendit/payment_request/model/capture_parameters.py b/xendit/payment_request/model/capture_parameters.py index 4f4f3fd1..a757aa88 100644 --- a/xendit/payment_request/model/capture_parameters.py +++ b/xendit/payment_request/model/capture_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/card.py b/xendit/payment_request/model/card.py index 38346002..5e20d1a9 100644 --- a/xendit/payment_request/model/card.py +++ b/xendit/payment_request/model/card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -33,7 +33,6 @@ globals()['CardVerificationResults'] = CardVerificationResults globals()['PaymentRequestCurrency'] = PaymentRequestCurrency - def lazy_import(): pass diff --git a/xendit/payment_request/model/card_channel_properties.py b/xendit/payment_request/model/card_channel_properties.py index 03454eab..a1546eea 100644 --- a/xendit/payment_request/model/card_channel_properties.py +++ b/xendit/payment_request/model/card_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/card_information.py b/xendit/payment_request/model/card_information.py index 47c01a7b..c4c45ba1 100644 --- a/xendit/payment_request/model/card_information.py +++ b/xendit/payment_request/model/card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/card_verification_results.py b/xendit/payment_request/model/card_verification_results.py index 920a0532..34d1420a 100644 --- a/xendit/payment_request/model/card_verification_results.py +++ b/xendit/payment_request/model/card_verification_results.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -27,7 +27,6 @@ from xendit.payment_request.model.card_verification_results_three_d_secure import CardVerificationResultsThreeDSecure globals()['CardVerificationResultsThreeDSecure'] = CardVerificationResultsThreeDSecure - def lazy_import(): pass diff --git a/xendit/payment_request/model/card_verification_results_three_d_secure.py b/xendit/payment_request/model/card_verification_results_three_d_secure.py index e5196392..55501667 100644 --- a/xendit/payment_request/model/card_verification_results_three_d_secure.py +++ b/xendit/payment_request/model/card_verification_results_three_d_secure.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/direct_debit.py b/xendit/payment_request/model/direct_debit.py index 962d3916..b89257aa 100644 --- a/xendit/payment_request/model/direct_debit.py +++ b/xendit/payment_request/model/direct_debit.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -39,7 +39,6 @@ globals()['DirectDebitParameters'] = DirectDebitParameters globals()['DirectDebitType'] = DirectDebitType - def lazy_import(): pass diff --git a/xendit/payment_request/model/direct_debit_all_of.py b/xendit/payment_request/model/direct_debit_all_of.py index 4b04dcbe..28f04927 100644 --- a/xendit/payment_request/model/direct_debit_all_of.py +++ b/xendit/payment_request/model/direct_debit_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -31,7 +31,6 @@ globals()['DirectDebitDebitCard'] = DirectDebitDebitCard globals()['DirectDebitType'] = DirectDebitType - def lazy_import(): pass diff --git a/xendit/payment_request/model/direct_debit_bank_account.py b/xendit/payment_request/model/direct_debit_bank_account.py index a94101ae..142c80ed 100644 --- a/xendit/payment_request/model/direct_debit_bank_account.py +++ b/xendit/payment_request/model/direct_debit_bank_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/direct_debit_channel_code.py b/xendit/payment_request/model/direct_debit_channel_code.py index 61e5c20b..9f8b4b61 100644 --- a/xendit/payment_request/model/direct_debit_channel_code.py +++ b/xendit/payment_request/model/direct_debit_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/direct_debit_channel_properties.py b/xendit/payment_request/model/direct_debit_channel_properties.py index cbc865d5..ae921727 100644 --- a/xendit/payment_request/model/direct_debit_channel_properties.py +++ b/xendit/payment_request/model/direct_debit_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -31,7 +31,6 @@ globals()['DirectDebitChannelPropertiesBankRedirect'] = DirectDebitChannelPropertiesBankRedirect globals()['DirectDebitChannelPropertiesDebitCard'] = DirectDebitChannelPropertiesDebitCard - def lazy_import(): pass diff --git a/xendit/payment_request/model/direct_debit_channel_properties_bank_account.py b/xendit/payment_request/model/direct_debit_channel_properties_bank_account.py index ac8b1a77..6a2550be 100644 --- a/xendit/payment_request/model/direct_debit_channel_properties_bank_account.py +++ b/xendit/payment_request/model/direct_debit_channel_properties_bank_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/direct_debit_channel_properties_bank_redirect.py b/xendit/payment_request/model/direct_debit_channel_properties_bank_redirect.py index e391fced..57f33885 100644 --- a/xendit/payment_request/model/direct_debit_channel_properties_bank_redirect.py +++ b/xendit/payment_request/model/direct_debit_channel_properties_bank_redirect.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/direct_debit_channel_properties_debit_card.py b/xendit/payment_request/model/direct_debit_channel_properties_debit_card.py index 5d49548f..54a08d0c 100644 --- a/xendit/payment_request/model/direct_debit_channel_properties_debit_card.py +++ b/xendit/payment_request/model/direct_debit_channel_properties_debit_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/direct_debit_debit_card.py b/xendit/payment_request/model/direct_debit_debit_card.py index ce4186f9..47763006 100644 --- a/xendit/payment_request/model/direct_debit_debit_card.py +++ b/xendit/payment_request/model/direct_debit_debit_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/direct_debit_parameters.py b/xendit/payment_request/model/direct_debit_parameters.py index bd13b4a9..7cfba9f4 100644 --- a/xendit/payment_request/model/direct_debit_parameters.py +++ b/xendit/payment_request/model/direct_debit_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -31,7 +31,6 @@ globals()['DirectDebitChannelProperties'] = DirectDebitChannelProperties globals()['DirectDebitType'] = DirectDebitType - def lazy_import(): pass @@ -207,7 +206,7 @@ def _from_openapi_data(cls, channel_code, channel_properties, *args, **kwargs): @convert_js_args_to_python_args def __init__(self, channel_code: DirectDebitChannelCode, - channel_properties: DirectDebitChannelProperties, + channel_properties: DirectDebitChannelProperties | None, type: DirectDebitType | None = None, *args, **kwargs ): # noqa: E501 diff --git a/xendit/payment_request/model/direct_debit_type.py b/xendit/payment_request/model/direct_debit_type.py index c1fbc1eb..471aeaeb 100644 --- a/xendit/payment_request/model/direct_debit_type.py +++ b/xendit/payment_request/model/direct_debit_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/e_wallet.py b/xendit/payment_request/model/e_wallet.py index 018710e3..26f3a68b 100644 --- a/xendit/payment_request/model/e_wallet.py +++ b/xendit/payment_request/model/e_wallet.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -35,7 +35,6 @@ globals()['EWalletChannelProperties'] = EWalletChannelProperties globals()['EWalletParameters'] = EWalletParameters - def lazy_import(): pass diff --git a/xendit/payment_request/model/e_wallet_account.py b/xendit/payment_request/model/e_wallet_account.py index 290d93a7..3604c2d1 100644 --- a/xendit/payment_request/model/e_wallet_account.py +++ b/xendit/payment_request/model/e_wallet_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/e_wallet_all_of.py b/xendit/payment_request/model/e_wallet_all_of.py index bad4519b..b29619dc 100644 --- a/xendit/payment_request/model/e_wallet_all_of.py +++ b/xendit/payment_request/model/e_wallet_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -27,7 +27,6 @@ from xendit.payment_request.model.e_wallet_account import EWalletAccount globals()['EWalletAccount'] = EWalletAccount - def lazy_import(): pass diff --git a/xendit/payment_request/model/e_wallet_channel_code.py b/xendit/payment_request/model/e_wallet_channel_code.py index 2375f155..bb9f3750 100644 --- a/xendit/payment_request/model/e_wallet_channel_code.py +++ b/xendit/payment_request/model/e_wallet_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/e_wallet_channel_properties.py b/xendit/payment_request/model/e_wallet_channel_properties.py index 6647fed9..b3bcef12 100644 --- a/xendit/payment_request/model/e_wallet_channel_properties.py +++ b/xendit/payment_request/model/e_wallet_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass @@ -99,7 +98,7 @@ def openapi_types(): 'failure_return_url': (str, none_type), # noqa: E501 'cancel_return_url': (str, none_type), # noqa: E501 'redeem_points': (str, none_type), # noqa: E501 - 'mobilenumber': (str, none_type), # noqa: E501 + 'mobile_number': (str, none_type), # noqa: E501 'cashtag': (str, none_type), # noqa: E501 } @@ -113,7 +112,7 @@ def discriminator(): 'failure_return_url': 'failure_return_url', # noqa: E501 'cancel_return_url': 'cancel_return_url', # noqa: E501 'redeem_points': 'redeem_points', # noqa: E501 - 'mobilenumber': 'mobile:number', # noqa: E501 + 'mobile_number': 'mobile_number', # noqa: E501 'cashtag': 'cashtag', # noqa: E501 } @@ -162,7 +161,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 failure_return_url (str): URL where the end-customer is redirected if the authorization failed. [optional] # noqa: E501 cancel_return_url (str): URL where the end-customer is redirected if the authorization cancelled. [optional] # noqa: E501 redeem_points (str): REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only.. [optional] # noqa: E501 - mobilenumber (str): [optional] # noqa: E501 + mobile_number (str): [optional] # noqa: E501 cashtag (str): [optional] # noqa: E501 """ @@ -222,7 +221,7 @@ def __init__(self, failure_return_url: str | None = None, cancel_return_url: str | None = None, redeem_points: str | None = None, - mobilenumber: str | None = None, + mobile_number: str | None = None, cashtag: str | None = None, *args, **kwargs ): # noqa: E501 @@ -264,7 +263,7 @@ def __init__(self, failure_return_url (str): URL where the end-customer is redirected if the authorization failed. [optional] # noqa: E501 cancel_return_url (str): URL where the end-customer is redirected if the authorization cancelled. [optional] # noqa: E501 redeem_points (str): REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only.. [optional] # noqa: E501 - mobilenumber (str): [optional] # noqa: E501 + mobile_number (str): [optional] # noqa: E501 cashtag (str): [optional] # noqa: E501 """ @@ -305,8 +304,8 @@ def __init__(self, self.cancel_return_url = cancel_return_url if redeem_points is not None: self.redeem_points = redeem_points - if mobilenumber is not None: - self.mobilenumber = mobilenumber + if mobile_number is not None: + self.mobile_number = mobile_number if cashtag is not None: self.cashtag = cashtag for var_name, var_value in kwargs.items(): diff --git a/xendit/payment_request/model/e_wallet_parameters.py b/xendit/payment_request/model/e_wallet_parameters.py index 7432a73a..5d8d9bba 100644 --- a/xendit/payment_request/model/e_wallet_parameters.py +++ b/xendit/payment_request/model/e_wallet_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -29,7 +29,6 @@ globals()['EWalletChannelCode'] = EWalletChannelCode globals()['EWalletChannelProperties'] = EWalletChannelProperties - def lazy_import(): pass diff --git a/xendit/payment_request/model/error.py b/xendit/payment_request/model/error.py index 9f6150d4..c484c211 100644 --- a/xendit/payment_request/model/error.py +++ b/xendit/payment_request/model/error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/over_the_counter.py b/xendit/payment_request/model/over_the_counter.py index 1bcb75e8..2c26e12a 100644 --- a/xendit/payment_request/model/over_the_counter.py +++ b/xendit/payment_request/model/over_the_counter.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -33,7 +33,6 @@ globals()['OverTheCounterParameters'] = OverTheCounterParameters globals()['PaymentRequestCurrency'] = PaymentRequestCurrency - def lazy_import(): pass diff --git a/xendit/payment_request/model/over_the_counter_channel_code.py b/xendit/payment_request/model/over_the_counter_channel_code.py index 53a16433..9f7bc506 100644 --- a/xendit/payment_request/model/over_the_counter_channel_code.py +++ b/xendit/payment_request/model/over_the_counter_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/over_the_counter_channel_properties.py b/xendit/payment_request/model/over_the_counter_channel_properties.py index 8a277fa8..a9f2539e 100644 --- a/xendit/payment_request/model/over_the_counter_channel_properties.py +++ b/xendit/payment_request/model/over_the_counter_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/over_the_counter_parameters.py b/xendit/payment_request/model/over_the_counter_parameters.py index 1c581acc..50e5d10d 100644 --- a/xendit/payment_request/model/over_the_counter_parameters.py +++ b/xendit/payment_request/model/over_the_counter_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -31,7 +31,6 @@ globals()['OverTheCounterChannelProperties'] = OverTheCounterChannelProperties globals()['PaymentRequestCurrency'] = PaymentRequestCurrency - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_method.py b/xendit/payment_request/model/payment_method.py index adfa6ccf..c4ee5c52 100644 --- a/xendit/payment_request/model/payment_method.py +++ b/xendit/payment_request/model/payment_method.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -43,7 +43,6 @@ globals()['QRCode'] = QRCode globals()['VirtualAccount'] = VirtualAccount - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_method_parameters.py b/xendit/payment_request/model/payment_method_parameters.py index ea58ca15..5ed7838f 100644 --- a/xendit/payment_request/model/payment_method_parameters.py +++ b/xendit/payment_request/model/payment_method_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -39,7 +39,6 @@ globals()['QRCodeParameters'] = QRCodeParameters globals()['VirtualAccountParameters'] = VirtualAccountParameters - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_method_reusability.py b/xendit/payment_request/model/payment_method_reusability.py index 4c9b81e1..8ba5628f 100644 --- a/xendit/payment_request/model/payment_method_reusability.py +++ b/xendit/payment_request/model/payment_method_reusability.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_method_status.py b/xendit/payment_request/model/payment_method_status.py index 4661773a..2736d1b6 100644 --- a/xendit/payment_request/model/payment_method_status.py +++ b/xendit/payment_request/model/payment_method_status.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_method_type.py b/xendit/payment_request/model/payment_method_type.py index 6543eb90..6f5e6707 100644 --- a/xendit/payment_request/model/payment_method_type.py +++ b/xendit/payment_request/model/payment_method_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request.py b/xendit/payment_request/model/payment_request.py index a7f00525..6825bb85 100644 --- a/xendit/payment_request/model/payment_request.py +++ b/xendit/payment_request/model/payment_request.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -45,7 +45,6 @@ globals()['PaymentRequestShippingInformation'] = PaymentRequestShippingInformation globals()['PaymentRequestStatus'] = PaymentRequestStatus - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request_action.py b/xendit/payment_request/model/payment_request_action.py index cdeac356..ba60db2b 100644 --- a/xendit/payment_request/model/payment_request_action.py +++ b/xendit/payment_request/model/payment_request_action.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass @@ -222,9 +221,9 @@ def _from_openapi_data(cls, action, url_type, method, url, qr_code, *args, **kwa def __init__(self, action: str, url_type: str, - method: str, - url: str, - qr_code: str, + method: str | None, + url: str | None, + qr_code: str | None, *args, **kwargs ): # noqa: E501 """PaymentRequestAction - a model defined in OpenAPI diff --git a/xendit/payment_request/model/payment_request_auth_parameters.py b/xendit/payment_request/model/payment_request_auth_parameters.py index 11a34994..89fdbd0a 100644 --- a/xendit/payment_request/model/payment_request_auth_parameters.py +++ b/xendit/payment_request/model/payment_request_auth_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request_basket.py b/xendit/payment_request/model/payment_request_basket.py index 6a663db8..edc024cd 100644 --- a/xendit/payment_request/model/payment_request_basket.py +++ b/xendit/payment_request/model/payment_request_basket.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -27,7 +27,6 @@ from xendit.payment_request.model.payment_request_basket_item import PaymentRequestBasketItem globals()['PaymentRequestBasketItem'] = PaymentRequestBasketItem - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request_basket_item.py b/xendit/payment_request/model/payment_request_basket_item.py index ee3abb5b..ceb38b7a 100644 --- a/xendit/payment_request/model/payment_request_basket_item.py +++ b/xendit/payment_request/model/payment_request_basket_item.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request_capture_method.py b/xendit/payment_request/model/payment_request_capture_method.py index 202d13f2..942efc98 100644 --- a/xendit/payment_request/model/payment_request_capture_method.py +++ b/xendit/payment_request/model/payment_request_capture_method.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request_card_verification_results.py b/xendit/payment_request/model/payment_request_card_verification_results.py index e460ee67..d3ef033f 100644 --- a/xendit/payment_request/model/payment_request_card_verification_results.py +++ b/xendit/payment_request/model/payment_request_card_verification_results.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -27,7 +27,6 @@ from xendit.payment_request.model.payment_request_card_verification_results_three_dee_secure import PaymentRequestCardVerificationResultsThreeDeeSecure globals()['PaymentRequestCardVerificationResultsThreeDeeSecure'] = PaymentRequestCardVerificationResultsThreeDeeSecure - def lazy_import(): pass @@ -201,7 +200,7 @@ def _from_openapi_data(cls, three_d_secure, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, - three_d_secure: PaymentRequestCardVerificationResultsThreeDeeSecure, + three_d_secure: PaymentRequestCardVerificationResultsThreeDeeSecure | None, cvv_result: str | None = None, address_verification_result: str | None = None, *args, **kwargs diff --git a/xendit/payment_request/model/payment_request_card_verification_results_three_dee_secure.py b/xendit/payment_request/model/payment_request_card_verification_results_three_dee_secure.py index 89ce927a..168c43bc 100644 --- a/xendit/payment_request/model/payment_request_card_verification_results_three_dee_secure.py +++ b/xendit/payment_request/model/payment_request_card_verification_results_three_dee_secure.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request_channel_properties.py b/xendit/payment_request/model/payment_request_channel_properties.py index 2d1af100..b80db562 100644 --- a/xendit/payment_request/model/payment_request_channel_properties.py +++ b/xendit/payment_request/model/payment_request_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request_country.py b/xendit/payment_request/model/payment_request_country.py index 0d4dbf20..d38e4db1 100644 --- a/xendit/payment_request/model/payment_request_country.py +++ b/xendit/payment_request/model/payment_request_country.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request_currency.py b/xendit/payment_request/model/payment_request_currency.py index ec5a9727..dcef1f6e 100644 --- a/xendit/payment_request/model/payment_request_currency.py +++ b/xendit/payment_request/model/payment_request_currency.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request_initiator.py b/xendit/payment_request/model/payment_request_initiator.py index d2f6daf7..b83fca13 100644 --- a/xendit/payment_request/model/payment_request_initiator.py +++ b/xendit/payment_request/model/payment_request_initiator.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request_list_response.py b/xendit/payment_request/model/payment_request_list_response.py index 9480dd12..b2c1ef05 100644 --- a/xendit/payment_request/model/payment_request_list_response.py +++ b/xendit/payment_request/model/payment_request_list_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -27,7 +27,6 @@ from xendit.payment_request.model.payment_request import PaymentRequest globals()['PaymentRequest'] = PaymentRequest - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request_parameters.py b/xendit/payment_request/model/payment_request_parameters.py index 6afcdb07..8baff99d 100644 --- a/xendit/payment_request/model/payment_request_parameters.py +++ b/xendit/payment_request/model/payment_request_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -39,7 +39,6 @@ globals()['PaymentRequestParametersChannelProperties'] = PaymentRequestParametersChannelProperties globals()['PaymentRequestShippingInformation'] = PaymentRequestShippingInformation - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request_parameters_channel_properties.py b/xendit/payment_request/model/payment_request_parameters_channel_properties.py index 5930b7ec..d6ba6347 100644 --- a/xendit/payment_request/model/payment_request_parameters_channel_properties.py +++ b/xendit/payment_request/model/payment_request_parameters_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -29,7 +29,6 @@ globals()['PaymentRequestChannelProperties'] = PaymentRequestChannelProperties globals()['PaymentRequestParametersChannelPropertiesAllOf'] = PaymentRequestParametersChannelPropertiesAllOf - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request_parameters_channel_properties_all_of.py b/xendit/payment_request/model/payment_request_parameters_channel_properties_all_of.py index d0dfe67f..8d7dd19c 100644 --- a/xendit/payment_request/model/payment_request_parameters_channel_properties_all_of.py +++ b/xendit/payment_request/model/payment_request_parameters_channel_properties_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request_shipping_information.py b/xendit/payment_request/model/payment_request_shipping_information.py index b0535f5f..8017d48c 100644 --- a/xendit/payment_request/model/payment_request_shipping_information.py +++ b/xendit/payment_request/model/payment_request_shipping_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/payment_request_status.py b/xendit/payment_request/model/payment_request_status.py index c2ff324c..caee3aeb 100644 --- a/xendit/payment_request/model/payment_request_status.py +++ b/xendit/payment_request/model/payment_request_status.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/qr_code.py b/xendit/payment_request/model/qr_code.py index b0480599..e6d9e1f0 100644 --- a/xendit/payment_request/model/qr_code.py +++ b/xendit/payment_request/model/qr_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -31,7 +31,6 @@ globals()['QRCodeChannelProperties'] = QRCodeChannelProperties globals()['QRCodeParameters'] = QRCodeParameters - def lazy_import(): pass diff --git a/xendit/payment_request/model/qr_code_channel_code.py b/xendit/payment_request/model/qr_code_channel_code.py index f4841f5c..58828be0 100644 --- a/xendit/payment_request/model/qr_code_channel_code.py +++ b/xendit/payment_request/model/qr_code_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/qr_code_channel_properties.py b/xendit/payment_request/model/qr_code_channel_properties.py index 52735beb..d966a6f9 100644 --- a/xendit/payment_request/model/qr_code_channel_properties.py +++ b/xendit/payment_request/model/qr_code_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/qr_code_parameters.py b/xendit/payment_request/model/qr_code_parameters.py index 5cbb40c6..e8680620 100644 --- a/xendit/payment_request/model/qr_code_parameters.py +++ b/xendit/payment_request/model/qr_code_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -29,7 +29,6 @@ globals()['QRCodeChannelCode'] = QRCodeChannelCode globals()['QRCodeChannelProperties'] = QRCodeChannelProperties - def lazy_import(): pass diff --git a/xendit/payment_request/model/virtual_account.py b/xendit/payment_request/model/virtual_account.py index fe8a3035..f7e65dcc 100644 --- a/xendit/payment_request/model/virtual_account.py +++ b/xendit/payment_request/model/virtual_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -37,7 +37,6 @@ globals()['VirtualAccountChannelProperties'] = VirtualAccountChannelProperties globals()['VirtualAccountParameters'] = VirtualAccountParameters - def lazy_import(): pass diff --git a/xendit/payment_request/model/virtual_account_all_of.py b/xendit/payment_request/model/virtual_account_all_of.py index 1c2e997c..85b2435f 100644 --- a/xendit/payment_request/model/virtual_account_all_of.py +++ b/xendit/payment_request/model/virtual_account_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -27,7 +27,6 @@ from xendit.payment_request.model.virtual_account_alternative_display import VirtualAccountAlternativeDisplay globals()['VirtualAccountAlternativeDisplay'] = VirtualAccountAlternativeDisplay - def lazy_import(): pass diff --git a/xendit/payment_request/model/virtual_account_alternative_display.py b/xendit/payment_request/model/virtual_account_alternative_display.py index b9523b57..b934522b 100644 --- a/xendit/payment_request/model/virtual_account_alternative_display.py +++ b/xendit/payment_request/model/virtual_account_alternative_display.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/virtual_account_channel_code.py b/xendit/payment_request/model/virtual_account_channel_code.py index 51f99153..3484b326 100644 --- a/xendit/payment_request/model/virtual_account_channel_code.py +++ b/xendit/payment_request/model/virtual_account_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/virtual_account_channel_properties.py b/xendit/payment_request/model/virtual_account_channel_properties.py index 41af5ffd..9e0ed112 100644 --- a/xendit/payment_request/model/virtual_account_channel_properties.py +++ b/xendit/payment_request/model/virtual_account_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payment_request/model/virtual_account_parameters.py b/xendit/payment_request/model/virtual_account_parameters.py index 213723d3..b54eff85 100644 --- a/xendit/payment_request/model/virtual_account_parameters.py +++ b/xendit/payment_request/model/virtual_account_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.0 + The version of the XENDIT API: 1.44.1 """ @@ -31,7 +31,6 @@ globals()['VirtualAccountChannelCode'] = VirtualAccountChannelCode globals()['VirtualAccountChannelProperties'] = VirtualAccountChannelProperties - def lazy_import(): pass diff --git a/xendit/payment_request/payment_request_api.py b/xendit/payment_request/payment_request_api.py index 4d179046..10186bff 100644 --- a/xendit/payment_request/payment_request_api.py +++ b/xendit/payment_request/payment_request_api.py @@ -3,7 +3,7 @@ This API is used for Payment Requests # noqa: E501 - The version of the OpenAPI document: 1.44.0 + The version of the OpenAPI document: 1.44.1 """ import re # noqa: F401 diff --git a/xendit/payout/model/channel.py b/xendit/payout/model/channel.py index aabf0371..5f9b7fe9 100644 --- a/xendit/payout/model/channel.py +++ b/xendit/payout/model/channel.py @@ -29,7 +29,6 @@ globals()['ChannelAmountLimits'] = ChannelAmountLimits globals()['ChannelCategory'] = ChannelCategory - def lazy_import(): pass diff --git a/xendit/payout/model/channel_account_type.py b/xendit/payout/model/channel_account_type.py index 816d3fb4..c0aa4efd 100644 --- a/xendit/payout/model/channel_account_type.py +++ b/xendit/payout/model/channel_account_type.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payout/model/channel_amount_limits.py b/xendit/payout/model/channel_amount_limits.py index 5e7cd357..b69f23f7 100644 --- a/xendit/payout/model/channel_amount_limits.py +++ b/xendit/payout/model/channel_amount_limits.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payout/model/channel_category.py b/xendit/payout/model/channel_category.py index ab1017c7..5b80071f 100644 --- a/xendit/payout/model/channel_category.py +++ b/xendit/payout/model/channel_category.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payout/model/create_payout_request.py b/xendit/payout/model/create_payout_request.py index 600b8b20..eb3847a1 100644 --- a/xendit/payout/model/create_payout_request.py +++ b/xendit/payout/model/create_payout_request.py @@ -29,7 +29,6 @@ globals()['DigitalPayoutChannelProperties'] = DigitalPayoutChannelProperties globals()['ReceiptNotification'] = ReceiptNotification - def lazy_import(): pass diff --git a/xendit/payout/model/digital_payout_channel_properties.py b/xendit/payout/model/digital_payout_channel_properties.py index d288588f..fb634640 100644 --- a/xendit/payout/model/digital_payout_channel_properties.py +++ b/xendit/payout/model/digital_payout_channel_properties.py @@ -27,7 +27,6 @@ from xendit.payout.model.channel_account_type import ChannelAccountType globals()['ChannelAccountType'] = ChannelAccountType - def lazy_import(): pass diff --git a/xendit/payout/model/error.py b/xendit/payout/model/error.py index 7349cb5f..690ceec2 100644 --- a/xendit/payout/model/error.py +++ b/xendit/payout/model/error.py @@ -27,7 +27,6 @@ from xendit.payout.model.error_errors_inner import ErrorErrorsInner globals()['ErrorErrorsInner'] = ErrorErrorsInner - def lazy_import(): pass diff --git a/xendit/payout/model/error_errors_inner.py b/xendit/payout/model/error_errors_inner.py index a20d52e8..0af1b944 100644 --- a/xendit/payout/model/error_errors_inner.py +++ b/xendit/payout/model/error_errors_inner.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payout/model/get_payouts200_response.py b/xendit/payout/model/get_payouts200_response.py index 54e6b9d8..d7b990ab 100644 --- a/xendit/payout/model/get_payouts200_response.py +++ b/xendit/payout/model/get_payouts200_response.py @@ -29,7 +29,6 @@ globals()['GetPayouts200ResponseDataInner'] = GetPayouts200ResponseDataInner globals()['GetPayouts200ResponseLinks'] = GetPayouts200ResponseLinks - def lazy_import(): pass diff --git a/xendit/payout/model/get_payouts200_response_data_inner.py b/xendit/payout/model/get_payouts200_response_data_inner.py index 228221b9..75d1abb6 100644 --- a/xendit/payout/model/get_payouts200_response_data_inner.py +++ b/xendit/payout/model/get_payouts200_response_data_inner.py @@ -31,7 +31,6 @@ globals()['Payout'] = Payout globals()['ReceiptNotification'] = ReceiptNotification - def lazy_import(): pass diff --git a/xendit/payout/model/get_payouts200_response_links.py b/xendit/payout/model/get_payouts200_response_links.py index 4e2eb39b..266d1229 100644 --- a/xendit/payout/model/get_payouts200_response_links.py +++ b/xendit/payout/model/get_payouts200_response_links.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payout/model/payout.py b/xendit/payout/model/payout.py index ac7b9dd9..2d4779e9 100644 --- a/xendit/payout/model/payout.py +++ b/xendit/payout/model/payout.py @@ -33,7 +33,6 @@ globals()['PayoutAllOf'] = PayoutAllOf globals()['ReceiptNotification'] = ReceiptNotification - def lazy_import(): pass diff --git a/xendit/payout/model/payout_all_of.py b/xendit/payout/model/payout_all_of.py index 09909cec..fc90d617 100644 --- a/xendit/payout/model/payout_all_of.py +++ b/xendit/payout/model/payout_all_of.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/payout/model/receipt_notification.py b/xendit/payout/model/receipt_notification.py index 52c9b6ed..9ede4bcb 100644 --- a/xendit/payout/model/receipt_notification.py +++ b/xendit/payout/model/receipt_notification.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/refund/model/create_refund.py b/xendit/refund/model/create_refund.py index fe978efd..d085db15 100644 --- a/xendit/refund/model/create_refund.py +++ b/xendit/refund/model/create_refund.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/refund/model/create_refund400_response.py b/xendit/refund/model/create_refund400_response.py index b81d50ab..1557a0d3 100644 --- a/xendit/refund/model/create_refund400_response.py +++ b/xendit/refund/model/create_refund400_response.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/refund/model/create_refund403_response.py b/xendit/refund/model/create_refund403_response.py index b6eb8773..31eb9a5b 100644 --- a/xendit/refund/model/create_refund403_response.py +++ b/xendit/refund/model/create_refund403_response.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/refund/model/create_refund404_response.py b/xendit/refund/model/create_refund404_response.py index cb9f9a49..8bf87031 100644 --- a/xendit/refund/model/create_refund404_response.py +++ b/xendit/refund/model/create_refund404_response.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/refund/model/create_refund409_response.py b/xendit/refund/model/create_refund409_response.py index 4c2e69cb..6c27261b 100644 --- a/xendit/refund/model/create_refund409_response.py +++ b/xendit/refund/model/create_refund409_response.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/refund/model/create_refund503_response.py b/xendit/refund/model/create_refund503_response.py index 28c5822b..1a57d339 100644 --- a/xendit/refund/model/create_refund503_response.py +++ b/xendit/refund/model/create_refund503_response.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/refund/model/create_refund_default_response.py b/xendit/refund/model/create_refund_default_response.py index 547af60c..3dadc869 100644 --- a/xendit/refund/model/create_refund_default_response.py +++ b/xendit/refund/model/create_refund_default_response.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/refund/model/refund.py b/xendit/refund/model/refund.py index 642e019a..c29e3ad2 100644 --- a/xendit/refund/model/refund.py +++ b/xendit/refund/model/refund.py @@ -25,7 +25,6 @@ from xendit.exceptions import ApiAttributeError - def lazy_import(): pass diff --git a/xendit/refund/model/refund_list.py b/xendit/refund/model/refund_list.py index 7cd8d94d..562352eb 100644 --- a/xendit/refund/model/refund_list.py +++ b/xendit/refund/model/refund_list.py @@ -27,7 +27,6 @@ from xendit.refund.model.refund import Refund globals()['Refund'] = Refund - def lazy_import(): pass diff --git a/xendit/rest.py b/xendit/rest.py index 2e05ff4a..d4203718 100644 --- a/xendit/rest.py +++ b/xendit/rest.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.87.2 + The version of the XENDIT API: 1.44.1 """ From 7b3c766e42f49813d07107daf6492488ef46c52a Mon Sep 17 00:00:00 2001 From: xendit-devx-bot Date: Wed, 18 Oct 2023 11:29:36 +0000 Subject: [PATCH 2/4] Generated Xendit python SDK --- .github/workflows/generate-release-tag.yml | 15 +- README.md | 14 +- docs/AccountBank.md | 17 +- docs/AccountCard.md | 7 +- docs/AccountEwallet.md | 11 +- docs/AccountOTC.md | 9 +- docs/AccountPayLater.md | 11 +- docs/AccountQRCode.md | 7 +- docs/Address.md | 31 +- docs/AddressObject.md | 19 +- docs/AddressRequest.md | 25 +- docs/AddressStatus.md | 8 +- docs/AlternativeDisplayItem.md | 9 +- docs/BadRequestError.md | 9 +- docs/Balance.md | 7 +- docs/Bank.md | 19 +- docs/BankCode.md | 8 +- docs/BillingInformation.md | 17 +- docs/BusinessDetail.md | 15 +- docs/Capture.md | 35 +- docs/CaptureList.md | 7 +- docs/CaptureListResponse.md | 9 +- docs/CaptureParameters.md | 9 +- docs/Card.md | 13 +- docs/CardChannelProperties.md | 15 +- docs/CardInformation.md | 25 +- docs/CardParameters.md | 11 +- docs/CardParametersCardInformation.md | 15 +- docs/CardVerificationResults.md | 11 +- docs/CardVerificationResultsThreeDSecure.md | 15 +- docs/Channel.md | 15 +- docs/ChannelAccountType.md | 8 +- docs/ChannelAmountLimits.md | 11 +- docs/ChannelCategory.md | 8 +- docs/ChannelsCategories.md | 8 +- docs/CountryCode.md | 7 +- docs/CreateCustomer400Response.md | 11 +- docs/CreateCustomer400ResponseAllOf.md | 9 +- docs/CreateInvoiceRequest.md | 45 +- docs/CreatePaymentMethod409Response.md | 9 +- docs/CreatePaymentMethod503Response.md | 9 +- docs/CreatePayoutRequest.md | 21 +- docs/CreateRefund.md | 19 +- docs/CreateRefund400Response.md | 9 +- docs/CreateRefund403Response.md | 9 +- docs/CreateRefund404Response.md | 9 +- docs/CreateRefund409Response.md | 9 +- docs/CreateRefund503Response.md | 9 +- docs/CreateRefundDefaultResponse.md | 12 - docs/Currency.md | 8 +- docs/Customer.md | 37 +- docs/CustomerObject.md | 21 +- docs/CustomerRequest.md | 31 +- docs/DateRangeFilter.md | 9 +- docs/DigitalPayoutChannelProperties.md | 11 +- docs/DirectDebit.md | 15 +- docs/DirectDebitAllOf.md | 11 +- docs/DirectDebitBankAccount.md | 9 +- docs/DirectDebitChannelCode.md | 8 +- docs/DirectDebitChannelProperties.md | 21 +- ...DirectDebitChannelPropertiesBankAccount.md | 13 +- ...irectDebitChannelPropertiesBankRedirect.md | 11 +- docs/DirectDebitChannelPropertiesDebitCard.md | 15 +- docs/DirectDebitDebitCard.md | 15 +- docs/DirectDebitParameters.md | 11 +- docs/DirectDebitType.md | 8 +- docs/EWallet.md | 11 +- docs/EWalletAccount.md | 13 +- docs/EWalletAllOf.md | 7 +- docs/EWalletChannelCode.md | 8 +- docs/EWalletChannelProperties.md | 17 +- docs/EWalletParameters.md | 9 +- docs/EmploymentDetail.md | 11 +- docs/EndCustomerStatus.md | 8 +- docs/Error.md | 9 +- docs/ErrorErrorsInner.md | 9 +- docs/Ewallet.md | 7 +- docs/EwalletType.md | 8 +- docs/FeeResponse.md | 15 +- docs/ForbiddenError.md | 9 +- docs/GetAllPaymentMethods400Response.md | 9 +- docs/GetAllPaymentMethods403Response.md | 9 +- docs/GetAllPaymentMethods404Response.md | 9 +- docs/GetAllPaymentMethodsDefaultResponse.md | 9 +- docs/GetAllRefundsDefaultResponse.md | 13 + docs/GetCustomerByReferenceID200Response.md | 9 +- docs/GetCustomerByReferenceID400Response.md | 11 +- ...etCustomerByReferenceID400ResponseAllOf.md | 9 +- docs/GetPayouts200Response.md | 11 +- docs/GetPayouts200ResponseDataInner.md | 35 +- docs/GetPayouts200ResponseLinks.md | 11 +- docs/IdentityAccountRequest.md | 15 +- docs/IdentityAccountRequestProperties.md | 27 +- docs/IdentityAccountResponse.md | 23 +- docs/IdentityAccountResponseProperties.md | 27 +- docs/IdentityAccountType.md | 8 +- docs/IndividualDetail.md | 27 +- docs/Invoice.md | 71 +- docs/InvoiceApi.md | 123 +-- docs/InvoiceClientType.md | 8 +- docs/InvoiceCurrency.md | 8 +- docs/InvoiceError404ResponseDefinition.md | 9 +- docs/InvoiceFee.md | 9 +- docs/InvoiceItem.md | 17 +- docs/InvoiceNotFoundError.md | 9 +- docs/InvoicePaymentMethod.md | 8 +- docs/InvoiceStatus.md | 8 +- docs/KYCDocumentRequest.md | 21 +- docs/KYCDocumentResponse.md | 21 +- docs/KYCDocumentSubType.md | 8 +- docs/KYCDocumentType.md | 8 +- docs/LinkItem.md | 11 +- docs/NotificationChannel.md | 8 +- docs/NotificationPreference.md | 13 +- docs/OverTheCounter.md | 13 +- docs/OverTheCounterChannelCode.md | 8 +- docs/OverTheCounterChannelProperties.md | 11 +- docs/OverTheCounterChannelPropertiesUpdate.md | 9 +- docs/OverTheCounterParameters.md | 13 +- docs/OverTheCounterUpdateParameters.md | 9 +- docs/PatchCustomer.md | 31 +- docs/Paylater.md | 9 +- docs/PaylaterType.md | 8 +- docs/PaymentMethod.md | 35 +- docs/PaymentMethodAction.md | 13 +- docs/PaymentMethodApi.md | 252 +++--- docs/PaymentMethodAuthParameters.md | 7 +- docs/PaymentMethodCountry.md | 8 +- docs/PaymentMethodExpireParameters.md | 9 +- docs/PaymentMethodList.md | 9 +- docs/PaymentMethodParameters.md | 23 +- docs/PaymentMethodReusability.md | 8 +- docs/PaymentMethodStatus.md | 8 +- docs/PaymentMethodType.md | 8 +- docs/PaymentMethodUpdateParameters.md | 17 +- docs/PaymentRequest.md | 51 +- docs/PaymentRequestAction.md | 15 +- docs/PaymentRequestApi.md | 177 +++-- docs/PaymentRequestAuthParameters.md | 7 +- docs/PaymentRequestBasket.md | 7 +- docs/PaymentRequestBasketItem.md | 31 +- docs/PaymentRequestCaptureMethod.md | 8 +- docs/PaymentRequestCardVerificationResults.md | 11 +- ...stCardVerificationResultsThreeDeeSecure.md | 15 +- docs/PaymentRequestChannelProperties.md | 19 +- docs/PaymentRequestCountry.md | 8 +- docs/PaymentRequestCurrency.md | 8 +- docs/PaymentRequestInitiator.md | 8 +- docs/PaymentRequestListResponse.md | 9 +- docs/PaymentRequestParameters.md | 33 +- ...ymentRequestParametersChannelProperties.md | 21 +- ...RequestParametersChannelPropertiesAllOf.md | 7 +- docs/PaymentRequestShippingInformation.md | 17 +- docs/PaymentRequestStatus.md | 8 +- docs/Payout.md | 35 +- docs/PayoutAllOf.md | 19 +- docs/PayoutApi.md | 144 ++-- docs/QRCode.md | 9 +- docs/QRCodeChannelCode.md | 8 +- docs/QRCodeChannelProperties.md | 9 +- docs/QRCodeParameters.md | 9 +- docs/QrCode.md | 7 +- docs/QrCodeType.md | 8 +- docs/ReceiptNotification.md | 11 +- docs/Refund.md | 29 +- docs/RefundApi.md | 102 +-- docs/RefundList.md | 9 +- docs/ResponseDataNotFound.md | 9 +- docs/RetailOutlet.md | 13 +- docs/RetailOutletName.md | 8 +- docs/ServerError.md | 9 +- docs/SimulatePaymentRequest.md | 7 +- docs/TokenizedCardInformation.md | 25 +- docs/TransactionApi.md | 98 +-- docs/TransactionId.md | 7 +- docs/TransactionResponse.md | 39 +- docs/TransactionResponseType.md | 5 +- docs/TransactionStatuses.md | 8 +- docs/TransactionTypes.md | 8 +- docs/TransactionsResponse.md | 11 +- docs/UnauthorizedError.md | 9 +- docs/UpdateCustomer400Response.md | 11 +- docs/UpdateCustomer400ResponseAllOf.md | 9 +- docs/ValidationError.md | 13 +- docs/VirtualAccount.md | 21 +- docs/VirtualAccountAllOf.md | 7 +- docs/VirtualAccountAlternativeDisplay.md | 9 +- docs/VirtualAccountChannelCode.md | 8 +- docs/VirtualAccountChannelProperties.md | 13 +- docs/VirtualAccountChannelPropertiesPatch.md | 9 +- docs/VirtualAccountParameters.md | 19 +- docs/VirtualAccountUpdateParameters.md | 15 +- setup.py | 2 +- test/test_billing_information.py | 2 +- test/test_card.py | 2 +- test/test_card_channel_properties.py | 2 +- test/test_card_parameters.py | 2 +- test/test_card_parameters_card_information.py | 2 +- test/test_card_verification_results.py | 2 +- ...ard_verification_results_three_d_secure.py | 2 +- .../test_create_payment_method409_response.py | 2 +- .../test_create_payment_method503_response.py | 2 +- test/test_create_refund.py | 2 +- test/test_create_refund400_response.py | 2 +- test/test_create_refund403_response.py | 2 +- test/test_create_refund404_response.py | 2 +- test/test_create_refund409_response.py | 2 +- test/test_create_refund503_response.py | 2 +- test/test_create_refund_default_response.py | 30 - test/test_direct_debit_all_of.py | 2 +- test/test_direct_debit_bank_account.py | 2 +- test/test_direct_debit_channel_code.py | 2 +- test/test_direct_debit_channel_properties.py | 2 +- test/test_direct_debit_debit_card.py | 2 +- test/test_direct_debit_parameters.py | 2 +- test/test_e_wallet.py | 2 +- test/test_e_wallet_account.py | 2 +- test/test_e_wallet_channel_code.py | 2 +- test/test_e_wallet_channel_properties.py | 2 +- test/test_e_wallet_parameters.py | 2 +- ...est_get_all_payment_methods400_response.py | 2 +- ...est_get_all_payment_methods403_response.py | 2 +- ...est_get_all_payment_methods404_response.py | 2 +- ...et_all_payment_methods_default_response.py | 2 +- test/test_get_all_refunds_default_response.py | 30 + test/test_invoice_api.py | 14 +- test/test_over_the_counter.py | 2 +- test/test_over_the_counter_channel_code.py | 2 +- ...est_over_the_counter_channel_properties.py | 2 +- ...r_the_counter_channel_properties_update.py | 2 +- test/test_over_the_counter_parameters.py | 2 +- ...test_over_the_counter_update_parameters.py | 2 +- test/test_payment_method.py | 2 +- test/test_payment_method_action.py | 2 +- test/test_payment_method_api.py | 44 +- test/test_payment_method_auth_parameters.py | 2 +- test/test_payment_method_country.py | 2 +- test/test_payment_method_expire_parameters.py | 2 +- test/test_payment_method_list.py | 2 +- test/test_payment_method_parameters.py | 2 +- test/test_payment_method_reusability.py | 2 +- test/test_payment_method_status.py | 2 +- test/test_payment_method_type.py | 2 +- test/test_payment_method_update_parameters.py | 2 +- test/test_payment_request_api.py | 30 +- test/test_payout_api.py | 14 +- test/test_qr_code_channel_code.py | 2 +- test/test_qr_code_channel_properties.py | 2 +- test/test_qr_code_parameters.py | 2 +- test/test_refund.py | 2 +- test/test_refund_api.py | 14 +- test/test_refund_list.py | 2 +- test/test_simulate_payment_request.py | 2 +- test/test_tokenized_card_information.py | 2 +- test/test_transaction_api.py | 12 +- test/test_virtual_account.py | 2 +- test/test_virtual_account_all_of.py | 2 +- ...est_virtual_account_alternative_display.py | 2 +- test/test_virtual_account_channel_code.py | 2 +- ...test_virtual_account_channel_properties.py | 2 +- ...irtual_account_channel_properties_patch.py | 2 +- test/test_virtual_account_parameters.py | 2 +- .../test_virtual_account_update_parameters.py | 2 +- xendit/__init__.py | 2 +- xendit/api_client.py | 10 +- .../model/channels_categories.py | 6 +- .../balance_and_transaction/model/currency.py | 6 +- .../model/transaction_statuses.py | 6 +- .../model/transaction_types.py | 6 +- .../transaction_api.py | 262 +++---- xendit/configuration.py | 2 +- xendit/customer/customer_api.py | 2 +- xendit/customer/model/address_status.py | 6 +- xendit/customer/model/end_customer_status.py | 6 +- .../customer/model/identity_account_type.py | 6 +- .../customer/model/kyc_document_sub_type.py | 6 +- xendit/customer/model/kyc_document_type.py | 6 +- xendit/invoice/invoice_api.py | 290 ++++--- xendit/invoice/model/bank_code.py | 6 +- xendit/invoice/model/direct_debit_type.py | 6 +- xendit/invoice/model/ewallet_type.py | 6 +- xendit/invoice/model/invoice_client_type.py | 6 +- xendit/invoice/model/invoice_currency.py | 6 +- .../invoice/model/invoice_payment_method.py | 6 +- xendit/invoice/model/invoice_status.py | 6 +- xendit/invoice/model/notification_channel.py | 6 +- xendit/invoice/model/paylater_type.py | 6 +- xendit/invoice/model/qr_code_type.py | 6 +- xendit/invoice/model/retail_outlet_name.py | 6 +- .../model/billing_information.py | 2 +- xendit/payment_method/model/card.py | 2 +- .../model/card_channel_properties.py | 2 +- .../payment_method/model/card_parameters.py | 2 +- .../model/card_parameters_card_information.py | 2 +- .../model/card_verification_results.py | 2 +- ...ard_verification_results_three_d_secure.py | 2 +- .../create_payment_method409_response.py | 2 +- .../create_payment_method503_response.py | 2 +- xendit/payment_method/model/direct_debit.py | 2 +- .../model/direct_debit_all_of.py | 2 +- .../model/direct_debit_bank_account.py | 2 +- .../model/direct_debit_channel_code.py | 8 +- .../model/direct_debit_channel_properties.py | 2 +- .../model/direct_debit_debit_card.py | 2 +- .../model/direct_debit_parameters.py | 2 +- .../payment_method/model/direct_debit_type.py | 8 +- xendit/payment_method/model/e_wallet.py | 2 +- .../payment_method/model/e_wallet_account.py | 2 +- .../model/e_wallet_channel_code.py | 8 +- .../model/e_wallet_channel_properties.py | 2 +- .../model/e_wallet_parameters.py | 2 +- .../get_all_payment_methods400_response.py | 2 +- .../get_all_payment_methods403_response.py | 2 +- .../get_all_payment_methods404_response.py | 2 +- ...et_all_payment_methods_default_response.py | 2 +- .../payment_method/model/over_the_counter.py | 2 +- .../model/over_the_counter_channel_code.py | 8 +- .../over_the_counter_channel_properties.py | 2 +- ...r_the_counter_channel_properties_update.py | 2 +- .../model/over_the_counter_parameters.py | 2 +- .../over_the_counter_update_parameters.py | 2 +- xendit/payment_method/model/payment_method.py | 2 +- .../model/payment_method_action.py | 2 +- .../model/payment_method_auth_parameters.py | 2 +- .../model/payment_method_country.py | 8 +- .../model/payment_method_expire_parameters.py | 2 +- .../model/payment_method_list.py | 2 +- .../model/payment_method_parameters.py | 2 +- .../model/payment_method_reusability.py | 8 +- .../model/payment_method_status.py | 8 +- .../model/payment_method_type.py | 8 +- .../model/payment_method_update_parameters.py | 2 +- xendit/payment_method/model/qr_code.py | 2 +- .../model/qr_code_channel_code.py | 8 +- .../model/qr_code_channel_properties.py | 2 +- .../model/qr_code_parameters.py | 2 +- .../model/simulate_payment_request.py | 2 +- .../model/tokenized_card_information.py | 2 +- .../payment_method/model/virtual_account.py | 2 +- .../model/virtual_account_all_of.py | 2 +- .../virtual_account_alternative_display.py | 2 +- .../model/virtual_account_channel_code.py | 8 +- .../virtual_account_channel_properties.py | 2 +- ...irtual_account_channel_properties_patch.py | 2 +- .../model/virtual_account_parameters.py | 2 +- .../virtual_account_update_parameters.py | 2 +- xendit/payment_method/payment_method_api.py | 733 ++++++++++-------- .../model/direct_debit_channel_code.py | 6 +- .../model/direct_debit_type.py | 6 +- .../model/e_wallet_channel_code.py | 6 +- .../model/over_the_counter_channel_code.py | 6 +- .../model/payment_method_reusability.py | 6 +- .../model/payment_method_status.py | 6 +- .../model/payment_method_type.py | 6 +- .../model/payment_request_capture_method.py | 6 +- .../model/payment_request_country.py | 6 +- .../model/payment_request_currency.py | 6 +- .../model/payment_request_initiator.py | 6 +- .../model/payment_request_status.py | 6 +- .../model/qr_code_channel_code.py | 6 +- .../model/virtual_account_channel_code.py | 6 +- xendit/payment_request/payment_request_api.py | 301 ++++--- xendit/payout/model/channel_account_type.py | 6 +- xendit/payout/model/channel_category.py | 6 +- xendit/payout/payout_api.py | 268 ++++--- xendit/refund/model/__init__.py | 2 +- xendit/refund/model/create_refund.py | 2 +- .../refund/model/create_refund400_response.py | 2 +- .../refund/model/create_refund403_response.py | 2 +- .../refund/model/create_refund404_response.py | 2 +- .../refund/model/create_refund409_response.py | 2 +- .../refund/model/create_refund503_response.py | 2 +- ...py => get_all_refunds_default_response.py} | 8 +- xendit/refund/model/refund.py | 2 +- xendit/refund/model/refund_list.py | 2 +- xendit/refund/refund_api.py | 201 +++-- 376 files changed, 3528 insertions(+), 2707 deletions(-) delete mode 100644 docs/CreateRefundDefaultResponse.md create mode 100644 docs/GetAllRefundsDefaultResponse.md delete mode 100644 test/test_create_refund_default_response.py create mode 100644 test/test_get_all_refunds_default_response.py rename xendit/refund/model/{create_refund_default_response.py => get_all_refunds_default_response.py} (98%) diff --git a/.github/workflows/generate-release-tag.yml b/.github/workflows/generate-release-tag.yml index 4e095204..26f8a989 100644 --- a/.github/workflows/generate-release-tag.yml +++ b/.github/workflows/generate-release-tag.yml @@ -24,4 +24,17 @@ jobs: release_name: ${{ github.event.client_payload.version }} body: ${{ steps.parse-changelog.outputs.changelog }} draft: false - prerelease: false \ No newline at end of file + prerelease: false + + publish-pypi: + needs: [build] + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/xendit-python + permissions: + id-token: write + steps: + - uses: actions/checkout@v3 + - name: Publish a Python distribution to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file diff --git a/README.md b/README.md index b1dff692..feebdd9e 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,11 @@ The official Xendit Python SDK provides a simple and convenient way to call Xendit's REST API in applications written in Python. -* Package version: 3.3.0 +* Package version: 3.4.0 -## Requirements. +## Requirements -Python >=3.6 +Python >= 3.10 # Getting Started @@ -66,14 +66,14 @@ except xendit.XenditSdkException as e: Find detailed API information and examples for each of our product's by clicking the links below, -* [Balance](docs/BalanceApi.md) -* [Customer](docs/CustomerApi.md) * [Invoice](docs/InvoiceApi.md) -* [PaymentMethod](docs/PaymentMethodApi.md) * [PaymentRequest](docs/PaymentRequestApi.md) -* [Payout](docs/PayoutApi.md) +* [PaymentMethod](docs/PaymentMethodApi.md) * [Refund](docs/RefundApi.md) +* [Balance](docs/BalanceApi.md) * [Transaction](docs/TransactionApi.md) +* [Customer](docs/CustomerApi.md) +* [Payout](docs/PayoutApi.md) All URIs are relative to *https://api.xendit.co*. For more information about our API, please refer to *https://developers.xendit.co/*. diff --git a/docs/AccountBank.md b/docs/AccountBank.md index 2c7ba779..e3af6911 100644 --- a/docs/AccountBank.md +++ b/docs/AccountBank.md @@ -2,14 +2,15 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_number** | **str** | Unique account identifier as per the bank records. | [optional] -**account_holder_name** | **str, none_type** | Name of account holder as per the bank records. Needs to match the registered account name exactly. . | [optional] -**swift_code** | **str, none_type** | The SWIFT code for international payments | [optional] -**account_type** | **str, none_type** | Free text account type, e.g., Savings, Transaction, Virtual Account. | [optional] -**account_details** | **str, none_type** | Potentially masked account detail, for display purposes only. | [optional] -**currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **account_number** | **str** | Unique account identifier as per the bank records. | [optional] | +| **account_holder_name** | **str, none_type** | Name of account holder as per the bank records. Needs to match the registered account name exactly. . | [optional] | +| **swift_code** | **str, none_type** | The SWIFT code for international payments | [optional] | +| **account_type** | **str, none_type** | Free text account type, e.g., Savings, Transaction, Virtual Account. | [optional] | +| **account_details** | **str, none_type** | Potentially masked account detail, for display purposes only. | [optional] | +| **currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AccountCard.md b/docs/AccountCard.md index 7f7b68b7..34c41863 100644 --- a/docs/AccountCard.md +++ b/docs/AccountCard.md @@ -2,9 +2,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token_id** | **str** | The token id returned in tokenisation | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **token_id** | **str** | The token id returned in tokenisation | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AccountEwallet.md b/docs/AccountEwallet.md index 61c8fbff..60e98024 100644 --- a/docs/AccountEwallet.md +++ b/docs/AccountEwallet.md @@ -2,11 +2,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_number** | **str** | Unique account identifier as per the bank records. | [optional] -**account_holder_name** | **str, none_type** | Name of account holder as per the bank records. Needs to match the registered account name exactly. | [optional] -**currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **account_number** | **str** | Unique account identifier as per the bank records. | [optional] | +| **account_holder_name** | **str, none_type** | Name of account holder as per the bank records. Needs to match the registered account name exactly. | [optional] | +| **currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AccountOTC.md b/docs/AccountOTC.md index 9239c483..8fa831ef 100644 --- a/docs/AccountOTC.md +++ b/docs/AccountOTC.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payment_code** | **str** | Complete fixed payment code (including prefix) | [optional] -**expires_at** | **str, none_type** | YYYY-MM-DD string with expiry date for the payment code | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **payment_code** | **str** | Complete fixed payment code (including prefix) | [optional] | +| **expires_at** | **str, none_type** | YYYY-MM-DD string with expiry date for the payment code | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AccountPayLater.md b/docs/AccountPayLater.md index 4aa09b05..839ca248 100644 --- a/docs/AccountPayLater.md +++ b/docs/AccountPayLater.md @@ -2,11 +2,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_id** | **str** | Alphanumeric string identifying this account. Usually an email address or phone number. | [optional] -**account_holder_name** | **str, none_type** | Name of account holder as per the cardless credit account. | [optional] -**currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **account_id** | **str** | Alphanumeric string identifying this account. Usually an email address or phone number. | [optional] | +| **account_holder_name** | **str, none_type** | Name of account holder as per the cardless credit account. | [optional] | +| **currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AccountQRCode.md b/docs/AccountQRCode.md index 6d56949d..c82647fc 100644 --- a/docs/AccountQRCode.md +++ b/docs/AccountQRCode.md @@ -2,9 +2,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**qr_string** | **str** | String representation of the QR Code image | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **qr_string** | **str** | String representation of the QR Code image | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Address.md b/docs/Address.md index 401c3816..cf1d3886 100644 --- a/docs/Address.md +++ b/docs/Address.md @@ -2,21 +2,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**category** | **str, none_type** | | -**country** | **bool, date, datetime, dict, float, int, list, str, none_type** | | -**province_state** | **str, none_type** | | -**city** | **str, none_type** | | -**postal_code** | **str, none_type** | | -**street_line1** | **str, none_type** | | -**street_line2** | **str, none_type** | | -**is_primary** | **bool, none_type** | | -**id** | **str** | | [optional] -**status** | [**AddressStatus**](AddressStatus.md) | | [optional] -**meta** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] -**created** | **datetime** | | [optional] -**updated** | **datetime** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **category** | **str, none_type** | | | +| **country** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | +| **province_state** | **str, none_type** | | | +| **city** | **str, none_type** | | | +| **postal_code** | **str, none_type** | | | +| **street_line1** | **str, none_type** | | | +| **street_line2** | **str, none_type** | | | +| **is_primary** | **bool, none_type** | | | +| **id** | **str** | | [optional] | +| **status** | [**AddressStatus**](AddressStatus.md) | | [optional] | +| **meta** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | +| **created** | **datetime** | | [optional] | +| **updated** | **datetime** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AddressObject.md b/docs/AddressObject.md index 97196393..f291a6da 100644 --- a/docs/AddressObject.md +++ b/docs/AddressObject.md @@ -3,15 +3,16 @@ An object representing an address with various properties. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**country** | **str, none_type** | The country where the address is located. | [optional] -**street_line1** | **str, none_type** | The first line of the street address. | [optional] -**street_line2** | **str, none_type** | The second line of the street address. | [optional] -**city** | **str, none_type** | The city or locality within the address. | [optional] -**province** | **str, none_type** | The province or region within the country. | [optional] -**state** | **str, none_type** | The state or administrative division within the country. | [optional] -**postal_code** | **str, none_type** | The postal code or ZIP code for the address. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **country** | **str, none_type** | The country where the address is located. | [optional] | +| **street_line1** | **str, none_type** | The first line of the street address. | [optional] | +| **street_line2** | **str, none_type** | The second line of the street address. | [optional] | +| **city** | **str, none_type** | The city or locality within the address. | [optional] | +| **province** | **str, none_type** | The province or region within the country. | [optional] | +| **state** | **str, none_type** | The state or administrative division within the country. | [optional] | +| **postal_code** | **str, none_type** | The postal code or ZIP code for the address. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AddressRequest.md b/docs/AddressRequest.md index b4457718..09eb9314 100644 --- a/docs/AddressRequest.md +++ b/docs/AddressRequest.md @@ -2,18 +2,19 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**category** | **str** | Home, work or provincial | [optional] -**country_code** | [**CountryCode**](CountryCode.md) | | [optional] -**province_state** | **str** | | [optional] -**city** | **str** | | [optional] -**suburb** | **str** | | [optional] -**postal_code** | **str** | | [optional] -**line_1** | **str** | | [optional] -**line_2** | **str** | | [optional] -**status** | [**AddressStatus**](AddressStatus.md) | | [optional] -**is_primary** | **bool** | | [optional] if omitted the server will use the default value of False +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **category** | **str** | Home, work or provincial | [optional] | +| **country_code** | [**CountryCode**](CountryCode.md) | | [optional] | +| **province_state** | **str** | | [optional] | +| **city** | **str** | | [optional] | +| **suburb** | **str** | | [optional] | +| **postal_code** | **str** | | [optional] | +| **line_1** | **str** | | [optional] | +| **line_2** | **str** | | [optional] | +| **status** | [**AddressStatus**](AddressStatus.md) | | [optional] | +| **is_primary** | **bool** | | [optional] if omitted the server will use the default value of False | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AddressStatus.md b/docs/AddressStatus.md index e0b5cf54..9f888bc5 100644 --- a/docs/AddressStatus.md +++ b/docs/AddressStatus.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["ACTIVE", "DELETED", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["ACTIVE", "DELETED", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AlternativeDisplayItem.md b/docs/AlternativeDisplayItem.md index 45bb74ec..c1116d4e 100644 --- a/docs/AlternativeDisplayItem.md +++ b/docs/AlternativeDisplayItem.md @@ -3,10 +3,11 @@ An object representing alternative display of a VA. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | Represent type of alternative display. | [optional] -**value** | **str** | Represent value of alternative display value. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **type** | **str** | Represent type of alternative display. | [optional] | +| **value** | **str** | Represent value of alternative display value. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/BadRequestError.md b/docs/BadRequestError.md index 3dabe4c6..d015d233 100644 --- a/docs/BadRequestError.md +++ b/docs/BadRequestError.md @@ -3,10 +3,11 @@ Response definition for a 400 Bad Request error when creating an invoice. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | The error code indicating the type of error that occurred. | -**message** | **str** | A human-readable error message that provides additional information about the error. | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | The error code indicating the type of error that occurred. | | +| **message** | **str** | A human-readable error message that provides additional information about the error. | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Balance.md b/docs/Balance.md index 2736437e..d25efe0f 100644 --- a/docs/Balance.md +++ b/docs/Balance.md @@ -3,9 +3,10 @@ The balance remaining in your account ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**balance** | **float** | | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **balance** | **float** | | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Bank.md b/docs/Bank.md index 1751da99..bac5ef62 100644 --- a/docs/Bank.md +++ b/docs/Bank.md @@ -3,15 +3,16 @@ An object representing bank details for invoices. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bank_code** | [**BankCode**](BankCode.md) | | -**collection_type** | **str** | The collection type for the bank details. | -**account_holder_name** | **str** | The name of the account holder. | -**bank_branch** | **str** | The branch of the bank. | [optional] -**bank_account_number** | **str** | The bank account number. | [optional] -**transfer_amount** | **float** | The transfer amount. | [optional] -**alternative_displays** | [**[AlternativeDisplayItem]**](AlternativeDisplayItem.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **bank_code** | [**BankCode**](BankCode.md) | | | +| **collection_type** | **str** | The collection type for the bank details. | | +| **account_holder_name** | **str** | The name of the account holder. | | +| **bank_branch** | **str** | The branch of the bank. | [optional] | +| **bank_account_number** | **str** | The bank account number. | [optional] | +| **transfer_amount** | **float** | The transfer amount. | [optional] | +| **alternative_displays** | [**[AlternativeDisplayItem]**](AlternativeDisplayItem.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/BankCode.md b/docs/BankCode.md index 6d7e6a5f..4bfa457e 100644 --- a/docs/BankCode.md +++ b/docs/BankCode.md @@ -3,9 +3,11 @@ Representing the available bank channels used for invoice-related transactions. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Representing the available bank channels used for invoice-related transactions. | must be one of ["BCA", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "BJB", "SAHABAT_SAMPOERNA", "CIMB", "BNC", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Representing the available bank channels used for invoice-related transactions. | must be one of ["BCA", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "BJB", "SAHABAT_SAMPOERNA", "CIMB", "BNC", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/BillingInformation.md b/docs/BillingInformation.md index 488bae93..7aa1417a 100644 --- a/docs/BillingInformation.md +++ b/docs/BillingInformation.md @@ -3,14 +3,15 @@ Billing Information ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**country** | **str** | | -**street_line1** | **str, none_type** | | [optional] -**street_line2** | **str, none_type** | | [optional] -**city** | **str, none_type** | | [optional] -**province_state** | **str, none_type** | | [optional] -**postal_code** | **str, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **country** | **str** | | | +| **street_line1** | **str, none_type** | | [optional] | +| **street_line2** | **str, none_type** | | [optional] | +| **city** | **str, none_type** | | [optional] | +| **province_state** | **str, none_type** | | [optional] | +| **postal_code** | **str, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/BusinessDetail.md b/docs/BusinessDetail.md index 6339b26e..177582ce 100644 --- a/docs/BusinessDetail.md +++ b/docs/BusinessDetail.md @@ -2,13 +2,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**business_name** | **str** | | [optional] -**business_type** | **str, none_type** | | [optional] -**date_of_registration** | **str, none_type** | | [optional] -**nature_of_business** | **str, none_type** | | [optional] -**business_domicile** | [**CountryCode**](CountryCode.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **business_name** | **str** | | [optional] | +| **business_type** | **str, none_type** | | [optional] | +| **date_of_registration** | **str, none_type** | | [optional] | +| **nature_of_business** | **str, none_type** | | [optional] | +| **business_domicile** | [**CountryCode**](CountryCode.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Capture.md b/docs/Capture.md index 89d5c14d..6c47c575 100644 --- a/docs/Capture.md +++ b/docs/Capture.md @@ -2,23 +2,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str** | | -**payment_request_id** | **str** | | -**payment_id** | **str** | | -**reference_id** | **str** | | -**currency** | **str** | | -**authorized_amount** | **float** | | -**captured_amount** | **float** | | -**status** | **str** | | -**payment_method** | [**PaymentMethod**](PaymentMethod.md) | | -**failure_code** | **str, none_type** | | -**customer_id** | **str, none_type** | | -**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | -**channel_properties** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | -**created** | **str** | | -**updated** | **str** | | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | **str** | | | +| **payment_request_id** | **str** | | | +| **payment_id** | **str** | | | +| **reference_id** | **str** | | | +| **currency** | **str** | | | +| **authorized_amount** | **float** | | | +| **captured_amount** | **float** | | | +| **status** | **str** | | | +| **payment_method** | [**PaymentMethod**](PaymentMethod.md) | | | +| **failure_code** | **str, none_type** | | | +| **customer_id** | **str, none_type** | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | +| **channel_properties** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | +| **created** | **str** | | | +| **updated** | **str** | | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CaptureList.md b/docs/CaptureList.md index caca66cc..af71dc52 100644 --- a/docs/CaptureList.md +++ b/docs/CaptureList.md @@ -2,9 +2,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**[Capture]**](Capture.md) | | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | [**[Capture]**](Capture.md) | | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CaptureListResponse.md b/docs/CaptureListResponse.md index 2631b9b4..d2e8a046 100644 --- a/docs/CaptureListResponse.md +++ b/docs/CaptureListResponse.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CaptureList**](CaptureList.md) | | -**has_more** | **bool** | | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **data** | [**CaptureList**](CaptureList.md) | | | +| **has_more** | **bool** | | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CaptureParameters.md b/docs/CaptureParameters.md index cc7c5e1e..7e1ac415 100644 --- a/docs/CaptureParameters.md +++ b/docs/CaptureParameters.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**capture_amount** | **float** | | -**reference_id** | **str, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **capture_amount** | **float** | | | +| **reference_id** | **str, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Card.md b/docs/Card.md index abc72c92..a4351d83 100644 --- a/docs/Card.md +++ b/docs/Card.md @@ -2,12 +2,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | -**channel_properties** | [**CardChannelProperties**](CardChannelProperties.md) | | -**card_information** | [**CardInformation**](CardInformation.md) | | -**card_verification_results** | [**CardVerificationResults**](CardVerificationResults.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | | +| **channel_properties** | [**CardChannelProperties**](CardChannelProperties.md) | | | +| **card_information** | [**CardInformation**](CardInformation.md) | | | +| **card_verification_results** | [**CardVerificationResults**](CardVerificationResults.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CardChannelProperties.md b/docs/CardChannelProperties.md index c17396ab..74a1605e 100644 --- a/docs/CardChannelProperties.md +++ b/docs/CardChannelProperties.md @@ -3,13 +3,14 @@ Card Channel Properties ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**skip_three_d_secure** | **bool, none_type** | To indicate whether to perform 3DS during the linking phase | [optional] -**success_return_url** | **str, none_type** | URL where the end-customer is redirected if the authorization is successful | [optional] -**failure_return_url** | **str, none_type** | URL where the end-customer is redirected if the authorization failed | [optional] -**cardonfile_type** | **str, none_type** | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | [optional] -**merchant_id_tag** | **str** | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **skip_three_d_secure** | **bool, none_type** | To indicate whether to perform 3DS during the linking phase | [optional] | +| **success_return_url** | **str, none_type** | URL where the end-customer is redirected if the authorization is successful | [optional] | +| **failure_return_url** | **str, none_type** | URL where the end-customer is redirected if the authorization failed | [optional] | +| **cardonfile_type** | **str, none_type** | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | [optional] | +| **merchant_id_tag** | **str** | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CardInformation.md b/docs/CardInformation.md index 387bec98..b20ecd07 100644 --- a/docs/CardInformation.md +++ b/docs/CardInformation.md @@ -3,18 +3,19 @@ Card Information ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token_id** | **str** | | -**masked_card_number** | **str** | 1st 6 and last 4 digits of the card | -**expiry_month** | **str** | Card expiry month in MM format | -**expiry_year** | **str** | Card expiry month in YY format | -**cardholder_name** | **str, none_type** | Cardholder name | [optional] -**fingerprint** | **str** | | [optional] -**type** | **str** | | [optional] -**network** | **str** | | [optional] -**country** | **str** | | [optional] -**issuer** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **token_id** | **str** | | | +| **masked_card_number** | **str** | 1st 6 and last 4 digits of the card | | +| **expiry_month** | **str** | Card expiry month in MM format | | +| **expiry_year** | **str** | Card expiry month in YY format | | +| **cardholder_name** | **str, none_type** | Cardholder name | [optional] | +| **fingerprint** | **str** | | [optional] | +| **type** | **str** | | [optional] | +| **network** | **str** | | [optional] | +| **country** | **str** | | [optional] | +| **issuer** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CardParameters.md b/docs/CardParameters.md index da8ed998..ad1b384f 100644 --- a/docs/CardParameters.md +++ b/docs/CardParameters.md @@ -2,11 +2,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency** | **str** | | -**channel_properties** | [**CardChannelProperties**](CardChannelProperties.md) | | [optional] -**card_information** | [**CardParametersCardInformation**](CardParametersCardInformation.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **currency** | **str** | | | +| **channel_properties** | [**CardChannelProperties**](CardChannelProperties.md) | | [optional] | +| **card_information** | [**CardParametersCardInformation**](CardParametersCardInformation.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CardParametersCardInformation.md b/docs/CardParametersCardInformation.md index d88f3f61..8377fcf1 100644 --- a/docs/CardParametersCardInformation.md +++ b/docs/CardParametersCardInformation.md @@ -3,13 +3,14 @@ Card Information ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**card_number** | **str** | | -**expiry_month** | **str** | Card expiry month in MM format | -**expiry_year** | **str** | Card expiry month in YY format | -**cardholder_name** | **str, none_type** | Cardholder name | [optional] -**cvv** | **str, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **card_number** | **str** | | | +| **expiry_month** | **str** | Card expiry month in MM format | | +| **expiry_year** | **str** | Card expiry month in YY format | | +| **cardholder_name** | **str, none_type** | Cardholder name | [optional] | +| **cvv** | **str, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CardVerificationResults.md b/docs/CardVerificationResults.md index 7a74dae4..9f3216f3 100644 --- a/docs/CardVerificationResults.md +++ b/docs/CardVerificationResults.md @@ -2,11 +2,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**three_d_secure** | [**CardVerificationResultsThreeDSecure**](CardVerificationResultsThreeDSecure.md) | | [optional] -**cvv_result** | **str, none_type** | | [optional] -**address_verification_result** | **str, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **three_d_secure** | [**CardVerificationResultsThreeDSecure**](CardVerificationResultsThreeDSecure.md) | | [optional] | +| **cvv_result** | **str, none_type** | | [optional] | +| **address_verification_result** | **str, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CardVerificationResultsThreeDSecure.md b/docs/CardVerificationResultsThreeDSecure.md index eb5a4a68..a9f2d997 100644 --- a/docs/CardVerificationResultsThreeDSecure.md +++ b/docs/CardVerificationResultsThreeDSecure.md @@ -2,13 +2,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**three_d_secure_flow** | **str, none_type** | | [optional] -**eci_code** | **str, none_type** | | [optional] -**three_d_secure_result** | **str, none_type** | | [optional] -**three_d_secure_result_reason** | **str, none_type** | | [optional] -**three_d_secure_version** | **str, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **three_d_secure_flow** | **str, none_type** | | [optional] | +| **eci_code** | **str, none_type** | | [optional] | +| **three_d_secure_result** | **str, none_type** | | [optional] | +| **three_d_secure_result_reason** | **str, none_type** | | [optional] | +| **three_d_secure_version** | **str, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Channel.md b/docs/Channel.md index 9a603a74..974a2077 100644 --- a/docs/Channel.md +++ b/docs/Channel.md @@ -3,13 +3,14 @@ Channel information where you can send the money to ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel_code** | **str** | Destination channel to send the money to, prefixed by ISO-3166 country code | -**channel_category** | [**ChannelCategory**](ChannelCategory.md) | | -**currency** | **str** | Currency of the destination channel using ISO-4217 currency code | -**channel_name** | **str** | Name of the destination channel | -**amount_limits** | [**ChannelAmountLimits**](ChannelAmountLimits.md) | | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **channel_code** | **str** | Destination channel to send the money to, prefixed by ISO-3166 country code | | +| **channel_category** | [**ChannelCategory**](ChannelCategory.md) | | | +| **currency** | **str** | Currency of the destination channel using ISO-4217 currency code | | +| **channel_name** | **str** | Name of the destination channel | | +| **amount_limits** | [**ChannelAmountLimits**](ChannelAmountLimits.md) | | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ChannelAccountType.md b/docs/ChannelAccountType.md index 60242a57..1505cdc9 100644 --- a/docs/ChannelAccountType.md +++ b/docs/ChannelAccountType.md @@ -3,9 +3,11 @@ Available account types (applicable for MY_DUITNOW) ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Available account types (applicable for MY_DUITNOW) | must be one of ["NATIONAL_ID", "MOBILE_NO", "PASSPORT", "BUSINESS_REGISTRATION", "BANK_ACCOUNT", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Available account types (applicable for MY_DUITNOW) | must be one of ["NATIONAL_ID", "MOBILE_NO", "PASSPORT", "BUSINESS_REGISTRATION", "BANK_ACCOUNT", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ChannelAmountLimits.md b/docs/ChannelAmountLimits.md index 2bff371f..a1141110 100644 --- a/docs/ChannelAmountLimits.md +++ b/docs/ChannelAmountLimits.md @@ -3,11 +3,12 @@ Supported amount ranges for payouts to this channel ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**minimum** | **float** | Lowest amount supported for a payout to this channel | -**maximum** | **float** | Highest amount supported for a payout to this channel | -**minimum_increment** | **float** | Supported increments | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **minimum** | **float** | Lowest amount supported for a payout to this channel | | +| **maximum** | **float** | Highest amount supported for a payout to this channel | | +| **minimum_increment** | **float** | Supported increments | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ChannelCategory.md b/docs/ChannelCategory.md index 3b52fcc0..8baf4d18 100644 --- a/docs/ChannelCategory.md +++ b/docs/ChannelCategory.md @@ -3,9 +3,11 @@ Category of channel code, as some channels might require more fields during processing ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Category of channel code, as some channels might require more fields during processing | must be one of ["BANK", "EWALLET", "OTC", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Category of channel code, as some channels might require more fields during processing | must be one of ["BANK", "EWALLET", "OTC", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ChannelsCategories.md b/docs/ChannelsCategories.md index 60e9479f..7b7743ab 100644 --- a/docs/ChannelsCategories.md +++ b/docs/ChannelsCategories.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["BANK", "CARDLESS_CREDIT", "PAYLATER", "CARDS", "CASH", "DIRECT_DEBIT", "EWALLET", "INVOICE", "QR_CODE", "RETAIL_OUTLET", "VIRTUAL_ACCOUNT", "XENPLATFORM", "DIRECT_BANK_TRANSFER", "OTHER", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["BANK", "CARDLESS_CREDIT", "PAYLATER", "CARDS", "CASH", "DIRECT_DEBIT", "EWALLET", "INVOICE", "QR_CODE", "RETAIL_OUTLET", "VIRTUAL_ACCOUNT", "XENPLATFORM", "DIRECT_BANK_TRANSFER", "OTHER", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CountryCode.md b/docs/CountryCode.md index 2b0208d1..816f7833 100644 --- a/docs/CountryCode.md +++ b/docs/CountryCode.md @@ -3,9 +3,10 @@ ISO3166-2 country code ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | ISO3166-2 country code | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | ISO3166-2 country code | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateCustomer400Response.md b/docs/CreateCustomer400Response.md index a787d78b..e9acfc74 100644 --- a/docs/CreateCustomer400Response.md +++ b/docs/CreateCustomer400Response.md @@ -2,11 +2,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | -**message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | -**errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | | +| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | +| **errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateCustomer400ResponseAllOf.md b/docs/CreateCustomer400ResponseAllOf.md index 372292b9..0babb64f 100644 --- a/docs/CreateCustomer400ResponseAllOf.md +++ b/docs/CreateCustomer400ResponseAllOf.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] -**message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] | +| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateInvoiceRequest.md b/docs/CreateInvoiceRequest.md index 6dea5c84..4a7dcddc 100644 --- a/docs/CreateInvoiceRequest.md +++ b/docs/CreateInvoiceRequest.md @@ -3,28 +3,29 @@ An object representing for an invoice creation request. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**external_id** | **str** | The external ID of the invoice. | -**amount** | **float** | The invoice amount. | -**payer_email** | **str** | The email address of the payer. | [optional] -**description** | **str** | A description of the payment. | [optional] -**invoice_duration** | **str** | The duration of the invoice. | [optional] -**callback_virtual_account_id** | **str** | The ID of the callback virtual account. | [optional] -**should_send_email** | **bool** | Indicates whether email notifications should be sent. | [optional] -**customer** | [**CustomerObject**](CustomerObject.md) | | [optional] -**customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | [optional] -**success_redirect_url** | **str** | The URL to redirect to on successful payment. | [optional] -**failure_redirect_url** | **str** | The URL to redirect to on payment failure. | [optional] -**payment_methods** | **[str]** | An array of available payment methods. | [optional] -**mid_label** | **str** | The middle label. | [optional] -**should_authenticate_credit_card** | **bool** | Indicates whether credit card authentication is required. | [optional] -**currency** | **str** | The currency of the invoice. | [optional] -**reminder_time** | **float** | The reminder time. | [optional] -**local** | **str** | The local. | [optional] -**reminder_time_unit** | **str** | The unit of the reminder time. | [optional] -**items** | [**[InvoiceItem]**](InvoiceItem.md) | An array of items included in the invoice. | [optional] -**fees** | [**[InvoiceFee]**](InvoiceFee.md) | An array of fees associated with the invoice. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **external_id** | **str** | The external ID of the invoice. | | +| **amount** | **float** | The invoice amount. | | +| **payer_email** | **str** | The email address of the payer. | [optional] | +| **description** | **str** | A description of the payment. | [optional] | +| **invoice_duration** | **str** | The duration of the invoice. | [optional] | +| **callback_virtual_account_id** | **str** | The ID of the callback virtual account. | [optional] | +| **should_send_email** | **bool** | Indicates whether email notifications should be sent. | [optional] | +| **customer** | [**CustomerObject**](CustomerObject.md) | | [optional] | +| **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | [optional] | +| **success_redirect_url** | **str** | The URL to redirect to on successful payment. | [optional] | +| **failure_redirect_url** | **str** | The URL to redirect to on payment failure. | [optional] | +| **payment_methods** | **[str]** | An array of available payment methods. | [optional] | +| **mid_label** | **str** | The middle label. | [optional] | +| **should_authenticate_credit_card** | **bool** | Indicates whether credit card authentication is required. | [optional] | +| **currency** | **str** | The currency of the invoice. | [optional] | +| **reminder_time** | **float** | The reminder time. | [optional] | +| **local** | **str** | The local. | [optional] | +| **reminder_time_unit** | **str** | The unit of the reminder time. | [optional] | +| **items** | [**[InvoiceItem]**](InvoiceItem.md) | An array of items included in the invoice. | [optional] | +| **fees** | [**[InvoiceFee]**](InvoiceFee.md) | An array of fees associated with the invoice. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreatePaymentMethod409Response.md b/docs/CreatePaymentMethod409Response.md index dd89728b..a98b7ff9 100644 --- a/docs/CreatePaymentMethod409Response.md +++ b/docs/CreatePaymentMethod409Response.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] -**message** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] | +| **message** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreatePaymentMethod503Response.md b/docs/CreatePaymentMethod503Response.md index 08b01fbd..8e511a43 100644 --- a/docs/CreatePaymentMethod503Response.md +++ b/docs/CreatePaymentMethod503Response.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] -**message** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] | +| **message** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreatePayoutRequest.md b/docs/CreatePayoutRequest.md index 3f5d76d3..02b5aa0c 100644 --- a/docs/CreatePayoutRequest.md +++ b/docs/CreatePayoutRequest.md @@ -3,16 +3,17 @@ Information needed by Xendit to send money to the destination channel provided ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reference_id** | **str** | A client defined payout identifier | -**channel_code** | **str** | Channel code of selected destination bank or e-wallet | -**channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | | -**amount** | **float** | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | -**currency** | **str** | Currency of the destination channel using ISO-4217 currency code | -**description** | **str** | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | [optional] -**receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | [optional] -**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Object of additional information you may use | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **reference_id** | **str** | A client defined payout identifier | | +| **channel_code** | **str** | Channel code of selected destination bank or e-wallet | | +| **channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | | | +| **amount** | **float** | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | | +| **currency** | **str** | Currency of the destination channel using ISO-4217 currency code | | +| **description** | **str** | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | [optional] | +| **receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | [optional] | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Object of additional information you may use | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateRefund.md b/docs/CreateRefund.md index 79ecc201..79f1d51b 100644 --- a/docs/CreateRefund.md +++ b/docs/CreateRefund.md @@ -2,15 +2,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payment_request_id** | **str** | | [optional] -**invoice_id** | **str** | | [optional] -**reference_id** | **str** | | [optional] -**amount** | **float** | | [optional] -**currency** | **str** | | [optional] -**reason** | **str** | | [optional] -**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **payment_request_id** | **str** | | [optional] | +| **invoice_id** | **str** | | [optional] | +| **reference_id** | **str** | | [optional] | +| **amount** | **float** | | [optional] | +| **currency** | **str** | | [optional] | +| **reason** | **str** | | [optional] | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateRefund400Response.md b/docs/CreateRefund400Response.md index 16055b2b..dcfcef7f 100644 --- a/docs/CreateRefund400Response.md +++ b/docs/CreateRefund400Response.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] -**message** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] | +| **message** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateRefund403Response.md b/docs/CreateRefund403Response.md index ac077cbd..bc8405a4 100644 --- a/docs/CreateRefund403Response.md +++ b/docs/CreateRefund403Response.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] if omitted the server will use the default value of "UNAUTHORIZED" -**message** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] if omitted the server will use the default value of "UNAUTHORIZED" | +| **message** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateRefund404Response.md b/docs/CreateRefund404Response.md index c9b49aeb..3b8dc026 100644 --- a/docs/CreateRefund404Response.md +++ b/docs/CreateRefund404Response.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] if omitted the server will use the default value of "DATA_NOT_FOUND" -**message** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] if omitted the server will use the default value of "DATA_NOT_FOUND" | +| **message** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateRefund409Response.md b/docs/CreateRefund409Response.md index 6951fd35..e6189981 100644 --- a/docs/CreateRefund409Response.md +++ b/docs/CreateRefund409Response.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] -**message** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] | +| **message** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateRefund503Response.md b/docs/CreateRefund503Response.md index 0be86deb..b50bffd7 100644 --- a/docs/CreateRefund503Response.md +++ b/docs/CreateRefund503Response.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] -**message** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] | +| **message** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateRefundDefaultResponse.md b/docs/CreateRefundDefaultResponse.md deleted file mode 100644 index 40942bce..00000000 --- a/docs/CreateRefundDefaultResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# xendit.refund.model.CreateRefundDefaultResponse - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] -**message** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Currency.md b/docs/Currency.md index cb8a2dbc..547a7e07 100644 --- a/docs/Currency.md +++ b/docs/Currency.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["IDR", "PHP", "USD", "JPY", "VND", "SGD", "AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BRL", "BSD", "BTN", "BWP", "BYN", "BZD", "CAD", "CDF", "CHF", "CLP", "CNY", "COP", "CRC", "CUC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "GBP", "GEL", "GGP", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HRK", "HTG", "HUF", "ILS", "IMP", "INR", "IQD", "IRR", "ISK", "JEP", "JMD", "JOD", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRU", "MUR", "MVR", "MWK", "MXN", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SHP", "SLL", "SOS", "SPL", "SRD", "STN", "SVC", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TVD", "TWD", "TZS", "UAH", "UGX", "UYU", "UZS", "VEF", "VUV", "WST", "XAF", "XCD", "XDR", "XOF", "XPF", "YER", "ZAR", "ZMW", "ZWD", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["IDR", "PHP", "USD", "JPY", "VND", "SGD", "AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BRL", "BSD", "BTN", "BWP", "BYN", "BZD", "CAD", "CDF", "CHF", "CLP", "CNY", "COP", "CRC", "CUC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "GBP", "GEL", "GGP", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HRK", "HTG", "HUF", "ILS", "IMP", "INR", "IQD", "IRR", "ISK", "JEP", "JMD", "JOD", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRU", "MUR", "MVR", "MWK", "MXN", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SHP", "SLL", "SOS", "SPL", "SRD", "STN", "SVC", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TVD", "TWD", "TZS", "UAH", "UGX", "UYU", "UZS", "VEF", "VUV", "WST", "XAF", "XCD", "XDR", "XOF", "XPF", "YER", "ZAR", "ZMW", "ZWD", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Customer.md b/docs/Customer.md index c2556838..bf6e69ac 100644 --- a/docs/Customer.md +++ b/docs/Customer.md @@ -2,24 +2,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reference_id** | **str** | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | -**individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | -**business_detail** | [**BusinessDetail**](BusinessDetail.md) | | -**description** | **str, none_type** | | -**email** | **str, none_type** | | -**mobile_number** | **str, none_type** | | -**phone_number** | **str, none_type** | | -**addresses** | [**[Address], none_type**](Address.md) | | -**identity_accounts** | [**[IdentityAccountResponse], none_type**](IdentityAccountResponse.md) | | -**kyc_documents** | [**[KYCDocumentResponse], none_type**](KYCDocumentResponse.md) | | -**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | -**id** | **str** | | -**created** | **datetime** | | -**updated** | **datetime** | | -**type** | **str** | | defaults to "INDIVIDUAL" -**status** | [**EndCustomerStatus**](EndCustomerStatus.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **reference_id** | **str** | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | | +| **individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | | +| **business_detail** | [**BusinessDetail**](BusinessDetail.md) | | | +| **description** | **str, none_type** | | | +| **email** | **str, none_type** | | | +| **mobile_number** | **str, none_type** | | | +| **phone_number** | **str, none_type** | | | +| **addresses** | [**[Address], none_type**](Address.md) | | | +| **identity_accounts** | [**[IdentityAccountResponse], none_type**](IdentityAccountResponse.md) | | | +| **kyc_documents** | [**[KYCDocumentResponse], none_type**](KYCDocumentResponse.md) | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | +| **id** | **str** | | | +| **created** | **datetime** | | | +| **updated** | **datetime** | | | +| **type** | **str** | | defaults to "INDIVIDUAL" | +| **status** | [**EndCustomerStatus**](EndCustomerStatus.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CustomerObject.md b/docs/CustomerObject.md index faf5867c..fc088c9a 100644 --- a/docs/CustomerObject.md +++ b/docs/CustomerObject.md @@ -3,16 +3,17 @@ An object representing a customer with various properties, including addresses. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str, none_type** | The unique identifier for the customer. | [optional] -**phone_number** | **str, none_type** | The customer's phone number. | [optional] -**given_names** | **str, none_type** | The customer's given names or first names. | [optional] -**surname** | **str, none_type** | The customer's surname or last name. | [optional] -**email** | **str, none_type** | The customer's email address. | [optional] -**mobile_number** | **str, none_type** | The customer's mobile phone number. | [optional] -**customer_id** | **str, none_type** | An additional identifier for the customer. | [optional] -**addresses** | [**[AddressObject], none_type**](AddressObject.md) | An array of addresses associated with the customer. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | **str, none_type** | The unique identifier for the customer. | [optional] | +| **phone_number** | **str, none_type** | The customer's phone number. | [optional] | +| **given_names** | **str, none_type** | The customer's given names or first names. | [optional] | +| **surname** | **str, none_type** | The customer's surname or last name. | [optional] | +| **email** | **str, none_type** | The customer's email address. | [optional] | +| **mobile_number** | **str, none_type** | The customer's mobile phone number. | [optional] | +| **customer_id** | **str, none_type** | An additional identifier for the customer. | [optional] | +| **addresses** | [**[AddressObject], none_type**](AddressObject.md) | An array of addresses associated with the customer. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CustomerRequest.md b/docs/CustomerRequest.md index e5b220af..e6922cc6 100644 --- a/docs/CustomerRequest.md +++ b/docs/CustomerRequest.md @@ -2,21 +2,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reference_id** | **str** | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | -**client_name** | **str** | Entity's name for this client | [optional] -**type** | **str** | | [optional] if omitted the server will use the default value of "INDIVIDUAL" -**individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | [optional] -**business_detail** | [**BusinessDetail**](BusinessDetail.md) | | [optional] -**description** | **str, none_type** | | [optional] -**email** | **str** | | [optional] -**mobile_number** | **str** | | [optional] -**phone_number** | **str** | | [optional] -**addresses** | [**[AddressRequest]**](AddressRequest.md) | | [optional] -**identity_accounts** | [**[IdentityAccountRequest]**](IdentityAccountRequest.md) | | [optional] -**kyc_documents** | [**[KYCDocumentRequest]**](KYCDocumentRequest.md) | | [optional] -**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **reference_id** | **str** | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | | +| **client_name** | **str** | Entity's name for this client | [optional] | +| **type** | **str** | | [optional] if omitted the server will use the default value of "INDIVIDUAL" | +| **individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | [optional] | +| **business_detail** | [**BusinessDetail**](BusinessDetail.md) | | [optional] | +| **description** | **str, none_type** | | [optional] | +| **email** | **str** | | [optional] | +| **mobile_number** | **str** | | [optional] | +| **phone_number** | **str** | | [optional] | +| **addresses** | [**[AddressRequest]**](AddressRequest.md) | | [optional] | +| **identity_accounts** | [**[IdentityAccountRequest]**](IdentityAccountRequest.md) | | [optional] | +| **kyc_documents** | [**[KYCDocumentRequest]**](KYCDocumentRequest.md) | | [optional] | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DateRangeFilter.md b/docs/DateRangeFilter.md index c345e7ba..9a5ec8f2 100644 --- a/docs/DateRangeFilter.md +++ b/docs/DateRangeFilter.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gte** | **datetime** | Start time of transaction. If not specified will list all dates. | [optional] -**lte** | **datetime** | End time of transaction. If not specified will list all dates. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **gte** | **datetime** | Start time of transaction. If not specified will list all dates. | [optional] | +| **lte** | **datetime** | End time of transaction. If not specified will list all dates. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DigitalPayoutChannelProperties.md b/docs/DigitalPayoutChannelProperties.md index 9f1ffdae..da4bcf7c 100644 --- a/docs/DigitalPayoutChannelProperties.md +++ b/docs/DigitalPayoutChannelProperties.md @@ -3,11 +3,12 @@ Channel information for digital destinations (banks, e-wallets) ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_number** | **str** | Registered account number | -**account_holder_name** | **str, none_type** | Registered account name | [optional] -**account_type** | [**ChannelAccountType**](ChannelAccountType.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **account_number** | **str** | Registered account number | | +| **account_holder_name** | **str, none_type** | Registered account name | [optional] | +| **account_type** | [**ChannelAccountType**](ChannelAccountType.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DirectDebit.md b/docs/DirectDebit.md index 9761278d..82b870df 100644 --- a/docs/DirectDebit.md +++ b/docs/DirectDebit.md @@ -3,13 +3,14 @@ Direct Debit Payment Method Details ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel_code** | [**DirectDebitChannelCode**](DirectDebitChannelCode.md) | | -**channel_properties** | [**DirectDebitChannelProperties**](DirectDebitChannelProperties.md) | | -**type** | [**DirectDebitType**](DirectDebitType.md) | | -**bank_account** | [**DirectDebitBankAccount**](DirectDebitBankAccount.md) | | [optional] -**debit_card** | [**DirectDebitDebitCard**](DirectDebitDebitCard.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **channel_code** | [**DirectDebitChannelCode**](DirectDebitChannelCode.md) | | | +| **channel_properties** | [**DirectDebitChannelProperties**](DirectDebitChannelProperties.md) | | | +| **type** | [**DirectDebitType**](DirectDebitType.md) | | | +| **bank_account** | [**DirectDebitBankAccount**](DirectDebitBankAccount.md) | | [optional] | +| **debit_card** | [**DirectDebitDebitCard**](DirectDebitDebitCard.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DirectDebitAllOf.md b/docs/DirectDebitAllOf.md index aa5e6d61..cf9ad0a0 100644 --- a/docs/DirectDebitAllOf.md +++ b/docs/DirectDebitAllOf.md @@ -2,11 +2,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | [**DirectDebitType**](DirectDebitType.md) | | -**bank_account** | [**DirectDebitBankAccount**](DirectDebitBankAccount.md) | | [optional] -**debit_card** | [**DirectDebitDebitCard**](DirectDebitDebitCard.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **type** | [**DirectDebitType**](DirectDebitType.md) | | | +| **bank_account** | [**DirectDebitBankAccount**](DirectDebitBankAccount.md) | | [optional] | +| **debit_card** | [**DirectDebitDebitCard**](DirectDebitDebitCard.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DirectDebitBankAccount.md b/docs/DirectDebitBankAccount.md index 67e2e877..257a6531 100644 --- a/docs/DirectDebitBankAccount.md +++ b/docs/DirectDebitBankAccount.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**masked_bank_account_number** | **str, none_type** | | [optional] -**bank_account_hash** | **str, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **masked_bank_account_number** | **str, none_type** | | [optional] | +| **bank_account_hash** | **str, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DirectDebitChannelCode.md b/docs/DirectDebitChannelCode.md index aad94a72..6d2005c0 100644 --- a/docs/DirectDebitChannelCode.md +++ b/docs/DirectDebitChannelCode.md @@ -3,9 +3,11 @@ Direct Debit Channel Code ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Direct Debit Channel Code | must be one of ["BCA_KLIKPAY", "BCA_ONEKLIK", "BRI", "BNI", "MANDIRI", "BPI", "BDO", "CIMBNIAGA", "MTB", "RCBC", "UBP", "AUTODEBIT_UBP", "CHINABANK", "BAY", "KTB", "BBL", "SCB", "KBANK_MB", "BAY_MB", "KTB_MB", "BBL_MB", "SCB_MB", "BDO_EPAY", "AFFIN_FPX", "AGRO_FPX", "ALLIANCE_FPX", "AMBANK_FPX", "ISLAM_FPX", "MUAMALAT_FPX", "BOC_FPX", "RAKYAT_FPX", "BSN_FPX", "CIMB_FPX", "HLB_FPX", "HSBC_FPX", "KFH_FPX", "MAYB2E_FPX", "MAYB2U_FPX", "OCBC_FPX", "PUBLIC_FPX", "RHB_FPX", "SCH_FPX", "UOB_FPX", "AFFIN_FPX_BUSINESS", "AGRO_FPX_BUSINESS", "ALLIANCE_FPX_BUSINESS", "AMBANK_FPX_BUSINESS", "ISLAM_FPX_BUSINESS", "MUAMALAT_FPX_BUSINESS", "BNP_FPX_BUSINESS", "CIMB_FPX_BUSINESS", "CITIBANK_FPX_BUSINESS", "DEUTSCHE_FPX_BUSINESS", "HLB_FPX_BUSINESS", "HSBC_FPX_BUSINESS", "RAKYAT_FPX_BUSINESS", "KFH_FPX_BUSINESS", "MAYB2E_FPX_BUSINESS", "OCBC_FPX_BUSINESS", "PUBLIC_FPX_BUSINESS", "RHB_FPX_BUSINESS", "SCH_FPX_BUSINESS", "UOB_FPX_BUSINESS", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Direct Debit Channel Code | must be one of ["BCA_KLIKPAY", "BCA_ONEKLIK", "BRI", "BNI", "MANDIRI", "BPI", "BDO", "CIMBNIAGA", "MTB", "RCBC", "UBP", "AUTODEBIT_UBP", "CHINABANK", "BAY", "KTB", "BBL", "SCB", "KBANK_MB", "BAY_MB", "KTB_MB", "BBL_MB", "SCB_MB", "BDO_EPAY", "AFFIN_FPX", "AGRO_FPX", "ALLIANCE_FPX", "AMBANK_FPX", "ISLAM_FPX", "MUAMALAT_FPX", "BOC_FPX", "RAKYAT_FPX", "BSN_FPX", "CIMB_FPX", "HLB_FPX", "HSBC_FPX", "KFH_FPX", "MAYB2E_FPX", "MAYB2U_FPX", "OCBC_FPX", "PUBLIC_FPX", "RHB_FPX", "SCH_FPX", "UOB_FPX", "AFFIN_FPX_BUSINESS", "AGRO_FPX_BUSINESS", "ALLIANCE_FPX_BUSINESS", "AMBANK_FPX_BUSINESS", "ISLAM_FPX_BUSINESS", "MUAMALAT_FPX_BUSINESS", "BNP_FPX_BUSINESS", "CIMB_FPX_BUSINESS", "CITIBANK_FPX_BUSINESS", "DEUTSCHE_FPX_BUSINESS", "HLB_FPX_BUSINESS", "HSBC_FPX_BUSINESS", "RAKYAT_FPX_BUSINESS", "KFH_FPX_BUSINESS", "MAYB2E_FPX_BUSINESS", "OCBC_FPX_BUSINESS", "PUBLIC_FPX_BUSINESS", "RHB_FPX_BUSINESS", "SCH_FPX_BUSINESS", "UOB_FPX_BUSINESS", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DirectDebitChannelProperties.md b/docs/DirectDebitChannelProperties.md index 1d9ee14f..f2db2d75 100644 --- a/docs/DirectDebitChannelProperties.md +++ b/docs/DirectDebitChannelProperties.md @@ -2,16 +2,17 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mobile_number** | **str** | Mobile number of the customer registered to the partner channel | [optional] -**success_return_url** | **str** | | [optional] -**failure_return_url** | **str** | | [optional] -**identity_document_number** | **str** | | [optional] -**account_number** | **str** | | [optional] -**card_last_four** | **str** | Last four digits of the debit card | [optional] -**card_expiry** | **str** | Expiry month and year of the debit card (in MM/YY format) | [optional] -**email** | **str** | Email address of the customer that is registered to the partner channel | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **mobile_number** | **str** | Mobile number of the customer registered to the partner channel | [optional] | +| **success_return_url** | **str** | | [optional] | +| **failure_return_url** | **str** | | [optional] | +| **identity_document_number** | **str** | | [optional] | +| **account_number** | **str** | | [optional] | +| **card_last_four** | **str** | Last four digits of the debit card | [optional] | +| **card_expiry** | **str** | Expiry month and year of the debit card (in MM/YY format) | [optional] | +| **email** | **str** | Email address of the customer that is registered to the partner channel | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DirectDebitChannelPropertiesBankAccount.md b/docs/DirectDebitChannelPropertiesBankAccount.md index ad92a990..9f23e478 100644 --- a/docs/DirectDebitChannelPropertiesBankAccount.md +++ b/docs/DirectDebitChannelPropertiesBankAccount.md @@ -3,12 +3,13 @@ Direct Debit Bank Account Channel Properties ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success_return_url** | **str** | | [optional] -**failure_return_url** | **str** | | [optional] -**mobile_number** | **str** | | [optional] -**identity_document_number** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **success_return_url** | **str** | | [optional] | +| **failure_return_url** | **str** | | [optional] | +| **mobile_number** | **str** | | [optional] | +| **identity_document_number** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DirectDebitChannelPropertiesBankRedirect.md b/docs/DirectDebitChannelPropertiesBankRedirect.md index bd4ab92a..85d7ccdf 100644 --- a/docs/DirectDebitChannelPropertiesBankRedirect.md +++ b/docs/DirectDebitChannelPropertiesBankRedirect.md @@ -3,11 +3,12 @@ Direct Debit Bank Account Channel Properties ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mobile_number** | **str** | Mobile number of the customer that is registered to channel | [optional] -**success_return_url** | **str** | | [optional] -**failure_return_url** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **mobile_number** | **str** | Mobile number of the customer that is registered to channel | [optional] | +| **success_return_url** | **str** | | [optional] | +| **failure_return_url** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DirectDebitChannelPropertiesDebitCard.md b/docs/DirectDebitChannelPropertiesDebitCard.md index 4b2b0919..482e7a5e 100644 --- a/docs/DirectDebitChannelPropertiesDebitCard.md +++ b/docs/DirectDebitChannelPropertiesDebitCard.md @@ -3,13 +3,14 @@ Direct Debit Debit Card Channel Properties ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mobile_number** | **str** | Mobile number of the customer registered to the partner channel | [optional] -**account_number** | **str** | | [optional] -**card_last_four** | **str** | Last four digits of the debit card | [optional] -**card_expiry** | **str** | Expiry month and year of the debit card (in MM/YY format) | [optional] -**email** | **str** | Email address of the customer that is registered to the partner channel | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **mobile_number** | **str** | Mobile number of the customer registered to the partner channel | [optional] | +| **account_number** | **str** | | [optional] | +| **card_last_four** | **str** | Last four digits of the debit card | [optional] | +| **card_expiry** | **str** | Expiry month and year of the debit card (in MM/YY format) | [optional] | +| **email** | **str** | Email address of the customer that is registered to the partner channel | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DirectDebitDebitCard.md b/docs/DirectDebitDebitCard.md index 46223137..464bd56f 100644 --- a/docs/DirectDebitDebitCard.md +++ b/docs/DirectDebitDebitCard.md @@ -2,13 +2,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mobile_number** | **str, none_type** | Mobile number of the customer registered to the partner channel | [optional] -**account_number** | **str** | | [optional] -**card_last_four** | **str, none_type** | Last four digits of the debit card | [optional] -**card_expiry** | **str, none_type** | Expiry month and year of the debit card (in MM/YY format) | [optional] -**email** | **str, none_type** | Email address of the customer that is registered to the partner channel | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **mobile_number** | **str, none_type** | Mobile number of the customer registered to the partner channel | [optional] | +| **account_number** | **str** | | [optional] | +| **card_last_four** | **str, none_type** | Last four digits of the debit card | [optional] | +| **card_expiry** | **str, none_type** | Expiry month and year of the debit card (in MM/YY format) | [optional] | +| **email** | **str, none_type** | Email address of the customer that is registered to the partner channel | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DirectDebitParameters.md b/docs/DirectDebitParameters.md index 6ff44a69..990364b7 100644 --- a/docs/DirectDebitParameters.md +++ b/docs/DirectDebitParameters.md @@ -2,11 +2,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel_code** | [**DirectDebitChannelCode**](DirectDebitChannelCode.md) | | -**channel_properties** | [**DirectDebitChannelProperties**](DirectDebitChannelProperties.md) | | -**type** | [**DirectDebitType**](DirectDebitType.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **channel_code** | [**DirectDebitChannelCode**](DirectDebitChannelCode.md) | | | +| **channel_properties** | [**DirectDebitChannelProperties**](DirectDebitChannelProperties.md) | | | +| **type** | [**DirectDebitType**](DirectDebitType.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DirectDebitType.md b/docs/DirectDebitType.md index 833ef35c..18ac06eb 100644 --- a/docs/DirectDebitType.md +++ b/docs/DirectDebitType.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["DEBIT_CARD", "BANK_ACCOUNT", "BANK_REDIRECT", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["DEBIT_CARD", "BANK_ACCOUNT", "BANK_REDIRECT", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EWallet.md b/docs/EWallet.md index a33aaeca..9aa15186 100644 --- a/docs/EWallet.md +++ b/docs/EWallet.md @@ -3,11 +3,12 @@ Ewallet Payment Method Details ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | | [optional] -**channel_properties** | [**EWalletChannelProperties**](EWalletChannelProperties.md) | | [optional] -**account** | [**EWalletAccount**](EWalletAccount.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | | [optional] | +| **channel_properties** | [**EWalletChannelProperties**](EWalletChannelProperties.md) | | [optional] | +| **account** | [**EWalletAccount**](EWalletAccount.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EWalletAccount.md b/docs/EWalletAccount.md index 7422a70f..0b4acaeb 100644 --- a/docs/EWalletAccount.md +++ b/docs/EWalletAccount.md @@ -3,12 +3,13 @@ EWallet Account Properties ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the eWallet account holder. The value is null if unavailableName of the eWallet account holder. The value is null if unavailable | [optional] -**account_details** | **str, none_type** | Identifier from eWallet provider e.g. phone number. The value is null if unavailable | [optional] -**balance** | **float, none_type** | The main balance amount on eWallet account provided from eWallet provider. The value is null if unavailable | [optional] -**point_balance** | **float, none_type** | The point balance amount on eWallet account. Applicable only on some eWallet provider that has point system. The value is null if unavailabl | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **name** | **str, none_type** | Name of the eWallet account holder. The value is null if unavailableName of the eWallet account holder. The value is null if unavailable | [optional] | +| **account_details** | **str, none_type** | Identifier from eWallet provider e.g. phone number. The value is null if unavailable | [optional] | +| **balance** | **float, none_type** | The main balance amount on eWallet account provided from eWallet provider. The value is null if unavailable | [optional] | +| **point_balance** | **float, none_type** | The point balance amount on eWallet account. Applicable only on some eWallet provider that has point system. The value is null if unavailabl | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EWalletAllOf.md b/docs/EWalletAllOf.md index 37bd61a4..96ccaa56 100644 --- a/docs/EWalletAllOf.md +++ b/docs/EWalletAllOf.md @@ -2,9 +2,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account** | [**EWalletAccount**](EWalletAccount.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **account** | [**EWalletAccount**](EWalletAccount.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EWalletChannelCode.md b/docs/EWalletChannelCode.md index 7a7e5b5c..aeb031e9 100644 --- a/docs/EWalletChannelCode.md +++ b/docs/EWalletChannelCode.md @@ -3,9 +3,11 @@ Ewallet Channel Code ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Ewallet Channel Code | must be one of ["GCASH", "GRABPAY", "PAYMAYA", "DANA", "OVO", "LINKAJA", "SHOPEEPAY", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Ewallet Channel Code | must be one of ["GCASH", "GRABPAY", "PAYMAYA", "DANA", "OVO", "LINKAJA", "SHOPEEPAY", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EWalletChannelProperties.md b/docs/EWalletChannelProperties.md index 099f818b..cf4f7590 100644 --- a/docs/EWalletChannelProperties.md +++ b/docs/EWalletChannelProperties.md @@ -3,14 +3,15 @@ Ewallet Channel Properties ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success_return_url** | **str** | URL where the end-customer is redirected if the authorization is successful | [optional] -**failure_return_url** | **str** | URL where the end-customer is redirected if the authorization failed | [optional] -**cancel_return_url** | **str** | URL where the end-customer is redirected if the authorization cancelled | [optional] -**redeem_points** | **str** | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | [optional] -**mobile_number** | **str** | | [optional] -**cashtag** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **success_return_url** | **str** | URL where the end-customer is redirected if the authorization is successful | [optional] | +| **failure_return_url** | **str** | URL where the end-customer is redirected if the authorization failed | [optional] | +| **cancel_return_url** | **str** | URL where the end-customer is redirected if the authorization cancelled | [optional] | +| **redeem_points** | **str** | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | [optional] | +| **mobile_number** | **str** | | [optional] | +| **cashtag** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EWalletParameters.md b/docs/EWalletParameters.md index c40dc531..881548a0 100644 --- a/docs/EWalletParameters.md +++ b/docs/EWalletParameters.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | | [optional] -**channel_properties** | [**EWalletChannelProperties**](EWalletChannelProperties.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | | [optional] | +| **channel_properties** | [**EWalletChannelProperties**](EWalletChannelProperties.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EmploymentDetail.md b/docs/EmploymentDetail.md index 61017e95..4d9ead41 100644 --- a/docs/EmploymentDetail.md +++ b/docs/EmploymentDetail.md @@ -2,11 +2,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**employer_name** | **str, none_type** | Name of employer | [optional] -**nature_of_business** | **str, none_type** | Industry or nature of business | [optional] -**role_description** | **str, none_type** | Occupation or title | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **employer_name** | **str, none_type** | Name of employer | [optional] | +| **nature_of_business** | **str, none_type** | Industry or nature of business | [optional] | +| **role_description** | **str, none_type** | Occupation or title | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EndCustomerStatus.md b/docs/EndCustomerStatus.md index 4e096dc1..ccefe2bb 100644 --- a/docs/EndCustomerStatus.md +++ b/docs/EndCustomerStatus.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["ACTIVE", "INACTIVE", "PENDING", "BLOCKED", "DELETED", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["ACTIVE", "INACTIVE", "PENDING", "BLOCKED", "DELETED", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Error.md b/docs/Error.md index eda40f1e..d87093c6 100644 --- a/docs/Error.md +++ b/docs/Error.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str, none_type** | | [optional] -**message** | **str, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str, none_type** | | [optional] | +| **message** | **str, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ErrorErrorsInner.md b/docs/ErrorErrorsInner.md index d3486b38..ad3a4c8c 100644 --- a/docs/ErrorErrorsInner.md +++ b/docs/ErrorErrorsInner.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**path** | **str** | Precise location of the error | -**message** | **str** | Specific description of the error | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **path** | **str** | Precise location of the error | | +| **message** | **str** | Specific description of the error | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Ewallet.md b/docs/Ewallet.md index a9982684..ee7b24e1 100644 --- a/docs/Ewallet.md +++ b/docs/Ewallet.md @@ -3,9 +3,10 @@ An object representing e-wallet details for invoices. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ewallet_type** | [**EwalletType**](EwalletType.md) | | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **ewallet_type** | [**EwalletType**](EwalletType.md) | | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EwalletType.md b/docs/EwalletType.md index 0364be7e..e59f9e8d 100644 --- a/docs/EwalletType.md +++ b/docs/EwalletType.md @@ -3,9 +3,11 @@ Representing the available eWallet channels used for invoice-related transactions. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Representing the available eWallet channels used for invoice-related transactions. | must be one of ["OVO", "DANA", "LINKAJA", "PAYMAYA", "SHOPEEPAY", "GCASH", "GRABPAY", "ASTRAPAY", "NEXCASH", "JENIUSPAY", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Representing the available eWallet channels used for invoice-related transactions. | must be one of ["OVO", "DANA", "LINKAJA", "PAYMAYA", "SHOPEEPAY", "GCASH", "GRABPAY", "ASTRAPAY", "NEXCASH", "JENIUSPAY", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FeeResponse.md b/docs/FeeResponse.md index 672b549a..70cf6657 100644 --- a/docs/FeeResponse.md +++ b/docs/FeeResponse.md @@ -2,13 +2,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**xendit_fee** | **float** | Amount of the Xendit fee for this transaction. | -**value_added_tax** | **float** | Amount of the VAT for this transaction. | -**xendit_withholding_tax** | **float** | Amount of the Xendit Withholding Tax for this transaction if applicable. See [Tax Documentation](https://docs.xendit.co/fees-and-vat#vat) for more information. | [optional] -**third_party_withholding_tax** | **float** | Amount of the 3rd Party Withholding Tax for this transaction if applicable. 3rd party example: Bank | [optional] -**status** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **xendit_fee** | **float** | Amount of the Xendit fee for this transaction. | | +| **value_added_tax** | **float** | Amount of the VAT for this transaction. | | +| **xendit_withholding_tax** | **float** | Amount of the Xendit Withholding Tax for this transaction if applicable. See [Tax Documentation](https://docs.xendit.co/fees-and-vat#vat) for more information. | [optional] | +| **third_party_withholding_tax** | **float** | Amount of the 3rd Party Withholding Tax for this transaction if applicable. 3rd party example: Bank | [optional] | +| **status** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ForbiddenError.md b/docs/ForbiddenError.md index 71e32682..93862fe2 100644 --- a/docs/ForbiddenError.md +++ b/docs/ForbiddenError.md @@ -3,10 +3,11 @@ An error object used to indicate a 403 Forbidden response related to invoice operations. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **str** | A human-readable error message providing additional context about the 403 Forbidden response. | -**error_code** | **str** | The specific error code indicating that access to the invoice operation is suspended. | defaults to "ACCESS_SUSPENDED" +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **message** | **str** | A human-readable error message providing additional context about the 403 Forbidden response. | | +| **error_code** | **str** | The specific error code indicating that access to the invoice operation is suspended. | defaults to "ACCESS_SUSPENDED" | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetAllPaymentMethods400Response.md b/docs/GetAllPaymentMethods400Response.md index 07102f5b..6abab2fe 100644 --- a/docs/GetAllPaymentMethods400Response.md +++ b/docs/GetAllPaymentMethods400Response.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] -**message** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] | +| **message** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetAllPaymentMethods403Response.md b/docs/GetAllPaymentMethods403Response.md index 024e7cc8..0e4040db 100644 --- a/docs/GetAllPaymentMethods403Response.md +++ b/docs/GetAllPaymentMethods403Response.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] -**message** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] | +| **message** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetAllPaymentMethods404Response.md b/docs/GetAllPaymentMethods404Response.md index 88a399c0..67550921 100644 --- a/docs/GetAllPaymentMethods404Response.md +++ b/docs/GetAllPaymentMethods404Response.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] if omitted the server will use the default value of "DATA_NOT_FOUND" -**message** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] if omitted the server will use the default value of "DATA_NOT_FOUND" | +| **message** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetAllPaymentMethodsDefaultResponse.md b/docs/GetAllPaymentMethodsDefaultResponse.md index 095ff633..162f919f 100644 --- a/docs/GetAllPaymentMethodsDefaultResponse.md +++ b/docs/GetAllPaymentMethodsDefaultResponse.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] -**message** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] | +| **message** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetAllRefundsDefaultResponse.md b/docs/GetAllRefundsDefaultResponse.md new file mode 100644 index 00000000..f6838072 --- /dev/null +++ b/docs/GetAllRefundsDefaultResponse.md @@ -0,0 +1,13 @@ +# xendit.refund.model.GetAllRefundsDefaultResponse + + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] | +| **message** | **str** | | [optional] | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetCustomerByReferenceID200Response.md b/docs/GetCustomerByReferenceID200Response.md index b2056762..82c7c778 100644 --- a/docs/GetCustomerByReferenceID200Response.md +++ b/docs/GetCustomerByReferenceID200Response.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**has_more** | **bool** | | [optional] -**data** | [**[Customer]**](Customer.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **has_more** | **bool** | | [optional] | +| **data** | [**[Customer]**](Customer.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetCustomerByReferenceID400Response.md b/docs/GetCustomerByReferenceID400Response.md index c6fefe0a..2af43902 100644 --- a/docs/GetCustomerByReferenceID400Response.md +++ b/docs/GetCustomerByReferenceID400Response.md @@ -2,11 +2,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | -**message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | -**errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | | +| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | +| **errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetCustomerByReferenceID400ResponseAllOf.md b/docs/GetCustomerByReferenceID400ResponseAllOf.md index 02aa32d8..2c937414 100644 --- a/docs/GetCustomerByReferenceID400ResponseAllOf.md +++ b/docs/GetCustomerByReferenceID400ResponseAllOf.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] -**message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] | +| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetPayouts200Response.md b/docs/GetPayouts200Response.md index ce242603..e321dc21 100644 --- a/docs/GetPayouts200Response.md +++ b/docs/GetPayouts200Response.md @@ -2,11 +2,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[GetPayouts200ResponseDataInner]**](GetPayouts200ResponseDataInner.md) | | [optional] -**has_more** | **bool** | | [optional] -**links** | [**GetPayouts200ResponseLinks**](GetPayouts200ResponseLinks.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **data** | [**[GetPayouts200ResponseDataInner]**](GetPayouts200ResponseDataInner.md) | | [optional] | +| **has_more** | **bool** | | [optional] | +| **links** | [**GetPayouts200ResponseLinks**](GetPayouts200ResponseLinks.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetPayouts200ResponseDataInner.md b/docs/GetPayouts200ResponseDataInner.md index 24972087..20e59738 100644 --- a/docs/GetPayouts200ResponseDataInner.md +++ b/docs/GetPayouts200ResponseDataInner.md @@ -2,23 +2,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **str** | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | [optional] -**receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | [optional] -**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Object of additional information you may use | [optional] -**failure_code** | **str** | If the Payout failed, we include a failure code for more details on the failure. | [optional] -**estimated_arrival_time** | **datetime** | Our estimated time on to when your payout is reflected to the destination account | [optional] -**reference_id** | **str** | A client defined payout identifier | [optional] -**channel_code** | **str** | Channel code of selected destination bank or e-wallet | [optional] -**channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | | [optional] -**amount** | **float** | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | [optional] -**currency** | **str** | Currency of the destination channel using ISO-4217 currency code | [optional] -**id** | **str** | Xendit-generated unique identifier for each payout | [optional] -**created** | **datetime** | The time payout was created on Xendit's system, in ISO 8601 format | [optional] -**updated** | **datetime** | The time payout was last updated on Xendit's system, in ISO 8601 format | [optional] -**business_id** | **str** | Xendit Business ID | [optional] -**status** | **str** | Status of payout | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **description** | **str** | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | [optional] | +| **receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | [optional] | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Object of additional information you may use | [optional] | +| **failure_code** | **str** | If the Payout failed, we include a failure code for more details on the failure. | [optional] | +| **estimated_arrival_time** | **datetime** | Our estimated time on to when your payout is reflected to the destination account | [optional] | +| **reference_id** | **str** | A client defined payout identifier | [optional] | +| **channel_code** | **str** | Channel code of selected destination bank or e-wallet | [optional] | +| **channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | | [optional] | +| **amount** | **float** | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | [optional] | +| **currency** | **str** | Currency of the destination channel using ISO-4217 currency code | [optional] | +| **id** | **str** | Xendit-generated unique identifier for each payout | [optional] | +| **created** | **datetime** | The time payout was created on Xendit's system, in ISO 8601 format | [optional] | +| **updated** | **datetime** | The time payout was last updated on Xendit's system, in ISO 8601 format | [optional] | +| **business_id** | **str** | Xendit Business ID | [optional] | +| **status** | **str** | Status of payout | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetPayouts200ResponseLinks.md b/docs/GetPayouts200ResponseLinks.md index dd09f135..ad7ee050 100644 --- a/docs/GetPayouts200ResponseLinks.md +++ b/docs/GetPayouts200ResponseLinks.md @@ -2,11 +2,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **str** | | [optional] -**rel** | **str** | | [optional] -**method** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **href** | **str** | | [optional] | +| **rel** | **str** | | [optional] | +| **method** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/IdentityAccountRequest.md b/docs/IdentityAccountRequest.md index 2ea2d03e..e0051e3c 100644 --- a/docs/IdentityAccountRequest.md +++ b/docs/IdentityAccountRequest.md @@ -2,13 +2,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | [**IdentityAccountType**](IdentityAccountType.md) | | [optional] -**company** | **str** | The issuing institution associated with the account (e.g., OCBC, GOPAY, 7-11). If adding financial accounts that Xendit supports, we recommend you use the channel_name found at https://xendit.github.io/apireference/#payment-channels for this field | [optional] -**description** | **str** | Free text description of this account | [optional] -**country** | [**CountryCode**](CountryCode.md) | | [optional] -**properties** | [**IdentityAccountRequestProperties**](IdentityAccountRequestProperties.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **type** | [**IdentityAccountType**](IdentityAccountType.md) | | [optional] | +| **company** | **str** | The issuing institution associated with the account (e.g., OCBC, GOPAY, 7-11). If adding financial accounts that Xendit supports, we recommend you use the channel_name found at https://xendit.github.io/apireference/#payment-channels for this field | [optional] | +| **description** | **str** | Free text description of this account | [optional] | +| **country** | [**CountryCode**](CountryCode.md) | | [optional] | +| **properties** | [**IdentityAccountRequestProperties**](IdentityAccountRequestProperties.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/IdentityAccountRequestProperties.md b/docs/IdentityAccountRequestProperties.md index 849401e5..d13e7c3b 100644 --- a/docs/IdentityAccountRequestProperties.md +++ b/docs/IdentityAccountRequestProperties.md @@ -2,19 +2,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_number** | **str** | Unique account identifier as per the bank records. | [optional] -**account_holder_name** | **str, none_type** | Name of account holder as per the cardless credit account. | [optional] -**swift_code** | **str, none_type** | The SWIFT code for international payments | [optional] -**account_type** | **str, none_type** | Free text account type, e.g., Savings, Transaction, Virtual Account. | [optional] -**account_details** | **str, none_type** | Potentially masked account detail, for display purposes only. | [optional] -**currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] -**token_id** | **str** | The token id returned in tokenisation | [optional] -**account_id** | **str** | Alphanumeric string identifying this account. Usually an email address or phone number. | [optional] -**payment_code** | **str** | Complete fixed payment code (including prefix) | [optional] -**expires_at** | **str, none_type** | YYYY-MM-DD string with expiry date for the payment code | [optional] -**qr_string** | **str** | String representation of the QR Code image | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **account_number** | **str** | Unique account identifier as per the bank records. | [optional] | +| **account_holder_name** | **str, none_type** | Name of account holder as per the cardless credit account. | [optional] | +| **swift_code** | **str, none_type** | The SWIFT code for international payments | [optional] | +| **account_type** | **str, none_type** | Free text account type, e.g., Savings, Transaction, Virtual Account. | [optional] | +| **account_details** | **str, none_type** | Potentially masked account detail, for display purposes only. | [optional] | +| **currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | +| **token_id** | **str** | The token id returned in tokenisation | [optional] | +| **account_id** | **str** | Alphanumeric string identifying this account. Usually an email address or phone number. | [optional] | +| **payment_code** | **str** | Complete fixed payment code (including prefix) | [optional] | +| **expires_at** | **str, none_type** | YYYY-MM-DD string with expiry date for the payment code | [optional] | +| **qr_string** | **str** | String representation of the QR Code image | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/IdentityAccountResponse.md b/docs/IdentityAccountResponse.md index 861d4e98..7a83c986 100644 --- a/docs/IdentityAccountResponse.md +++ b/docs/IdentityAccountResponse.md @@ -2,17 +2,18 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**company** | **str, none_type** | | -**description** | **str, none_type** | | -**country** | [**CountryCode**](CountryCode.md) | | -**type** | **str, none_type** | | -**properties** | [**IdentityAccountResponseProperties**](IdentityAccountResponseProperties.md) | | -**id** | **str** | | [optional] -**code** | **str, none_type** | | [optional] -**holder_name** | **str, none_type** | | [optional] -**created** | **datetime** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **company** | **str, none_type** | | | +| **description** | **str, none_type** | | | +| **country** | [**CountryCode**](CountryCode.md) | | | +| **type** | **str, none_type** | | | +| **properties** | [**IdentityAccountResponseProperties**](IdentityAccountResponseProperties.md) | | | +| **id** | **str** | | [optional] | +| **code** | **str, none_type** | | [optional] | +| **holder_name** | **str, none_type** | | [optional] | +| **created** | **datetime** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/IdentityAccountResponseProperties.md b/docs/IdentityAccountResponseProperties.md index df3b62ee..a3084cf2 100644 --- a/docs/IdentityAccountResponseProperties.md +++ b/docs/IdentityAccountResponseProperties.md @@ -2,19 +2,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_number** | **str** | Unique account identifier as per the bank records. | [optional] -**account_holder_name** | **str, none_type** | Name of account holder as per the cardless credit account. | [optional] -**swift_code** | **str, none_type** | The SWIFT code for international payments | [optional] -**account_type** | **str, none_type** | Free text account type, e.g., Savings, Transaction, Virtual Account. | [optional] -**account_details** | **str, none_type** | Potentially masked account detail, for display purposes only. | [optional] -**currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] -**token_id** | **str** | The token id returned in tokenisation | [optional] -**payment_code** | **str** | Complete fixed payment code (including prefix) | [optional] -**expires_at** | **str, none_type** | YYYY-MM-DD string with expiry date for the payment code | [optional] -**qr_string** | **str** | String representation of the QR Code image | [optional] -**account_id** | **str** | Alphanumeric string identifying this account. Usually an email address or phone number. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **account_number** | **str** | Unique account identifier as per the bank records. | [optional] | +| **account_holder_name** | **str, none_type** | Name of account holder as per the cardless credit account. | [optional] | +| **swift_code** | **str, none_type** | The SWIFT code for international payments | [optional] | +| **account_type** | **str, none_type** | Free text account type, e.g., Savings, Transaction, Virtual Account. | [optional] | +| **account_details** | **str, none_type** | Potentially masked account detail, for display purposes only. | [optional] | +| **currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | +| **token_id** | **str** | The token id returned in tokenisation | [optional] | +| **payment_code** | **str** | Complete fixed payment code (including prefix) | [optional] | +| **expires_at** | **str, none_type** | YYYY-MM-DD string with expiry date for the payment code | [optional] | +| **qr_string** | **str** | String representation of the QR Code image | [optional] | +| **account_id** | **str** | Alphanumeric string identifying this account. Usually an email address or phone number. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/IdentityAccountType.md b/docs/IdentityAccountType.md index 52225bad..8ec70d10 100644 --- a/docs/IdentityAccountType.md +++ b/docs/IdentityAccountType.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["BANK_ACCOUNT", "EWALLET", "CREDIT_CARD", "PAY_LATER", "OTC", "QR_CODE", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["BANK_ACCOUNT", "EWALLET", "CREDIT_CARD", "PAY_LATER", "OTC", "QR_CODE", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/IndividualDetail.md b/docs/IndividualDetail.md index 301df694..e608e64e 100644 --- a/docs/IndividualDetail.md +++ b/docs/IndividualDetail.md @@ -2,19 +2,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**given_names** | **str** | | [optional] -**given_names_non_roman** | **str, none_type** | | [optional] -**middle_name** | **str, none_type** | | [optional] -**surname** | **str, none_type** | | [optional] -**surname_non_roman** | **str, none_type** | | [optional] -**mother_maiden_name** | **str, none_type** | | [optional] -**gender** | **str, none_type** | | [optional] -**date_of_birth** | **str, none_type** | | [optional] -**nationality** | [**CountryCode**](CountryCode.md) | | [optional] -**place_of_birth** | **str, none_type** | | [optional] -**employment** | [**EmploymentDetail**](EmploymentDetail.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **given_names** | **str** | | [optional] | +| **given_names_non_roman** | **str, none_type** | | [optional] | +| **middle_name** | **str, none_type** | | [optional] | +| **surname** | **str, none_type** | | [optional] | +| **surname_non_roman** | **str, none_type** | | [optional] | +| **mother_maiden_name** | **str, none_type** | | [optional] | +| **gender** | **str, none_type** | | [optional] | +| **date_of_birth** | **str, none_type** | | [optional] | +| **nationality** | [**CountryCode**](CountryCode.md) | | [optional] | +| **place_of_birth** | **str, none_type** | | [optional] | +| **employment** | [**EmploymentDetail**](EmploymentDetail.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Invoice.md b/docs/Invoice.md index 7ca2ed3a..9a641a20 100644 --- a/docs/Invoice.md +++ b/docs/Invoice.md @@ -3,41 +3,42 @@ An object representing details for an invoice. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**external_id** | **str** | The external identifier for the invoice. | -**user_id** | **str** | The user ID associated with the invoice. | -**status** | [**InvoiceStatus**](InvoiceStatus.md) | | -**merchant_name** | **str** | The name of the merchant. | -**merchant_profile_picture_url** | **str** | The URL of the merchant's profile picture. | -**amount** | **float** | The total amount of the invoice. | -**expiry_date** | **datetime** | Representing a date and time in ISO 8601 format. | -**invoice_url** | **str** | The URL to view the invoice. | -**available_banks** | [**[Bank]**](Bank.md) | An array of available banks for payment. | -**available_retail_outlets** | [**[RetailOutlet]**](RetailOutlet.md) | An array of available retail outlets for payment. | -**available_ewallets** | [**[Ewallet]**](Ewallet.md) | An array of available e-wallets for payment. | -**available_qr_codes** | [**[QrCode]**](QrCode.md) | An array of available QR codes for payment. | -**available_direct_debits** | [**[DirectDebit]**](DirectDebit.md) | An array of available direct debit options for payment. | -**available_paylaters** | [**[Paylater]**](Paylater.md) | An array of available pay-later options for payment. | -**should_send_email** | **bool** | Indicates whether email notifications should be sent. | -**created** | **datetime** | Representing a date and time in ISO 8601 format. | -**updated** | **datetime** | Representing a date and time in ISO 8601 format. | -**id** | **str** | The unique identifier for the invoice. | [optional] -**payer_email** | **str** | The email address of the payer. | [optional] -**description** | **str** | A description of the invoice. | [optional] -**payment_method** | [**InvoicePaymentMethod**](InvoicePaymentMethod.md) | | [optional] -**locale** | **str** | The locale or language used for the invoice. | [optional] -**should_exclude_credit_card** | **bool** | Indicates whether credit card payments should be excluded. | [optional] -**success_redirect_url** | **str** | The URL to redirect to on successful payment. | [optional] -**failure_redirect_url** | **str** | The URL to redirect to on payment failure. | [optional] -**should_authenticate_credit_card** | **bool** | Indicates whether credit card authentication is required. | [optional] -**currency** | [**InvoiceCurrency**](InvoiceCurrency.md) | | [optional] -**items** | [**[InvoiceItem]**](InvoiceItem.md) | An array of items included in the invoice. | [optional] -**fixed_va** | **bool** | Indicates whether the virtual account is fixed. | [optional] -**reminder_date** | **datetime** | Representing a date and time in ISO 8601 format. | [optional] -**customer** | [**CustomerObject**](CustomerObject.md) | | [optional] -**customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | [optional] -**fees** | [**[InvoiceFee]**](InvoiceFee.md) | An array of fees associated with the invoice. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **external_id** | **str** | The external identifier for the invoice. | | +| **user_id** | **str** | The user ID associated with the invoice. | | +| **status** | [**InvoiceStatus**](InvoiceStatus.md) | | | +| **merchant_name** | **str** | The name of the merchant. | | +| **merchant_profile_picture_url** | **str** | The URL of the merchant's profile picture. | | +| **amount** | **float** | The total amount of the invoice. | | +| **expiry_date** | **datetime** | Representing a date and time in ISO 8601 format. | | +| **invoice_url** | **str** | The URL to view the invoice. | | +| **available_banks** | [**[Bank]**](Bank.md) | An array of available banks for payment. | | +| **available_retail_outlets** | [**[RetailOutlet]**](RetailOutlet.md) | An array of available retail outlets for payment. | | +| **available_ewallets** | [**[Ewallet]**](Ewallet.md) | An array of available e-wallets for payment. | | +| **available_qr_codes** | [**[QrCode]**](QrCode.md) | An array of available QR codes for payment. | | +| **available_direct_debits** | [**[DirectDebit]**](DirectDebit.md) | An array of available direct debit options for payment. | | +| **available_paylaters** | [**[Paylater]**](Paylater.md) | An array of available pay-later options for payment. | | +| **should_send_email** | **bool** | Indicates whether email notifications should be sent. | | +| **created** | **datetime** | Representing a date and time in ISO 8601 format. | | +| **updated** | **datetime** | Representing a date and time in ISO 8601 format. | | +| **id** | **str** | The unique identifier for the invoice. | [optional] | +| **payer_email** | **str** | The email address of the payer. | [optional] | +| **description** | **str** | A description of the invoice. | [optional] | +| **payment_method** | [**InvoicePaymentMethod**](InvoicePaymentMethod.md) | | [optional] | +| **locale** | **str** | The locale or language used for the invoice. | [optional] | +| **should_exclude_credit_card** | **bool** | Indicates whether credit card payments should be excluded. | [optional] | +| **success_redirect_url** | **str** | The URL to redirect to on successful payment. | [optional] | +| **failure_redirect_url** | **str** | The URL to redirect to on payment failure. | [optional] | +| **should_authenticate_credit_card** | **bool** | Indicates whether credit card authentication is required. | [optional] | +| **currency** | [**InvoiceCurrency**](InvoiceCurrency.md) | | [optional] | +| **items** | [**[InvoiceItem]**](InvoiceItem.md) | An array of items included in the invoice. | [optional] | +| **fixed_va** | **bool** | Indicates whether the virtual account is fixed. | [optional] | +| **reminder_date** | **datetime** | Representing a date and time in ISO 8601 format. | [optional] | +| **customer** | [**CustomerObject**](CustomerObject.md) | | [optional] | +| **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | [optional] | +| **fees** | [**[InvoiceFee]**](InvoiceFee.md) | An array of fees associated with the invoice. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InvoiceApi.md b/docs/InvoiceApi.md index ce332920..b79eecb2 100644 --- a/docs/InvoiceApi.md +++ b/docs/InvoiceApi.md @@ -5,9 +5,9 @@ All URIs are relative to *https://api.xendit.co* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_invoice**](InvoiceApi.md#create_invoice) | **POST** /v2/invoices/ | Create an invoice -[**expire_invoice**](InvoiceApi.md#expire_invoice) | **POST** /invoices/{invoice_id}/expire! | Manually expire an invoice [**get_invoice_by_id**](InvoiceApi.md#get_invoice_by_id) | **GET** /v2/invoices/{invoice_id} | Get invoice by invoice id [**get_invoices**](InvoiceApi.md#get_invoices) | **GET** /v2/invoices | Get all Invoices +[**expire_invoice**](InvoiceApi.md#expire_invoice) | **POST** /invoices/{invoice_id}/expire! | Manually expire an invoice # **create_invoice** @@ -116,6 +116,15 @@ try: pprint(api_response) except xendit.XenditSdkException as e: print("Exception when calling InvoiceApi->create_invoice: %s\n" % e) + +# example passing only required values which don't have defaults set +# and optional values +try: + # Create an invoice + api_response = api_instance.create_invoice(create_invoice_request, for_user_id=for_user_id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling InvoiceApi->create_invoice: %s\n" % e) ``` @@ -124,6 +133,7 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **create_invoice_request** | [**CreateInvoiceRequest**](CreateInvoiceRequest.md)| | + **for_user_id** | **str**| Business ID of the sub-account merchant (XP feature) | [optional] ### Return type @@ -142,10 +152,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **expire_invoice** -> Invoice expire_invoice(invoice_id) +# **get_invoice_by_id** +> Invoice get_invoice_by_id(invoice_id) -Manually expire an invoice +Get invoice by invoice id ### Example @@ -154,8 +164,9 @@ Manually expire an invoice import time import xendit from xendit.apis import InvoiceApi -from xendit.invoice.model.invoice_not_found_error import InvoiceNotFoundError from xendit.invoice.model.invoice import Invoice +from xendit.invoice.model.invoice_error404_response_definition import InvoiceError404ResponseDefinition +from xendit.invoice.model.unauthorized_error import UnauthorizedError from xendit.invoice.model.server_error import ServerError from pprint import pprint @@ -167,15 +178,24 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = InvoiceApi(api_client) -invoice_id = "5f4708b7bd394b0400b96276" # str | Invoice ID to be expired +invoice_id = "62efe4c33e45294d63f585f2" # str | Invoice ID # example passing only required values which don't have defaults set try: - # Manually expire an invoice - api_response = api_instance.expire_invoice(invoice_id) + # Get invoice by invoice id + api_response = api_instance.get_invoice_by_id(invoice_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling InvoiceApi->expire_invoice: %s\n" % e) + print("Exception when calling InvoiceApi->get_invoice_by_id: %s\n" % e) + +# example passing only required values which don't have defaults set +# and optional values +try: + # Get invoice by invoice id + api_response = api_instance.get_invoice_by_id(invoice_id, for_user_id=for_user_id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling InvoiceApi->get_invoice_by_id: %s\n" % e) ``` @@ -183,7 +203,8 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **invoice_id** | **str**| Invoice ID to be expired | + **invoice_id** | **str**| Invoice ID | + **for_user_id** | **str**| Business ID of the sub-account merchant (XP feature) | [optional] ### Return type @@ -195,15 +216,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**401** | Unauthorized | - | **404** | Not found | - | **500** | Internal server error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_invoice_by_id** -> Invoice get_invoice_by_id(invoice_id) +# **get_invoices** +> [Invoice] get_invoices() -Get invoice by invoice id +Get all Invoices ### Example @@ -212,8 +234,9 @@ Get invoice by invoice id import time import xendit from xendit.apis import InvoiceApi +from xendit.invoice.model.invoice_status import InvoiceStatus from xendit.invoice.model.invoice import Invoice -from xendit.invoice.model.invoice_error404_response_definition import InvoiceError404ResponseDefinition +from xendit.invoice.model.invoice_client_type import InvoiceClientType from xendit.invoice.model.unauthorized_error import UnauthorizedError from xendit.invoice.model.server_error import ServerError from pprint import pprint @@ -226,15 +249,15 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = InvoiceApi(api_client) -invoice_id = "62efe4c33e45294d63f585f2" # str | Invoice ID # example passing only required values which don't have defaults set +# and optional values try: - # Get invoice by invoice id - api_response = api_instance.get_invoice_by_id(invoice_id) + # Get all Invoices + api_response = api_instance.get_invoices(for_user_id=for_user_id, external_id=external_id, statuses=statuses, limit=limit, created_after=created_after, created_before=created_before, paid_after=paid_after, paid_before=paid_before, expired_after=expired_after, expired_before=expired_before, last_invoice=last_invoice, client_types=client_types, payment_channels=payment_channels, on_demand_link=on_demand_link, recurring_payment_id=recurring_payment_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling InvoiceApi->get_invoice_by_id: %s\n" % e) + print("Exception when calling InvoiceApi->get_invoices: %s\n" % e) ``` @@ -242,11 +265,25 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **invoice_id** | **str**| Invoice ID | + **for_user_id** | **str**| Business ID of the sub-account merchant (XP feature) | [optional] + **external_id** | **str**| | [optional] + **statuses** | [**[InvoiceStatus]**](InvoiceStatus.md)| | [optional] + **limit** | **float**| | [optional] + **created_after** | **datetime**| | [optional] + **created_before** | **datetime**| | [optional] + **paid_after** | **datetime**| | [optional] + **paid_before** | **datetime**| | [optional] + **expired_after** | **datetime**| | [optional] + **expired_before** | **datetime**| | [optional] + **last_invoice** | **str**| | [optional] + **client_types** | [**[InvoiceClientType]**](InvoiceClientType.md)| | [optional] + **payment_channels** | **[str]**| | [optional] + **on_demand_link** | **str**| | [optional] + **recurring_payment_id** | **str**| | [optional] ### Return type -[**Invoice**](Invoice.md) +[**[Invoice]**](Invoice.md) ### HTTP response details @@ -255,15 +292,14 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized | - | -**404** | Not found | - | **500** | Internal server error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_invoices** -> [Invoice] get_invoices() +# **expire_invoice** +> Invoice expire_invoice(invoice_id) -Get all Invoices +Manually expire an invoice ### Example @@ -272,10 +308,8 @@ Get all Invoices import time import xendit from xendit.apis import InvoiceApi -from xendit.invoice.model.invoice_status import InvoiceStatus +from xendit.invoice.model.invoice_not_found_error import InvoiceNotFoundError from xendit.invoice.model.invoice import Invoice -from xendit.invoice.model.invoice_client_type import InvoiceClientType -from xendit.invoice.model.unauthorized_error import UnauthorizedError from xendit.invoice.model.server_error import ServerError from pprint import pprint @@ -287,15 +321,24 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = InvoiceApi(api_client) +invoice_id = "5f4708b7bd394b0400b96276" # str | Invoice ID to be expired + +# example passing only required values which don't have defaults set +try: + # Manually expire an invoice + api_response = api_instance.expire_invoice(invoice_id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling InvoiceApi->expire_invoice: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - # Get all Invoices - api_response = api_instance.get_invoices(external_id=external_id, statuses=statuses, limit=limit, created_after=created_after, created_before=created_before, paid_after=paid_after, paid_before=paid_before, expired_after=expired_after, expired_before=expired_before, last_invoice=last_invoice, client_types=client_types, payment_channels=payment_channels, on_demand_link=on_demand_link, recurring_payment_id=recurring_payment_id) + # Manually expire an invoice + api_response = api_instance.expire_invoice(invoice_id, for_user_id=for_user_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling InvoiceApi->get_invoices: %s\n" % e) + print("Exception when calling InvoiceApi->expire_invoice: %s\n" % e) ``` @@ -303,24 +346,12 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **external_id** | **str**| | [optional] - **statuses** | [**[InvoiceStatus]**](InvoiceStatus.md)| | [optional] - **limit** | **float**| | [optional] - **created_after** | **datetime**| | [optional] - **created_before** | **datetime**| | [optional] - **paid_after** | **datetime**| | [optional] - **paid_before** | **datetime**| | [optional] - **expired_after** | **datetime**| | [optional] - **expired_before** | **datetime**| | [optional] - **last_invoice** | **str**| | [optional] - **client_types** | [**[InvoiceClientType]**](InvoiceClientType.md)| | [optional] - **payment_channels** | **[str]**| | [optional] - **on_demand_link** | **str**| | [optional] - **recurring_payment_id** | **str**| | [optional] + **invoice_id** | **str**| Invoice ID to be expired | + **for_user_id** | **str**| Business ID of the sub-account merchant (XP feature) | [optional] ### Return type -[**[Invoice]**](Invoice.md) +[**Invoice**](Invoice.md) ### HTTP response details @@ -328,7 +359,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**401** | Unauthorized | - | +**404** | Not found | - | **500** | Internal server error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/InvoiceClientType.md b/docs/InvoiceClientType.md index 7c17c0a0..b31a564a 100644 --- a/docs/InvoiceClientType.md +++ b/docs/InvoiceClientType.md @@ -3,9 +3,11 @@ Representing the client type or source of an invoice. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Representing the client type or source of an invoice. | must be one of ["DASHBOARD", "API_GATEWAY", "INTEGRATION", "ON_DEMAND", "RECURRING", "MOBILE", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Representing the client type or source of an invoice. | must be one of ["DASHBOARD", "API_GATEWAY", "INTEGRATION", "ON_DEMAND", "RECURRING", "MOBILE", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InvoiceCurrency.md b/docs/InvoiceCurrency.md index 4fa65ce6..f97bdb3f 100644 --- a/docs/InvoiceCurrency.md +++ b/docs/InvoiceCurrency.md @@ -3,9 +3,11 @@ Representing the currency used for an invoice. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Representing the currency used for an invoice. | must be one of ["IDR", "USD", "THB", "VND", "PHP", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Representing the currency used for an invoice. | must be one of ["IDR", "USD", "THB", "VND", "PHP", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InvoiceError404ResponseDefinition.md b/docs/InvoiceError404ResponseDefinition.md index 1ce3da3d..bffce42f 100644 --- a/docs/InvoiceError404ResponseDefinition.md +++ b/docs/InvoiceError404ResponseDefinition.md @@ -3,10 +3,11 @@ An error object used to indicate that the requested resource, in this case, an invoice, was not found. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **str** | A human-readable error message providing additional context about the resource not being found. | -**error_code** | **str** | The specific error code indicating that the requested invoice was not found. | defaults to "INVOICE_NOT_FOUND_ERROR" +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **message** | **str** | A human-readable error message providing additional context about the resource not being found. | | +| **error_code** | **str** | The specific error code indicating that the requested invoice was not found. | defaults to "INVOICE_NOT_FOUND_ERROR" | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InvoiceFee.md b/docs/InvoiceFee.md index cd350d9f..bd7a61b3 100644 --- a/docs/InvoiceFee.md +++ b/docs/InvoiceFee.md @@ -3,10 +3,11 @@ An object representing internal details for a fee associated with an invoice. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | The type of fee. | -**value** | **float** | The value or amount of the fee. | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **type** | **str** | The type of fee. | | +| **value** | **float** | The value or amount of the fee. | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InvoiceItem.md b/docs/InvoiceItem.md index 5a7f01ac..e3adae3b 100644 --- a/docs/InvoiceItem.md +++ b/docs/InvoiceItem.md @@ -3,14 +3,15 @@ An object representing an item within an invoice. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name of the item. | -**price** | **float** | The price of the item. | -**quantity** | **float** | The quantity of the item. Must be greater than or equal to 0. | -**reference_id** | **str** | The reference ID of the item. | [optional] -**url** | **str** | The URL associated with the item. | [optional] -**category** | **str** | The category of the item. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **name** | **str** | The name of the item. | | +| **price** | **float** | The price of the item. | | +| **quantity** | **float** | The quantity of the item. Must be greater than or equal to 0. | | +| **reference_id** | **str** | The reference ID of the item. | [optional] | +| **url** | **str** | The URL associated with the item. | [optional] | +| **category** | **str** | The category of the item. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InvoiceNotFoundError.md b/docs/InvoiceNotFoundError.md index 07d05c7f..7dd39181 100644 --- a/docs/InvoiceNotFoundError.md +++ b/docs/InvoiceNotFoundError.md @@ -3,10 +3,11 @@ Response definition for a 404 Not Found error when creating an invoice. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | The error code indicating the type of error that occurred. | -**message** | **str** | A human-readable error message that provides additional information about the error. | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | The error code indicating the type of error that occurred. | | +| **message** | **str** | A human-readable error message that provides additional information about the error. | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InvoicePaymentMethod.md b/docs/InvoicePaymentMethod.md index fef13b9a..dfddc28f 100644 --- a/docs/InvoicePaymentMethod.md +++ b/docs/InvoicePaymentMethod.md @@ -3,9 +3,11 @@ Representing the payment method used for an invoice. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Representing the payment method used for an invoice. | must be one of ["POOL", "CALLBACK_VIRTUAL_ACCOUNT", "CREDIT_CARD", "RETAIL_OUTLET", "QR_CODE", "QRIS", "EWALLET", "DIRECT_DEBIT", "BANK_TRANSFER", "PAYLATER", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Representing the payment method used for an invoice. | must be one of ["POOL", "CALLBACK_VIRTUAL_ACCOUNT", "CREDIT_CARD", "RETAIL_OUTLET", "QR_CODE", "QRIS", "EWALLET", "DIRECT_DEBIT", "BANK_TRANSFER", "PAYLATER", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InvoiceStatus.md b/docs/InvoiceStatus.md index cc77fae6..18690526 100644 --- a/docs/InvoiceStatus.md +++ b/docs/InvoiceStatus.md @@ -3,9 +3,11 @@ Representing the status of an invoice. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Representing the status of an invoice. | must be one of ["PENDING", "PAID", "SETTLED", "EXPIRED", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Representing the status of an invoice. | must be one of ["PENDING", "PAID", "SETTLED", "EXPIRED", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/KYCDocumentRequest.md b/docs/KYCDocumentRequest.md index 664f17f2..3af9fff0 100644 --- a/docs/KYCDocumentRequest.md +++ b/docs/KYCDocumentRequest.md @@ -2,16 +2,17 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**country** | [**CountryCode**](CountryCode.md) | | [optional] -**type** | [**KYCDocumentType**](KYCDocumentType.md) | | [optional] -**sub_type** | [**KYCDocumentSubType**](KYCDocumentSubType.md) | | [optional] -**document_name** | **str** | | [optional] -**document_number** | **str** | | [optional] -**expires_at** | **str** | | [optional] -**holder_name** | **str** | | [optional] -**document_images** | **[str]** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **country** | [**CountryCode**](CountryCode.md) | | [optional] | +| **type** | [**KYCDocumentType**](KYCDocumentType.md) | | [optional] | +| **sub_type** | [**KYCDocumentSubType**](KYCDocumentSubType.md) | | [optional] | +| **document_name** | **str** | | [optional] | +| **document_number** | **str** | | [optional] | +| **expires_at** | **str** | | [optional] | +| **holder_name** | **str** | | [optional] | +| **document_images** | **[str]** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/KYCDocumentResponse.md b/docs/KYCDocumentResponse.md index fe1d8fef..8f94e0cd 100644 --- a/docs/KYCDocumentResponse.md +++ b/docs/KYCDocumentResponse.md @@ -2,16 +2,17 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**country** | **bool, date, datetime, dict, float, int, list, str, none_type** | | -**type** | **bool, date, datetime, dict, float, int, list, str, none_type** | | -**sub_type** | **bool, date, datetime, dict, float, int, list, str, none_type** | | -**document_name** | **str, none_type** | | -**document_number** | **str, none_type** | | -**expires_at** | **str, none_type** | | -**holder_name** | **str, none_type** | | -**document_images** | **[str], none_type** | | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **country** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | +| **type** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | +| **sub_type** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | +| **document_name** | **str, none_type** | | | +| **document_number** | **str, none_type** | | | +| **expires_at** | **str, none_type** | | | +| **holder_name** | **str, none_type** | | | +| **document_images** | **[str], none_type** | | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/KYCDocumentSubType.md b/docs/KYCDocumentSubType.md index 732151db..90247eca 100644 --- a/docs/KYCDocumentSubType.md +++ b/docs/KYCDocumentSubType.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["NATIONAL_ID", "CONSULAR_ID", "VOTER_ID", "POSTAL_ID", "RESIDENCE_PERMIT", "TAX_ID", "STUDENT_ID", "MILITARY_ID", "MEDICAL_ID", "OTHERS", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["NATIONAL_ID", "CONSULAR_ID", "VOTER_ID", "POSTAL_ID", "RESIDENCE_PERMIT", "TAX_ID", "STUDENT_ID", "MILITARY_ID", "MEDICAL_ID", "OTHERS", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/KYCDocumentType.md b/docs/KYCDocumentType.md index 38fbe15d..f93afc26 100644 --- a/docs/KYCDocumentType.md +++ b/docs/KYCDocumentType.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["BIRTH_CERTIFICATE", "BANK_STATEMENT", "DRIVING_LICENSE", "IDENTITY_CARD", "PASSPORT", "VISA", "BUSINESS_REGISTRATION", "BUSINESS_LICENSE", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["BIRTH_CERTIFICATE", "BANK_STATEMENT", "DRIVING_LICENSE", "IDENTITY_CARD", "PASSPORT", "VISA", "BUSINESS_REGISTRATION", "BUSINESS_LICENSE", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LinkItem.md b/docs/LinkItem.md index 174d4f7c..4ad87417 100644 --- a/docs/LinkItem.md +++ b/docs/LinkItem.md @@ -2,11 +2,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **str** | URI of target, this will be to the next link. | -**rel** | **str** | The relationship between source and target. The value will be `next`. | -**method** | **str** | The HTTP method, the value will be `GET`. | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **href** | **str** | URI of target, this will be to the next link. | | +| **rel** | **str** | The relationship between source and target. The value will be `next`. | | +| **method** | **str** | The HTTP method, the value will be `GET`. | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/NotificationChannel.md b/docs/NotificationChannel.md index 90afddc1..a6b77ba1 100644 --- a/docs/NotificationChannel.md +++ b/docs/NotificationChannel.md @@ -3,9 +3,11 @@ Representing a notification channel for sending messages. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Representing a notification channel for sending messages. | must be one of ["email", "sms", "whatsapp", "viber", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Representing a notification channel for sending messages. | must be one of ["email", "sms", "whatsapp", "viber", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/NotificationPreference.md b/docs/NotificationPreference.md index 0e9a0b31..5fe04e19 100644 --- a/docs/NotificationPreference.md +++ b/docs/NotificationPreference.md @@ -3,12 +3,13 @@ An object representing notification preferences for different invoice events. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**invoice_created** | [**[NotificationChannel]**](NotificationChannel.md) | Notification channels for when an invoice is created. | [optional] -**invoice_reminder** | [**[NotificationChannel]**](NotificationChannel.md) | Notification channels for invoice reminders. | [optional] -**invoice_expired** | [**[NotificationChannel]**](NotificationChannel.md) | Notification channels for expired invoices. | [optional] -**invoice_paid** | [**[NotificationChannel]**](NotificationChannel.md) | Notification channels for when an invoice is paid. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **invoice_created** | [**[NotificationChannel]**](NotificationChannel.md) | Notification channels for when an invoice is created. | [optional] | +| **invoice_reminder** | [**[NotificationChannel]**](NotificationChannel.md) | Notification channels for invoice reminders. | [optional] | +| **invoice_expired** | [**[NotificationChannel]**](NotificationChannel.md) | Notification channels for expired invoices. | [optional] | +| **invoice_paid** | [**[NotificationChannel]**](NotificationChannel.md) | Notification channels for when an invoice is paid. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OverTheCounter.md b/docs/OverTheCounter.md index 15abf680..2df245ff 100644 --- a/docs/OverTheCounter.md +++ b/docs/OverTheCounter.md @@ -3,12 +3,13 @@ Over the Counter Payment Method Details ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | | -**channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | | -**amount** | **float, none_type** | | [optional] -**currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | | | +| **channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | | | +| **amount** | **float, none_type** | | [optional] | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OverTheCounterChannelCode.md b/docs/OverTheCounterChannelCode.md index fe547247..dac41c7a 100644 --- a/docs/OverTheCounterChannelCode.md +++ b/docs/OverTheCounterChannelCode.md @@ -3,9 +3,11 @@ Over The Counter Channel Code ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Over The Counter Channel Code | must be one of ["7ELEVEN", "7ELEVEN_CLIQQ", "CEBUANA", "ECPAY", "PALAWAN", "MLHUILLIER", "ECPAY_DRAGONLOAN", "LBC", "ECPAY_SCHOOL", "RD_PAWNSHOP", "CVM", "USSC", "SM_BILLS", "ROBINSONS_BILLS", "ALFAMART", "INDOMARET", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Over The Counter Channel Code | must be one of ["7ELEVEN", "7ELEVEN_CLIQQ", "CEBUANA", "ECPAY", "PALAWAN", "MLHUILLIER", "ECPAY_DRAGONLOAN", "LBC", "ECPAY_SCHOOL", "RD_PAWNSHOP", "CVM", "USSC", "SM_BILLS", "ROBINSONS_BILLS", "ALFAMART", "INDOMARET", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OverTheCounterChannelProperties.md b/docs/OverTheCounterChannelProperties.md index 6c0e72dd..351c2e97 100644 --- a/docs/OverTheCounterChannelProperties.md +++ b/docs/OverTheCounterChannelProperties.md @@ -3,11 +3,12 @@ Over The Counter Channel Properties ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**customer_name** | **str** | Name of customer. | -**payment_code** | **str** | The payment code that you want to assign, e.g 12345. If you do not send one, one will be picked at random. | [optional] -**expires_at** | **datetime** | The time when the payment code will be expired. The minimum is 2 hours and the maximum is 9 days for 7ELEVEN. Default expired date will be 2 days from payment code generated. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **customer_name** | **str** | Name of customer. | | +| **payment_code** | **str** | The payment code that you want to assign, e.g 12345. If you do not send one, one will be picked at random. | [optional] | +| **expires_at** | **datetime** | The time when the payment code will be expired. The minimum is 2 hours and the maximum is 9 days for 7ELEVEN. Default expired date will be 2 days from payment code generated. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OverTheCounterChannelPropertiesUpdate.md b/docs/OverTheCounterChannelPropertiesUpdate.md index 72f3c407..81107c99 100644 --- a/docs/OverTheCounterChannelPropertiesUpdate.md +++ b/docs/OverTheCounterChannelPropertiesUpdate.md @@ -3,10 +3,11 @@ Over The Counter Channel properties that can be updated ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**customer_name** | **str** | Name of customer. | [optional] -**expires_at** | **datetime** | The time when the payment code will be expired. The minimum is 2 hours and the maximum is 9 days for 7ELEVEN. Default expired date will be 2 days from payment code generated. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **customer_name** | **str** | Name of customer. | [optional] | +| **expires_at** | **datetime** | The time when the payment code will be expired. The minimum is 2 hours and the maximum is 9 days for 7ELEVEN. Default expired date will be 2 days from payment code generated. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OverTheCounterParameters.md b/docs/OverTheCounterParameters.md index b4f3452b..91dc9fab 100644 --- a/docs/OverTheCounterParameters.md +++ b/docs/OverTheCounterParameters.md @@ -2,12 +2,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | | -**channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | | -**amount** | **float, none_type** | | [optional] -**currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | | | +| **channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | | | +| **amount** | **float, none_type** | | [optional] | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OverTheCounterUpdateParameters.md b/docs/OverTheCounterUpdateParameters.md index 3c32fdab..79a5f7f9 100644 --- a/docs/OverTheCounterUpdateParameters.md +++ b/docs/OverTheCounterUpdateParameters.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **float, none_type** | | [optional] -**channel_properties** | [**OverTheCounterChannelPropertiesUpdate**](OverTheCounterChannelPropertiesUpdate.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **amount** | **float, none_type** | | [optional] | +| **channel_properties** | [**OverTheCounterChannelPropertiesUpdate**](OverTheCounterChannelPropertiesUpdate.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PatchCustomer.md b/docs/PatchCustomer.md index fe108659..ed207d8d 100644 --- a/docs/PatchCustomer.md +++ b/docs/PatchCustomer.md @@ -2,21 +2,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_name** | **str, none_type** | Entity's name for this client | [optional] -**reference_id** | **str, none_type** | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | [optional] -**individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | [optional] -**business_detail** | [**BusinessDetail**](BusinessDetail.md) | | [optional] -**description** | **str, none_type** | | [optional] -**email** | **str, none_type** | | [optional] -**mobile_number** | **str, none_type** | | [optional] -**phone_number** | **str, none_type** | | [optional] -**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] -**addresses** | [**[AddressRequest], none_type**](AddressRequest.md) | | [optional] -**identity_accounts** | [**[IdentityAccountRequest], none_type**](IdentityAccountRequest.md) | | [optional] -**kyc_documents** | [**[KYCDocumentRequest], none_type**](KYCDocumentRequest.md) | | [optional] -**status** | [**EndCustomerStatus**](EndCustomerStatus.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **client_name** | **str, none_type** | Entity's name for this client | [optional] | +| **reference_id** | **str, none_type** | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | [optional] | +| **individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | [optional] | +| **business_detail** | [**BusinessDetail**](BusinessDetail.md) | | [optional] | +| **description** | **str, none_type** | | [optional] | +| **email** | **str, none_type** | | [optional] | +| **mobile_number** | **str, none_type** | | [optional] | +| **phone_number** | **str, none_type** | | [optional] | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | +| **addresses** | [**[AddressRequest], none_type**](AddressRequest.md) | | [optional] | +| **identity_accounts** | [**[IdentityAccountRequest], none_type**](IdentityAccountRequest.md) | | [optional] | +| **kyc_documents** | [**[KYCDocumentRequest], none_type**](KYCDocumentRequest.md) | | [optional] | +| **status** | [**EndCustomerStatus**](EndCustomerStatus.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Paylater.md b/docs/Paylater.md index 3edf4675..6554140c 100644 --- a/docs/Paylater.md +++ b/docs/Paylater.md @@ -3,10 +3,11 @@ An object representing paylater details for invoices. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**paylater_type** | [**PaylaterType**](PaylaterType.md) | | -**should_exclude** | **bool** | Indicates whether this paylater option should be excluded. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **paylater_type** | [**PaylaterType**](PaylaterType.md) | | | +| **should_exclude** | **bool** | Indicates whether this paylater option should be excluded. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaylaterType.md b/docs/PaylaterType.md index fe4e252a..d14dc543 100644 --- a/docs/PaylaterType.md +++ b/docs/PaylaterType.md @@ -3,9 +3,11 @@ Representing the available paylater channels used for invoice-related transactions. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Representing the available paylater channels used for invoice-related transactions. | must be one of ["KREDIVO", "AKULAKU", "UANGME", "BILLEASE", "CASHALO", "ATOME", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Representing the available paylater channels used for invoice-related transactions. | must be one of ["KREDIVO", "AKULAKU", "UANGME", "BILLEASE", "CASHALO", "ATOME", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentMethod.md b/docs/PaymentMethod.md index 9e14be33..33226c3f 100644 --- a/docs/PaymentMethod.md +++ b/docs/PaymentMethod.md @@ -2,23 +2,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str** | | -**type** | [**PaymentMethodType**](PaymentMethodType.md) | | -**reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | -**status** | [**PaymentMethodStatus**](PaymentMethodStatus.md) | | -**created** | **str** | | [optional] -**updated** | **str** | | [optional] -**description** | **str, none_type** | | [optional] -**reference_id** | **str** | | [optional] -**card** | [**Card**](Card.md) | | [optional] -**direct_debit** | [**DirectDebit**](DirectDebit.md) | | [optional] -**ewallet** | [**EWallet**](EWallet.md) | | [optional] -**over_the_counter** | [**OverTheCounter**](OverTheCounter.md) | | [optional] -**virtual_account** | [**VirtualAccount**](VirtualAccount.md) | | [optional] -**qr_code** | [**QRCode**](QRCode.md) | | [optional] -**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | **str** | | | +| **type** | [**PaymentMethodType**](PaymentMethodType.md) | | | +| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | | +| **status** | [**PaymentMethodStatus**](PaymentMethodStatus.md) | | | +| **created** | **str** | | [optional] | +| **updated** | **str** | | [optional] | +| **description** | **str, none_type** | | [optional] | +| **reference_id** | **str** | | [optional] | +| **card** | [**Card**](Card.md) | | [optional] | +| **direct_debit** | [**DirectDebit**](DirectDebit.md) | | [optional] | +| **ewallet** | [**EWallet**](EWallet.md) | | [optional] | +| **over_the_counter** | [**OverTheCounter**](OverTheCounter.md) | | [optional] | +| **virtual_account** | [**VirtualAccount**](VirtualAccount.md) | | [optional] | +| **qr_code** | [**QRCode**](QRCode.md) | | [optional] | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentMethodAction.md b/docs/PaymentMethodAction.md index 07c4bd2d..c0112279 100644 --- a/docs/PaymentMethodAction.md +++ b/docs/PaymentMethodAction.md @@ -2,12 +2,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **str** | | [optional] -**method** | **str** | | [optional] -**url** | **str** | | [optional] -**url_type** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **action** | **str** | | [optional] | +| **method** | **str** | | [optional] | +| **url** | **str** | | [optional] | +| **url_type** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentMethodApi.md b/docs/PaymentMethodApi.md index 52b011e3..ad9c5c72 100644 --- a/docs/PaymentMethodApi.md +++ b/docs/PaymentMethodApi.md @@ -4,22 +4,22 @@ All URIs are relative to *https://api.xendit.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**auth_payment_method**](PaymentMethodApi.md#auth_payment_method) | **POST** /v2/payment_methods/{paymentMethodId}/auth | Validate a payment method's linking OTP [**create_payment_method**](PaymentMethodApi.md#create_payment_method) | **POST** /v2/payment_methods | Creates payment method -[**expire_payment_method**](PaymentMethodApi.md#expire_payment_method) | **POST** /v2/payment_methods/{paymentMethodId}/expire | Expires a payment method -[**get_all_payment_methods**](PaymentMethodApi.md#get_all_payment_methods) | **GET** /v2/payment_methods | Get all payment methods by filters [**get_payment_method_by_id**](PaymentMethodApi.md#get_payment_method_by_id) | **GET** /v2/payment_methods/{paymentMethodId} | Get payment method by ID [**get_payments_by_payment_method_id**](PaymentMethodApi.md#get_payments_by_payment_method_id) | **GET** /v2/payment_methods/{paymentMethodId}/payments | Returns payments with matching PaymentMethodID. [**patch_payment_method**](PaymentMethodApi.md#patch_payment_method) | **PATCH** /v2/payment_methods/{paymentMethodId} | Patch payment methods +[**get_all_payment_methods**](PaymentMethodApi.md#get_all_payment_methods) | **GET** /v2/payment_methods | Get all payment methods by filters +[**expire_payment_method**](PaymentMethodApi.md#expire_payment_method) | **POST** /v2/payment_methods/{paymentMethodId}/expire | Expires a payment method +[**auth_payment_method**](PaymentMethodApi.md#auth_payment_method) | **POST** /v2/payment_methods/{paymentMethodId}/auth | Validate a payment method's linking OTP [**simulate_payment**](PaymentMethodApi.md#simulate_payment) | **POST** /v2/payment_methods/{paymentMethodId}/payments/simulate | Makes payment with matching PaymentMethodID. -# **auth_payment_method** -> PaymentMethod auth_payment_method(payment_method_id) +# **create_payment_method** +> PaymentMethod create_payment_method() -Validate a payment method's linking OTP +Creates payment method -This endpoint validates a payment method linking OTP +This endpoint initiates creation of payment method ### Example @@ -32,9 +32,9 @@ from xendit.payment_method.model.get_all_payment_methods403_response import GetA from xendit.payment_method.model.get_all_payment_methods400_response import GetAllPaymentMethods400Response from xendit.payment_method.model.get_all_payment_methods404_response import GetAllPaymentMethods404Response from xendit.payment_method.model.create_payment_method503_response import CreatePaymentMethod503Response +from xendit.payment_method.model.payment_method_parameters import PaymentMethodParameters from xendit.payment_method.model.payment_method import PaymentMethod from xendit.payment_method.model.create_payment_method409_response import CreatePaymentMethod409Response -from xendit.payment_method.model.payment_method_auth_parameters import PaymentMethodAuthParameters from xendit.payment_method.model.get_all_payment_methods_default_response import GetAllPaymentMethodsDefaultResponse from pprint import pprint @@ -46,24 +46,15 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentMethodApi(api_client) -payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | - -# example passing only required values which don't have defaults set -try: - # Validate a payment method's linking OTP - api_response = api_instance.auth_payment_method(payment_method_id) - pprint(api_response) -except xendit.XenditSdkException as e: - print("Exception when calling PaymentMethodApi->auth_payment_method: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - # Validate a payment method's linking OTP - api_response = api_instance.auth_payment_method(payment_method_id, payment_method_auth_parameters=payment_method_auth_parameters) + # Creates payment method + api_response = api_instance.create_payment_method(for_user_id=for_user_id, payment_method_parameters=payment_method_parameters) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentMethodApi->auth_payment_method: %s\n" % e) + print("Exception when calling PaymentMethodApi->create_payment_method: %s\n" % e) ``` @@ -71,8 +62,8 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **payment_method_id** | **str**| | - **payment_method_auth_parameters** | [**PaymentMethodAuthParameters**](PaymentMethodAuthParameters.md)| | [optional] + **for_user_id** | **str**| | [optional] + **payment_method_parameters** | [**PaymentMethodParameters**](PaymentMethodParameters.md)| | [optional] ### Return type @@ -83,7 +74,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Request successful | - | +**201** | Request successful | - | **400** | Bad request | - | **403** | Forbidden due to permissions | - | **404** | Data not found | - | @@ -93,12 +84,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_payment_method** -> PaymentMethod create_payment_method() +# **get_payment_method_by_id** +> PaymentMethod get_payment_method_by_id(payment_method_id) -Creates payment method +Get payment method by ID -This endpoint initiates creation of payment method +Get payment method by ID ### Example @@ -110,10 +101,7 @@ from xendit.apis import PaymentMethodApi from xendit.payment_method.model.get_all_payment_methods403_response import GetAllPaymentMethods403Response from xendit.payment_method.model.get_all_payment_methods400_response import GetAllPaymentMethods400Response from xendit.payment_method.model.get_all_payment_methods404_response import GetAllPaymentMethods404Response -from xendit.payment_method.model.create_payment_method503_response import CreatePaymentMethod503Response -from xendit.payment_method.model.payment_method_parameters import PaymentMethodParameters from xendit.payment_method.model.payment_method import PaymentMethod -from xendit.payment_method.model.create_payment_method409_response import CreatePaymentMethod409Response from xendit.payment_method.model.get_all_payment_methods_default_response import GetAllPaymentMethodsDefaultResponse from pprint import pprint @@ -125,15 +113,24 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentMethodApi(api_client) +payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | + +# example passing only required values which don't have defaults set +try: + # Get payment method by ID + api_response = api_instance.get_payment_method_by_id(payment_method_id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling PaymentMethodApi->get_payment_method_by_id: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - # Creates payment method - api_response = api_instance.create_payment_method(payment_method_parameters=payment_method_parameters) + # Get payment method by ID + api_response = api_instance.get_payment_method_by_id(payment_method_id, for_user_id=for_user_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentMethodApi->create_payment_method: %s\n" % e) + print("Exception when calling PaymentMethodApi->get_payment_method_by_id: %s\n" % e) ``` @@ -141,7 +138,8 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **payment_method_parameters** | [**PaymentMethodParameters**](PaymentMethodParameters.md)| | [optional] + **payment_method_id** | **str**| | + **for_user_id** | **str**| | [optional] ### Return type @@ -152,22 +150,20 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Request successful | - | +**200** | Request successful | - | **400** | Bad request | - | **403** | Forbidden due to permissions | - | **404** | Data not found | - | -**409** | Request causes conflict | - | -**503** | Service is unavailable due to dependencies | - | **0** | Internal server error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **expire_payment_method** -> PaymentMethod expire_payment_method(payment_method_id) +# **get_payments_by_payment_method_id** +> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} get_payments_by_payment_method_id(payment_method_id) -Expires a payment method +Returns payments with matching PaymentMethodID. -This endpoint expires a payment method and performs unlinking if necessary +Returns payments with matching PaymentMethodID. ### Example @@ -180,9 +176,8 @@ from xendit.payment_method.model.get_all_payment_methods403_response import GetA from xendit.payment_method.model.get_all_payment_methods400_response import GetAllPaymentMethods400Response from xendit.payment_method.model.get_all_payment_methods404_response import GetAllPaymentMethods404Response from xendit.payment_method.model.create_payment_method503_response import CreatePaymentMethod503Response -from xendit.payment_method.model.payment_method import PaymentMethod +from xendit.payment_method.model.payment_method_type import PaymentMethodType from xendit.payment_method.model.get_all_payment_methods_default_response import GetAllPaymentMethodsDefaultResponse -from xendit.payment_method.model.payment_method_expire_parameters import PaymentMethodExpireParameters from pprint import pprint # See configuration.py for a list of all supported configuration parameters. @@ -197,20 +192,20 @@ payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | # example passing only required values which don't have defaults set try: - # Expires a payment method - api_response = api_instance.expire_payment_method(payment_method_id) + # Returns payments with matching PaymentMethodID. + api_response = api_instance.get_payments_by_payment_method_id(payment_method_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentMethodApi->expire_payment_method: %s\n" % e) + print("Exception when calling PaymentMethodApi->get_payments_by_payment_method_id: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - # Expires a payment method - api_response = api_instance.expire_payment_method(payment_method_id, payment_method_expire_parameters=payment_method_expire_parameters) + # Returns payments with matching PaymentMethodID. + api_response = api_instance.get_payments_by_payment_method_id(payment_method_id, for_user_id=for_user_id, payment_request_id=payment_request_id, payment_method_id2=payment_method_id2, reference_id=reference_id, payment_method_type=payment_method_type, channel_code=channel_code, status=status, currency=currency, created_gte=created_gte, created_lte=created_lte, updated_gte=updated_gte, updated_lte=updated_lte, limit=limit) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentMethodApi->expire_payment_method: %s\n" % e) + print("Exception when calling PaymentMethodApi->get_payments_by_payment_method_id: %s\n" % e) ``` @@ -219,11 +214,23 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **payment_method_id** | **str**| | - **payment_method_expire_parameters** | [**PaymentMethodExpireParameters**](PaymentMethodExpireParameters.md)| | [optional] + **for_user_id** | **str**| | [optional] + **payment_request_id** | **[str]**| | [optional] + **payment_method_id2** | **[str]**| | [optional] + **reference_id** | **[str]**| | [optional] + **payment_method_type** | [**[PaymentMethodType]**](PaymentMethodType.md)| | [optional] + **channel_code** | **[str]**| | [optional] + **status** | **[str]**| | [optional] + **currency** | **[str]**| | [optional] + **created_gte** | **datetime**| | [optional] + **created_lte** | **datetime**| | [optional] + **updated_gte** | **datetime**| | [optional] + **updated_lte** | **datetime**| | [optional] + **limit** | **int**| | [optional] ### Return type -[**PaymentMethod**](PaymentMethod.md) +**{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** ### HTTP response details @@ -239,12 +246,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_all_payment_methods** -> PaymentMethodList get_all_payment_methods() +# **patch_payment_method** +> PaymentMethod patch_payment_method(payment_method_id) -Get all payment methods by filters +Patch payment methods -Get all payment methods by filters +This endpoint is used to toggle the ```status``` of an e-Wallet or a Direct Debit payment method to ```ACTIVE``` or ```INACTIVE```. This is also used to update the details of an Over-the-Counter or a Virtual Account payment method. ### Example @@ -254,12 +261,11 @@ import time import xendit from xendit.apis import PaymentMethodApi from xendit.payment_method.model.get_all_payment_methods403_response import GetAllPaymentMethods403Response -from xendit.payment_method.model.payment_method_status import PaymentMethodStatus -from xendit.payment_method.model.payment_method_reusability import PaymentMethodReusability from xendit.payment_method.model.get_all_payment_methods400_response import GetAllPaymentMethods400Response from xendit.payment_method.model.get_all_payment_methods404_response import GetAllPaymentMethods404Response +from xendit.payment_method.model.payment_method import PaymentMethod +from xendit.payment_method.model.payment_method_update_parameters import PaymentMethodUpdateParameters from xendit.payment_method.model.get_all_payment_methods_default_response import GetAllPaymentMethodsDefaultResponse -from xendit.payment_method.model.payment_method_list import PaymentMethodList from pprint import pprint # See configuration.py for a list of all supported configuration parameters. @@ -270,15 +276,24 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentMethodApi(api_client) +payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | + +# example passing only required values which don't have defaults set +try: + # Patch payment methods + api_response = api_instance.patch_payment_method(payment_method_id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling PaymentMethodApi->patch_payment_method: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - # Get all payment methods by filters - api_response = api_instance.get_all_payment_methods(id=id, type=type, status=status, reusability=reusability, customer_id=customer_id, reference_id=reference_id, after_id=after_id, before_id=before_id, limit=limit) + # Patch payment methods + api_response = api_instance.patch_payment_method(payment_method_id, for_user_id=for_user_id, payment_method_update_parameters=payment_method_update_parameters) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentMethodApi->get_all_payment_methods: %s\n" % e) + print("Exception when calling PaymentMethodApi->patch_payment_method: %s\n" % e) ``` @@ -286,19 +301,13 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **[str]**| | [optional] - **type** | **[str]**| | [optional] - **status** | [**[PaymentMethodStatus]**](PaymentMethodStatus.md)| | [optional] - **reusability** | **PaymentMethodReusability**| | [optional] - **customer_id** | **str**| | [optional] - **reference_id** | **str**| | [optional] - **after_id** | **str**| | [optional] - **before_id** | **str**| | [optional] - **limit** | **int**| | [optional] + **payment_method_id** | **str**| | + **for_user_id** | **str**| | [optional] + **payment_method_update_parameters** | [**PaymentMethodUpdateParameters**](PaymentMethodUpdateParameters.md)| | [optional] ### Return type -[**PaymentMethodList**](PaymentMethodList.md) +[**PaymentMethod**](PaymentMethod.md) ### HTTP response details @@ -313,12 +322,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_payment_method_by_id** -> PaymentMethod get_payment_method_by_id(payment_method_id) +# **get_all_payment_methods** +> PaymentMethodList get_all_payment_methods() -Get payment method by ID +Get all payment methods by filters -Get payment method by ID +Get all payment methods by filters ### Example @@ -328,10 +337,12 @@ import time import xendit from xendit.apis import PaymentMethodApi from xendit.payment_method.model.get_all_payment_methods403_response import GetAllPaymentMethods403Response +from xendit.payment_method.model.payment_method_status import PaymentMethodStatus +from xendit.payment_method.model.payment_method_reusability import PaymentMethodReusability from xendit.payment_method.model.get_all_payment_methods400_response import GetAllPaymentMethods400Response from xendit.payment_method.model.get_all_payment_methods404_response import GetAllPaymentMethods404Response -from xendit.payment_method.model.payment_method import PaymentMethod from xendit.payment_method.model.get_all_payment_methods_default_response import GetAllPaymentMethodsDefaultResponse +from xendit.payment_method.model.payment_method_list import PaymentMethodList from pprint import pprint # See configuration.py for a list of all supported configuration parameters. @@ -342,15 +353,15 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentMethodApi(api_client) -payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | # example passing only required values which don't have defaults set +# and optional values try: - # Get payment method by ID - api_response = api_instance.get_payment_method_by_id(payment_method_id) + # Get all payment methods by filters + api_response = api_instance.get_all_payment_methods(for_user_id=for_user_id, id=id, type=type, status=status, reusability=reusability, customer_id=customer_id, reference_id=reference_id, after_id=after_id, before_id=before_id, limit=limit) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentMethodApi->get_payment_method_by_id: %s\n" % e) + print("Exception when calling PaymentMethodApi->get_all_payment_methods: %s\n" % e) ``` @@ -358,11 +369,20 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **payment_method_id** | **str**| | + **for_user_id** | **str**| | [optional] + **id** | **[str]**| | [optional] + **type** | **[str]**| | [optional] + **status** | [**[PaymentMethodStatus]**](PaymentMethodStatus.md)| | [optional] + **reusability** | **PaymentMethodReusability**| | [optional] + **customer_id** | **str**| | [optional] + **reference_id** | **str**| | [optional] + **after_id** | **str**| | [optional] + **before_id** | **str**| | [optional] + **limit** | **int**| | [optional] ### Return type -[**PaymentMethod**](PaymentMethod.md) +[**PaymentMethodList**](PaymentMethodList.md) ### HTTP response details @@ -377,12 +397,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_payments_by_payment_method_id** -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} get_payments_by_payment_method_id(payment_method_id) +# **expire_payment_method** +> PaymentMethod expire_payment_method(payment_method_id) -Returns payments with matching PaymentMethodID. +Expires a payment method -Returns payments with matching PaymentMethodID. +This endpoint expires a payment method and performs unlinking if necessary ### Example @@ -395,8 +415,9 @@ from xendit.payment_method.model.get_all_payment_methods403_response import GetA from xendit.payment_method.model.get_all_payment_methods400_response import GetAllPaymentMethods400Response from xendit.payment_method.model.get_all_payment_methods404_response import GetAllPaymentMethods404Response from xendit.payment_method.model.create_payment_method503_response import CreatePaymentMethod503Response -from xendit.payment_method.model.payment_method_type import PaymentMethodType +from xendit.payment_method.model.payment_method import PaymentMethod from xendit.payment_method.model.get_all_payment_methods_default_response import GetAllPaymentMethodsDefaultResponse +from xendit.payment_method.model.payment_method_expire_parameters import PaymentMethodExpireParameters from pprint import pprint # See configuration.py for a list of all supported configuration parameters. @@ -411,20 +432,20 @@ payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | # example passing only required values which don't have defaults set try: - # Returns payments with matching PaymentMethodID. - api_response = api_instance.get_payments_by_payment_method_id(payment_method_id) + # Expires a payment method + api_response = api_instance.expire_payment_method(payment_method_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentMethodApi->get_payments_by_payment_method_id: %s\n" % e) + print("Exception when calling PaymentMethodApi->expire_payment_method: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - # Returns payments with matching PaymentMethodID. - api_response = api_instance.get_payments_by_payment_method_id(payment_method_id, payment_request_id=payment_request_id, payment_method_id2=payment_method_id2, reference_id=reference_id, payment_method_type=payment_method_type, channel_code=channel_code, status=status, currency=currency, created_gte=created_gte, created_lte=created_lte, updated_gte=updated_gte, updated_lte=updated_lte, limit=limit) + # Expires a payment method + api_response = api_instance.expire_payment_method(payment_method_id, for_user_id=for_user_id, payment_method_expire_parameters=payment_method_expire_parameters) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentMethodApi->get_payments_by_payment_method_id: %s\n" % e) + print("Exception when calling PaymentMethodApi->expire_payment_method: %s\n" % e) ``` @@ -433,22 +454,12 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **payment_method_id** | **str**| | - **payment_request_id** | **[str]**| | [optional] - **payment_method_id2** | **[str]**| | [optional] - **reference_id** | **[str]**| | [optional] - **payment_method_type** | [**[PaymentMethodType]**](PaymentMethodType.md)| | [optional] - **channel_code** | **[str]**| | [optional] - **status** | **[str]**| | [optional] - **currency** | **[str]**| | [optional] - **created_gte** | **datetime**| | [optional] - **created_lte** | **datetime**| | [optional] - **updated_gte** | **datetime**| | [optional] - **updated_lte** | **datetime**| | [optional] - **limit** | **int**| | [optional] + **for_user_id** | **str**| | [optional] + **payment_method_expire_parameters** | [**PaymentMethodExpireParameters**](PaymentMethodExpireParameters.md)| | [optional] ### Return type -**{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** +[**PaymentMethod**](PaymentMethod.md) ### HTTP response details @@ -464,12 +475,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_payment_method** -> PaymentMethod patch_payment_method(payment_method_id) +# **auth_payment_method** +> PaymentMethod auth_payment_method(payment_method_id) -Patch payment methods +Validate a payment method's linking OTP -This endpoint is used to toggle the ```status``` of an e-Wallet or a Direct Debit payment method to ```ACTIVE``` or ```INACTIVE```. This is also used to update the details of an Over-the-Counter or a Virtual Account payment method. +This endpoint validates a payment method linking OTP ### Example @@ -481,8 +492,10 @@ from xendit.apis import PaymentMethodApi from xendit.payment_method.model.get_all_payment_methods403_response import GetAllPaymentMethods403Response from xendit.payment_method.model.get_all_payment_methods400_response import GetAllPaymentMethods400Response from xendit.payment_method.model.get_all_payment_methods404_response import GetAllPaymentMethods404Response +from xendit.payment_method.model.create_payment_method503_response import CreatePaymentMethod503Response from xendit.payment_method.model.payment_method import PaymentMethod -from xendit.payment_method.model.payment_method_update_parameters import PaymentMethodUpdateParameters +from xendit.payment_method.model.create_payment_method409_response import CreatePaymentMethod409Response +from xendit.payment_method.model.payment_method_auth_parameters import PaymentMethodAuthParameters from xendit.payment_method.model.get_all_payment_methods_default_response import GetAllPaymentMethodsDefaultResponse from pprint import pprint @@ -498,20 +511,20 @@ payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | # example passing only required values which don't have defaults set try: - # Patch payment methods - api_response = api_instance.patch_payment_method(payment_method_id) + # Validate a payment method's linking OTP + api_response = api_instance.auth_payment_method(payment_method_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentMethodApi->patch_payment_method: %s\n" % e) + print("Exception when calling PaymentMethodApi->auth_payment_method: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - # Patch payment methods - api_response = api_instance.patch_payment_method(payment_method_id, payment_method_update_parameters=payment_method_update_parameters) + # Validate a payment method's linking OTP + api_response = api_instance.auth_payment_method(payment_method_id, for_user_id=for_user_id, payment_method_auth_parameters=payment_method_auth_parameters) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentMethodApi->patch_payment_method: %s\n" % e) + print("Exception when calling PaymentMethodApi->auth_payment_method: %s\n" % e) ``` @@ -520,7 +533,8 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **payment_method_id** | **str**| | - **payment_method_update_parameters** | [**PaymentMethodUpdateParameters**](PaymentMethodUpdateParameters.md)| | [optional] + **for_user_id** | **str**| | [optional] + **payment_method_auth_parameters** | [**PaymentMethodAuthParameters**](PaymentMethodAuthParameters.md)| | [optional] ### Return type @@ -535,6 +549,8 @@ Name | Type | Description | Notes **400** | Bad request | - | **403** | Forbidden due to permissions | - | **404** | Data not found | - | +**409** | Request causes conflict | - | +**503** | Service is unavailable due to dependencies | - | **0** | Internal server error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/PaymentMethodAuthParameters.md b/docs/PaymentMethodAuthParameters.md index 5152f35b..aaa02a1a 100644 --- a/docs/PaymentMethodAuthParameters.md +++ b/docs/PaymentMethodAuthParameters.md @@ -2,9 +2,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**auth_code** | **str** | | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **auth_code** | **str** | | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentMethodCountry.md b/docs/PaymentMethodCountry.md index 9dc80531..14b9b77a 100644 --- a/docs/PaymentMethodCountry.md +++ b/docs/PaymentMethodCountry.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["PH", "ID", "VN", "TH", "MY", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["PH", "ID", "VN", "TH", "MY", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentMethodExpireParameters.md b/docs/PaymentMethodExpireParameters.md index 7177dc22..7b0e141d 100644 --- a/docs/PaymentMethodExpireParameters.md +++ b/docs/PaymentMethodExpireParameters.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success_return_url** | **str, none_type** | URL where the end customer is redirected if the unlinking authorization is successful. | [optional] -**failure_return_url** | **str, none_type** | URL where the end customer is redirected if the unlinking authorization is failed. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **success_return_url** | **str, none_type** | URL where the end customer is redirected if the unlinking authorization is successful. | [optional] | +| **failure_return_url** | **str, none_type** | URL where the end customer is redirected if the unlinking authorization is failed. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentMethodList.md b/docs/PaymentMethodList.md index d642346e..1389c732 100644 --- a/docs/PaymentMethodList.md +++ b/docs/PaymentMethodList.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PaymentMethod]**](PaymentMethod.md) | | -**has_more** | **bool** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **data** | [**[PaymentMethod]**](PaymentMethod.md) | | | +| **has_more** | **bool** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentMethodParameters.md b/docs/PaymentMethodParameters.md index efcf8a7d..c64b02c9 100644 --- a/docs/PaymentMethodParameters.md +++ b/docs/PaymentMethodParameters.md @@ -2,17 +2,18 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | [**PaymentMethodType**](PaymentMethodType.md) | | -**reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | -**description** | **str, none_type** | | [optional] -**reference_id** | **str** | | [optional] -**direct_debit** | [**DirectDebitParameters**](DirectDebitParameters.md) | | [optional] -**ewallet** | [**EWalletParameters**](EWalletParameters.md) | | [optional] -**over_the_counter** | [**OverTheCounterParameters**](OverTheCounterParameters.md) | | [optional] -**virtual_account** | [**VirtualAccountParameters**](VirtualAccountParameters.md) | | [optional] -**qr_code** | [**QRCodeParameters**](QRCodeParameters.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **type** | [**PaymentMethodType**](PaymentMethodType.md) | | | +| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | | +| **description** | **str, none_type** | | [optional] | +| **reference_id** | **str** | | [optional] | +| **direct_debit** | [**DirectDebitParameters**](DirectDebitParameters.md) | | [optional] | +| **ewallet** | [**EWalletParameters**](EWalletParameters.md) | | [optional] | +| **over_the_counter** | [**OverTheCounterParameters**](OverTheCounterParameters.md) | | [optional] | +| **virtual_account** | [**VirtualAccountParameters**](VirtualAccountParameters.md) | | [optional] | +| **qr_code** | [**QRCodeParameters**](QRCodeParameters.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentMethodReusability.md b/docs/PaymentMethodReusability.md index 56227301..4d8b4cd5 100644 --- a/docs/PaymentMethodReusability.md +++ b/docs/PaymentMethodReusability.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["MULTIPLE_USE", "ONE_TIME_USE", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["MULTIPLE_USE", "ONE_TIME_USE", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentMethodStatus.md b/docs/PaymentMethodStatus.md index 59c452e2..f3927db6 100644 --- a/docs/PaymentMethodStatus.md +++ b/docs/PaymentMethodStatus.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["ACTIVE", "INACTIVE", "PENDING", "EXPIRED", "FAILED", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["ACTIVE", "INACTIVE", "PENDING", "EXPIRED", "FAILED", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentMethodType.md b/docs/PaymentMethodType.md index 6d61a04b..0864cfe4 100644 --- a/docs/PaymentMethodType.md +++ b/docs/PaymentMethodType.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["CARD", "DIRECT_DEBIT", "EWALLET", "OVER_THE_COUNTER", "QR_CODE", "VIRTUAL_ACCOUNT", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["CARD", "DIRECT_DEBIT", "EWALLET", "OVER_THE_COUNTER", "QR_CODE", "VIRTUAL_ACCOUNT", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentMethodUpdateParameters.md b/docs/PaymentMethodUpdateParameters.md index 2f3293f9..49b3a062 100644 --- a/docs/PaymentMethodUpdateParameters.md +++ b/docs/PaymentMethodUpdateParameters.md @@ -2,14 +2,15 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **str** | | [optional] -**reference_id** | **str** | | [optional] -**reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | [optional] -**status** | [**PaymentMethodStatus**](PaymentMethodStatus.md) | | [optional] -**over_the_counter** | [**OverTheCounterUpdateParameters**](OverTheCounterUpdateParameters.md) | | [optional] -**virtual_account** | [**VirtualAccountUpdateParameters**](VirtualAccountUpdateParameters.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **description** | **str** | | [optional] | +| **reference_id** | **str** | | [optional] | +| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | [optional] | +| **status** | [**PaymentMethodStatus**](PaymentMethodStatus.md) | | [optional] | +| **over_the_counter** | [**OverTheCounterUpdateParameters**](OverTheCounterUpdateParameters.md) | | [optional] | +| **virtual_account** | [**VirtualAccountUpdateParameters**](VirtualAccountUpdateParameters.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequest.md b/docs/PaymentRequest.md index 279b1126..3503a9f2 100644 --- a/docs/PaymentRequest.md +++ b/docs/PaymentRequest.md @@ -2,31 +2,32 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str** | | -**created** | **str** | | -**updated** | **str** | | -**reference_id** | **str** | | -**business_id** | **str** | | -**currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | -**payment_method** | [**PaymentMethod**](PaymentMethod.md) | | -**status** | [**PaymentRequestStatus**](PaymentRequestStatus.md) | | -**customer_id** | **str, none_type** | | [optional] -**customer** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] -**amount** | **float** | | [optional] -**min_amount** | **float, none_type** | | [optional] -**max_amount** | **float, none_type** | | [optional] -**country** | [**PaymentRequestCountry**](PaymentRequestCountry.md) | | [optional] -**description** | **str, none_type** | | [optional] -**failure_code** | **str, none_type** | | [optional] -**capture_method** | [**PaymentRequestCaptureMethod**](PaymentRequestCaptureMethod.md) | | [optional] -**initiator** | [**PaymentRequestInitiator**](PaymentRequestInitiator.md) | | [optional] -**card_verification_results** | [**PaymentRequestCardVerificationResults**](PaymentRequestCardVerificationResults.md) | | [optional] -**actions** | [**[PaymentRequestAction]**](PaymentRequestAction.md) | | [optional] -**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] -**shipping_information** | [**PaymentRequestShippingInformation**](PaymentRequestShippingInformation.md) | | [optional] -**items** | [**PaymentRequestBasket**](PaymentRequestBasket.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | **str** | | | +| **created** | **str** | | | +| **updated** | **str** | | | +| **reference_id** | **str** | | | +| **business_id** | **str** | | | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | | +| **payment_method** | [**PaymentMethod**](PaymentMethod.md) | | | +| **status** | [**PaymentRequestStatus**](PaymentRequestStatus.md) | | | +| **customer_id** | **str, none_type** | | [optional] | +| **customer** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | +| **amount** | **float** | | [optional] | +| **min_amount** | **float, none_type** | | [optional] | +| **max_amount** | **float, none_type** | | [optional] | +| **country** | [**PaymentRequestCountry**](PaymentRequestCountry.md) | | [optional] | +| **description** | **str, none_type** | | [optional] | +| **failure_code** | **str, none_type** | | [optional] | +| **capture_method** | [**PaymentRequestCaptureMethod**](PaymentRequestCaptureMethod.md) | | [optional] | +| **initiator** | [**PaymentRequestInitiator**](PaymentRequestInitiator.md) | | [optional] | +| **card_verification_results** | [**PaymentRequestCardVerificationResults**](PaymentRequestCardVerificationResults.md) | | [optional] | +| **actions** | [**[PaymentRequestAction]**](PaymentRequestAction.md) | | [optional] | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | +| **shipping_information** | [**PaymentRequestShippingInformation**](PaymentRequestShippingInformation.md) | | [optional] | +| **items** | [**PaymentRequestBasket**](PaymentRequestBasket.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestAction.md b/docs/PaymentRequestAction.md index 3cb4ea3e..c1c7a158 100644 --- a/docs/PaymentRequestAction.md +++ b/docs/PaymentRequestAction.md @@ -2,13 +2,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **str** | | -**url_type** | **str** | | -**method** | **str, none_type** | | -**url** | **str, none_type** | | -**qr_code** | **str, none_type** | | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **action** | **str** | | | +| **url_type** | **str** | | | +| **method** | **str, none_type** | | | +| **url** | **str, none_type** | | | +| **qr_code** | **str, none_type** | | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestApi.md b/docs/PaymentRequestApi.md index f956bb76..f9599fc5 100644 --- a/docs/PaymentRequestApi.md +++ b/docs/PaymentRequestApi.md @@ -4,21 +4,21 @@ All URIs are relative to *https://api.xendit.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**authorize_payment_request**](PaymentRequestApi.md#authorize_payment_request) | **POST** /payment_requests/{paymentRequestId}/auth | Payment Request Authorize -[**capture_payment_request**](PaymentRequestApi.md#capture_payment_request) | **POST** /payment_requests/{paymentRequestId}/captures | Payment Request Capture [**create_payment_request**](PaymentRequestApi.md#create_payment_request) | **POST** /payment_requests | Create Payment Request -[**get_all_payment_requests**](PaymentRequestApi.md#get_all_payment_requests) | **GET** /payment_requests | Get all payment requests by filter [**get_payment_request_by_id**](PaymentRequestApi.md#get_payment_request_by_id) | **GET** /payment_requests/{paymentRequestId} | Get payment request by ID [**get_payment_request_captures**](PaymentRequestApi.md#get_payment_request_captures) | **GET** /payment_requests/{paymentRequestId}/captures | Get Payment Request Capture +[**get_all_payment_requests**](PaymentRequestApi.md#get_all_payment_requests) | **GET** /payment_requests | Get all payment requests by filter +[**capture_payment_request**](PaymentRequestApi.md#capture_payment_request) | **POST** /payment_requests/{paymentRequestId}/captures | Payment Request Capture +[**authorize_payment_request**](PaymentRequestApi.md#authorize_payment_request) | **POST** /payment_requests/{paymentRequestId}/auth | Payment Request Authorize [**resend_payment_request_auth**](PaymentRequestApi.md#resend_payment_request_auth) | **POST** /payment_requests/{paymentRequestId}/auth/resend | Payment Request Resend Auth -# **authorize_payment_request** -> PaymentRequest authorize_payment_request(payment_request_id) +# **create_payment_request** +> PaymentRequest create_payment_request() -Payment Request Authorize +Create Payment Request -Payment Request Authorize +Create Payment Request ### Example @@ -27,8 +27,8 @@ Payment Request Authorize import time import xendit from xendit.apis import PaymentRequestApi +from xendit.payment_request.model.payment_request_parameters import PaymentRequestParameters from xendit.payment_request.model.error import Error -from xendit.payment_request.model.payment_request_auth_parameters import PaymentRequestAuthParameters from xendit.payment_request.model.payment_request import PaymentRequest from pprint import pprint @@ -40,24 +40,15 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentRequestApi(api_client) -payment_request_id = "pr-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | - -# example passing only required values which don't have defaults set -try: - # Payment Request Authorize - api_response = api_instance.authorize_payment_request(payment_request_id) - pprint(api_response) -except xendit.XenditSdkException as e: - print("Exception when calling PaymentRequestApi->authorize_payment_request: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - # Payment Request Authorize - api_response = api_instance.authorize_payment_request(payment_request_id, payment_request_auth_parameters=payment_request_auth_parameters) + # Create Payment Request + api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, for_user_id=for_user_id, payment_request_parameters=payment_request_parameters) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentRequestApi->authorize_payment_request: %s\n" % e) + print("Exception when calling PaymentRequestApi->create_payment_request: %s\n" % e) ``` @@ -65,8 +56,9 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **payment_request_id** | **str**| | - **payment_request_auth_parameters** | [**PaymentRequestAuthParameters**](PaymentRequestAuthParameters.md)| | [optional] + **idempotency_key** | **str**| | [optional] + **for_user_id** | **str**| | [optional] + **payment_request_parameters** | [**PaymentRequestParameters**](PaymentRequestParameters.md)| | [optional] ### Return type @@ -78,18 +70,19 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Request successful | - | +**201** | Request successful | - | **400** | Errors | - | **500** | Errors | - | **0** | Errors | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **capture_payment_request** -> Capture capture_payment_request(payment_request_id) +# **get_payment_request_by_id** +> PaymentRequest get_payment_request_by_id(payment_request_id) -Payment Request Capture +Get payment request by ID -Payment Request Capture +Get payment request by ID ### Example @@ -98,9 +91,8 @@ Payment Request Capture import time import xendit from xendit.apis import PaymentRequestApi -from xendit.payment_request.model.capture_parameters import CaptureParameters from xendit.payment_request.model.error import Error -from xendit.payment_request.model.capture import Capture +from xendit.payment_request.model.payment_request import PaymentRequest from pprint import pprint # See configuration.py for a list of all supported configuration parameters. @@ -115,20 +107,20 @@ payment_request_id = "pr-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | # example passing only required values which don't have defaults set try: - # Payment Request Capture - api_response = api_instance.capture_payment_request(payment_request_id) + # Get payment request by ID + api_response = api_instance.get_payment_request_by_id(payment_request_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentRequestApi->capture_payment_request: %s\n" % e) + print("Exception when calling PaymentRequestApi->get_payment_request_by_id: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - # Payment Request Capture - api_response = api_instance.capture_payment_request(payment_request_id, capture_parameters=capture_parameters) + # Get payment request by ID + api_response = api_instance.get_payment_request_by_id(payment_request_id, for_user_id=for_user_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentRequestApi->capture_payment_request: %s\n" % e) + print("Exception when calling PaymentRequestApi->get_payment_request_by_id: %s\n" % e) ``` @@ -137,30 +129,30 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **payment_request_id** | **str**| | - **capture_parameters** | [**CaptureParameters**](CaptureParameters.md)| | [optional] + **for_user_id** | **str**| | [optional] ### Return type -[**Capture**](Capture.md) +[**PaymentRequest**](PaymentRequest.md) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Capture created | - | -**400** | Errors | - | +**200** | Request successful | - | +**404** | Errors | - | **500** | Errors | - | **0** | Errors | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_payment_request** -> PaymentRequest create_payment_request() +# **get_payment_request_captures** +> CaptureListResponse get_payment_request_captures(payment_request_id) -Create Payment Request +Get Payment Request Capture -Create Payment Request +Get Payment Request Capture ### Example @@ -169,9 +161,8 @@ Create Payment Request import time import xendit from xendit.apis import PaymentRequestApi -from xendit.payment_request.model.payment_request_parameters import PaymentRequestParameters from xendit.payment_request.model.error import Error -from xendit.payment_request.model.payment_request import PaymentRequest +from xendit.payment_request.model.capture_list_response import CaptureListResponse from pprint import pprint # See configuration.py for a list of all supported configuration parameters. @@ -182,15 +173,24 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentRequestApi(api_client) +payment_request_id = "pr-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | + +# example passing only required values which don't have defaults set +try: + # Get Payment Request Capture + api_response = api_instance.get_payment_request_captures(payment_request_id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling PaymentRequestApi->get_payment_request_captures: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - # Create Payment Request - api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, payment_request_parameters=payment_request_parameters) + # Get Payment Request Capture + api_response = api_instance.get_payment_request_captures(payment_request_id, for_user_id=for_user_id, limit=limit) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentRequestApi->create_payment_request: %s\n" % e) + print("Exception when calling PaymentRequestApi->get_payment_request_captures: %s\n" % e) ``` @@ -198,12 +198,13 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **idempotency_key** | **str**| | [optional] - **payment_request_parameters** | [**PaymentRequestParameters**](PaymentRequestParameters.md)| | [optional] + **payment_request_id** | **str**| | + **for_user_id** | **str**| | [optional] + **limit** | **int**| | [optional] ### Return type -[**PaymentRequest**](PaymentRequest.md) +[**CaptureListResponse**](CaptureListResponse.md) ### HTTP response details @@ -211,7 +212,6 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Request successful | - | -**201** | Request successful | - | **400** | Errors | - | **500** | Errors | - | **0** | Errors | - | @@ -249,7 +249,7 @@ api_instance = PaymentRequestApi(api_client) # and optional values try: # Get all payment requests by filter - api_response = api_instance.get_all_payment_requests(reference_id=reference_id, id=id, customer_id=customer_id, limit=limit, before_id=before_id, after_id=after_id) + api_response = api_instance.get_all_payment_requests(for_user_id=for_user_id, reference_id=reference_id, id=id, customer_id=customer_id, limit=limit, before_id=before_id, after_id=after_id) pprint(api_response) except xendit.XenditSdkException as e: print("Exception when calling PaymentRequestApi->get_all_payment_requests: %s\n" % e) @@ -260,6 +260,7 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **for_user_id** | **str**| | [optional] **reference_id** | **[str]**| | [optional] **id** | **[str]**| | [optional] **customer_id** | **[str]**| | [optional] @@ -283,12 +284,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_payment_request_by_id** -> PaymentRequest get_payment_request_by_id(payment_request_id) +# **capture_payment_request** +> Capture capture_payment_request(payment_request_id) -Get payment request by ID +Payment Request Capture -Get payment request by ID +Payment Request Capture ### Example @@ -297,8 +298,9 @@ Get payment request by ID import time import xendit from xendit.apis import PaymentRequestApi +from xendit.payment_request.model.capture_parameters import CaptureParameters from xendit.payment_request.model.error import Error -from xendit.payment_request.model.payment_request import PaymentRequest +from xendit.payment_request.model.capture import Capture from pprint import pprint # See configuration.py for a list of all supported configuration parameters. @@ -313,11 +315,20 @@ payment_request_id = "pr-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | # example passing only required values which don't have defaults set try: - # Get payment request by ID - api_response = api_instance.get_payment_request_by_id(payment_request_id) + # Payment Request Capture + api_response = api_instance.capture_payment_request(payment_request_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentRequestApi->get_payment_request_by_id: %s\n" % e) + print("Exception when calling PaymentRequestApi->capture_payment_request: %s\n" % e) + +# example passing only required values which don't have defaults set +# and optional values +try: + # Payment Request Capture + api_response = api_instance.capture_payment_request(payment_request_id, for_user_id=for_user_id, capture_parameters=capture_parameters) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling PaymentRequestApi->capture_payment_request: %s\n" % e) ``` @@ -326,29 +337,31 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **payment_request_id** | **str**| | + **for_user_id** | **str**| | [optional] + **capture_parameters** | [**CaptureParameters**](CaptureParameters.md)| | [optional] ### Return type -[**PaymentRequest**](PaymentRequest.md) +[**Capture**](Capture.md) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Request successful | - | -**404** | Errors | - | +**201** | Capture created | - | +**400** | Errors | - | **500** | Errors | - | **0** | Errors | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_payment_request_captures** -> CaptureListResponse get_payment_request_captures(payment_request_id) +# **authorize_payment_request** +> PaymentRequest authorize_payment_request(payment_request_id) -Get Payment Request Capture +Payment Request Authorize -Get Payment Request Capture +Payment Request Authorize ### Example @@ -358,7 +371,8 @@ import time import xendit from xendit.apis import PaymentRequestApi from xendit.payment_request.model.error import Error -from xendit.payment_request.model.capture_list_response import CaptureListResponse +from xendit.payment_request.model.payment_request_auth_parameters import PaymentRequestAuthParameters +from xendit.payment_request.model.payment_request import PaymentRequest from pprint import pprint # See configuration.py for a list of all supported configuration parameters. @@ -373,20 +387,20 @@ payment_request_id = "pr-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | # example passing only required values which don't have defaults set try: - # Get Payment Request Capture - api_response = api_instance.get_payment_request_captures(payment_request_id) + # Payment Request Authorize + api_response = api_instance.authorize_payment_request(payment_request_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentRequestApi->get_payment_request_captures: %s\n" % e) + print("Exception when calling PaymentRequestApi->authorize_payment_request: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - # Get Payment Request Capture - api_response = api_instance.get_payment_request_captures(payment_request_id, limit=limit) + # Payment Request Authorize + api_response = api_instance.authorize_payment_request(payment_request_id, for_user_id=for_user_id, payment_request_auth_parameters=payment_request_auth_parameters) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling PaymentRequestApi->get_payment_request_captures: %s\n" % e) + print("Exception when calling PaymentRequestApi->authorize_payment_request: %s\n" % e) ``` @@ -395,11 +409,12 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **payment_request_id** | **str**| | - **limit** | **int**| | [optional] + **for_user_id** | **str**| | [optional] + **payment_request_auth_parameters** | [**PaymentRequestAuthParameters**](PaymentRequestAuthParameters.md)| | [optional] ### Return type -[**CaptureListResponse**](CaptureListResponse.md) +[**PaymentRequest**](PaymentRequest.md) ### HTTP response details @@ -448,6 +463,15 @@ try: pprint(api_response) except xendit.XenditSdkException as e: print("Exception when calling PaymentRequestApi->resend_payment_request_auth: %s\n" % e) + +# example passing only required values which don't have defaults set +# and optional values +try: + # Payment Request Resend Auth + api_response = api_instance.resend_payment_request_auth(payment_request_id, for_user_id=for_user_id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling PaymentRequestApi->resend_payment_request_auth: %s\n" % e) ``` @@ -456,6 +480,7 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **payment_request_id** | **str**| | + **for_user_id** | **str**| | [optional] ### Return type diff --git a/docs/PaymentRequestAuthParameters.md b/docs/PaymentRequestAuthParameters.md index d4a54131..fe88c768 100644 --- a/docs/PaymentRequestAuthParameters.md +++ b/docs/PaymentRequestAuthParameters.md @@ -2,9 +2,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**auth_code** | **str** | | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **auth_code** | **str** | | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestBasket.md b/docs/PaymentRequestBasket.md index 93587be4..6e0cb94d 100644 --- a/docs/PaymentRequestBasket.md +++ b/docs/PaymentRequestBasket.md @@ -2,9 +2,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**[PaymentRequestBasketItem], none_type**](PaymentRequestBasketItem.md) | | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | [**[PaymentRequestBasketItem], none_type**](PaymentRequestBasketItem.md) | | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestBasketItem.md b/docs/PaymentRequestBasketItem.md index d19c0022..03cc065c 100644 --- a/docs/PaymentRequestBasketItem.md +++ b/docs/PaymentRequestBasketItem.md @@ -2,21 +2,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | -**category** | **str** | | -**currency** | **str** | | -**quantity** | **float** | | -**price** | **float** | | -**reference_id** | **str** | | [optional] -**description** | **str** | | [optional] -**type** | **str** | | [optional] -**sub_category** | **str** | | [optional] -**payer_charged_currency** | **str** | | [optional] -**payer_charged_price** | **float** | | [optional] -**url** | **str** | | [optional] -**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **name** | **str** | | | +| **category** | **str** | | | +| **currency** | **str** | | | +| **quantity** | **float** | | | +| **price** | **float** | | | +| **reference_id** | **str** | | [optional] | +| **description** | **str** | | [optional] | +| **type** | **str** | | [optional] | +| **sub_category** | **str** | | [optional] | +| **payer_charged_currency** | **str** | | [optional] | +| **payer_charged_price** | **float** | | [optional] | +| **url** | **str** | | [optional] | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestCaptureMethod.md b/docs/PaymentRequestCaptureMethod.md index 8ff826bd..d297df9e 100644 --- a/docs/PaymentRequestCaptureMethod.md +++ b/docs/PaymentRequestCaptureMethod.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["AUTOMATIC", "MANUAL", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["AUTOMATIC", "MANUAL", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestCardVerificationResults.md b/docs/PaymentRequestCardVerificationResults.md index 8531898c..17793b7f 100644 --- a/docs/PaymentRequestCardVerificationResults.md +++ b/docs/PaymentRequestCardVerificationResults.md @@ -2,11 +2,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**three_d_secure** | [**PaymentRequestCardVerificationResultsThreeDeeSecure**](PaymentRequestCardVerificationResultsThreeDeeSecure.md) | | -**cvv_result** | **str, none_type** | | [optional] -**address_verification_result** | **str, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **three_d_secure** | [**PaymentRequestCardVerificationResultsThreeDeeSecure**](PaymentRequestCardVerificationResultsThreeDeeSecure.md) | | | +| **cvv_result** | **str, none_type** | | [optional] | +| **address_verification_result** | **str, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestCardVerificationResultsThreeDeeSecure.md b/docs/PaymentRequestCardVerificationResultsThreeDeeSecure.md index cf0eea19..3cc30a5c 100644 --- a/docs/PaymentRequestCardVerificationResultsThreeDeeSecure.md +++ b/docs/PaymentRequestCardVerificationResultsThreeDeeSecure.md @@ -2,13 +2,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**three_d_secure_flow** | **str** | | [optional] -**eci_code** | **str** | | [optional] -**three_d_secure_result** | **str** | | [optional] -**three_d_secure_result_reason** | **str, none_type** | | [optional] -**three_d_secure_version** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **three_d_secure_flow** | **str** | | [optional] | +| **eci_code** | **str** | | [optional] | +| **three_d_secure_result** | **str** | | [optional] | +| **three_d_secure_result_reason** | **str, none_type** | | [optional] | +| **three_d_secure_version** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestChannelProperties.md b/docs/PaymentRequestChannelProperties.md index 65167c32..7cce47aa 100644 --- a/docs/PaymentRequestChannelProperties.md +++ b/docs/PaymentRequestChannelProperties.md @@ -2,15 +2,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success_return_url** | **str** | URL where the end-customer is redirected if the authorization is successful | [optional] -**failure_return_url** | **str** | URL where the end-customer is redirected if the authorization failed | [optional] -**cancel_return_url** | **str** | URL where the end-customer is redirected if the authorization cancelled | [optional] -**redeem_points** | **str** | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | [optional] -**require_auth** | **bool** | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | [optional] -**merchant_id_tag** | **str** | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | [optional] -**cardonfile_type** | **str, none_type** | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **success_return_url** | **str** | URL where the end-customer is redirected if the authorization is successful | [optional] | +| **failure_return_url** | **str** | URL where the end-customer is redirected if the authorization failed | [optional] | +| **cancel_return_url** | **str** | URL where the end-customer is redirected if the authorization cancelled | [optional] | +| **redeem_points** | **str** | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | [optional] | +| **require_auth** | **bool** | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | [optional] | +| **merchant_id_tag** | **str** | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | [optional] | +| **cardonfile_type** | **str, none_type** | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestCountry.md b/docs/PaymentRequestCountry.md index 076874be..ea1d91c5 100644 --- a/docs/PaymentRequestCountry.md +++ b/docs/PaymentRequestCountry.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["ID", "PH", "VN", "TH", "MY", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["ID", "PH", "VN", "TH", "MY", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestCurrency.md b/docs/PaymentRequestCurrency.md index 079af366..a8dec1e2 100644 --- a/docs/PaymentRequestCurrency.md +++ b/docs/PaymentRequestCurrency.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["IDR", "PHP", "VND", "THB", "MYR", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["IDR", "PHP", "VND", "THB", "MYR", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestInitiator.md b/docs/PaymentRequestInitiator.md index b17a65e0..43aab677 100644 --- a/docs/PaymentRequestInitiator.md +++ b/docs/PaymentRequestInitiator.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["CUSTOMER", "MERCHANT", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["CUSTOMER", "MERCHANT", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestListResponse.md b/docs/PaymentRequestListResponse.md index 9373aad8..ccbd2fa1 100644 --- a/docs/PaymentRequestListResponse.md +++ b/docs/PaymentRequestListResponse.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PaymentRequest]**](PaymentRequest.md) | | -**has_more** | **bool** | | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **data** | [**[PaymentRequest]**](PaymentRequest.md) | | | +| **has_more** | **bool** | | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestParameters.md b/docs/PaymentRequestParameters.md index 2d3b949c..e556bc84 100644 --- a/docs/PaymentRequestParameters.md +++ b/docs/PaymentRequestParameters.md @@ -2,22 +2,23 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | -**reference_id** | **str** | | [optional] -**amount** | **float** | | [optional] -**payment_method** | [**PaymentMethodParameters**](PaymentMethodParameters.md) | | [optional] -**description** | **str, none_type** | | [optional] -**capture_method** | [**PaymentRequestCaptureMethod**](PaymentRequestCaptureMethod.md) | | [optional] -**initiator** | [**PaymentRequestInitiator**](PaymentRequestInitiator.md) | | [optional] -**payment_method_id** | **str** | | [optional] -**channel_properties** | [**PaymentRequestParametersChannelProperties**](PaymentRequestParametersChannelProperties.md) | | [optional] -**shipping_information** | [**PaymentRequestShippingInformation**](PaymentRequestShippingInformation.md) | | [optional] -**items** | [**PaymentRequestBasket**](PaymentRequestBasket.md) | | [optional] -**customer_id** | **str, none_type** | | [optional] -**customer** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] -**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | | +| **reference_id** | **str** | | [optional] | +| **amount** | **float** | | [optional] | +| **payment_method** | [**PaymentMethodParameters**](PaymentMethodParameters.md) | | [optional] | +| **description** | **str, none_type** | | [optional] | +| **capture_method** | [**PaymentRequestCaptureMethod**](PaymentRequestCaptureMethod.md) | | [optional] | +| **initiator** | [**PaymentRequestInitiator**](PaymentRequestInitiator.md) | | [optional] | +| **payment_method_id** | **str** | | [optional] | +| **channel_properties** | [**PaymentRequestParametersChannelProperties**](PaymentRequestParametersChannelProperties.md) | | [optional] | +| **shipping_information** | [**PaymentRequestShippingInformation**](PaymentRequestShippingInformation.md) | | [optional] | +| **items** | [**PaymentRequestBasket**](PaymentRequestBasket.md) | | [optional] | +| **customer_id** | **str, none_type** | | [optional] | +| **customer** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestParametersChannelProperties.md b/docs/PaymentRequestParametersChannelProperties.md index da0167f1..026056b3 100644 --- a/docs/PaymentRequestParametersChannelProperties.md +++ b/docs/PaymentRequestParametersChannelProperties.md @@ -2,16 +2,17 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success_return_url** | **str** | URL where the end-customer is redirected if the authorization is successful | [optional] -**failure_return_url** | **str** | URL where the end-customer is redirected if the authorization failed | [optional] -**cancel_return_url** | **str** | URL where the end-customer is redirected if the authorization cancelled | [optional] -**redeem_points** | **str** | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | [optional] -**require_auth** | **bool** | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | [optional] -**merchant_id_tag** | **str** | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | [optional] -**cardonfile_type** | **str, none_type** | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | [optional] -**cvv** | **str** | Three digit code written on the back of the card (usually called CVV/CVN). | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **success_return_url** | **str** | URL where the end-customer is redirected if the authorization is successful | [optional] | +| **failure_return_url** | **str** | URL where the end-customer is redirected if the authorization failed | [optional] | +| **cancel_return_url** | **str** | URL where the end-customer is redirected if the authorization cancelled | [optional] | +| **redeem_points** | **str** | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | [optional] | +| **require_auth** | **bool** | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | [optional] | +| **merchant_id_tag** | **str** | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | [optional] | +| **cardonfile_type** | **str, none_type** | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | [optional] | +| **cvv** | **str** | Three digit code written on the back of the card (usually called CVV/CVN). | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestParametersChannelPropertiesAllOf.md b/docs/PaymentRequestParametersChannelPropertiesAllOf.md index a4e322f7..f0d229e8 100644 --- a/docs/PaymentRequestParametersChannelPropertiesAllOf.md +++ b/docs/PaymentRequestParametersChannelPropertiesAllOf.md @@ -2,9 +2,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cvv** | **str** | Three digit code written on the back of the card (usually called CVV/CVN). | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **cvv** | **str** | Three digit code written on the back of the card (usually called CVV/CVN). | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestShippingInformation.md b/docs/PaymentRequestShippingInformation.md index b54efaa1..a7083f28 100644 --- a/docs/PaymentRequestShippingInformation.md +++ b/docs/PaymentRequestShippingInformation.md @@ -2,14 +2,15 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**country** | **str** | | -**street_line1** | **str** | | [optional] -**street_line2** | **str** | | [optional] -**city** | **str** | | [optional] -**province_state** | **str** | | [optional] -**postal_code** | **str** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **country** | **str** | | | +| **street_line1** | **str** | | [optional] | +| **street_line2** | **str** | | [optional] | +| **city** | **str** | | [optional] | +| **province_state** | **str** | | [optional] | +| **postal_code** | **str** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentRequestStatus.md b/docs/PaymentRequestStatus.md index fa20ef1d..1fb637e3 100644 --- a/docs/PaymentRequestStatus.md +++ b/docs/PaymentRequestStatus.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["PENDING", "REQUIRES_ACTION", "CANCELED", "SUCCEEDED", "FAILED", "VOIDED", "UNKNOWN", "AWAITING_CAPTURE", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["PENDING", "REQUIRES_ACTION", "CANCELED", "SUCCEEDED", "FAILED", "VOIDED", "UNKNOWN", "AWAITING_CAPTURE", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Payout.md b/docs/Payout.md index 63f77881..e7c24156 100644 --- a/docs/Payout.md +++ b/docs/Payout.md @@ -2,23 +2,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reference_id** | **str** | A client defined payout identifier | -**channel_code** | **str** | Channel code of selected destination bank or e-wallet | -**channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | | -**amount** | **float** | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | -**currency** | **str** | Currency of the destination channel using ISO-4217 currency code | -**id** | **str** | Xendit-generated unique identifier for each payout | -**created** | **datetime** | The time payout was created on Xendit's system, in ISO 8601 format | -**updated** | **datetime** | The time payout was last updated on Xendit's system, in ISO 8601 format | -**business_id** | **str** | Xendit Business ID | -**status** | **str** | Status of payout | -**description** | **str** | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | [optional] -**receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | [optional] -**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Object of additional information you may use | [optional] -**failure_code** | **str** | If the Payout failed, we include a failure code for more details on the failure. | [optional] -**estimated_arrival_time** | **datetime** | Our estimated time on to when your payout is reflected to the destination account | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **reference_id** | **str** | A client defined payout identifier | | +| **channel_code** | **str** | Channel code of selected destination bank or e-wallet | | +| **channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | | | +| **amount** | **float** | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | | +| **currency** | **str** | Currency of the destination channel using ISO-4217 currency code | | +| **id** | **str** | Xendit-generated unique identifier for each payout | | +| **created** | **datetime** | The time payout was created on Xendit's system, in ISO 8601 format | | +| **updated** | **datetime** | The time payout was last updated on Xendit's system, in ISO 8601 format | | +| **business_id** | **str** | Xendit Business ID | | +| **status** | **str** | Status of payout | | +| **description** | **str** | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | [optional] | +| **receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | [optional] | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Object of additional information you may use | [optional] | +| **failure_code** | **str** | If the Payout failed, we include a failure code for more details on the failure. | [optional] | +| **estimated_arrival_time** | **datetime** | Our estimated time on to when your payout is reflected to the destination account | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PayoutAllOf.md b/docs/PayoutAllOf.md index 72c76a5d..869ee6a0 100644 --- a/docs/PayoutAllOf.md +++ b/docs/PayoutAllOf.md @@ -2,15 +2,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str** | Xendit-generated unique identifier for each payout | -**created** | **datetime** | The time payout was created on Xendit's system, in ISO 8601 format | -**updated** | **datetime** | The time payout was last updated on Xendit's system, in ISO 8601 format | -**business_id** | **str** | Xendit Business ID | -**status** | **str** | Status of payout | -**failure_code** | **str** | If the Payout failed, we include a failure code for more details on the failure. | [optional] -**estimated_arrival_time** | **datetime** | Our estimated time on to when your payout is reflected to the destination account | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | **str** | Xendit-generated unique identifier for each payout | | +| **created** | **datetime** | The time payout was created on Xendit's system, in ISO 8601 format | | +| **updated** | **datetime** | The time payout was last updated on Xendit's system, in ISO 8601 format | | +| **business_id** | **str** | Xendit Business ID | | +| **status** | **str** | Status of payout | | +| **failure_code** | **str** | If the Payout failed, we include a failure code for more details on the failure. | [optional] | +| **estimated_arrival_time** | **datetime** | Our estimated time on to when your payout is reflected to the destination account | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PayoutApi.md b/docs/PayoutApi.md index 8c637834..d4a6996c 100644 --- a/docs/PayoutApi.md +++ b/docs/PayoutApi.md @@ -4,71 +4,13 @@ All URIs are relative to *https://api.xendit.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**cancel_payout**](PayoutApi.md#cancel_payout) | **POST** /v2/payouts/{id}/cancel | API to cancel requested payouts that have not yet been sent to partner banks and e-wallets. Cancellation is possible if the payout has not been sent out via our partner and when payout status is ACCEPTED. [**create_payout**](PayoutApi.md#create_payout) | **POST** /v2/payouts | API to send money at scale to bank accounts & eWallets [**get_payout_by_id**](PayoutApi.md#get_payout_by_id) | **GET** /v2/payouts/{id} | API to fetch the current status, or details of the payout [**get_payout_channels**](PayoutApi.md#get_payout_channels) | **GET** /payouts_channels | API providing the current list of banks and e-wallets we support for payouts for both regions [**get_payouts**](PayoutApi.md#get_payouts) | **GET** /v2/payouts | API to retrieve all matching payouts with reference ID +[**cancel_payout**](PayoutApi.md#cancel_payout) | **POST** /v2/payouts/{id}/cancel | API to cancel requested payouts that have not yet been sent to partner banks and e-wallets. Cancellation is possible if the payout has not been sent out via our partner and when payout status is ACCEPTED. -# **cancel_payout** -> GetPayouts200ResponseDataInner cancel_payout(id) - -API to cancel requested payouts that have not yet been sent to partner banks and e-wallets. Cancellation is possible if the payout has not been sent out via our partner and when payout status is ACCEPTED. - -### Example - - -```python -import time -import xendit -from xendit.apis import PayoutApi -from xendit.payout.model.get_payouts200_response_data_inner import GetPayouts200ResponseDataInner -from xendit.payout.model.error import Error -from pprint import pprint - -# See configuration.py for a list of all supported configuration parameters. -xendit.set_api_key('XENDIT API KEY') - - -# Enter a context with an instance of the API client -api_client = xendit.ApiClient() -# Create an instance of the API class -api_instance = PayoutApi(api_client) -id = "disb-7baa7335-a0b2-4678-bb8c-318c0167f332" # str | Payout id returned from the response of /v2/payouts - -# example passing only required values which don't have defaults set -try: - # API to cancel requested payouts that have not yet been sent to partner banks and e-wallets. Cancellation is possible if the payout has not been sent out via our partner and when payout status is ACCEPTED. - api_response = api_instance.cancel_payout(id) - pprint(api_response) -except xendit.XenditSdkException as e: - print("Exception when calling PayoutApi->cancel_payout: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| Payout id returned from the response of /v2/payouts | - -### Return type - -[**GetPayouts200ResponseDataInner**](GetPayouts200ResponseDataInner.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Cancelled Successfully | - | -**400** | Unable to Cancel | - | -**404** | Invalid Payout ID | - | -**0** | Errors | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **create_payout** > GetPayouts200ResponseDataInner create_payout(idempotency_key) @@ -174,6 +116,15 @@ try: pprint(api_response) except xendit.XenditSdkException as e: print("Exception when calling PayoutApi->get_payout_by_id: %s\n" % e) + +# example passing only required values which don't have defaults set +# and optional values +try: + # API to fetch the current status, or details of the payout + api_response = api_instance.get_payout_by_id(id, for_user_id=for_user_id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling PayoutApi->get_payout_by_id: %s\n" % e) ``` @@ -182,6 +133,7 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Payout id returned from the response of /v2/payouts | + **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. | [optional] ### Return type @@ -230,7 +182,7 @@ api_instance = PayoutApi(api_client) # and optional values try: # API providing the current list of banks and e-wallets we support for payouts for both regions - api_response = api_instance.get_payout_channels(currency=currency, channel_category=channel_category, channel_code=channel_code) + api_response = api_instance.get_payout_channels(currency=currency, channel_category=channel_category, channel_code=channel_code, for_user_id=for_user_id) pprint(api_response) except xendit.XenditSdkException as e: print("Exception when calling PayoutApi->get_payout_channels: %s\n" % e) @@ -244,6 +196,7 @@ Name | Type | Description | Notes **currency** | **str**| Filter channels by currency from ISO-4217 values | [optional] **channel_category** | [**[ChannelCategory]**](ChannelCategory.md)| Filter channels by category | [optional] **channel_code** | **str**| Filter channels by channel code, prefixed by ISO-3166 country code | [optional] + **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. | [optional] ### Return type @@ -297,7 +250,7 @@ except xendit.XenditSdkException as e: # and optional values try: # API to retrieve all matching payouts with reference ID - api_response = api_instance.get_payouts(reference_id, limit=limit, after_id=after_id, before_id=before_id) + api_response = api_instance.get_payouts(reference_id, limit=limit, after_id=after_id, before_id=before_id, for_user_id=for_user_id) pprint(api_response) except xendit.XenditSdkException as e: print("Exception when calling PayoutApi->get_payouts: %s\n" % e) @@ -312,6 +265,7 @@ Name | Type | Description | Notes **limit** | **float**| Number of records to fetch per API call | [optional] **after_id** | **str**| Used to fetch record after this payout unique id | [optional] **before_id** | **str**| Used to fetch record before this payout unique id | [optional] + **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. | [optional] ### Return type @@ -328,3 +282,71 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **cancel_payout** +> GetPayouts200ResponseDataInner cancel_payout(id) + +API to cancel requested payouts that have not yet been sent to partner banks and e-wallets. Cancellation is possible if the payout has not been sent out via our partner and when payout status is ACCEPTED. + +### Example + + +```python +import time +import xendit +from xendit.apis import PayoutApi +from xendit.payout.model.get_payouts200_response_data_inner import GetPayouts200ResponseDataInner +from xendit.payout.model.error import Error +from pprint import pprint + +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') + + +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() +# Create an instance of the API class +api_instance = PayoutApi(api_client) +id = "disb-7baa7335-a0b2-4678-bb8c-318c0167f332" # str | Payout id returned from the response of /v2/payouts + +# example passing only required values which don't have defaults set +try: + # API to cancel requested payouts that have not yet been sent to partner banks and e-wallets. Cancellation is possible if the payout has not been sent out via our partner and when payout status is ACCEPTED. + api_response = api_instance.cancel_payout(id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling PayoutApi->cancel_payout: %s\n" % e) + +# example passing only required values which don't have defaults set +# and optional values +try: + # API to cancel requested payouts that have not yet been sent to partner banks and e-wallets. Cancellation is possible if the payout has not been sent out via our partner and when payout status is ACCEPTED. + api_response = api_instance.cancel_payout(id, for_user_id=for_user_id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling PayoutApi->cancel_payout: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Payout id returned from the response of /v2/payouts | + **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. | [optional] + +### Return type + +[**GetPayouts200ResponseDataInner**](GetPayouts200ResponseDataInner.md) + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Cancelled Successfully | - | +**400** | Unable to Cancel | - | +**404** | Invalid Payout ID | - | +**0** | Errors | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/QRCode.md b/docs/QRCode.md index 909374b9..85a0d2e7 100644 --- a/docs/QRCode.md +++ b/docs/QRCode.md @@ -3,10 +3,11 @@ QRCode Payment Method Details ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | [optional] -**channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | [optional] | +| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/QRCodeChannelCode.md b/docs/QRCodeChannelCode.md index c38feb6f..cebcceec 100644 --- a/docs/QRCodeChannelCode.md +++ b/docs/QRCodeChannelCode.md @@ -3,9 +3,11 @@ QR Code Channel Code ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | QR Code Channel Code | must be one of ["DANA", "RCBC", "LINKAJA", "PROMPTPAY", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | QR Code Channel Code | must be one of ["DANA", "RCBC", "LINKAJA", "PROMPTPAY", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/QRCodeChannelProperties.md b/docs/QRCodeChannelProperties.md index 243c729a..70128573 100644 --- a/docs/QRCodeChannelProperties.md +++ b/docs/QRCodeChannelProperties.md @@ -3,10 +3,11 @@ QR Code Channel Properties ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**qr_string** | **str** | | [optional] -**expires_at** | **datetime** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **qr_string** | **str** | | [optional] | +| **expires_at** | **datetime** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/QRCodeParameters.md b/docs/QRCodeParameters.md index 1230ef94..6e1cf9d1 100644 --- a/docs/QRCodeParameters.md +++ b/docs/QRCodeParameters.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | [optional] -**channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | [optional] | +| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/QrCode.md b/docs/QrCode.md index 5b941b17..1edefa82 100644 --- a/docs/QrCode.md +++ b/docs/QrCode.md @@ -3,9 +3,10 @@ An object representing QR code details for invoices. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**qr_code_type** | [**QrCodeType**](QrCodeType.md) | | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **qr_code_type** | [**QrCodeType**](QrCodeType.md) | | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/QrCodeType.md b/docs/QrCodeType.md index ed09a35a..aed7db8e 100644 --- a/docs/QrCodeType.md +++ b/docs/QrCodeType.md @@ -3,9 +3,11 @@ Representing the available QR Code channels used for invoice-related transactions. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Representing the available QR Code channels used for invoice-related transactions. | must be one of ["QRIS", "PROMPTPAY", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Representing the available QR Code channels used for invoice-related transactions. | must be one of ["QRIS", "PROMPTPAY", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ReceiptNotification.md b/docs/ReceiptNotification.md index e10bcf0a..c75edef5 100644 --- a/docs/ReceiptNotification.md +++ b/docs/ReceiptNotification.md @@ -3,11 +3,12 @@ Additional notification for completed payout ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_to** | **[str], none_type** | Valid email address to send the payout receipt | [optional] -**email_cc** | **[str], none_type** | Valid email address to cc the payout receipt | [optional] -**email_bcc** | **[str], none_type** | Valid email address to bcc the payout receipt | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **email_to** | **[str], none_type** | Valid email address to send the payout receipt | [optional] | +| **email_cc** | **[str], none_type** | Valid email address to cc the payout receipt | [optional] | +| **email_bcc** | **[str], none_type** | Valid email address to bcc the payout receipt | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Refund.md b/docs/Refund.md index 08cd0944..143e8e8c 100644 --- a/docs/Refund.md +++ b/docs/Refund.md @@ -2,20 +2,21 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str** | | [optional] -**payment_request_id** | **str** | | [optional] -**amount** | **float** | | [optional] -**channel_code** | **str** | | [optional] -**country** | **str** | | [optional] -**currency** | **str** | | [optional] -**reference_id** | **str, none_type** | | [optional] -**failure_code** | **str, none_type** | | [optional] -**refund_fee_amount** | **float, none_type** | | [optional] -**created** | **str** | | [optional] -**updated** | **str** | | [optional] -**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | **str** | | [optional] | +| **payment_request_id** | **str** | | [optional] | +| **amount** | **float** | | [optional] | +| **channel_code** | **str** | | [optional] | +| **country** | **str** | | [optional] | +| **currency** | **str** | | [optional] | +| **reference_id** | **str, none_type** | | [optional] | +| **failure_code** | **str, none_type** | | [optional] | +| **refund_fee_amount** | **float, none_type** | | [optional] | +| **created** | **str** | | [optional] | +| **updated** | **str** | | [optional] | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RefundApi.md b/docs/RefundApi.md index a07b8c99..b34d613b 100644 --- a/docs/RefundApi.md +++ b/docs/RefundApi.md @@ -4,14 +4,14 @@ All URIs are relative to *https://api.xendit.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**cancel_refund**](RefundApi.md#cancel_refund) | **POST** /refunds/{refundID}/cancel | [**create_refund**](RefundApi.md#create_refund) | **POST** /refunds | -[**get_all_refunds**](RefundApi.md#get_all_refunds) | **GET** /refunds/ | [**get_refund**](RefundApi.md#get_refund) | **GET** /refunds/{refundID} | +[**get_all_refunds**](RefundApi.md#get_all_refunds) | **GET** /refunds | +[**cancel_refund**](RefundApi.md#cancel_refund) | **POST** /refunds/{refundID}/cancel | -# **cancel_refund** -> Refund cancel_refund(refund_id) +# **create_refund** +> Refund create_refund() @@ -24,9 +24,12 @@ import xendit from xendit.apis import RefundApi from xendit.refund.model.create_refund404_response import CreateRefund404Response from xendit.refund.model.create_refund403_response import CreateRefund403Response +from xendit.refund.model.create_refund503_response import CreateRefund503Response from xendit.refund.model.refund import Refund from xendit.refund.model.create_refund400_response import CreateRefund400Response -from xendit.refund.model.create_refund_default_response import CreateRefundDefaultResponse +from xendit.refund.model.create_refund import CreateRefund +from xendit.refund.model.get_all_refunds_default_response import GetAllRefundsDefaultResponse +from xendit.refund.model.create_refund409_response import CreateRefund409Response from pprint import pprint # See configuration.py for a list of all supported configuration parameters. @@ -37,22 +40,14 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = RefundApi(api_client) -refund_id = "rfd-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | - -# example passing only required values which don't have defaults set -try: - api_response = api_instance.cancel_refund(refund_id) - pprint(api_response) -except xendit.XenditSdkException as e: - print("Exception when calling RefundApi->cancel_refund: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.cancel_refund(refund_id, idempotency_key=idempotency_key) + api_response = api_instance.create_refund(idempotency_key=idempotency_key, for_user_id=for_user_id, create_refund=create_refund) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling RefundApi->cancel_refund: %s\n" % e) + print("Exception when calling RefundApi->create_refund: %s\n" % e) ``` @@ -60,8 +55,9 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **refund_id** | **str**| | **idempotency_key** | **str**| | [optional] + **for_user_id** | **str**| | [optional] + **create_refund** | [**CreateRefund**](CreateRefund.md)| | [optional] ### Return type @@ -76,12 +72,14 @@ Name | Type | Description | Notes **400** | Bad request | - | **403** | Forbidden due to permissions | - | **404** | Data not found | - | +**409** | Request causes conflict | - | +**503** | Service is unavailable due to dependencies | - | **0** | Internal server error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_refund** -> Refund create_refund() +# **get_refund** +> Refund get_refund(refund_id) @@ -92,14 +90,8 @@ Name | Type | Description | Notes import time import xendit from xendit.apis import RefundApi -from xendit.refund.model.create_refund404_response import CreateRefund404Response -from xendit.refund.model.create_refund403_response import CreateRefund403Response -from xendit.refund.model.create_refund503_response import CreateRefund503Response from xendit.refund.model.refund import Refund -from xendit.refund.model.create_refund400_response import CreateRefund400Response -from xendit.refund.model.create_refund import CreateRefund -from xendit.refund.model.create_refund409_response import CreateRefund409Response -from xendit.refund.model.create_refund_default_response import CreateRefundDefaultResponse +from xendit.refund.model.get_all_refunds_default_response import GetAllRefundsDefaultResponse from pprint import pprint # See configuration.py for a list of all supported configuration parameters. @@ -110,14 +102,22 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = RefundApi(api_client) +refund_id = "rfd-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | + +# example passing only required values which don't have defaults set +try: + api_response = api_instance.get_refund(refund_id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling RefundApi->get_refund: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.create_refund(idempotency_key=idempotency_key, create_refund=create_refund) + api_response = api_instance.get_refund(refund_id, idempotency_key=idempotency_key, for_user_id=for_user_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling RefundApi->create_refund: %s\n" % e) + print("Exception when calling RefundApi->get_refund: %s\n" % e) ``` @@ -125,8 +125,9 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **refund_id** | **str**| | **idempotency_key** | **str**| | [optional] - **create_refund** | [**CreateRefund**](CreateRefund.md)| | [optional] + **for_user_id** | **str**| | [optional] ### Return type @@ -138,11 +139,6 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**400** | Bad request | - | -**403** | Forbidden due to permissions | - | -**404** | Data not found | - | -**409** | Request causes conflict | - | -**503** | Service is unavailable due to dependencies | - | **0** | Internal server error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -160,7 +156,7 @@ import time import xendit from xendit.apis import RefundApi from xendit.refund.model.refund_list import RefundList -from xendit.refund.model.create_refund_default_response import CreateRefundDefaultResponse +from xendit.refund.model.get_all_refunds_default_response import GetAllRefundsDefaultResponse from pprint import pprint # See configuration.py for a list of all supported configuration parameters. @@ -172,9 +168,10 @@ api_client = xendit.ApiClient() # Create an instance of the API class api_instance = RefundApi(api_client) -# example, this endpoint has no required or optional parameters +# example passing only required values which don't have defaults set +# and optional values try: - api_response = api_instance.get_all_refunds() + api_response = api_instance.get_all_refunds(for_user_id=for_user_id, payment_request_id=payment_request_id, invoice_id=invoice_id, payment_method_type=payment_method_type, channel_code=channel_code, limit=limit, after_id=after_id, before_id=before_id) pprint(api_response) except xendit.XenditSdkException as e: print("Exception when calling RefundApi->get_all_refunds: %s\n" % e) @@ -182,7 +179,17 @@ except xendit.XenditSdkException as e: ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **for_user_id** | **str**| | [optional] + **payment_request_id** | **str**| | [optional] + **invoice_id** | **str**| | [optional] + **payment_method_type** | **str**| | [optional] + **channel_code** | **str**| | [optional] + **limit** | **float**| | [optional] + **after_id** | **str**| | [optional] + **before_id** | **str**| | [optional] ### Return type @@ -198,8 +205,8 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_refund** -> Refund get_refund(refund_id) +# **cancel_refund** +> Refund cancel_refund(refund_id) @@ -210,8 +217,11 @@ This endpoint does not need any parameter. import time import xendit from xendit.apis import RefundApi +from xendit.refund.model.create_refund404_response import CreateRefund404Response +from xendit.refund.model.create_refund403_response import CreateRefund403Response from xendit.refund.model.refund import Refund -from xendit.refund.model.create_refund_default_response import CreateRefundDefaultResponse +from xendit.refund.model.create_refund400_response import CreateRefund400Response +from xendit.refund.model.get_all_refunds_default_response import GetAllRefundsDefaultResponse from pprint import pprint # See configuration.py for a list of all supported configuration parameters. @@ -226,18 +236,18 @@ refund_id = "rfd-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | # example passing only required values which don't have defaults set try: - api_response = api_instance.get_refund(refund_id) + api_response = api_instance.cancel_refund(refund_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling RefundApi->get_refund: %s\n" % e) + print("Exception when calling RefundApi->cancel_refund: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_refund(refund_id, idempotency_key=idempotency_key) + api_response = api_instance.cancel_refund(refund_id, idempotency_key=idempotency_key, for_user_id=for_user_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling RefundApi->get_refund: %s\n" % e) + print("Exception when calling RefundApi->cancel_refund: %s\n" % e) ``` @@ -247,6 +257,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **refund_id** | **str**| | **idempotency_key** | **str**| | [optional] + **for_user_id** | **str**| | [optional] ### Return type @@ -258,6 +269,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad request | - | +**403** | Forbidden due to permissions | - | +**404** | Data not found | - | **0** | Internal server error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/RefundList.md b/docs/RefundList.md index a88b3c86..040244a6 100644 --- a/docs/RefundList.md +++ b/docs/RefundList.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[Refund]**](Refund.md) | | -**has_more** | **bool** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **data** | [**[Refund]**](Refund.md) | | | +| **has_more** | **bool** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ResponseDataNotFound.md b/docs/ResponseDataNotFound.md index 92836a5e..6d257dde 100644 --- a/docs/ResponseDataNotFound.md +++ b/docs/ResponseDataNotFound.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] -**message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] | +| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RetailOutlet.md b/docs/RetailOutlet.md index eb0db599..db303434 100644 --- a/docs/RetailOutlet.md +++ b/docs/RetailOutlet.md @@ -3,12 +3,13 @@ An object representing retail outlet details for invoices. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**retail_outlet_name** | [**RetailOutletName**](RetailOutletName.md) | | -**payment_code** | **str** | The payment code. | [optional] -**transfer_amount** | **float** | The transfer amount. | [optional] -**merchant_name** | **str** | The name of the merchant. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **retail_outlet_name** | [**RetailOutletName**](RetailOutletName.md) | | | +| **payment_code** | **str** | The payment code. | [optional] | +| **transfer_amount** | **float** | The transfer amount. | [optional] | +| **merchant_name** | **str** | The name of the merchant. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RetailOutletName.md b/docs/RetailOutletName.md index 36bb39ac..73b80f46 100644 --- a/docs/RetailOutletName.md +++ b/docs/RetailOutletName.md @@ -3,9 +3,11 @@ Representing the available retail outlet channels used for invoice-related transactions. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Representing the available retail outlet channels used for invoice-related transactions. | must be one of ["ALFAMART", "INDOMARET", "7ELEVEN", "CEBUANA", "DP_ECPAY_LOAN", "DP_MLHUILLIER", "DP_PALAWAN", "DP_ECPAY_SCHOOL", "LBC", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Representing the available retail outlet channels used for invoice-related transactions. | must be one of ["ALFAMART", "INDOMARET", "7ELEVEN", "CEBUANA", "DP_ECPAY_LOAN", "DP_MLHUILLIER", "DP_PALAWAN", "DP_ECPAY_SCHOOL", "LBC", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ServerError.md b/docs/ServerError.md index 1f4c7ef4..9721a284 100644 --- a/docs/ServerError.md +++ b/docs/ServerError.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **str** | | -**error_code** | **str** | | defaults to "SERVER_ERROR" +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **message** | **str** | | | +| **error_code** | **str** | | defaults to "SERVER_ERROR" | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SimulatePaymentRequest.md b/docs/SimulatePaymentRequest.md index 61ba5ec6..b8eb5752 100644 --- a/docs/SimulatePaymentRequest.md +++ b/docs/SimulatePaymentRequest.md @@ -2,9 +2,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **float** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **amount** | **float** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TokenizedCardInformation.md b/docs/TokenizedCardInformation.md index 67f25101..3c1ce69f 100644 --- a/docs/TokenizedCardInformation.md +++ b/docs/TokenizedCardInformation.md @@ -3,18 +3,19 @@ Tokenized Card Information ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token_id** | **str** | | -**masked_card_number** | **str** | 1st 6 and last 4 digits of the card | -**expiry_month** | **str** | Card expiry month in MM format | -**expiry_year** | **str** | Card expiry month in YY format | -**fingerprint** | **str** | Xendit-generated identifier for the unique card number. Multiple payment method objects can be created for the same account - e.g. if the user first creates a one-time payment request, and then later on creates a multiple-use payment method using the same account. The fingerprint helps to identify the unique account being used. | -**type** | **str** | Whether the card is a credit or debit card | -**network** | **str** | Card network - VISA, MASTERCARD, JCB, AMEX, DISCOVER, BCA | -**country** | **str** | Country where the card was issued ISO 3166-1 Alpha-2 | -**issuer** | **str** | Issuer of the card, most often an issuing bank For example, “BCA”, “MANDIRI” | -**cardholder_name** | **str, none_type** | Cardholder name is optional but recommended for 3DS 2 / AVS verification | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **token_id** | **str** | | | +| **masked_card_number** | **str** | 1st 6 and last 4 digits of the card | | +| **expiry_month** | **str** | Card expiry month in MM format | | +| **expiry_year** | **str** | Card expiry month in YY format | | +| **fingerprint** | **str** | Xendit-generated identifier for the unique card number. Multiple payment method objects can be created for the same account - e.g. if the user first creates a one-time payment request, and then later on creates a multiple-use payment method using the same account. The fingerprint helps to identify the unique account being used. | | +| **type** | **str** | Whether the card is a credit or debit card | | +| **network** | **str** | Card network - VISA, MASTERCARD, JCB, AMEX, DISCOVER, BCA | | +| **country** | **str** | Country where the card was issued ISO 3166-1 Alpha-2 | | +| **issuer** | **str** | Issuer of the card, most often an issuing bank For example, “BCA”, “MANDIRI” | | +| **cardholder_name** | **str, none_type** | Cardholder name is optional but recommended for 3DS 2 / AVS verification | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TransactionApi.md b/docs/TransactionApi.md index 63e6106d..b7d887e4 100644 --- a/docs/TransactionApi.md +++ b/docs/TransactionApi.md @@ -4,16 +4,16 @@ All URIs are relative to *https://api.xendit.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_all_transactions**](TransactionApi.md#get_all_transactions) | **GET** /transactions | Get a list of transactions [**get_transaction_by_id**](TransactionApi.md#get_transaction_by_id) | **GET** /transactions/{id} | Get a transaction based on its id +[**get_all_transactions**](TransactionApi.md#get_all_transactions) | **GET** /transactions | Get a list of transactions -# **get_all_transactions** -> TransactionsResponse get_all_transactions() +# **get_transaction_by_id** +> TransactionResponse get_transaction_by_id(id) -Get a list of transactions +Get a transaction based on its id -Get a list of all transactions based on filter and search parameters. +Get single specific transaction by transaction id. ### Example @@ -22,14 +22,9 @@ Get a list of all transactions based on filter and search parameters. import time import xendit from xendit.apis import TransactionApi -from xendit.balance_and_transaction.model.transaction_statuses import TransactionStatuses +from xendit.balance_and_transaction.model.transaction_response import TransactionResponse from xendit.balance_and_transaction.model.server_error import ServerError -from xendit.balance_and_transaction.model.transaction_types import TransactionTypes -from xendit.balance_and_transaction.model.date_range_filter import DateRangeFilter -from xendit.balance_and_transaction.model.channels_categories import ChannelsCategories -from xendit.balance_and_transaction.model.transactions_response import TransactionsResponse from xendit.balance_and_transaction.model.validation_error import ValidationError -from xendit.balance_and_transaction.model.currency import Currency from pprint import pprint # See configuration.py for a list of all supported configuration parameters. @@ -40,15 +35,24 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = TransactionApi(api_client) +id = TransactionId("txn_438e4b61-7c4c-4dbb-bbba-94a896bff333") # TransactionId | + +# example passing only required values which don't have defaults set +try: + # Get a transaction based on its id + api_response = api_instance.get_transaction_by_id(id) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling TransactionApi->get_transaction_by_id: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - # Get a list of transactions - api_response = api_instance.get_all_transactions(for_user_id=for_user_id, types=types, statuses=statuses, channel_categories=channel_categories, reference_id=reference_id, product_id=product_id, account_identifier=account_identifier, amount=amount, currency=currency, created=created, updated=updated, limit=limit, after_id=after_id, before_id=before_id) + # Get a transaction based on its id + api_response = api_instance.get_transaction_by_id(id, for_user_id=for_user_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling TransactionApi->get_all_transactions: %s\n" % e) + print("Exception when calling TransactionApi->get_transaction_by_id: %s\n" % e) ``` @@ -56,42 +60,30 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **id** | **TransactionId**| | **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information | [optional] - **types** | [**[TransactionTypes]**](TransactionTypes.md)| Transaction types that will be included in the result. Default is to include all transaction types | [optional] - **statuses** | [**[TransactionStatuses]**](TransactionStatuses.md)| Status of the transaction. Default is to include all status. | [optional] - **channel_categories** | [**[ChannelsCategories]**](ChannelsCategories.md)| Payment channels in which the transaction is carried out. Default is to include all channels. | [optional] - **reference_id** | **str**| To filter the result for transactions with matching reference given (case sensitive) | [optional] - **product_id** | **str**| To filter the result for transactions with matching product_id (a.k.a payment_id) given (case sensitive) | [optional] - **account_identifier** | **str**| Account identifier of transaction. The format will be different from each channel. For example, on `BANK` channel it will be account number and on `CARD` it will be masked card number. | [optional] - **amount** | **float**| Specific transaction amount to search for | [optional] - **currency** | **Currency**| | [optional] - **created** | **DateRangeFilter**| Filter time of transaction by created date. If not specified will list all dates. | [optional] - **updated** | **DateRangeFilter**| Filter time of transaction by updated date. If not specified will list all dates. | [optional] - **limit** | **float**| number of items in the result per page. Another name for \"results_per_page\" | [optional] if omitted the server will use the default value of 10 - **after_id** | **TransactionId**| | [optional] - **before_id** | **TransactionId**| | [optional] ### Return type -[**TransactionsResponse**](TransactionsResponse.md) +[**TransactionResponse**](TransactionResponse.md) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | List of transaction object | - | +**200** | OK | - | **400** | invalid input, object invalid | - | **0** | Errors | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_transaction_by_id** -> TransactionResponse get_transaction_by_id(id) +# **get_all_transactions** +> TransactionsResponse get_all_transactions() -Get a transaction based on its id +Get a list of transactions -Get single specific transaction by transaction id. +Get a list of all transactions based on filter and search parameters. ### Example @@ -100,9 +92,14 @@ Get single specific transaction by transaction id. import time import xendit from xendit.apis import TransactionApi -from xendit.balance_and_transaction.model.transaction_response import TransactionResponse +from xendit.balance_and_transaction.model.transaction_statuses import TransactionStatuses from xendit.balance_and_transaction.model.server_error import ServerError +from xendit.balance_and_transaction.model.transaction_types import TransactionTypes +from xendit.balance_and_transaction.model.date_range_filter import DateRangeFilter +from xendit.balance_and_transaction.model.channels_categories import ChannelsCategories +from xendit.balance_and_transaction.model.transactions_response import TransactionsResponse from xendit.balance_and_transaction.model.validation_error import ValidationError +from xendit.balance_and_transaction.model.currency import Currency from pprint import pprint # See configuration.py for a list of all supported configuration parameters. @@ -113,24 +110,15 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = TransactionApi(api_client) -id = TransactionId("txn_438e4b61-7c4c-4dbb-bbba-94a896bff333") # TransactionId | - -# example passing only required values which don't have defaults set -try: - # Get a transaction based on its id - api_response = api_instance.get_transaction_by_id(id) - pprint(api_response) -except xendit.XenditSdkException as e: - print("Exception when calling TransactionApi->get_transaction_by_id: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - # Get a transaction based on its id - api_response = api_instance.get_transaction_by_id(id, for_user_id=for_user_id) + # Get a list of transactions + api_response = api_instance.get_all_transactions(for_user_id=for_user_id, types=types, statuses=statuses, channel_categories=channel_categories, reference_id=reference_id, product_id=product_id, account_identifier=account_identifier, amount=amount, currency=currency, created=created, updated=updated, limit=limit, after_id=after_id, before_id=before_id) pprint(api_response) except xendit.XenditSdkException as e: - print("Exception when calling TransactionApi->get_transaction_by_id: %s\n" % e) + print("Exception when calling TransactionApi->get_all_transactions: %s\n" % e) ``` @@ -138,19 +126,31 @@ except xendit.XenditSdkException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **TransactionId**| | **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information | [optional] + **types** | [**[TransactionTypes]**](TransactionTypes.md)| Transaction types that will be included in the result. Default is to include all transaction types | [optional] + **statuses** | [**[TransactionStatuses]**](TransactionStatuses.md)| Status of the transaction. Default is to include all status. | [optional] + **channel_categories** | [**[ChannelsCategories]**](ChannelsCategories.md)| Payment channels in which the transaction is carried out. Default is to include all channels. | [optional] + **reference_id** | **str**| To filter the result for transactions with matching reference given (case sensitive) | [optional] + **product_id** | **str**| To filter the result for transactions with matching product_id (a.k.a payment_id) given (case sensitive) | [optional] + **account_identifier** | **str**| Account identifier of transaction. The format will be different from each channel. For example, on `BANK` channel it will be account number and on `CARD` it will be masked card number. | [optional] + **amount** | **float**| Specific transaction amount to search for | [optional] + **currency** | **Currency**| | [optional] + **created** | **DateRangeFilter**| Filter time of transaction by created date. If not specified will list all dates. | [optional] + **updated** | **DateRangeFilter**| Filter time of transaction by updated date. If not specified will list all dates. | [optional] + **limit** | **float**| number of items in the result per page. Another name for \"results_per_page\" | [optional] if omitted the server will use the default value of 10 + **after_id** | **TransactionId**| | [optional] + **before_id** | **TransactionId**| | [optional] ### Return type -[**TransactionResponse**](TransactionResponse.md) +[**TransactionsResponse**](TransactionsResponse.md) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | +**200** | List of transaction object | - | **400** | invalid input, object invalid | - | **0** | Errors | - | diff --git a/docs/TransactionId.md b/docs/TransactionId.md index c2663ad5..4faa316b 100644 --- a/docs/TransactionId.md +++ b/docs/TransactionId.md @@ -3,9 +3,10 @@ The unique id of a transaction. It will have `txn_` as prefix ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | The unique id of a transaction. It will have `txn_` as prefix | +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | The unique id of a transaction. It will have `txn_` as prefix | | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TransactionResponse.md b/docs/TransactionResponse.md index 7de4a5e0..7e534041 100644 --- a/docs/TransactionResponse.md +++ b/docs/TransactionResponse.md @@ -2,25 +2,26 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | [**TransactionId**](TransactionId.md) | | -**product_id** | **str** | The product_id of the transaction. Product id will have a different prefix for each product. You can use this id to match the transaction from this API to each product API. | -**type** | [**TransactionResponseType**](TransactionResponseType.md) | | -**status** | [**TransactionStatuses**](TransactionStatuses.md) | | -**channel_category** | [**ChannelsCategories**](ChannelsCategories.md) | | -**channel_code** | **str, none_type** | The channel of the transaction that is used. See [channel codes](https://docs.xendit.co/xendisburse/channel-codes) for the list of available per channel categories. | -**account_identifier** | **str, none_type** | Account identifier of transaction. The format will be different from each channel. | -**reference_id** | **str** | customer supplied reference/external_id | -**currency** | [**Currency**](Currency.md) | | -**amount** | **float** | The transaction amount. The number of decimal places will be different for each currency according to ISO 4217. | -**cashflow** | **str** | Representing whether the transaction is money in or money out For transfer, the transfer out side it will shows up as money out and on transfer in side in will shows up as money-in. Available values are `MONEY_IN` for money in and `MONEY_OUT` for money out. | -**business_id** | **str** | The id of business where this transaction belong to | -**fee** | [**FeeResponse**](FeeResponse.md) | | -**created** | **datetime** | Transaction created timestamp (UTC+0) | -**updated** | **datetime** | Transaction updated timestamp (UTC+0) | -**settlement_status** | **str, none_type** | The settlement status of the transaction. `PENDING` - Transaction amount has not been settled to merchant's balance. `SETTLED` - Transaction has been settled to merchant's balance | [optional] -**estimated_settlement_time** | **datetime, none_type** | Estimated settlement time will only apply to money-in transactions. For money-out transaction, the value will be `NULL`. Estimated settlement time in which transaction amount will be settled to merchant's balance. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | [**TransactionId**](TransactionId.md) | | | +| **product_id** | **str** | The product_id of the transaction. Product id will have a different prefix for each product. You can use this id to match the transaction from this API to each product API. | | +| **type** | [**TransactionResponseType**](TransactionResponseType.md) | | | +| **status** | [**TransactionStatuses**](TransactionStatuses.md) | | | +| **channel_category** | [**ChannelsCategories**](ChannelsCategories.md) | | | +| **channel_code** | **str, none_type** | The channel of the transaction that is used. See [channel codes](https://docs.xendit.co/xendisburse/channel-codes) for the list of available per channel categories. | | +| **account_identifier** | **str, none_type** | Account identifier of transaction. The format will be different from each channel. | | +| **reference_id** | **str** | customer supplied reference/external_id | | +| **currency** | [**Currency**](Currency.md) | | | +| **amount** | **float** | The transaction amount. The number of decimal places will be different for each currency according to ISO 4217. | | +| **cashflow** | **str** | Representing whether the transaction is money in or money out For transfer, the transfer out side it will shows up as money out and on transfer in side in will shows up as money-in. Available values are `MONEY_IN` for money in and `MONEY_OUT` for money out. | | +| **business_id** | **str** | The id of business where this transaction belong to | | +| **fee** | [**FeeResponse**](FeeResponse.md) | | | +| **created** | **datetime** | Transaction created timestamp (UTC+0) | | +| **updated** | **datetime** | Transaction updated timestamp (UTC+0) | | +| **settlement_status** | **str, none_type** | The settlement status of the transaction. `PENDING` - Transaction amount has not been settled to merchant's balance. `SETTLED` - Transaction has been settled to merchant's balance | [optional] | +| **estimated_settlement_time** | **datetime, none_type** | Estimated settlement time will only apply to money-in transactions. For money-out transaction, the value will be `NULL`. Estimated settlement time in which transaction amount will be settled to merchant's balance. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TransactionResponseType.md b/docs/TransactionResponseType.md index ac6e4a2e..5d6aee7f 100644 --- a/docs/TransactionResponseType.md +++ b/docs/TransactionResponseType.md @@ -3,8 +3,9 @@ The type of the transactions. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TransactionStatuses.md b/docs/TransactionStatuses.md index 8225eaa9..f7289fad 100644 --- a/docs/TransactionStatuses.md +++ b/docs/TransactionStatuses.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["SUCCESS", "PENDING", "FAILED", "REVERSED", "VOIDED", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["SUCCESS", "PENDING", "FAILED", "REVERSED", "VOIDED", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TransactionTypes.md b/docs/TransactionTypes.md index 6831f545..a842fd08 100644 --- a/docs/TransactionTypes.md +++ b/docs/TransactionTypes.md @@ -2,9 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | must be one of ["BATCH_DISBURSEMENT", "DISBURSEMENT", "PAYMENT", "REMITTANCE", "REMITTANCE_PAYOUT", "REMITTANCE_COLLECTION", "TRANSFER", "PLATFORM_FEE", "REFUND", "CASHBACK", "TOPUP", "WITHDRAWAL", "OTHER", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | | must be one of ["BATCH_DISBURSEMENT", "DISBURSEMENT", "PAYMENT", "REMITTANCE", "REMITTANCE_PAYOUT", "REMITTANCE_COLLECTION", "TRANSFER", "PLATFORM_FEE", "REFUND", "CASHBACK", "TOPUP", "WITHDRAWAL", "OTHER", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TransactionsResponse.md b/docs/TransactionsResponse.md index 6f942a9d..05ff66b8 100644 --- a/docs/TransactionsResponse.md +++ b/docs/TransactionsResponse.md @@ -3,11 +3,12 @@ Returns an array of Transaction Objects. Returns empty array when there is no result. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**has_more** | **bool** | Indicates whether there are more items to be queried with `after_id` of the last item from the current result. Use the `links` to follow to the next result. | -**data** | [**[TransactionResponse]**](TransactionResponse.md) | | -**links** | [**[LinkItem]**](LinkItem.md) | The links to the next page based on LinkItem if there is next result. | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **has_more** | **bool** | Indicates whether there are more items to be queried with `after_id` of the last item from the current result. Use the `links` to follow to the next result. | | +| **data** | [**[TransactionResponse]**](TransactionResponse.md) | | | +| **links** | [**[LinkItem]**](LinkItem.md) | The links to the next page based on LinkItem if there is next result. | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UnauthorizedError.md b/docs/UnauthorizedError.md index 9bd15271..658280d8 100644 --- a/docs/UnauthorizedError.md +++ b/docs/UnauthorizedError.md @@ -3,10 +3,11 @@ An error object used to indicate unauthorized access to an invoice-related resource. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **str** | A human-readable error message providing additional context about the unauthorized access. | -**error_code** | **str** | The specific error code associated with the unauthorized access. | defaults to "INVALID_API_KEY" +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **message** | **str** | A human-readable error message providing additional context about the unauthorized access. | | +| **error_code** | **str** | The specific error code associated with the unauthorized access. | defaults to "INVALID_API_KEY" | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UpdateCustomer400Response.md b/docs/UpdateCustomer400Response.md index a9ca7dee..91fd3652 100644 --- a/docs/UpdateCustomer400Response.md +++ b/docs/UpdateCustomer400Response.md @@ -2,11 +2,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | -**message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | -**errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | | +| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | +| **errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UpdateCustomer400ResponseAllOf.md b/docs/UpdateCustomer400ResponseAllOf.md index 80350536..7a2bd35e 100644 --- a/docs/UpdateCustomer400ResponseAllOf.md +++ b/docs/UpdateCustomer400ResponseAllOf.md @@ -2,10 +2,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error_code** | **str** | | [optional] -**message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **error_code** | **str** | | [optional] | +| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ValidationError.md b/docs/ValidationError.md index c0f67a44..ddc98ffc 100644 --- a/docs/ValidationError.md +++ b/docs/ValidationError.md @@ -2,12 +2,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status_code** | **float** | | -**error** | **str** | | -**message** | **str** | | -**validation** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **status_code** | **float** | | | +| **error** | **str** | | | +| **message** | **str** | | | +| **validation** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualAccount.md b/docs/VirtualAccount.md index 9a9ca892..2a33e7b9 100644 --- a/docs/VirtualAccount.md +++ b/docs/VirtualAccount.md @@ -3,16 +3,17 @@ Virtual Account Payment Method Details ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | | -**channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | | -**min_amount** | **float, none_type** | | [optional] -**max_amount** | **float, none_type** | | [optional] -**amount** | **float, none_type** | | [optional] -**currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | [optional] -**alternative_display_types** | **[str]** | Alternative display requested for the virtual account | [optional] -**alternative_displays** | [**[VirtualAccountAlternativeDisplay]**](VirtualAccountAlternativeDisplay.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | | | +| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | | | +| **min_amount** | **float, none_type** | | [optional] | +| **max_amount** | **float, none_type** | | [optional] | +| **amount** | **float, none_type** | | [optional] | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | [optional] | +| **alternative_display_types** | **[str]** | Alternative display requested for the virtual account | [optional] | +| **alternative_displays** | [**[VirtualAccountAlternativeDisplay]**](VirtualAccountAlternativeDisplay.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualAccountAllOf.md b/docs/VirtualAccountAllOf.md index 514161b6..54c03b7f 100644 --- a/docs/VirtualAccountAllOf.md +++ b/docs/VirtualAccountAllOf.md @@ -2,9 +2,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**alternative_displays** | [**[VirtualAccountAlternativeDisplay]**](VirtualAccountAlternativeDisplay.md) | | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **alternative_displays** | [**[VirtualAccountAlternativeDisplay]**](VirtualAccountAlternativeDisplay.md) | | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualAccountAlternativeDisplay.md b/docs/VirtualAccountAlternativeDisplay.md index 7aa466a4..0ef294e2 100644 --- a/docs/VirtualAccountAlternativeDisplay.md +++ b/docs/VirtualAccountAlternativeDisplay.md @@ -3,10 +3,11 @@ Alternative Display Object ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | Type of the alternative display | [optional] [readonly] if omitted the server will use the default value of "QR_STRING" -**data** | **str** | Data payload of the given alternative display | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **type** | **str** | Type of the alternative display | [optional] [readonly] if omitted the server will use the default value of "QR_STRING" | +| **data** | **str** | Data payload of the given alternative display | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualAccountChannelCode.md b/docs/VirtualAccountChannelCode.md index df5d7274..a4dd4168 100644 --- a/docs/VirtualAccountChannelCode.md +++ b/docs/VirtualAccountChannelCode.md @@ -3,9 +3,11 @@ Virtual Account Channel Code ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Virtual Account Channel Code | must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", ] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **value** | **str** | Virtual Account Channel Code | must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "UNKNOWN_ENUM_VALUE"] | + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualAccountChannelProperties.md b/docs/VirtualAccountChannelProperties.md index 9c540c0e..a8bfa7ae 100644 --- a/docs/VirtualAccountChannelProperties.md +++ b/docs/VirtualAccountChannelProperties.md @@ -3,12 +3,13 @@ Virtual Account Channel Properties ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**customer_name** | **str** | Name of customer. | -**virtual_account_number** | **str** | You can assign specific Virtual Account number using this parameter. If you do not send one, one will be picked at random. Make sure the number you specify is within your Virtual Account range. | [optional] -**expires_at** | **datetime** | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | [optional] -**suggested_amount** | **float** | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **customer_name** | **str** | Name of customer. | | +| **virtual_account_number** | **str** | You can assign specific Virtual Account number using this parameter. If you do not send one, one will be picked at random. Make sure the number you specify is within your Virtual Account range. | [optional] | +| **expires_at** | **datetime** | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | [optional] | +| **suggested_amount** | **float** | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualAccountChannelPropertiesPatch.md b/docs/VirtualAccountChannelPropertiesPatch.md index 7e1d6671..850f4505 100644 --- a/docs/VirtualAccountChannelPropertiesPatch.md +++ b/docs/VirtualAccountChannelPropertiesPatch.md @@ -3,10 +3,11 @@ Virtual Account Channel Properties ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expires_at** | **datetime** | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | [optional] -**suggested_amount** | **float** | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **expires_at** | **datetime** | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | [optional] | +| **suggested_amount** | **float** | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualAccountParameters.md b/docs/VirtualAccountParameters.md index 5527659e..096a3611 100644 --- a/docs/VirtualAccountParameters.md +++ b/docs/VirtualAccountParameters.md @@ -2,15 +2,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | | -**channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | | -**min_amount** | **float, none_type** | | [optional] -**max_amount** | **float, none_type** | | [optional] -**amount** | **float, none_type** | | [optional] -**currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | [optional] -**alternative_display_types** | **[str]** | Alternative display requested for the virtual account | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | | | +| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | | | +| **min_amount** | **float, none_type** | | [optional] | +| **max_amount** | **float, none_type** | | [optional] | +| **amount** | **float, none_type** | | [optional] | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | [optional] | +| **alternative_display_types** | **[str]** | Alternative display requested for the virtual account | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualAccountUpdateParameters.md b/docs/VirtualAccountUpdateParameters.md index 077bef01..efc9a879 100644 --- a/docs/VirtualAccountUpdateParameters.md +++ b/docs/VirtualAccountUpdateParameters.md @@ -2,13 +2,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **float, none_type** | | [optional] -**min_amount** | **float, none_type** | | [optional] -**max_amount** | **float, none_type** | | [optional] -**channel_properties** | [**VirtualAccountChannelPropertiesPatch**](VirtualAccountChannelPropertiesPatch.md) | | [optional] -**alternative_display_types** | **[str]** | For payments in Vietnam only, alternative display requested for the virtual account | [optional] +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **amount** | **float, none_type** | | [optional] | +| **min_amount** | **float, none_type** | | [optional] | +| **max_amount** | **float, none_type** | | [optional] | +| **channel_properties** | [**VirtualAccountChannelPropertiesPatch**](VirtualAccountChannelPropertiesPatch.md) | | [optional] | +| **alternative_display_types** | **[str]** | For payments in Vietnam only, alternative display requested for the virtual account | [optional] | + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/setup.py b/setup.py index b1599fc5..060570db 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "xendit" -VERSION = "3.3.0" +VERSION = "3.4.0" # To install the library, run the following # # python setup.py install diff --git a/test/test_billing_information.py b/test/test_billing_information.py index 61455e8f..8eefb474 100644 --- a/test/test_billing_information.py +++ b/test/test_billing_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_card.py b/test/test_card.py index 09810a22..202b73a4 100644 --- a/test/test_card.py +++ b/test/test_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_card_channel_properties.py b/test/test_card_channel_properties.py index 124e5dec..c4cd53ce 100644 --- a/test/test_card_channel_properties.py +++ b/test/test_card_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_card_parameters.py b/test/test_card_parameters.py index f9bb1ea3..3d5bf2e4 100644 --- a/test/test_card_parameters.py +++ b/test/test_card_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_card_parameters_card_information.py b/test/test_card_parameters_card_information.py index 51c7864e..ec8042c3 100644 --- a/test/test_card_parameters_card_information.py +++ b/test/test_card_parameters_card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_card_verification_results.py b/test/test_card_verification_results.py index 7344d3b3..db032502 100644 --- a/test/test_card_verification_results.py +++ b/test/test_card_verification_results.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_card_verification_results_three_d_secure.py b/test/test_card_verification_results_three_d_secure.py index 0fe79994..d0c429e6 100644 --- a/test/test_card_verification_results_three_d_secure.py +++ b/test/test_card_verification_results_three_d_secure.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_create_payment_method409_response.py b/test/test_create_payment_method409_response.py index 5f200859..2013789a 100644 --- a/test/test_create_payment_method409_response.py +++ b/test/test_create_payment_method409_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_create_payment_method503_response.py b/test/test_create_payment_method503_response.py index 49e9a0ca..ee98515c 100644 --- a/test/test_create_payment_method503_response.py +++ b/test/test_create_payment_method503_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_create_refund.py b/test/test_create_refund.py index 05d055b3..98f20231 100644 --- a/test/test_create_refund.py +++ b/test/test_create_refund.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/test/test_create_refund400_response.py b/test/test_create_refund400_response.py index 9f50ad59..1ccce521 100644 --- a/test/test_create_refund400_response.py +++ b/test/test_create_refund400_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/test/test_create_refund403_response.py b/test/test_create_refund403_response.py index 1f2c111d..98fbd817 100644 --- a/test/test_create_refund403_response.py +++ b/test/test_create_refund403_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/test/test_create_refund404_response.py b/test/test_create_refund404_response.py index 8d42efcc..963fe82a 100644 --- a/test/test_create_refund404_response.py +++ b/test/test_create_refund404_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/test/test_create_refund409_response.py b/test/test_create_refund409_response.py index 3699c8eb..9a9112c2 100644 --- a/test/test_create_refund409_response.py +++ b/test/test_create_refund409_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/test/test_create_refund503_response.py b/test/test_create_refund503_response.py index 9a528530..ffdfa6b7 100644 --- a/test/test_create_refund503_response.py +++ b/test/test_create_refund503_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/test/test_create_refund_default_response.py b/test/test_create_refund_default_response.py deleted file mode 100644 index 84c65a80..00000000 --- a/test/test_create_refund_default_response.py +++ /dev/null @@ -1,30 +0,0 @@ -""" - The version of the XENDIT API: 1.2.3 -""" - - -import sys -import unittest - -import xendit -from xendit.refund.model.create_refund_default_response import CreateRefundDefaultResponse - - -class TestCreateRefundDefaultResponse(unittest.TestCase): - """CreateRefundDefaultResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCreateRefundDefaultResponse(self): - """Test CreateRefundDefaultResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = CreateRefundDefaultResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_direct_debit_all_of.py b/test/test_direct_debit_all_of.py index eb52005d..e6a3a4cf 100644 --- a/test/test_direct_debit_all_of.py +++ b/test/test_direct_debit_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_direct_debit_bank_account.py b/test/test_direct_debit_bank_account.py index 75e8fd3a..718a94b9 100644 --- a/test/test_direct_debit_bank_account.py +++ b/test/test_direct_debit_bank_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_direct_debit_channel_code.py b/test/test_direct_debit_channel_code.py index 57c9490d..76230407 100644 --- a/test/test_direct_debit_channel_code.py +++ b/test/test_direct_debit_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_direct_debit_channel_properties.py b/test/test_direct_debit_channel_properties.py index 22f5bfa4..a3d5964b 100644 --- a/test/test_direct_debit_channel_properties.py +++ b/test/test_direct_debit_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_direct_debit_debit_card.py b/test/test_direct_debit_debit_card.py index 4e10c4ca..afa9318b 100644 --- a/test/test_direct_debit_debit_card.py +++ b/test/test_direct_debit_debit_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_direct_debit_parameters.py b/test/test_direct_debit_parameters.py index 8b8d3159..931e4c51 100644 --- a/test/test_direct_debit_parameters.py +++ b/test/test_direct_debit_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_e_wallet.py b/test/test_e_wallet.py index 6bddb5cd..eeea99aa 100644 --- a/test/test_e_wallet.py +++ b/test/test_e_wallet.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_e_wallet_account.py b/test/test_e_wallet_account.py index 0b992f4a..3bd7aa7d 100644 --- a/test/test_e_wallet_account.py +++ b/test/test_e_wallet_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_e_wallet_channel_code.py b/test/test_e_wallet_channel_code.py index b6837377..c2fc01c1 100644 --- a/test/test_e_wallet_channel_code.py +++ b/test/test_e_wallet_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_e_wallet_channel_properties.py b/test/test_e_wallet_channel_properties.py index 723c03f1..de46eaf9 100644 --- a/test/test_e_wallet_channel_properties.py +++ b/test/test_e_wallet_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_e_wallet_parameters.py b/test/test_e_wallet_parameters.py index 874dd600..4dc5fcbd 100644 --- a/test/test_e_wallet_parameters.py +++ b/test/test_e_wallet_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_get_all_payment_methods400_response.py b/test/test_get_all_payment_methods400_response.py index 51ac7865..df296b1a 100644 --- a/test/test_get_all_payment_methods400_response.py +++ b/test/test_get_all_payment_methods400_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_get_all_payment_methods403_response.py b/test/test_get_all_payment_methods403_response.py index 1a90795f..118bbf35 100644 --- a/test/test_get_all_payment_methods403_response.py +++ b/test/test_get_all_payment_methods403_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_get_all_payment_methods404_response.py b/test/test_get_all_payment_methods404_response.py index dedd0587..c891f2bc 100644 --- a/test/test_get_all_payment_methods404_response.py +++ b/test/test_get_all_payment_methods404_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_get_all_payment_methods_default_response.py b/test/test_get_all_payment_methods_default_response.py index bef46fb8..a2e9932a 100644 --- a/test/test_get_all_payment_methods_default_response.py +++ b/test/test_get_all_payment_methods_default_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_get_all_refunds_default_response.py b/test/test_get_all_refunds_default_response.py new file mode 100644 index 00000000..e574aa88 --- /dev/null +++ b/test/test_get_all_refunds_default_response.py @@ -0,0 +1,30 @@ +""" + The version of the XENDIT API: 1.3.3 +""" + + +import sys +import unittest + +import xendit +from xendit.refund.model.get_all_refunds_default_response import GetAllRefundsDefaultResponse + + +class TestGetAllRefundsDefaultResponse(unittest.TestCase): + """GetAllRefundsDefaultResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetAllRefundsDefaultResponse(self): + """Test GetAllRefundsDefaultResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = GetAllRefundsDefaultResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_invoice_api.py b/test/test_invoice_api.py index e609608e..e4412e3e 100644 --- a/test/test_invoice_api.py +++ b/test/test_invoice_api.py @@ -25,13 +25,6 @@ def test_create_invoice(self): """ pass - def test_expire_invoice(self): - """Test case for expire_invoice - - Manually expire an invoice # noqa: E501 - """ - pass - def test_get_invoice_by_id(self): """Test case for get_invoice_by_id @@ -46,6 +39,13 @@ def test_get_invoices(self): """ pass + def test_expire_invoice(self): + """Test case for expire_invoice + + Manually expire an invoice # noqa: E501 + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/test/test_over_the_counter.py b/test/test_over_the_counter.py index 0c750af9..7009a2ba 100644 --- a/test/test_over_the_counter.py +++ b/test/test_over_the_counter.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_over_the_counter_channel_code.py b/test/test_over_the_counter_channel_code.py index 87510e92..64fa3a33 100644 --- a/test/test_over_the_counter_channel_code.py +++ b/test/test_over_the_counter_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_over_the_counter_channel_properties.py b/test/test_over_the_counter_channel_properties.py index 08a55bcf..1b404610 100644 --- a/test/test_over_the_counter_channel_properties.py +++ b/test/test_over_the_counter_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_over_the_counter_channel_properties_update.py b/test/test_over_the_counter_channel_properties_update.py index f79b2392..59cb6c17 100644 --- a/test/test_over_the_counter_channel_properties_update.py +++ b/test/test_over_the_counter_channel_properties_update.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_over_the_counter_parameters.py b/test/test_over_the_counter_parameters.py index d549723d..8c603722 100644 --- a/test/test_over_the_counter_parameters.py +++ b/test/test_over_the_counter_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_over_the_counter_update_parameters.py b/test/test_over_the_counter_update_parameters.py index ce1754d7..ed788ffa 100644 --- a/test/test_over_the_counter_update_parameters.py +++ b/test/test_over_the_counter_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_payment_method.py b/test/test_payment_method.py index 2d2e08e9..feb3e14e 100644 --- a/test/test_payment_method.py +++ b/test/test_payment_method.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_payment_method_action.py b/test/test_payment_method_action.py index 1bbc6b86..52cd3fbb 100644 --- a/test/test_payment_method_action.py +++ b/test/test_payment_method_action.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_payment_method_api.py b/test/test_payment_method_api.py index b4441ef7..0cae02fc 100644 --- a/test/test_payment_method_api.py +++ b/test/test_payment_method_api.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ @@ -18,13 +18,6 @@ def setUp(self): def tearDown(self): pass - def test_auth_payment_method(self): - """Test case for auth_payment_method - - Validate a payment method's linking OTP # noqa: E501 - """ - pass - def test_create_payment_method(self): """Test case for create_payment_method @@ -32,20 +25,6 @@ def test_create_payment_method(self): """ pass - def test_expire_payment_method(self): - """Test case for expire_payment_method - - Expires a payment method # noqa: E501 - """ - pass - - def test_get_all_payment_methods(self): - """Test case for get_all_payment_methods - - Get all payment methods by filters # noqa: E501 - """ - pass - def test_get_payment_method_by_id(self): """Test case for get_payment_method_by_id @@ -67,6 +46,27 @@ def test_patch_payment_method(self): """ pass + def test_get_all_payment_methods(self): + """Test case for get_all_payment_methods + + Get all payment methods by filters # noqa: E501 + """ + pass + + def test_expire_payment_method(self): + """Test case for expire_payment_method + + Expires a payment method # noqa: E501 + """ + pass + + def test_auth_payment_method(self): + """Test case for auth_payment_method + + Validate a payment method's linking OTP # noqa: E501 + """ + pass + def test_simulate_payment(self): """Test case for simulate_payment diff --git a/test/test_payment_method_auth_parameters.py b/test/test_payment_method_auth_parameters.py index cc46f880..cbfccea4 100644 --- a/test/test_payment_method_auth_parameters.py +++ b/test/test_payment_method_auth_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_payment_method_country.py b/test/test_payment_method_country.py index a38b1a03..3be887d8 100644 --- a/test/test_payment_method_country.py +++ b/test/test_payment_method_country.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_payment_method_expire_parameters.py b/test/test_payment_method_expire_parameters.py index 379cc743..319a7a26 100644 --- a/test/test_payment_method_expire_parameters.py +++ b/test/test_payment_method_expire_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_payment_method_list.py b/test/test_payment_method_list.py index b9cc0623..f7803ac5 100644 --- a/test/test_payment_method_list.py +++ b/test/test_payment_method_list.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_payment_method_parameters.py b/test/test_payment_method_parameters.py index 882e4dd3..cbe976fa 100644 --- a/test/test_payment_method_parameters.py +++ b/test/test_payment_method_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_payment_method_reusability.py b/test/test_payment_method_reusability.py index abc179af..5e1207d0 100644 --- a/test/test_payment_method_reusability.py +++ b/test/test_payment_method_reusability.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_payment_method_status.py b/test/test_payment_method_status.py index 883690d5..537b1535 100644 --- a/test/test_payment_method_status.py +++ b/test/test_payment_method_status.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_payment_method_type.py b/test/test_payment_method_type.py index afb25969..678cc140 100644 --- a/test/test_payment_method_type.py +++ b/test/test_payment_method_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_payment_method_update_parameters.py b/test/test_payment_method_update_parameters.py index 7238ea6f..602076b8 100644 --- a/test/test_payment_method_update_parameters.py +++ b/test/test_payment_method_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_payment_request_api.py b/test/test_payment_request_api.py index 2e9c6fa7..bac0710d 100644 --- a/test/test_payment_request_api.py +++ b/test/test_payment_request_api.py @@ -18,24 +18,24 @@ def setUp(self): def tearDown(self): pass - def test_authorize_payment_request(self): - """Test case for authorize_payment_request + def test_create_payment_request(self): + """Test case for create_payment_request - Payment Request Authorize # noqa: E501 + Create Payment Request # noqa: E501 """ pass - def test_capture_payment_request(self): - """Test case for capture_payment_request + def test_get_payment_request_by_id(self): + """Test case for get_payment_request_by_id - Payment Request Capture # noqa: E501 + Get payment request by ID # noqa: E501 """ pass - def test_create_payment_request(self): - """Test case for create_payment_request + def test_get_payment_request_captures(self): + """Test case for get_payment_request_captures - Create Payment Request # noqa: E501 + Get Payment Request Capture # noqa: E501 """ pass @@ -46,17 +46,17 @@ def test_get_all_payment_requests(self): """ pass - def test_get_payment_request_by_id(self): - """Test case for get_payment_request_by_id + def test_capture_payment_request(self): + """Test case for capture_payment_request - Get payment request by ID # noqa: E501 + Payment Request Capture # noqa: E501 """ pass - def test_get_payment_request_captures(self): - """Test case for get_payment_request_captures + def test_authorize_payment_request(self): + """Test case for authorize_payment_request - Get Payment Request Capture # noqa: E501 + Payment Request Authorize # noqa: E501 """ pass diff --git a/test/test_payout_api.py b/test/test_payout_api.py index ea378722..8dbd9219 100644 --- a/test/test_payout_api.py +++ b/test/test_payout_api.py @@ -18,13 +18,6 @@ def setUp(self): def tearDown(self): pass - def test_cancel_payout(self): - """Test case for cancel_payout - - API to cancel requested payouts that have not yet been sent to partner banks and e-wallets. Cancellation is possible if the payout has not been sent out via our partner and when payout status is ACCEPTED. # noqa: E501 - """ - pass - def test_create_payout(self): """Test case for create_payout @@ -53,6 +46,13 @@ def test_get_payouts(self): """ pass + def test_cancel_payout(self): + """Test case for cancel_payout + + API to cancel requested payouts that have not yet been sent to partner banks and e-wallets. Cancellation is possible if the payout has not been sent out via our partner and when payout status is ACCEPTED. # noqa: E501 + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/test/test_qr_code_channel_code.py b/test/test_qr_code_channel_code.py index 6ea191c9..bf010269 100644 --- a/test/test_qr_code_channel_code.py +++ b/test/test_qr_code_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_qr_code_channel_properties.py b/test/test_qr_code_channel_properties.py index 02dbd2e6..754b4dc3 100644 --- a/test/test_qr_code_channel_properties.py +++ b/test/test_qr_code_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_qr_code_parameters.py b/test/test_qr_code_parameters.py index 2eee5bc1..7adf5094 100644 --- a/test/test_qr_code_parameters.py +++ b/test/test_qr_code_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_refund.py b/test/test_refund.py index bdc4719b..ff323285 100644 --- a/test/test_refund.py +++ b/test/test_refund.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/test/test_refund_api.py b/test/test_refund_api.py index 229c209d..160f66fa 100644 --- a/test/test_refund_api.py +++ b/test/test_refund_api.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ @@ -18,14 +18,14 @@ def setUp(self): def tearDown(self): pass - def test_cancel_refund(self): - """Test case for cancel_refund + def test_create_refund(self): + """Test case for create_refund """ pass - def test_create_refund(self): - """Test case for create_refund + def test_get_refund(self): + """Test case for get_refund """ pass @@ -36,8 +36,8 @@ def test_get_all_refunds(self): """ pass - def test_get_refund(self): - """Test case for get_refund + def test_cancel_refund(self): + """Test case for cancel_refund """ pass diff --git a/test/test_refund_list.py b/test/test_refund_list.py index 35039690..3566af1b 100644 --- a/test/test_refund_list.py +++ b/test/test_refund_list.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/test/test_simulate_payment_request.py b/test/test_simulate_payment_request.py index 42d27621..eaed17d6 100644 --- a/test/test_simulate_payment_request.py +++ b/test/test_simulate_payment_request.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_tokenized_card_information.py b/test/test_tokenized_card_information.py index 88978297..43802f5c 100644 --- a/test/test_tokenized_card_information.py +++ b/test/test_tokenized_card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_transaction_api.py b/test/test_transaction_api.py index a1684188..364a9a29 100644 --- a/test/test_transaction_api.py +++ b/test/test_transaction_api.py @@ -18,17 +18,17 @@ def setUp(self): def tearDown(self): pass - def test_get_all_transactions(self): - """Test case for get_all_transactions + def test_get_transaction_by_id(self): + """Test case for get_transaction_by_id - Get a list of transactions # noqa: E501 + Get a transaction based on its id # noqa: E501 """ pass - def test_get_transaction_by_id(self): - """Test case for get_transaction_by_id + def test_get_all_transactions(self): + """Test case for get_all_transactions - Get a transaction based on its id # noqa: E501 + Get a list of transactions # noqa: E501 """ pass diff --git a/test/test_virtual_account.py b/test/test_virtual_account.py index 3e214bf4..7b91958d 100644 --- a/test/test_virtual_account.py +++ b/test/test_virtual_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_virtual_account_all_of.py b/test/test_virtual_account_all_of.py index b9d8742a..329680d1 100644 --- a/test/test_virtual_account_all_of.py +++ b/test/test_virtual_account_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_virtual_account_alternative_display.py b/test/test_virtual_account_alternative_display.py index 21c86708..c6f0dbf7 100644 --- a/test/test_virtual_account_alternative_display.py +++ b/test/test_virtual_account_alternative_display.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_virtual_account_channel_code.py b/test/test_virtual_account_channel_code.py index b3dcb3d1..4f8be622 100644 --- a/test/test_virtual_account_channel_code.py +++ b/test/test_virtual_account_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_virtual_account_channel_properties.py b/test/test_virtual_account_channel_properties.py index 37f501ca..dbdb13b6 100644 --- a/test/test_virtual_account_channel_properties.py +++ b/test/test_virtual_account_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_virtual_account_channel_properties_patch.py b/test/test_virtual_account_channel_properties_patch.py index 7d06f7f0..7ca9e9a6 100644 --- a/test/test_virtual_account_channel_properties_patch.py +++ b/test/test_virtual_account_channel_properties_patch.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_virtual_account_parameters.py b/test/test_virtual_account_parameters.py index a3550bc0..350a71a0 100644 --- a/test/test_virtual_account_parameters.py +++ b/test/test_virtual_account_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/test/test_virtual_account_update_parameters.py b/test/test_virtual_account_update_parameters.py index cc7e0cf9..617e1169 100644 --- a/test/test_virtual_account_update_parameters.py +++ b/test/test_virtual_account_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/__init__.py b/xendit/__init__.py index c2207aee..7ee790f1 100644 --- a/xendit/__init__.py +++ b/xendit/__init__.py @@ -5,7 +5,7 @@ """ -__version__ = "3.3.0" +__version__ = "3.4.0" # import ApiClient from xendit.api_client import ApiClient diff --git a/xendit/api_client.py b/xendit/api_client.py index df8f9ab0..534b416d 100644 --- a/xendit/api_client.py +++ b/xendit/api_client.py @@ -74,11 +74,11 @@ def __init__(self, configuration=None, header_name=None, header_value=None, # XENDIT headers self.default_headers['xendit-lib'] = 'python' - self.default_headers['xendit-lib-version'] = '3.3.0' + self.default_headers['xendit-lib-ver'] = '3.4.0' self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/3.3.0/python' + self.user_agent = 'OpenAPI-Generator/3.4.0/python' def __enter__(self): return self @@ -806,10 +806,10 @@ def __call__(self, *args, **kwargs): Example: api_instance = PaymentRequestApi() - api_instance.authorize_payment_request # this is an instance of the class Endpoint - api_instance.authorize_payment_request() # this invokes api_instance.authorize_payment_request.__call__() + api_instance.create_payment_request # this is an instance of the class Endpoint + api_instance.create_payment_request() # this invokes api_instance.create_payment_request.__call__() which then invokes the callable functions stored in that endpoint at - api_instance.authorize_payment_request.callable or self.callable in this class + api_instance.create_payment_request.callable or self.callable in this class """ return self.callable(self, *args, **kwargs) diff --git a/xendit/balance_and_transaction/model/channels_categories.py b/xendit/balance_and_transaction/model/channels_categories.py index 77f385e9..92011ce4 100644 --- a/xendit/balance_and_transaction/model/channels_categories.py +++ b/xendit/balance_and_transaction/model/channels_categories.py @@ -64,6 +64,7 @@ class ChannelsCategories(ModelSimple): 'XENPLATFORM': "XENPLATFORM", 'DIRECT_BANK_TRANSFER': "DIRECT_BANK_TRANSFER", 'OTHER': "OTHER", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -290,7 +291,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/balance_and_transaction/model/currency.py b/xendit/balance_and_transaction/model/currency.py index c067b02a..0c07119d 100644 --- a/xendit/balance_and_transaction/model/currency.py +++ b/xendit/balance_and_transaction/model/currency.py @@ -212,6 +212,7 @@ class Currency(ModelSimple): 'ZAR': "ZAR", 'ZMW': "ZMW", 'ZWD': "ZWD", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -438,7 +439,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/balance_and_transaction/model/transaction_statuses.py b/xendit/balance_and_transaction/model/transaction_statuses.py index 17721aae..29a0171a 100644 --- a/xendit/balance_and_transaction/model/transaction_statuses.py +++ b/xendit/balance_and_transaction/model/transaction_statuses.py @@ -55,6 +55,7 @@ class TransactionStatuses(ModelSimple): 'FAILED': "FAILED", 'REVERSED': "REVERSED", 'VOIDED': "VOIDED", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -281,7 +282,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/balance_and_transaction/model/transaction_types.py b/xendit/balance_and_transaction/model/transaction_types.py index 2b10915e..4275f5a8 100644 --- a/xendit/balance_and_transaction/model/transaction_types.py +++ b/xendit/balance_and_transaction/model/transaction_types.py @@ -63,6 +63,7 @@ class TransactionTypes(ModelSimple): 'TOPUP': "TOPUP", 'WITHDRAWAL': "WITHDRAWAL", 'OTHER': "OTHER", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -289,7 +290,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/balance_and_transaction/transaction_api.py b/xendit/balance_and_transaction/transaction_api.py index 1aee1dd5..a8ced215 100644 --- a/xendit/balance_and_transaction/transaction_api.py +++ b/xendit/balance_and_transaction/transaction_api.py @@ -32,6 +32,67 @@ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client + self.get_transaction_by_id_endpoint = _Endpoint( + settings={ + 'response_type': (TransactionResponse,), + 'auth': [], + 'endpoint_path': '/transactions/{id}', + 'operation_id': 'get_transaction_by_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + 'for_user_id', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + 'id', + ] + }, + root_map={ + 'validations': { + ('id',): { + + 'regex': { + 'pattern': r'^txn_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$', # noqa: E501 + }, + }, + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (TransactionId,), + 'for_user_id': + (str,), + }, + 'attribute_map': { + 'id': 'id', + 'for_user_id': 'for-user-id', + }, + 'location_map': { + 'id': 'path', + 'for_user_id': 'header', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) self.get_all_transactions_endpoint = _Endpoint( settings={ 'response_type': (TransactionsResponse,), @@ -166,111 +227,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_transaction_by_id_endpoint = _Endpoint( - settings={ - 'response_type': (TransactionResponse,), - 'auth': [], - 'endpoint_path': '/transactions/{id}', - 'operation_id': 'get_transaction_by_id', - 'http_method': 'GET', - 'servers': None, - }, - params_map={ - 'all': [ - 'id', - 'for_user_id', - ], - 'required': [ - 'id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - 'id', - ] - }, - root_map={ - 'validations': { - ('id',): { - 'regex': { - 'pattern': r'^txn_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$', # noqa: E501 - }, - }, - }, - 'allowed_values': { - }, - 'openapi_types': { - 'id': - (TransactionId,), - 'for_user_id': - (str,), - }, - 'attribute_map': { - 'id': 'id', - 'for_user_id': 'for-user-id', - }, - 'location_map': { - 'id': 'path', - 'for_user_id': 'header', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/json' - ], - 'content_type': [], - }, - api_client=api_client - ) - - def get_all_transactions( + def get_transaction_by_id( self, + id: TransactionId, for_user_id: Optional[str] = None, - types: Optional[List[TransactionTypes]] = None, - statuses: Optional[List[TransactionStatuses]] = None, - channel_categories: Optional[List[ChannelsCategories]] = None, - reference_id: Optional[str] = None, - product_id: Optional[str] = None, - account_identifier: Optional[str] = None, - amount: Optional[float] = None, - currency: Optional[Currency] = None, - created: Optional[DateRangeFilter] = None, - updated: Optional[DateRangeFilter] = None, - limit: Optional[float] = 10, - after_id: Optional[TransactionId] = None, - before_id: Optional[TransactionId] = None, **kwargs - ) -> TransactionsResponse: - """Get a list of transactions # noqa: E501 + ) -> TransactionResponse: + """Get a transaction based on its id # noqa: E501 - Get a list of all transactions based on filter and search parameters. # noqa: E501 + Get single specific transaction by transaction id. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_all_transactions(for_user_id, types, statuses, channel_categories, reference_id, product_id, account_identifier, amount, currency, created, updated, after_id, before_id, limit=10, async_req=True) + >>> thread = api.get_transaction_by_id(id, for_user_id, async_req=True) >>> result = thread.get() + Args: + id (TransactionId): Keyword Args: for_user_id (str): The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. [optional] - types ([TransactionTypes]): Transaction types that will be included in the result. Default is to include all transaction types. [optional] - statuses ([TransactionStatuses]): Status of the transaction. Default is to include all status.. [optional] - channel_categories ([ChannelsCategories]): Payment channels in which the transaction is carried out. Default is to include all channels.. [optional] - reference_id (str): To filter the result for transactions with matching reference given (case sensitive). [optional] - product_id (str): To filter the result for transactions with matching product_id (a.k.a payment_id) given (case sensitive). [optional] - account_identifier (str): Account identifier of transaction. The format will be different from each channel. For example, on `BANK` channel it will be account number and on `CARD` it will be masked card number.. [optional] - amount (float): Specific transaction amount to search for. [optional] - currency (Currency): [optional] - created (DateRangeFilter): Filter time of transaction by created date. If not specified will list all dates.. [optional] - updated (DateRangeFilter): Filter time of transaction by updated date. If not specified will list all dates.. [optional] - limit (float): number of items in the result per page. Another name for \"results_per_page\". [optional] if omitted the server will use the default value of 10 - after_id (TransactionId): [optional] - before_id (TransactionId): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -303,7 +280,7 @@ def get_all_transactions( async_req (bool): execute request asynchronously Returns: - TransactionsResponse + TransactionResponse If the method is called asynchronously, returns the request thread. """ @@ -332,56 +309,54 @@ def get_all_transactions( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['id'] = id if for_user_id is not None: kwargs['for_user_id'] = for_user_id - if types is not None: - kwargs['types'] = types - if statuses is not None: - kwargs['statuses'] = statuses - if channel_categories is not None: - kwargs['channel_categories'] = channel_categories - if reference_id is not None: - kwargs['reference_id'] = reference_id - if product_id is not None: - kwargs['product_id'] = product_id - if account_identifier is not None: - kwargs['account_identifier'] = account_identifier - if amount is not None: - kwargs['amount'] = amount - if currency is not None: - kwargs['currency'] = currency - if created is not None: - kwargs['created'] = created - if updated is not None: - kwargs['updated'] = updated - if limit is not None: - kwargs['limit'] = limit - if after_id is not None: - kwargs['after_id'] = after_id - if before_id is not None: - kwargs['before_id'] = before_id - return self.get_all_transactions_endpoint.call_with_http_info(**kwargs) + return self.get_transaction_by_id_endpoint.call_with_http_info(**kwargs) - def get_transaction_by_id( + def get_all_transactions( self, - id: TransactionId, for_user_id: Optional[str] = None, + types: Optional[List[TransactionTypes]] = None, + statuses: Optional[List[TransactionStatuses]] = None, + channel_categories: Optional[List[ChannelsCategories]] = None, + reference_id: Optional[str] = None, + product_id: Optional[str] = None, + account_identifier: Optional[str] = None, + amount: Optional[float] = None, + currency: Optional[Currency] = None, + created: Optional[DateRangeFilter] = None, + updated: Optional[DateRangeFilter] = None, + limit: Optional[float] = 10, + after_id: Optional[TransactionId] = None, + before_id: Optional[TransactionId] = None, **kwargs - ) -> TransactionResponse: - """Get a transaction based on its id # noqa: E501 + ) -> TransactionsResponse: + """Get a list of transactions # noqa: E501 - Get single specific transaction by transaction id. # noqa: E501 + Get a list of all transactions based on filter and search parameters. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_transaction_by_id(id, for_user_id, async_req=True) + >>> thread = api.get_all_transactions(for_user_id, types, statuses, channel_categories, reference_id, product_id, account_identifier, amount, currency, created, updated, after_id, before_id, limit=10, async_req=True) >>> result = thread.get() - Args: - id (TransactionId): Keyword Args: for_user_id (str): The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. [optional] + types ([TransactionTypes]): Transaction types that will be included in the result. Default is to include all transaction types. [optional] + statuses ([TransactionStatuses]): Status of the transaction. Default is to include all status.. [optional] + channel_categories ([ChannelsCategories]): Payment channels in which the transaction is carried out. Default is to include all channels.. [optional] + reference_id (str): To filter the result for transactions with matching reference given (case sensitive). [optional] + product_id (str): To filter the result for transactions with matching product_id (a.k.a payment_id) given (case sensitive). [optional] + account_identifier (str): Account identifier of transaction. The format will be different from each channel. For example, on `BANK` channel it will be account number and on `CARD` it will be masked card number.. [optional] + amount (float): Specific transaction amount to search for. [optional] + currency (Currency): [optional] + created (DateRangeFilter): Filter time of transaction by created date. If not specified will list all dates.. [optional] + updated (DateRangeFilter): Filter time of transaction by updated date. If not specified will list all dates.. [optional] + limit (float): number of items in the result per page. Another name for \"results_per_page\". [optional] if omitted the server will use the default value of 10 + after_id (TransactionId): [optional] + before_id (TransactionId): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -414,7 +389,7 @@ def get_transaction_by_id( async_req (bool): execute request asynchronously Returns: - TransactionResponse + TransactionsResponse If the method is called asynchronously, returns the request thread. """ @@ -443,8 +418,33 @@ def get_transaction_by_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['id'] = id if for_user_id is not None: kwargs['for_user_id'] = for_user_id - return self.get_transaction_by_id_endpoint.call_with_http_info(**kwargs) + if types is not None: + kwargs['types'] = types + if statuses is not None: + kwargs['statuses'] = statuses + if channel_categories is not None: + kwargs['channel_categories'] = channel_categories + if reference_id is not None: + kwargs['reference_id'] = reference_id + if product_id is not None: + kwargs['product_id'] = product_id + if account_identifier is not None: + kwargs['account_identifier'] = account_identifier + if amount is not None: + kwargs['amount'] = amount + if currency is not None: + kwargs['currency'] = currency + if created is not None: + kwargs['created'] = created + if updated is not None: + kwargs['updated'] = updated + if limit is not None: + kwargs['limit'] = limit + if after_id is not None: + kwargs['after_id'] = after_id + if before_id is not None: + kwargs['before_id'] = before_id + return self.get_all_transactions_endpoint.call_with_http_info(**kwargs) diff --git a/xendit/configuration.py b/xendit/configuration.py index 40e09906..030037d0 100644 --- a/xendit/configuration.py +++ b/xendit/configuration.py @@ -365,7 +365,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.44.1\n"\ - "SDK Package Version: 3.3.0".\ + "SDK Package Version: 3.4.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/xendit/customer/customer_api.py b/xendit/customer/customer_api.py index bb0a37f6..e319daf3 100644 --- a/xendit/customer/customer_api.py +++ b/xendit/customer/customer_api.py @@ -69,7 +69,7 @@ def __init__(self, api_client=None): (CustomerRequest,), }, 'attribute_map': { - 'idempotency_key': 'IDEMPOTENCY-KEY', + 'idempotency_key': 'idempotency-key', 'for_user_id': 'for-user-id', }, 'location_map': { diff --git a/xendit/customer/model/address_status.py b/xendit/customer/model/address_status.py index 332ef218..83e63ddb 100644 --- a/xendit/customer/model/address_status.py +++ b/xendit/customer/model/address_status.py @@ -53,6 +53,7 @@ class AddressStatus(ModelSimple): 'None': None, 'ACTIVE': "ACTIVE", 'DELETED': "DELETED", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -279,7 +280,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/customer/model/end_customer_status.py b/xendit/customer/model/end_customer_status.py index c4089fb5..4c587ef8 100644 --- a/xendit/customer/model/end_customer_status.py +++ b/xendit/customer/model/end_customer_status.py @@ -56,6 +56,7 @@ class EndCustomerStatus(ModelSimple): 'PENDING': "PENDING", 'BLOCKED': "BLOCKED", 'DELETED': "DELETED", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -282,7 +283,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/customer/model/identity_account_type.py b/xendit/customer/model/identity_account_type.py index 0eb2e112..39e15bde 100644 --- a/xendit/customer/model/identity_account_type.py +++ b/xendit/customer/model/identity_account_type.py @@ -56,6 +56,7 @@ class IdentityAccountType(ModelSimple): 'PAY_LATER': "PAY_LATER", 'OTC': "OTC", 'QR_CODE': "QR_CODE", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -282,7 +283,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/customer/model/kyc_document_sub_type.py b/xendit/customer/model/kyc_document_sub_type.py index 2d3c655a..c0f70933 100644 --- a/xendit/customer/model/kyc_document_sub_type.py +++ b/xendit/customer/model/kyc_document_sub_type.py @@ -61,6 +61,7 @@ class KYCDocumentSubType(ModelSimple): 'MILITARY_ID': "MILITARY_ID", 'MEDICAL_ID': "MEDICAL_ID", 'OTHERS': "OTHERS", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -287,7 +288,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/customer/model/kyc_document_type.py b/xendit/customer/model/kyc_document_type.py index 8d07b7dd..ec86e5fb 100644 --- a/xendit/customer/model/kyc_document_type.py +++ b/xendit/customer/model/kyc_document_type.py @@ -58,6 +58,7 @@ class KYCDocumentType(ModelSimple): 'VISA': "VISA", 'BUSINESS_REGISTRATION': "BUSINESS_REGISTRATION", 'BUSINESS_LICENSE': "BUSINESS_LICENSE", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -284,7 +285,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/invoice/invoice_api.py b/xendit/invoice/invoice_api.py index 71c7e730..d6ad3dee 100644 --- a/xendit/invoice/invoice_api.py +++ b/xendit/invoice/invoice_api.py @@ -44,6 +44,7 @@ def __init__(self, api_client=None): params_map={ 'all': [ 'create_invoice_request', + 'for_user_id', ], 'required': [ 'create_invoice_request', @@ -63,11 +64,15 @@ def __init__(self, api_client=None): 'openapi_types': { 'create_invoice_request': (CreateInvoiceRequest,), + 'for_user_id': + (str,), }, 'attribute_map': { + 'for_user_id': 'for-user-id', }, 'location_map': { 'create_invoice_request': 'body', + 'for_user_id': 'header', }, 'collection_format_map': { } @@ -82,55 +87,6 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.expire_invoice_endpoint = _Endpoint( - settings={ - 'response_type': (Invoice,), - 'auth': [], - 'endpoint_path': '/invoices/{invoice_id}/expire!', - 'operation_id': 'expire_invoice', - 'http_method': 'POST', - 'servers': None, - }, - params_map={ - 'all': [ - 'invoice_id', - ], - 'required': [ - 'invoice_id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'invoice_id': - (str,), - }, - 'attribute_map': { - 'invoice_id': 'invoice_id', - }, - 'location_map': { - 'invoice_id': 'path', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/json' - ], - 'content_type': [], - }, - api_client=api_client - ) self.get_invoice_by_id_endpoint = _Endpoint( settings={ 'response_type': (Invoice,), @@ -143,6 +99,7 @@ def __init__(self, api_client=None): params_map={ 'all': [ 'invoice_id', + 'for_user_id', ], 'required': [ 'invoice_id', @@ -162,12 +119,16 @@ def __init__(self, api_client=None): 'openapi_types': { 'invoice_id': (str,), + 'for_user_id': + (str,), }, 'attribute_map': { 'invoice_id': 'invoice_id', + 'for_user_id': 'for-user-id', }, 'location_map': { 'invoice_id': 'path', + 'for_user_id': 'header', }, 'collection_format_map': { } @@ -191,6 +152,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ + 'for_user_id', 'external_id', 'statuses', 'limit', @@ -220,6 +182,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { + 'for_user_id': + (str,), 'external_id': (str,), 'statuses': @@ -250,6 +214,7 @@ def __init__(self, api_client=None): (str,), }, 'attribute_map': { + 'for_user_id': 'for-user-id', 'external_id': 'external_id', 'statuses': 'statuses', 'limit': 'limit', @@ -266,6 +231,7 @@ def __init__(self, api_client=None): 'recurring_payment_id': 'recurring_payment_id', }, 'location_map': { + 'for_user_id': 'header', 'external_id': 'query', 'statuses': 'query', 'limit': 'query', @@ -295,10 +261,65 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.expire_invoice_endpoint = _Endpoint( + settings={ + 'response_type': (Invoice,), + 'auth': [], + 'endpoint_path': '/invoices/{invoice_id}/expire!', + 'operation_id': 'expire_invoice', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'invoice_id', + 'for_user_id', + ], + 'required': [ + 'invoice_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'invoice_id': + (str,), + 'for_user_id': + (str,), + }, + 'attribute_map': { + 'invoice_id': 'invoice_id', + 'for_user_id': 'for-user-id', + }, + 'location_map': { + 'invoice_id': 'path', + 'for_user_id': 'header', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) def create_invoice( self, create_invoice_request: CreateInvoiceRequest, + for_user_id: Optional[str] = None, **kwargs ) -> Invoice: """Create an invoice # noqa: E501 @@ -306,13 +327,14 @@ def create_invoice( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_invoice(create_invoice_request, async_req=True) + >>> thread = api.create_invoice(create_invoice_request, for_user_id, async_req=True) >>> result = thread.get() Args: create_invoice_request (CreateInvoiceRequest): Keyword Args: + for_user_id (str): Business ID of the sub-account merchant (XP feature). [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -375,25 +397,29 @@ def create_invoice( kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['create_invoice_request'] = create_invoice_request + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id return self.create_invoice_endpoint.call_with_http_info(**kwargs) - def expire_invoice( + def get_invoice_by_id( self, invoice_id: str, + for_user_id: Optional[str] = None, **kwargs ) -> Invoice: - """Manually expire an invoice # noqa: E501 + """Get invoice by invoice id # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.expire_invoice(invoice_id, async_req=True) + >>> thread = api.get_invoice_by_id(invoice_id, for_user_id, async_req=True) >>> result = thread.get() Args: - invoice_id (str): Invoice ID to be expired + invoice_id (str): Invoice ID Keyword Args: + for_user_id (str): Business ID of the sub-account merchant (XP feature). [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -456,25 +482,54 @@ def expire_invoice( kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['invoice_id'] = invoice_id - return self.expire_invoice_endpoint.call_with_http_info(**kwargs) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + return self.get_invoice_by_id_endpoint.call_with_http_info(**kwargs) - def get_invoice_by_id( + def get_invoices( self, - invoice_id: str, + for_user_id: Optional[str] = None, + external_id: Optional[str] = None, + statuses: Optional[List[InvoiceStatus]] = None, + limit: Optional[float] = None, + created_after: Optional[datetime] = None, + created_before: Optional[datetime] = None, + paid_after: Optional[datetime] = None, + paid_before: Optional[datetime] = None, + expired_after: Optional[datetime] = None, + expired_before: Optional[datetime] = None, + last_invoice: Optional[str] = None, + client_types: Optional[List[InvoiceClientType]] = None, + payment_channels: Optional[List[str]] = None, + on_demand_link: Optional[str] = None, + recurring_payment_id: Optional[str] = None, **kwargs - ) -> Invoice: - """Get invoice by invoice id # noqa: E501 + ) -> [Invoice]: + """Get all Invoices # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_invoice_by_id(invoice_id, async_req=True) + >>> thread = api.get_invoices(for_user_id, external_id, statuses, limit, created_after, created_before, paid_after, paid_before, expired_after, expired_before, last_invoice, client_types, payment_channels, on_demand_link, recurring_payment_id, async_req=True) >>> result = thread.get() - Args: - invoice_id (str): Invoice ID Keyword Args: + for_user_id (str): Business ID of the sub-account merchant (XP feature). [optional] + external_id (str): [optional] + statuses ([InvoiceStatus]): [optional] + limit (float): [optional] + created_after (datetime): [optional] + created_before (datetime): [optional] + paid_after (datetime): [optional] + paid_before (datetime): [optional] + expired_after (datetime): [optional] + expired_before (datetime): [optional] + last_invoice (str): [optional] + client_types ([InvoiceClientType]): [optional] + payment_channels ([str]): [optional] + on_demand_link (str): [optional] + recurring_payment_id (str): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -507,7 +562,7 @@ def get_invoice_by_id( async_req (bool): execute request asynchronously Returns: - Invoice + [Invoice] If the method is called asynchronously, returns the request thread. """ @@ -536,51 +591,57 @@ def get_invoice_by_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['invoice_id'] = invoice_id - return self.get_invoice_by_id_endpoint.call_with_http_info(**kwargs) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + if external_id is not None: + kwargs['external_id'] = external_id + if statuses is not None: + kwargs['statuses'] = statuses + if limit is not None: + kwargs['limit'] = limit + if created_after is not None: + kwargs['created_after'] = created_after + if created_before is not None: + kwargs['created_before'] = created_before + if paid_after is not None: + kwargs['paid_after'] = paid_after + if paid_before is not None: + kwargs['paid_before'] = paid_before + if expired_after is not None: + kwargs['expired_after'] = expired_after + if expired_before is not None: + kwargs['expired_before'] = expired_before + if last_invoice is not None: + kwargs['last_invoice'] = last_invoice + if client_types is not None: + kwargs['client_types'] = client_types + if payment_channels is not None: + kwargs['payment_channels'] = payment_channels + if on_demand_link is not None: + kwargs['on_demand_link'] = on_demand_link + if recurring_payment_id is not None: + kwargs['recurring_payment_id'] = recurring_payment_id + return self.get_invoices_endpoint.call_with_http_info(**kwargs) - def get_invoices( + def expire_invoice( self, - external_id: Optional[str] = None, - statuses: Optional[List[InvoiceStatus]] = None, - limit: Optional[float] = None, - created_after: Optional[datetime] = None, - created_before: Optional[datetime] = None, - paid_after: Optional[datetime] = None, - paid_before: Optional[datetime] = None, - expired_after: Optional[datetime] = None, - expired_before: Optional[datetime] = None, - last_invoice: Optional[str] = None, - client_types: Optional[List[InvoiceClientType]] = None, - payment_channels: Optional[List[str]] = None, - on_demand_link: Optional[str] = None, - recurring_payment_id: Optional[str] = None, + invoice_id: str, + for_user_id: Optional[str] = None, **kwargs - ) -> [Invoice]: - """Get all Invoices # noqa: E501 + ) -> Invoice: + """Manually expire an invoice # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_invoices(external_id, statuses, limit, created_after, created_before, paid_after, paid_before, expired_after, expired_before, last_invoice, client_types, payment_channels, on_demand_link, recurring_payment_id, async_req=True) + >>> thread = api.expire_invoice(invoice_id, for_user_id, async_req=True) >>> result = thread.get() + Args: + invoice_id (str): Invoice ID to be expired Keyword Args: - external_id (str): [optional] - statuses ([InvoiceStatus]): [optional] - limit (float): [optional] - created_after (datetime): [optional] - created_before (datetime): [optional] - paid_after (datetime): [optional] - paid_before (datetime): [optional] - expired_after (datetime): [optional] - expired_before (datetime): [optional] - last_invoice (str): [optional] - client_types ([InvoiceClientType]): [optional] - payment_channels ([str]): [optional] - on_demand_link (str): [optional] - recurring_payment_id (str): [optional] + for_user_id (str): Business ID of the sub-account merchant (XP feature). [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -613,7 +674,7 @@ def get_invoices( async_req (bool): execute request asynchronously Returns: - [Invoice] + Invoice If the method is called asynchronously, returns the request thread. """ @@ -642,33 +703,8 @@ def get_invoices( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - if external_id is not None: - kwargs['external_id'] = external_id - if statuses is not None: - kwargs['statuses'] = statuses - if limit is not None: - kwargs['limit'] = limit - if created_after is not None: - kwargs['created_after'] = created_after - if created_before is not None: - kwargs['created_before'] = created_before - if paid_after is not None: - kwargs['paid_after'] = paid_after - if paid_before is not None: - kwargs['paid_before'] = paid_before - if expired_after is not None: - kwargs['expired_after'] = expired_after - if expired_before is not None: - kwargs['expired_before'] = expired_before - if last_invoice is not None: - kwargs['last_invoice'] = last_invoice - if client_types is not None: - kwargs['client_types'] = client_types - if payment_channels is not None: - kwargs['payment_channels'] = payment_channels - if on_demand_link is not None: - kwargs['on_demand_link'] = on_demand_link - if recurring_payment_id is not None: - kwargs['recurring_payment_id'] = recurring_payment_id - return self.get_invoices_endpoint.call_with_http_info(**kwargs) + kwargs['invoice_id'] = invoice_id + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + return self.expire_invoice_endpoint.call_with_http_info(**kwargs) diff --git a/xendit/invoice/model/bank_code.py b/xendit/invoice/model/bank_code.py index 62587109..0545c78a 100644 --- a/xendit/invoice/model/bank_code.py +++ b/xendit/invoice/model/bank_code.py @@ -60,6 +60,7 @@ class BankCode(ModelSimple): 'SAHABAT_SAMPOERNA': "SAHABAT_SAMPOERNA", 'CIMB': "CIMB", 'BNC': "BNC", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -286,7 +287,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/invoice/model/direct_debit_type.py b/xendit/invoice/model/direct_debit_type.py index 40def0ab..df09780f 100644 --- a/xendit/invoice/model/direct_debit_type.py +++ b/xendit/invoice/model/direct_debit_type.py @@ -69,6 +69,7 @@ class DirectDebitType(ModelSimple): 'DD_CHINABANK': "DD_CHINABANK", 'BA_CHINABANK': "BA_CHINABANK", 'DC_CHINABANK': "DC_CHINABANK", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -295,7 +296,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/invoice/model/ewallet_type.py b/xendit/invoice/model/ewallet_type.py index 345e5fdf..815b1671 100644 --- a/xendit/invoice/model/ewallet_type.py +++ b/xendit/invoice/model/ewallet_type.py @@ -60,6 +60,7 @@ class EwalletType(ModelSimple): 'ASTRAPAY': "ASTRAPAY", 'NEXCASH': "NEXCASH", 'JENIUSPAY': "JENIUSPAY", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -286,7 +287,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/invoice/model/invoice_client_type.py b/xendit/invoice/model/invoice_client_type.py index 2a7030b4..146f7de5 100644 --- a/xendit/invoice/model/invoice_client_type.py +++ b/xendit/invoice/model/invoice_client_type.py @@ -56,6 +56,7 @@ class InvoiceClientType(ModelSimple): 'ON_DEMAND': "ON_DEMAND", 'RECURRING': "RECURRING", 'MOBILE': "MOBILE", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -282,7 +283,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/invoice/model/invoice_currency.py b/xendit/invoice/model/invoice_currency.py index 0f36ac5a..1422a12c 100644 --- a/xendit/invoice/model/invoice_currency.py +++ b/xendit/invoice/model/invoice_currency.py @@ -55,6 +55,7 @@ class InvoiceCurrency(ModelSimple): 'THB': "THB", 'VND': "VND", 'PHP': "PHP", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -281,7 +282,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/invoice/model/invoice_payment_method.py b/xendit/invoice/model/invoice_payment_method.py index 28844ccd..bcf7cf34 100644 --- a/xendit/invoice/model/invoice_payment_method.py +++ b/xendit/invoice/model/invoice_payment_method.py @@ -60,6 +60,7 @@ class InvoicePaymentMethod(ModelSimple): 'DIRECT_DEBIT': "DIRECT_DEBIT", 'BANK_TRANSFER': "BANK_TRANSFER", 'PAYLATER': "PAYLATER", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -286,7 +287,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/invoice/model/invoice_status.py b/xendit/invoice/model/invoice_status.py index 60bc1bef..4f36b32d 100644 --- a/xendit/invoice/model/invoice_status.py +++ b/xendit/invoice/model/invoice_status.py @@ -54,6 +54,7 @@ class InvoiceStatus(ModelSimple): 'PAID': "PAID", 'SETTLED': "SETTLED", 'EXPIRED': "EXPIRED", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -280,7 +281,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/invoice/model/notification_channel.py b/xendit/invoice/model/notification_channel.py index d6a062e6..0f75a153 100644 --- a/xendit/invoice/model/notification_channel.py +++ b/xendit/invoice/model/notification_channel.py @@ -54,6 +54,7 @@ class NotificationChannel(ModelSimple): 'SMS': "sms", 'WHATSAPP': "whatsapp", 'VIBER': "viber", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -280,7 +281,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/invoice/model/paylater_type.py b/xendit/invoice/model/paylater_type.py index e4ffd1fc..fa89b431 100644 --- a/xendit/invoice/model/paylater_type.py +++ b/xendit/invoice/model/paylater_type.py @@ -56,6 +56,7 @@ class PaylaterType(ModelSimple): 'BILLEASE': "BILLEASE", 'CASHALO': "CASHALO", 'ATOME': "ATOME", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -282,7 +283,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/invoice/model/qr_code_type.py b/xendit/invoice/model/qr_code_type.py index 89fbc1f4..10895f52 100644 --- a/xendit/invoice/model/qr_code_type.py +++ b/xendit/invoice/model/qr_code_type.py @@ -52,6 +52,7 @@ class QrCodeType(ModelSimple): ('value',): { 'QRIS': "QRIS", 'PROMPTPAY': "PROMPTPAY", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -278,7 +279,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/invoice/model/retail_outlet_name.py b/xendit/invoice/model/retail_outlet_name.py index fa156707..2ff44a26 100644 --- a/xendit/invoice/model/retail_outlet_name.py +++ b/xendit/invoice/model/retail_outlet_name.py @@ -59,6 +59,7 @@ class RetailOutletName(ModelSimple): 'DP_PALAWAN': "DP_PALAWAN", 'DP_ECPAY_SCHOOL': "DP_ECPAY_SCHOOL", 'LBC': "LBC", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -285,7 +286,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_method/model/billing_information.py b/xendit/payment_method/model/billing_information.py index e6eef973..4bd5c08d 100644 --- a/xendit/payment_method/model/billing_information.py +++ b/xendit/payment_method/model/billing_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/card.py b/xendit/payment_method/model/card.py index 4a6d2ff2..7b7da3c2 100644 --- a/xendit/payment_method/model/card.py +++ b/xendit/payment_method/model/card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/card_channel_properties.py b/xendit/payment_method/model/card_channel_properties.py index 9431f11c..91ebbf2d 100644 --- a/xendit/payment_method/model/card_channel_properties.py +++ b/xendit/payment_method/model/card_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/card_parameters.py b/xendit/payment_method/model/card_parameters.py index fa2b305a..b1073629 100644 --- a/xendit/payment_method/model/card_parameters.py +++ b/xendit/payment_method/model/card_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/card_parameters_card_information.py b/xendit/payment_method/model/card_parameters_card_information.py index 45438751..eaabbeeb 100644 --- a/xendit/payment_method/model/card_parameters_card_information.py +++ b/xendit/payment_method/model/card_parameters_card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/card_verification_results.py b/xendit/payment_method/model/card_verification_results.py index 7c6ecb8f..66229a2b 100644 --- a/xendit/payment_method/model/card_verification_results.py +++ b/xendit/payment_method/model/card_verification_results.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/card_verification_results_three_d_secure.py b/xendit/payment_method/model/card_verification_results_three_d_secure.py index bdf9b9d4..a816d81a 100644 --- a/xendit/payment_method/model/card_verification_results_three_d_secure.py +++ b/xendit/payment_method/model/card_verification_results_three_d_secure.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/create_payment_method409_response.py b/xendit/payment_method/model/create_payment_method409_response.py index aefa2bbd..a4b35992 100644 --- a/xendit/payment_method/model/create_payment_method409_response.py +++ b/xendit/payment_method/model/create_payment_method409_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/create_payment_method503_response.py b/xendit/payment_method/model/create_payment_method503_response.py index 4b664a4b..b7373875 100644 --- a/xendit/payment_method/model/create_payment_method503_response.py +++ b/xendit/payment_method/model/create_payment_method503_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/direct_debit.py b/xendit/payment_method/model/direct_debit.py index ef62d786..b5568164 100644 --- a/xendit/payment_method/model/direct_debit.py +++ b/xendit/payment_method/model/direct_debit.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/direct_debit_all_of.py b/xendit/payment_method/model/direct_debit_all_of.py index 283d6b58..1bb201e3 100644 --- a/xendit/payment_method/model/direct_debit_all_of.py +++ b/xendit/payment_method/model/direct_debit_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/direct_debit_bank_account.py b/xendit/payment_method/model/direct_debit_bank_account.py index fc6b11a3..3e70318c 100644 --- a/xendit/payment_method/model/direct_debit_bank_account.py +++ b/xendit/payment_method/model/direct_debit_bank_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/direct_debit_channel_code.py b/xendit/payment_method/model/direct_debit_channel_code.py index 9a2662e0..045e468a 100644 --- a/xendit/payment_method/model/direct_debit_channel_code.py +++ b/xendit/payment_method/model/direct_debit_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ @@ -113,6 +113,7 @@ class DirectDebitChannelCode(ModelSimple): 'RHB_FPX_BUSINESS': "RHB_FPX_BUSINESS", 'SCH_FPX_BUSINESS': "SCH_FPX_BUSINESS", 'UOB_FPX_BUSINESS': "UOB_FPX_BUSINESS", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -339,7 +340,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_method/model/direct_debit_channel_properties.py b/xendit/payment_method/model/direct_debit_channel_properties.py index dd914aad..481822ee 100644 --- a/xendit/payment_method/model/direct_debit_channel_properties.py +++ b/xendit/payment_method/model/direct_debit_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/direct_debit_debit_card.py b/xendit/payment_method/model/direct_debit_debit_card.py index 7efc0f71..5413b998 100644 --- a/xendit/payment_method/model/direct_debit_debit_card.py +++ b/xendit/payment_method/model/direct_debit_debit_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/direct_debit_parameters.py b/xendit/payment_method/model/direct_debit_parameters.py index 71b41659..8970c7e2 100644 --- a/xendit/payment_method/model/direct_debit_parameters.py +++ b/xendit/payment_method/model/direct_debit_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/direct_debit_type.py b/xendit/payment_method/model/direct_debit_type.py index 8c4c7841..10d0446f 100644 --- a/xendit/payment_method/model/direct_debit_type.py +++ b/xendit/payment_method/model/direct_debit_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ @@ -53,6 +53,7 @@ class DirectDebitType(ModelSimple): 'DEBIT_CARD': "DEBIT_CARD", 'BANK_ACCOUNT': "BANK_ACCOUNT", 'BANK_REDIRECT': "BANK_REDIRECT", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -279,7 +280,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_method/model/e_wallet.py b/xendit/payment_method/model/e_wallet.py index 80058a6b..048f0eca 100644 --- a/xendit/payment_method/model/e_wallet.py +++ b/xendit/payment_method/model/e_wallet.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/e_wallet_account.py b/xendit/payment_method/model/e_wallet_account.py index c39c4740..e0018da4 100644 --- a/xendit/payment_method/model/e_wallet_account.py +++ b/xendit/payment_method/model/e_wallet_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/e_wallet_channel_code.py b/xendit/payment_method/model/e_wallet_channel_code.py index 968abe21..013a22d6 100644 --- a/xendit/payment_method/model/e_wallet_channel_code.py +++ b/xendit/payment_method/model/e_wallet_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ @@ -70,6 +70,7 @@ class EWalletChannelCode(ModelSimple): 'LINEPAY': "LINEPAY", 'TRUEMONEY': "TRUEMONEY", 'ALIPAY': "ALIPAY", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -296,7 +297,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_method/model/e_wallet_channel_properties.py b/xendit/payment_method/model/e_wallet_channel_properties.py index 18ed7903..122aea32 100644 --- a/xendit/payment_method/model/e_wallet_channel_properties.py +++ b/xendit/payment_method/model/e_wallet_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/e_wallet_parameters.py b/xendit/payment_method/model/e_wallet_parameters.py index dcc6c149..1b9e3260 100644 --- a/xendit/payment_method/model/e_wallet_parameters.py +++ b/xendit/payment_method/model/e_wallet_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/get_all_payment_methods400_response.py b/xendit/payment_method/model/get_all_payment_methods400_response.py index d29ea866..d098e15c 100644 --- a/xendit/payment_method/model/get_all_payment_methods400_response.py +++ b/xendit/payment_method/model/get_all_payment_methods400_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/get_all_payment_methods403_response.py b/xendit/payment_method/model/get_all_payment_methods403_response.py index a2b258be..50d9a8de 100644 --- a/xendit/payment_method/model/get_all_payment_methods403_response.py +++ b/xendit/payment_method/model/get_all_payment_methods403_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/get_all_payment_methods404_response.py b/xendit/payment_method/model/get_all_payment_methods404_response.py index 17da3cca..1632ff30 100644 --- a/xendit/payment_method/model/get_all_payment_methods404_response.py +++ b/xendit/payment_method/model/get_all_payment_methods404_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/get_all_payment_methods_default_response.py b/xendit/payment_method/model/get_all_payment_methods_default_response.py index 0aec569b..1711f099 100644 --- a/xendit/payment_method/model/get_all_payment_methods_default_response.py +++ b/xendit/payment_method/model/get_all_payment_methods_default_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/over_the_counter.py b/xendit/payment_method/model/over_the_counter.py index de2a52cb..75406a5d 100644 --- a/xendit/payment_method/model/over_the_counter.py +++ b/xendit/payment_method/model/over_the_counter.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/over_the_counter_channel_code.py b/xendit/payment_method/model/over_the_counter_channel_code.py index adf6ebfa..3bc27a67 100644 --- a/xendit/payment_method/model/over_the_counter_channel_code.py +++ b/xendit/payment_method/model/over_the_counter_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ @@ -66,6 +66,7 @@ class OverTheCounterChannelCode(ModelSimple): 'ROBINSONS_BILLS': "ROBINSONS_BILLS", 'ALFAMART': "ALFAMART", 'INDOMARET': "INDOMARET", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -292,7 +293,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_method/model/over_the_counter_channel_properties.py b/xendit/payment_method/model/over_the_counter_channel_properties.py index 4058c2c2..3085e217 100644 --- a/xendit/payment_method/model/over_the_counter_channel_properties.py +++ b/xendit/payment_method/model/over_the_counter_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/over_the_counter_channel_properties_update.py b/xendit/payment_method/model/over_the_counter_channel_properties_update.py index 2844a4be..36e6ec82 100644 --- a/xendit/payment_method/model/over_the_counter_channel_properties_update.py +++ b/xendit/payment_method/model/over_the_counter_channel_properties_update.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/over_the_counter_parameters.py b/xendit/payment_method/model/over_the_counter_parameters.py index b9d8e99b..4e55878e 100644 --- a/xendit/payment_method/model/over_the_counter_parameters.py +++ b/xendit/payment_method/model/over_the_counter_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/over_the_counter_update_parameters.py b/xendit/payment_method/model/over_the_counter_update_parameters.py index 29add14d..b93ebb65 100644 --- a/xendit/payment_method/model/over_the_counter_update_parameters.py +++ b/xendit/payment_method/model/over_the_counter_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/payment_method.py b/xendit/payment_method/model/payment_method.py index 0a6e38da..18dcb64e 100644 --- a/xendit/payment_method/model/payment_method.py +++ b/xendit/payment_method/model/payment_method.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/payment_method_action.py b/xendit/payment_method/model/payment_method_action.py index cc31d211..840a9b18 100644 --- a/xendit/payment_method/model/payment_method_action.py +++ b/xendit/payment_method/model/payment_method_action.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/payment_method_auth_parameters.py b/xendit/payment_method/model/payment_method_auth_parameters.py index 1e5ecf5e..da4975fc 100644 --- a/xendit/payment_method/model/payment_method_auth_parameters.py +++ b/xendit/payment_method/model/payment_method_auth_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/payment_method_country.py b/xendit/payment_method/model/payment_method_country.py index b633cf62..5bed39ba 100644 --- a/xendit/payment_method/model/payment_method_country.py +++ b/xendit/payment_method/model/payment_method_country.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ @@ -55,6 +55,7 @@ class PaymentMethodCountry(ModelSimple): 'VN': "VN", 'TH': "TH", 'MY': "MY", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -281,7 +282,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_method/model/payment_method_expire_parameters.py b/xendit/payment_method/model/payment_method_expire_parameters.py index 4ffbe823..1a14a406 100644 --- a/xendit/payment_method/model/payment_method_expire_parameters.py +++ b/xendit/payment_method/model/payment_method_expire_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/payment_method_list.py b/xendit/payment_method/model/payment_method_list.py index 90a0d739..38b3fc8a 100644 --- a/xendit/payment_method/model/payment_method_list.py +++ b/xendit/payment_method/model/payment_method_list.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/payment_method_parameters.py b/xendit/payment_method/model/payment_method_parameters.py index 87b8f81c..827c32ab 100644 --- a/xendit/payment_method/model/payment_method_parameters.py +++ b/xendit/payment_method/model/payment_method_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/payment_method_reusability.py b/xendit/payment_method/model/payment_method_reusability.py index 906648c6..7b4213f5 100644 --- a/xendit/payment_method/model/payment_method_reusability.py +++ b/xendit/payment_method/model/payment_method_reusability.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ @@ -52,6 +52,7 @@ class PaymentMethodReusability(ModelSimple): ('value',): { 'MULTIPLE_USE': "MULTIPLE_USE", 'ONE_TIME_USE': "ONE_TIME_USE", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -278,7 +279,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_method/model/payment_method_status.py b/xendit/payment_method/model/payment_method_status.py index 304f3160..24e82366 100644 --- a/xendit/payment_method/model/payment_method_status.py +++ b/xendit/payment_method/model/payment_method_status.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ @@ -56,6 +56,7 @@ class PaymentMethodStatus(ModelSimple): 'PENDING': "PENDING", 'REQUIRES_ACTION': "REQUIRES_ACTION", 'FAILED': "FAILED", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -282,7 +283,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_method/model/payment_method_type.py b/xendit/payment_method/model/payment_method_type.py index c4e5513b..c9876743 100644 --- a/xendit/payment_method/model/payment_method_type.py +++ b/xendit/payment_method/model/payment_method_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ @@ -58,6 +58,7 @@ class PaymentMethodType(ModelSimple): 'OVER_THE_COUNTER': "OVER_THE_COUNTER", 'QR_CODE': "QR_CODE", 'VIRTUAL_ACCOUNT': "VIRTUAL_ACCOUNT", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -284,7 +285,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_method/model/payment_method_update_parameters.py b/xendit/payment_method/model/payment_method_update_parameters.py index 084fe502..63cb8043 100644 --- a/xendit/payment_method/model/payment_method_update_parameters.py +++ b/xendit/payment_method/model/payment_method_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/qr_code.py b/xendit/payment_method/model/qr_code.py index 1e87879c..76a0e5c1 100644 --- a/xendit/payment_method/model/qr_code.py +++ b/xendit/payment_method/model/qr_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/qr_code_channel_code.py b/xendit/payment_method/model/qr_code_channel_code.py index 8fad3f16..463fac51 100644 --- a/xendit/payment_method/model/qr_code_channel_code.py +++ b/xendit/payment_method/model/qr_code_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ @@ -56,6 +56,7 @@ class QRCodeChannelCode(ModelSimple): 'RCBC': "RCBC", 'PROMPTPAY': "PROMPTPAY", 'LINKAJA': "LINKAJA", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -282,7 +283,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_method/model/qr_code_channel_properties.py b/xendit/payment_method/model/qr_code_channel_properties.py index 7f0ed628..5fd00b36 100644 --- a/xendit/payment_method/model/qr_code_channel_properties.py +++ b/xendit/payment_method/model/qr_code_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/qr_code_parameters.py b/xendit/payment_method/model/qr_code_parameters.py index 91dd319a..1bbbf437 100644 --- a/xendit/payment_method/model/qr_code_parameters.py +++ b/xendit/payment_method/model/qr_code_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/simulate_payment_request.py b/xendit/payment_method/model/simulate_payment_request.py index b0a2e3fc..021dcff6 100644 --- a/xendit/payment_method/model/simulate_payment_request.py +++ b/xendit/payment_method/model/simulate_payment_request.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/tokenized_card_information.py b/xendit/payment_method/model/tokenized_card_information.py index 08670494..239a01a7 100644 --- a/xendit/payment_method/model/tokenized_card_information.py +++ b/xendit/payment_method/model/tokenized_card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/virtual_account.py b/xendit/payment_method/model/virtual_account.py index 6b2a4e44..6f057d0a 100644 --- a/xendit/payment_method/model/virtual_account.py +++ b/xendit/payment_method/model/virtual_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/virtual_account_all_of.py b/xendit/payment_method/model/virtual_account_all_of.py index d0ec870f..e068b42e 100644 --- a/xendit/payment_method/model/virtual_account_all_of.py +++ b/xendit/payment_method/model/virtual_account_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/virtual_account_alternative_display.py b/xendit/payment_method/model/virtual_account_alternative_display.py index efa7a73d..65439933 100644 --- a/xendit/payment_method/model/virtual_account_alternative_display.py +++ b/xendit/payment_method/model/virtual_account_alternative_display.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/virtual_account_channel_code.py b/xendit/payment_method/model/virtual_account_channel_code.py index a91faaad..413e8441 100644 --- a/xendit/payment_method/model/virtual_account_channel_code.py +++ b/xendit/payment_method/model/virtual_account_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ @@ -65,6 +65,7 @@ class VirtualAccountChannelCode(ModelSimple): 'WOORI': "WOORI", 'MSB': "MSB", 'STANDARD_CHARTERED': "STANDARD_CHARTERED", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -291,7 +292,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_method/model/virtual_account_channel_properties.py b/xendit/payment_method/model/virtual_account_channel_properties.py index 132fdd20..84345acc 100644 --- a/xendit/payment_method/model/virtual_account_channel_properties.py +++ b/xendit/payment_method/model/virtual_account_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/virtual_account_channel_properties_patch.py b/xendit/payment_method/model/virtual_account_channel_properties_patch.py index 83341979..569a2fdc 100644 --- a/xendit/payment_method/model/virtual_account_channel_properties_patch.py +++ b/xendit/payment_method/model/virtual_account_channel_properties_patch.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/virtual_account_parameters.py b/xendit/payment_method/model/virtual_account_parameters.py index ca5f2a7c..a8b8627e 100644 --- a/xendit/payment_method/model/virtual_account_parameters.py +++ b/xendit/payment_method/model/virtual_account_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/model/virtual_account_update_parameters.py b/xendit/payment_method/model/virtual_account_update_parameters.py index e32c22b7..f53bed74 100644 --- a/xendit/payment_method/model/virtual_account_update_parameters.py +++ b/xendit/payment_method/model/virtual_account_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.1 + The version of the XENDIT API: 2.89.2 """ diff --git a/xendit/payment_method/payment_method_api.py b/xendit/payment_method/payment_method_api.py index 7f7a521e..450b7b29 100644 --- a/xendit/payment_method/payment_method_api.py +++ b/xendit/payment_method/payment_method_api.py @@ -3,7 +3,7 @@ This API is used for Payment Method Service v2 # noqa: E501 - The version of the OpenAPI document: 2.89.1 + The version of the OpenAPI document: 2.89.2 """ import re # noqa: F401 @@ -32,19 +32,72 @@ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client - self.auth_payment_method_endpoint = _Endpoint( + self.create_payment_method_endpoint = _Endpoint( settings={ 'response_type': (PaymentMethod,), 'auth': [], - 'endpoint_path': '/v2/payment_methods/{paymentMethodId}/auth', - 'operation_id': 'auth_payment_method', + 'endpoint_path': '/v2/payment_methods', + 'operation_id': 'create_payment_method', 'http_method': 'POST', 'servers': None, }, + params_map={ + 'all': [ + 'for_user_id', + 'payment_method_parameters', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'for_user_id': + (str,), + 'payment_method_parameters': + (PaymentMethodParameters,), + }, + 'attribute_map': { + 'for_user_id': 'for-user-id', + }, + 'location_map': { + 'for_user_id': 'header', + 'payment_method_parameters': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.get_payment_method_by_id_endpoint = _Endpoint( + settings={ + 'response_type': (PaymentMethod,), + 'auth': [], + 'endpoint_path': '/v2/payment_methods/{paymentMethodId}', + 'operation_id': 'get_payment_method_by_id', + 'http_method': 'GET', + 'servers': None, + }, params_map={ 'all': [ 'payment_method_id', - 'payment_method_auth_parameters', + 'for_user_id', ], 'required': [ 'payment_method_id', @@ -64,15 +117,16 @@ def __init__(self, api_client=None): 'openapi_types': { 'payment_method_id': (str,), - 'payment_method_auth_parameters': - (PaymentMethodAuthParameters,), + 'for_user_id': + (str,), }, 'attribute_map': { 'payment_method_id': 'paymentMethodId', + 'for_user_id': 'for-user-id', }, 'location_map': { 'payment_method_id': 'path', - 'payment_method_auth_parameters': 'body', + 'for_user_id': 'header', }, 'collection_format_map': { } @@ -81,26 +135,39 @@ def __init__(self, api_client=None): 'accept': [ 'application/json' ], - 'content_type': [ - 'application/json' - ] + 'content_type': [], }, api_client=api_client ) - self.create_payment_method_endpoint = _Endpoint( + self.get_payments_by_payment_method_id_endpoint = _Endpoint( settings={ - 'response_type': (PaymentMethod,), + 'response_type': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), 'auth': [], - 'endpoint_path': '/v2/payment_methods', - 'operation_id': 'create_payment_method', - 'http_method': 'POST', + 'endpoint_path': '/v2/payment_methods/{paymentMethodId}/payments', + 'operation_id': 'get_payments_by_payment_method_id', + 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'payment_method_parameters', + 'payment_method_id', + 'for_user_id', + 'payment_request_id', + 'payment_method_id2', + 'reference_id', + 'payment_method_type', + 'channel_code', + 'status', + 'currency', + 'created_gte', + 'created_lte', + 'updated_gte', + 'updated_lte', + 'limit', + ], + 'required': [ + 'payment_method_id', ], - 'required': [], 'nullable': [ ], 'enum': [ @@ -114,46 +181,104 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'payment_method_parameters': - (PaymentMethodParameters,), + 'payment_method_id': + (str,), + 'for_user_id': + (str,), + 'payment_request_id': + ([str],), + 'payment_method_id2': + ([str],), + 'reference_id': + ([str],), + 'payment_method_type': + ([PaymentMethodType],), + 'channel_code': + ([str],), + 'status': + ([str],), + 'currency': + ([str],), + 'created_gte': + (datetime,), + 'created_lte': + (datetime,), + 'updated_gte': + (datetime,), + 'updated_lte': + (datetime,), + 'limit': + (int,), }, 'attribute_map': { + 'payment_method_id': 'paymentMethodId', + 'for_user_id': 'for-user-id', + 'payment_request_id': 'payment_request_id', + 'payment_method_id2': 'payment_method_id', + 'reference_id': 'reference_id', + 'payment_method_type': 'payment_method_type', + 'channel_code': 'channel_code', + 'status': 'status', + 'currency': 'currency', + 'created_gte': 'created[gte]', + 'created_lte': 'created[lte]', + 'updated_gte': 'updated[gte]', + 'updated_lte': 'updated[lte]', + 'limit': 'limit', }, 'location_map': { - 'payment_method_parameters': 'body', + 'payment_method_id': 'path', + 'for_user_id': 'header', + 'payment_request_id': 'query', + 'payment_method_id2': 'query', + 'reference_id': 'query', + 'payment_method_type': 'query', + 'channel_code': 'query', + 'status': 'query', + 'currency': 'query', + 'created_gte': 'query', + 'created_lte': 'query', + 'updated_gte': 'query', + 'updated_lte': 'query', + 'limit': 'query', }, 'collection_format_map': { + 'payment_request_id': 'multi', + 'payment_method_id2': 'multi', + 'reference_id': 'multi', + 'payment_method_type': 'multi', + 'channel_code': 'multi', + 'status': 'multi', + 'currency': 'multi', } }, headers_map={ 'accept': [ 'application/json' ], - 'content_type': [ - 'application/json' - ] + 'content_type': [], }, api_client=api_client ) - self.expire_payment_method_endpoint = _Endpoint( + self.patch_payment_method_endpoint = _Endpoint( settings={ 'response_type': (PaymentMethod,), 'auth': [], - 'endpoint_path': '/v2/payment_methods/{paymentMethodId}/expire', - 'operation_id': 'expire_payment_method', - 'http_method': 'POST', + 'endpoint_path': '/v2/payment_methods/{paymentMethodId}', + 'operation_id': 'patch_payment_method', + 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'payment_method_id', - 'payment_method_expire_parameters', + 'for_user_id', + 'payment_method_update_parameters', ], 'required': [ 'payment_method_id', ], 'nullable': [ - 'payment_method_expire_parameters', ], 'enum': [ ], @@ -168,15 +293,19 @@ def __init__(self, api_client=None): 'openapi_types': { 'payment_method_id': (str,), - 'payment_method_expire_parameters': - (PaymentMethodExpireParameters,), + 'for_user_id': + (str,), + 'payment_method_update_parameters': + (PaymentMethodUpdateParameters,), }, 'attribute_map': { 'payment_method_id': 'paymentMethodId', + 'for_user_id': 'for-user-id', }, 'location_map': { 'payment_method_id': 'path', - 'payment_method_expire_parameters': 'body', + 'for_user_id': 'header', + 'payment_method_update_parameters': 'body', }, 'collection_format_map': { } @@ -202,6 +331,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ + 'for_user_id', 'id', 'type', 'status', @@ -231,6 +361,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { + 'for_user_id': + (str,), 'id': ([str],), 'type': @@ -251,6 +383,7 @@ def __init__(self, api_client=None): (int,), }, 'attribute_map': { + 'for_user_id': 'for-user-id', 'id': 'id', 'type': 'type', 'status': 'status', @@ -262,6 +395,7 @@ def __init__(self, api_client=None): 'limit': 'limit', }, 'location_map': { + 'for_user_id': 'header', 'id': 'query', 'type': 'query', 'status': 'query', @@ -286,23 +420,26 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_payment_method_by_id_endpoint = _Endpoint( + self.expire_payment_method_endpoint = _Endpoint( settings={ 'response_type': (PaymentMethod,), 'auth': [], - 'endpoint_path': '/v2/payment_methods/{paymentMethodId}', - 'operation_id': 'get_payment_method_by_id', - 'http_method': 'GET', + 'endpoint_path': '/v2/payment_methods/{paymentMethodId}/expire', + 'operation_id': 'expire_payment_method', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ 'payment_method_id', + 'for_user_id', + 'payment_method_expire_parameters', ], 'required': [ 'payment_method_id', ], 'nullable': [ + 'payment_method_expire_parameters', ], 'enum': [ ], @@ -317,153 +454,47 @@ def __init__(self, api_client=None): 'openapi_types': { 'payment_method_id': (str,), - }, - 'attribute_map': { - 'payment_method_id': 'paymentMethodId', - }, - 'location_map': { - 'payment_method_id': 'path', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/json' - ], - 'content_type': [], - }, - api_client=api_client - ) - self.get_payments_by_payment_method_id_endpoint = _Endpoint( - settings={ - 'response_type': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), - 'auth': [], - 'endpoint_path': '/v2/payment_methods/{paymentMethodId}/payments', - 'operation_id': 'get_payments_by_payment_method_id', - 'http_method': 'GET', - 'servers': None, - }, - params_map={ - 'all': [ - 'payment_method_id', - 'payment_request_id', - 'payment_method_id2', - 'reference_id', - 'payment_method_type', - 'channel_code', - 'status', - 'currency', - 'created_gte', - 'created_lte', - 'updated_gte', - 'updated_lte', - 'limit', - ], - 'required': [ - 'payment_method_id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'payment_method_id': + 'for_user_id': (str,), - 'payment_request_id': - ([str],), - 'payment_method_id2': - ([str],), - 'reference_id': - ([str],), - 'payment_method_type': - ([PaymentMethodType],), - 'channel_code': - ([str],), - 'status': - ([str],), - 'currency': - ([str],), - 'created_gte': - (datetime,), - 'created_lte': - (datetime,), - 'updated_gte': - (datetime,), - 'updated_lte': - (datetime,), - 'limit': - (int,), + 'payment_method_expire_parameters': + (PaymentMethodExpireParameters,), }, 'attribute_map': { 'payment_method_id': 'paymentMethodId', - 'payment_request_id': 'payment_request_id', - 'payment_method_id2': 'payment_method_id', - 'reference_id': 'reference_id', - 'payment_method_type': 'payment_method_type', - 'channel_code': 'channel_code', - 'status': 'status', - 'currency': 'currency', - 'created_gte': 'created[gte]', - 'created_lte': 'created[lte]', - 'updated_gte': 'updated[gte]', - 'updated_lte': 'updated[lte]', - 'limit': 'limit', + 'for_user_id': 'for-user-id', }, 'location_map': { 'payment_method_id': 'path', - 'payment_request_id': 'query', - 'payment_method_id2': 'query', - 'reference_id': 'query', - 'payment_method_type': 'query', - 'channel_code': 'query', - 'status': 'query', - 'currency': 'query', - 'created_gte': 'query', - 'created_lte': 'query', - 'updated_gte': 'query', - 'updated_lte': 'query', - 'limit': 'query', + 'for_user_id': 'header', + 'payment_method_expire_parameters': 'body', }, 'collection_format_map': { - 'payment_request_id': 'multi', - 'payment_method_id2': 'multi', - 'reference_id': 'multi', - 'payment_method_type': 'multi', - 'channel_code': 'multi', - 'status': 'multi', - 'currency': 'multi', } }, headers_map={ 'accept': [ 'application/json' ], - 'content_type': [], + 'content_type': [ + 'application/json' + ] }, api_client=api_client ) - self.patch_payment_method_endpoint = _Endpoint( + self.auth_payment_method_endpoint = _Endpoint( settings={ 'response_type': (PaymentMethod,), 'auth': [], - 'endpoint_path': '/v2/payment_methods/{paymentMethodId}', - 'operation_id': 'patch_payment_method', - 'http_method': 'PATCH', + 'endpoint_path': '/v2/payment_methods/{paymentMethodId}/auth', + 'operation_id': 'auth_payment_method', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ 'payment_method_id', - 'payment_method_update_parameters', + 'for_user_id', + 'payment_method_auth_parameters', ], 'required': [ 'payment_method_id', @@ -483,15 +514,19 @@ def __init__(self, api_client=None): 'openapi_types': { 'payment_method_id': (str,), - 'payment_method_update_parameters': - (PaymentMethodUpdateParameters,), + 'for_user_id': + (str,), + 'payment_method_auth_parameters': + (PaymentMethodAuthParameters,), }, 'attribute_map': { 'payment_method_id': 'paymentMethodId', + 'for_user_id': 'for-user-id', }, 'location_map': { 'payment_method_id': 'path', - 'payment_method_update_parameters': 'body', + 'for_user_id': 'header', + 'payment_method_auth_parameters': 'body', }, 'collection_format_map': { } @@ -562,26 +597,112 @@ def __init__(self, api_client=None): api_client=api_client ) - def auth_payment_method( + def create_payment_method( + self, + for_user_id: Optional[str] = None, + payment_method_parameters: Optional[PaymentMethodParameters] = None, + **kwargs + ) -> PaymentMethod: + """Creates payment method # noqa: E501 + + This endpoint initiates creation of payment method # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_payment_method(for_user_id, payment_method_parameters, async_req=True) + >>> result = thread.get() + + + Keyword Args: + for_user_id (str): [optional] + payment_method_parameters (PaymentMethodParameters): [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + PaymentMethod + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + if payment_method_parameters is not None: + kwargs['payment_method_parameters'] = payment_method_parameters + return self.create_payment_method_endpoint.call_with_http_info(**kwargs) + + def get_payment_method_by_id( self, payment_method_id: str, - payment_method_auth_parameters: Optional[PaymentMethodAuthParameters] = None, + for_user_id: Optional[str] = None, **kwargs ) -> PaymentMethod: - """Validate a payment method's linking OTP # noqa: E501 + """Get payment method by ID # noqa: E501 - This endpoint validates a payment method linking OTP # noqa: E501 + Get payment method by ID # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.auth_payment_method(payment_method_id, payment_method_auth_parameters, async_req=True) + >>> thread = api.get_payment_method_by_id(payment_method_id, for_user_id, async_req=True) >>> result = thread.get() Args: payment_method_id (str): Keyword Args: - payment_method_auth_parameters (PaymentMethodAuthParameters): [optional] + for_user_id (str): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -644,27 +765,54 @@ def auth_payment_method( kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['payment_method_id'] = payment_method_id - if payment_method_auth_parameters is not None: - kwargs['payment_method_auth_parameters'] = payment_method_auth_parameters - return self.auth_payment_method_endpoint.call_with_http_info(**kwargs) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + return self.get_payment_method_by_id_endpoint.call_with_http_info(**kwargs) - def create_payment_method( + def get_payments_by_payment_method_id( self, - payment_method_parameters: Optional[PaymentMethodParameters] = None, + payment_method_id: str, + for_user_id: Optional[str] = None, + payment_request_id: Optional[List[str]] = None, + payment_method_id2: Optional[List[str]] = None, + reference_id: Optional[List[str]] = None, + payment_method_type: Optional[List[PaymentMethodType]] = None, + channel_code: Optional[List[str]] = None, + status: Optional[List[str]] = None, + currency: Optional[List[str]] = None, + created_gte: Optional[datetime] = None, + created_lte: Optional[datetime] = None, + updated_gte: Optional[datetime] = None, + updated_lte: Optional[datetime] = None, + limit: Optional[int] = None, **kwargs - ) -> PaymentMethod: - """Creates payment method # noqa: E501 + ) -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)}: + """Returns payments with matching PaymentMethodID. # noqa: E501 - This endpoint initiates creation of payment method # noqa: E501 + Returns payments with matching PaymentMethodID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_payment_method(payment_method_parameters, async_req=True) + >>> thread = api.get_payments_by_payment_method_id(payment_method_id, for_user_id, payment_request_id, payment_method_id2, reference_id, payment_method_type, channel_code, status, currency, created_gte, created_lte, updated_gte, updated_lte, limit, async_req=True) >>> result = thread.get() + Args: + payment_method_id (str): Keyword Args: - payment_method_parameters (PaymentMethodParameters): [optional] + for_user_id (str): [optional] + payment_request_id ([str]): [optional] + payment_method_id2 ([str]): [optional] + reference_id ([str]): [optional] + payment_method_type ([PaymentMethodType]): [optional] + channel_code ([str]): [optional] + status ([str]): [optional] + currency ([str]): [optional] + created_gte (datetime): [optional] + created_lte (datetime): [optional] + updated_gte (datetime): [optional] + updated_lte (datetime): [optional] + limit (int): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -697,7 +845,7 @@ def create_payment_method( async_req (bool): execute request asynchronously Returns: - PaymentMethod + {str: (bool, date, datetime, dict, float, int, list, str, none_type)} If the method is called asynchronously, returns the request thread. """ @@ -726,30 +874,57 @@ def create_payment_method( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - if payment_method_parameters is not None: - kwargs['payment_method_parameters'] = payment_method_parameters - return self.create_payment_method_endpoint.call_with_http_info(**kwargs) + kwargs['payment_method_id'] = payment_method_id + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + if payment_request_id is not None: + kwargs['payment_request_id'] = payment_request_id + if payment_method_id2 is not None: + kwargs['payment_method_id2'] = payment_method_id2 + if reference_id is not None: + kwargs['reference_id'] = reference_id + if payment_method_type is not None: + kwargs['payment_method_type'] = payment_method_type + if channel_code is not None: + kwargs['channel_code'] = channel_code + if status is not None: + kwargs['status'] = status + if currency is not None: + kwargs['currency'] = currency + if created_gte is not None: + kwargs['created_gte'] = created_gte + if created_lte is not None: + kwargs['created_lte'] = created_lte + if updated_gte is not None: + kwargs['updated_gte'] = updated_gte + if updated_lte is not None: + kwargs['updated_lte'] = updated_lte + if limit is not None: + kwargs['limit'] = limit + return self.get_payments_by_payment_method_id_endpoint.call_with_http_info(**kwargs) - def expire_payment_method( + def patch_payment_method( self, payment_method_id: str, - payment_method_expire_parameters: Optional[PaymentMethodExpireParameters] = None, + for_user_id: Optional[str] = None, + payment_method_update_parameters: Optional[PaymentMethodUpdateParameters] = None, **kwargs ) -> PaymentMethod: - """Expires a payment method # noqa: E501 + """Patch payment methods # noqa: E501 - This endpoint expires a payment method and performs unlinking if necessary # noqa: E501 + This endpoint is used to toggle the ```status``` of an e-Wallet or a Direct Debit payment method to ```ACTIVE``` or ```INACTIVE```. This is also used to update the details of an Over-the-Counter or a Virtual Account payment method. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.expire_payment_method(payment_method_id, payment_method_expire_parameters, async_req=True) + >>> thread = api.patch_payment_method(payment_method_id, for_user_id, payment_method_update_parameters, async_req=True) >>> result = thread.get() Args: payment_method_id (str): Keyword Args: - payment_method_expire_parameters (PaymentMethodExpireParameters): [optional] + for_user_id (str): [optional] + payment_method_update_parameters (PaymentMethodUpdateParameters): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -812,12 +987,15 @@ def expire_payment_method( kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['payment_method_id'] = payment_method_id - if payment_method_expire_parameters is not None: - kwargs['payment_method_expire_parameters'] = payment_method_expire_parameters - return self.expire_payment_method_endpoint.call_with_http_info(**kwargs) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + if payment_method_update_parameters is not None: + kwargs['payment_method_update_parameters'] = payment_method_update_parameters + return self.patch_payment_method_endpoint.call_with_http_info(**kwargs) def get_all_payment_methods( self, + for_user_id: Optional[str] = None, id: Optional[List[str]] = None, type: Optional[List[str]] = None, status: Optional[List[PaymentMethodStatus]] = None, @@ -835,11 +1013,12 @@ def get_all_payment_methods( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_all_payment_methods(id, type, status, reusability, customer_id, reference_id, after_id, before_id, limit, async_req=True) + >>> thread = api.get_all_payment_methods(for_user_id, id, type, status, reusability, customer_id, reference_id, after_id, before_id, limit, async_req=True) >>> result = thread.get() Keyword Args: + for_user_id (str): [optional] id ([str]): [optional] type ([str]): [optional] status ([PaymentMethodStatus]): [optional] @@ -910,6 +1089,8 @@ def get_all_payment_methods( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id if id is not None: kwargs['id'] = id if type is not None: @@ -930,24 +1111,28 @@ def get_all_payment_methods( kwargs['limit'] = limit return self.get_all_payment_methods_endpoint.call_with_http_info(**kwargs) - def get_payment_method_by_id( + def expire_payment_method( self, payment_method_id: str, + for_user_id: Optional[str] = None, + payment_method_expire_parameters: Optional[PaymentMethodExpireParameters] = None, **kwargs ) -> PaymentMethod: - """Get payment method by ID # noqa: E501 + """Expires a payment method # noqa: E501 - Get payment method by ID # noqa: E501 + This endpoint expires a payment method and performs unlinking if necessary # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_payment_method_by_id(payment_method_id, async_req=True) + >>> thread = api.expire_payment_method(payment_method_id, for_user_id, payment_method_expire_parameters, async_req=True) >>> result = thread.get() Args: payment_method_id (str): Keyword Args: + for_user_id (str): [optional] + payment_method_expire_parameters (PaymentMethodExpireParameters): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1010,158 +1195,34 @@ def get_payment_method_by_id( kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['payment_method_id'] = payment_method_id - return self.get_payment_method_by_id_endpoint.call_with_http_info(**kwargs) - - def get_payments_by_payment_method_id( - self, - payment_method_id: str, - payment_request_id: Optional[List[str]] = None, - payment_method_id2: Optional[List[str]] = None, - reference_id: Optional[List[str]] = None, - payment_method_type: Optional[List[PaymentMethodType]] = None, - channel_code: Optional[List[str]] = None, - status: Optional[List[str]] = None, - currency: Optional[List[str]] = None, - created_gte: Optional[datetime] = None, - created_lte: Optional[datetime] = None, - updated_gte: Optional[datetime] = None, - updated_lte: Optional[datetime] = None, - limit: Optional[int] = None, - **kwargs - ) -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)}: - """Returns payments with matching PaymentMethodID. # noqa: E501 - - Returns payments with matching PaymentMethodID. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_payments_by_payment_method_id(payment_method_id, payment_request_id, payment_method_id2, reference_id, payment_method_type, channel_code, status, currency, created_gte, created_lte, updated_gte, updated_lte, limit, async_req=True) - >>> result = thread.get() - - Args: - payment_method_id (str): - - Keyword Args: - payment_request_id ([str]): [optional] - payment_method_id2 ([str]): [optional] - reference_id ([str]): [optional] - payment_method_type ([PaymentMethodType]): [optional] - channel_code ([str]): [optional] - status ([str]): [optional] - currency ([str]): [optional] - created_gte (datetime): [optional] - created_lte (datetime): [optional] - updated_gte (datetime): [optional] - updated_lte (datetime): [optional] - limit (int): [optional] - _return_http_data_only (bool): response data without head status - code and headers. Default is True. - _preload_content (bool): if False, the urllib3.HTTPResponse object - will be returned without reading/decoding response data. - Default is True. - _request_timeout (int/float/tuple): timeout setting for this request. If - one number provided, it will be total request timeout. It can also - be a pair (tuple) of (connection, read) timeouts. - Default is None. - _check_input_type (bool): specifies if type checking - should be done one the data sent to the server. - Default is True. - _check_return_type (bool): specifies if type checking - should be done one the data received from the server. - Default is True. - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - async_req (bool): execute request asynchronously - - Returns: - {str: (bool, date, datetime, dict, float, int, list, str, none_type)} - If the method is called asynchronously, returns the request - thread. - """ - kwargs['async_req'] = kwargs.get( - 'async_req', False - ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True - ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True - ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None - ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True - ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True - ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['payment_method_id'] = payment_method_id - if payment_request_id is not None: - kwargs['payment_request_id'] = payment_request_id - if payment_method_id2 is not None: - kwargs['payment_method_id2'] = payment_method_id2 - if reference_id is not None: - kwargs['reference_id'] = reference_id - if payment_method_type is not None: - kwargs['payment_method_type'] = payment_method_type - if channel_code is not None: - kwargs['channel_code'] = channel_code - if status is not None: - kwargs['status'] = status - if currency is not None: - kwargs['currency'] = currency - if created_gte is not None: - kwargs['created_gte'] = created_gte - if created_lte is not None: - kwargs['created_lte'] = created_lte - if updated_gte is not None: - kwargs['updated_gte'] = updated_gte - if updated_lte is not None: - kwargs['updated_lte'] = updated_lte - if limit is not None: - kwargs['limit'] = limit - return self.get_payments_by_payment_method_id_endpoint.call_with_http_info(**kwargs) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + if payment_method_expire_parameters is not None: + kwargs['payment_method_expire_parameters'] = payment_method_expire_parameters + return self.expire_payment_method_endpoint.call_with_http_info(**kwargs) - def patch_payment_method( + def auth_payment_method( self, payment_method_id: str, - payment_method_update_parameters: Optional[PaymentMethodUpdateParameters] = None, + for_user_id: Optional[str] = None, + payment_method_auth_parameters: Optional[PaymentMethodAuthParameters] = None, **kwargs ) -> PaymentMethod: - """Patch payment methods # noqa: E501 + """Validate a payment method's linking OTP # noqa: E501 - This endpoint is used to toggle the ```status``` of an e-Wallet or a Direct Debit payment method to ```ACTIVE``` or ```INACTIVE```. This is also used to update the details of an Over-the-Counter or a Virtual Account payment method. # noqa: E501 + This endpoint validates a payment method linking OTP # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_payment_method(payment_method_id, payment_method_update_parameters, async_req=True) + >>> thread = api.auth_payment_method(payment_method_id, for_user_id, payment_method_auth_parameters, async_req=True) >>> result = thread.get() Args: payment_method_id (str): Keyword Args: - payment_method_update_parameters (PaymentMethodUpdateParameters): [optional] + for_user_id (str): [optional] + payment_method_auth_parameters (PaymentMethodAuthParameters): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1224,9 +1285,11 @@ def patch_payment_method( kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['payment_method_id'] = payment_method_id - if payment_method_update_parameters is not None: - kwargs['payment_method_update_parameters'] = payment_method_update_parameters - return self.patch_payment_method_endpoint.call_with_http_info(**kwargs) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + if payment_method_auth_parameters is not None: + kwargs['payment_method_auth_parameters'] = payment_method_auth_parameters + return self.auth_payment_method_endpoint.call_with_http_info(**kwargs) def simulate_payment( self, diff --git a/xendit/payment_request/model/direct_debit_channel_code.py b/xendit/payment_request/model/direct_debit_channel_code.py index 9f8b4b61..6d382272 100644 --- a/xendit/payment_request/model/direct_debit_channel_code.py +++ b/xendit/payment_request/model/direct_debit_channel_code.py @@ -113,6 +113,7 @@ class DirectDebitChannelCode(ModelSimple): 'RHB_FPX_BUSINESS': "RHB_FPX_BUSINESS", 'SCH_FPX_BUSINESS': "SCH_FPX_BUSINESS", 'UOB_FPX_BUSINESS': "UOB_FPX_BUSINESS", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -339,7 +340,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_request/model/direct_debit_type.py b/xendit/payment_request/model/direct_debit_type.py index 471aeaeb..98e903d7 100644 --- a/xendit/payment_request/model/direct_debit_type.py +++ b/xendit/payment_request/model/direct_debit_type.py @@ -53,6 +53,7 @@ class DirectDebitType(ModelSimple): 'DEBIT_CARD': "DEBIT_CARD", 'BANK_ACCOUNT': "BANK_ACCOUNT", 'BANK_REDIRECT': "BANK_REDIRECT", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -279,7 +280,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_request/model/e_wallet_channel_code.py b/xendit/payment_request/model/e_wallet_channel_code.py index bb9f3750..8e6be5d3 100644 --- a/xendit/payment_request/model/e_wallet_channel_code.py +++ b/xendit/payment_request/model/e_wallet_channel_code.py @@ -69,6 +69,7 @@ class EWalletChannelCode(ModelSimple): 'LINEPAY': "LINEPAY", 'TRUEMONEY': "TRUEMONEY", 'ALIPAY': "ALIPAY", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -295,7 +296,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_request/model/over_the_counter_channel_code.py b/xendit/payment_request/model/over_the_counter_channel_code.py index 9f7bc506..8189f57b 100644 --- a/xendit/payment_request/model/over_the_counter_channel_code.py +++ b/xendit/payment_request/model/over_the_counter_channel_code.py @@ -66,6 +66,7 @@ class OverTheCounterChannelCode(ModelSimple): 'ROBINSONS_BILLS': "ROBINSONS_BILLS", 'ALFAMART': "ALFAMART", 'INDOMARET': "INDOMARET", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -292,7 +293,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_request/model/payment_method_reusability.py b/xendit/payment_request/model/payment_method_reusability.py index 8ba5628f..ca7e6ed7 100644 --- a/xendit/payment_request/model/payment_method_reusability.py +++ b/xendit/payment_request/model/payment_method_reusability.py @@ -52,6 +52,7 @@ class PaymentMethodReusability(ModelSimple): ('value',): { 'MULTIPLE_USE': "MULTIPLE_USE", 'ONE_TIME_USE': "ONE_TIME_USE", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -278,7 +279,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_request/model/payment_method_status.py b/xendit/payment_request/model/payment_method_status.py index 2736d1b6..07d22288 100644 --- a/xendit/payment_request/model/payment_method_status.py +++ b/xendit/payment_request/model/payment_method_status.py @@ -55,6 +55,7 @@ class PaymentMethodStatus(ModelSimple): 'PENDING': "PENDING", 'EXPIRED': "EXPIRED", 'FAILED': "FAILED", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -281,7 +282,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_request/model/payment_method_type.py b/xendit/payment_request/model/payment_method_type.py index 6f5e6707..49c65948 100644 --- a/xendit/payment_request/model/payment_method_type.py +++ b/xendit/payment_request/model/payment_method_type.py @@ -56,6 +56,7 @@ class PaymentMethodType(ModelSimple): 'OVER_THE_COUNTER': "OVER_THE_COUNTER", 'QR_CODE': "QR_CODE", 'VIRTUAL_ACCOUNT': "VIRTUAL_ACCOUNT", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -282,7 +283,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_request/model/payment_request_capture_method.py b/xendit/payment_request/model/payment_request_capture_method.py index 942efc98..23e889e4 100644 --- a/xendit/payment_request/model/payment_request_capture_method.py +++ b/xendit/payment_request/model/payment_request_capture_method.py @@ -53,6 +53,7 @@ class PaymentRequestCaptureMethod(ModelSimple): 'None': None, 'AUTOMATIC': "AUTOMATIC", 'MANUAL': "MANUAL", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -279,7 +280,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_request/model/payment_request_country.py b/xendit/payment_request/model/payment_request_country.py index d38e4db1..6d332a90 100644 --- a/xendit/payment_request/model/payment_request_country.py +++ b/xendit/payment_request/model/payment_request_country.py @@ -55,6 +55,7 @@ class PaymentRequestCountry(ModelSimple): 'VN': "VN", 'TH': "TH", 'MY': "MY", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -281,7 +282,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_request/model/payment_request_currency.py b/xendit/payment_request/model/payment_request_currency.py index dcef1f6e..7d598c54 100644 --- a/xendit/payment_request/model/payment_request_currency.py +++ b/xendit/payment_request/model/payment_request_currency.py @@ -55,6 +55,7 @@ class PaymentRequestCurrency(ModelSimple): 'VND': "VND", 'THB': "THB", 'MYR': "MYR", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -281,7 +282,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_request/model/payment_request_initiator.py b/xendit/payment_request/model/payment_request_initiator.py index b83fca13..e982244f 100644 --- a/xendit/payment_request/model/payment_request_initiator.py +++ b/xendit/payment_request/model/payment_request_initiator.py @@ -53,6 +53,7 @@ class PaymentRequestInitiator(ModelSimple): 'None': None, 'CUSTOMER': "CUSTOMER", 'MERCHANT': "MERCHANT", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -279,7 +280,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_request/model/payment_request_status.py b/xendit/payment_request/model/payment_request_status.py index caee3aeb..5fd1749e 100644 --- a/xendit/payment_request/model/payment_request_status.py +++ b/xendit/payment_request/model/payment_request_status.py @@ -58,6 +58,7 @@ class PaymentRequestStatus(ModelSimple): 'VOIDED': "VOIDED", 'UNKNOWN': "UNKNOWN", 'AWAITING_CAPTURE': "AWAITING_CAPTURE", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -284,7 +285,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_request/model/qr_code_channel_code.py b/xendit/payment_request/model/qr_code_channel_code.py index 58828be0..99e40b85 100644 --- a/xendit/payment_request/model/qr_code_channel_code.py +++ b/xendit/payment_request/model/qr_code_channel_code.py @@ -55,6 +55,7 @@ class QRCodeChannelCode(ModelSimple): 'RCBC': "RCBC", 'LINKAJA': "LINKAJA", 'PROMPTPAY': "PROMPTPAY", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -281,7 +282,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_request/model/virtual_account_channel_code.py b/xendit/payment_request/model/virtual_account_channel_code.py index 3484b326..2fe5a260 100644 --- a/xendit/payment_request/model/virtual_account_channel_code.py +++ b/xendit/payment_request/model/virtual_account_channel_code.py @@ -65,6 +65,7 @@ class VirtualAccountChannelCode(ModelSimple): 'WOORI': "WOORI", 'MSB': "MSB", 'STANDARD_CHARTERED': "STANDARD_CHARTERED", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -291,7 +292,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payment_request/payment_request_api.py b/xendit/payment_request/payment_request_api.py index 10186bff..d9d02884 100644 --- a/xendit/payment_request/payment_request_api.py +++ b/xendit/payment_request/payment_request_api.py @@ -32,23 +32,22 @@ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client - self.authorize_payment_request_endpoint = _Endpoint( + self.create_payment_request_endpoint = _Endpoint( settings={ 'response_type': (PaymentRequest,), 'auth': [], - 'endpoint_path': '/payment_requests/{paymentRequestId}/auth', - 'operation_id': 'authorize_payment_request', + 'endpoint_path': '/payment_requests', + 'operation_id': 'create_payment_request', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'payment_request_id', - 'payment_request_auth_parameters', - ], - 'required': [ - 'payment_request_id', + 'idempotency_key', + 'for_user_id', + 'payment_request_parameters', ], + 'required': [], 'nullable': [ ], 'enum': [ @@ -62,17 +61,21 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'payment_request_id': + 'idempotency_key': (str,), - 'payment_request_auth_parameters': - (PaymentRequestAuthParameters,), + 'for_user_id': + (str,), + 'payment_request_parameters': + (PaymentRequestParameters,), }, 'attribute_map': { - 'payment_request_id': 'paymentRequestId', + 'idempotency_key': 'idempotency-key', + 'for_user_id': 'for-user-id', }, 'location_map': { - 'payment_request_id': 'path', - 'payment_request_auth_parameters': 'body', + 'idempotency_key': 'header', + 'for_user_id': 'header', + 'payment_request_parameters': 'body', }, 'collection_format_map': { } @@ -87,19 +90,19 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.capture_payment_request_endpoint = _Endpoint( + self.get_payment_request_by_id_endpoint = _Endpoint( settings={ - 'response_type': (Capture,), + 'response_type': (PaymentRequest,), 'auth': [], - 'endpoint_path': '/payment_requests/{paymentRequestId}/captures', - 'operation_id': 'capture_payment_request', - 'http_method': 'POST', + 'endpoint_path': '/payment_requests/{paymentRequestId}', + 'operation_id': 'get_payment_request_by_id', + 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'payment_request_id', - 'capture_parameters', + 'for_user_id', ], 'required': [ 'payment_request_id', @@ -119,15 +122,16 @@ def __init__(self, api_client=None): 'openapi_types': { 'payment_request_id': (str,), - 'capture_parameters': - (CaptureParameters,), + 'for_user_id': + (str,), }, 'attribute_map': { 'payment_request_id': 'paymentRequestId', + 'for_user_id': 'for-user-id', }, 'location_map': { 'payment_request_id': 'path', - 'capture_parameters': 'body', + 'for_user_id': 'header', }, 'collection_format_map': { } @@ -136,27 +140,28 @@ def __init__(self, api_client=None): 'accept': [ 'application/json' ], - 'content_type': [ - 'application/json' - ] + 'content_type': [], }, api_client=api_client ) - self.create_payment_request_endpoint = _Endpoint( + self.get_payment_request_captures_endpoint = _Endpoint( settings={ - 'response_type': (PaymentRequest,), + 'response_type': (CaptureListResponse,), 'auth': [], - 'endpoint_path': '/payment_requests', - 'operation_id': 'create_payment_request', - 'http_method': 'POST', + 'endpoint_path': '/payment_requests/{paymentRequestId}/captures', + 'operation_id': 'get_payment_request_captures', + 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'idempotency_key', - 'payment_request_parameters', + 'payment_request_id', + 'for_user_id', + 'limit', + ], + 'required': [ + 'payment_request_id', ], - 'required': [], 'nullable': [ ], 'enum': [ @@ -170,17 +175,22 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'idempotency_key': + 'payment_request_id': (str,), - 'payment_request_parameters': - (PaymentRequestParameters,), + 'for_user_id': + (str,), + 'limit': + (int,), }, 'attribute_map': { - 'idempotency_key': 'idempotency-key', + 'payment_request_id': 'paymentRequestId', + 'for_user_id': 'for-user-id', + 'limit': 'limit', }, 'location_map': { - 'idempotency_key': 'header', - 'payment_request_parameters': 'body', + 'payment_request_id': 'path', + 'for_user_id': 'header', + 'limit': 'query', }, 'collection_format_map': { } @@ -189,9 +199,7 @@ def __init__(self, api_client=None): 'accept': [ 'application/json' ], - 'content_type': [ - 'application/json' - ] + 'content_type': [], }, api_client=api_client ) @@ -206,6 +214,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ + 'for_user_id', 'reference_id', 'id', 'customer_id', @@ -227,6 +236,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { + 'for_user_id': + (str,), 'reference_id': ([str],), 'id': @@ -241,6 +252,7 @@ def __init__(self, api_client=None): (str,), }, 'attribute_map': { + 'for_user_id': 'for-user-id', 'reference_id': 'reference_id', 'id': 'id', 'customer_id': 'customer_id', @@ -249,6 +261,7 @@ def __init__(self, api_client=None): 'after_id': 'after_id', }, 'location_map': { + 'for_user_id': 'header', 'reference_id': 'query', 'id': 'query', 'customer_id': 'query', @@ -270,18 +283,20 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_payment_request_by_id_endpoint = _Endpoint( + self.capture_payment_request_endpoint = _Endpoint( settings={ - 'response_type': (PaymentRequest,), + 'response_type': (Capture,), 'auth': [], - 'endpoint_path': '/payment_requests/{paymentRequestId}', - 'operation_id': 'get_payment_request_by_id', - 'http_method': 'GET', + 'endpoint_path': '/payment_requests/{paymentRequestId}/captures', + 'operation_id': 'capture_payment_request', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ 'payment_request_id', + 'for_user_id', + 'capture_parameters', ], 'required': [ 'payment_request_id', @@ -301,12 +316,19 @@ def __init__(self, api_client=None): 'openapi_types': { 'payment_request_id': (str,), + 'for_user_id': + (str,), + 'capture_parameters': + (CaptureParameters,), }, 'attribute_map': { 'payment_request_id': 'paymentRequestId', + 'for_user_id': 'for-user-id', }, 'location_map': { 'payment_request_id': 'path', + 'for_user_id': 'header', + 'capture_parameters': 'body', }, 'collection_format_map': { } @@ -315,23 +337,26 @@ def __init__(self, api_client=None): 'accept': [ 'application/json' ], - 'content_type': [], + 'content_type': [ + 'application/json' + ] }, api_client=api_client ) - self.get_payment_request_captures_endpoint = _Endpoint( + self.authorize_payment_request_endpoint = _Endpoint( settings={ - 'response_type': (CaptureListResponse,), + 'response_type': (PaymentRequest,), 'auth': [], - 'endpoint_path': '/payment_requests/{paymentRequestId}/captures', - 'operation_id': 'get_payment_request_captures', - 'http_method': 'GET', + 'endpoint_path': '/payment_requests/{paymentRequestId}/auth', + 'operation_id': 'authorize_payment_request', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ 'payment_request_id', - 'limit', + 'for_user_id', + 'payment_request_auth_parameters', ], 'required': [ 'payment_request_id', @@ -351,16 +376,19 @@ def __init__(self, api_client=None): 'openapi_types': { 'payment_request_id': (str,), - 'limit': - (int,), + 'for_user_id': + (str,), + 'payment_request_auth_parameters': + (PaymentRequestAuthParameters,), }, 'attribute_map': { 'payment_request_id': 'paymentRequestId', - 'limit': 'limit', + 'for_user_id': 'for-user-id', }, 'location_map': { 'payment_request_id': 'path', - 'limit': 'query', + 'for_user_id': 'header', + 'payment_request_auth_parameters': 'body', }, 'collection_format_map': { } @@ -369,7 +397,9 @@ def __init__(self, api_client=None): 'accept': [ 'application/json' ], - 'content_type': [], + 'content_type': [ + 'application/json' + ] }, api_client=api_client ) @@ -385,6 +415,7 @@ def __init__(self, api_client=None): params_map={ 'all': [ 'payment_request_id', + 'for_user_id', ], 'required': [ 'payment_request_id', @@ -404,12 +435,16 @@ def __init__(self, api_client=None): 'openapi_types': { 'payment_request_id': (str,), + 'for_user_id': + (str,), }, 'attribute_map': { 'payment_request_id': 'paymentRequestId', + 'for_user_id': 'for-user-id', }, 'location_map': { 'payment_request_id': 'path', + 'for_user_id': 'header', }, 'collection_format_map': { } @@ -423,26 +458,27 @@ def __init__(self, api_client=None): api_client=api_client ) - def authorize_payment_request( + def create_payment_request( self, - payment_request_id: str, - payment_request_auth_parameters: Optional[PaymentRequestAuthParameters] = None, + idempotency_key: Optional[str] = None, + for_user_id: Optional[str] = None, + payment_request_parameters: Optional[PaymentRequestParameters] = None, **kwargs ) -> PaymentRequest: - """Payment Request Authorize # noqa: E501 + """Create Payment Request # noqa: E501 - Payment Request Authorize # noqa: E501 + Create Payment Request # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.authorize_payment_request(payment_request_id, payment_request_auth_parameters, async_req=True) + >>> thread = api.create_payment_request(idempotency_key, for_user_id, payment_request_parameters, async_req=True) >>> result = thread.get() - Args: - payment_request_id (str): Keyword Args: - payment_request_auth_parameters (PaymentRequestAuthParameters): [optional] + idempotency_key (str): [optional] + for_user_id (str): [optional] + payment_request_parameters (PaymentRequestParameters): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -504,31 +540,34 @@ def authorize_payment_request( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['payment_request_id'] = payment_request_id - if payment_request_auth_parameters is not None: - kwargs['payment_request_auth_parameters'] = payment_request_auth_parameters - return self.authorize_payment_request_endpoint.call_with_http_info(**kwargs) + if idempotency_key is not None: + kwargs['idempotency_key'] = idempotency_key + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + if payment_request_parameters is not None: + kwargs['payment_request_parameters'] = payment_request_parameters + return self.create_payment_request_endpoint.call_with_http_info(**kwargs) - def capture_payment_request( + def get_payment_request_by_id( self, payment_request_id: str, - capture_parameters: Optional[CaptureParameters] = None, + for_user_id: Optional[str] = None, **kwargs - ) -> Capture: - """Payment Request Capture # noqa: E501 + ) -> PaymentRequest: + """Get payment request by ID # noqa: E501 - Payment Request Capture # noqa: E501 + Get payment request by ID # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.capture_payment_request(payment_request_id, capture_parameters, async_req=True) + >>> thread = api.get_payment_request_by_id(payment_request_id, for_user_id, async_req=True) >>> result = thread.get() Args: payment_request_id (str): Keyword Args: - capture_parameters (CaptureParameters): [optional] + for_user_id (str): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -561,7 +600,7 @@ def capture_payment_request( async_req (bool): execute request asynchronously Returns: - Capture + PaymentRequest If the method is called asynchronously, returns the request thread. """ @@ -591,29 +630,32 @@ def capture_payment_request( kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['payment_request_id'] = payment_request_id - if capture_parameters is not None: - kwargs['capture_parameters'] = capture_parameters - return self.capture_payment_request_endpoint.call_with_http_info(**kwargs) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + return self.get_payment_request_by_id_endpoint.call_with_http_info(**kwargs) - def create_payment_request( + def get_payment_request_captures( self, - idempotency_key: Optional[str] = None, - payment_request_parameters: Optional[PaymentRequestParameters] = None, + payment_request_id: str, + for_user_id: Optional[str] = None, + limit: Optional[int] = None, **kwargs - ) -> PaymentRequest: - """Create Payment Request # noqa: E501 + ) -> CaptureListResponse: + """Get Payment Request Capture # noqa: E501 - Create Payment Request # noqa: E501 + Get Payment Request Capture # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_payment_request(idempotency_key, payment_request_parameters, async_req=True) + >>> thread = api.get_payment_request_captures(payment_request_id, for_user_id, limit, async_req=True) >>> result = thread.get() + Args: + payment_request_id (str): Keyword Args: - idempotency_key (str): [optional] - payment_request_parameters (PaymentRequestParameters): [optional] + for_user_id (str): [optional] + limit (int): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -646,7 +688,7 @@ def create_payment_request( async_req (bool): execute request asynchronously Returns: - PaymentRequest + CaptureListResponse If the method is called asynchronously, returns the request thread. """ @@ -675,14 +717,16 @@ def create_payment_request( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - if idempotency_key is not None: - kwargs['idempotency_key'] = idempotency_key - if payment_request_parameters is not None: - kwargs['payment_request_parameters'] = payment_request_parameters - return self.create_payment_request_endpoint.call_with_http_info(**kwargs) + kwargs['payment_request_id'] = payment_request_id + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + if limit is not None: + kwargs['limit'] = limit + return self.get_payment_request_captures_endpoint.call_with_http_info(**kwargs) def get_all_payment_requests( self, + for_user_id: Optional[str] = None, reference_id: Optional[List[str]] = None, id: Optional[List[str]] = None, customer_id: Optional[List[str]] = None, @@ -697,11 +741,12 @@ def get_all_payment_requests( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_all_payment_requests(reference_id, id, customer_id, limit, before_id, after_id, async_req=True) + >>> thread = api.get_all_payment_requests(for_user_id, reference_id, id, customer_id, limit, before_id, after_id, async_req=True) >>> result = thread.get() Keyword Args: + for_user_id (str): [optional] reference_id ([str]): [optional] id ([str]): [optional] customer_id ([str]): [optional] @@ -769,6 +814,8 @@ def get_all_payment_requests( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id if reference_id is not None: kwargs['reference_id'] = reference_id if id is not None: @@ -783,24 +830,28 @@ def get_all_payment_requests( kwargs['after_id'] = after_id return self.get_all_payment_requests_endpoint.call_with_http_info(**kwargs) - def get_payment_request_by_id( + def capture_payment_request( self, payment_request_id: str, + for_user_id: Optional[str] = None, + capture_parameters: Optional[CaptureParameters] = None, **kwargs - ) -> PaymentRequest: - """Get payment request by ID # noqa: E501 + ) -> Capture: + """Payment Request Capture # noqa: E501 - Get payment request by ID # noqa: E501 + Payment Request Capture # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_payment_request_by_id(payment_request_id, async_req=True) + >>> thread = api.capture_payment_request(payment_request_id, for_user_id, capture_parameters, async_req=True) >>> result = thread.get() Args: payment_request_id (str): Keyword Args: + for_user_id (str): [optional] + capture_parameters (CaptureParameters): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -833,7 +884,7 @@ def get_payment_request_by_id( async_req (bool): execute request asynchronously Returns: - PaymentRequest + Capture If the method is called asynchronously, returns the request thread. """ @@ -863,28 +914,34 @@ def get_payment_request_by_id( kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['payment_request_id'] = payment_request_id - return self.get_payment_request_by_id_endpoint.call_with_http_info(**kwargs) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + if capture_parameters is not None: + kwargs['capture_parameters'] = capture_parameters + return self.capture_payment_request_endpoint.call_with_http_info(**kwargs) - def get_payment_request_captures( + def authorize_payment_request( self, payment_request_id: str, - limit: Optional[int] = None, + for_user_id: Optional[str] = None, + payment_request_auth_parameters: Optional[PaymentRequestAuthParameters] = None, **kwargs - ) -> CaptureListResponse: - """Get Payment Request Capture # noqa: E501 + ) -> PaymentRequest: + """Payment Request Authorize # noqa: E501 - Get Payment Request Capture # noqa: E501 + Payment Request Authorize # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_payment_request_captures(payment_request_id, limit, async_req=True) + >>> thread = api.authorize_payment_request(payment_request_id, for_user_id, payment_request_auth_parameters, async_req=True) >>> result = thread.get() Args: payment_request_id (str): Keyword Args: - limit (int): [optional] + for_user_id (str): [optional] + payment_request_auth_parameters (PaymentRequestAuthParameters): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -917,7 +974,7 @@ def get_payment_request_captures( async_req (bool): execute request asynchronously Returns: - CaptureListResponse + PaymentRequest If the method is called asynchronously, returns the request thread. """ @@ -947,13 +1004,16 @@ def get_payment_request_captures( kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['payment_request_id'] = payment_request_id - if limit is not None: - kwargs['limit'] = limit - return self.get_payment_request_captures_endpoint.call_with_http_info(**kwargs) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + if payment_request_auth_parameters is not None: + kwargs['payment_request_auth_parameters'] = payment_request_auth_parameters + return self.authorize_payment_request_endpoint.call_with_http_info(**kwargs) def resend_payment_request_auth( self, payment_request_id: str, + for_user_id: Optional[str] = None, **kwargs ) -> PaymentRequest: """Payment Request Resend Auth # noqa: E501 @@ -962,13 +1022,14 @@ def resend_payment_request_auth( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.resend_payment_request_auth(payment_request_id, async_req=True) + >>> thread = api.resend_payment_request_auth(payment_request_id, for_user_id, async_req=True) >>> result = thread.get() Args: payment_request_id (str): Keyword Args: + for_user_id (str): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1031,5 +1092,7 @@ def resend_payment_request_auth( kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['payment_request_id'] = payment_request_id + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id return self.resend_payment_request_auth_endpoint.call_with_http_info(**kwargs) diff --git a/xendit/payout/model/channel_account_type.py b/xendit/payout/model/channel_account_type.py index c0aa4efd..417807c5 100644 --- a/xendit/payout/model/channel_account_type.py +++ b/xendit/payout/model/channel_account_type.py @@ -55,6 +55,7 @@ class ChannelAccountType(ModelSimple): 'PASSPORT': "PASSPORT", 'BUSINESS_REGISTRATION': "BUSINESS_REGISTRATION", 'BANK_ACCOUNT': "BANK_ACCOUNT", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -281,7 +282,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payout/model/channel_category.py b/xendit/payout/model/channel_category.py index 5b80071f..f6ce5216 100644 --- a/xendit/payout/model/channel_category.py +++ b/xendit/payout/model/channel_category.py @@ -53,6 +53,7 @@ class ChannelCategory(ModelSimple): 'BANK': "BANK", 'EWALLET': "EWALLET", 'OTC': "OTC", + 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -279,7 +280,10 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value + try: + self.value = value + except ValueError: + self.value = self.allowed_values[('value',)]['XENDIT_ENUM_DEFAULT_FALLBACK'] if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( diff --git a/xendit/payout/payout_api.py b/xendit/payout/payout_api.py index c055676b..f731dd01 100644 --- a/xendit/payout/payout_api.py +++ b/xendit/payout/payout_api.py @@ -32,55 +32,6 @@ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client - self.cancel_payout_endpoint = _Endpoint( - settings={ - 'response_type': (GetPayouts200ResponseDataInner,), - 'auth': [], - 'endpoint_path': '/v2/payouts/{id}/cancel', - 'operation_id': 'cancel_payout', - 'http_method': 'POST', - 'servers': None, - }, - params_map={ - 'all': [ - 'id', - ], - 'required': [ - 'id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'id': - (str,), - }, - 'attribute_map': { - 'id': 'id', - }, - 'location_map': { - 'id': 'path', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/json' - ], - 'content_type': [], - }, - api_client=api_client - ) self.create_payout_endpoint = _Endpoint( settings={ 'response_type': (GetPayouts200ResponseDataInner,), @@ -153,6 +104,7 @@ def __init__(self, api_client=None): params_map={ 'all': [ 'id', + 'for_user_id', ], 'required': [ 'id', @@ -172,12 +124,16 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), + 'for_user_id': + (str,), }, 'attribute_map': { 'id': 'id', + 'for_user_id': 'for-user-id', }, 'location_map': { 'id': 'path', + 'for_user_id': 'header', }, 'collection_format_map': { } @@ -204,6 +160,7 @@ def __init__(self, api_client=None): 'currency', 'channel_category', 'channel_code', + 'for_user_id', ], 'required': [], 'nullable': [ @@ -225,16 +182,20 @@ def __init__(self, api_client=None): ([ChannelCategory],), 'channel_code': (str,), + 'for_user_id': + (str,), }, 'attribute_map': { 'currency': 'currency', 'channel_category': 'channel_category', 'channel_code': 'channel_code', + 'for_user_id': 'for-user-id', }, 'location_map': { 'currency': 'query', 'channel_category': 'query', 'channel_code': 'query', + 'for_user_id': 'header', }, 'collection_format_map': { 'channel_category': 'csv', @@ -263,6 +224,7 @@ def __init__(self, api_client=None): 'limit', 'after_id', 'before_id', + 'for_user_id', ], 'required': [ 'reference_id', @@ -288,18 +250,76 @@ def __init__(self, api_client=None): (str,), 'before_id': (str,), + 'for_user_id': + (str,), }, 'attribute_map': { 'reference_id': 'reference_id', 'limit': 'limit', 'after_id': 'after_id', 'before_id': 'before_id', + 'for_user_id': 'for-user-id', }, 'location_map': { 'reference_id': 'query', 'limit': 'query', 'after_id': 'query', 'before_id': 'query', + 'for_user_id': 'header', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.cancel_payout_endpoint = _Endpoint( + settings={ + 'response_type': (GetPayouts200ResponseDataInner,), + 'auth': [], + 'endpoint_path': '/v2/payouts/{id}/cancel', + 'operation_id': 'cancel_payout', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + 'for_user_id', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + 'for_user_id': + (str,), + }, + 'attribute_map': { + 'id': 'id', + 'for_user_id': 'for-user-id', + }, + 'location_map': { + 'id': 'path', + 'for_user_id': 'header', }, 'collection_format_map': { } @@ -313,23 +333,27 @@ def __init__(self, api_client=None): api_client=api_client ) - def cancel_payout( + def create_payout( self, - id: str, + idempotency_key: str, + for_user_id: Optional[str] = None, + create_payout_request: Optional[CreatePayoutRequest] = None, **kwargs ) -> GetPayouts200ResponseDataInner: - """API to cancel requested payouts that have not yet been sent to partner banks and e-wallets. Cancellation is possible if the payout has not been sent out via our partner and when payout status is ACCEPTED. # noqa: E501 + """API to send money at scale to bank accounts & eWallets # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.cancel_payout(id, async_req=True) + >>> thread = api.create_payout(idempotency_key, for_user_id, create_payout_request, async_req=True) >>> result = thread.get() Args: - id (str): Payout id returned from the response of /v2/payouts + idempotency_key (str): A unique key to prevent duplicate requests from pushing through our system. No expiration. Keyword Args: + for_user_id (str): The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information.. [optional] + create_payout_request (CreatePayoutRequest): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -391,30 +415,32 @@ def cancel_payout( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['id'] = id - return self.cancel_payout_endpoint.call_with_http_info(**kwargs) + kwargs['idempotency_key'] = idempotency_key + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + if create_payout_request is not None: + kwargs['create_payout_request'] = create_payout_request + return self.create_payout_endpoint.call_with_http_info(**kwargs) - def create_payout( + def get_payout_by_id( self, - idempotency_key: str, + id: str, for_user_id: Optional[str] = None, - create_payout_request: Optional[CreatePayoutRequest] = None, **kwargs ) -> GetPayouts200ResponseDataInner: - """API to send money at scale to bank accounts & eWallets # noqa: E501 + """API to fetch the current status, or details of the payout # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_payout(idempotency_key, for_user_id, create_payout_request, async_req=True) + >>> thread = api.get_payout_by_id(id, for_user_id, async_req=True) >>> result = thread.get() Args: - idempotency_key (str): A unique key to prevent duplicate requests from pushing through our system. No expiration. + id (str): Payout id returned from the response of /v2/payouts Keyword Args: for_user_id (str): The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information.. [optional] - create_payout_request (CreatePayoutRequest): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -476,30 +502,33 @@ def create_payout( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['idempotency_key'] = idempotency_key + kwargs['id'] = id if for_user_id is not None: kwargs['for_user_id'] = for_user_id - if create_payout_request is not None: - kwargs['create_payout_request'] = create_payout_request - return self.create_payout_endpoint.call_with_http_info(**kwargs) + return self.get_payout_by_id_endpoint.call_with_http_info(**kwargs) - def get_payout_by_id( + def get_payout_channels( self, - id: str, + currency: Optional[str] = None, + channel_category: Optional[List[ChannelCategory]] = None, + channel_code: Optional[str] = None, + for_user_id: Optional[str] = None, **kwargs - ) -> GetPayouts200ResponseDataInner: - """API to fetch the current status, or details of the payout # noqa: E501 + ) -> [Channel]: + """API providing the current list of banks and e-wallets we support for payouts for both regions # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_payout_by_id(id, async_req=True) + >>> thread = api.get_payout_channels(currency, channel_category, channel_code, for_user_id, async_req=True) >>> result = thread.get() - Args: - id (str): Payout id returned from the response of /v2/payouts Keyword Args: + currency (str): Filter channels by currency from ISO-4217 values. [optional] + channel_category ([ChannelCategory]): Filter channels by category. [optional] + channel_code (str): Filter channels by channel code, prefixed by ISO-3166 country code. [optional] + for_user_id (str): The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -532,7 +561,7 @@ def get_payout_by_id( async_req (bool): execute request asynchronously Returns: - GetPayouts200ResponseDataInner + [Channel] If the method is called asynchronously, returns the request thread. """ @@ -561,29 +590,41 @@ def get_payout_by_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['id'] = id - return self.get_payout_by_id_endpoint.call_with_http_info(**kwargs) + if currency is not None: + kwargs['currency'] = currency + if channel_category is not None: + kwargs['channel_category'] = channel_category + if channel_code is not None: + kwargs['channel_code'] = channel_code + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + return self.get_payout_channels_endpoint.call_with_http_info(**kwargs) - def get_payout_channels( + def get_payouts( self, - currency: Optional[str] = None, - channel_category: Optional[List[ChannelCategory]] = None, - channel_code: Optional[str] = None, + reference_id: str, + limit: Optional[float] = None, + after_id: Optional[str] = None, + before_id: Optional[str] = None, + for_user_id: Optional[str] = None, **kwargs - ) -> [Channel]: - """API providing the current list of banks and e-wallets we support for payouts for both regions # noqa: E501 + ) -> GetPayouts200Response: + """API to retrieve all matching payouts with reference ID # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_payout_channels(currency, channel_category, channel_code, async_req=True) + >>> thread = api.get_payouts(reference_id, limit, after_id, before_id, for_user_id, async_req=True) >>> result = thread.get() + Args: + reference_id (str): Reference_id provided when creating the payout Keyword Args: - currency (str): Filter channels by currency from ISO-4217 values. [optional] - channel_category ([ChannelCategory]): Filter channels by category. [optional] - channel_code (str): Filter channels by channel code, prefixed by ISO-3166 country code. [optional] + limit (float): Number of records to fetch per API call. [optional] + after_id (str): Used to fetch record after this payout unique id. [optional] + before_id (str): Used to fetch record before this payout unique id. [optional] + for_user_id (str): The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -616,7 +657,7 @@ def get_payout_channels( async_req (bool): execute request asynchronously Returns: - [Channel] + GetPayouts200Response If the method is called asynchronously, returns the request thread. """ @@ -645,37 +686,36 @@ def get_payout_channels( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - if currency is not None: - kwargs['currency'] = currency - if channel_category is not None: - kwargs['channel_category'] = channel_category - if channel_code is not None: - kwargs['channel_code'] = channel_code - return self.get_payout_channels_endpoint.call_with_http_info(**kwargs) + kwargs['reference_id'] = reference_id + if limit is not None: + kwargs['limit'] = limit + if after_id is not None: + kwargs['after_id'] = after_id + if before_id is not None: + kwargs['before_id'] = before_id + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + return self.get_payouts_endpoint.call_with_http_info(**kwargs) - def get_payouts( + def cancel_payout( self, - reference_id: str, - limit: Optional[float] = None, - after_id: Optional[str] = None, - before_id: Optional[str] = None, + id: str, + for_user_id: Optional[str] = None, **kwargs - ) -> GetPayouts200Response: - """API to retrieve all matching payouts with reference ID # noqa: E501 + ) -> GetPayouts200ResponseDataInner: + """API to cancel requested payouts that have not yet been sent to partner banks and e-wallets. Cancellation is possible if the payout has not been sent out via our partner and when payout status is ACCEPTED. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_payouts(reference_id, limit, after_id, before_id, async_req=True) + >>> thread = api.cancel_payout(id, for_user_id, async_req=True) >>> result = thread.get() Args: - reference_id (str): Reference_id provided when creating the payout + id (str): Payout id returned from the response of /v2/payouts Keyword Args: - limit (float): Number of records to fetch per API call. [optional] - after_id (str): Used to fetch record after this payout unique id. [optional] - before_id (str): Used to fetch record before this payout unique id. [optional] + for_user_id (str): The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -708,7 +748,7 @@ def get_payouts( async_req (bool): execute request asynchronously Returns: - GetPayouts200Response + GetPayouts200ResponseDataInner If the method is called asynchronously, returns the request thread. """ @@ -737,12 +777,8 @@ def get_payouts( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['reference_id'] = reference_id - if limit is not None: - kwargs['limit'] = limit - if after_id is not None: - kwargs['after_id'] = after_id - if before_id is not None: - kwargs['before_id'] = before_id - return self.get_payouts_endpoint.call_with_http_info(**kwargs) + kwargs['id'] = id + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + return self.cancel_payout_endpoint.call_with_http_info(**kwargs) diff --git a/xendit/refund/model/__init__.py b/xendit/refund/model/__init__.py index db6bbecd..e5606ee0 100644 --- a/xendit/refund/model/__init__.py +++ b/xendit/refund/model/__init__.py @@ -15,6 +15,6 @@ from xendit.refund.model.create_refund404_response import CreateRefund404Response from xendit.refund.model.create_refund409_response import CreateRefund409Response from xendit.refund.model.create_refund503_response import CreateRefund503Response -from xendit.refund.model.create_refund_default_response import CreateRefundDefaultResponse +from xendit.refund.model.get_all_refunds_default_response import GetAllRefundsDefaultResponse from xendit.refund.model.refund import Refund from xendit.refund.model.refund_list import RefundList diff --git a/xendit/refund/model/create_refund.py b/xendit/refund/model/create_refund.py index d085db15..98f66297 100644 --- a/xendit/refund/model/create_refund.py +++ b/xendit/refund/model/create_refund.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/xendit/refund/model/create_refund400_response.py b/xendit/refund/model/create_refund400_response.py index 1557a0d3..6847ab30 100644 --- a/xendit/refund/model/create_refund400_response.py +++ b/xendit/refund/model/create_refund400_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/xendit/refund/model/create_refund403_response.py b/xendit/refund/model/create_refund403_response.py index 31eb9a5b..10a14e92 100644 --- a/xendit/refund/model/create_refund403_response.py +++ b/xendit/refund/model/create_refund403_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/xendit/refund/model/create_refund404_response.py b/xendit/refund/model/create_refund404_response.py index 8bf87031..afe77778 100644 --- a/xendit/refund/model/create_refund404_response.py +++ b/xendit/refund/model/create_refund404_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/xendit/refund/model/create_refund409_response.py b/xendit/refund/model/create_refund409_response.py index 6c27261b..2dbdf873 100644 --- a/xendit/refund/model/create_refund409_response.py +++ b/xendit/refund/model/create_refund409_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/xendit/refund/model/create_refund503_response.py b/xendit/refund/model/create_refund503_response.py index 1a57d339..92940a5c 100644 --- a/xendit/refund/model/create_refund503_response.py +++ b/xendit/refund/model/create_refund503_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/xendit/refund/model/create_refund_default_response.py b/xendit/refund/model/get_all_refunds_default_response.py similarity index 98% rename from xendit/refund/model/create_refund_default_response.py rename to xendit/refund/model/get_all_refunds_default_response.py index 3dadc869..89778f49 100644 --- a/xendit/refund/model/create_refund_default_response.py +++ b/xendit/refund/model/get_all_refunds_default_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ @@ -28,7 +28,7 @@ def lazy_import(): pass -class CreateRefundDefaultResponse(ModelNormal): +class GetAllRefundsDefaultResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -101,7 +101,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """CreateRefundDefaultResponse - a model defined in OpenAPI + """GetAllRefundsDefaultResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -194,7 +194,7 @@ def __init__(self, message: str | None = None, *args, **kwargs ): # noqa: E501 - """CreateRefundDefaultResponse - a model defined in OpenAPI + """GetAllRefundsDefaultResponse - a model defined in OpenAPI Keyword Args: diff --git a/xendit/refund/model/refund.py b/xendit/refund/model/refund.py index c29e3ad2..30a0d867 100644 --- a/xendit/refund/model/refund.py +++ b/xendit/refund/model/refund.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/xendit/refund/model/refund_list.py b/xendit/refund/model/refund_list.py index 562352eb..eb37df2b 100644 --- a/xendit/refund/model/refund_list.py +++ b/xendit/refund/model/refund_list.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.2.3 + The version of the XENDIT API: 1.3.3 """ diff --git a/xendit/refund/refund_api.py b/xendit/refund/refund_api.py index 272def9a..27a19a9b 100644 --- a/xendit/refund/refund_api.py +++ b/xendit/refund/refund_api.py @@ -3,7 +3,7 @@ This API is used for the unified refund service # noqa: E501 - The version of the OpenAPI document: 1.2.3 + The version of the OpenAPI document: 1.3.3 """ import re # noqa: F401 @@ -32,23 +32,22 @@ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client - self.cancel_refund_endpoint = _Endpoint( + self.create_refund_endpoint = _Endpoint( settings={ 'response_type': (Refund,), 'auth': [], - 'endpoint_path': '/refunds/{refundID}/cancel', - 'operation_id': 'cancel_refund', + 'endpoint_path': '/refunds', + 'operation_id': 'create_refund', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'refund_id', 'idempotency_key', + 'for_user_id', + 'create_refund', ], - 'required': [ - 'refund_id', - ], + 'required': [], 'nullable': [ ], 'enum': [ @@ -62,18 +61,21 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'refund_id': - (str,), 'idempotency_key': (str,), + 'for_user_id': + (str,), + 'create_refund': + (CreateRefund,), }, 'attribute_map': { - 'refund_id': 'refundID', 'idempotency_key': 'idempotency-key', + 'for_user_id': 'for-user-id', }, 'location_map': { - 'refund_id': 'path', 'idempotency_key': 'header', + 'for_user_id': 'header', + 'create_refund': 'body', }, 'collection_format_map': { } @@ -82,25 +84,30 @@ def __init__(self, api_client=None): 'accept': [ 'application/json' ], - 'content_type': [], + 'content_type': [ + 'application/json' + ] }, api_client=api_client ) - self.create_refund_endpoint = _Endpoint( + self.get_refund_endpoint = _Endpoint( settings={ 'response_type': (Refund,), 'auth': [], - 'endpoint_path': '/refunds', - 'operation_id': 'create_refund', - 'http_method': 'POST', + 'endpoint_path': '/refunds/{refundID}', + 'operation_id': 'get_refund', + 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ + 'refund_id', 'idempotency_key', - 'create_refund', + 'for_user_id', + ], + 'required': [ + 'refund_id', ], - 'required': [], 'nullable': [ ], 'enum': [ @@ -114,17 +121,22 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { + 'refund_id': + (str,), 'idempotency_key': (str,), - 'create_refund': - (CreateRefund,), + 'for_user_id': + (str,), }, 'attribute_map': { + 'refund_id': 'refundID', 'idempotency_key': 'idempotency-key', + 'for_user_id': 'for-user-id', }, 'location_map': { + 'refund_id': 'path', 'idempotency_key': 'header', - 'create_refund': 'body', + 'for_user_id': 'header', }, 'collection_format_map': { } @@ -133,9 +145,7 @@ def __init__(self, api_client=None): 'accept': [ 'application/json' ], - 'content_type': [ - 'application/json' - ] + 'content_type': [], }, api_client=api_client ) @@ -143,13 +153,21 @@ def __init__(self, api_client=None): settings={ 'response_type': (RefundList,), 'auth': [], - 'endpoint_path': '/refunds/', + 'endpoint_path': '/refunds', 'operation_id': 'get_all_refunds', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ + 'for_user_id', + 'payment_request_id', + 'invoice_id', + 'payment_method_type', + 'channel_code', + 'limit', + 'after_id', + 'before_id', ], 'required': [], 'nullable': [ @@ -165,10 +183,42 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { + 'for_user_id': + (str,), + 'payment_request_id': + (str,), + 'invoice_id': + (str,), + 'payment_method_type': + (str,), + 'channel_code': + (str,), + 'limit': + (float,), + 'after_id': + (str,), + 'before_id': + (str,), }, 'attribute_map': { + 'for_user_id': 'for-user-id', + 'payment_request_id': 'payment_request_id', + 'invoice_id': 'invoice_id', + 'payment_method_type': 'payment_method_type', + 'channel_code': 'channel_code', + 'limit': 'limit', + 'after_id': 'after_id', + 'before_id': 'before_id', }, 'location_map': { + 'for_user_id': 'header', + 'payment_request_id': 'query', + 'invoice_id': 'query', + 'payment_method_type': 'query', + 'channel_code': 'query', + 'limit': 'query', + 'after_id': 'query', + 'before_id': 'query', }, 'collection_format_map': { } @@ -181,19 +231,20 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_refund_endpoint = _Endpoint( + self.cancel_refund_endpoint = _Endpoint( settings={ 'response_type': (Refund,), 'auth': [], - 'endpoint_path': '/refunds/{refundID}', - 'operation_id': 'get_refund', - 'http_method': 'GET', + 'endpoint_path': '/refunds/{refundID}/cancel', + 'operation_id': 'cancel_refund', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ 'refund_id', 'idempotency_key', + 'for_user_id', ], 'required': [ 'refund_id', @@ -215,14 +266,18 @@ def __init__(self, api_client=None): (str,), 'idempotency_key': (str,), + 'for_user_id': + (str,), }, 'attribute_map': { 'refund_id': 'refundID', 'idempotency_key': 'idempotency-key', + 'for_user_id': 'for-user-id', }, 'location_map': { 'refund_id': 'path', 'idempotency_key': 'header', + 'for_user_id': 'header', }, 'collection_format_map': { } @@ -236,25 +291,26 @@ def __init__(self, api_client=None): api_client=api_client ) - def cancel_refund( + def create_refund( self, - refund_id: str, idempotency_key: Optional[str] = None, + for_user_id: Optional[str] = None, + create_refund: Optional[CreateRefund] = None, **kwargs ) -> Refund: - """cancel_refund # noqa: E501 + """create_refund # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.cancel_refund(refund_id, idempotency_key, async_req=True) + >>> thread = api.create_refund(idempotency_key, for_user_id, create_refund, async_req=True) >>> result = thread.get() - Args: - refund_id (str): Keyword Args: idempotency_key (str): [optional] + for_user_id (str): [optional] + create_refund (CreateRefund): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -316,29 +372,35 @@ def cancel_refund( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['refund_id'] = refund_id if idempotency_key is not None: kwargs['idempotency_key'] = idempotency_key - return self.cancel_refund_endpoint.call_with_http_info(**kwargs) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + if create_refund is not None: + kwargs['create_refund'] = create_refund + return self.create_refund_endpoint.call_with_http_info(**kwargs) - def create_refund( + def get_refund( self, + refund_id: str, idempotency_key: Optional[str] = None, - create_refund: Optional[CreateRefund] = None, + for_user_id: Optional[str] = None, **kwargs ) -> Refund: - """create_refund # noqa: E501 + """get_refund # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_refund(idempotency_key, create_refund, async_req=True) + >>> thread = api.get_refund(refund_id, idempotency_key, for_user_id, async_req=True) >>> result = thread.get() + Args: + refund_id (str): Keyword Args: idempotency_key (str): [optional] - create_refund (CreateRefund): [optional] + for_user_id (str): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -400,14 +462,23 @@ def create_refund( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['refund_id'] = refund_id if idempotency_key is not None: kwargs['idempotency_key'] = idempotency_key - if create_refund is not None: - kwargs['create_refund'] = create_refund - return self.create_refund_endpoint.call_with_http_info(**kwargs) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + return self.get_refund_endpoint.call_with_http_info(**kwargs) def get_all_refunds( self, + for_user_id: Optional[str] = None, + payment_request_id: Optional[str] = None, + invoice_id: Optional[str] = None, + payment_method_type: Optional[str] = None, + channel_code: Optional[str] = None, + limit: Optional[float] = None, + after_id: Optional[str] = None, + before_id: Optional[str] = None, **kwargs ) -> RefundList: """get_all_refunds # noqa: E501 @@ -415,11 +486,19 @@ def get_all_refunds( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_all_refunds(async_req=True) + >>> thread = api.get_all_refunds(for_user_id, payment_request_id, invoice_id, payment_method_type, channel_code, limit, after_id, before_id, async_req=True) >>> result = thread.get() Keyword Args: + for_user_id (str): [optional] + payment_request_id (str): [optional] + invoice_id (str): [optional] + payment_method_type (str): [optional] + channel_code (str): [optional] + limit (float): [optional] + after_id (str): [optional] + before_id (str): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -481,20 +560,37 @@ def get_all_refunds( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + if payment_request_id is not None: + kwargs['payment_request_id'] = payment_request_id + if invoice_id is not None: + kwargs['invoice_id'] = invoice_id + if payment_method_type is not None: + kwargs['payment_method_type'] = payment_method_type + if channel_code is not None: + kwargs['channel_code'] = channel_code + if limit is not None: + kwargs['limit'] = limit + if after_id is not None: + kwargs['after_id'] = after_id + if before_id is not None: + kwargs['before_id'] = before_id return self.get_all_refunds_endpoint.call_with_http_info(**kwargs) - def get_refund( + def cancel_refund( self, refund_id: str, idempotency_key: Optional[str] = None, + for_user_id: Optional[str] = None, **kwargs ) -> Refund: - """get_refund # noqa: E501 + """cancel_refund # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_refund(refund_id, idempotency_key, async_req=True) + >>> thread = api.cancel_refund(refund_id, idempotency_key, for_user_id, async_req=True) >>> result = thread.get() Args: @@ -502,6 +598,7 @@ def get_refund( Keyword Args: idempotency_key (str): [optional] + for_user_id (str): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -566,5 +663,7 @@ def get_refund( kwargs['refund_id'] = refund_id if idempotency_key is not None: kwargs['idempotency_key'] = idempotency_key - return self.get_refund_endpoint.call_with_http_info(**kwargs) + if for_user_id is not None: + kwargs['for_user_id'] = for_user_id + return self.cancel_refund_endpoint.call_with_http_info(**kwargs) From c76c5be2185945e16ee4d27625f17bee426e37f9 Mon Sep 17 00:00:00 2001 From: xendit-devx-bot Date: Mon, 6 Nov 2023 05:00:53 +0000 Subject: [PATCH 3/4] Generated Xendit python SDK --- .github/workflows/generate-release-tag.yml | 11 + .openapi-generator/FILES | 131 ++-- README.md | 4 +- docs/AccountBank.md | 17 - docs/AccountCard.md | 12 - docs/AccountEwallet.md | 14 - docs/AccountOTC.md | 13 - docs/AccountPayLater.md | 14 - docs/AccountQRCode.md | 12 - docs/Address.md | 24 - docs/AddressObject.md | 19 - docs/AddressRequest.md | 21 - docs/AddressStatus.md | 13 - docs/AlternativeDisplayItem.md | 14 - docs/BadRequestError.md | 14 - docs/Balance.md | 13 - docs/BalanceApi.md | 71 ++- docs/Bank.md | 19 - docs/BankCode.md | 14 - docs/BillingInformation.md | 18 - docs/BusinessDetail.md | 16 - docs/Capture.md | 26 - docs/CaptureList.md | 12 - docs/CaptureListResponse.md | 13 - docs/CaptureParameters.md | 13 - docs/Card.md | 15 - docs/CardChannelProperties.md | 17 - docs/CardInformation.md | 22 - docs/CardParameters.md | 14 - docs/CardParametersCardInformation.md | 17 - docs/CardVerificationResults.md | 14 - docs/CardVerificationResultsThreeDSecure.md | 16 - docs/Channel.md | 17 - docs/ChannelAccountType.md | 14 - docs/ChannelAmountLimits.md | 15 - docs/ChannelCategory.md | 14 - docs/ChannelsCategories.md | 13 - docs/CountryCode.md | 13 - docs/CreateCustomer400Response.md | 14 - docs/CreateCustomer400ResponseAllOf.md | 13 - docs/CreateInvoiceRequest.md | 32 - docs/CreatePaymentMethod409Response.md | 13 - docs/CreatePaymentMethod503Response.md | 13 - docs/CreatePayoutRequest.md | 20 - docs/CreateRefund.md | 18 - docs/CreateRefund400Response.md | 13 - docs/CreateRefund403Response.md | 13 - docs/CreateRefund404Response.md | 13 - docs/CreateRefund409Response.md | 13 - docs/CreateRefund503Response.md | 13 - docs/Currency.md | 13 - docs/Customer.md | 27 - docs/CustomerApi.md | 338 ++++++---- docs/CustomerObject.md | 20 - docs/CustomerRequest.md | 24 - docs/DateRangeFilter.md | 13 - docs/DigitalPayoutChannelProperties.md | 15 - docs/DirectDebit.md | 17 - docs/DirectDebitAllOf.md | 14 - docs/DirectDebitBankAccount.md | 13 - docs/DirectDebitChannelCode.md | 14 - docs/DirectDebitChannelProperties.md | 19 - ...DirectDebitChannelPropertiesBankAccount.md | 16 - ...irectDebitChannelPropertiesBankRedirect.md | 15 - docs/DirectDebitChannelPropertiesDebitCard.md | 17 - docs/DirectDebitDebitCard.md | 16 - docs/DirectDebitParameters.md | 14 - docs/DirectDebitType.md | 13 - docs/EWallet.md | 15 - docs/EWalletAccount.md | 16 - docs/EWalletAllOf.md | 12 - docs/EWalletChannelCode.md | 14 - docs/EWalletChannelProperties.md | 18 - docs/EWalletParameters.md | 13 - docs/EmploymentDetail.md | 14 - docs/EndCustomerStatus.md | 13 - docs/Error.md | 13 - docs/ErrorErrorsInner.md | 13 - docs/Ewallet.md | 13 - docs/EwalletType.md | 14 - docs/FeeResponse.md | 16 - docs/ForbiddenError.md | 14 - docs/GetAllPaymentMethods400Response.md | 13 - docs/GetAllPaymentMethods403Response.md | 13 - docs/GetAllPaymentMethods404Response.md | 13 - docs/GetAllPaymentMethodsDefaultResponse.md | 13 - docs/GetAllRefundsDefaultResponse.md | 13 - docs/GetCustomerByReferenceID200Response.md | 13 - docs/GetCustomerByReferenceID400Response.md | 14 - ...etCustomerByReferenceID400ResponseAllOf.md | 13 - docs/GetPayouts200Response.md | 14 - docs/GetPayouts200ResponseDataInner.md | 26 - docs/GetPayouts200ResponseLinks.md | 14 - docs/IdentityAccountRequest.md | 16 - docs/IdentityAccountRequestProperties.md | 22 - docs/IdentityAccountResponse.md | 20 - docs/IdentityAccountResponseProperties.md | 22 - docs/IdentityAccountType.md | 13 - docs/IndividualDetail.md | 22 - docs/Invoice.md | 45 -- docs/InvoiceApi.md | 251 ++++---- docs/InvoiceClientType.md | 14 - docs/InvoiceCurrency.md | 14 - docs/InvoiceError404ResponseDefinition.md | 14 - docs/InvoiceFee.md | 14 - docs/InvoiceItem.md | 18 - docs/InvoiceNotFoundError.md | 14 - docs/InvoicePaymentMethod.md | 14 - docs/InvoiceStatus.md | 14 - docs/KYCDocumentRequest.md | 19 - docs/KYCDocumentResponse.md | 19 - docs/KYCDocumentSubType.md | 13 - docs/KYCDocumentType.md | 13 - docs/LinkItem.md | 14 - docs/NotificationChannel.md | 14 - docs/NotificationPreference.md | 16 - docs/OverTheCounter.md | 16 - docs/OverTheCounterChannelCode.md | 14 - docs/OverTheCounterChannelProperties.md | 15 - docs/OverTheCounterChannelPropertiesUpdate.md | 14 - docs/OverTheCounterParameters.md | 15 - docs/OverTheCounterUpdateParameters.md | 13 - docs/PatchCustomer.md | 24 - docs/Paylater.md | 14 - docs/PaylaterType.md | 14 - docs/PaymentMethod.md | 26 - docs/PaymentMethodAction.md | 15 - docs/PaymentMethodApi.md | 593 ++++++++++-------- docs/PaymentMethodAuthParameters.md | 12 - docs/PaymentMethodCountry.md | 13 - docs/PaymentMethodExpireParameters.md | 13 - docs/PaymentMethodList.md | 13 - docs/PaymentMethodParameters.md | 20 - docs/PaymentMethodReusability.md | 13 - docs/PaymentMethodStatus.md | 13 - docs/PaymentMethodType.md | 13 - docs/PaymentMethodUpdateParameters.md | 17 - docs/PaymentRequest.md | 34 - docs/PaymentRequestAction.md | 16 - docs/PaymentRequestApi.md | 554 ++++++++++------ docs/PaymentRequestAuthParameters.md | 12 - docs/PaymentRequestBasket.md | 12 - docs/PaymentRequestBasketItem.md | 24 - docs/PaymentRequestCaptureMethod.md | 13 - docs/PaymentRequestCardVerificationResults.md | 14 - ...stCardVerificationResultsThreeDeeSecure.md | 16 - docs/PaymentRequestChannelProperties.md | 18 - docs/PaymentRequestCountry.md | 13 - docs/PaymentRequestCurrency.md | 13 - docs/PaymentRequestInitiator.md | 13 - docs/PaymentRequestListResponse.md | 13 - docs/PaymentRequestParameters.md | 25 - ...ymentRequestParametersChannelProperties.md | 19 - ...RequestParametersChannelPropertiesAllOf.md | 12 - docs/PaymentRequestShippingInformation.md | 17 - docs/PaymentRequestStatus.md | 13 - docs/Payout.md | 26 - docs/PayoutAllOf.md | 18 - docs/PayoutApi.md | 270 ++++---- docs/QRCode.md | 14 - docs/QRCodeChannelCode.md | 14 - docs/QRCodeChannelProperties.md | 14 - docs/QRCodeParameters.md | 13 - docs/QrCode.md | 13 - docs/QrCodeType.md | 14 - docs/ReceiptNotification.md | 15 - docs/Refund.md | 23 - docs/RefundApi.md | 235 ++++--- docs/RefundList.md | 13 - docs/ResponseDataNotFound.md | 13 - docs/RetailOutlet.md | 16 - docs/RetailOutletName.md | 14 - docs/ServerError.md | 13 - docs/SimulatePaymentRequest.md | 12 - docs/TokenizedCardInformation.md | 22 - docs/TransactionApi.md | 165 ++--- docs/TransactionId.md | 13 - docs/TransactionResponse.md | 28 - docs/TransactionResponseType.md | 12 - docs/TransactionStatuses.md | 13 - docs/TransactionTypes.md | 13 - docs/TransactionsResponse.md | 15 - docs/UnauthorizedError.md | 14 - docs/UpdateCustomer400Response.md | 14 - docs/UpdateCustomer400ResponseAllOf.md | 13 - docs/ValidationError.md | 15 - docs/VirtualAccount.md | 20 - docs/VirtualAccountAllOf.md | 12 - docs/VirtualAccountAlternativeDisplay.md | 14 - docs/VirtualAccountChannelCode.md | 14 - docs/VirtualAccountChannelProperties.md | 16 - docs/VirtualAccountChannelPropertiesPatch.md | 14 - docs/VirtualAccountParameters.md | 18 - docs/VirtualAccountUpdateParameters.md | 16 - docs/balance_and_transaction/Balance.md | 14 + .../ChannelsCategories.md | 43 ++ docs/balance_and_transaction/Currency.md | 339 ++++++++++ .../DateRangeFilter.md | 14 + docs/balance_and_transaction/FeeResponse.md | 17 + docs/balance_and_transaction/LinkItem.md | 15 + docs/balance_and_transaction/ServerError.md | 15 + docs/balance_and_transaction/TransactionId.md | 14 + .../TransactionResponse.md | 29 + .../TransactionResponseType.md | 13 + .../TransactionStatuses.md | 25 + .../TransactionTypes.md | 41 ++ .../TransactionsResponse.md | 16 + .../ValidationError.md | 16 + docs/customer/AccountBank.md | 18 + docs/customer/AccountCard.md | 13 + docs/customer/AccountEwallet.md | 15 + docs/customer/AccountOTC.md | 14 + docs/customer/AccountPayLater.md | 15 + docs/customer/AccountQRCode.md | 13 + docs/customer/Address.md | 25 + docs/customer/AddressRequest.md | 22 + docs/customer/AddressStatus.md | 19 + docs/customer/BusinessDetail.md | 17 + docs/customer/CountryCode.md | 14 + docs/customer/CreateCustomer400Response.md | 15 + .../CreateCustomer400ResponseAllOf.md | 14 + docs/customer/Customer.md | 28 + docs/customer/CustomerRequest.md | 25 + docs/customer/EmploymentDetail.md | 15 + docs/customer/EndCustomerStatus.md | 25 + docs/customer/Error.md | 15 + .../GetCustomerByReferenceID200Response.md | 14 + .../GetCustomerByReferenceID400Response.md | 15 + ...etCustomerByReferenceID400ResponseAllOf.md | 14 + docs/customer/IdentityAccountRequest.md | 17 + .../IdentityAccountRequestProperties.md | 23 + docs/customer/IdentityAccountResponse.md | 21 + .../IdentityAccountResponseProperties.md | 23 + docs/customer/IdentityAccountType.md | 27 + docs/customer/IndividualDetail.md | 23 + docs/customer/KYCDocumentRequest.md | 20 + docs/customer/KYCDocumentResponse.md | 20 + docs/customer/KYCDocumentSubType.md | 35 ++ docs/customer/KYCDocumentType.md | 31 + docs/customer/PatchCustomer.md | 25 + docs/customer/ResponseDataNotFound.md | 14 + docs/customer/UpdateCustomer400Response.md | 15 + .../UpdateCustomer400ResponseAllOf.md | 14 + docs/invoice/AddressObject.md | 20 + docs/invoice/AlternativeDisplayItem.md | 15 + docs/invoice/BadRequestError.md | 15 + docs/invoice/Bank.md | 20 + docs/invoice/BankCode.md | 36 ++ docs/invoice/CreateInvoiceRequest.md | 33 + docs/invoice/CustomerObject.md | 21 + docs/invoice/DirectDebit.md | 14 + docs/invoice/DirectDebitType.md | 54 ++ docs/invoice/Ewallet.md | 14 + docs/invoice/EwalletType.md | 36 ++ docs/invoice/ForbiddenError.md | 15 + docs/invoice/Invoice.md | 46 ++ docs/invoice/InvoiceClientType.md | 28 + docs/invoice/InvoiceCurrency.md | 26 + .../InvoiceError404ResponseDefinition.md | 15 + docs/invoice/InvoiceFee.md | 15 + docs/invoice/InvoiceItem.md | 19 + docs/invoice/InvoiceNotFoundError.md | 15 + docs/invoice/InvoicePaymentMethod.md | 36 ++ docs/invoice/InvoiceStatus.md | 24 + docs/invoice/NotificationChannel.md | 24 + docs/invoice/NotificationPreference.md | 17 + docs/invoice/Paylater.md | 15 + docs/invoice/PaylaterType.md | 28 + docs/invoice/QrCode.md | 14 + docs/invoice/QrCodeType.md | 20 + docs/invoice/RetailOutlet.md | 17 + docs/invoice/RetailOutletName.md | 34 + docs/invoice/ServerError.md | 14 + docs/invoice/UnauthorizedError.md | 15 + docs/payment_method/BillingInformation.md | 19 + docs/payment_method/Card.md | 17 + docs/payment_method/CardChannelProperties.md | 17 + docs/payment_method/CardParameters.md | 15 + .../CardParametersCardInformation.md | 18 + .../payment_method/CardVerificationResults.md | 15 + .../CardVerificationResultsThreeDSecure.md | 17 + .../CreatePaymentMethod409Response.md | 14 + .../CreatePaymentMethod503Response.md | 14 + docs/payment_method/DirectDebit.md | 18 + docs/payment_method/DirectDebitAllOf.md | 15 + docs/payment_method/DirectDebitBankAccount.md | 16 + docs/payment_method/DirectDebitChannelCode.md | 142 +++++ .../DirectDebitChannelProperties.md | 22 + docs/payment_method/DirectDebitDebitCard.md | 17 + docs/payment_method/DirectDebitParameters.md | 14 + docs/payment_method/DirectDebitType.md | 21 + docs/payment_method/EWallet.md | 16 + docs/payment_method/EWalletAccount.md | 17 + docs/payment_method/EWalletChannelCode.md | 58 ++ .../EWalletChannelProperties.md | 19 + docs/payment_method/EWalletParameters.md | 15 + .../GetAllPaymentMethods400Response.md | 14 + .../GetAllPaymentMethods403Response.md | 14 + .../GetAllPaymentMethods404Response.md | 14 + .../GetAllPaymentMethodsDefaultResponse.md | 14 + docs/payment_method/OverTheCounter.md | 17 + .../OverTheCounterChannelCode.md | 48 ++ .../OverTheCounterChannelProperties.md | 16 + .../OverTheCounterChannelPropertiesUpdate.md | 15 + .../OverTheCounterParameters.md | 16 + .../OverTheCounterUpdateParameters.md | 14 + docs/payment_method/PaymentMethod.md | 34 + docs/payment_method/PaymentMethodAction.md | 16 + .../PaymentMethodAuthParameters.md | 13 + docs/payment_method/PaymentMethodCountry.md | 27 + .../PaymentMethodExpireParameters.md | 14 + docs/payment_method/PaymentMethodList.md | 14 + .../payment_method/PaymentMethodParameters.md | 26 + .../PaymentMethodReusability.md | 19 + docs/payment_method/PaymentMethodStatus.md | 27 + docs/payment_method/PaymentMethodType.md | 31 + .../PaymentMethodUpdateParameters.md | 18 + docs/payment_method/QRCode.md | 17 + docs/payment_method/QRCodeChannelCode.md | 26 + .../payment_method/QRCodeChannelProperties.md | 15 + docs/payment_method/QRCodeParameters.md | 16 + docs/payment_method/SimulatePaymentRequest.md | 13 + .../TokenizedCardInformation.md | 23 + docs/payment_method/VirtualAccount.md | 21 + docs/payment_method/VirtualAccountAllOf.md | 13 + .../VirtualAccountAlternativeDisplay.md | 15 + .../VirtualAccountChannelCode.md | 48 ++ .../VirtualAccountChannelProperties.md | 17 + .../VirtualAccountChannelPropertiesPatch.md | 15 + .../VirtualAccountParameters.md | 19 + .../VirtualAccountUpdateParameters.md | 17 + docs/payment_request/Capture.md | 27 + docs/payment_request/CaptureList.md | 13 + docs/payment_request/CaptureListResponse.md | 14 + docs/payment_request/CaptureParameters.md | 14 + docs/payment_request/Card.md | 16 + docs/payment_request/CardChannelProperties.md | 18 + docs/payment_request/CardInformation.md | 23 + .../CardVerificationResults.md | 15 + .../CardVerificationResultsThreeDSecure.md | 17 + docs/payment_request/DirectDebit.md | 18 + docs/payment_request/DirectDebitAllOf.md | 15 + .../payment_request/DirectDebitBankAccount.md | 14 + .../payment_request/DirectDebitChannelCode.md | 142 +++++ .../DirectDebitChannelProperties.md | 20 + ...DirectDebitChannelPropertiesBankAccount.md | 17 + ...irectDebitChannelPropertiesBankRedirect.md | 16 + .../DirectDebitChannelPropertiesDebitCard.md | 18 + docs/payment_request/DirectDebitDebitCard.md | 17 + docs/payment_request/DirectDebitParameters.md | 15 + docs/payment_request/DirectDebitType.md | 21 + docs/payment_request/EWallet.md | 16 + docs/payment_request/EWalletAccount.md | 17 + docs/payment_request/EWalletAllOf.md | 13 + docs/payment_request/EWalletChannelCode.md | 56 ++ .../EWalletChannelProperties.md | 19 + docs/payment_request/EWalletParameters.md | 14 + docs/payment_request/Error.md | 14 + docs/payment_request/OverTheCounter.md | 17 + .../OverTheCounterChannelCode.md | 48 ++ .../OverTheCounterChannelProperties.md | 16 + .../OverTheCounterParameters.md | 16 + docs/payment_request/PaymentMethod.md | 27 + .../PaymentMethodParameters.md | 21 + .../PaymentMethodReusability.md | 19 + docs/payment_request/PaymentMethodStatus.md | 25 + docs/payment_request/PaymentMethodType.md | 27 + docs/payment_request/PaymentRequest.md | 35 ++ docs/payment_request/PaymentRequestAction.md | 17 + .../PaymentRequestAuthParameters.md | 13 + docs/payment_request/PaymentRequestBasket.md | 13 + .../PaymentRequestBasketItem.md | 25 + .../PaymentRequestCaptureMethod.md | 19 + .../PaymentRequestCardVerificationResults.md | 15 + ...stCardVerificationResultsThreeDeeSecure.md | 17 + .../PaymentRequestChannelProperties.md | 19 + docs/payment_request/PaymentRequestCountry.md | 25 + .../payment_request/PaymentRequestCurrency.md | 27 + .../PaymentRequestInitiator.md | 19 + .../PaymentRequestListResponse.md | 14 + .../PaymentRequestParameters.md | 26 + ...ymentRequestParametersChannelProperties.md | 20 + ...RequestParametersChannelPropertiesAllOf.md | 13 + .../PaymentRequestShippingInformation.md | 18 + docs/payment_request/PaymentRequestStatus.md | 31 + docs/payment_request/QRCode.md | 15 + docs/payment_request/QRCodeChannelCode.md | 24 + .../QRCodeChannelProperties.md | 15 + docs/payment_request/QRCodeParameters.md | 14 + docs/payment_request/VirtualAccount.md | 21 + docs/payment_request/VirtualAccountAllOf.md | 13 + .../VirtualAccountAlternativeDisplay.md | 15 + .../VirtualAccountChannelCode.md | 48 ++ .../VirtualAccountChannelProperties.md | 17 + .../VirtualAccountParameters.md | 19 + docs/payout/Channel.md | 18 + docs/payout/ChannelAccountType.md | 26 + docs/payout/ChannelAmountLimits.md | 16 + docs/payout/ChannelCategory.md | 22 + docs/payout/CreatePayoutRequest.md | 21 + docs/payout/DigitalPayoutChannelProperties.md | 16 + docs/payout/Error.md | 15 + docs/payout/ErrorErrorsInner.md | 14 + docs/payout/GetPayouts200Response.md | 15 + docs/payout/GetPayouts200ResponseDataInner.md | 27 + docs/payout/GetPayouts200ResponseLinks.md | 15 + docs/payout/Payout.md | 27 + docs/payout/PayoutAllOf.md | 19 + docs/payout/ReceiptNotification.md | 16 + docs/refund/CreateRefund.md | 19 + docs/refund/CreateRefund400Response.md | 14 + docs/refund/CreateRefund403Response.md | 14 + docs/refund/CreateRefund404Response.md | 14 + docs/refund/CreateRefund409Response.md | 14 + docs/refund/CreateRefund503Response.md | 14 + docs/refund/GetAllRefundsDefaultResponse.md | 14 + docs/refund/Refund.md | 24 + docs/refund/RefundList.md | 14 + {docs => images}/header.jpg | Bin pyproject.toml | 34 + setup.py | 4 +- test/test_balance.py | 2 +- test/test_balance_api.py | 2 +- test/test_billing_information.py | 2 +- test/test_capture.py | 2 +- test/test_capture_list.py | 2 +- test/test_capture_list_response.py | 2 +- test/test_capture_parameters.py | 2 +- test/test_card.py | 2 +- test/test_card_channel_properties.py | 2 +- test/test_card_information.py | 2 +- test/test_card_parameters.py | 2 +- test/test_card_parameters_card_information.py | 2 +- test/test_card_verification_results.py | 2 +- ...ard_verification_results_three_d_secure.py | 2 +- test/test_channels_categories.py | 2 +- .../test_create_payment_method409_response.py | 2 +- .../test_create_payment_method503_response.py | 2 +- test/test_currency.py | 2 +- test/test_date_range_filter.py | 2 +- test/test_direct_debit_all_of.py | 2 +- test/test_direct_debit_bank_account.py | 2 +- test/test_direct_debit_channel_code.py | 2 +- test/test_direct_debit_channel_properties.py | 2 +- ...t_debit_channel_properties_bank_account.py | 2 +- ..._debit_channel_properties_bank_redirect.py | 2 +- ...ect_debit_channel_properties_debit_card.py | 2 +- test/test_direct_debit_debit_card.py | 2 +- test/test_direct_debit_parameters.py | 2 +- test/test_e_wallet.py | 2 +- test/test_e_wallet_account.py | 2 +- test/test_e_wallet_all_of.py | 2 +- test/test_e_wallet_channel_code.py | 2 +- test/test_e_wallet_channel_properties.py | 2 +- test/test_e_wallet_parameters.py | 2 +- test/test_fee_response.py | 2 +- ...est_get_all_payment_methods400_response.py | 2 +- ...est_get_all_payment_methods403_response.py | 2 +- ...est_get_all_payment_methods404_response.py | 2 +- ...et_all_payment_methods_default_response.py | 2 +- test/test_link_item.py | 2 +- test/test_over_the_counter.py | 2 +- test/test_over_the_counter_channel_code.py | 2 +- ...est_over_the_counter_channel_properties.py | 2 +- ...r_the_counter_channel_properties_update.py | 2 +- test/test_over_the_counter_parameters.py | 2 +- ...test_over_the_counter_update_parameters.py | 2 +- test/test_payment_method.py | 2 +- test/test_payment_method_action.py | 2 +- test/test_payment_method_api.py | 2 +- test/test_payment_method_auth_parameters.py | 2 +- test/test_payment_method_country.py | 2 +- test/test_payment_method_expire_parameters.py | 2 +- test/test_payment_method_list.py | 2 +- test/test_payment_method_parameters.py | 2 +- test/test_payment_method_reusability.py | 2 +- test/test_payment_method_status.py | 2 +- test/test_payment_method_type.py | 2 +- test/test_payment_method_update_parameters.py | 2 +- test/test_payment_request.py | 2 +- test/test_payment_request_action.py | 2 +- test/test_payment_request_api.py | 2 +- test/test_payment_request_auth_parameters.py | 2 +- test/test_payment_request_basket.py | 2 +- test/test_payment_request_basket_item.py | 2 +- test/test_payment_request_capture_method.py | 2 +- ...yment_request_card_verification_results.py | 2 +- ...d_verification_results_three_dee_secure.py | 2 +- ...test_payment_request_channel_properties.py | 2 +- test/test_payment_request_country.py | 2 +- test/test_payment_request_currency.py | 2 +- test/test_payment_request_initiator.py | 2 +- test/test_payment_request_list_response.py | 2 +- test/test_payment_request_parameters.py | 2 +- ...t_request_parameters_channel_properties.py | 2 +- ...st_parameters_channel_properties_all_of.py | 2 +- ...st_payment_request_shipping_information.py | 2 +- test/test_payment_request_status.py | 2 +- test/test_qr_code_channel_code.py | 2 +- test/test_qr_code_channel_properties.py | 2 +- test/test_qr_code_parameters.py | 2 +- test/test_server_error.py | 2 +- test/test_simulate_payment_request.py | 2 +- test/test_tokenized_card_information.py | 2 +- test/test_transaction_api.py | 2 +- test/test_transaction_id.py | 2 +- test/test_transaction_response.py | 2 +- test/test_transaction_response_type.py | 2 +- test/test_transaction_statuses.py | 2 +- test/test_transaction_types.py | 2 +- test/test_transactions_response.py | 2 +- test/test_validation_error.py | 2 +- test/test_virtual_account.py | 2 +- test/test_virtual_account_all_of.py | 2 +- ...est_virtual_account_alternative_display.py | 2 +- test/test_virtual_account_channel_code.py | 2 +- ...test_virtual_account_channel_properties.py | 2 +- ...irtual_account_channel_properties_patch.py | 2 +- test/test_virtual_account_parameters.py | 2 +- .../test_virtual_account_update_parameters.py | 2 +- xendit/__init__.py | 4 +- xendit/api_client.py | 6 +- xendit/balance_and_transaction/balance_api.py | 2 +- .../balance_and_transaction/model/balance.py | 2 +- .../model/channels_categories.py | 2 +- .../balance_and_transaction/model/currency.py | 2 +- .../model/date_range_filter.py | 2 +- .../model/fee_response.py | 2 +- .../model/link_item.py | 2 +- .../model/server_error.py | 2 +- .../model/transaction_id.py | 2 +- .../model/transaction_response.py | 2 +- .../model/transaction_response_type.py | 2 +- .../model/transaction_statuses.py | 2 +- .../model/transaction_types.py | 2 +- .../model/transactions_response.py | 2 +- .../model/validation_error.py | 2 +- .../transaction_api.py | 2 +- xendit/configuration.py | 4 +- xendit/exceptions.py | 2 +- xendit/model_utils.py | 2 +- .../model/billing_information.py | 2 +- xendit/payment_method/model/card.py | 2 +- .../model/card_channel_properties.py | 2 +- .../payment_method/model/card_parameters.py | 2 +- .../model/card_parameters_card_information.py | 2 +- .../model/card_verification_results.py | 2 +- ...ard_verification_results_three_d_secure.py | 2 +- .../create_payment_method409_response.py | 2 +- .../create_payment_method503_response.py | 2 +- xendit/payment_method/model/direct_debit.py | 2 +- .../model/direct_debit_all_of.py | 2 +- .../model/direct_debit_bank_account.py | 2 +- .../model/direct_debit_channel_code.py | 2 +- .../model/direct_debit_channel_properties.py | 9 +- .../model/direct_debit_debit_card.py | 9 +- .../model/direct_debit_parameters.py | 2 +- .../payment_method/model/direct_debit_type.py | 2 +- xendit/payment_method/model/e_wallet.py | 2 +- .../payment_method/model/e_wallet_account.py | 2 +- .../model/e_wallet_channel_code.py | 11 +- .../model/e_wallet_channel_properties.py | 2 +- .../model/e_wallet_parameters.py | 2 +- .../get_all_payment_methods400_response.py | 2 +- .../get_all_payment_methods403_response.py | 2 +- .../get_all_payment_methods404_response.py | 2 +- ...et_all_payment_methods_default_response.py | 2 +- .../payment_method/model/over_the_counter.py | 2 +- .../model/over_the_counter_channel_code.py | 2 +- .../over_the_counter_channel_properties.py | 2 +- ...r_the_counter_channel_properties_update.py | 2 +- .../model/over_the_counter_parameters.py | 2 +- .../over_the_counter_update_parameters.py | 2 +- xendit/payment_method/model/payment_method.py | 2 +- .../model/payment_method_action.py | 2 +- .../model/payment_method_auth_parameters.py | 2 +- .../model/payment_method_country.py | 11 +- .../model/payment_method_expire_parameters.py | 2 +- .../model/payment_method_list.py | 2 +- .../model/payment_method_parameters.py | 2 +- .../model/payment_method_reusability.py | 2 +- .../model/payment_method_status.py | 2 +- .../model/payment_method_type.py | 2 +- .../model/payment_method_update_parameters.py | 2 +- xendit/payment_method/model/qr_code.py | 2 +- .../model/qr_code_channel_code.py | 2 +- .../model/qr_code_channel_properties.py | 2 +- .../model/qr_code_parameters.py | 2 +- .../model/simulate_payment_request.py | 2 +- .../model/tokenized_card_information.py | 2 +- .../payment_method/model/virtual_account.py | 2 +- .../model/virtual_account_all_of.py | 2 +- .../virtual_account_alternative_display.py | 2 +- .../model/virtual_account_channel_code.py | 11 +- .../virtual_account_channel_properties.py | 2 +- ...irtual_account_channel_properties_patch.py | 2 +- .../model/virtual_account_parameters.py | 2 +- .../virtual_account_update_parameters.py | 2 +- xendit/payment_method/payment_method_api.py | 2 +- xendit/payment_request/model/capture.py | 2 +- xendit/payment_request/model/capture_list.py | 2 +- .../model/capture_list_response.py | 2 +- .../model/capture_parameters.py | 2 +- xendit/payment_request/model/card.py | 2 +- .../model/card_channel_properties.py | 2 +- .../payment_request/model/card_information.py | 2 +- .../model/card_verification_results.py | 2 +- ...ard_verification_results_three_d_secure.py | 2 +- xendit/payment_request/model/direct_debit.py | 2 +- .../model/direct_debit_all_of.py | 2 +- .../model/direct_debit_bank_account.py | 2 +- .../model/direct_debit_channel_code.py | 2 +- .../model/direct_debit_channel_properties.py | 2 +- ...t_debit_channel_properties_bank_account.py | 2 +- ..._debit_channel_properties_bank_redirect.py | 2 +- ...ect_debit_channel_properties_debit_card.py | 2 +- .../model/direct_debit_debit_card.py | 2 +- .../model/direct_debit_parameters.py | 2 +- .../model/direct_debit_type.py | 2 +- xendit/payment_request/model/e_wallet.py | 2 +- .../payment_request/model/e_wallet_account.py | 2 +- .../payment_request/model/e_wallet_all_of.py | 2 +- .../model/e_wallet_channel_code.py | 11 +- .../model/e_wallet_channel_properties.py | 2 +- .../model/e_wallet_parameters.py | 2 +- xendit/payment_request/model/error.py | 2 +- .../payment_request/model/over_the_counter.py | 2 +- .../model/over_the_counter_channel_code.py | 2 +- .../over_the_counter_channel_properties.py | 2 +- .../model/over_the_counter_parameters.py | 2 +- .../payment_request/model/payment_method.py | 2 +- .../model/payment_method_parameters.py | 2 +- .../model/payment_method_reusability.py | 2 +- .../model/payment_method_status.py | 2 +- .../model/payment_method_type.py | 2 +- .../payment_request/model/payment_request.py | 2 +- .../model/payment_request_action.py | 2 +- .../model/payment_request_auth_parameters.py | 2 +- .../model/payment_request_basket.py | 2 +- .../model/payment_request_basket_item.py | 2 +- .../model/payment_request_capture_method.py | 2 +- ...yment_request_card_verification_results.py | 2 +- ...d_verification_results_three_dee_secure.py | 2 +- .../payment_request_channel_properties.py | 2 +- .../model/payment_request_country.py | 2 +- .../model/payment_request_currency.py | 11 +- .../model/payment_request_initiator.py | 2 +- .../model/payment_request_list_response.py | 2 +- .../model/payment_request_parameters.py | 2 +- ...t_request_parameters_channel_properties.py | 2 +- ...st_parameters_channel_properties_all_of.py | 2 +- .../payment_request_shipping_information.py | 2 +- .../model/payment_request_status.py | 2 +- xendit/payment_request/model/qr_code.py | 2 +- .../model/qr_code_channel_code.py | 2 +- .../model/qr_code_channel_properties.py | 2 +- .../model/qr_code_parameters.py | 2 +- .../payment_request/model/virtual_account.py | 2 +- .../model/virtual_account_all_of.py | 2 +- .../virtual_account_alternative_display.py | 2 +- .../model/virtual_account_channel_code.py | 11 +- .../virtual_account_channel_properties.py | 2 +- .../model/virtual_account_parameters.py | 2 +- xendit/payment_request/payment_request_api.py | 2 +- xendit/rest.py | 2 +- 665 files changed, 6835 insertions(+), 4317 deletions(-) delete mode 100644 docs/AccountBank.md delete mode 100644 docs/AccountCard.md delete mode 100644 docs/AccountEwallet.md delete mode 100644 docs/AccountOTC.md delete mode 100644 docs/AccountPayLater.md delete mode 100644 docs/AccountQRCode.md delete mode 100644 docs/Address.md delete mode 100644 docs/AddressObject.md delete mode 100644 docs/AddressRequest.md delete mode 100644 docs/AddressStatus.md delete mode 100644 docs/AlternativeDisplayItem.md delete mode 100644 docs/BadRequestError.md delete mode 100644 docs/Balance.md delete mode 100644 docs/Bank.md delete mode 100644 docs/BankCode.md delete mode 100644 docs/BillingInformation.md delete mode 100644 docs/BusinessDetail.md delete mode 100644 docs/Capture.md delete mode 100644 docs/CaptureList.md delete mode 100644 docs/CaptureListResponse.md delete mode 100644 docs/CaptureParameters.md delete mode 100644 docs/Card.md delete mode 100644 docs/CardChannelProperties.md delete mode 100644 docs/CardInformation.md delete mode 100644 docs/CardParameters.md delete mode 100644 docs/CardParametersCardInformation.md delete mode 100644 docs/CardVerificationResults.md delete mode 100644 docs/CardVerificationResultsThreeDSecure.md delete mode 100644 docs/Channel.md delete mode 100644 docs/ChannelAccountType.md delete mode 100644 docs/ChannelAmountLimits.md delete mode 100644 docs/ChannelCategory.md delete mode 100644 docs/ChannelsCategories.md delete mode 100644 docs/CountryCode.md delete mode 100644 docs/CreateCustomer400Response.md delete mode 100644 docs/CreateCustomer400ResponseAllOf.md delete mode 100644 docs/CreateInvoiceRequest.md delete mode 100644 docs/CreatePaymentMethod409Response.md delete mode 100644 docs/CreatePaymentMethod503Response.md delete mode 100644 docs/CreatePayoutRequest.md delete mode 100644 docs/CreateRefund.md delete mode 100644 docs/CreateRefund400Response.md delete mode 100644 docs/CreateRefund403Response.md delete mode 100644 docs/CreateRefund404Response.md delete mode 100644 docs/CreateRefund409Response.md delete mode 100644 docs/CreateRefund503Response.md delete mode 100644 docs/Currency.md delete mode 100644 docs/Customer.md delete mode 100644 docs/CustomerObject.md delete mode 100644 docs/CustomerRequest.md delete mode 100644 docs/DateRangeFilter.md delete mode 100644 docs/DigitalPayoutChannelProperties.md delete mode 100644 docs/DirectDebit.md delete mode 100644 docs/DirectDebitAllOf.md delete mode 100644 docs/DirectDebitBankAccount.md delete mode 100644 docs/DirectDebitChannelCode.md delete mode 100644 docs/DirectDebitChannelProperties.md delete mode 100644 docs/DirectDebitChannelPropertiesBankAccount.md delete mode 100644 docs/DirectDebitChannelPropertiesBankRedirect.md delete mode 100644 docs/DirectDebitChannelPropertiesDebitCard.md delete mode 100644 docs/DirectDebitDebitCard.md delete mode 100644 docs/DirectDebitParameters.md delete mode 100644 docs/DirectDebitType.md delete mode 100644 docs/EWallet.md delete mode 100644 docs/EWalletAccount.md delete mode 100644 docs/EWalletAllOf.md delete mode 100644 docs/EWalletChannelCode.md delete mode 100644 docs/EWalletChannelProperties.md delete mode 100644 docs/EWalletParameters.md delete mode 100644 docs/EmploymentDetail.md delete mode 100644 docs/EndCustomerStatus.md delete mode 100644 docs/Error.md delete mode 100644 docs/ErrorErrorsInner.md delete mode 100644 docs/Ewallet.md delete mode 100644 docs/EwalletType.md delete mode 100644 docs/FeeResponse.md delete mode 100644 docs/ForbiddenError.md delete mode 100644 docs/GetAllPaymentMethods400Response.md delete mode 100644 docs/GetAllPaymentMethods403Response.md delete mode 100644 docs/GetAllPaymentMethods404Response.md delete mode 100644 docs/GetAllPaymentMethodsDefaultResponse.md delete mode 100644 docs/GetAllRefundsDefaultResponse.md delete mode 100644 docs/GetCustomerByReferenceID200Response.md delete mode 100644 docs/GetCustomerByReferenceID400Response.md delete mode 100644 docs/GetCustomerByReferenceID400ResponseAllOf.md delete mode 100644 docs/GetPayouts200Response.md delete mode 100644 docs/GetPayouts200ResponseDataInner.md delete mode 100644 docs/GetPayouts200ResponseLinks.md delete mode 100644 docs/IdentityAccountRequest.md delete mode 100644 docs/IdentityAccountRequestProperties.md delete mode 100644 docs/IdentityAccountResponse.md delete mode 100644 docs/IdentityAccountResponseProperties.md delete mode 100644 docs/IdentityAccountType.md delete mode 100644 docs/IndividualDetail.md delete mode 100644 docs/Invoice.md delete mode 100644 docs/InvoiceClientType.md delete mode 100644 docs/InvoiceCurrency.md delete mode 100644 docs/InvoiceError404ResponseDefinition.md delete mode 100644 docs/InvoiceFee.md delete mode 100644 docs/InvoiceItem.md delete mode 100644 docs/InvoiceNotFoundError.md delete mode 100644 docs/InvoicePaymentMethod.md delete mode 100644 docs/InvoiceStatus.md delete mode 100644 docs/KYCDocumentRequest.md delete mode 100644 docs/KYCDocumentResponse.md delete mode 100644 docs/KYCDocumentSubType.md delete mode 100644 docs/KYCDocumentType.md delete mode 100644 docs/LinkItem.md delete mode 100644 docs/NotificationChannel.md delete mode 100644 docs/NotificationPreference.md delete mode 100644 docs/OverTheCounter.md delete mode 100644 docs/OverTheCounterChannelCode.md delete mode 100644 docs/OverTheCounterChannelProperties.md delete mode 100644 docs/OverTheCounterChannelPropertiesUpdate.md delete mode 100644 docs/OverTheCounterParameters.md delete mode 100644 docs/OverTheCounterUpdateParameters.md delete mode 100644 docs/PatchCustomer.md delete mode 100644 docs/Paylater.md delete mode 100644 docs/PaylaterType.md delete mode 100644 docs/PaymentMethod.md delete mode 100644 docs/PaymentMethodAction.md delete mode 100644 docs/PaymentMethodAuthParameters.md delete mode 100644 docs/PaymentMethodCountry.md delete mode 100644 docs/PaymentMethodExpireParameters.md delete mode 100644 docs/PaymentMethodList.md delete mode 100644 docs/PaymentMethodParameters.md delete mode 100644 docs/PaymentMethodReusability.md delete mode 100644 docs/PaymentMethodStatus.md delete mode 100644 docs/PaymentMethodType.md delete mode 100644 docs/PaymentMethodUpdateParameters.md delete mode 100644 docs/PaymentRequest.md delete mode 100644 docs/PaymentRequestAction.md delete mode 100644 docs/PaymentRequestAuthParameters.md delete mode 100644 docs/PaymentRequestBasket.md delete mode 100644 docs/PaymentRequestBasketItem.md delete mode 100644 docs/PaymentRequestCaptureMethod.md delete mode 100644 docs/PaymentRequestCardVerificationResults.md delete mode 100644 docs/PaymentRequestCardVerificationResultsThreeDeeSecure.md delete mode 100644 docs/PaymentRequestChannelProperties.md delete mode 100644 docs/PaymentRequestCountry.md delete mode 100644 docs/PaymentRequestCurrency.md delete mode 100644 docs/PaymentRequestInitiator.md delete mode 100644 docs/PaymentRequestListResponse.md delete mode 100644 docs/PaymentRequestParameters.md delete mode 100644 docs/PaymentRequestParametersChannelProperties.md delete mode 100644 docs/PaymentRequestParametersChannelPropertiesAllOf.md delete mode 100644 docs/PaymentRequestShippingInformation.md delete mode 100644 docs/PaymentRequestStatus.md delete mode 100644 docs/Payout.md delete mode 100644 docs/PayoutAllOf.md delete mode 100644 docs/QRCode.md delete mode 100644 docs/QRCodeChannelCode.md delete mode 100644 docs/QRCodeChannelProperties.md delete mode 100644 docs/QRCodeParameters.md delete mode 100644 docs/QrCode.md delete mode 100644 docs/QrCodeType.md delete mode 100644 docs/ReceiptNotification.md delete mode 100644 docs/Refund.md delete mode 100644 docs/RefundList.md delete mode 100644 docs/ResponseDataNotFound.md delete mode 100644 docs/RetailOutlet.md delete mode 100644 docs/RetailOutletName.md delete mode 100644 docs/ServerError.md delete mode 100644 docs/SimulatePaymentRequest.md delete mode 100644 docs/TokenizedCardInformation.md delete mode 100644 docs/TransactionId.md delete mode 100644 docs/TransactionResponse.md delete mode 100644 docs/TransactionResponseType.md delete mode 100644 docs/TransactionStatuses.md delete mode 100644 docs/TransactionTypes.md delete mode 100644 docs/TransactionsResponse.md delete mode 100644 docs/UnauthorizedError.md delete mode 100644 docs/UpdateCustomer400Response.md delete mode 100644 docs/UpdateCustomer400ResponseAllOf.md delete mode 100644 docs/ValidationError.md delete mode 100644 docs/VirtualAccount.md delete mode 100644 docs/VirtualAccountAllOf.md delete mode 100644 docs/VirtualAccountAlternativeDisplay.md delete mode 100644 docs/VirtualAccountChannelCode.md delete mode 100644 docs/VirtualAccountChannelProperties.md delete mode 100644 docs/VirtualAccountChannelPropertiesPatch.md delete mode 100644 docs/VirtualAccountParameters.md delete mode 100644 docs/VirtualAccountUpdateParameters.md create mode 100644 docs/balance_and_transaction/Balance.md create mode 100644 docs/balance_and_transaction/ChannelsCategories.md create mode 100644 docs/balance_and_transaction/Currency.md create mode 100644 docs/balance_and_transaction/DateRangeFilter.md create mode 100644 docs/balance_and_transaction/FeeResponse.md create mode 100644 docs/balance_and_transaction/LinkItem.md create mode 100644 docs/balance_and_transaction/ServerError.md create mode 100644 docs/balance_and_transaction/TransactionId.md create mode 100644 docs/balance_and_transaction/TransactionResponse.md create mode 100644 docs/balance_and_transaction/TransactionResponseType.md create mode 100644 docs/balance_and_transaction/TransactionStatuses.md create mode 100644 docs/balance_and_transaction/TransactionTypes.md create mode 100644 docs/balance_and_transaction/TransactionsResponse.md create mode 100644 docs/balance_and_transaction/ValidationError.md create mode 100644 docs/customer/AccountBank.md create mode 100644 docs/customer/AccountCard.md create mode 100644 docs/customer/AccountEwallet.md create mode 100644 docs/customer/AccountOTC.md create mode 100644 docs/customer/AccountPayLater.md create mode 100644 docs/customer/AccountQRCode.md create mode 100644 docs/customer/Address.md create mode 100644 docs/customer/AddressRequest.md create mode 100644 docs/customer/AddressStatus.md create mode 100644 docs/customer/BusinessDetail.md create mode 100644 docs/customer/CountryCode.md create mode 100644 docs/customer/CreateCustomer400Response.md create mode 100644 docs/customer/CreateCustomer400ResponseAllOf.md create mode 100644 docs/customer/Customer.md create mode 100644 docs/customer/CustomerRequest.md create mode 100644 docs/customer/EmploymentDetail.md create mode 100644 docs/customer/EndCustomerStatus.md create mode 100644 docs/customer/Error.md create mode 100644 docs/customer/GetCustomerByReferenceID200Response.md create mode 100644 docs/customer/GetCustomerByReferenceID400Response.md create mode 100644 docs/customer/GetCustomerByReferenceID400ResponseAllOf.md create mode 100644 docs/customer/IdentityAccountRequest.md create mode 100644 docs/customer/IdentityAccountRequestProperties.md create mode 100644 docs/customer/IdentityAccountResponse.md create mode 100644 docs/customer/IdentityAccountResponseProperties.md create mode 100644 docs/customer/IdentityAccountType.md create mode 100644 docs/customer/IndividualDetail.md create mode 100644 docs/customer/KYCDocumentRequest.md create mode 100644 docs/customer/KYCDocumentResponse.md create mode 100644 docs/customer/KYCDocumentSubType.md create mode 100644 docs/customer/KYCDocumentType.md create mode 100644 docs/customer/PatchCustomer.md create mode 100644 docs/customer/ResponseDataNotFound.md create mode 100644 docs/customer/UpdateCustomer400Response.md create mode 100644 docs/customer/UpdateCustomer400ResponseAllOf.md create mode 100644 docs/invoice/AddressObject.md create mode 100644 docs/invoice/AlternativeDisplayItem.md create mode 100644 docs/invoice/BadRequestError.md create mode 100644 docs/invoice/Bank.md create mode 100644 docs/invoice/BankCode.md create mode 100644 docs/invoice/CreateInvoiceRequest.md create mode 100644 docs/invoice/CustomerObject.md create mode 100644 docs/invoice/DirectDebit.md create mode 100644 docs/invoice/DirectDebitType.md create mode 100644 docs/invoice/Ewallet.md create mode 100644 docs/invoice/EwalletType.md create mode 100644 docs/invoice/ForbiddenError.md create mode 100644 docs/invoice/Invoice.md create mode 100644 docs/invoice/InvoiceClientType.md create mode 100644 docs/invoice/InvoiceCurrency.md create mode 100644 docs/invoice/InvoiceError404ResponseDefinition.md create mode 100644 docs/invoice/InvoiceFee.md create mode 100644 docs/invoice/InvoiceItem.md create mode 100644 docs/invoice/InvoiceNotFoundError.md create mode 100644 docs/invoice/InvoicePaymentMethod.md create mode 100644 docs/invoice/InvoiceStatus.md create mode 100644 docs/invoice/NotificationChannel.md create mode 100644 docs/invoice/NotificationPreference.md create mode 100644 docs/invoice/Paylater.md create mode 100644 docs/invoice/PaylaterType.md create mode 100644 docs/invoice/QrCode.md create mode 100644 docs/invoice/QrCodeType.md create mode 100644 docs/invoice/RetailOutlet.md create mode 100644 docs/invoice/RetailOutletName.md create mode 100644 docs/invoice/ServerError.md create mode 100644 docs/invoice/UnauthorizedError.md create mode 100644 docs/payment_method/BillingInformation.md create mode 100644 docs/payment_method/Card.md create mode 100644 docs/payment_method/CardChannelProperties.md create mode 100644 docs/payment_method/CardParameters.md create mode 100644 docs/payment_method/CardParametersCardInformation.md create mode 100644 docs/payment_method/CardVerificationResults.md create mode 100644 docs/payment_method/CardVerificationResultsThreeDSecure.md create mode 100644 docs/payment_method/CreatePaymentMethod409Response.md create mode 100644 docs/payment_method/CreatePaymentMethod503Response.md create mode 100644 docs/payment_method/DirectDebit.md create mode 100644 docs/payment_method/DirectDebitAllOf.md create mode 100644 docs/payment_method/DirectDebitBankAccount.md create mode 100644 docs/payment_method/DirectDebitChannelCode.md create mode 100644 docs/payment_method/DirectDebitChannelProperties.md create mode 100644 docs/payment_method/DirectDebitDebitCard.md create mode 100644 docs/payment_method/DirectDebitParameters.md create mode 100644 docs/payment_method/DirectDebitType.md create mode 100644 docs/payment_method/EWallet.md create mode 100644 docs/payment_method/EWalletAccount.md create mode 100644 docs/payment_method/EWalletChannelCode.md create mode 100644 docs/payment_method/EWalletChannelProperties.md create mode 100644 docs/payment_method/EWalletParameters.md create mode 100644 docs/payment_method/GetAllPaymentMethods400Response.md create mode 100644 docs/payment_method/GetAllPaymentMethods403Response.md create mode 100644 docs/payment_method/GetAllPaymentMethods404Response.md create mode 100644 docs/payment_method/GetAllPaymentMethodsDefaultResponse.md create mode 100644 docs/payment_method/OverTheCounter.md create mode 100644 docs/payment_method/OverTheCounterChannelCode.md create mode 100644 docs/payment_method/OverTheCounterChannelProperties.md create mode 100644 docs/payment_method/OverTheCounterChannelPropertiesUpdate.md create mode 100644 docs/payment_method/OverTheCounterParameters.md create mode 100644 docs/payment_method/OverTheCounterUpdateParameters.md create mode 100644 docs/payment_method/PaymentMethod.md create mode 100644 docs/payment_method/PaymentMethodAction.md create mode 100644 docs/payment_method/PaymentMethodAuthParameters.md create mode 100644 docs/payment_method/PaymentMethodCountry.md create mode 100644 docs/payment_method/PaymentMethodExpireParameters.md create mode 100644 docs/payment_method/PaymentMethodList.md create mode 100644 docs/payment_method/PaymentMethodParameters.md create mode 100644 docs/payment_method/PaymentMethodReusability.md create mode 100644 docs/payment_method/PaymentMethodStatus.md create mode 100644 docs/payment_method/PaymentMethodType.md create mode 100644 docs/payment_method/PaymentMethodUpdateParameters.md create mode 100644 docs/payment_method/QRCode.md create mode 100644 docs/payment_method/QRCodeChannelCode.md create mode 100644 docs/payment_method/QRCodeChannelProperties.md create mode 100644 docs/payment_method/QRCodeParameters.md create mode 100644 docs/payment_method/SimulatePaymentRequest.md create mode 100644 docs/payment_method/TokenizedCardInformation.md create mode 100644 docs/payment_method/VirtualAccount.md create mode 100644 docs/payment_method/VirtualAccountAllOf.md create mode 100644 docs/payment_method/VirtualAccountAlternativeDisplay.md create mode 100644 docs/payment_method/VirtualAccountChannelCode.md create mode 100644 docs/payment_method/VirtualAccountChannelProperties.md create mode 100644 docs/payment_method/VirtualAccountChannelPropertiesPatch.md create mode 100644 docs/payment_method/VirtualAccountParameters.md create mode 100644 docs/payment_method/VirtualAccountUpdateParameters.md create mode 100644 docs/payment_request/Capture.md create mode 100644 docs/payment_request/CaptureList.md create mode 100644 docs/payment_request/CaptureListResponse.md create mode 100644 docs/payment_request/CaptureParameters.md create mode 100644 docs/payment_request/Card.md create mode 100644 docs/payment_request/CardChannelProperties.md create mode 100644 docs/payment_request/CardInformation.md create mode 100644 docs/payment_request/CardVerificationResults.md create mode 100644 docs/payment_request/CardVerificationResultsThreeDSecure.md create mode 100644 docs/payment_request/DirectDebit.md create mode 100644 docs/payment_request/DirectDebitAllOf.md create mode 100644 docs/payment_request/DirectDebitBankAccount.md create mode 100644 docs/payment_request/DirectDebitChannelCode.md create mode 100644 docs/payment_request/DirectDebitChannelProperties.md create mode 100644 docs/payment_request/DirectDebitChannelPropertiesBankAccount.md create mode 100644 docs/payment_request/DirectDebitChannelPropertiesBankRedirect.md create mode 100644 docs/payment_request/DirectDebitChannelPropertiesDebitCard.md create mode 100644 docs/payment_request/DirectDebitDebitCard.md create mode 100644 docs/payment_request/DirectDebitParameters.md create mode 100644 docs/payment_request/DirectDebitType.md create mode 100644 docs/payment_request/EWallet.md create mode 100644 docs/payment_request/EWalletAccount.md create mode 100644 docs/payment_request/EWalletAllOf.md create mode 100644 docs/payment_request/EWalletChannelCode.md create mode 100644 docs/payment_request/EWalletChannelProperties.md create mode 100644 docs/payment_request/EWalletParameters.md create mode 100644 docs/payment_request/Error.md create mode 100644 docs/payment_request/OverTheCounter.md create mode 100644 docs/payment_request/OverTheCounterChannelCode.md create mode 100644 docs/payment_request/OverTheCounterChannelProperties.md create mode 100644 docs/payment_request/OverTheCounterParameters.md create mode 100644 docs/payment_request/PaymentMethod.md create mode 100644 docs/payment_request/PaymentMethodParameters.md create mode 100644 docs/payment_request/PaymentMethodReusability.md create mode 100644 docs/payment_request/PaymentMethodStatus.md create mode 100644 docs/payment_request/PaymentMethodType.md create mode 100644 docs/payment_request/PaymentRequest.md create mode 100644 docs/payment_request/PaymentRequestAction.md create mode 100644 docs/payment_request/PaymentRequestAuthParameters.md create mode 100644 docs/payment_request/PaymentRequestBasket.md create mode 100644 docs/payment_request/PaymentRequestBasketItem.md create mode 100644 docs/payment_request/PaymentRequestCaptureMethod.md create mode 100644 docs/payment_request/PaymentRequestCardVerificationResults.md create mode 100644 docs/payment_request/PaymentRequestCardVerificationResultsThreeDeeSecure.md create mode 100644 docs/payment_request/PaymentRequestChannelProperties.md create mode 100644 docs/payment_request/PaymentRequestCountry.md create mode 100644 docs/payment_request/PaymentRequestCurrency.md create mode 100644 docs/payment_request/PaymentRequestInitiator.md create mode 100644 docs/payment_request/PaymentRequestListResponse.md create mode 100644 docs/payment_request/PaymentRequestParameters.md create mode 100644 docs/payment_request/PaymentRequestParametersChannelProperties.md create mode 100644 docs/payment_request/PaymentRequestParametersChannelPropertiesAllOf.md create mode 100644 docs/payment_request/PaymentRequestShippingInformation.md create mode 100644 docs/payment_request/PaymentRequestStatus.md create mode 100644 docs/payment_request/QRCode.md create mode 100644 docs/payment_request/QRCodeChannelCode.md create mode 100644 docs/payment_request/QRCodeChannelProperties.md create mode 100644 docs/payment_request/QRCodeParameters.md create mode 100644 docs/payment_request/VirtualAccount.md create mode 100644 docs/payment_request/VirtualAccountAllOf.md create mode 100644 docs/payment_request/VirtualAccountAlternativeDisplay.md create mode 100644 docs/payment_request/VirtualAccountChannelCode.md create mode 100644 docs/payment_request/VirtualAccountChannelProperties.md create mode 100644 docs/payment_request/VirtualAccountParameters.md create mode 100644 docs/payout/Channel.md create mode 100644 docs/payout/ChannelAccountType.md create mode 100644 docs/payout/ChannelAmountLimits.md create mode 100644 docs/payout/ChannelCategory.md create mode 100644 docs/payout/CreatePayoutRequest.md create mode 100644 docs/payout/DigitalPayoutChannelProperties.md create mode 100644 docs/payout/Error.md create mode 100644 docs/payout/ErrorErrorsInner.md create mode 100644 docs/payout/GetPayouts200Response.md create mode 100644 docs/payout/GetPayouts200ResponseDataInner.md create mode 100644 docs/payout/GetPayouts200ResponseLinks.md create mode 100644 docs/payout/Payout.md create mode 100644 docs/payout/PayoutAllOf.md create mode 100644 docs/payout/ReceiptNotification.md create mode 100644 docs/refund/CreateRefund.md create mode 100644 docs/refund/CreateRefund400Response.md create mode 100644 docs/refund/CreateRefund403Response.md create mode 100644 docs/refund/CreateRefund404Response.md create mode 100644 docs/refund/CreateRefund409Response.md create mode 100644 docs/refund/CreateRefund503Response.md create mode 100644 docs/refund/GetAllRefundsDefaultResponse.md create mode 100644 docs/refund/Refund.md create mode 100644 docs/refund/RefundList.md rename {docs => images}/header.jpg (100%) create mode 100644 pyproject.toml diff --git a/.github/workflows/generate-release-tag.yml b/.github/workflows/generate-release-tag.yml index 26f8a989..af91f10a 100644 --- a/.github/workflows/generate-release-tag.yml +++ b/.github/workflows/generate-release-tag.yml @@ -36,5 +36,16 @@ jobs: id-token: write steps: - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Install Poetry + uses: abatilo/actions-poetry@v2 + with: + poetry-version: '1.6.1' + - name: Build Package + run: | + poetry install + poetry build - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 32fc43e0..d5c60bc2 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -3,72 +3,73 @@ .gitignore LICENSE README.md -docs/Capture.md -docs/CaptureList.md -docs/CaptureListResponse.md -docs/CaptureParameters.md -docs/Card.md -docs/CardChannelProperties.md -docs/CardInformation.md -docs/CardVerificationResults.md -docs/CardVerificationResultsThreeDSecure.md -docs/DirectDebit.md -docs/DirectDebitAllOf.md -docs/DirectDebitBankAccount.md -docs/DirectDebitChannelCode.md -docs/DirectDebitChannelProperties.md -docs/DirectDebitChannelPropertiesBankAccount.md -docs/DirectDebitChannelPropertiesBankRedirect.md -docs/DirectDebitChannelPropertiesDebitCard.md -docs/DirectDebitDebitCard.md -docs/DirectDebitParameters.md -docs/DirectDebitType.md -docs/EWallet.md -docs/EWalletAccount.md -docs/EWalletAllOf.md -docs/EWalletChannelCode.md -docs/EWalletChannelProperties.md -docs/EWalletParameters.md -docs/Error.md -docs/OverTheCounter.md -docs/OverTheCounterChannelCode.md -docs/OverTheCounterChannelProperties.md -docs/OverTheCounterParameters.md -docs/PaymentMethod.md -docs/PaymentMethodParameters.md -docs/PaymentMethodReusability.md -docs/PaymentMethodStatus.md -docs/PaymentMethodType.md -docs/PaymentRequest.md -docs/PaymentRequestAction.md docs/PaymentRequestApi.md -docs/PaymentRequestAuthParameters.md -docs/PaymentRequestBasket.md -docs/PaymentRequestBasketItem.md -docs/PaymentRequestCaptureMethod.md -docs/PaymentRequestCardVerificationResults.md -docs/PaymentRequestCardVerificationResultsThreeDeeSecure.md -docs/PaymentRequestChannelProperties.md -docs/PaymentRequestCountry.md -docs/PaymentRequestCurrency.md -docs/PaymentRequestInitiator.md -docs/PaymentRequestListResponse.md -docs/PaymentRequestParameters.md -docs/PaymentRequestParametersChannelProperties.md -docs/PaymentRequestParametersChannelPropertiesAllOf.md -docs/PaymentRequestShippingInformation.md -docs/PaymentRequestStatus.md -docs/QRCode.md -docs/QRCodeChannelCode.md -docs/QRCodeChannelProperties.md -docs/QRCodeParameters.md -docs/VirtualAccount.md -docs/VirtualAccountAllOf.md -docs/VirtualAccountAlternativeDisplay.md -docs/VirtualAccountChannelCode.md -docs/VirtualAccountChannelProperties.md -docs/VirtualAccountParameters.md -docs/header.jpg +docs/payment_request/Capture.md +docs/payment_request/CaptureList.md +docs/payment_request/CaptureListResponse.md +docs/payment_request/CaptureParameters.md +docs/payment_request/Card.md +docs/payment_request/CardChannelProperties.md +docs/payment_request/CardInformation.md +docs/payment_request/CardVerificationResults.md +docs/payment_request/CardVerificationResultsThreeDSecure.md +docs/payment_request/DirectDebit.md +docs/payment_request/DirectDebitAllOf.md +docs/payment_request/DirectDebitBankAccount.md +docs/payment_request/DirectDebitChannelCode.md +docs/payment_request/DirectDebitChannelProperties.md +docs/payment_request/DirectDebitChannelPropertiesBankAccount.md +docs/payment_request/DirectDebitChannelPropertiesBankRedirect.md +docs/payment_request/DirectDebitChannelPropertiesDebitCard.md +docs/payment_request/DirectDebitDebitCard.md +docs/payment_request/DirectDebitParameters.md +docs/payment_request/DirectDebitType.md +docs/payment_request/EWallet.md +docs/payment_request/EWalletAccount.md +docs/payment_request/EWalletAllOf.md +docs/payment_request/EWalletChannelCode.md +docs/payment_request/EWalletChannelProperties.md +docs/payment_request/EWalletParameters.md +docs/payment_request/Error.md +docs/payment_request/OverTheCounter.md +docs/payment_request/OverTheCounterChannelCode.md +docs/payment_request/OverTheCounterChannelProperties.md +docs/payment_request/OverTheCounterParameters.md +docs/payment_request/PaymentMethod.md +docs/payment_request/PaymentMethodParameters.md +docs/payment_request/PaymentMethodReusability.md +docs/payment_request/PaymentMethodStatus.md +docs/payment_request/PaymentMethodType.md +docs/payment_request/PaymentRequest.md +docs/payment_request/PaymentRequestAction.md +docs/payment_request/PaymentRequestAuthParameters.md +docs/payment_request/PaymentRequestBasket.md +docs/payment_request/PaymentRequestBasketItem.md +docs/payment_request/PaymentRequestCaptureMethod.md +docs/payment_request/PaymentRequestCardVerificationResults.md +docs/payment_request/PaymentRequestCardVerificationResultsThreeDeeSecure.md +docs/payment_request/PaymentRequestChannelProperties.md +docs/payment_request/PaymentRequestCountry.md +docs/payment_request/PaymentRequestCurrency.md +docs/payment_request/PaymentRequestInitiator.md +docs/payment_request/PaymentRequestListResponse.md +docs/payment_request/PaymentRequestParameters.md +docs/payment_request/PaymentRequestParametersChannelProperties.md +docs/payment_request/PaymentRequestParametersChannelPropertiesAllOf.md +docs/payment_request/PaymentRequestShippingInformation.md +docs/payment_request/PaymentRequestStatus.md +docs/payment_request/QRCode.md +docs/payment_request/QRCodeChannelCode.md +docs/payment_request/QRCodeChannelProperties.md +docs/payment_request/QRCodeParameters.md +docs/payment_request/VirtualAccount.md +docs/payment_request/VirtualAccountAllOf.md +docs/payment_request/VirtualAccountAlternativeDisplay.md +docs/payment_request/VirtualAccountChannelCode.md +docs/payment_request/VirtualAccountChannelProperties.md +docs/payment_request/VirtualAccountParameters.md +images/header.jpg +pyproject.toml requirements.txt setup.cfg setup.py diff --git a/README.md b/README.md index feebdd9e..e189de49 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -![Xendit Python SDK](docs/header.jpg "Xendit Pyton SDK") +![Xendit Python SDK](images/header.jpg "Xendit Python SDK") # Xendit Python SDK The official Xendit Python SDK provides a simple and convenient way to call Xendit's REST API in applications written in Python. -* Package version: 3.4.0 +* Package version: 3.6.0 ## Requirements diff --git a/docs/AccountBank.md b/docs/AccountBank.md deleted file mode 100644 index e3af6911..00000000 --- a/docs/AccountBank.md +++ /dev/null @@ -1,17 +0,0 @@ -# xendit.customer.model.AccountBank - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **account_number** | **str** | Unique account identifier as per the bank records. | [optional] | -| **account_holder_name** | **str, none_type** | Name of account holder as per the bank records. Needs to match the registered account name exactly. . | [optional] | -| **swift_code** | **str, none_type** | The SWIFT code for international payments | [optional] | -| **account_type** | **str, none_type** | Free text account type, e.g., Savings, Transaction, Virtual Account. | [optional] | -| **account_details** | **str, none_type** | Potentially masked account detail, for display purposes only. | [optional] | -| **currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AccountCard.md b/docs/AccountCard.md deleted file mode 100644 index 34c41863..00000000 --- a/docs/AccountCard.md +++ /dev/null @@ -1,12 +0,0 @@ -# xendit.customer.model.AccountCard - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **token_id** | **str** | The token id returned in tokenisation | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AccountEwallet.md b/docs/AccountEwallet.md deleted file mode 100644 index 60e98024..00000000 --- a/docs/AccountEwallet.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.customer.model.AccountEwallet - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **account_number** | **str** | Unique account identifier as per the bank records. | [optional] | -| **account_holder_name** | **str, none_type** | Name of account holder as per the bank records. Needs to match the registered account name exactly. | [optional] | -| **currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AccountOTC.md b/docs/AccountOTC.md deleted file mode 100644 index 8fa831ef..00000000 --- a/docs/AccountOTC.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.customer.model.AccountOTC - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **payment_code** | **str** | Complete fixed payment code (including prefix) | [optional] | -| **expires_at** | **str, none_type** | YYYY-MM-DD string with expiry date for the payment code | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AccountPayLater.md b/docs/AccountPayLater.md deleted file mode 100644 index 839ca248..00000000 --- a/docs/AccountPayLater.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.customer.model.AccountPayLater - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **account_id** | **str** | Alphanumeric string identifying this account. Usually an email address or phone number. | [optional] | -| **account_holder_name** | **str, none_type** | Name of account holder as per the cardless credit account. | [optional] | -| **currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AccountQRCode.md b/docs/AccountQRCode.md deleted file mode 100644 index c82647fc..00000000 --- a/docs/AccountQRCode.md +++ /dev/null @@ -1,12 +0,0 @@ -# xendit.customer.model.AccountQRCode - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **qr_string** | **str** | String representation of the QR Code image | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Address.md b/docs/Address.md deleted file mode 100644 index cf1d3886..00000000 --- a/docs/Address.md +++ /dev/null @@ -1,24 +0,0 @@ -# xendit.customer.model.Address - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **category** | **str, none_type** | | | -| **country** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | -| **province_state** | **str, none_type** | | | -| **city** | **str, none_type** | | | -| **postal_code** | **str, none_type** | | | -| **street_line1** | **str, none_type** | | | -| **street_line2** | **str, none_type** | | | -| **is_primary** | **bool, none_type** | | | -| **id** | **str** | | [optional] | -| **status** | [**AddressStatus**](AddressStatus.md) | | [optional] | -| **meta** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | -| **created** | **datetime** | | [optional] | -| **updated** | **datetime** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AddressObject.md b/docs/AddressObject.md deleted file mode 100644 index f291a6da..00000000 --- a/docs/AddressObject.md +++ /dev/null @@ -1,19 +0,0 @@ -# xendit.invoice.model.AddressObject - -An object representing an address with various properties. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **country** | **str, none_type** | The country where the address is located. | [optional] | -| **street_line1** | **str, none_type** | The first line of the street address. | [optional] | -| **street_line2** | **str, none_type** | The second line of the street address. | [optional] | -| **city** | **str, none_type** | The city or locality within the address. | [optional] | -| **province** | **str, none_type** | The province or region within the country. | [optional] | -| **state** | **str, none_type** | The state or administrative division within the country. | [optional] | -| **postal_code** | **str, none_type** | The postal code or ZIP code for the address. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AddressRequest.md b/docs/AddressRequest.md deleted file mode 100644 index 09eb9314..00000000 --- a/docs/AddressRequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# xendit.customer.model.AddressRequest - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **category** | **str** | Home, work or provincial | [optional] | -| **country_code** | [**CountryCode**](CountryCode.md) | | [optional] | -| **province_state** | **str** | | [optional] | -| **city** | **str** | | [optional] | -| **suburb** | **str** | | [optional] | -| **postal_code** | **str** | | [optional] | -| **line_1** | **str** | | [optional] | -| **line_2** | **str** | | [optional] | -| **status** | [**AddressStatus**](AddressStatus.md) | | [optional] | -| **is_primary** | **bool** | | [optional] if omitted the server will use the default value of False | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AddressStatus.md b/docs/AddressStatus.md deleted file mode 100644 index 9f888bc5..00000000 --- a/docs/AddressStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.customer.model.AddressStatus - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["ACTIVE", "DELETED", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AlternativeDisplayItem.md b/docs/AlternativeDisplayItem.md deleted file mode 100644 index c1116d4e..00000000 --- a/docs/AlternativeDisplayItem.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.AlternativeDisplayItem - -An object representing alternative display of a VA. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **type** | **str** | Represent type of alternative display. | [optional] | -| **value** | **str** | Represent value of alternative display value. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/BadRequestError.md b/docs/BadRequestError.md deleted file mode 100644 index d015d233..00000000 --- a/docs/BadRequestError.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.BadRequestError - -Response definition for a 400 Bad Request error when creating an invoice. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | The error code indicating the type of error that occurred. | | -| **message** | **str** | A human-readable error message that provides additional information about the error. | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Balance.md b/docs/Balance.md deleted file mode 100644 index d25efe0f..00000000 --- a/docs/Balance.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.balance_and_transaction.model.Balance - -The balance remaining in your account - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **balance** | **float** | | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/BalanceApi.md b/docs/BalanceApi.md index 084c34db..7cc9d67c 100644 --- a/docs/BalanceApi.md +++ b/docs/BalanceApi.md @@ -1,22 +1,51 @@ -# xendit.apis.BalanceApi +# BalanceApi + + +You can use the APIs below to interface with Xendit's `BalanceApi`. +To start using the API, you need to configure the secret key and initiate the client instance. + +```python +import time +import xendit +from xendit.apis import BalanceApi + +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') + +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() + +# Create an instance of the API class +api_instance = BalanceApi(api_client) +``` All URIs are relative to *https://api.xendit.co* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_balance**](BalanceApi.md#get_balance) | **GET** /balance | Retrieves balances for a business, default to CASH type +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**get_balance**](BalanceApi.md#get_balance-function) | **GET** /balance | Retrieves balances for a business, default to CASH type | -# **get_balance** +# `get_balance()` Function > Balance get_balance() Retrieves balances for a business, default to CASH type -Retrieves balance for your business, defaults to CASH type +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_balance` | +| Request Parameters | [GetBalanceRequestParams](#request-parameters--GetBalanceRequestParams) | +| Return Type | [**Balance**](balance_and_transaction/Balance.md) | -### Example +### Request Parameters - GetBalanceRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **account_type** | **str**| | "CASH" | +| **currency** | **str**| | | +| **for_user_id** | **str**| | | +### Usage Example ```python import time import xendit @@ -34,6 +63,9 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = BalanceApi(api_client) +account_type = "CASH" # str | The selected balance type +currency = "IDR" # str | Currency for filter for customers with multi currency accounts +for_user_id = "5dbf20d7c8eb0c0896f811b6" # str | The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information # example passing only required values which don't have defaults set # and optional values @@ -45,27 +77,4 @@ except xendit.XenditSdkException as e: print("Exception when calling BalanceApi->get_balance: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **account_type** | **str**| The selected balance type | [optional] if omitted the server will use the default value of "CASH" - **currency** | **str**| Currency for filter for customers with multi currency accounts | [optional] - **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information | [optional] - -### Return type - -[**Balance**](Balance.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | success | - | -**400** | invalid input, object invalid | - | -**0** | Errors | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to README]](../README.md) diff --git a/docs/Bank.md b/docs/Bank.md deleted file mode 100644 index bac5ef62..00000000 --- a/docs/Bank.md +++ /dev/null @@ -1,19 +0,0 @@ -# xendit.invoice.model.Bank - -An object representing bank details for invoices. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **bank_code** | [**BankCode**](BankCode.md) | | | -| **collection_type** | **str** | The collection type for the bank details. | | -| **account_holder_name** | **str** | The name of the account holder. | | -| **bank_branch** | **str** | The branch of the bank. | [optional] | -| **bank_account_number** | **str** | The bank account number. | [optional] | -| **transfer_amount** | **float** | The transfer amount. | [optional] | -| **alternative_displays** | [**[AlternativeDisplayItem]**](AlternativeDisplayItem.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/BankCode.md b/docs/BankCode.md deleted file mode 100644 index 4bfa457e..00000000 --- a/docs/BankCode.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.BankCode - -Representing the available bank channels used for invoice-related transactions. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Representing the available bank channels used for invoice-related transactions. | must be one of ["BCA", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "BJB", "SAHABAT_SAMPOERNA", "CIMB", "BNC", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/BillingInformation.md b/docs/BillingInformation.md deleted file mode 100644 index 7aa1417a..00000000 --- a/docs/BillingInformation.md +++ /dev/null @@ -1,18 +0,0 @@ -# xendit.payment_method.model.BillingInformation - -Billing Information - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **country** | **str** | | | -| **street_line1** | **str, none_type** | | [optional] | -| **street_line2** | **str, none_type** | | [optional] | -| **city** | **str, none_type** | | [optional] | -| **province_state** | **str, none_type** | | [optional] | -| **postal_code** | **str, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/BusinessDetail.md b/docs/BusinessDetail.md deleted file mode 100644 index 177582ce..00000000 --- a/docs/BusinessDetail.md +++ /dev/null @@ -1,16 +0,0 @@ -# xendit.customer.model.BusinessDetail - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **business_name** | **str** | | [optional] | -| **business_type** | **str, none_type** | | [optional] | -| **date_of_registration** | **str, none_type** | | [optional] | -| **nature_of_business** | **str, none_type** | | [optional] | -| **business_domicile** | [**CountryCode**](CountryCode.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Capture.md b/docs/Capture.md deleted file mode 100644 index 6c47c575..00000000 --- a/docs/Capture.md +++ /dev/null @@ -1,26 +0,0 @@ -# xendit.payment_request.model.Capture - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **id** | **str** | | | -| **payment_request_id** | **str** | | | -| **payment_id** | **str** | | | -| **reference_id** | **str** | | | -| **currency** | **str** | | | -| **authorized_amount** | **float** | | | -| **captured_amount** | **float** | | | -| **status** | **str** | | | -| **payment_method** | [**PaymentMethod**](PaymentMethod.md) | | | -| **failure_code** | **str, none_type** | | | -| **customer_id** | **str, none_type** | | | -| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | -| **channel_properties** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | -| **created** | **str** | | | -| **updated** | **str** | | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CaptureList.md b/docs/CaptureList.md deleted file mode 100644 index af71dc52..00000000 --- a/docs/CaptureList.md +++ /dev/null @@ -1,12 +0,0 @@ -# xendit.payment_request.model.CaptureList - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | [**[Capture]**](Capture.md) | | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CaptureListResponse.md b/docs/CaptureListResponse.md deleted file mode 100644 index d2e8a046..00000000 --- a/docs/CaptureListResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.CaptureListResponse - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **data** | [**CaptureList**](CaptureList.md) | | | -| **has_more** | **bool** | | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CaptureParameters.md b/docs/CaptureParameters.md deleted file mode 100644 index 7e1ac415..00000000 --- a/docs/CaptureParameters.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.CaptureParameters - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **capture_amount** | **float** | | | -| **reference_id** | **str, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Card.md b/docs/Card.md deleted file mode 100644 index a4351d83..00000000 --- a/docs/Card.md +++ /dev/null @@ -1,15 +0,0 @@ -# xendit.payment_request.model.Card - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | | -| **channel_properties** | [**CardChannelProperties**](CardChannelProperties.md) | | | -| **card_information** | [**CardInformation**](CardInformation.md) | | | -| **card_verification_results** | [**CardVerificationResults**](CardVerificationResults.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CardChannelProperties.md b/docs/CardChannelProperties.md deleted file mode 100644 index 74a1605e..00000000 --- a/docs/CardChannelProperties.md +++ /dev/null @@ -1,17 +0,0 @@ -# xendit.payment_request.model.CardChannelProperties - -Card Channel Properties - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **skip_three_d_secure** | **bool, none_type** | To indicate whether to perform 3DS during the linking phase | [optional] | -| **success_return_url** | **str, none_type** | URL where the end-customer is redirected if the authorization is successful | [optional] | -| **failure_return_url** | **str, none_type** | URL where the end-customer is redirected if the authorization failed | [optional] | -| **cardonfile_type** | **str, none_type** | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | [optional] | -| **merchant_id_tag** | **str** | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CardInformation.md b/docs/CardInformation.md deleted file mode 100644 index b20ecd07..00000000 --- a/docs/CardInformation.md +++ /dev/null @@ -1,22 +0,0 @@ -# xendit.payment_request.model.CardInformation - -Card Information - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **token_id** | **str** | | | -| **masked_card_number** | **str** | 1st 6 and last 4 digits of the card | | -| **expiry_month** | **str** | Card expiry month in MM format | | -| **expiry_year** | **str** | Card expiry month in YY format | | -| **cardholder_name** | **str, none_type** | Cardholder name | [optional] | -| **fingerprint** | **str** | | [optional] | -| **type** | **str** | | [optional] | -| **network** | **str** | | [optional] | -| **country** | **str** | | [optional] | -| **issuer** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CardParameters.md b/docs/CardParameters.md deleted file mode 100644 index ad1b384f..00000000 --- a/docs/CardParameters.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_method.model.CardParameters - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **currency** | **str** | | | -| **channel_properties** | [**CardChannelProperties**](CardChannelProperties.md) | | [optional] | -| **card_information** | [**CardParametersCardInformation**](CardParametersCardInformation.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CardParametersCardInformation.md b/docs/CardParametersCardInformation.md deleted file mode 100644 index 8377fcf1..00000000 --- a/docs/CardParametersCardInformation.md +++ /dev/null @@ -1,17 +0,0 @@ -# xendit.payment_method.model.CardParametersCardInformation - -Card Information - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **card_number** | **str** | | | -| **expiry_month** | **str** | Card expiry month in MM format | | -| **expiry_year** | **str** | Card expiry month in YY format | | -| **cardholder_name** | **str, none_type** | Cardholder name | [optional] | -| **cvv** | **str, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CardVerificationResults.md b/docs/CardVerificationResults.md deleted file mode 100644 index 9f3216f3..00000000 --- a/docs/CardVerificationResults.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_request.model.CardVerificationResults - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **three_d_secure** | [**CardVerificationResultsThreeDSecure**](CardVerificationResultsThreeDSecure.md) | | [optional] | -| **cvv_result** | **str, none_type** | | [optional] | -| **address_verification_result** | **str, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CardVerificationResultsThreeDSecure.md b/docs/CardVerificationResultsThreeDSecure.md deleted file mode 100644 index a9f2d997..00000000 --- a/docs/CardVerificationResultsThreeDSecure.md +++ /dev/null @@ -1,16 +0,0 @@ -# xendit.payment_request.model.CardVerificationResultsThreeDSecure - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **three_d_secure_flow** | **str, none_type** | | [optional] | -| **eci_code** | **str, none_type** | | [optional] | -| **three_d_secure_result** | **str, none_type** | | [optional] | -| **three_d_secure_result_reason** | **str, none_type** | | [optional] | -| **three_d_secure_version** | **str, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Channel.md b/docs/Channel.md deleted file mode 100644 index 974a2077..00000000 --- a/docs/Channel.md +++ /dev/null @@ -1,17 +0,0 @@ -# xendit.payout.model.Channel - -Channel information where you can send the money to - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **channel_code** | **str** | Destination channel to send the money to, prefixed by ISO-3166 country code | | -| **channel_category** | [**ChannelCategory**](ChannelCategory.md) | | | -| **currency** | **str** | Currency of the destination channel using ISO-4217 currency code | | -| **channel_name** | **str** | Name of the destination channel | | -| **amount_limits** | [**ChannelAmountLimits**](ChannelAmountLimits.md) | | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ChannelAccountType.md b/docs/ChannelAccountType.md deleted file mode 100644 index 1505cdc9..00000000 --- a/docs/ChannelAccountType.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payout.model.ChannelAccountType - -Available account types (applicable for MY_DUITNOW) - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Available account types (applicable for MY_DUITNOW) | must be one of ["NATIONAL_ID", "MOBILE_NO", "PASSPORT", "BUSINESS_REGISTRATION", "BANK_ACCOUNT", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ChannelAmountLimits.md b/docs/ChannelAmountLimits.md deleted file mode 100644 index a1141110..00000000 --- a/docs/ChannelAmountLimits.md +++ /dev/null @@ -1,15 +0,0 @@ -# xendit.payout.model.ChannelAmountLimits - -Supported amount ranges for payouts to this channel - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **minimum** | **float** | Lowest amount supported for a payout to this channel | | -| **maximum** | **float** | Highest amount supported for a payout to this channel | | -| **minimum_increment** | **float** | Supported increments | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ChannelCategory.md b/docs/ChannelCategory.md deleted file mode 100644 index 8baf4d18..00000000 --- a/docs/ChannelCategory.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payout.model.ChannelCategory - -Category of channel code, as some channels might require more fields during processing - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Category of channel code, as some channels might require more fields during processing | must be one of ["BANK", "EWALLET", "OTC", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ChannelsCategories.md b/docs/ChannelsCategories.md deleted file mode 100644 index 7b7743ab..00000000 --- a/docs/ChannelsCategories.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.balance_and_transaction.model.ChannelsCategories - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["BANK", "CARDLESS_CREDIT", "PAYLATER", "CARDS", "CASH", "DIRECT_DEBIT", "EWALLET", "INVOICE", "QR_CODE", "RETAIL_OUTLET", "VIRTUAL_ACCOUNT", "XENPLATFORM", "DIRECT_BANK_TRANSFER", "OTHER", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CountryCode.md b/docs/CountryCode.md deleted file mode 100644 index 816f7833..00000000 --- a/docs/CountryCode.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.customer.model.CountryCode - -ISO3166-2 country code - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | ISO3166-2 country code | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateCustomer400Response.md b/docs/CreateCustomer400Response.md deleted file mode 100644 index e9acfc74..00000000 --- a/docs/CreateCustomer400Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.customer.model.CreateCustomer400Response - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | | -| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | -| **errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateCustomer400ResponseAllOf.md b/docs/CreateCustomer400ResponseAllOf.md deleted file mode 100644 index 0babb64f..00000000 --- a/docs/CreateCustomer400ResponseAllOf.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.customer.model.CreateCustomer400ResponseAllOf - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] | -| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateInvoiceRequest.md b/docs/CreateInvoiceRequest.md deleted file mode 100644 index 4a7dcddc..00000000 --- a/docs/CreateInvoiceRequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# xendit.invoice.model.CreateInvoiceRequest - -An object representing for an invoice creation request. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **external_id** | **str** | The external ID of the invoice. | | -| **amount** | **float** | The invoice amount. | | -| **payer_email** | **str** | The email address of the payer. | [optional] | -| **description** | **str** | A description of the payment. | [optional] | -| **invoice_duration** | **str** | The duration of the invoice. | [optional] | -| **callback_virtual_account_id** | **str** | The ID of the callback virtual account. | [optional] | -| **should_send_email** | **bool** | Indicates whether email notifications should be sent. | [optional] | -| **customer** | [**CustomerObject**](CustomerObject.md) | | [optional] | -| **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | [optional] | -| **success_redirect_url** | **str** | The URL to redirect to on successful payment. | [optional] | -| **failure_redirect_url** | **str** | The URL to redirect to on payment failure. | [optional] | -| **payment_methods** | **[str]** | An array of available payment methods. | [optional] | -| **mid_label** | **str** | The middle label. | [optional] | -| **should_authenticate_credit_card** | **bool** | Indicates whether credit card authentication is required. | [optional] | -| **currency** | **str** | The currency of the invoice. | [optional] | -| **reminder_time** | **float** | The reminder time. | [optional] | -| **local** | **str** | The local. | [optional] | -| **reminder_time_unit** | **str** | The unit of the reminder time. | [optional] | -| **items** | [**[InvoiceItem]**](InvoiceItem.md) | An array of items included in the invoice. | [optional] | -| **fees** | [**[InvoiceFee]**](InvoiceFee.md) | An array of fees associated with the invoice. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreatePaymentMethod409Response.md b/docs/CreatePaymentMethod409Response.md deleted file mode 100644 index a98b7ff9..00000000 --- a/docs/CreatePaymentMethod409Response.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_method.model.CreatePaymentMethod409Response - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] | -| **message** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreatePaymentMethod503Response.md b/docs/CreatePaymentMethod503Response.md deleted file mode 100644 index 8e511a43..00000000 --- a/docs/CreatePaymentMethod503Response.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_method.model.CreatePaymentMethod503Response - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] | -| **message** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreatePayoutRequest.md b/docs/CreatePayoutRequest.md deleted file mode 100644 index 02b5aa0c..00000000 --- a/docs/CreatePayoutRequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# xendit.payout.model.CreatePayoutRequest - -Information needed by Xendit to send money to the destination channel provided - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **reference_id** | **str** | A client defined payout identifier | | -| **channel_code** | **str** | Channel code of selected destination bank or e-wallet | | -| **channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | | | -| **amount** | **float** | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | | -| **currency** | **str** | Currency of the destination channel using ISO-4217 currency code | | -| **description** | **str** | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | [optional] | -| **receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | [optional] | -| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Object of additional information you may use | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateRefund.md b/docs/CreateRefund.md deleted file mode 100644 index 79f1d51b..00000000 --- a/docs/CreateRefund.md +++ /dev/null @@ -1,18 +0,0 @@ -# xendit.refund.model.CreateRefund - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **payment_request_id** | **str** | | [optional] | -| **invoice_id** | **str** | | [optional] | -| **reference_id** | **str** | | [optional] | -| **amount** | **float** | | [optional] | -| **currency** | **str** | | [optional] | -| **reason** | **str** | | [optional] | -| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateRefund400Response.md b/docs/CreateRefund400Response.md deleted file mode 100644 index dcfcef7f..00000000 --- a/docs/CreateRefund400Response.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.refund.model.CreateRefund400Response - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] | -| **message** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateRefund403Response.md b/docs/CreateRefund403Response.md deleted file mode 100644 index bc8405a4..00000000 --- a/docs/CreateRefund403Response.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.refund.model.CreateRefund403Response - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] if omitted the server will use the default value of "UNAUTHORIZED" | -| **message** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateRefund404Response.md b/docs/CreateRefund404Response.md deleted file mode 100644 index 3b8dc026..00000000 --- a/docs/CreateRefund404Response.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.refund.model.CreateRefund404Response - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] if omitted the server will use the default value of "DATA_NOT_FOUND" | -| **message** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateRefund409Response.md b/docs/CreateRefund409Response.md deleted file mode 100644 index e6189981..00000000 --- a/docs/CreateRefund409Response.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.refund.model.CreateRefund409Response - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] | -| **message** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateRefund503Response.md b/docs/CreateRefund503Response.md deleted file mode 100644 index b50bffd7..00000000 --- a/docs/CreateRefund503Response.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.refund.model.CreateRefund503Response - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] | -| **message** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Currency.md b/docs/Currency.md deleted file mode 100644 index 547a7e07..00000000 --- a/docs/Currency.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.balance_and_transaction.model.Currency - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["IDR", "PHP", "USD", "JPY", "VND", "SGD", "AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BRL", "BSD", "BTN", "BWP", "BYN", "BZD", "CAD", "CDF", "CHF", "CLP", "CNY", "COP", "CRC", "CUC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "GBP", "GEL", "GGP", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HRK", "HTG", "HUF", "ILS", "IMP", "INR", "IQD", "IRR", "ISK", "JEP", "JMD", "JOD", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRU", "MUR", "MVR", "MWK", "MXN", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SHP", "SLL", "SOS", "SPL", "SRD", "STN", "SVC", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TVD", "TWD", "TZS", "UAH", "UGX", "UYU", "UZS", "VEF", "VUV", "WST", "XAF", "XCD", "XDR", "XOF", "XPF", "YER", "ZAR", "ZMW", "ZWD", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Customer.md b/docs/Customer.md deleted file mode 100644 index bf6e69ac..00000000 --- a/docs/Customer.md +++ /dev/null @@ -1,27 +0,0 @@ -# xendit.customer.model.Customer - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **reference_id** | **str** | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | | -| **individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | | -| **business_detail** | [**BusinessDetail**](BusinessDetail.md) | | | -| **description** | **str, none_type** | | | -| **email** | **str, none_type** | | | -| **mobile_number** | **str, none_type** | | | -| **phone_number** | **str, none_type** | | | -| **addresses** | [**[Address], none_type**](Address.md) | | | -| **identity_accounts** | [**[IdentityAccountResponse], none_type**](IdentityAccountResponse.md) | | | -| **kyc_documents** | [**[KYCDocumentResponse], none_type**](KYCDocumentResponse.md) | | | -| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | -| **id** | **str** | | | -| **created** | **datetime** | | | -| **updated** | **datetime** | | | -| **type** | **str** | | defaults to "INDIVIDUAL" | -| **status** | [**EndCustomerStatus**](EndCustomerStatus.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CustomerApi.md b/docs/CustomerApi.md index 0bee67b0..a27cd107 100644 --- a/docs/CustomerApi.md +++ b/docs/CustomerApi.md @@ -1,25 +1,54 @@ -# xendit.apis.CustomerApi +# CustomerApi + + +You can use the APIs below to interface with Xendit's `CustomerApi`. +To start using the API, you need to configure the secret key and initiate the client instance. + +```python +import time +import xendit +from xendit.apis import CustomerApi + +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') + +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() + +# Create an instance of the API class +api_instance = CustomerApi(api_client) +``` All URIs are relative to *https://api.xendit.co* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_customer**](CustomerApi.md#create_customer) | **POST** /customers | Create Customer -[**get_customer**](CustomerApi.md#get_customer) | **GET** /customers/{id} | Get Customer By ID -[**get_customer_by_reference_id**](CustomerApi.md#get_customer_by_reference_id) | **GET** /customers | GET customers by reference id -[**update_customer**](CustomerApi.md#update_customer) | **PATCH** /customers/{id} | Update End Customer Resource +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**create_customer**](CustomerApi.md#create_customer-function) | **POST** /customers | Create Customer | +| [**get_customer**](CustomerApi.md#get_customer-function) | **GET** /customers/{id} | Get Customer By ID | +| [**get_customer_by_reference_id**](CustomerApi.md#get_customer_by_reference_id-function) | **GET** /customers | GET customers by reference id | +| [**update_customer**](CustomerApi.md#update_customer-function) | **PATCH** /customers/{id} | Update End Customer Resource | -# **create_customer** +# `create_customer()` Function > Customer create_customer() Create Customer -Function to create a customer that you may use in your Invoice or Payment Requests. For detail explanations, see this link: https://developers.xendit.co/api-reference/#create-customer +| Name | Value | +|--------------------|:-------------:| +| Function Name | `create_customer` | +| Request Parameters | [CreateCustomerRequestParams](#request-parameters--CreateCustomerRequestParams) | +| Return Type | [**Customer**](customer/Customer.md) | -### Example +### Request Parameters - CreateCustomerRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **idempotency_key** | **str**| | | +| **for_user_id** | **str**| | | +| **customer_request** | [**CustomerRequest**](customer/CustomerRequest.md)| | | +### Usage Example ```python import time import xendit @@ -38,6 +67,79 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = CustomerApi(api_client) +idempotency_key = "idempotency-123" # str | A unique key to prevent processing duplicate requests. +for_user_id = "user-1" # str | The sub-account user-id that you want to make this transaction for. +customer_request = CustomerRequest( + client_name="AirAsia Indonesia", + reference_id="reference_id_example", + type="INDIVIDUAL", + individual_detail=IndividualDetail( + given_names="given_names_example", + given_names_non_roman="given_names_non_roman_example", + middle_name="middle_name_example", + surname="surname_example", + surname_non_roman="surname_non_roman_example", + mother_maiden_name="mother_maiden_name_example", + gender="MALE", + date_of_birth="2017-07-21", + nationality=CountryCode("ID"), + place_of_birth="place_of_birth_example", + employment=EmploymentDetail( + employer_name="employer_name_example", + nature_of_business="nature_of_business_example", + role_description="role_description_example", + ), + ), + business_detail=BusinessDetail( + business_name="business_name_example", + business_type="CORPORATION", + date_of_registration="2017-07-21", + nature_of_business="nature_of_business_example", + business_domicile=CountryCode("ID"), + ), + description="description_example", + email="info@xendit.co", + mobile_number="+6281295412345", + phone_number="+6281295412345", + addresses=[ + AddressRequest( + category="category_example", + country_code=CountryCode("ID"), + province_state="province_state_example", + city="city_example", + suburb="suburb_example", + postal_code="postal_code_example", + line_1="line_1_example", + line_2="line_2_example", + status=AddressStatus("ACTIVE"), + is_primary=False, + ), + ], + identity_accounts=[ + IdentityAccountRequest( + type=IdentityAccountType("BANK_ACCOUNT"), + company="company_example", + description="description_example", + country=CountryCode("ID"), + properties=IdentityAccountRequestProperties(None), + ), + ], + kyc_documents=[ + KYCDocumentRequest( + country=CountryCode("ID"), + type=KYCDocumentType("BIRTH_CERTIFICATE"), + sub_type=KYCDocumentSubType("NATIONAL_ID"), + document_name="KTP", + document_number="AA123467890", + expires_at="2017-07-21", + holder_name="John Doe", + document_images=[ + "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwc=", + ], + ), + ], + metadata={}, + ) # CustomerRequest | Request object for end customer object # example passing only required values which don't have defaults set # and optional values @@ -49,40 +151,25 @@ except xendit.XenditSdkException as e: print("Exception when calling CustomerApi->create_customer: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **idempotency_key** | **str**| A unique key to prevent processing duplicate requests. | [optional] - **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. | [optional] - **customer_request** | [**CustomerRequest**](CustomerRequest.md)| Request object for end customer object | [optional] - -### Return type - -[**Customer**](Customer.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Created End Customer | - | -**400** | Various errors | - | -**0** | Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_customer** +# `get_customer()` Function > Customer get_customer(id) Get Customer By ID -Retrieves a single customer object For detail explanations, see this link: https://developers.xendit.co/api-reference/#get-customer +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_customer` | +| Request Parameters | [GetCustomerRequestParams](#request-parameters--GetCustomerRequestParams) | +| Return Type | [**Customer**](customer/Customer.md) | -### Example +### Request Parameters - GetCustomerRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +### Usage Example ```python import time import xendit @@ -102,6 +189,7 @@ api_client = xendit.ApiClient() # Create an instance of the API class api_instance = CustomerApi(api_client) id = "d290f1ee-6c54-4b01-90e6-d701748f0851" # str | End customer resource id +for_user_id = "user-1" # str | The sub-account user-id that you want to make this transaction for. # example passing only required values which don't have defaults set try: @@ -121,40 +209,25 @@ except xendit.XenditSdkException as e: print("Exception when calling CustomerApi->get_customer: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| End customer resource id | - **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. | [optional] - -### Return type - -[**Customer**](Customer.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | End Customer Resource | - | -**400** | Various errors | - | -**404** | Customer not found | - | -**0** | Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_customer_by_reference_id** +# `get_customer_by_reference_id()` Function > GetCustomerByReferenceID200Response get_customer_by_reference_id(reference_id) GET customers by reference id -Retrieves an array with a customer object that matches the provided reference_id - the identifier provided by you For detail explanations, see this link: https://developers.xendit.co/api-reference/#get-customer-by-reference-id +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_customer_by_reference_id` | +| Request Parameters | [GetCustomerByReferenceIdRequestParams](#request-parameters--GetCustomerByReferenceIdRequestParams) | +| Return Type | [**GetCustomerByReferenceID200Response**](customer/GetCustomerByReferenceID200Response.md) | -### Example +### Request Parameters - GetCustomerByReferenceIdRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **reference_id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +### Usage Example ```python import time import xendit @@ -173,6 +246,7 @@ api_client = xendit.ApiClient() # Create an instance of the API class api_instance = CustomerApi(api_client) reference_id = "reference_id_example" # str | Merchant's reference of end customer +for_user_id = "user-1" # str | The sub-account user-id that you want to make this transaction for. # example passing only required values which don't have defaults set try: @@ -192,39 +266,26 @@ except xendit.XenditSdkException as e: print("Exception when calling CustomerApi->get_customer_by_reference_id: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reference_id** | **str**| Merchant's reference of end customer | - **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. | [optional] - -### Return type - -[**GetCustomerByReferenceID200Response**](GetCustomerByReferenceID200Response.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | End Customers | - | -**400** | Various errors | - | -**0** | Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_customer** +# `update_customer()` Function > Customer update_customer(id) Update End Customer Resource -Function to update an existing customer. For a detailed explanation For detail explanations, see this link: https://developers.xendit.co/api-reference/#update-customer +| Name | Value | +|--------------------|:-------------:| +| Function Name | `update_customer` | +| Request Parameters | [UpdateCustomerRequestParams](#request-parameters--UpdateCustomerRequestParams) | +| Return Type | [**Customer**](customer/Customer.md) | -### Example +### Request Parameters - UpdateCustomerRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +| **patch_customer** | [**PatchCustomer**](customer/PatchCustomer.md)| | | +### Usage Example ```python import time import xendit @@ -244,6 +305,78 @@ api_client = xendit.ApiClient() # Create an instance of the API class api_instance = CustomerApi(api_client) id = "d290f1ee-6c54-4b01-90e6-d701748f0851" # str | End customer resource id +for_user_id = "user-1" # str | The sub-account user-id that you want to make this transaction for. +patch_customer = PatchCustomer( + client_name="AirAsia Indonesia", + reference_id="reference_id_example", + individual_detail=IndividualDetail( + given_names="given_names_example", + given_names_non_roman="given_names_non_roman_example", + middle_name="middle_name_example", + surname="surname_example", + surname_non_roman="surname_non_roman_example", + mother_maiden_name="mother_maiden_name_example", + gender="MALE", + date_of_birth="2017-07-21", + nationality=CountryCode("ID"), + place_of_birth="place_of_birth_example", + employment=EmploymentDetail( + employer_name="employer_name_example", + nature_of_business="nature_of_business_example", + role_description="role_description_example", + ), + ), + business_detail=BusinessDetail( + business_name="business_name_example", + business_type="CORPORATION", + date_of_registration="2017-07-21", + nature_of_business="nature_of_business_example", + business_domicile=CountryCode("ID"), + ), + description="description_example", + email="info@xendit.co", + mobile_number="+6281295412345", + phone_number="+6281295412345", + metadata={}, + addresses=[ + AddressRequest( + category="category_example", + country_code=CountryCode("ID"), + province_state="province_state_example", + city="city_example", + suburb="suburb_example", + postal_code="postal_code_example", + line_1="line_1_example", + line_2="line_2_example", + status=AddressStatus("ACTIVE"), + is_primary=False, + ), + ], + identity_accounts=[ + IdentityAccountRequest( + type=IdentityAccountType("BANK_ACCOUNT"), + company="company_example", + description="description_example", + country=CountryCode("ID"), + properties=IdentityAccountRequestProperties(None), + ), + ], + kyc_documents=[ + KYCDocumentRequest( + country=CountryCode("ID"), + type=KYCDocumentType("BIRTH_CERTIFICATE"), + sub_type=KYCDocumentSubType("NATIONAL_ID"), + document_name="KTP", + document_number="AA123467890", + expires_at="2017-07-21", + holder_name="John Doe", + document_images=[ + "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwc=", + ], + ), + ], + status=EndCustomerStatus("ACTIVE"), + ) # PatchCustomer | Update Request for end customer object # example passing only required values which don't have defaults set try: @@ -263,27 +396,4 @@ except xendit.XenditSdkException as e: print("Exception when calling CustomerApi->update_customer: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| End customer resource id | - **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. | [optional] - **patch_customer** | [**PatchCustomer**](PatchCustomer.md)| Update Request for end customer object | [optional] - -### Return type - -[**Customer**](Customer.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Updated End Customer | - | -**400** | Various errors | - | -**0** | Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to README]](../README.md) diff --git a/docs/CustomerObject.md b/docs/CustomerObject.md deleted file mode 100644 index fc088c9a..00000000 --- a/docs/CustomerObject.md +++ /dev/null @@ -1,20 +0,0 @@ -# xendit.invoice.model.CustomerObject - -An object representing a customer with various properties, including addresses. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **id** | **str, none_type** | The unique identifier for the customer. | [optional] | -| **phone_number** | **str, none_type** | The customer's phone number. | [optional] | -| **given_names** | **str, none_type** | The customer's given names or first names. | [optional] | -| **surname** | **str, none_type** | The customer's surname or last name. | [optional] | -| **email** | **str, none_type** | The customer's email address. | [optional] | -| **mobile_number** | **str, none_type** | The customer's mobile phone number. | [optional] | -| **customer_id** | **str, none_type** | An additional identifier for the customer. | [optional] | -| **addresses** | [**[AddressObject], none_type**](AddressObject.md) | An array of addresses associated with the customer. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CustomerRequest.md b/docs/CustomerRequest.md deleted file mode 100644 index e6922cc6..00000000 --- a/docs/CustomerRequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# xendit.customer.model.CustomerRequest - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **reference_id** | **str** | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | | -| **client_name** | **str** | Entity's name for this client | [optional] | -| **type** | **str** | | [optional] if omitted the server will use the default value of "INDIVIDUAL" | -| **individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | [optional] | -| **business_detail** | [**BusinessDetail**](BusinessDetail.md) | | [optional] | -| **description** | **str, none_type** | | [optional] | -| **email** | **str** | | [optional] | -| **mobile_number** | **str** | | [optional] | -| **phone_number** | **str** | | [optional] | -| **addresses** | [**[AddressRequest]**](AddressRequest.md) | | [optional] | -| **identity_accounts** | [**[IdentityAccountRequest]**](IdentityAccountRequest.md) | | [optional] | -| **kyc_documents** | [**[KYCDocumentRequest]**](KYCDocumentRequest.md) | | [optional] | -| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DateRangeFilter.md b/docs/DateRangeFilter.md deleted file mode 100644 index 9a5ec8f2..00000000 --- a/docs/DateRangeFilter.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.balance_and_transaction.model.DateRangeFilter - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **gte** | **datetime** | Start time of transaction. If not specified will list all dates. | [optional] | -| **lte** | **datetime** | End time of transaction. If not specified will list all dates. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DigitalPayoutChannelProperties.md b/docs/DigitalPayoutChannelProperties.md deleted file mode 100644 index da4bcf7c..00000000 --- a/docs/DigitalPayoutChannelProperties.md +++ /dev/null @@ -1,15 +0,0 @@ -# xendit.payout.model.DigitalPayoutChannelProperties - -Channel information for digital destinations (banks, e-wallets) - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **account_number** | **str** | Registered account number | | -| **account_holder_name** | **str, none_type** | Registered account name | [optional] | -| **account_type** | [**ChannelAccountType**](ChannelAccountType.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DirectDebit.md b/docs/DirectDebit.md deleted file mode 100644 index 82b870df..00000000 --- a/docs/DirectDebit.md +++ /dev/null @@ -1,17 +0,0 @@ -# xendit.payment_request.model.DirectDebit - -Direct Debit Payment Method Details - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **channel_code** | [**DirectDebitChannelCode**](DirectDebitChannelCode.md) | | | -| **channel_properties** | [**DirectDebitChannelProperties**](DirectDebitChannelProperties.md) | | | -| **type** | [**DirectDebitType**](DirectDebitType.md) | | | -| **bank_account** | [**DirectDebitBankAccount**](DirectDebitBankAccount.md) | | [optional] | -| **debit_card** | [**DirectDebitDebitCard**](DirectDebitDebitCard.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DirectDebitAllOf.md b/docs/DirectDebitAllOf.md deleted file mode 100644 index cf9ad0a0..00000000 --- a/docs/DirectDebitAllOf.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_request.model.DirectDebitAllOf - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **type** | [**DirectDebitType**](DirectDebitType.md) | | | -| **bank_account** | [**DirectDebitBankAccount**](DirectDebitBankAccount.md) | | [optional] | -| **debit_card** | [**DirectDebitDebitCard**](DirectDebitDebitCard.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DirectDebitBankAccount.md b/docs/DirectDebitBankAccount.md deleted file mode 100644 index 257a6531..00000000 --- a/docs/DirectDebitBankAccount.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.DirectDebitBankAccount - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **masked_bank_account_number** | **str, none_type** | | [optional] | -| **bank_account_hash** | **str, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DirectDebitChannelCode.md b/docs/DirectDebitChannelCode.md deleted file mode 100644 index 6d2005c0..00000000 --- a/docs/DirectDebitChannelCode.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_request.model.DirectDebitChannelCode - -Direct Debit Channel Code - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Direct Debit Channel Code | must be one of ["BCA_KLIKPAY", "BCA_ONEKLIK", "BRI", "BNI", "MANDIRI", "BPI", "BDO", "CIMBNIAGA", "MTB", "RCBC", "UBP", "AUTODEBIT_UBP", "CHINABANK", "BAY", "KTB", "BBL", "SCB", "KBANK_MB", "BAY_MB", "KTB_MB", "BBL_MB", "SCB_MB", "BDO_EPAY", "AFFIN_FPX", "AGRO_FPX", "ALLIANCE_FPX", "AMBANK_FPX", "ISLAM_FPX", "MUAMALAT_FPX", "BOC_FPX", "RAKYAT_FPX", "BSN_FPX", "CIMB_FPX", "HLB_FPX", "HSBC_FPX", "KFH_FPX", "MAYB2E_FPX", "MAYB2U_FPX", "OCBC_FPX", "PUBLIC_FPX", "RHB_FPX", "SCH_FPX", "UOB_FPX", "AFFIN_FPX_BUSINESS", "AGRO_FPX_BUSINESS", "ALLIANCE_FPX_BUSINESS", "AMBANK_FPX_BUSINESS", "ISLAM_FPX_BUSINESS", "MUAMALAT_FPX_BUSINESS", "BNP_FPX_BUSINESS", "CIMB_FPX_BUSINESS", "CITIBANK_FPX_BUSINESS", "DEUTSCHE_FPX_BUSINESS", "HLB_FPX_BUSINESS", "HSBC_FPX_BUSINESS", "RAKYAT_FPX_BUSINESS", "KFH_FPX_BUSINESS", "MAYB2E_FPX_BUSINESS", "OCBC_FPX_BUSINESS", "PUBLIC_FPX_BUSINESS", "RHB_FPX_BUSINESS", "SCH_FPX_BUSINESS", "UOB_FPX_BUSINESS", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DirectDebitChannelProperties.md b/docs/DirectDebitChannelProperties.md deleted file mode 100644 index f2db2d75..00000000 --- a/docs/DirectDebitChannelProperties.md +++ /dev/null @@ -1,19 +0,0 @@ -# xendit.payment_request.model.DirectDebitChannelProperties - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **mobile_number** | **str** | Mobile number of the customer registered to the partner channel | [optional] | -| **success_return_url** | **str** | | [optional] | -| **failure_return_url** | **str** | | [optional] | -| **identity_document_number** | **str** | | [optional] | -| **account_number** | **str** | | [optional] | -| **card_last_four** | **str** | Last four digits of the debit card | [optional] | -| **card_expiry** | **str** | Expiry month and year of the debit card (in MM/YY format) | [optional] | -| **email** | **str** | Email address of the customer that is registered to the partner channel | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DirectDebitChannelPropertiesBankAccount.md b/docs/DirectDebitChannelPropertiesBankAccount.md deleted file mode 100644 index 9f23e478..00000000 --- a/docs/DirectDebitChannelPropertiesBankAccount.md +++ /dev/null @@ -1,16 +0,0 @@ -# xendit.payment_request.model.DirectDebitChannelPropertiesBankAccount - -Direct Debit Bank Account Channel Properties - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **success_return_url** | **str** | | [optional] | -| **failure_return_url** | **str** | | [optional] | -| **mobile_number** | **str** | | [optional] | -| **identity_document_number** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DirectDebitChannelPropertiesBankRedirect.md b/docs/DirectDebitChannelPropertiesBankRedirect.md deleted file mode 100644 index 85d7ccdf..00000000 --- a/docs/DirectDebitChannelPropertiesBankRedirect.md +++ /dev/null @@ -1,15 +0,0 @@ -# xendit.payment_request.model.DirectDebitChannelPropertiesBankRedirect - -Direct Debit Bank Account Channel Properties - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **mobile_number** | **str** | Mobile number of the customer that is registered to channel | [optional] | -| **success_return_url** | **str** | | [optional] | -| **failure_return_url** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DirectDebitChannelPropertiesDebitCard.md b/docs/DirectDebitChannelPropertiesDebitCard.md deleted file mode 100644 index 482e7a5e..00000000 --- a/docs/DirectDebitChannelPropertiesDebitCard.md +++ /dev/null @@ -1,17 +0,0 @@ -# xendit.payment_request.model.DirectDebitChannelPropertiesDebitCard - -Direct Debit Debit Card Channel Properties - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **mobile_number** | **str** | Mobile number of the customer registered to the partner channel | [optional] | -| **account_number** | **str** | | [optional] | -| **card_last_four** | **str** | Last four digits of the debit card | [optional] | -| **card_expiry** | **str** | Expiry month and year of the debit card (in MM/YY format) | [optional] | -| **email** | **str** | Email address of the customer that is registered to the partner channel | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DirectDebitDebitCard.md b/docs/DirectDebitDebitCard.md deleted file mode 100644 index 464bd56f..00000000 --- a/docs/DirectDebitDebitCard.md +++ /dev/null @@ -1,16 +0,0 @@ -# xendit.payment_request.model.DirectDebitDebitCard - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **mobile_number** | **str, none_type** | Mobile number of the customer registered to the partner channel | [optional] | -| **account_number** | **str** | | [optional] | -| **card_last_four** | **str, none_type** | Last four digits of the debit card | [optional] | -| **card_expiry** | **str, none_type** | Expiry month and year of the debit card (in MM/YY format) | [optional] | -| **email** | **str, none_type** | Email address of the customer that is registered to the partner channel | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DirectDebitParameters.md b/docs/DirectDebitParameters.md deleted file mode 100644 index 990364b7..00000000 --- a/docs/DirectDebitParameters.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_request.model.DirectDebitParameters - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **channel_code** | [**DirectDebitChannelCode**](DirectDebitChannelCode.md) | | | -| **channel_properties** | [**DirectDebitChannelProperties**](DirectDebitChannelProperties.md) | | | -| **type** | [**DirectDebitType**](DirectDebitType.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DirectDebitType.md b/docs/DirectDebitType.md deleted file mode 100644 index 18ac06eb..00000000 --- a/docs/DirectDebitType.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.DirectDebitType - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["DEBIT_CARD", "BANK_ACCOUNT", "BANK_REDIRECT", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/EWallet.md b/docs/EWallet.md deleted file mode 100644 index 9aa15186..00000000 --- a/docs/EWallet.md +++ /dev/null @@ -1,15 +0,0 @@ -# xendit.payment_request.model.EWallet - -Ewallet Payment Method Details - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | | [optional] | -| **channel_properties** | [**EWalletChannelProperties**](EWalletChannelProperties.md) | | [optional] | -| **account** | [**EWalletAccount**](EWalletAccount.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/EWalletAccount.md b/docs/EWalletAccount.md deleted file mode 100644 index 0b4acaeb..00000000 --- a/docs/EWalletAccount.md +++ /dev/null @@ -1,16 +0,0 @@ -# xendit.payment_request.model.EWalletAccount - -EWallet Account Properties - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **name** | **str, none_type** | Name of the eWallet account holder. The value is null if unavailableName of the eWallet account holder. The value is null if unavailable | [optional] | -| **account_details** | **str, none_type** | Identifier from eWallet provider e.g. phone number. The value is null if unavailable | [optional] | -| **balance** | **float, none_type** | The main balance amount on eWallet account provided from eWallet provider. The value is null if unavailable | [optional] | -| **point_balance** | **float, none_type** | The point balance amount on eWallet account. Applicable only on some eWallet provider that has point system. The value is null if unavailabl | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/EWalletAllOf.md b/docs/EWalletAllOf.md deleted file mode 100644 index 96ccaa56..00000000 --- a/docs/EWalletAllOf.md +++ /dev/null @@ -1,12 +0,0 @@ -# xendit.payment_request.model.EWalletAllOf - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **account** | [**EWalletAccount**](EWalletAccount.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/EWalletChannelCode.md b/docs/EWalletChannelCode.md deleted file mode 100644 index aeb031e9..00000000 --- a/docs/EWalletChannelCode.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_request.model.EWalletChannelCode - -Ewallet Channel Code - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Ewallet Channel Code | must be one of ["GCASH", "GRABPAY", "PAYMAYA", "DANA", "OVO", "LINKAJA", "SHOPEEPAY", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/EWalletChannelProperties.md b/docs/EWalletChannelProperties.md deleted file mode 100644 index cf4f7590..00000000 --- a/docs/EWalletChannelProperties.md +++ /dev/null @@ -1,18 +0,0 @@ -# xendit.payment_request.model.EWalletChannelProperties - -Ewallet Channel Properties - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **success_return_url** | **str** | URL where the end-customer is redirected if the authorization is successful | [optional] | -| **failure_return_url** | **str** | URL where the end-customer is redirected if the authorization failed | [optional] | -| **cancel_return_url** | **str** | URL where the end-customer is redirected if the authorization cancelled | [optional] | -| **redeem_points** | **str** | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | [optional] | -| **mobile_number** | **str** | | [optional] | -| **cashtag** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/EWalletParameters.md b/docs/EWalletParameters.md deleted file mode 100644 index 881548a0..00000000 --- a/docs/EWalletParameters.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.EWalletParameters - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | | [optional] | -| **channel_properties** | [**EWalletChannelProperties**](EWalletChannelProperties.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/EmploymentDetail.md b/docs/EmploymentDetail.md deleted file mode 100644 index 4d9ead41..00000000 --- a/docs/EmploymentDetail.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.customer.model.EmploymentDetail - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **employer_name** | **str, none_type** | Name of employer | [optional] | -| **nature_of_business** | **str, none_type** | Industry or nature of business | [optional] | -| **role_description** | **str, none_type** | Occupation or title | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/EndCustomerStatus.md b/docs/EndCustomerStatus.md deleted file mode 100644 index ccefe2bb..00000000 --- a/docs/EndCustomerStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.customer.model.EndCustomerStatus - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["ACTIVE", "INACTIVE", "PENDING", "BLOCKED", "DELETED", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Error.md b/docs/Error.md deleted file mode 100644 index d87093c6..00000000 --- a/docs/Error.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.Error - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str, none_type** | | [optional] | -| **message** | **str, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ErrorErrorsInner.md b/docs/ErrorErrorsInner.md deleted file mode 100644 index ad3a4c8c..00000000 --- a/docs/ErrorErrorsInner.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payout.model.ErrorErrorsInner - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **path** | **str** | Precise location of the error | | -| **message** | **str** | Specific description of the error | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Ewallet.md b/docs/Ewallet.md deleted file mode 100644 index ee7b24e1..00000000 --- a/docs/Ewallet.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.invoice.model.Ewallet - -An object representing e-wallet details for invoices. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **ewallet_type** | [**EwalletType**](EwalletType.md) | | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/EwalletType.md b/docs/EwalletType.md deleted file mode 100644 index e59f9e8d..00000000 --- a/docs/EwalletType.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.EwalletType - -Representing the available eWallet channels used for invoice-related transactions. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Representing the available eWallet channels used for invoice-related transactions. | must be one of ["OVO", "DANA", "LINKAJA", "PAYMAYA", "SHOPEEPAY", "GCASH", "GRABPAY", "ASTRAPAY", "NEXCASH", "JENIUSPAY", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/FeeResponse.md b/docs/FeeResponse.md deleted file mode 100644 index 70cf6657..00000000 --- a/docs/FeeResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# xendit.balance_and_transaction.model.FeeResponse - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **xendit_fee** | **float** | Amount of the Xendit fee for this transaction. | | -| **value_added_tax** | **float** | Amount of the VAT for this transaction. | | -| **xendit_withholding_tax** | **float** | Amount of the Xendit Withholding Tax for this transaction if applicable. See [Tax Documentation](https://docs.xendit.co/fees-and-vat#vat) for more information. | [optional] | -| **third_party_withholding_tax** | **float** | Amount of the 3rd Party Withholding Tax for this transaction if applicable. 3rd party example: Bank | [optional] | -| **status** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ForbiddenError.md b/docs/ForbiddenError.md deleted file mode 100644 index 93862fe2..00000000 --- a/docs/ForbiddenError.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.ForbiddenError - -An error object used to indicate a 403 Forbidden response related to invoice operations. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **message** | **str** | A human-readable error message providing additional context about the 403 Forbidden response. | | -| **error_code** | **str** | The specific error code indicating that access to the invoice operation is suspended. | defaults to "ACCESS_SUSPENDED" | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAllPaymentMethods400Response.md b/docs/GetAllPaymentMethods400Response.md deleted file mode 100644 index 6abab2fe..00000000 --- a/docs/GetAllPaymentMethods400Response.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_method.model.GetAllPaymentMethods400Response - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] | -| **message** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAllPaymentMethods403Response.md b/docs/GetAllPaymentMethods403Response.md deleted file mode 100644 index 0e4040db..00000000 --- a/docs/GetAllPaymentMethods403Response.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_method.model.GetAllPaymentMethods403Response - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] | -| **message** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAllPaymentMethods404Response.md b/docs/GetAllPaymentMethods404Response.md deleted file mode 100644 index 67550921..00000000 --- a/docs/GetAllPaymentMethods404Response.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_method.model.GetAllPaymentMethods404Response - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] if omitted the server will use the default value of "DATA_NOT_FOUND" | -| **message** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAllPaymentMethodsDefaultResponse.md b/docs/GetAllPaymentMethodsDefaultResponse.md deleted file mode 100644 index 162f919f..00000000 --- a/docs/GetAllPaymentMethodsDefaultResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_method.model.GetAllPaymentMethodsDefaultResponse - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] | -| **message** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAllRefundsDefaultResponse.md b/docs/GetAllRefundsDefaultResponse.md deleted file mode 100644 index f6838072..00000000 --- a/docs/GetAllRefundsDefaultResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.refund.model.GetAllRefundsDefaultResponse - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] | -| **message** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetCustomerByReferenceID200Response.md b/docs/GetCustomerByReferenceID200Response.md deleted file mode 100644 index 82c7c778..00000000 --- a/docs/GetCustomerByReferenceID200Response.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.customer.model.GetCustomerByReferenceID200Response - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **has_more** | **bool** | | [optional] | -| **data** | [**[Customer]**](Customer.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetCustomerByReferenceID400Response.md b/docs/GetCustomerByReferenceID400Response.md deleted file mode 100644 index 2af43902..00000000 --- a/docs/GetCustomerByReferenceID400Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.customer.model.GetCustomerByReferenceID400Response - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | | -| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | -| **errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetCustomerByReferenceID400ResponseAllOf.md b/docs/GetCustomerByReferenceID400ResponseAllOf.md deleted file mode 100644 index 2c937414..00000000 --- a/docs/GetCustomerByReferenceID400ResponseAllOf.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.customer.model.GetCustomerByReferenceID400ResponseAllOf - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] | -| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetPayouts200Response.md b/docs/GetPayouts200Response.md deleted file mode 100644 index e321dc21..00000000 --- a/docs/GetPayouts200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payout.model.GetPayouts200Response - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **data** | [**[GetPayouts200ResponseDataInner]**](GetPayouts200ResponseDataInner.md) | | [optional] | -| **has_more** | **bool** | | [optional] | -| **links** | [**GetPayouts200ResponseLinks**](GetPayouts200ResponseLinks.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetPayouts200ResponseDataInner.md b/docs/GetPayouts200ResponseDataInner.md deleted file mode 100644 index 20e59738..00000000 --- a/docs/GetPayouts200ResponseDataInner.md +++ /dev/null @@ -1,26 +0,0 @@ -# xendit.payout.model.GetPayouts200ResponseDataInner - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **description** | **str** | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | [optional] | -| **receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | [optional] | -| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Object of additional information you may use | [optional] | -| **failure_code** | **str** | If the Payout failed, we include a failure code for more details on the failure. | [optional] | -| **estimated_arrival_time** | **datetime** | Our estimated time on to when your payout is reflected to the destination account | [optional] | -| **reference_id** | **str** | A client defined payout identifier | [optional] | -| **channel_code** | **str** | Channel code of selected destination bank or e-wallet | [optional] | -| **channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | | [optional] | -| **amount** | **float** | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | [optional] | -| **currency** | **str** | Currency of the destination channel using ISO-4217 currency code | [optional] | -| **id** | **str** | Xendit-generated unique identifier for each payout | [optional] | -| **created** | **datetime** | The time payout was created on Xendit's system, in ISO 8601 format | [optional] | -| **updated** | **datetime** | The time payout was last updated on Xendit's system, in ISO 8601 format | [optional] | -| **business_id** | **str** | Xendit Business ID | [optional] | -| **status** | **str** | Status of payout | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetPayouts200ResponseLinks.md b/docs/GetPayouts200ResponseLinks.md deleted file mode 100644 index ad7ee050..00000000 --- a/docs/GetPayouts200ResponseLinks.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payout.model.GetPayouts200ResponseLinks - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **href** | **str** | | [optional] | -| **rel** | **str** | | [optional] | -| **method** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/IdentityAccountRequest.md b/docs/IdentityAccountRequest.md deleted file mode 100644 index e0051e3c..00000000 --- a/docs/IdentityAccountRequest.md +++ /dev/null @@ -1,16 +0,0 @@ -# xendit.customer.model.IdentityAccountRequest - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **type** | [**IdentityAccountType**](IdentityAccountType.md) | | [optional] | -| **company** | **str** | The issuing institution associated with the account (e.g., OCBC, GOPAY, 7-11). If adding financial accounts that Xendit supports, we recommend you use the channel_name found at https://xendit.github.io/apireference/#payment-channels for this field | [optional] | -| **description** | **str** | Free text description of this account | [optional] | -| **country** | [**CountryCode**](CountryCode.md) | | [optional] | -| **properties** | [**IdentityAccountRequestProperties**](IdentityAccountRequestProperties.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/IdentityAccountRequestProperties.md b/docs/IdentityAccountRequestProperties.md deleted file mode 100644 index d13e7c3b..00000000 --- a/docs/IdentityAccountRequestProperties.md +++ /dev/null @@ -1,22 +0,0 @@ -# xendit.customer.model.IdentityAccountRequestProperties - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **account_number** | **str** | Unique account identifier as per the bank records. | [optional] | -| **account_holder_name** | **str, none_type** | Name of account holder as per the cardless credit account. | [optional] | -| **swift_code** | **str, none_type** | The SWIFT code for international payments | [optional] | -| **account_type** | **str, none_type** | Free text account type, e.g., Savings, Transaction, Virtual Account. | [optional] | -| **account_details** | **str, none_type** | Potentially masked account detail, for display purposes only. | [optional] | -| **currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | -| **token_id** | **str** | The token id returned in tokenisation | [optional] | -| **account_id** | **str** | Alphanumeric string identifying this account. Usually an email address or phone number. | [optional] | -| **payment_code** | **str** | Complete fixed payment code (including prefix) | [optional] | -| **expires_at** | **str, none_type** | YYYY-MM-DD string with expiry date for the payment code | [optional] | -| **qr_string** | **str** | String representation of the QR Code image | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/IdentityAccountResponse.md b/docs/IdentityAccountResponse.md deleted file mode 100644 index 7a83c986..00000000 --- a/docs/IdentityAccountResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# xendit.customer.model.IdentityAccountResponse - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **company** | **str, none_type** | | | -| **description** | **str, none_type** | | | -| **country** | [**CountryCode**](CountryCode.md) | | | -| **type** | **str, none_type** | | | -| **properties** | [**IdentityAccountResponseProperties**](IdentityAccountResponseProperties.md) | | | -| **id** | **str** | | [optional] | -| **code** | **str, none_type** | | [optional] | -| **holder_name** | **str, none_type** | | [optional] | -| **created** | **datetime** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/IdentityAccountResponseProperties.md b/docs/IdentityAccountResponseProperties.md deleted file mode 100644 index a3084cf2..00000000 --- a/docs/IdentityAccountResponseProperties.md +++ /dev/null @@ -1,22 +0,0 @@ -# xendit.customer.model.IdentityAccountResponseProperties - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **account_number** | **str** | Unique account identifier as per the bank records. | [optional] | -| **account_holder_name** | **str, none_type** | Name of account holder as per the cardless credit account. | [optional] | -| **swift_code** | **str, none_type** | The SWIFT code for international payments | [optional] | -| **account_type** | **str, none_type** | Free text account type, e.g., Savings, Transaction, Virtual Account. | [optional] | -| **account_details** | **str, none_type** | Potentially masked account detail, for display purposes only. | [optional] | -| **currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | -| **token_id** | **str** | The token id returned in tokenisation | [optional] | -| **payment_code** | **str** | Complete fixed payment code (including prefix) | [optional] | -| **expires_at** | **str, none_type** | YYYY-MM-DD string with expiry date for the payment code | [optional] | -| **qr_string** | **str** | String representation of the QR Code image | [optional] | -| **account_id** | **str** | Alphanumeric string identifying this account. Usually an email address or phone number. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/IdentityAccountType.md b/docs/IdentityAccountType.md deleted file mode 100644 index 8ec70d10..00000000 --- a/docs/IdentityAccountType.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.customer.model.IdentityAccountType - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["BANK_ACCOUNT", "EWALLET", "CREDIT_CARD", "PAY_LATER", "OTC", "QR_CODE", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/IndividualDetail.md b/docs/IndividualDetail.md deleted file mode 100644 index e608e64e..00000000 --- a/docs/IndividualDetail.md +++ /dev/null @@ -1,22 +0,0 @@ -# xendit.customer.model.IndividualDetail - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **given_names** | **str** | | [optional] | -| **given_names_non_roman** | **str, none_type** | | [optional] | -| **middle_name** | **str, none_type** | | [optional] | -| **surname** | **str, none_type** | | [optional] | -| **surname_non_roman** | **str, none_type** | | [optional] | -| **mother_maiden_name** | **str, none_type** | | [optional] | -| **gender** | **str, none_type** | | [optional] | -| **date_of_birth** | **str, none_type** | | [optional] | -| **nationality** | [**CountryCode**](CountryCode.md) | | [optional] | -| **place_of_birth** | **str, none_type** | | [optional] | -| **employment** | [**EmploymentDetail**](EmploymentDetail.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Invoice.md b/docs/Invoice.md deleted file mode 100644 index 9a641a20..00000000 --- a/docs/Invoice.md +++ /dev/null @@ -1,45 +0,0 @@ -# xendit.invoice.model.Invoice - -An object representing details for an invoice. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **external_id** | **str** | The external identifier for the invoice. | | -| **user_id** | **str** | The user ID associated with the invoice. | | -| **status** | [**InvoiceStatus**](InvoiceStatus.md) | | | -| **merchant_name** | **str** | The name of the merchant. | | -| **merchant_profile_picture_url** | **str** | The URL of the merchant's profile picture. | | -| **amount** | **float** | The total amount of the invoice. | | -| **expiry_date** | **datetime** | Representing a date and time in ISO 8601 format. | | -| **invoice_url** | **str** | The URL to view the invoice. | | -| **available_banks** | [**[Bank]**](Bank.md) | An array of available banks for payment. | | -| **available_retail_outlets** | [**[RetailOutlet]**](RetailOutlet.md) | An array of available retail outlets for payment. | | -| **available_ewallets** | [**[Ewallet]**](Ewallet.md) | An array of available e-wallets for payment. | | -| **available_qr_codes** | [**[QrCode]**](QrCode.md) | An array of available QR codes for payment. | | -| **available_direct_debits** | [**[DirectDebit]**](DirectDebit.md) | An array of available direct debit options for payment. | | -| **available_paylaters** | [**[Paylater]**](Paylater.md) | An array of available pay-later options for payment. | | -| **should_send_email** | **bool** | Indicates whether email notifications should be sent. | | -| **created** | **datetime** | Representing a date and time in ISO 8601 format. | | -| **updated** | **datetime** | Representing a date and time in ISO 8601 format. | | -| **id** | **str** | The unique identifier for the invoice. | [optional] | -| **payer_email** | **str** | The email address of the payer. | [optional] | -| **description** | **str** | A description of the invoice. | [optional] | -| **payment_method** | [**InvoicePaymentMethod**](InvoicePaymentMethod.md) | | [optional] | -| **locale** | **str** | The locale or language used for the invoice. | [optional] | -| **should_exclude_credit_card** | **bool** | Indicates whether credit card payments should be excluded. | [optional] | -| **success_redirect_url** | **str** | The URL to redirect to on successful payment. | [optional] | -| **failure_redirect_url** | **str** | The URL to redirect to on payment failure. | [optional] | -| **should_authenticate_credit_card** | **bool** | Indicates whether credit card authentication is required. | [optional] | -| **currency** | [**InvoiceCurrency**](InvoiceCurrency.md) | | [optional] | -| **items** | [**[InvoiceItem]**](InvoiceItem.md) | An array of items included in the invoice. | [optional] | -| **fixed_va** | **bool** | Indicates whether the virtual account is fixed. | [optional] | -| **reminder_date** | **datetime** | Representing a date and time in ISO 8601 format. | [optional] | -| **customer** | [**CustomerObject**](CustomerObject.md) | | [optional] | -| **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | [optional] | -| **fees** | [**[InvoiceFee]**](InvoiceFee.md) | An array of fees associated with the invoice. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InvoiceApi.md b/docs/InvoiceApi.md index b79eecb2..13bf297b 100644 --- a/docs/InvoiceApi.md +++ b/docs/InvoiceApi.md @@ -1,22 +1,60 @@ -# xendit.apis.InvoiceApi +# InvoiceApi + + +You can use the APIs below to interface with Xendit's `InvoiceApi`. +To start using the API, you need to configure the secret key and initiate the client instance. + +```python +import time +import xendit +from xendit.apis import InvoiceApi + +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') + + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = 'YOUR_API_KEY' + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() + +# Create an instance of the API class +api_instance = InvoiceApi(api_client) +``` All URIs are relative to *https://api.xendit.co* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_invoice**](InvoiceApi.md#create_invoice) | **POST** /v2/invoices/ | Create an invoice -[**get_invoice_by_id**](InvoiceApi.md#get_invoice_by_id) | **GET** /v2/invoices/{invoice_id} | Get invoice by invoice id -[**get_invoices**](InvoiceApi.md#get_invoices) | **GET** /v2/invoices | Get all Invoices -[**expire_invoice**](InvoiceApi.md#expire_invoice) | **POST** /invoices/{invoice_id}/expire! | Manually expire an invoice +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**create_invoice**](InvoiceApi.md#create_invoice-function) | **POST** /v2/invoices/ | Create an invoice | +| [**get_invoice_by_id**](InvoiceApi.md#get_invoice_by_id-function) | **GET** /v2/invoices/{invoice_id} | Get invoice by invoice id | +| [**get_invoices**](InvoiceApi.md#get_invoices-function) | **GET** /v2/invoices | Get all Invoices | +| [**expire_invoice**](InvoiceApi.md#expire_invoice-function) | **POST** /invoices/{invoice_id}/expire! | Manually expire an invoice | -# **create_invoice** +# `create_invoice()` Function > Invoice create_invoice(create_invoice_request) Create an invoice -### Example +| Name | Value | +|--------------------|:-------------:| +| Function Name | `create_invoice` | +| Request Parameters | [CreateInvoiceRequestParams](#request-parameters--CreateInvoiceRequestParams) | +| Return Type | [**Invoice**](invoice/Invoice.md) | + +### Request Parameters - CreateInvoiceRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **create_invoice_request** | [**CreateInvoiceRequest**](invoice/CreateInvoiceRequest.md) | ☑️ | | +| **for_user_id** | **str**| | | + +### Usage Example +#### Create Invoice Request ```python import time @@ -107,7 +145,8 @@ create_invoice_request = CreateInvoiceRequest( value=3.14, ), ], - ) # CreateInvoiceRequest | + ) # CreateInvoiceRequest +for_user_id = "62efe4c33e45694d63f585f8" # str | Business ID of the sub-account merchant (XP feature) # example passing only required values which don't have defaults set try: @@ -127,39 +166,25 @@ except xendit.XenditSdkException as e: print("Exception when calling InvoiceApi->create_invoice: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **create_invoice_request** | [**CreateInvoiceRequest**](CreateInvoiceRequest.md)| | - **for_user_id** | **str**| Business ID of the sub-account merchant (XP feature) | [optional] - -### Return type - -[**Invoice**](Invoice.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**400** | Bad request | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_invoice_by_id** +# `get_invoice_by_id()` Function > Invoice get_invoice_by_id(invoice_id) Get invoice by invoice id -### Example +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_invoice_by_id` | +| Request Parameters | [GetInvoiceByIdRequestParams](#request-parameters--GetInvoiceByIdRequestParams) | +| Return Type | [**Invoice**](invoice/Invoice.md) | + +### Request Parameters - GetInvoiceByIdRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **invoice_id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +### Usage Example ```python import time import xendit @@ -179,6 +204,7 @@ api_client = xendit.ApiClient() # Create an instance of the API class api_instance = InvoiceApi(api_client) invoice_id = "62efe4c33e45294d63f585f2" # str | Invoice ID +for_user_id = "62efe4c33e45694d63f585f8" # str | Business ID of the sub-account merchant (XP feature) # example passing only required values which don't have defaults set try: @@ -198,38 +224,38 @@ except xendit.XenditSdkException as e: print("Exception when calling InvoiceApi->get_invoice_by_id: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **invoice_id** | **str**| Invoice ID | - **for_user_id** | **str**| Business ID of the sub-account merchant (XP feature) | [optional] - -### Return type - -[**Invoice**](Invoice.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | -**404** | Not found | - | -**500** | Internal server error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_invoices** +# `get_invoices()` Function > [Invoice] get_invoices() Get all Invoices -### Example - - +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_invoices` | +| Request Parameters | [GetInvoicesRequestParams](#request-parameters--GetInvoicesRequestParams) | +| Return Type | [**[Invoice]**](invoice/Invoice.md) | + +### Request Parameters - GetInvoicesRequestParams + +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **for_user_id** | **str**| | | +| **external_id** | **str**| | | +| **statuses** | [**[InvoiceStatus]**](invoice/InvoiceStatus.md)| | | +| **limit** | **float**| | | +| **created_after** | **datetime**| | | +| **created_before** | **datetime**| | | +| **paid_after** | **datetime**| | | +| **paid_before** | **datetime**| | | +| **expired_after** | **datetime**| | | +| **expired_before** | **datetime**| | | +| **last_invoice** | **str**| | | +| **client_types** | [**[InvoiceClientType]**](invoice/InvoiceClientType.md)| | | +| **payment_channels** | **[str]**| | | +| **on_demand_link** | **str**| | | +| **recurring_payment_id** | **str**| | | + +### Usage Example ```python import time import xendit @@ -249,6 +275,25 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = InvoiceApi(api_client) +for_user_id = "62efe4c33e45694d63f585f8" # str | Business ID of the sub-account merchant (XP feature) +external_id = "test-external" # str +statuses = [ + InvoiceStatus("["PENDING","SETTLED"]"), + ] # [InvoiceStatus] +limit = 10 # float +created_after = dateutil_parser('2016-08-29T09:12:33.001Z') # datetime +created_before = dateutil_parser('2016-08-29T09:12:33.001Z') # datetime +paid_after = dateutil_parser('2016-08-29T09:12:33.001Z') # datetime +paid_before = dateutil_parser('2016-08-29T09:12:33.001Z') # datetime +expired_after = dateutil_parser('2016-08-29T09:12:33.001Z') # datetime +expired_before = dateutil_parser('2016-08-29T09:12:33.001Z') # datetime +last_invoice = "62efe4c33e45294d63f585f2" # str +client_types = [ + InvoiceClientType("["API_GATEWAY","DASHBOARD"]"), + ] # [InvoiceClientType] +payment_channels = ["BNI","BRI"] # [str] +on_demand_link = "test-link" # str +recurring_payment_id = "62efe4c33e45294d63f585f2" # str # example passing only required values which don't have defaults set # and optional values @@ -260,50 +305,25 @@ except xendit.XenditSdkException as e: print("Exception when calling InvoiceApi->get_invoices: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **for_user_id** | **str**| Business ID of the sub-account merchant (XP feature) | [optional] - **external_id** | **str**| | [optional] - **statuses** | [**[InvoiceStatus]**](InvoiceStatus.md)| | [optional] - **limit** | **float**| | [optional] - **created_after** | **datetime**| | [optional] - **created_before** | **datetime**| | [optional] - **paid_after** | **datetime**| | [optional] - **paid_before** | **datetime**| | [optional] - **expired_after** | **datetime**| | [optional] - **expired_before** | **datetime**| | [optional] - **last_invoice** | **str**| | [optional] - **client_types** | [**[InvoiceClientType]**](InvoiceClientType.md)| | [optional] - **payment_channels** | **[str]**| | [optional] - **on_demand_link** | **str**| | [optional] - **recurring_payment_id** | **str**| | [optional] - -### Return type - -[**[Invoice]**](Invoice.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | -**500** | Internal server error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **expire_invoice** +# `expire_invoice()` Function > Invoice expire_invoice(invoice_id) Manually expire an invoice -### Example +| Name | Value | +|--------------------|:-------------:| +| Function Name | `expire_invoice` | +| Request Parameters | [ExpireInvoiceRequestParams](#request-parameters--ExpireInvoiceRequestParams) | +| Return Type | [**Invoice**](invoice/Invoice.md) | + +### Request Parameters - ExpireInvoiceRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **invoice_id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +### Usage Example ```python import time import xendit @@ -322,6 +342,7 @@ api_client = xendit.ApiClient() # Create an instance of the API class api_instance = InvoiceApi(api_client) invoice_id = "5f4708b7bd394b0400b96276" # str | Invoice ID to be expired +for_user_id = "62efe4c33e45694d63f585f8" # str | Business ID of the sub-account merchant (XP feature) # example passing only required values which don't have defaults set try: @@ -341,26 +362,4 @@ except xendit.XenditSdkException as e: print("Exception when calling InvoiceApi->expire_invoice: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **invoice_id** | **str**| Invoice ID to be expired | - **for_user_id** | **str**| Business ID of the sub-account merchant (XP feature) | [optional] - -### Return type - -[**Invoice**](Invoice.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**404** | Not found | - | -**500** | Internal server error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to README]](../README.md) diff --git a/docs/InvoiceClientType.md b/docs/InvoiceClientType.md deleted file mode 100644 index b31a564a..00000000 --- a/docs/InvoiceClientType.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.InvoiceClientType - -Representing the client type or source of an invoice. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Representing the client type or source of an invoice. | must be one of ["DASHBOARD", "API_GATEWAY", "INTEGRATION", "ON_DEMAND", "RECURRING", "MOBILE", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InvoiceCurrency.md b/docs/InvoiceCurrency.md deleted file mode 100644 index f97bdb3f..00000000 --- a/docs/InvoiceCurrency.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.InvoiceCurrency - -Representing the currency used for an invoice. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Representing the currency used for an invoice. | must be one of ["IDR", "USD", "THB", "VND", "PHP", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InvoiceError404ResponseDefinition.md b/docs/InvoiceError404ResponseDefinition.md deleted file mode 100644 index bffce42f..00000000 --- a/docs/InvoiceError404ResponseDefinition.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.InvoiceError404ResponseDefinition - -An error object used to indicate that the requested resource, in this case, an invoice, was not found. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **message** | **str** | A human-readable error message providing additional context about the resource not being found. | | -| **error_code** | **str** | The specific error code indicating that the requested invoice was not found. | defaults to "INVOICE_NOT_FOUND_ERROR" | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InvoiceFee.md b/docs/InvoiceFee.md deleted file mode 100644 index bd7a61b3..00000000 --- a/docs/InvoiceFee.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.InvoiceFee - -An object representing internal details for a fee associated with an invoice. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **type** | **str** | The type of fee. | | -| **value** | **float** | The value or amount of the fee. | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InvoiceItem.md b/docs/InvoiceItem.md deleted file mode 100644 index e3adae3b..00000000 --- a/docs/InvoiceItem.md +++ /dev/null @@ -1,18 +0,0 @@ -# xendit.invoice.model.InvoiceItem - -An object representing an item within an invoice. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **name** | **str** | The name of the item. | | -| **price** | **float** | The price of the item. | | -| **quantity** | **float** | The quantity of the item. Must be greater than or equal to 0. | | -| **reference_id** | **str** | The reference ID of the item. | [optional] | -| **url** | **str** | The URL associated with the item. | [optional] | -| **category** | **str** | The category of the item. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InvoiceNotFoundError.md b/docs/InvoiceNotFoundError.md deleted file mode 100644 index 7dd39181..00000000 --- a/docs/InvoiceNotFoundError.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.InvoiceNotFoundError - -Response definition for a 404 Not Found error when creating an invoice. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | The error code indicating the type of error that occurred. | | -| **message** | **str** | A human-readable error message that provides additional information about the error. | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InvoicePaymentMethod.md b/docs/InvoicePaymentMethod.md deleted file mode 100644 index dfddc28f..00000000 --- a/docs/InvoicePaymentMethod.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.InvoicePaymentMethod - -Representing the payment method used for an invoice. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Representing the payment method used for an invoice. | must be one of ["POOL", "CALLBACK_VIRTUAL_ACCOUNT", "CREDIT_CARD", "RETAIL_OUTLET", "QR_CODE", "QRIS", "EWALLET", "DIRECT_DEBIT", "BANK_TRANSFER", "PAYLATER", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InvoiceStatus.md b/docs/InvoiceStatus.md deleted file mode 100644 index 18690526..00000000 --- a/docs/InvoiceStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.InvoiceStatus - -Representing the status of an invoice. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Representing the status of an invoice. | must be one of ["PENDING", "PAID", "SETTLED", "EXPIRED", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/KYCDocumentRequest.md b/docs/KYCDocumentRequest.md deleted file mode 100644 index 3af9fff0..00000000 --- a/docs/KYCDocumentRequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# xendit.customer.model.KYCDocumentRequest - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **country** | [**CountryCode**](CountryCode.md) | | [optional] | -| **type** | [**KYCDocumentType**](KYCDocumentType.md) | | [optional] | -| **sub_type** | [**KYCDocumentSubType**](KYCDocumentSubType.md) | | [optional] | -| **document_name** | **str** | | [optional] | -| **document_number** | **str** | | [optional] | -| **expires_at** | **str** | | [optional] | -| **holder_name** | **str** | | [optional] | -| **document_images** | **[str]** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/KYCDocumentResponse.md b/docs/KYCDocumentResponse.md deleted file mode 100644 index 8f94e0cd..00000000 --- a/docs/KYCDocumentResponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# xendit.customer.model.KYCDocumentResponse - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **country** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | -| **type** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | -| **sub_type** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | -| **document_name** | **str, none_type** | | | -| **document_number** | **str, none_type** | | | -| **expires_at** | **str, none_type** | | | -| **holder_name** | **str, none_type** | | | -| **document_images** | **[str], none_type** | | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/KYCDocumentSubType.md b/docs/KYCDocumentSubType.md deleted file mode 100644 index 90247eca..00000000 --- a/docs/KYCDocumentSubType.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.customer.model.KYCDocumentSubType - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["NATIONAL_ID", "CONSULAR_ID", "VOTER_ID", "POSTAL_ID", "RESIDENCE_PERMIT", "TAX_ID", "STUDENT_ID", "MILITARY_ID", "MEDICAL_ID", "OTHERS", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/KYCDocumentType.md b/docs/KYCDocumentType.md deleted file mode 100644 index f93afc26..00000000 --- a/docs/KYCDocumentType.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.customer.model.KYCDocumentType - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["BIRTH_CERTIFICATE", "BANK_STATEMENT", "DRIVING_LICENSE", "IDENTITY_CARD", "PASSPORT", "VISA", "BUSINESS_REGISTRATION", "BUSINESS_LICENSE", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LinkItem.md b/docs/LinkItem.md deleted file mode 100644 index 4ad87417..00000000 --- a/docs/LinkItem.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.balance_and_transaction.model.LinkItem - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **href** | **str** | URI of target, this will be to the next link. | | -| **rel** | **str** | The relationship between source and target. The value will be `next`. | | -| **method** | **str** | The HTTP method, the value will be `GET`. | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/NotificationChannel.md b/docs/NotificationChannel.md deleted file mode 100644 index a6b77ba1..00000000 --- a/docs/NotificationChannel.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.NotificationChannel - -Representing a notification channel for sending messages. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Representing a notification channel for sending messages. | must be one of ["email", "sms", "whatsapp", "viber", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/NotificationPreference.md b/docs/NotificationPreference.md deleted file mode 100644 index 5fe04e19..00000000 --- a/docs/NotificationPreference.md +++ /dev/null @@ -1,16 +0,0 @@ -# xendit.invoice.model.NotificationPreference - -An object representing notification preferences for different invoice events. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **invoice_created** | [**[NotificationChannel]**](NotificationChannel.md) | Notification channels for when an invoice is created. | [optional] | -| **invoice_reminder** | [**[NotificationChannel]**](NotificationChannel.md) | Notification channels for invoice reminders. | [optional] | -| **invoice_expired** | [**[NotificationChannel]**](NotificationChannel.md) | Notification channels for expired invoices. | [optional] | -| **invoice_paid** | [**[NotificationChannel]**](NotificationChannel.md) | Notification channels for when an invoice is paid. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/OverTheCounter.md b/docs/OverTheCounter.md deleted file mode 100644 index 2df245ff..00000000 --- a/docs/OverTheCounter.md +++ /dev/null @@ -1,16 +0,0 @@ -# xendit.payment_request.model.OverTheCounter - -Over the Counter Payment Method Details - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | | | -| **channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | | | -| **amount** | **float, none_type** | | [optional] | -| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/OverTheCounterChannelCode.md b/docs/OverTheCounterChannelCode.md deleted file mode 100644 index dac41c7a..00000000 --- a/docs/OverTheCounterChannelCode.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_request.model.OverTheCounterChannelCode - -Over The Counter Channel Code - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Over The Counter Channel Code | must be one of ["7ELEVEN", "7ELEVEN_CLIQQ", "CEBUANA", "ECPAY", "PALAWAN", "MLHUILLIER", "ECPAY_DRAGONLOAN", "LBC", "ECPAY_SCHOOL", "RD_PAWNSHOP", "CVM", "USSC", "SM_BILLS", "ROBINSONS_BILLS", "ALFAMART", "INDOMARET", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/OverTheCounterChannelProperties.md b/docs/OverTheCounterChannelProperties.md deleted file mode 100644 index 351c2e97..00000000 --- a/docs/OverTheCounterChannelProperties.md +++ /dev/null @@ -1,15 +0,0 @@ -# xendit.payment_request.model.OverTheCounterChannelProperties - -Over The Counter Channel Properties - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **customer_name** | **str** | Name of customer. | | -| **payment_code** | **str** | The payment code that you want to assign, e.g 12345. If you do not send one, one will be picked at random. | [optional] | -| **expires_at** | **datetime** | The time when the payment code will be expired. The minimum is 2 hours and the maximum is 9 days for 7ELEVEN. Default expired date will be 2 days from payment code generated. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/OverTheCounterChannelPropertiesUpdate.md b/docs/OverTheCounterChannelPropertiesUpdate.md deleted file mode 100644 index 81107c99..00000000 --- a/docs/OverTheCounterChannelPropertiesUpdate.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_method.model.OverTheCounterChannelPropertiesUpdate - -Over The Counter Channel properties that can be updated - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **customer_name** | **str** | Name of customer. | [optional] | -| **expires_at** | **datetime** | The time when the payment code will be expired. The minimum is 2 hours and the maximum is 9 days for 7ELEVEN. Default expired date will be 2 days from payment code generated. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/OverTheCounterParameters.md b/docs/OverTheCounterParameters.md deleted file mode 100644 index 91dc9fab..00000000 --- a/docs/OverTheCounterParameters.md +++ /dev/null @@ -1,15 +0,0 @@ -# xendit.payment_request.model.OverTheCounterParameters - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | | | -| **channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | | | -| **amount** | **float, none_type** | | [optional] | -| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/OverTheCounterUpdateParameters.md b/docs/OverTheCounterUpdateParameters.md deleted file mode 100644 index 79a5f7f9..00000000 --- a/docs/OverTheCounterUpdateParameters.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_method.model.OverTheCounterUpdateParameters - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **amount** | **float, none_type** | | [optional] | -| **channel_properties** | [**OverTheCounterChannelPropertiesUpdate**](OverTheCounterChannelPropertiesUpdate.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PatchCustomer.md b/docs/PatchCustomer.md deleted file mode 100644 index ed207d8d..00000000 --- a/docs/PatchCustomer.md +++ /dev/null @@ -1,24 +0,0 @@ -# xendit.customer.model.PatchCustomer - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **client_name** | **str, none_type** | Entity's name for this client | [optional] | -| **reference_id** | **str, none_type** | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | [optional] | -| **individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | [optional] | -| **business_detail** | [**BusinessDetail**](BusinessDetail.md) | | [optional] | -| **description** | **str, none_type** | | [optional] | -| **email** | **str, none_type** | | [optional] | -| **mobile_number** | **str, none_type** | | [optional] | -| **phone_number** | **str, none_type** | | [optional] | -| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | -| **addresses** | [**[AddressRequest], none_type**](AddressRequest.md) | | [optional] | -| **identity_accounts** | [**[IdentityAccountRequest], none_type**](IdentityAccountRequest.md) | | [optional] | -| **kyc_documents** | [**[KYCDocumentRequest], none_type**](KYCDocumentRequest.md) | | [optional] | -| **status** | [**EndCustomerStatus**](EndCustomerStatus.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Paylater.md b/docs/Paylater.md deleted file mode 100644 index 6554140c..00000000 --- a/docs/Paylater.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.Paylater - -An object representing paylater details for invoices. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **paylater_type** | [**PaylaterType**](PaylaterType.md) | | | -| **should_exclude** | **bool** | Indicates whether this paylater option should be excluded. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaylaterType.md b/docs/PaylaterType.md deleted file mode 100644 index d14dc543..00000000 --- a/docs/PaylaterType.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.PaylaterType - -Representing the available paylater channels used for invoice-related transactions. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Representing the available paylater channels used for invoice-related transactions. | must be one of ["KREDIVO", "AKULAKU", "UANGME", "BILLEASE", "CASHALO", "ATOME", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentMethod.md b/docs/PaymentMethod.md deleted file mode 100644 index 33226c3f..00000000 --- a/docs/PaymentMethod.md +++ /dev/null @@ -1,26 +0,0 @@ -# xendit.payment_request.model.PaymentMethod - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **id** | **str** | | | -| **type** | [**PaymentMethodType**](PaymentMethodType.md) | | | -| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | | -| **status** | [**PaymentMethodStatus**](PaymentMethodStatus.md) | | | -| **created** | **str** | | [optional] | -| **updated** | **str** | | [optional] | -| **description** | **str, none_type** | | [optional] | -| **reference_id** | **str** | | [optional] | -| **card** | [**Card**](Card.md) | | [optional] | -| **direct_debit** | [**DirectDebit**](DirectDebit.md) | | [optional] | -| **ewallet** | [**EWallet**](EWallet.md) | | [optional] | -| **over_the_counter** | [**OverTheCounter**](OverTheCounter.md) | | [optional] | -| **virtual_account** | [**VirtualAccount**](VirtualAccount.md) | | [optional] | -| **qr_code** | [**QRCode**](QRCode.md) | | [optional] | -| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentMethodAction.md b/docs/PaymentMethodAction.md deleted file mode 100644 index c0112279..00000000 --- a/docs/PaymentMethodAction.md +++ /dev/null @@ -1,15 +0,0 @@ -# xendit.payment_method.model.PaymentMethodAction - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **action** | **str** | | [optional] | -| **method** | **str** | | [optional] | -| **url** | **str** | | [optional] | -| **url_type** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentMethodApi.md b/docs/PaymentMethodApi.md index ad9c5c72..0a2d9d68 100644 --- a/docs/PaymentMethodApi.md +++ b/docs/PaymentMethodApi.md @@ -1,28 +1,58 @@ -# xendit.apis.PaymentMethodApi +# PaymentMethodApi + + +You can use the APIs below to interface with Xendit's `PaymentMethodApi`. +To start using the API, you need to configure the secret key and initiate the client instance. + +```python +import time +import xendit +from xendit.apis import PaymentMethodApi + +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') + +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() + +# Create an instance of the API class +api_instance = PaymentMethodApi(api_client) +``` All URIs are relative to *https://api.xendit.co* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_payment_method**](PaymentMethodApi.md#create_payment_method) | **POST** /v2/payment_methods | Creates payment method -[**get_payment_method_by_id**](PaymentMethodApi.md#get_payment_method_by_id) | **GET** /v2/payment_methods/{paymentMethodId} | Get payment method by ID -[**get_payments_by_payment_method_id**](PaymentMethodApi.md#get_payments_by_payment_method_id) | **GET** /v2/payment_methods/{paymentMethodId}/payments | Returns payments with matching PaymentMethodID. -[**patch_payment_method**](PaymentMethodApi.md#patch_payment_method) | **PATCH** /v2/payment_methods/{paymentMethodId} | Patch payment methods -[**get_all_payment_methods**](PaymentMethodApi.md#get_all_payment_methods) | **GET** /v2/payment_methods | Get all payment methods by filters -[**expire_payment_method**](PaymentMethodApi.md#expire_payment_method) | **POST** /v2/payment_methods/{paymentMethodId}/expire | Expires a payment method -[**auth_payment_method**](PaymentMethodApi.md#auth_payment_method) | **POST** /v2/payment_methods/{paymentMethodId}/auth | Validate a payment method's linking OTP -[**simulate_payment**](PaymentMethodApi.md#simulate_payment) | **POST** /v2/payment_methods/{paymentMethodId}/payments/simulate | Makes payment with matching PaymentMethodID. +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**create_payment_method**](PaymentMethodApi.md#create_payment_method-function) | **POST** /v2/payment_methods | Creates payment method | +| [**get_payment_method_by_id**](PaymentMethodApi.md#get_payment_method_by_id-function) | **GET** /v2/payment_methods/{paymentMethodId} | Get payment method by ID | +| [**get_payments_by_payment_method_id**](PaymentMethodApi.md#get_payments_by_payment_method_id-function) | **GET** /v2/payment_methods/{paymentMethodId}/payments | Returns payments with matching PaymentMethodID. | +| [**patch_payment_method**](PaymentMethodApi.md#patch_payment_method-function) | **PATCH** /v2/payment_methods/{paymentMethodId} | Patch payment methods | +| [**get_all_payment_methods**](PaymentMethodApi.md#get_all_payment_methods-function) | **GET** /v2/payment_methods | Get all payment methods by filters | +| [**expire_payment_method**](PaymentMethodApi.md#expire_payment_method-function) | **POST** /v2/payment_methods/{paymentMethodId}/expire | Expires a payment method | +| [**auth_payment_method**](PaymentMethodApi.md#auth_payment_method-function) | **POST** /v2/payment_methods/{paymentMethodId}/auth | Validate a payment method's linking OTP | +| [**simulate_payment**](PaymentMethodApi.md#simulate_payment-function) | **POST** /v2/payment_methods/{paymentMethodId}/payments/simulate | Makes payment with matching PaymentMethodID. | -# **create_payment_method** +# `create_payment_method()` Function > PaymentMethod create_payment_method() Creates payment method -This endpoint initiates creation of payment method +| Name | Value | +|--------------------|:-------------:| +| Function Name | `create_payment_method` | +| Request Parameters | [CreatePaymentMethodRequestParams](#request-parameters--CreatePaymentMethodRequestParams) | +| Return Type | [**PaymentMethod**](payment_method/PaymentMethod.md) | + +### Request Parameters - CreatePaymentMethodRequestParams -### Example +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **for_user_id** | **str**| | | +| **payment_method_parameters** | [**PaymentMethodParameters**](payment_method/PaymentMethodParameters.md)| | | +### Usage Example +#### Account linking for E-Wallet ```python import time @@ -46,6 +76,30 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentMethodApi(api_client) +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +payment_method_parameters = { + "type" : "EWALLET", + "reusability" : "MULTIPLE_USE", + "customer" : { + "reference_id" : "customer-123", + "type" : "INDIVIDUAL", + "individual_detail" : { + "given_names" : "John", + "surname" : "Doe" + } + }, + "ewallet" : { + "channel_code" : "OVO", + "channel_properties" : { + "success_return_url" : "https://redirect.me/success", + "failure_return_url" : "https://redirect.me/failure", + "cancel_return_url" : "https://redirect.me/cancel" + } + }, + "metadata" : { + "sku" : "example-1234" + } +} # PaymentMethodParameters # example passing only required values which don't have defaults set # and optional values @@ -56,44 +110,82 @@ try: except xendit.XenditSdkException as e: print("Exception when calling PaymentMethodApi->create_payment_method: %s\n" % e) ``` +#### Account linking for PH Direct Debit +```python +import time +import xendit +from xendit.apis import PaymentMethodApi +from xendit.payment_method.model.get_all_payment_methods403_response import GetAllPaymentMethods403Response +from xendit.payment_method.model.get_all_payment_methods400_response import GetAllPaymentMethods400Response +from xendit.payment_method.model.get_all_payment_methods404_response import GetAllPaymentMethods404Response +from xendit.payment_method.model.create_payment_method503_response import CreatePaymentMethod503Response +from xendit.payment_method.model.payment_method_parameters import PaymentMethodParameters +from xendit.payment_method.model.payment_method import PaymentMethod +from xendit.payment_method.model.create_payment_method409_response import CreatePaymentMethod409Response +from xendit.payment_method.model.get_all_payment_methods_default_response import GetAllPaymentMethodsDefaultResponse +from pprint import pprint -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **for_user_id** | **str**| | [optional] - **payment_method_parameters** | [**PaymentMethodParameters**](PaymentMethodParameters.md)| | [optional] - -### Return type - -[**PaymentMethod**](PaymentMethod.md) - +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Request successful | - | -**400** | Bad request | - | -**403** | Forbidden due to permissions | - | -**404** | Data not found | - | -**409** | Request causes conflict | - | -**503** | Service is unavailable due to dependencies | - | -**0** | Internal server error | - | +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() +# Create an instance of the API class +api_instance = PaymentMethodApi(api_client) +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +payment_method_parameters = { + "type" : "DIRECT_DEBIT", + "direct_debit" : { + "channel_code" : "BPI", + "channel_properties" : { + "success_return_url" : "https://redirect.me/success", + "failure_return_url" : "https://redirect.me/failure" + } + }, + "reusability" : "MULTIPLE_USE", + "customer" : { + "reference_id" : "customer-123", + "type" : "INDIVIDUAL", + "individual_detail" : { + "given_names" : "John", + "surname" : "Doe" + } + }, + "email" : "testemail@email.com", + "mobile_number" : 628774494404 +} # PaymentMethodParameters -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# example passing only required values which don't have defaults set +# and optional values +try: + # Creates payment method + api_response = api_instance.create_payment_method(for_user_id=for_user_id, payment_method_parameters=payment_method_parameters) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling PaymentMethodApi->create_payment_method: %s\n" % e) +``` -# **get_payment_method_by_id** +# `get_payment_method_by_id()` Function > PaymentMethod get_payment_method_by_id(payment_method_id) Get payment method by ID -Get payment method by ID +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_payment_method_by_id` | +| Request Parameters | [GetPaymentMethodByIdRequestParams](#request-parameters--GetPaymentMethodByIdRequestParams) | +| Return Type | [**PaymentMethod**](payment_method/PaymentMethod.md) | -### Example +### Request Parameters - GetPaymentMethodByIdRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_method_id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +### Usage Example ```python import time import xendit @@ -113,7 +205,8 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentMethodApi(api_client) -payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | +payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str # example passing only required values which don't have defaults set try: @@ -133,41 +226,37 @@ except xendit.XenditSdkException as e: print("Exception when calling PaymentMethodApi->get_payment_method_by_id: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **payment_method_id** | **str**| | - **for_user_id** | **str**| | [optional] - -### Return type - -[**PaymentMethod**](PaymentMethod.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Request successful | - | -**400** | Bad request | - | -**403** | Forbidden due to permissions | - | -**404** | Data not found | - | -**0** | Internal server error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_payments_by_payment_method_id** +# `get_payments_by_payment_method_id()` Function > {str: (bool, date, datetime, dict, float, int, list, str, none_type)} get_payments_by_payment_method_id(payment_method_id) Returns payments with matching PaymentMethodID. -Returns payments with matching PaymentMethodID. - -### Example - - +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_payments_by_payment_method_id` | +| Request Parameters | [GetPaymentsByPaymentMethodIdRequestParams](#request-parameters--GetPaymentsByPaymentMethodIdRequestParams) | +| Return Type | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | + +### Request Parameters - GetPaymentsByPaymentMethodIdRequestParams + +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_method_id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +| **payment_request_id** | **[str]**| | | +| **payment_method_id2** | **[str]**| | | +| **reference_id** | **[str]**| | | +| **payment_method_type** | [**[PaymentMethodType]**](payment_method/PaymentMethodType.md)| | | +| **channel_code** | **[str]**| | | +| **status** | **[str]**| | | +| **currency** | **[str]**| | | +| **created_gte** | **datetime**| | | +| **created_lte** | **datetime**| | | +| **updated_gte** | **datetime**| | | +| **updated_lte** | **datetime**| | | +| **limit** | **int**| | | + +### Usage Example ```python import time import xendit @@ -188,7 +277,34 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentMethodApi(api_client) -payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | +payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +payment_request_id = [ + "payment_request_id_example", + ] # [str] +payment_method_id2 = [ + "payment_method_id_example", + ] # [str] +reference_id = [ + "reference_id_example", + ] # [str] +payment_method_type = [ + PaymentMethodType("CARD"), + ] # [PaymentMethodType] +channel_code = [ + "channel_code_example", + ] # [str] +status = [ + "status_example", + ] # [str] +currency = [ + "currency_example", + ] # [str] +created_gte = dateutil_parser('2016-08-29T09:12:33.001Z') # datetime +created_lte = dateutil_parser('2016-08-29T09:12:33.001Z') # datetime +updated_gte = dateutil_parser('2016-08-29T09:12:33.001Z') # datetime +updated_lte = dateutil_parser('2016-08-29T09:12:33.001Z') # datetime +limit = 1 # int # example passing only required values which don't have defaults set try: @@ -208,54 +324,26 @@ except xendit.XenditSdkException as e: print("Exception when calling PaymentMethodApi->get_payments_by_payment_method_id: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **payment_method_id** | **str**| | - **for_user_id** | **str**| | [optional] - **payment_request_id** | **[str]**| | [optional] - **payment_method_id2** | **[str]**| | [optional] - **reference_id** | **[str]**| | [optional] - **payment_method_type** | [**[PaymentMethodType]**](PaymentMethodType.md)| | [optional] - **channel_code** | **[str]**| | [optional] - **status** | **[str]**| | [optional] - **currency** | **[str]**| | [optional] - **created_gte** | **datetime**| | [optional] - **created_lte** | **datetime**| | [optional] - **updated_gte** | **datetime**| | [optional] - **updated_lte** | **datetime**| | [optional] - **limit** | **int**| | [optional] - -### Return type - -**{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Request successful | - | -**400** | Bad request | - | -**403** | Forbidden due to permissions | - | -**404** | Data not found | - | -**503** | Service is unavailable due to dependencies | - | -**0** | Internal server error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_payment_method** +# `patch_payment_method()` Function > PaymentMethod patch_payment_method(payment_method_id) Patch payment methods -This endpoint is used to toggle the ```status``` of an e-Wallet or a Direct Debit payment method to ```ACTIVE``` or ```INACTIVE```. This is also used to update the details of an Over-the-Counter or a Virtual Account payment method. +| Name | Value | +|--------------------|:-------------:| +| Function Name | `patch_payment_method` | +| Request Parameters | [PatchPaymentMethodRequestParams](#request-parameters--PatchPaymentMethodRequestParams) | +| Return Type | [**PaymentMethod**](payment_method/PaymentMethod.md) | -### Example +### Request Parameters - PatchPaymentMethodRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_method_id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +| **payment_method_update_parameters** | [**PaymentMethodUpdateParameters**](payment_method/PaymentMethodUpdateParameters.md)| | | +### Usage Example ```python import time import xendit @@ -276,7 +364,33 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentMethodApi(api_client) -payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | +payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +payment_method_update_parameters = PaymentMethodUpdateParameters( + description="description_example", + reference_id="reference_id_example", + reusability=PaymentMethodReusability("MULTIPLE_USE"), + status=PaymentMethodStatus("ACTIVE"), + over_the_counter=OverTheCounterUpdateParameters( + amount=3.14, + channel_properties=OverTheCounterChannelPropertiesUpdate( + customer_name="Rika Sutanto", + expires_at=dateutil_parser('2022-01-01T00:00:00Z'), + ), + ), + virtual_account=VirtualAccountUpdateParameters( + amount=3.14, + min_amount=1, + max_amount=1, + channel_properties=VirtualAccountChannelPropertiesPatch( + expires_at=dateutil_parser('2022-01-01T00:00:00Z'), + suggested_amount=100000, + ), + alternative_display_types=[ + "QR_STRING", + ], + ), + ) # PaymentMethodUpdateParameters # example passing only required values which don't have defaults set try: @@ -296,42 +410,33 @@ except xendit.XenditSdkException as e: print("Exception when calling PaymentMethodApi->patch_payment_method: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **payment_method_id** | **str**| | - **for_user_id** | **str**| | [optional] - **payment_method_update_parameters** | [**PaymentMethodUpdateParameters**](PaymentMethodUpdateParameters.md)| | [optional] - -### Return type - -[**PaymentMethod**](PaymentMethod.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Request successful | - | -**400** | Bad request | - | -**403** | Forbidden due to permissions | - | -**404** | Data not found | - | -**0** | Internal server error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_all_payment_methods** +# `get_all_payment_methods()` Function > PaymentMethodList get_all_payment_methods() Get all payment methods by filters -Get all payment methods by filters - -### Example - - +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_all_payment_methods` | +| Request Parameters | [GetAllPaymentMethodsRequestParams](#request-parameters--GetAllPaymentMethodsRequestParams) | +| Return Type | [**PaymentMethodList**](payment_method/PaymentMethodList.md) | + +### Request Parameters - GetAllPaymentMethodsRequestParams + +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **for_user_id** | **str**| | | +| **id** | **[str]**| | | +| **type** | **[str]**| | | +| **status** | [**[PaymentMethodStatus]**](payment_method/PaymentMethodStatus.md)| | | +| **reusability** | **PaymentMethodReusability**| | | +| **customer_id** | **str**| | | +| **reference_id** | **str**| | | +| **after_id** | **str**| | | +| **before_id** | **str**| | | +| **limit** | **int**| | | + +### Usage Example ```python import time import xendit @@ -353,6 +458,22 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentMethodApi(api_client) +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +id = [ + "id_example", + ] # [str] +type = [ + "type_example", + ] # [str] +status = [ + PaymentMethodStatus("ACTIVE"), + ] # [PaymentMethodStatus] +reusability = PaymentMethodReusability("MULTIPLE_USE") # PaymentMethodReusability +customer_id = "customer_id_example" # str +reference_id = "reference_id_example" # str +after_id = "after_id_example" # str +before_id = "before_id_example" # str +limit = 1 # int # example passing only required values which don't have defaults set # and optional values @@ -364,49 +485,26 @@ except xendit.XenditSdkException as e: print("Exception when calling PaymentMethodApi->get_all_payment_methods: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **for_user_id** | **str**| | [optional] - **id** | **[str]**| | [optional] - **type** | **[str]**| | [optional] - **status** | [**[PaymentMethodStatus]**](PaymentMethodStatus.md)| | [optional] - **reusability** | **PaymentMethodReusability**| | [optional] - **customer_id** | **str**| | [optional] - **reference_id** | **str**| | [optional] - **after_id** | **str**| | [optional] - **before_id** | **str**| | [optional] - **limit** | **int**| | [optional] - -### Return type - -[**PaymentMethodList**](PaymentMethodList.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Request successful | - | -**400** | Bad request | - | -**403** | Forbidden due to permissions | - | -**404** | Data not found | - | -**0** | Internal server error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **expire_payment_method** +# `expire_payment_method()` Function > PaymentMethod expire_payment_method(payment_method_id) Expires a payment method -This endpoint expires a payment method and performs unlinking if necessary +| Name | Value | +|--------------------|:-------------:| +| Function Name | `expire_payment_method` | +| Request Parameters | [ExpirePaymentMethodRequestParams](#request-parameters--ExpirePaymentMethodRequestParams) | +| Return Type | [**PaymentMethod**](payment_method/PaymentMethod.md) | -### Example +### Request Parameters - ExpirePaymentMethodRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_method_id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +| **payment_method_expire_parameters** | [**PaymentMethodExpireParameters**](payment_method/PaymentMethodExpireParameters.md)| | | +### Usage Example ```python import time import xendit @@ -428,7 +526,12 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentMethodApi(api_client) -payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | +payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +payment_method_expire_parameters = PaymentMethodExpireParameters( + success_return_url="success_return_url_example", + failure_return_url="failure_return_url_example", + ) # PaymentMethodExpireParameters # example passing only required values which don't have defaults set try: @@ -448,43 +551,26 @@ except xendit.XenditSdkException as e: print("Exception when calling PaymentMethodApi->expire_payment_method: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **payment_method_id** | **str**| | - **for_user_id** | **str**| | [optional] - **payment_method_expire_parameters** | [**PaymentMethodExpireParameters**](PaymentMethodExpireParameters.md)| | [optional] - -### Return type - -[**PaymentMethod**](PaymentMethod.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Request successful | - | -**400** | Bad request | - | -**403** | Forbidden due to permissions | - | -**404** | Data not found | - | -**503** | Service is unavailable due to dependencies | - | -**0** | Internal server error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **auth_payment_method** +# `auth_payment_method()` Function > PaymentMethod auth_payment_method(payment_method_id) Validate a payment method's linking OTP -This endpoint validates a payment method linking OTP +| Name | Value | +|--------------------|:-------------:| +| Function Name | `auth_payment_method` | +| Request Parameters | [AuthPaymentMethodRequestParams](#request-parameters--AuthPaymentMethodRequestParams) | +| Return Type | [**PaymentMethod**](payment_method/PaymentMethod.md) | -### Example +### Request Parameters - AuthPaymentMethodRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_method_id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +| **payment_method_auth_parameters** | [**PaymentMethodAuthParameters**](payment_method/PaymentMethodAuthParameters.md)| | | +### Usage Example ```python import time import xendit @@ -507,7 +593,11 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentMethodApi(api_client) -payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | +payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +payment_method_auth_parameters = PaymentMethodAuthParameters( + auth_code="auth_code_example", + ) # PaymentMethodAuthParameters # example passing only required values which don't have defaults set try: @@ -527,44 +617,25 @@ except xendit.XenditSdkException as e: print("Exception when calling PaymentMethodApi->auth_payment_method: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **payment_method_id** | **str**| | - **for_user_id** | **str**| | [optional] - **payment_method_auth_parameters** | [**PaymentMethodAuthParameters**](PaymentMethodAuthParameters.md)| | [optional] - -### Return type - -[**PaymentMethod**](PaymentMethod.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Request successful | - | -**400** | Bad request | - | -**403** | Forbidden due to permissions | - | -**404** | Data not found | - | -**409** | Request causes conflict | - | -**503** | Service is unavailable due to dependencies | - | -**0** | Internal server error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **simulate_payment** +# `simulate_payment()` Function > simulate_payment(payment_method_id) Makes payment with matching PaymentMethodID. -Makes payment with matching PaymentMethodID. +| Name | Value | +|--------------------|:-------------:| +| Function Name | `simulate_payment` | +| Request Parameters | [SimulatePaymentRequestParams](#request-parameters--SimulatePaymentRequestParams) | +| Return Type | void (empty response body) | -### Example +### Request Parameters - SimulatePaymentRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_method_id** | **str** | ☑️ | | +| **simulate_payment_request** | [**SimulatePaymentRequest**](payment_method/SimulatePaymentRequest.md)| | | +### Usage Example ```python import time import xendit @@ -585,7 +656,10 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentMethodApi(api_client) -payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | +payment_method_id = "pm-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str +simulate_payment_request = SimulatePaymentRequest( + amount=3.14, + ) # SimulatePaymentRequest # example passing only required values which don't have defaults set try: @@ -603,29 +677,4 @@ except xendit.XenditSdkException as e: print("Exception when calling PaymentMethodApi->simulate_payment: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **payment_method_id** | **str**| | - **simulate_payment_request** | [**SimulatePaymentRequest**](SimulatePaymentRequest.md)| | [optional] - -### Return type - -void (empty response body) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Request successful | - | -**400** | Bad request | - | -**403** | Forbidden due to permissions | - | -**404** | Data not found | - | -**503** | Service is unavailable due to dependencies | - | -**0** | Internal server error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to README]](../README.md) diff --git a/docs/PaymentMethodAuthParameters.md b/docs/PaymentMethodAuthParameters.md deleted file mode 100644 index aaa02a1a..00000000 --- a/docs/PaymentMethodAuthParameters.md +++ /dev/null @@ -1,12 +0,0 @@ -# xendit.payment_method.model.PaymentMethodAuthParameters - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **auth_code** | **str** | | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentMethodCountry.md b/docs/PaymentMethodCountry.md deleted file mode 100644 index 14b9b77a..00000000 --- a/docs/PaymentMethodCountry.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_method.model.PaymentMethodCountry - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["PH", "ID", "VN", "TH", "MY", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentMethodExpireParameters.md b/docs/PaymentMethodExpireParameters.md deleted file mode 100644 index 7b0e141d..00000000 --- a/docs/PaymentMethodExpireParameters.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_method.model.PaymentMethodExpireParameters - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **success_return_url** | **str, none_type** | URL where the end customer is redirected if the unlinking authorization is successful. | [optional] | -| **failure_return_url** | **str, none_type** | URL where the end customer is redirected if the unlinking authorization is failed. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentMethodList.md b/docs/PaymentMethodList.md deleted file mode 100644 index 1389c732..00000000 --- a/docs/PaymentMethodList.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_method.model.PaymentMethodList - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **data** | [**[PaymentMethod]**](PaymentMethod.md) | | | -| **has_more** | **bool** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentMethodParameters.md b/docs/PaymentMethodParameters.md deleted file mode 100644 index c64b02c9..00000000 --- a/docs/PaymentMethodParameters.md +++ /dev/null @@ -1,20 +0,0 @@ -# xendit.payment_request.model.PaymentMethodParameters - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **type** | [**PaymentMethodType**](PaymentMethodType.md) | | | -| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | | -| **description** | **str, none_type** | | [optional] | -| **reference_id** | **str** | | [optional] | -| **direct_debit** | [**DirectDebitParameters**](DirectDebitParameters.md) | | [optional] | -| **ewallet** | [**EWalletParameters**](EWalletParameters.md) | | [optional] | -| **over_the_counter** | [**OverTheCounterParameters**](OverTheCounterParameters.md) | | [optional] | -| **virtual_account** | [**VirtualAccountParameters**](VirtualAccountParameters.md) | | [optional] | -| **qr_code** | [**QRCodeParameters**](QRCodeParameters.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentMethodReusability.md b/docs/PaymentMethodReusability.md deleted file mode 100644 index 4d8b4cd5..00000000 --- a/docs/PaymentMethodReusability.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.PaymentMethodReusability - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["MULTIPLE_USE", "ONE_TIME_USE", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentMethodStatus.md b/docs/PaymentMethodStatus.md deleted file mode 100644 index f3927db6..00000000 --- a/docs/PaymentMethodStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.PaymentMethodStatus - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["ACTIVE", "INACTIVE", "PENDING", "EXPIRED", "FAILED", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentMethodType.md b/docs/PaymentMethodType.md deleted file mode 100644 index 0864cfe4..00000000 --- a/docs/PaymentMethodType.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.PaymentMethodType - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["CARD", "DIRECT_DEBIT", "EWALLET", "OVER_THE_COUNTER", "QR_CODE", "VIRTUAL_ACCOUNT", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentMethodUpdateParameters.md b/docs/PaymentMethodUpdateParameters.md deleted file mode 100644 index 49b3a062..00000000 --- a/docs/PaymentMethodUpdateParameters.md +++ /dev/null @@ -1,17 +0,0 @@ -# xendit.payment_method.model.PaymentMethodUpdateParameters - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **description** | **str** | | [optional] | -| **reference_id** | **str** | | [optional] | -| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | [optional] | -| **status** | [**PaymentMethodStatus**](PaymentMethodStatus.md) | | [optional] | -| **over_the_counter** | [**OverTheCounterUpdateParameters**](OverTheCounterUpdateParameters.md) | | [optional] | -| **virtual_account** | [**VirtualAccountUpdateParameters**](VirtualAccountUpdateParameters.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequest.md b/docs/PaymentRequest.md deleted file mode 100644 index 3503a9f2..00000000 --- a/docs/PaymentRequest.md +++ /dev/null @@ -1,34 +0,0 @@ -# xendit.payment_request.model.PaymentRequest - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **id** | **str** | | | -| **created** | **str** | | | -| **updated** | **str** | | | -| **reference_id** | **str** | | | -| **business_id** | **str** | | | -| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | | -| **payment_method** | [**PaymentMethod**](PaymentMethod.md) | | | -| **status** | [**PaymentRequestStatus**](PaymentRequestStatus.md) | | | -| **customer_id** | **str, none_type** | | [optional] | -| **customer** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | -| **amount** | **float** | | [optional] | -| **min_amount** | **float, none_type** | | [optional] | -| **max_amount** | **float, none_type** | | [optional] | -| **country** | [**PaymentRequestCountry**](PaymentRequestCountry.md) | | [optional] | -| **description** | **str, none_type** | | [optional] | -| **failure_code** | **str, none_type** | | [optional] | -| **capture_method** | [**PaymentRequestCaptureMethod**](PaymentRequestCaptureMethod.md) | | [optional] | -| **initiator** | [**PaymentRequestInitiator**](PaymentRequestInitiator.md) | | [optional] | -| **card_verification_results** | [**PaymentRequestCardVerificationResults**](PaymentRequestCardVerificationResults.md) | | [optional] | -| **actions** | [**[PaymentRequestAction]**](PaymentRequestAction.md) | | [optional] | -| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | -| **shipping_information** | [**PaymentRequestShippingInformation**](PaymentRequestShippingInformation.md) | | [optional] | -| **items** | [**PaymentRequestBasket**](PaymentRequestBasket.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestAction.md b/docs/PaymentRequestAction.md deleted file mode 100644 index c1c7a158..00000000 --- a/docs/PaymentRequestAction.md +++ /dev/null @@ -1,16 +0,0 @@ -# xendit.payment_request.model.PaymentRequestAction - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **action** | **str** | | | -| **url_type** | **str** | | | -| **method** | **str, none_type** | | | -| **url** | **str, none_type** | | | -| **qr_code** | **str, none_type** | | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestApi.md b/docs/PaymentRequestApi.md index f9599fc5..b6fc8230 100644 --- a/docs/PaymentRequestApi.md +++ b/docs/PaymentRequestApi.md @@ -1,27 +1,58 @@ -# xendit.apis.PaymentRequestApi +# PaymentRequestApi + + +You can use the APIs below to interface with Xendit's `PaymentRequestApi`. +To start using the API, you need to configure the secret key and initiate the client instance. + +```python +import time +import xendit +from xendit.apis import PaymentRequestApi + +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') + +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() + +# Create an instance of the API class +api_instance = PaymentRequestApi(api_client) +``` All URIs are relative to *https://api.xendit.co* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_payment_request**](PaymentRequestApi.md#create_payment_request) | **POST** /payment_requests | Create Payment Request -[**get_payment_request_by_id**](PaymentRequestApi.md#get_payment_request_by_id) | **GET** /payment_requests/{paymentRequestId} | Get payment request by ID -[**get_payment_request_captures**](PaymentRequestApi.md#get_payment_request_captures) | **GET** /payment_requests/{paymentRequestId}/captures | Get Payment Request Capture -[**get_all_payment_requests**](PaymentRequestApi.md#get_all_payment_requests) | **GET** /payment_requests | Get all payment requests by filter -[**capture_payment_request**](PaymentRequestApi.md#capture_payment_request) | **POST** /payment_requests/{paymentRequestId}/captures | Payment Request Capture -[**authorize_payment_request**](PaymentRequestApi.md#authorize_payment_request) | **POST** /payment_requests/{paymentRequestId}/auth | Payment Request Authorize -[**resend_payment_request_auth**](PaymentRequestApi.md#resend_payment_request_auth) | **POST** /payment_requests/{paymentRequestId}/auth/resend | Payment Request Resend Auth +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**create_payment_request**](PaymentRequestApi.md#create_payment_request-function) | **POST** /payment_requests | Create Payment Request | +| [**get_payment_request_by_id**](PaymentRequestApi.md#get_payment_request_by_id-function) | **GET** /payment_requests/{paymentRequestId} | Get payment request by ID | +| [**get_payment_request_captures**](PaymentRequestApi.md#get_payment_request_captures-function) | **GET** /payment_requests/{paymentRequestId}/captures | Get Payment Request Capture | +| [**get_all_payment_requests**](PaymentRequestApi.md#get_all_payment_requests-function) | **GET** /payment_requests | Get all payment requests by filter | +| [**capture_payment_request**](PaymentRequestApi.md#capture_payment_request-function) | **POST** /payment_requests/{paymentRequestId}/captures | Payment Request Capture | +| [**authorize_payment_request**](PaymentRequestApi.md#authorize_payment_request-function) | **POST** /payment_requests/{paymentRequestId}/auth | Payment Request Authorize | +| [**resend_payment_request_auth**](PaymentRequestApi.md#resend_payment_request_auth-function) | **POST** /payment_requests/{paymentRequestId}/auth/resend | Payment Request Resend Auth | -# **create_payment_request** +# `create_payment_request()` Function > PaymentRequest create_payment_request() Create Payment Request -Create Payment Request +| Name | Value | +|--------------------|:-------------:| +| Function Name | `create_payment_request` | +| Request Parameters | [CreatePaymentRequestRequestParams](#request-parameters--CreatePaymentRequestRequestParams) | +| Return Type | [**PaymentRequest**](payment_request/PaymentRequest.md) | -### Example +### Request Parameters - CreatePaymentRequestRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **idempotency_key** | **str**| | | +| **for_user_id** | **str**| | | +| **payment_request_parameters** | [**PaymentRequestParameters**](payment_request/PaymentRequestParameters.md)| | | + +### Usage Example +#### E-Wallet One Time Payment via Redirect URL ```python import time @@ -40,6 +71,24 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentRequestApi(api_client) +idempotency_key = "5f9a3fbd571a1c4068aa40ce" # str +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +payment_request_parameters = { + "reference_id" : "example-ref-1234", + "amount" : 15000, + "currency" : "IDR", + "country" : "ID", + "payment_method" : { + "type" : "EWALLET", + "ewallet" : { + "channel_code" : "SHOPEEPAY", + "channel_properties" : { + "success_return_url" : "https://redirect.me/success" + } + }, + "reusability" : "ONE_TIME_USE" + } +} # PaymentRequestParameters # example passing only required values which don't have defaults set # and optional values @@ -50,43 +99,204 @@ try: except xendit.XenditSdkException as e: print("Exception when calling PaymentRequestApi->create_payment_request: %s\n" % e) ``` +#### Fixed amount dynamic QR +```python +import time +import xendit +from xendit.apis import PaymentRequestApi +from xendit.payment_request.model.payment_request_parameters import PaymentRequestParameters +from xendit.payment_request.model.error import Error +from xendit.payment_request.model.payment_request import PaymentRequest +from pprint import pprint -### Parameters +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **idempotency_key** | **str**| | [optional] - **for_user_id** | **str**| | [optional] - **payment_request_parameters** | [**PaymentRequestParameters**](PaymentRequestParameters.md)| | [optional] -### Return type +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() +# Create an instance of the API class +api_instance = PaymentRequestApi(api_client) +idempotency_key = "5f9a3fbd571a1c4068aa40ce" # str +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +payment_request_parameters = { + "reference_id" : "example-ref-1234", + "amount" : 15000, + "currency" : "IDR", + "payment_method" : { + "type" : "QR_CODE", + "reusability" : "ONE_TIME_USE", + "qr_code" : { + "channel_code" : "“QRIS”" + } + }, + "metadata" : { + "sku" : "example-sku-1234" + } +} # PaymentRequestParameters -[**PaymentRequest**](PaymentRequest.md) +# example passing only required values which don't have defaults set +# and optional values +try: + # Create Payment Request + api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, for_user_id=for_user_id, payment_request_parameters=payment_request_parameters) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling PaymentRequestApi->create_payment_request: %s\n" % e) +``` +#### Fixed amount single use Virtual Account +```python +import time +import xendit +from xendit.apis import PaymentRequestApi +from xendit.payment_request.model.payment_request_parameters import PaymentRequestParameters +from xendit.payment_request.model.error import Error +from xendit.payment_request.model.payment_request import PaymentRequest +from pprint import pprint + +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') + + +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() +# Create an instance of the API class +api_instance = PaymentRequestApi(api_client) +idempotency_key = "5f9a3fbd571a1c4068aa40ce" # str +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +payment_request_parameters = { + "reference_id" : "example-ref-1234", + "currency" : "IDR", + "amount" : 15000, + "country" : "ID", + "payment_method" : { + "type" : "VIRTUAL_ACCOUNT", + "reusability" : "ONE_TIME_USE", + "reference_id" : "example-1234", + "virtual_account" : { + "channel_code" : "BNI", + "channel_properties" : { + "customer_name" : "Ahmad Gunawan", + "expires_at" : "2023-01-03T17:00:00Z" + } + } + }, + "metadata" : { + "sku" : "example-sku-1234" + } +} # PaymentRequestParameters + +# example passing only required values which don't have defaults set +# and optional values +try: + # Create Payment Request + api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, for_user_id=for_user_id, payment_request_parameters=payment_request_parameters) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling PaymentRequestApi->create_payment_request: %s\n" % e) +``` +#### Subsequent PH Direct Debit payments after account linking + +```python +import time +import xendit +from xendit.apis import PaymentRequestApi +from xendit.payment_request.model.payment_request_parameters import PaymentRequestParameters +from xendit.payment_request.model.error import Error +from xendit.payment_request.model.payment_request import PaymentRequest +from pprint import pprint -### HTTP response details +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Request successful | - | -**201** | Request successful | - | -**400** | Errors | - | -**500** | Errors | - | -**0** | Errors | - | -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() +# Create an instance of the API class +api_instance = PaymentRequestApi(api_client) +idempotency_key = "5f9a3fbd571a1c4068aa40ce" # str +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +payment_request_parameters = { + "reference_id" : "example-ref-1234", + "amount" : 1500, + "currency" : "PHP", + "payment_method_id" : "pm-9685a196-81e9-4c73-8d62-97df5aab2762", + "metadata" : { + "sku" : "example-sku-1234" + } +} # PaymentRequestParameters -# **get_payment_request_by_id** +# example passing only required values which don't have defaults set +# and optional values +try: + # Create Payment Request + api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, for_user_id=for_user_id, payment_request_parameters=payment_request_parameters) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling PaymentRequestApi->create_payment_request: %s\n" % e) +``` +#### Subsequent tokenized E-Wallet payments after account linking + +```python +import time +import xendit +from xendit.apis import PaymentRequestApi +from xendit.payment_request.model.payment_request_parameters import PaymentRequestParameters +from xendit.payment_request.model.error import Error +from xendit.payment_request.model.payment_request import PaymentRequest +from pprint import pprint + +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') + + +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() +# Create an instance of the API class +api_instance = PaymentRequestApi(api_client) +idempotency_key = "5f9a3fbd571a1c4068aa40ce" # str +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +payment_request_parameters = { + "reference_id" : "example-ref-1234", + "amount" : 15000, + "currency" : "IDR", + "payment_method_id" : "pm-2b2c6092-2100-4843-a7fc-f5c7edac7efd", + "metadata" : { + "sku" : "example-sku-1234" + } +} # PaymentRequestParameters + +# example passing only required values which don't have defaults set +# and optional values +try: + # Create Payment Request + api_response = api_instance.create_payment_request(idempotency_key=idempotency_key, for_user_id=for_user_id, payment_request_parameters=payment_request_parameters) + pprint(api_response) +except xendit.XenditSdkException as e: + print("Exception when calling PaymentRequestApi->create_payment_request: %s\n" % e) +``` + +# `get_payment_request_by_id()` Function > PaymentRequest get_payment_request_by_id(payment_request_id) Get payment request by ID -Get payment request by ID +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_payment_request_by_id` | +| Request Parameters | [GetPaymentRequestByIdRequestParams](#request-parameters--GetPaymentRequestByIdRequestParams) | +| Return Type | [**PaymentRequest**](payment_request/PaymentRequest.md) | -### Example +### Request Parameters - GetPaymentRequestByIdRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_request_id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +### Usage Example ```python import time import xendit @@ -103,7 +313,8 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentRequestApi(api_client) -payment_request_id = "pr-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | +payment_request_id = "pr-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str # example passing only required values which don't have defaults set try: @@ -123,40 +334,26 @@ except xendit.XenditSdkException as e: print("Exception when calling PaymentRequestApi->get_payment_request_by_id: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **payment_request_id** | **str**| | - **for_user_id** | **str**| | [optional] - -### Return type - -[**PaymentRequest**](PaymentRequest.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Request successful | - | -**404** | Errors | - | -**500** | Errors | - | -**0** | Errors | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_payment_request_captures** +# `get_payment_request_captures()` Function > CaptureListResponse get_payment_request_captures(payment_request_id) Get Payment Request Capture -Get Payment Request Capture +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_payment_request_captures` | +| Request Parameters | [GetPaymentRequestCapturesRequestParams](#request-parameters--GetPaymentRequestCapturesRequestParams) | +| Return Type | [**CaptureListResponse**](payment_request/CaptureListResponse.md) | -### Example +### Request Parameters - GetPaymentRequestCapturesRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_request_id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +| **limit** | **int**| | | +### Usage Example ```python import time import xendit @@ -173,7 +370,9 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentRequestApi(api_client) -payment_request_id = "pr-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | +payment_request_id = "pr-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +limit = 1 # int # example passing only required values which don't have defaults set try: @@ -193,41 +392,30 @@ except xendit.XenditSdkException as e: print("Exception when calling PaymentRequestApi->get_payment_request_captures: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **payment_request_id** | **str**| | - **for_user_id** | **str**| | [optional] - **limit** | **int**| | [optional] - -### Return type - -[**CaptureListResponse**](CaptureListResponse.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Request successful | - | -**400** | Errors | - | -**500** | Errors | - | -**0** | Errors | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_all_payment_requests** +# `get_all_payment_requests()` Function > PaymentRequestListResponse get_all_payment_requests() Get all payment requests by filter -Get all payment requests by filter - -### Example - - +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_all_payment_requests` | +| Request Parameters | [GetAllPaymentRequestsRequestParams](#request-parameters--GetAllPaymentRequestsRequestParams) | +| Return Type | [**PaymentRequestListResponse**](payment_request/PaymentRequestListResponse.md) | + +### Request Parameters - GetAllPaymentRequestsRequestParams + +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **for_user_id** | **str**| | | +| **reference_id** | **[str]**| | | +| **id** | **[str]**| | | +| **customer_id** | **[str]**| | | +| **limit** | **int**| | | +| **before_id** | **str**| | | +| **after_id** | **str**| | | + +### Usage Example ```python import time import xendit @@ -244,6 +432,19 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentRequestApi(api_client) +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +reference_id = [ + "reference_id_example", + ] # [str] +id = [ + "id_example", + ] # [str] +customer_id = [ + "customer_id_example", + ] # [str] +limit = 1 # int +before_id = "before_id_example" # str +after_id = "after_id_example" # str # example passing only required values which don't have defaults set # and optional values @@ -255,45 +456,26 @@ except xendit.XenditSdkException as e: print("Exception when calling PaymentRequestApi->get_all_payment_requests: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **for_user_id** | **str**| | [optional] - **reference_id** | **[str]**| | [optional] - **id** | **[str]**| | [optional] - **customer_id** | **[str]**| | [optional] - **limit** | **int**| | [optional] - **before_id** | **str**| | [optional] - **after_id** | **str**| | [optional] - -### Return type - -[**PaymentRequestListResponse**](PaymentRequestListResponse.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Request successful | - | -**404** | Errors | - | -**500** | Errors | - | -**0** | Errors | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **capture_payment_request** +# `capture_payment_request()` Function > Capture capture_payment_request(payment_request_id) Payment Request Capture -Payment Request Capture +| Name | Value | +|--------------------|:-------------:| +| Function Name | `capture_payment_request` | +| Request Parameters | [CapturePaymentRequestRequestParams](#request-parameters--CapturePaymentRequestRequestParams) | +| Return Type | [**Capture**](payment_request/Capture.md) | -### Example +### Request Parameters - CapturePaymentRequestRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_request_id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +| **capture_parameters** | [**CaptureParameters**](payment_request/CaptureParameters.md)| | | +### Usage Example ```python import time import xendit @@ -311,7 +493,12 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentRequestApi(api_client) -payment_request_id = "pr-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | +payment_request_id = "pr-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +capture_parameters = CaptureParameters( + reference_id="reference_id_example", + capture_amount=3.14, + ) # CaptureParameters # example passing only required values which don't have defaults set try: @@ -331,41 +518,26 @@ except xendit.XenditSdkException as e: print("Exception when calling PaymentRequestApi->capture_payment_request: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **payment_request_id** | **str**| | - **for_user_id** | **str**| | [optional] - **capture_parameters** | [**CaptureParameters**](CaptureParameters.md)| | [optional] - -### Return type - -[**Capture**](Capture.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Capture created | - | -**400** | Errors | - | -**500** | Errors | - | -**0** | Errors | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **authorize_payment_request** +# `authorize_payment_request()` Function > PaymentRequest authorize_payment_request(payment_request_id) Payment Request Authorize -Payment Request Authorize +| Name | Value | +|--------------------|:-------------:| +| Function Name | `authorize_payment_request` | +| Request Parameters | [AuthorizePaymentRequestRequestParams](#request-parameters--AuthorizePaymentRequestRequestParams) | +| Return Type | [**PaymentRequest**](payment_request/PaymentRequest.md) | -### Example +### Request Parameters - AuthorizePaymentRequestRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_request_id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +| **payment_request_auth_parameters** | [**PaymentRequestAuthParameters**](payment_request/PaymentRequestAuthParameters.md)| | | +### Usage Example ```python import time import xendit @@ -383,7 +555,11 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentRequestApi(api_client) -payment_request_id = "pr-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | +payment_request_id = "pr-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str +payment_request_auth_parameters = PaymentRequestAuthParameters( + auth_code="auth_code_example", + ) # PaymentRequestAuthParameters # example passing only required values which don't have defaults set try: @@ -403,41 +579,25 @@ except xendit.XenditSdkException as e: print("Exception when calling PaymentRequestApi->authorize_payment_request: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **payment_request_id** | **str**| | - **for_user_id** | **str**| | [optional] - **payment_request_auth_parameters** | [**PaymentRequestAuthParameters**](PaymentRequestAuthParameters.md)| | [optional] - -### Return type - -[**PaymentRequest**](PaymentRequest.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Request successful | - | -**400** | Errors | - | -**500** | Errors | - | -**0** | Errors | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **resend_payment_request_auth** +# `resend_payment_request_auth()` Function > PaymentRequest resend_payment_request_auth(payment_request_id) Payment Request Resend Auth -Payment Request Resend Auth +| Name | Value | +|--------------------|:-------------:| +| Function Name | `resend_payment_request_auth` | +| Request Parameters | [ResendPaymentRequestAuthRequestParams](#request-parameters--ResendPaymentRequestAuthRequestParams) | +| Return Type | [**PaymentRequest**](payment_request/PaymentRequest.md) | -### Example +### Request Parameters - ResendPaymentRequestAuthRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_request_id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +### Usage Example ```python import time import xendit @@ -454,7 +614,8 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PaymentRequestApi(api_client) -payment_request_id = "pr-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | +payment_request_id = "pr-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str +for_user_id = "5f9a3fbd571a1c4068aa40cf" # str # example passing only required values which don't have defaults set try: @@ -474,27 +635,4 @@ except xendit.XenditSdkException as e: print("Exception when calling PaymentRequestApi->resend_payment_request_auth: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **payment_request_id** | **str**| | - **for_user_id** | **str**| | [optional] - -### Return type - -[**PaymentRequest**](PaymentRequest.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Request successful | - | -**400** | Errors | - | -**500** | Errors | - | -**0** | Errors | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to README]](../README.md) diff --git a/docs/PaymentRequestAuthParameters.md b/docs/PaymentRequestAuthParameters.md deleted file mode 100644 index fe88c768..00000000 --- a/docs/PaymentRequestAuthParameters.md +++ /dev/null @@ -1,12 +0,0 @@ -# xendit.payment_request.model.PaymentRequestAuthParameters - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **auth_code** | **str** | | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestBasket.md b/docs/PaymentRequestBasket.md deleted file mode 100644 index 6e0cb94d..00000000 --- a/docs/PaymentRequestBasket.md +++ /dev/null @@ -1,12 +0,0 @@ -# xendit.payment_request.model.PaymentRequestBasket - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | [**[PaymentRequestBasketItem], none_type**](PaymentRequestBasketItem.md) | | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestBasketItem.md b/docs/PaymentRequestBasketItem.md deleted file mode 100644 index 03cc065c..00000000 --- a/docs/PaymentRequestBasketItem.md +++ /dev/null @@ -1,24 +0,0 @@ -# xendit.payment_request.model.PaymentRequestBasketItem - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **name** | **str** | | | -| **category** | **str** | | | -| **currency** | **str** | | | -| **quantity** | **float** | | | -| **price** | **float** | | | -| **reference_id** | **str** | | [optional] | -| **description** | **str** | | [optional] | -| **type** | **str** | | [optional] | -| **sub_category** | **str** | | [optional] | -| **payer_charged_currency** | **str** | | [optional] | -| **payer_charged_price** | **float** | | [optional] | -| **url** | **str** | | [optional] | -| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestCaptureMethod.md b/docs/PaymentRequestCaptureMethod.md deleted file mode 100644 index d297df9e..00000000 --- a/docs/PaymentRequestCaptureMethod.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.PaymentRequestCaptureMethod - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["AUTOMATIC", "MANUAL", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestCardVerificationResults.md b/docs/PaymentRequestCardVerificationResults.md deleted file mode 100644 index 17793b7f..00000000 --- a/docs/PaymentRequestCardVerificationResults.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_request.model.PaymentRequestCardVerificationResults - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **three_d_secure** | [**PaymentRequestCardVerificationResultsThreeDeeSecure**](PaymentRequestCardVerificationResultsThreeDeeSecure.md) | | | -| **cvv_result** | **str, none_type** | | [optional] | -| **address_verification_result** | **str, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestCardVerificationResultsThreeDeeSecure.md b/docs/PaymentRequestCardVerificationResultsThreeDeeSecure.md deleted file mode 100644 index 3cc30a5c..00000000 --- a/docs/PaymentRequestCardVerificationResultsThreeDeeSecure.md +++ /dev/null @@ -1,16 +0,0 @@ -# xendit.payment_request.model.PaymentRequestCardVerificationResultsThreeDeeSecure - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **three_d_secure_flow** | **str** | | [optional] | -| **eci_code** | **str** | | [optional] | -| **three_d_secure_result** | **str** | | [optional] | -| **three_d_secure_result_reason** | **str, none_type** | | [optional] | -| **three_d_secure_version** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestChannelProperties.md b/docs/PaymentRequestChannelProperties.md deleted file mode 100644 index 7cce47aa..00000000 --- a/docs/PaymentRequestChannelProperties.md +++ /dev/null @@ -1,18 +0,0 @@ -# xendit.payment_request.model.PaymentRequestChannelProperties - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **success_return_url** | **str** | URL where the end-customer is redirected if the authorization is successful | [optional] | -| **failure_return_url** | **str** | URL where the end-customer is redirected if the authorization failed | [optional] | -| **cancel_return_url** | **str** | URL where the end-customer is redirected if the authorization cancelled | [optional] | -| **redeem_points** | **str** | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | [optional] | -| **require_auth** | **bool** | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | [optional] | -| **merchant_id_tag** | **str** | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | [optional] | -| **cardonfile_type** | **str, none_type** | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestCountry.md b/docs/PaymentRequestCountry.md deleted file mode 100644 index ea1d91c5..00000000 --- a/docs/PaymentRequestCountry.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.PaymentRequestCountry - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["ID", "PH", "VN", "TH", "MY", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestCurrency.md b/docs/PaymentRequestCurrency.md deleted file mode 100644 index a8dec1e2..00000000 --- a/docs/PaymentRequestCurrency.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.PaymentRequestCurrency - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["IDR", "PHP", "VND", "THB", "MYR", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestInitiator.md b/docs/PaymentRequestInitiator.md deleted file mode 100644 index 43aab677..00000000 --- a/docs/PaymentRequestInitiator.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.PaymentRequestInitiator - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["CUSTOMER", "MERCHANT", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestListResponse.md b/docs/PaymentRequestListResponse.md deleted file mode 100644 index ccbd2fa1..00000000 --- a/docs/PaymentRequestListResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.PaymentRequestListResponse - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **data** | [**[PaymentRequest]**](PaymentRequest.md) | | | -| **has_more** | **bool** | | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestParameters.md b/docs/PaymentRequestParameters.md deleted file mode 100644 index e556bc84..00000000 --- a/docs/PaymentRequestParameters.md +++ /dev/null @@ -1,25 +0,0 @@ -# xendit.payment_request.model.PaymentRequestParameters - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | | -| **reference_id** | **str** | | [optional] | -| **amount** | **float** | | [optional] | -| **payment_method** | [**PaymentMethodParameters**](PaymentMethodParameters.md) | | [optional] | -| **description** | **str, none_type** | | [optional] | -| **capture_method** | [**PaymentRequestCaptureMethod**](PaymentRequestCaptureMethod.md) | | [optional] | -| **initiator** | [**PaymentRequestInitiator**](PaymentRequestInitiator.md) | | [optional] | -| **payment_method_id** | **str** | | [optional] | -| **channel_properties** | [**PaymentRequestParametersChannelProperties**](PaymentRequestParametersChannelProperties.md) | | [optional] | -| **shipping_information** | [**PaymentRequestShippingInformation**](PaymentRequestShippingInformation.md) | | [optional] | -| **items** | [**PaymentRequestBasket**](PaymentRequestBasket.md) | | [optional] | -| **customer_id** | **str, none_type** | | [optional] | -| **customer** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | -| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestParametersChannelProperties.md b/docs/PaymentRequestParametersChannelProperties.md deleted file mode 100644 index 026056b3..00000000 --- a/docs/PaymentRequestParametersChannelProperties.md +++ /dev/null @@ -1,19 +0,0 @@ -# xendit.payment_request.model.PaymentRequestParametersChannelProperties - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **success_return_url** | **str** | URL where the end-customer is redirected if the authorization is successful | [optional] | -| **failure_return_url** | **str** | URL where the end-customer is redirected if the authorization failed | [optional] | -| **cancel_return_url** | **str** | URL where the end-customer is redirected if the authorization cancelled | [optional] | -| **redeem_points** | **str** | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | [optional] | -| **require_auth** | **bool** | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | [optional] | -| **merchant_id_tag** | **str** | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | [optional] | -| **cardonfile_type** | **str, none_type** | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | [optional] | -| **cvv** | **str** | Three digit code written on the back of the card (usually called CVV/CVN). | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestParametersChannelPropertiesAllOf.md b/docs/PaymentRequestParametersChannelPropertiesAllOf.md deleted file mode 100644 index f0d229e8..00000000 --- a/docs/PaymentRequestParametersChannelPropertiesAllOf.md +++ /dev/null @@ -1,12 +0,0 @@ -# xendit.payment_request.model.PaymentRequestParametersChannelPropertiesAllOf - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **cvv** | **str** | Three digit code written on the back of the card (usually called CVV/CVN). | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestShippingInformation.md b/docs/PaymentRequestShippingInformation.md deleted file mode 100644 index a7083f28..00000000 --- a/docs/PaymentRequestShippingInformation.md +++ /dev/null @@ -1,17 +0,0 @@ -# xendit.payment_request.model.PaymentRequestShippingInformation - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **country** | **str** | | | -| **street_line1** | **str** | | [optional] | -| **street_line2** | **str** | | [optional] | -| **city** | **str** | | [optional] | -| **province_state** | **str** | | [optional] | -| **postal_code** | **str** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentRequestStatus.md b/docs/PaymentRequestStatus.md deleted file mode 100644 index 1fb637e3..00000000 --- a/docs/PaymentRequestStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.PaymentRequestStatus - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["PENDING", "REQUIRES_ACTION", "CANCELED", "SUCCEEDED", "FAILED", "VOIDED", "UNKNOWN", "AWAITING_CAPTURE", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Payout.md b/docs/Payout.md deleted file mode 100644 index e7c24156..00000000 --- a/docs/Payout.md +++ /dev/null @@ -1,26 +0,0 @@ -# xendit.payout.model.Payout - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **reference_id** | **str** | A client defined payout identifier | | -| **channel_code** | **str** | Channel code of selected destination bank or e-wallet | | -| **channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | | | -| **amount** | **float** | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | | -| **currency** | **str** | Currency of the destination channel using ISO-4217 currency code | | -| **id** | **str** | Xendit-generated unique identifier for each payout | | -| **created** | **datetime** | The time payout was created on Xendit's system, in ISO 8601 format | | -| **updated** | **datetime** | The time payout was last updated on Xendit's system, in ISO 8601 format | | -| **business_id** | **str** | Xendit Business ID | | -| **status** | **str** | Status of payout | | -| **description** | **str** | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | [optional] | -| **receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | [optional] | -| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Object of additional information you may use | [optional] | -| **failure_code** | **str** | If the Payout failed, we include a failure code for more details on the failure. | [optional] | -| **estimated_arrival_time** | **datetime** | Our estimated time on to when your payout is reflected to the destination account | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PayoutAllOf.md b/docs/PayoutAllOf.md deleted file mode 100644 index 869ee6a0..00000000 --- a/docs/PayoutAllOf.md +++ /dev/null @@ -1,18 +0,0 @@ -# xendit.payout.model.PayoutAllOf - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **id** | **str** | Xendit-generated unique identifier for each payout | | -| **created** | **datetime** | The time payout was created on Xendit's system, in ISO 8601 format | | -| **updated** | **datetime** | The time payout was last updated on Xendit's system, in ISO 8601 format | | -| **business_id** | **str** | Xendit Business ID | | -| **status** | **str** | Status of payout | | -| **failure_code** | **str** | If the Payout failed, we include a failure code for more details on the failure. | [optional] | -| **estimated_arrival_time** | **datetime** | Our estimated time on to when your payout is reflected to the destination account | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PayoutApi.md b/docs/PayoutApi.md index d4a6996c..49545c88 100644 --- a/docs/PayoutApi.md +++ b/docs/PayoutApi.md @@ -1,23 +1,56 @@ -# xendit.apis.PayoutApi +# PayoutApi + + +You can use the APIs below to interface with Xendit's `PayoutApi`. +To start using the API, you need to configure the secret key and initiate the client instance. + +```python +import time +import xendit +from xendit.apis import PayoutApi + +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') + +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() + +# Create an instance of the API class +api_instance = PayoutApi(api_client) +``` All URIs are relative to *https://api.xendit.co* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_payout**](PayoutApi.md#create_payout) | **POST** /v2/payouts | API to send money at scale to bank accounts & eWallets -[**get_payout_by_id**](PayoutApi.md#get_payout_by_id) | **GET** /v2/payouts/{id} | API to fetch the current status, or details of the payout -[**get_payout_channels**](PayoutApi.md#get_payout_channels) | **GET** /payouts_channels | API providing the current list of banks and e-wallets we support for payouts for both regions -[**get_payouts**](PayoutApi.md#get_payouts) | **GET** /v2/payouts | API to retrieve all matching payouts with reference ID -[**cancel_payout**](PayoutApi.md#cancel_payout) | **POST** /v2/payouts/{id}/cancel | API to cancel requested payouts that have not yet been sent to partner banks and e-wallets. Cancellation is possible if the payout has not been sent out via our partner and when payout status is ACCEPTED. +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**create_payout**](PayoutApi.md#create_payout-function) | **POST** /v2/payouts | API to send money at scale to bank accounts & eWallets | +| [**get_payout_by_id**](PayoutApi.md#get_payout_by_id-function) | **GET** /v2/payouts/{id} | API to fetch the current status, or details of the payout | +| [**get_payout_channels**](PayoutApi.md#get_payout_channels-function) | **GET** /payouts_channels | API providing the current list of banks and e-wallets we support for payouts for both regions | +| [**get_payouts**](PayoutApi.md#get_payouts-function) | **GET** /v2/payouts | API to retrieve all matching payouts with reference ID | +| [**cancel_payout**](PayoutApi.md#cancel_payout-function) | **POST** /v2/payouts/{id}/cancel | API to cancel requested payouts that have not yet been sent to partner banks and e-wallets. Cancellation is possible if the payout has not been sent out via our partner and when payout status is ACCEPTED. | -# **create_payout** +# `create_payout()` Function > GetPayouts200ResponseDataInner create_payout(idempotency_key) API to send money at scale to bank accounts & eWallets -### Example +| Name | Value | +|--------------------|:-------------:| +| Function Name | `create_payout` | +| Request Parameters | [CreatePayoutRequestParams](#request-parameters--CreatePayoutRequestParams) | +| Return Type | [**GetPayouts200ResponseDataInner**](payout/GetPayouts200ResponseDataInner.md) | +### Request Parameters - CreatePayoutRequestParams + +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **idempotency_key** | **str** | ☑️ | | +| **for_user_id** | **str**| | | +| **create_payout_request** | [**CreatePayoutRequest**](payout/CreatePayoutRequest.md)| | | + +### Usage Example +#### Bank or EWallet Payout ```python import time @@ -37,6 +70,19 @@ api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PayoutApi(api_client) idempotency_key = "DISB-1234" # str | A unique key to prevent duplicate requests from pushing through our system. No expiration. +for_user_id = "5f9a3fbd571a1c4068aa40ce" # str | The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. +create_payout_request = { + "reference_id" : "DISB-001", + "currency" : "PHP", + "channel_code" : "PH_BDO", + "channel_properties" : { + "account_holder_name" : "John Doe", + "account_number" : "000000" + }, + "amount" : 90000, + "description" : "Test Bank Payout", + "type" : "DIRECT_DISBURSEMENT" +} # CreatePayoutRequest # example passing only required values which don't have defaults set try: @@ -56,41 +102,25 @@ except xendit.XenditSdkException as e: print("Exception when calling PayoutApi->create_payout: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **idempotency_key** | **str**| A unique key to prevent duplicate requests from pushing through our system. No expiration. | - **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. | [optional] - **create_payout_request** | [**CreatePayoutRequest**](CreatePayoutRequest.md)| | [optional] - -### Return type - -[**GetPayouts200ResponseDataInner**](GetPayouts200ResponseDataInner.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Created payout | - | -**400** | Error when creating payout, see error_code for more details | - | -**401** | Invalid API key | - | -**403** | API key in use does not have necessary permissions to perform the request. Please assign proper permissions for the key. | - | -**409** | Duplicate Error, payout already exists | - | -**0** | Errors | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_payout_by_id** +# `get_payout_by_id()` Function > GetPayouts200ResponseDataInner get_payout_by_id(id) API to fetch the current status, or details of the payout -### Example +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_payout_by_id` | +| Request Parameters | [GetPayoutByIdRequestParams](#request-parameters--GetPayoutByIdRequestParams) | +| Return Type | [**GetPayouts200ResponseDataInner**](payout/GetPayouts200ResponseDataInner.md) | +### Request Parameters - GetPayoutByIdRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | + +### Usage Example ```python import time import xendit @@ -108,6 +138,7 @@ api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PayoutApi(api_client) id = "disb-7baa7335-a0b2-4678-bb8c-318c0167f332" # str | Payout id returned from the response of /v2/payouts +for_user_id = "5f9a3fbd571a1c4068aa40ce" # str | The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. # example passing only required values which don't have defaults set try: @@ -127,39 +158,27 @@ except xendit.XenditSdkException as e: print("Exception when calling PayoutApi->get_payout_by_id: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| Payout id returned from the response of /v2/payouts | - **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. | [optional] - -### Return type - -[**GetPayouts200ResponseDataInner**](GetPayouts200ResponseDataInner.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | The Payout object | - | -**401** | Invalid API key | - | -**403** | API key in use does not have necessary permissions to perform the request. Please assign proper permissions for the key. | - | -**404** | Payout Not Found | - | -**0** | Errors | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_payout_channels** +# `get_payout_channels()` Function > [Channel] get_payout_channels() API providing the current list of banks and e-wallets we support for payouts for both regions -### Example +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_payout_channels` | +| Request Parameters | [GetPayoutChannelsRequestParams](#request-parameters--GetPayoutChannelsRequestParams) | +| Return Type | [**[Channel]**](payout/Channel.md) | + +### Request Parameters - GetPayoutChannelsRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **currency** | **str**| | | +| **channel_category** | [**[ChannelCategory]**](payout/ChannelCategory.md)| | | +| **channel_code** | **str**| | | +| **for_user_id** | **str**| | | +### Usage Example ```python import time import xendit @@ -177,6 +196,12 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PayoutApi(api_client) +currency = "IDR, PHP" # str | Filter channels by currency from ISO-4217 values +channel_category = [ + ChannelCategory("BANK"), + ] # [ChannelCategory] | Filter channels by category +channel_code = "ID_MANDIRI, PH_GCASH" # str | Filter channels by channel code, prefixed by ISO-3166 country code +for_user_id = "5f9a3fbd571a1c4068aa40ce" # str | The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. # example passing only required values which don't have defaults set # and optional values @@ -188,38 +213,28 @@ except xendit.XenditSdkException as e: print("Exception when calling PayoutApi->get_payout_channels: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **currency** | **str**| Filter channels by currency from ISO-4217 values | [optional] - **channel_category** | [**[ChannelCategory]**](ChannelCategory.md)| Filter channels by category | [optional] - **channel_code** | **str**| Filter channels by channel code, prefixed by ISO-3166 country code | [optional] - **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. | [optional] - -### Return type - -[**[Channel]**](Channel.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Current list of banks and e-wallets supported for payouts for all regions | - | -**0** | Errors | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_payouts** +# `get_payouts()` Function > GetPayouts200Response get_payouts(reference_id) API to retrieve all matching payouts with reference ID -### Example +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_payouts` | +| Request Parameters | [GetPayoutsRequestParams](#request-parameters--GetPayoutsRequestParams) | +| Return Type | [**GetPayouts200Response**](payout/GetPayouts200Response.md) | + +### Request Parameters - GetPayoutsRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **reference_id** | **str** | ☑️ | | +| **limit** | **float**| | | +| **after_id** | **str**| | | +| **before_id** | **str**| | | +| **for_user_id** | **str**| | | +### Usage Example ```python import time import xendit @@ -237,6 +252,10 @@ api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PayoutApi(api_client) reference_id = "DISB-123" # str | Reference_id provided when creating the payout +limit = 10 # float | Number of records to fetch per API call +after_id = "disb-7baa7335-a0b2-4678-bb8c-318c0167f332" # str | Used to fetch record after this payout unique id +before_id = "disb-7baa7335-a0b2-4678-bb8c-318c0167f332" # str | Used to fetch record before this payout unique id +for_user_id = "5f9a3fbd571a1c4068aa40ce" # str | The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. # example passing only required values which don't have defaults set try: @@ -256,40 +275,25 @@ except xendit.XenditSdkException as e: print("Exception when calling PayoutApi->get_payouts: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reference_id** | **str**| Reference_id provided when creating the payout | - **limit** | **float**| Number of records to fetch per API call | [optional] - **after_id** | **str**| Used to fetch record after this payout unique id | [optional] - **before_id** | **str**| Used to fetch record before this payout unique id | [optional] - **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. | [optional] - -### Return type - -[**GetPayouts200Response**](GetPayouts200Response.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | An array of Payout objects sorted by created time in desc order. \"data\" will be an empty array and \"has_more' will be equal to false when there are no matching data. | - | -**403** | API key in use does not have necessary permissions to perform the request. Please assign proper permissions for the key. | - | -**0** | Errors | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **cancel_payout** +# `cancel_payout()` Function > GetPayouts200ResponseDataInner cancel_payout(id) API to cancel requested payouts that have not yet been sent to partner banks and e-wallets. Cancellation is possible if the payout has not been sent out via our partner and when payout status is ACCEPTED. -### Example +| Name | Value | +|--------------------|:-------------:| +| Function Name | `cancel_payout` | +| Request Parameters | [CancelPayoutRequestParams](#request-parameters--CancelPayoutRequestParams) | +| Return Type | [**GetPayouts200ResponseDataInner**](payout/GetPayouts200ResponseDataInner.md) | +### Request Parameters - CancelPayoutRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **id** | **str** | ☑️ | | +| **for_user_id** | **str**| | | + +### Usage Example ```python import time import xendit @@ -307,6 +311,7 @@ api_client = xendit.ApiClient() # Create an instance of the API class api_instance = PayoutApi(api_client) id = "disb-7baa7335-a0b2-4678-bb8c-318c0167f332" # str | Payout id returned from the response of /v2/payouts +for_user_id = "5f9a3fbd571a1c4068aa40ce" # str | The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. # example passing only required values which don't have defaults set try: @@ -326,27 +331,4 @@ except xendit.XenditSdkException as e: print("Exception when calling PayoutApi->cancel_payout: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| Payout id returned from the response of /v2/payouts | - **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. | [optional] - -### Return type - -[**GetPayouts200ResponseDataInner**](GetPayouts200ResponseDataInner.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Cancelled Successfully | - | -**400** | Unable to Cancel | - | -**404** | Invalid Payout ID | - | -**0** | Errors | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to README]](../README.md) diff --git a/docs/QRCode.md b/docs/QRCode.md deleted file mode 100644 index 85a0d2e7..00000000 --- a/docs/QRCode.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_request.model.QRCode - -QRCode Payment Method Details - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | [optional] | -| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/QRCodeChannelCode.md b/docs/QRCodeChannelCode.md deleted file mode 100644 index cebcceec..00000000 --- a/docs/QRCodeChannelCode.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_request.model.QRCodeChannelCode - -QR Code Channel Code - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | QR Code Channel Code | must be one of ["DANA", "RCBC", "LINKAJA", "PROMPTPAY", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/QRCodeChannelProperties.md b/docs/QRCodeChannelProperties.md deleted file mode 100644 index 70128573..00000000 --- a/docs/QRCodeChannelProperties.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_request.model.QRCodeChannelProperties - -QR Code Channel Properties - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **qr_string** | **str** | | [optional] | -| **expires_at** | **datetime** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/QRCodeParameters.md b/docs/QRCodeParameters.md deleted file mode 100644 index 6e1cf9d1..00000000 --- a/docs/QRCodeParameters.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.payment_request.model.QRCodeParameters - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | [optional] | -| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/QrCode.md b/docs/QrCode.md deleted file mode 100644 index 1edefa82..00000000 --- a/docs/QrCode.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.invoice.model.QrCode - -An object representing QR code details for invoices. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **qr_code_type** | [**QrCodeType**](QrCodeType.md) | | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/QrCodeType.md b/docs/QrCodeType.md deleted file mode 100644 index aed7db8e..00000000 --- a/docs/QrCodeType.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.QrCodeType - -Representing the available QR Code channels used for invoice-related transactions. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Representing the available QR Code channels used for invoice-related transactions. | must be one of ["QRIS", "PROMPTPAY", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ReceiptNotification.md b/docs/ReceiptNotification.md deleted file mode 100644 index c75edef5..00000000 --- a/docs/ReceiptNotification.md +++ /dev/null @@ -1,15 +0,0 @@ -# xendit.payout.model.ReceiptNotification - -Additional notification for completed payout - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **email_to** | **[str], none_type** | Valid email address to send the payout receipt | [optional] | -| **email_cc** | **[str], none_type** | Valid email address to cc the payout receipt | [optional] | -| **email_bcc** | **[str], none_type** | Valid email address to bcc the payout receipt | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Refund.md b/docs/Refund.md deleted file mode 100644 index 143e8e8c..00000000 --- a/docs/Refund.md +++ /dev/null @@ -1,23 +0,0 @@ -# xendit.refund.model.Refund - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **id** | **str** | | [optional] | -| **payment_request_id** | **str** | | [optional] | -| **amount** | **float** | | [optional] | -| **channel_code** | **str** | | [optional] | -| **country** | **str** | | [optional] | -| **currency** | **str** | | [optional] | -| **reference_id** | **str, none_type** | | [optional] | -| **failure_code** | **str, none_type** | | [optional] | -| **refund_fee_amount** | **float, none_type** | | [optional] | -| **created** | **str** | | [optional] | -| **updated** | **str** | | [optional] | -| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/RefundApi.md b/docs/RefundApi.md index b34d613b..6ee3ccf6 100644 --- a/docs/RefundApi.md +++ b/docs/RefundApi.md @@ -1,23 +1,54 @@ -# xendit.apis.RefundApi +# RefundApi + + +You can use the APIs below to interface with Xendit's `RefundApi`. +To start using the API, you need to configure the secret key and initiate the client instance. + +```python +import time +import xendit +from xendit.apis import RefundApi + +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') + +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() + +# Create an instance of the API class +api_instance = RefundApi(api_client) +``` All URIs are relative to *https://api.xendit.co* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_refund**](RefundApi.md#create_refund) | **POST** /refunds | -[**get_refund**](RefundApi.md#get_refund) | **GET** /refunds/{refundID} | -[**get_all_refunds**](RefundApi.md#get_all_refunds) | **GET** /refunds | -[**cancel_refund**](RefundApi.md#cancel_refund) | **POST** /refunds/{refundID}/cancel | +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**create_refund**](RefundApi.md#create_refund-function) | **POST** /refunds | | +| [**get_refund**](RefundApi.md#get_refund-function) | **GET** /refunds/{refundID} | | +| [**get_all_refunds**](RefundApi.md#get_all_refunds-function) | **GET** /refunds | | +| [**cancel_refund**](RefundApi.md#cancel_refund-function) | **POST** /refunds/{refundID}/cancel | | -# **create_refund** +# `create_refund()` Function > Refund create_refund() -### Example +| Name | Value | +|--------------------|:-------------:| +| Function Name | `create_refund` | +| Request Parameters | [CreateRefundRequestParams](#request-parameters--CreateRefundRequestParams) | +| Return Type | [**Refund**](refund/Refund.md) | +### Request Parameters - CreateRefundRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **idempotency_key** | **str**| | | +| **for_user_id** | **str**| | | +| **create_refund** | [**CreateRefund**](refund/CreateRefund.md)| | | + +### Usage Example ```python import time import xendit @@ -40,6 +71,17 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = RefundApi(api_client) +idempotency_key = "9797b5a6-54ad-4511-80a4-ec451346808b" # str +for_user_id = "5f9a3fbd571a1c4068aa40ce" # str +create_refund = CreateRefund( + payment_request_id="pr-3ece8615-41b7-4983-a3f0-a037430b6036", + invoice_id="7a2c81d4f9e052a870bf37d2", + reference_id="order-1234", + amount=1500, + currency="PHP", + reason="CANCELLATION", + metadata={}, + ) # CreateRefund # example passing only required values which don't have defaults set # and optional values @@ -50,42 +92,26 @@ except xendit.XenditSdkException as e: print("Exception when calling RefundApi->create_refund: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **idempotency_key** | **str**| | [optional] - **for_user_id** | **str**| | [optional] - **create_refund** | [**CreateRefund**](CreateRefund.md)| | [optional] - -### Return type - -[**Refund**](Refund.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**400** | Bad request | - | -**403** | Forbidden due to permissions | - | -**404** | Data not found | - | -**409** | Request causes conflict | - | -**503** | Service is unavailable due to dependencies | - | -**0** | Internal server error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_refund** +# `get_refund()` Function > Refund get_refund(refund_id) -### Example +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_refund` | +| Request Parameters | [GetRefundRequestParams](#request-parameters--GetRefundRequestParams) | +| Return Type | [**Refund**](refund/Refund.md) | + +### Request Parameters - GetRefundRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **refund_id** | **str** | ☑️ | | +| **idempotency_key** | **str**| | | +| **for_user_id** | **str**| | | +### Usage Example ```python import time import xendit @@ -102,7 +128,9 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = RefundApi(api_client) -refund_id = "rfd-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | +refund_id = "rfd-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str +idempotency_key = "9797b5a6-54ad-4511-80a4-ec451346808b" # str +for_user_id = "5f9a3fbd571a1c4068aa40ce" # str # example passing only required values which don't have defaults set try: @@ -120,37 +148,31 @@ except xendit.XenditSdkException as e: print("Exception when calling RefundApi->get_refund: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **refund_id** | **str**| | - **idempotency_key** | **str**| | [optional] - **for_user_id** | **str**| | [optional] - -### Return type - -[**Refund**](Refund.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**0** | Internal server error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_all_refunds** +# `get_all_refunds()` Function > RefundList get_all_refunds() -### Example +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_all_refunds` | +| Request Parameters | [GetAllRefundsRequestParams](#request-parameters--GetAllRefundsRequestParams) | +| Return Type | [**RefundList**](refund/RefundList.md) | + +### Request Parameters - GetAllRefundsRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **for_user_id** | **str**| | | +| **payment_request_id** | **str**| | | +| **invoice_id** | **str**| | | +| **payment_method_type** | **str**| | | +| **channel_code** | **str**| | | +| **limit** | **float**| | | +| **after_id** | **str**| | | +| **before_id** | **str**| | | +### Usage Example ```python import time import xendit @@ -167,6 +189,14 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = RefundApi(api_client) +for_user_id = "5f9a3fbd571a1c4068aa40ce" # str +payment_request_id = "payment_request_id_example" # str +invoice_id = "invoice_id_example" # str +payment_method_type = "payment_method_type_example" # str +channel_code = "channel_code_example" # str +limit = 3.14 # float +after_id = "after_id_example" # str +before_id = "before_id_example" # str # example passing only required values which don't have defaults set # and optional values @@ -177,42 +207,26 @@ except xendit.XenditSdkException as e: print("Exception when calling RefundApi->get_all_refunds: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **for_user_id** | **str**| | [optional] - **payment_request_id** | **str**| | [optional] - **invoice_id** | **str**| | [optional] - **payment_method_type** | **str**| | [optional] - **channel_code** | **str**| | [optional] - **limit** | **float**| | [optional] - **after_id** | **str**| | [optional] - **before_id** | **str**| | [optional] - -### Return type - -[**RefundList**](RefundList.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**0** | Internal server error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **cancel_refund** +# `cancel_refund()` Function > Refund cancel_refund(refund_id) -### Example +| Name | Value | +|--------------------|:-------------:| +| Function Name | `cancel_refund` | +| Request Parameters | [CancelRefundRequestParams](#request-parameters--CancelRefundRequestParams) | +| Return Type | [**Refund**](refund/Refund.md) | +### Request Parameters - CancelRefundRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **refund_id** | **str** | ☑️ | | +| **idempotency_key** | **str**| | | +| **for_user_id** | **str**| | | + +### Usage Example ```python import time import xendit @@ -232,7 +246,9 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = RefundApi(api_client) -refund_id = "rfd-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str | +refund_id = "rfd-1fdaf346-dd2e-4b6c-b938-124c7167a822" # str +idempotency_key = "9797b5a6-54ad-4511-80a4-ec451346808b" # str +for_user_id = "5f9a3fbd571a1c4068aa40ce" # str # example passing only required values which don't have defaults set try: @@ -250,29 +266,4 @@ except xendit.XenditSdkException as e: print("Exception when calling RefundApi->cancel_refund: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **refund_id** | **str**| | - **idempotency_key** | **str**| | [optional] - **for_user_id** | **str**| | [optional] - -### Return type - -[**Refund**](Refund.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**400** | Bad request | - | -**403** | Forbidden due to permissions | - | -**404** | Data not found | - | -**0** | Internal server error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to README]](../README.md) diff --git a/docs/RefundList.md b/docs/RefundList.md deleted file mode 100644 index 040244a6..00000000 --- a/docs/RefundList.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.refund.model.RefundList - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **data** | [**[Refund]**](Refund.md) | | | -| **has_more** | **bool** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ResponseDataNotFound.md b/docs/ResponseDataNotFound.md deleted file mode 100644 index 6d257dde..00000000 --- a/docs/ResponseDataNotFound.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.customer.model.ResponseDataNotFound - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] | -| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/RetailOutlet.md b/docs/RetailOutlet.md deleted file mode 100644 index db303434..00000000 --- a/docs/RetailOutlet.md +++ /dev/null @@ -1,16 +0,0 @@ -# xendit.invoice.model.RetailOutlet - -An object representing retail outlet details for invoices. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **retail_outlet_name** | [**RetailOutletName**](RetailOutletName.md) | | | -| **payment_code** | **str** | The payment code. | [optional] | -| **transfer_amount** | **float** | The transfer amount. | [optional] | -| **merchant_name** | **str** | The name of the merchant. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/RetailOutletName.md b/docs/RetailOutletName.md deleted file mode 100644 index 73b80f46..00000000 --- a/docs/RetailOutletName.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.RetailOutletName - -Representing the available retail outlet channels used for invoice-related transactions. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Representing the available retail outlet channels used for invoice-related transactions. | must be one of ["ALFAMART", "INDOMARET", "7ELEVEN", "CEBUANA", "DP_ECPAY_LOAN", "DP_MLHUILLIER", "DP_PALAWAN", "DP_ECPAY_SCHOOL", "LBC", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ServerError.md b/docs/ServerError.md deleted file mode 100644 index 9721a284..00000000 --- a/docs/ServerError.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.invoice.model.ServerError - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **message** | **str** | | | -| **error_code** | **str** | | defaults to "SERVER_ERROR" | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SimulatePaymentRequest.md b/docs/SimulatePaymentRequest.md deleted file mode 100644 index b8eb5752..00000000 --- a/docs/SimulatePaymentRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# xendit.payment_method.model.SimulatePaymentRequest - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **amount** | **float** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/TokenizedCardInformation.md b/docs/TokenizedCardInformation.md deleted file mode 100644 index 3c1ce69f..00000000 --- a/docs/TokenizedCardInformation.md +++ /dev/null @@ -1,22 +0,0 @@ -# xendit.payment_method.model.TokenizedCardInformation - -Tokenized Card Information - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **token_id** | **str** | | | -| **masked_card_number** | **str** | 1st 6 and last 4 digits of the card | | -| **expiry_month** | **str** | Card expiry month in MM format | | -| **expiry_year** | **str** | Card expiry month in YY format | | -| **fingerprint** | **str** | Xendit-generated identifier for the unique card number. Multiple payment method objects can be created for the same account - e.g. if the user first creates a one-time payment request, and then later on creates a multiple-use payment method using the same account. The fingerprint helps to identify the unique account being used. | | -| **type** | **str** | Whether the card is a credit or debit card | | -| **network** | **str** | Card network - VISA, MASTERCARD, JCB, AMEX, DISCOVER, BCA | | -| **country** | **str** | Country where the card was issued ISO 3166-1 Alpha-2 | | -| **issuer** | **str** | Issuer of the card, most often an issuing bank For example, “BCA”, “MANDIRI” | | -| **cardholder_name** | **str, none_type** | Cardholder name is optional but recommended for 3DS 2 / AVS verification | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/TransactionApi.md b/docs/TransactionApi.md index b7d887e4..3bb3afe2 100644 --- a/docs/TransactionApi.md +++ b/docs/TransactionApi.md @@ -1,23 +1,51 @@ -# xendit.apis.TransactionApi +# TransactionApi + + +You can use the APIs below to interface with Xendit's `TransactionApi`. +To start using the API, you need to configure the secret key and initiate the client instance. + +```python +import time +import xendit +from xendit.apis import TransactionApi + +# See configuration.py for a list of all supported configuration parameters. +xendit.set_api_key('XENDIT API KEY') + +# Enter a context with an instance of the API client +api_client = xendit.ApiClient() + +# Create an instance of the API class +api_instance = TransactionApi(api_client) +``` All URIs are relative to *https://api.xendit.co* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_transaction_by_id**](TransactionApi.md#get_transaction_by_id) | **GET** /transactions/{id} | Get a transaction based on its id -[**get_all_transactions**](TransactionApi.md#get_all_transactions) | **GET** /transactions | Get a list of transactions +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**get_transaction_by_id**](TransactionApi.md#get_transaction_by_id-function) | **GET** /transactions/{id} | Get a transaction based on its id | +| [**get_all_transactions**](TransactionApi.md#get_all_transactions-function) | **GET** /transactions | Get a list of transactions | -# **get_transaction_by_id** +# `get_transaction_by_id()` Function > TransactionResponse get_transaction_by_id(id) Get a transaction based on its id -Get single specific transaction by transaction id. +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_transaction_by_id` | +| Request Parameters | [GetTransactionByIdRequestParams](#request-parameters--GetTransactionByIdRequestParams) | +| Return Type | [**TransactionResponse**](balance_and_transaction/TransactionResponse.md) | -### Example +### Request Parameters - GetTransactionByIdRequestParams +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **id** | **TransactionId** | ☑️ | | +| **for_user_id** | **str**| | | +### Usage Example ```python import time import xendit @@ -35,7 +63,8 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = TransactionApi(api_client) -id = TransactionId("txn_438e4b61-7c4c-4dbb-bbba-94a896bff333") # TransactionId | +id = TransactionId("txn_438e4b61-7c4c-4dbb-bbba-94a896bff333") # TransactionId +for_user_id = "5dbf20d7c8eb0c0896f811b6" # str | The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information # example passing only required values which don't have defaults set try: @@ -55,39 +84,37 @@ except xendit.XenditSdkException as e: print("Exception when calling TransactionApi->get_transaction_by_id: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **TransactionId**| | - **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information | [optional] - -### Return type - -[**TransactionResponse**](TransactionResponse.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**400** | invalid input, object invalid | - | -**0** | Errors | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_all_transactions** +# `get_all_transactions()` Function > TransactionsResponse get_all_transactions() Get a list of transactions -Get a list of all transactions based on filter and search parameters. - -### Example - - +| Name | Value | +|--------------------|:-------------:| +| Function Name | `get_all_transactions` | +| Request Parameters | [GetAllTransactionsRequestParams](#request-parameters--GetAllTransactionsRequestParams) | +| Return Type | [**TransactionsResponse**](balance_and_transaction/TransactionsResponse.md) | + +### Request Parameters - GetAllTransactionsRequestParams + +| Name | Type | Required | Default | +|-------------|:-------------:|:-------------:|-------------| +| **for_user_id** | **str**| | | +| **types** | [**[TransactionTypes]**](balance_and_transaction/TransactionTypes.md)| | | +| **statuses** | [**[TransactionStatuses]**](balance_and_transaction/TransactionStatuses.md)| | | +| **channel_categories** | [**[ChannelsCategories]**](balance_and_transaction/ChannelsCategories.md)| | | +| **reference_id** | **str**| | | +| **product_id** | **str**| | | +| **account_identifier** | **str**| | | +| **amount** | **float**| | | +| **currency** | **Currency**| | | +| **created** | **DateRangeFilter**| | | +| **updated** | **DateRangeFilter**| | | +| **limit** | **float**| | 10 | +| **after_id** | **TransactionId**| | | +| **before_id** | **TransactionId**| | | + +### Usage Example ```python import time import xendit @@ -110,6 +137,32 @@ xendit.set_api_key('XENDIT API KEY') api_client = xendit.ApiClient() # Create an instance of the API class api_instance = TransactionApi(api_client) +for_user_id = "5dbf20d7c8eb0c0896f811b6" # str | The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information +types = [ + TransactionTypes("["DISBURSEMENT","PAYMENT"]"), + ] # [TransactionTypes] | Transaction types that will be included in the result. Default is to include all transaction types +statuses = [ + TransactionStatuses("["SUCCESS","PENDING"]"), + ] # [TransactionStatuses] | Status of the transaction. Default is to include all status. +channel_categories = [ + ChannelsCategories("["BANK","INVOICE"]"), + ] # [ChannelsCategories] | Payment channels in which the transaction is carried out. Default is to include all channels. +reference_id = "ref23232" # str | To filter the result for transactions with matching reference given (case sensitive) +product_id = "d290f1ee-6c54-4b01-90e6-d701748f0701" # str | To filter the result for transactions with matching product_id (a.k.a payment_id) given (case sensitive) +account_identifier = "123123123" # str | Account identifier of transaction. The format will be different from each channel. For example, on `BANK` channel it will be account number and on `CARD` it will be masked card number. +amount = 100 # float | Specific transaction amount to search for +currency = Currency("IDR") # Currency +created = DateRangeFilter( + gte=dateutil_parser('2020-08-29T17:00:00Z'), + lte=dateutil_parser('2020-08-29T17:00:00Z'), + ) # DateRangeFilter | Filter time of transaction by created date. If not specified will list all dates. +updated = DateRangeFilter( + gte=dateutil_parser('2020-08-29T17:00:00Z'), + lte=dateutil_parser('2020-08-29T17:00:00Z'), + ) # DateRangeFilter | Filter time of transaction by updated date. If not specified will list all dates. +limit = 10 # float | number of items in the result per page. Another name for \"results_per_page\" +after_id = TransactionId("txn_438e4b61-7c4c-4dbb-bbba-94a896bff333") # TransactionId +before_id = TransactionId("txn_438e4b61-7c4c-4dbb-bbba-94a896bff333") # TransactionId # example passing only required values which don't have defaults set # and optional values @@ -121,38 +174,4 @@ except xendit.XenditSdkException as e: print("Exception when calling TransactionApi->get_all_transactions: %s\n" % e) ``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information | [optional] - **types** | [**[TransactionTypes]**](TransactionTypes.md)| Transaction types that will be included in the result. Default is to include all transaction types | [optional] - **statuses** | [**[TransactionStatuses]**](TransactionStatuses.md)| Status of the transaction. Default is to include all status. | [optional] - **channel_categories** | [**[ChannelsCategories]**](ChannelsCategories.md)| Payment channels in which the transaction is carried out. Default is to include all channels. | [optional] - **reference_id** | **str**| To filter the result for transactions with matching reference given (case sensitive) | [optional] - **product_id** | **str**| To filter the result for transactions with matching product_id (a.k.a payment_id) given (case sensitive) | [optional] - **account_identifier** | **str**| Account identifier of transaction. The format will be different from each channel. For example, on `BANK` channel it will be account number and on `CARD` it will be masked card number. | [optional] - **amount** | **float**| Specific transaction amount to search for | [optional] - **currency** | **Currency**| | [optional] - **created** | **DateRangeFilter**| Filter time of transaction by created date. If not specified will list all dates. | [optional] - **updated** | **DateRangeFilter**| Filter time of transaction by updated date. If not specified will list all dates. | [optional] - **limit** | **float**| number of items in the result per page. Another name for \"results_per_page\" | [optional] if omitted the server will use the default value of 10 - **after_id** | **TransactionId**| | [optional] - **before_id** | **TransactionId**| | [optional] - -### Return type - -[**TransactionsResponse**](TransactionsResponse.md) - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | List of transaction object | - | -**400** | invalid input, object invalid | - | -**0** | Errors | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to README]](../README.md) diff --git a/docs/TransactionId.md b/docs/TransactionId.md deleted file mode 100644 index 4faa316b..00000000 --- a/docs/TransactionId.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.balance_and_transaction.model.TransactionId - -The unique id of a transaction. It will have `txn_` as prefix - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | The unique id of a transaction. It will have `txn_` as prefix | | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/TransactionResponse.md b/docs/TransactionResponse.md deleted file mode 100644 index 7e534041..00000000 --- a/docs/TransactionResponse.md +++ /dev/null @@ -1,28 +0,0 @@ -# xendit.balance_and_transaction.model.TransactionResponse - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **id** | [**TransactionId**](TransactionId.md) | | | -| **product_id** | **str** | The product_id of the transaction. Product id will have a different prefix for each product. You can use this id to match the transaction from this API to each product API. | | -| **type** | [**TransactionResponseType**](TransactionResponseType.md) | | | -| **status** | [**TransactionStatuses**](TransactionStatuses.md) | | | -| **channel_category** | [**ChannelsCategories**](ChannelsCategories.md) | | | -| **channel_code** | **str, none_type** | The channel of the transaction that is used. See [channel codes](https://docs.xendit.co/xendisburse/channel-codes) for the list of available per channel categories. | | -| **account_identifier** | **str, none_type** | Account identifier of transaction. The format will be different from each channel. | | -| **reference_id** | **str** | customer supplied reference/external_id | | -| **currency** | [**Currency**](Currency.md) | | | -| **amount** | **float** | The transaction amount. The number of decimal places will be different for each currency according to ISO 4217. | | -| **cashflow** | **str** | Representing whether the transaction is money in or money out For transfer, the transfer out side it will shows up as money out and on transfer in side in will shows up as money-in. Available values are `MONEY_IN` for money in and `MONEY_OUT` for money out. | | -| **business_id** | **str** | The id of business where this transaction belong to | | -| **fee** | [**FeeResponse**](FeeResponse.md) | | | -| **created** | **datetime** | Transaction created timestamp (UTC+0) | | -| **updated** | **datetime** | Transaction updated timestamp (UTC+0) | | -| **settlement_status** | **str, none_type** | The settlement status of the transaction. `PENDING` - Transaction amount has not been settled to merchant's balance. `SETTLED` - Transaction has been settled to merchant's balance | [optional] | -| **estimated_settlement_time** | **datetime, none_type** | Estimated settlement time will only apply to money-in transactions. For money-out transaction, the value will be `NULL`. Estimated settlement time in which transaction amount will be settled to merchant's balance. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/TransactionResponseType.md b/docs/TransactionResponseType.md deleted file mode 100644 index 5d6aee7f..00000000 --- a/docs/TransactionResponseType.md +++ /dev/null @@ -1,12 +0,0 @@ -# xendit.balance_and_transaction.model.TransactionResponseType - -The type of the transactions. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/TransactionStatuses.md b/docs/TransactionStatuses.md deleted file mode 100644 index f7289fad..00000000 --- a/docs/TransactionStatuses.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.balance_and_transaction.model.TransactionStatuses - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["SUCCESS", "PENDING", "FAILED", "REVERSED", "VOIDED", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/TransactionTypes.md b/docs/TransactionTypes.md deleted file mode 100644 index a842fd08..00000000 --- a/docs/TransactionTypes.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.balance_and_transaction.model.TransactionTypes - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | | must be one of ["BATCH_DISBURSEMENT", "DISBURSEMENT", "PAYMENT", "REMITTANCE", "REMITTANCE_PAYOUT", "REMITTANCE_COLLECTION", "TRANSFER", "PLATFORM_FEE", "REFUND", "CASHBACK", "TOPUP", "WITHDRAWAL", "OTHER", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/TransactionsResponse.md b/docs/TransactionsResponse.md deleted file mode 100644 index 05ff66b8..00000000 --- a/docs/TransactionsResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# xendit.balance_and_transaction.model.TransactionsResponse - -Returns an array of Transaction Objects. Returns empty array when there is no result. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **has_more** | **bool** | Indicates whether there are more items to be queried with `after_id` of the last item from the current result. Use the `links` to follow to the next result. | | -| **data** | [**[TransactionResponse]**](TransactionResponse.md) | | | -| **links** | [**[LinkItem]**](LinkItem.md) | The links to the next page based on LinkItem if there is next result. | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/UnauthorizedError.md b/docs/UnauthorizedError.md deleted file mode 100644 index 658280d8..00000000 --- a/docs/UnauthorizedError.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.invoice.model.UnauthorizedError - -An error object used to indicate unauthorized access to an invoice-related resource. - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **message** | **str** | A human-readable error message providing additional context about the unauthorized access. | | -| **error_code** | **str** | The specific error code associated with the unauthorized access. | defaults to "INVALID_API_KEY" | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/UpdateCustomer400Response.md b/docs/UpdateCustomer400Response.md deleted file mode 100644 index 91fd3652..00000000 --- a/docs/UpdateCustomer400Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.customer.model.UpdateCustomer400Response - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | | -| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | -| **errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/UpdateCustomer400ResponseAllOf.md b/docs/UpdateCustomer400ResponseAllOf.md deleted file mode 100644 index 7a2bd35e..00000000 --- a/docs/UpdateCustomer400ResponseAllOf.md +++ /dev/null @@ -1,13 +0,0 @@ -# xendit.customer.model.UpdateCustomer400ResponseAllOf - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **error_code** | **str** | | [optional] | -| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ValidationError.md b/docs/ValidationError.md deleted file mode 100644 index ddc98ffc..00000000 --- a/docs/ValidationError.md +++ /dev/null @@ -1,15 +0,0 @@ -# xendit.balance_and_transaction.model.ValidationError - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **status_code** | **float** | | | -| **error** | **str** | | | -| **message** | **str** | | | -| **validation** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/VirtualAccount.md b/docs/VirtualAccount.md deleted file mode 100644 index 2a33e7b9..00000000 --- a/docs/VirtualAccount.md +++ /dev/null @@ -1,20 +0,0 @@ -# xendit.payment_request.model.VirtualAccount - -Virtual Account Payment Method Details - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | | | -| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | | | -| **min_amount** | **float, none_type** | | [optional] | -| **max_amount** | **float, none_type** | | [optional] | -| **amount** | **float, none_type** | | [optional] | -| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | [optional] | -| **alternative_display_types** | **[str]** | Alternative display requested for the virtual account | [optional] | -| **alternative_displays** | [**[VirtualAccountAlternativeDisplay]**](VirtualAccountAlternativeDisplay.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/VirtualAccountAllOf.md b/docs/VirtualAccountAllOf.md deleted file mode 100644 index 54c03b7f..00000000 --- a/docs/VirtualAccountAllOf.md +++ /dev/null @@ -1,12 +0,0 @@ -# xendit.payment_request.model.VirtualAccountAllOf - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **alternative_displays** | [**[VirtualAccountAlternativeDisplay]**](VirtualAccountAlternativeDisplay.md) | | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/VirtualAccountAlternativeDisplay.md b/docs/VirtualAccountAlternativeDisplay.md deleted file mode 100644 index 0ef294e2..00000000 --- a/docs/VirtualAccountAlternativeDisplay.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_request.model.VirtualAccountAlternativeDisplay - -Alternative Display Object - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **type** | **str** | Type of the alternative display | [optional] [readonly] if omitted the server will use the default value of "QR_STRING" | -| **data** | **str** | Data payload of the given alternative display | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/VirtualAccountChannelCode.md b/docs/VirtualAccountChannelCode.md deleted file mode 100644 index a4dd4168..00000000 --- a/docs/VirtualAccountChannelCode.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_request.model.VirtualAccountChannelCode - -Virtual Account Channel Code - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **value** | **str** | Virtual Account Channel Code | must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "UNKNOWN_ENUM_VALUE"] | - -If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/VirtualAccountChannelProperties.md b/docs/VirtualAccountChannelProperties.md deleted file mode 100644 index a8bfa7ae..00000000 --- a/docs/VirtualAccountChannelProperties.md +++ /dev/null @@ -1,16 +0,0 @@ -# xendit.payment_request.model.VirtualAccountChannelProperties - -Virtual Account Channel Properties - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **customer_name** | **str** | Name of customer. | | -| **virtual_account_number** | **str** | You can assign specific Virtual Account number using this parameter. If you do not send one, one will be picked at random. Make sure the number you specify is within your Virtual Account range. | [optional] | -| **expires_at** | **datetime** | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | [optional] | -| **suggested_amount** | **float** | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/VirtualAccountChannelPropertiesPatch.md b/docs/VirtualAccountChannelPropertiesPatch.md deleted file mode 100644 index 850f4505..00000000 --- a/docs/VirtualAccountChannelPropertiesPatch.md +++ /dev/null @@ -1,14 +0,0 @@ -# xendit.payment_method.model.VirtualAccountChannelPropertiesPatch - -Virtual Account Channel Properties - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **expires_at** | **datetime** | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | [optional] | -| **suggested_amount** | **float** | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/VirtualAccountParameters.md b/docs/VirtualAccountParameters.md deleted file mode 100644 index 096a3611..00000000 --- a/docs/VirtualAccountParameters.md +++ /dev/null @@ -1,18 +0,0 @@ -# xendit.payment_request.model.VirtualAccountParameters - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | | | -| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | | | -| **min_amount** | **float, none_type** | | [optional] | -| **max_amount** | **float, none_type** | | [optional] | -| **amount** | **float, none_type** | | [optional] | -| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | [optional] | -| **alternative_display_types** | **[str]** | Alternative display requested for the virtual account | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/VirtualAccountUpdateParameters.md b/docs/VirtualAccountUpdateParameters.md deleted file mode 100644 index efc9a879..00000000 --- a/docs/VirtualAccountUpdateParameters.md +++ /dev/null @@ -1,16 +0,0 @@ -# xendit.payment_method.model.VirtualAccountUpdateParameters - - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **amount** | **float, none_type** | | [optional] | -| **min_amount** | **float, none_type** | | [optional] | -| **max_amount** | **float, none_type** | | [optional] | -| **channel_properties** | [**VirtualAccountChannelPropertiesPatch**](VirtualAccountChannelPropertiesPatch.md) | | [optional] | -| **alternative_display_types** | **[str]** | For payments in Vietnam only, alternative display requested for the virtual account | [optional] | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/balance_and_transaction/Balance.md b/docs/balance_and_transaction/Balance.md new file mode 100644 index 00000000..49ab3161 --- /dev/null +++ b/docs/balance_and_transaction/Balance.md @@ -0,0 +1,14 @@ +# Balance +> xendit.balance_and_transaction.model.Balance + +The balance remaining in your account + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **balance** | **float** | ☑️ | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/balance_and_transaction/ChannelsCategories.md b/docs/balance_and_transaction/ChannelsCategories.md new file mode 100644 index 00000000..aa6c99e9 --- /dev/null +++ b/docs/balance_and_transaction/ChannelsCategories.md @@ -0,0 +1,43 @@ +# ChannelsCategories +> xendit.balance_and_transaction.model.ChannelsCategories + + + +## Enum + + + * `BANK` (value: `"BANK"`) + + * `CARDLESS_CREDIT` (value: `"CARDLESS_CREDIT"`) + + * `PAYLATER` (value: `"PAYLATER"`) + + * `CARDS` (value: `"CARDS"`) + + * `CASH` (value: `"CASH"`) + + * `DIRECT_DEBIT` (value: `"DIRECT_DEBIT"`) + + * `EWALLET` (value: `"EWALLET"`) + + * `INVOICE` (value: `"INVOICE"`) + + * `QR_CODE` (value: `"QR_CODE"`) + + * `RETAIL_OUTLET` (value: `"RETAIL_OUTLET"`) + + * `VIRTUAL_ACCOUNT` (value: `"VIRTUAL_ACCOUNT"`) + + * `XENPLATFORM` (value: `"XENPLATFORM"`) + + * `DIRECT_BANK_TRANSFER` (value: `"DIRECT_BANK_TRANSFER"`) + + * `OTHER` (value: `"OTHER"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/balance_and_transaction/Currency.md b/docs/balance_and_transaction/Currency.md new file mode 100644 index 00000000..529ed5e2 --- /dev/null +++ b/docs/balance_and_transaction/Currency.md @@ -0,0 +1,339 @@ +# Currency +> xendit.balance_and_transaction.model.Currency + + + +## Enum + + + * `IDR` (value: `"IDR"`) + + * `PHP` (value: `"PHP"`) + + * `USD` (value: `"USD"`) + + * `JPY` (value: `"JPY"`) + + * `VND` (value: `"VND"`) + + * `SGD` (value: `"SGD"`) + + * `AED` (value: `"AED"`) + + * `AFN` (value: `"AFN"`) + + * `ALL` (value: `"ALL"`) + + * `AMD` (value: `"AMD"`) + + * `ANG` (value: `"ANG"`) + + * `AOA` (value: `"AOA"`) + + * `ARS` (value: `"ARS"`) + + * `AUD` (value: `"AUD"`) + + * `AWG` (value: `"AWG"`) + + * `AZN` (value: `"AZN"`) + + * `BAM` (value: `"BAM"`) + + * `BBD` (value: `"BBD"`) + + * `BDT` (value: `"BDT"`) + + * `BGN` (value: `"BGN"`) + + * `BHD` (value: `"BHD"`) + + * `BIF` (value: `"BIF"`) + + * `BMD` (value: `"BMD"`) + + * `BND` (value: `"BND"`) + + * `BOB` (value: `"BOB"`) + + * `BRL` (value: `"BRL"`) + + * `BSD` (value: `"BSD"`) + + * `BTN` (value: `"BTN"`) + + * `BWP` (value: `"BWP"`) + + * `BYN` (value: `"BYN"`) + + * `BZD` (value: `"BZD"`) + + * `CAD` (value: `"CAD"`) + + * `CDF` (value: `"CDF"`) + + * `CHF` (value: `"CHF"`) + + * `CLP` (value: `"CLP"`) + + * `CNY` (value: `"CNY"`) + + * `COP` (value: `"COP"`) + + * `CRC` (value: `"CRC"`) + + * `CUC` (value: `"CUC"`) + + * `CUP` (value: `"CUP"`) + + * `CVE` (value: `"CVE"`) + + * `CZK` (value: `"CZK"`) + + * `DJF` (value: `"DJF"`) + + * `DKK` (value: `"DKK"`) + + * `DOP` (value: `"DOP"`) + + * `DZD` (value: `"DZD"`) + + * `EGP` (value: `"EGP"`) + + * `ERN` (value: `"ERN"`) + + * `ETB` (value: `"ETB"`) + + * `EUR` (value: `"EUR"`) + + * `FJD` (value: `"FJD"`) + + * `FKP` (value: `"FKP"`) + + * `GBP` (value: `"GBP"`) + + * `GEL` (value: `"GEL"`) + + * `GGP` (value: `"GGP"`) + + * `GHS` (value: `"GHS"`) + + * `GIP` (value: `"GIP"`) + + * `GMD` (value: `"GMD"`) + + * `GNF` (value: `"GNF"`) + + * `GTQ` (value: `"GTQ"`) + + * `GYD` (value: `"GYD"`) + + * `HKD` (value: `"HKD"`) + + * `HNL` (value: `"HNL"`) + + * `HRK` (value: `"HRK"`) + + * `HTG` (value: `"HTG"`) + + * `HUF` (value: `"HUF"`) + + * `ILS` (value: `"ILS"`) + + * `IMP` (value: `"IMP"`) + + * `INR` (value: `"INR"`) + + * `IQD` (value: `"IQD"`) + + * `IRR` (value: `"IRR"`) + + * `ISK` (value: `"ISK"`) + + * `JEP` (value: `"JEP"`) + + * `JMD` (value: `"JMD"`) + + * `JOD` (value: `"JOD"`) + + * `KES` (value: `"KES"`) + + * `KGS` (value: `"KGS"`) + + * `KHR` (value: `"KHR"`) + + * `KMF` (value: `"KMF"`) + + * `KPW` (value: `"KPW"`) + + * `KRW` (value: `"KRW"`) + + * `KWD` (value: `"KWD"`) + + * `KYD` (value: `"KYD"`) + + * `KZT` (value: `"KZT"`) + + * `LAK` (value: `"LAK"`) + + * `LBP` (value: `"LBP"`) + + * `LKR` (value: `"LKR"`) + + * `LRD` (value: `"LRD"`) + + * `LSL` (value: `"LSL"`) + + * `LYD` (value: `"LYD"`) + + * `MAD` (value: `"MAD"`) + + * `MDL` (value: `"MDL"`) + + * `MGA` (value: `"MGA"`) + + * `MKD` (value: `"MKD"`) + + * `MMK` (value: `"MMK"`) + + * `MNT` (value: `"MNT"`) + + * `MOP` (value: `"MOP"`) + + * `MRU` (value: `"MRU"`) + + * `MUR` (value: `"MUR"`) + + * `MVR` (value: `"MVR"`) + + * `MWK` (value: `"MWK"`) + + * `MXN` (value: `"MXN"`) + + * `MYR` (value: `"MYR"`) + + * `MZN` (value: `"MZN"`) + + * `NAD` (value: `"NAD"`) + + * `NGN` (value: `"NGN"`) + + * `NIO` (value: `"NIO"`) + + * `NOK` (value: `"NOK"`) + + * `NPR` (value: `"NPR"`) + + * `NZD` (value: `"NZD"`) + + * `OMR` (value: `"OMR"`) + + * `PAB` (value: `"PAB"`) + + * `PEN` (value: `"PEN"`) + + * `PGK` (value: `"PGK"`) + + * `PKR` (value: `"PKR"`) + + * `PLN` (value: `"PLN"`) + + * `PYG` (value: `"PYG"`) + + * `QAR` (value: `"QAR"`) + + * `RON` (value: `"RON"`) + + * `RSD` (value: `"RSD"`) + + * `RUB` (value: `"RUB"`) + + * `RWF` (value: `"RWF"`) + + * `SAR` (value: `"SAR"`) + + * `SBD` (value: `"SBD"`) + + * `SCR` (value: `"SCR"`) + + * `SDG` (value: `"SDG"`) + + * `SEK` (value: `"SEK"`) + + * `SHP` (value: `"SHP"`) + + * `SLL` (value: `"SLL"`) + + * `SOS` (value: `"SOS"`) + + * `SPL` (value: `"SPL"`) + + * `SRD` (value: `"SRD"`) + + * `STN` (value: `"STN"`) + + * `SVC` (value: `"SVC"`) + + * `SYP` (value: `"SYP"`) + + * `SZL` (value: `"SZL"`) + + * `THB` (value: `"THB"`) + + * `TJS` (value: `"TJS"`) + + * `TMT` (value: `"TMT"`) + + * `TND` (value: `"TND"`) + + * `TOP` (value: `"TOP"`) + + * `TRY` (value: `"TRY"`) + + * `TTD` (value: `"TTD"`) + + * `TVD` (value: `"TVD"`) + + * `TWD` (value: `"TWD"`) + + * `TZS` (value: `"TZS"`) + + * `UAH` (value: `"UAH"`) + + * `UGX` (value: `"UGX"`) + + * `UYU` (value: `"UYU"`) + + * `UZS` (value: `"UZS"`) + + * `VEF` (value: `"VEF"`) + + * `VUV` (value: `"VUV"`) + + * `WST` (value: `"WST"`) + + * `XAF` (value: `"XAF"`) + + * `XCD` (value: `"XCD"`) + + * `XDR` (value: `"XDR"`) + + * `XOF` (value: `"XOF"`) + + * `XPF` (value: `"XPF"`) + + * `YER` (value: `"YER"`) + + * `ZAR` (value: `"ZAR"`) + + * `ZMW` (value: `"ZMW"`) + + * `ZWD` (value: `"ZWD"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/balance_and_transaction/DateRangeFilter.md b/docs/balance_and_transaction/DateRangeFilter.md new file mode 100644 index 00000000..754703a8 --- /dev/null +++ b/docs/balance_and_transaction/DateRangeFilter.md @@ -0,0 +1,14 @@ +# DateRangeFilter +> xendit.balance_and_transaction.model.DateRangeFilter + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **gte** | **datetime** | | Start time of transaction. If not specified will list all dates. | | +| **lte** | **datetime** | | End time of transaction. If not specified will list all dates. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/balance_and_transaction/FeeResponse.md b/docs/balance_and_transaction/FeeResponse.md new file mode 100644 index 00000000..ab368cd5 --- /dev/null +++ b/docs/balance_and_transaction/FeeResponse.md @@ -0,0 +1,17 @@ +# FeeResponse +> xendit.balance_and_transaction.model.FeeResponse + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **xendit_fee** | **float** | ☑️ | Amount of the Xendit fee for this transaction. | | | +| **value_added_tax** | **float** | ☑️ | Amount of the VAT for this transaction. | | | +| **xendit_withholding_tax** | **float** | | Amount of the Xendit Withholding Tax for this transaction if applicable. See [Tax Documentation](https://docs.xendit.co/fees-and-vat#vat) for more information. | | +| **third_party_withholding_tax** | **float** | | Amount of the 3rd Party Withholding Tax for this transaction if applicable. 3rd party example: Bank | | +| **status** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/balance_and_transaction/LinkItem.md b/docs/balance_and_transaction/LinkItem.md new file mode 100644 index 00000000..a0af3a14 --- /dev/null +++ b/docs/balance_and_transaction/LinkItem.md @@ -0,0 +1,15 @@ +# LinkItem +> xendit.balance_and_transaction.model.LinkItem + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **href** | **str** | ☑️ | URI of target, this will be to the next link. | | | +| **rel** | **str** | ☑️ | The relationship between source and target. The value will be `next`. | | | +| **method** | **str** | ☑️ | The HTTP method, the value will be `GET`. | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/balance_and_transaction/ServerError.md b/docs/balance_and_transaction/ServerError.md new file mode 100644 index 00000000..3ac78936 --- /dev/null +++ b/docs/balance_and_transaction/ServerError.md @@ -0,0 +1,15 @@ +# ServerError +> xendit.balance_and_transaction.model.ServerError + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **status_code** | **float** | ☑️ | | | | +| **error** | **str** | ☑️ | | | | +| **message** | **str** | ☑️ | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/balance_and_transaction/TransactionId.md b/docs/balance_and_transaction/TransactionId.md new file mode 100644 index 00000000..18205d9b --- /dev/null +++ b/docs/balance_and_transaction/TransactionId.md @@ -0,0 +1,14 @@ +# TransactionId +> xendit.balance_and_transaction.model.TransactionId + +The unique id of a transaction. It will have `txn_` as prefix + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **value** | **str** | The unique id of a transaction. It will have `txn_` as prefix | ☑️ | The unique id of a transaction. It will have `txn_` as prefix | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/balance_and_transaction/TransactionResponse.md b/docs/balance_and_transaction/TransactionResponse.md new file mode 100644 index 00000000..617dd498 --- /dev/null +++ b/docs/balance_and_transaction/TransactionResponse.md @@ -0,0 +1,29 @@ +# TransactionResponse +> xendit.balance_and_transaction.model.TransactionResponse + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | [**TransactionId**](TransactionId.md) | ☑️ | | | | +| **product_id** | **str** | ☑️ | The product_id of the transaction. Product id will have a different prefix for each product. You can use this id to match the transaction from this API to each product API. | | | +| **type** | [**TransactionResponseType**](TransactionResponseType.md) | ☑️ | | | | +| **status** | [**TransactionStatuses**](TransactionStatuses.md) | ☑️ | | | | +| **channel_category** | [**ChannelsCategories**](ChannelsCategories.md) | ☑️ | | | | +| **channel_code** | **str, none_type** | ☑️ | The channel of the transaction that is used. See [channel codes](https://docs.xendit.co/xendisburse/channel-codes) for the list of available per channel categories. | | | +| **account_identifier** | **str, none_type** | ☑️ | Account identifier of transaction. The format will be different from each channel. | | | +| **reference_id** | **str** | ☑️ | customer supplied reference/external_id | | | +| **currency** | [**Currency**](Currency.md) | ☑️ | | | | +| **amount** | **float** | ☑️ | The transaction amount. The number of decimal places will be different for each currency according to ISO 4217. | | | +| **cashflow** | **str** | ☑️ | Representing whether the transaction is money in or money out For transfer, the transfer out side it will shows up as money out and on transfer in side in will shows up as money-in. Available values are `MONEY_IN` for money in and `MONEY_OUT` for money out. | | | +| **business_id** | **str** | ☑️ | The id of business where this transaction belong to | | | +| **fee** | [**FeeResponse**](FeeResponse.md) | ☑️ | | | | +| **created** | **datetime** | ☑️ | Transaction created timestamp (UTC+0) | | | +| **updated** | **datetime** | ☑️ | Transaction updated timestamp (UTC+0) | | | +| **settlement_status** | **str, none_type** | | The settlement status of the transaction. `PENDING` - Transaction amount has not been settled to merchant's balance. `SETTLED` - Transaction has been settled to merchant's balance | | +| **estimated_settlement_time** | **datetime, none_type** | | Estimated settlement time will only apply to money-in transactions. For money-out transaction, the value will be `NULL`. Estimated settlement time in which transaction amount will be settled to merchant's balance. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/balance_and_transaction/TransactionResponseType.md b/docs/balance_and_transaction/TransactionResponseType.md new file mode 100644 index 00000000..859aa4e5 --- /dev/null +++ b/docs/balance_and_transaction/TransactionResponseType.md @@ -0,0 +1,13 @@ +# TransactionResponseType +> xendit.balance_and_transaction.model.TransactionResponseType + +The type of the transactions. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| + + +[[Back to README]](../../README.md) + + diff --git a/docs/balance_and_transaction/TransactionStatuses.md b/docs/balance_and_transaction/TransactionStatuses.md new file mode 100644 index 00000000..10de7202 --- /dev/null +++ b/docs/balance_and_transaction/TransactionStatuses.md @@ -0,0 +1,25 @@ +# TransactionStatuses +> xendit.balance_and_transaction.model.TransactionStatuses + + + +## Enum + + + * `SUCCESS` (value: `"SUCCESS"`) + + * `PENDING` (value: `"PENDING"`) + + * `FAILED` (value: `"FAILED"`) + + * `REVERSED` (value: `"REVERSED"`) + + * `VOIDED` (value: `"VOIDED"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/balance_and_transaction/TransactionTypes.md b/docs/balance_and_transaction/TransactionTypes.md new file mode 100644 index 00000000..8df072f5 --- /dev/null +++ b/docs/balance_and_transaction/TransactionTypes.md @@ -0,0 +1,41 @@ +# TransactionTypes +> xendit.balance_and_transaction.model.TransactionTypes + + + +## Enum + + + * `BATCH_DISBURSEMENT` (value: `"BATCH_DISBURSEMENT"`) + + * `DISBURSEMENT` (value: `"DISBURSEMENT"`) + + * `PAYMENT` (value: `"PAYMENT"`) + + * `REMITTANCE` (value: `"REMITTANCE"`) + + * `REMITTANCE_PAYOUT` (value: `"REMITTANCE_PAYOUT"`) + + * `REMITTANCE_COLLECTION` (value: `"REMITTANCE_COLLECTION"`) + + * `TRANSFER` (value: `"TRANSFER"`) + + * `PLATFORM_FEE` (value: `"PLATFORM_FEE"`) + + * `REFUND` (value: `"REFUND"`) + + * `CASHBACK` (value: `"CASHBACK"`) + + * `TOPUP` (value: `"TOPUP"`) + + * `WITHDRAWAL` (value: `"WITHDRAWAL"`) + + * `OTHER` (value: `"OTHER"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/balance_and_transaction/TransactionsResponse.md b/docs/balance_and_transaction/TransactionsResponse.md new file mode 100644 index 00000000..ea336530 --- /dev/null +++ b/docs/balance_and_transaction/TransactionsResponse.md @@ -0,0 +1,16 @@ +# TransactionsResponse +> xendit.balance_and_transaction.model.TransactionsResponse + +Returns an array of Transaction Objects. Returns empty array when there is no result. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **has_more** | **bool** | ☑️ | Indicates whether there are more items to be queried with `after_id` of the last item from the current result. Use the `links` to follow to the next result. | | | +| **data** | [**[TransactionResponse]**](TransactionResponse.md) | ☑️ | | | | +| **links** | [**[LinkItem]**](LinkItem.md) | | The links to the next page based on LinkItem if there is next result. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/balance_and_transaction/ValidationError.md b/docs/balance_and_transaction/ValidationError.md new file mode 100644 index 00000000..ad40912a --- /dev/null +++ b/docs/balance_and_transaction/ValidationError.md @@ -0,0 +1,16 @@ +# ValidationError +> xendit.balance_and_transaction.model.ValidationError + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **status_code** | **float** | ☑️ | | | | +| **error** | **str** | ☑️ | | | | +| **message** | **str** | ☑️ | | | | +| **validation** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/AccountBank.md b/docs/customer/AccountBank.md new file mode 100644 index 00000000..769bb5b7 --- /dev/null +++ b/docs/customer/AccountBank.md @@ -0,0 +1,18 @@ +# AccountBank +> xendit.customer.model.AccountBank + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **account_number** | **str** | | Unique account identifier as per the bank records. | | +| **account_holder_name** | **str, none_type** | | Name of account holder as per the bank records. Needs to match the registered account name exactly. . | | +| **swift_code** | **str, none_type** | | The SWIFT code for international payments | | +| **account_type** | **str, none_type** | | Free text account type, e.g., Savings, Transaction, Virtual Account. | | +| **account_details** | **str, none_type** | | Potentially masked account detail, for display purposes only. | | +| **currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/AccountCard.md b/docs/customer/AccountCard.md new file mode 100644 index 00000000..85b9e06b --- /dev/null +++ b/docs/customer/AccountCard.md @@ -0,0 +1,13 @@ +# AccountCard +> xendit.customer.model.AccountCard + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **token_id** | **str** | | The token id returned in tokenisation | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/AccountEwallet.md b/docs/customer/AccountEwallet.md new file mode 100644 index 00000000..3b9710a6 --- /dev/null +++ b/docs/customer/AccountEwallet.md @@ -0,0 +1,15 @@ +# AccountEwallet +> xendit.customer.model.AccountEwallet + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **account_number** | **str** | | Unique account identifier as per the bank records. | | +| **account_holder_name** | **str, none_type** | | Name of account holder as per the bank records. Needs to match the registered account name exactly. | | +| **currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/AccountOTC.md b/docs/customer/AccountOTC.md new file mode 100644 index 00000000..4399184b --- /dev/null +++ b/docs/customer/AccountOTC.md @@ -0,0 +1,14 @@ +# AccountOTC +> xendit.customer.model.AccountOTC + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **payment_code** | **str** | | Complete fixed payment code (including prefix) | | +| **expires_at** | **str, none_type** | | YYYY-MM-DD string with expiry date for the payment code | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/AccountPayLater.md b/docs/customer/AccountPayLater.md new file mode 100644 index 00000000..913ad31f --- /dev/null +++ b/docs/customer/AccountPayLater.md @@ -0,0 +1,15 @@ +# AccountPayLater +> xendit.customer.model.AccountPayLater + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **account_id** | **str** | | Alphanumeric string identifying this account. Usually an email address or phone number. | | +| **account_holder_name** | **str, none_type** | | Name of account holder as per the cardless credit account. | | +| **currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/AccountQRCode.md b/docs/customer/AccountQRCode.md new file mode 100644 index 00000000..ef95aa2a --- /dev/null +++ b/docs/customer/AccountQRCode.md @@ -0,0 +1,13 @@ +# AccountQRCode +> xendit.customer.model.AccountQRCode + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **qr_string** | **str** | | String representation of the QR Code image | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/Address.md b/docs/customer/Address.md new file mode 100644 index 00000000..712cff63 --- /dev/null +++ b/docs/customer/Address.md @@ -0,0 +1,25 @@ +# Address +> xendit.customer.model.Address + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **category** | **str, none_type** | ☑️ | | | | +| **country** | **bool, date, datetime, dict, float, int, list, str, none_type** | ☑️ | | | | +| **province_state** | **str, none_type** | ☑️ | | | | +| **city** | **str, none_type** | ☑️ | | | | +| **postal_code** | **str, none_type** | ☑️ | | | | +| **street_line1** | **str, none_type** | ☑️ | | | | +| **street_line2** | **str, none_type** | ☑️ | | | | +| **is_primary** | **bool, none_type** | ☑️ | | | | +| **id** | **str** | | | | +| **status** | [**AddressStatus**](AddressStatus.md) | | | | +| **meta** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | | +| **created** | **datetime** | | | | +| **updated** | **datetime** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/AddressRequest.md b/docs/customer/AddressRequest.md new file mode 100644 index 00000000..fc6045c5 --- /dev/null +++ b/docs/customer/AddressRequest.md @@ -0,0 +1,22 @@ +# AddressRequest +> xendit.customer.model.AddressRequest + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **category** | **str** | | Home, work or provincial | | +| **country_code** | [**CountryCode**](CountryCode.md) | | | | +| **province_state** | **str** | | | | +| **city** | **str** | | | | +| **suburb** | **str** | | | | +| **postal_code** | **str** | | | | +| **line_1** | **str** | | | | +| **line_2** | **str** | | | | +| **status** | [**AddressStatus**](AddressStatus.md) | | | | +| **is_primary** | **bool** | | | False | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/AddressStatus.md b/docs/customer/AddressStatus.md new file mode 100644 index 00000000..bcf467c5 --- /dev/null +++ b/docs/customer/AddressStatus.md @@ -0,0 +1,19 @@ +# AddressStatus +> xendit.customer.model.AddressStatus + + + +## Enum + + + * `ACTIVE` (value: `"ACTIVE"`) + + * `DELETED` (value: `"DELETED"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/BusinessDetail.md b/docs/customer/BusinessDetail.md new file mode 100644 index 00000000..ab6bf32e --- /dev/null +++ b/docs/customer/BusinessDetail.md @@ -0,0 +1,17 @@ +# BusinessDetail +> xendit.customer.model.BusinessDetail + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **business_name** | **str** | | | | +| **business_type** | **str, none_type** | | | | +| **date_of_registration** | **str, none_type** | | | | +| **nature_of_business** | **str, none_type** | | | | +| **business_domicile** | [**CountryCode**](CountryCode.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/CountryCode.md b/docs/customer/CountryCode.md new file mode 100644 index 00000000..c5635d68 --- /dev/null +++ b/docs/customer/CountryCode.md @@ -0,0 +1,14 @@ +# CountryCode +> xendit.customer.model.CountryCode + +ISO3166-2 country code + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **value** | **str** | ISO3166-2 country code | ☑️ | ISO3166-2 country code | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/CreateCustomer400Response.md b/docs/customer/CreateCustomer400Response.md new file mode 100644 index 00000000..ab837f7d --- /dev/null +++ b/docs/customer/CreateCustomer400Response.md @@ -0,0 +1,15 @@ +# CreateCustomer400Response +> xendit.customer.model.CreateCustomer400Response + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | ☑️ | | | | +| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | ☑️ | | | | +| **errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/CreateCustomer400ResponseAllOf.md b/docs/customer/CreateCustomer400ResponseAllOf.md new file mode 100644 index 00000000..b3b72a69 --- /dev/null +++ b/docs/customer/CreateCustomer400ResponseAllOf.md @@ -0,0 +1,14 @@ +# CreateCustomer400ResponseAllOf +> xendit.customer.model.CreateCustomer400ResponseAllOf + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | | +| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/Customer.md b/docs/customer/Customer.md new file mode 100644 index 00000000..37a3d1d3 --- /dev/null +++ b/docs/customer/Customer.md @@ -0,0 +1,28 @@ +# Customer +> xendit.customer.model.Customer + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **reference_id** | **str** | ☑️ | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | | | +| **individual_detail** | [**IndividualDetail**](IndividualDetail.md) | ☑️ | | | | +| **business_detail** | [**BusinessDetail**](BusinessDetail.md) | ☑️ | | | | +| **description** | **str, none_type** | ☑️ | | | | +| **email** | **str, none_type** | ☑️ | | | | +| **mobile_number** | **str, none_type** | ☑️ | | | | +| **phone_number** | **str, none_type** | ☑️ | | | | +| **addresses** | [**[Address], none_type**](Address.md) | ☑️ | | | | +| **identity_accounts** | [**[IdentityAccountResponse], none_type**](IdentityAccountResponse.md) | ☑️ | | | | +| **kyc_documents** | [**[KYCDocumentResponse], none_type**](KYCDocumentResponse.md) | ☑️ | | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | ☑️ | | | | +| **id** | **str** | ☑️ | | | | +| **created** | **datetime** | ☑️ | | | | +| **updated** | **datetime** | ☑️ | | | | +| **type** | **str** | ☑️ | | | "INDIVIDUAL" | +| **status** | [**EndCustomerStatus**](EndCustomerStatus.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/CustomerRequest.md b/docs/customer/CustomerRequest.md new file mode 100644 index 00000000..db272b8e --- /dev/null +++ b/docs/customer/CustomerRequest.md @@ -0,0 +1,25 @@ +# CustomerRequest +> xendit.customer.model.CustomerRequest + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **reference_id** | **str** | ☑️ | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | | | +| **client_name** | **str** | | Entity's name for this client | | +| **type** | **str** | | | "INDIVIDUAL" | +| **individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | | | +| **business_detail** | [**BusinessDetail**](BusinessDetail.md) | | | | +| **description** | **str, none_type** | | | | +| **email** | **str** | | | | +| **mobile_number** | **str** | | | | +| **phone_number** | **str** | | | | +| **addresses** | [**[AddressRequest]**](AddressRequest.md) | | | | +| **identity_accounts** | [**[IdentityAccountRequest]**](IdentityAccountRequest.md) | | | | +| **kyc_documents** | [**[KYCDocumentRequest]**](KYCDocumentRequest.md) | | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/EmploymentDetail.md b/docs/customer/EmploymentDetail.md new file mode 100644 index 00000000..7edb71fa --- /dev/null +++ b/docs/customer/EmploymentDetail.md @@ -0,0 +1,15 @@ +# EmploymentDetail +> xendit.customer.model.EmploymentDetail + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **employer_name** | **str, none_type** | | Name of employer | | +| **nature_of_business** | **str, none_type** | | Industry or nature of business | | +| **role_description** | **str, none_type** | | Occupation or title | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/EndCustomerStatus.md b/docs/customer/EndCustomerStatus.md new file mode 100644 index 00000000..301406b2 --- /dev/null +++ b/docs/customer/EndCustomerStatus.md @@ -0,0 +1,25 @@ +# EndCustomerStatus +> xendit.customer.model.EndCustomerStatus + + + +## Enum + + + * `ACTIVE` (value: `"ACTIVE"`) + + * `INACTIVE` (value: `"INACTIVE"`) + + * `PENDING` (value: `"PENDING"`) + + * `BLOCKED` (value: `"BLOCKED"`) + + * `DELETED` (value: `"DELETED"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/Error.md b/docs/customer/Error.md new file mode 100644 index 00000000..795e7531 --- /dev/null +++ b/docs/customer/Error.md @@ -0,0 +1,15 @@ +# Error +> xendit.customer.model.Error + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | ☑️ | | | | +| **message** | **str** | ☑️ | | | | +| **errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/GetCustomerByReferenceID200Response.md b/docs/customer/GetCustomerByReferenceID200Response.md new file mode 100644 index 00000000..fad68475 --- /dev/null +++ b/docs/customer/GetCustomerByReferenceID200Response.md @@ -0,0 +1,14 @@ +# GetCustomerByReferenceID200Response +> xendit.customer.model.GetCustomerByReferenceID200Response + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **has_more** | **bool** | | | | +| **data** | [**[Customer]**](Customer.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/GetCustomerByReferenceID400Response.md b/docs/customer/GetCustomerByReferenceID400Response.md new file mode 100644 index 00000000..4fe417b9 --- /dev/null +++ b/docs/customer/GetCustomerByReferenceID400Response.md @@ -0,0 +1,15 @@ +# GetCustomerByReferenceID400Response +> xendit.customer.model.GetCustomerByReferenceID400Response + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | ☑️ | | | | +| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | ☑️ | | | | +| **errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/GetCustomerByReferenceID400ResponseAllOf.md b/docs/customer/GetCustomerByReferenceID400ResponseAllOf.md new file mode 100644 index 00000000..714f7c83 --- /dev/null +++ b/docs/customer/GetCustomerByReferenceID400ResponseAllOf.md @@ -0,0 +1,14 @@ +# GetCustomerByReferenceID400ResponseAllOf +> xendit.customer.model.GetCustomerByReferenceID400ResponseAllOf + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | | +| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/IdentityAccountRequest.md b/docs/customer/IdentityAccountRequest.md new file mode 100644 index 00000000..54e61efe --- /dev/null +++ b/docs/customer/IdentityAccountRequest.md @@ -0,0 +1,17 @@ +# IdentityAccountRequest +> xendit.customer.model.IdentityAccountRequest + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | [**IdentityAccountType**](IdentityAccountType.md) | | | | +| **company** | **str** | | The issuing institution associated with the account (e.g., OCBC, GOPAY, 7-11). If adding financial accounts that Xendit supports, we recommend you use the channel_name found at https://xendit.github.io/apireference/#payment-channels for this field | | +| **description** | **str** | | Free text description of this account | | +| **country** | [**CountryCode**](CountryCode.md) | | | | +| **properties** | [**IdentityAccountRequestProperties**](IdentityAccountRequestProperties.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/IdentityAccountRequestProperties.md b/docs/customer/IdentityAccountRequestProperties.md new file mode 100644 index 00000000..490b5169 --- /dev/null +++ b/docs/customer/IdentityAccountRequestProperties.md @@ -0,0 +1,23 @@ +# IdentityAccountRequestProperties +> xendit.customer.model.IdentityAccountRequestProperties + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **account_number** | **str** | | Unique account identifier as per the bank records. | | +| **account_holder_name** | **str, none_type** | | Name of account holder as per the cardless credit account. | | +| **swift_code** | **str, none_type** | | The SWIFT code for international payments | | +| **account_type** | **str, none_type** | | Free text account type, e.g., Savings, Transaction, Virtual Account. | | +| **account_details** | **str, none_type** | | Potentially masked account detail, for display purposes only. | | +| **currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | | +| **token_id** | **str** | | The token id returned in tokenisation | | +| **account_id** | **str** | | Alphanumeric string identifying this account. Usually an email address or phone number. | | +| **payment_code** | **str** | | Complete fixed payment code (including prefix) | | +| **expires_at** | **str, none_type** | | YYYY-MM-DD string with expiry date for the payment code | | +| **qr_string** | **str** | | String representation of the QR Code image | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/IdentityAccountResponse.md b/docs/customer/IdentityAccountResponse.md new file mode 100644 index 00000000..6b94f5ca --- /dev/null +++ b/docs/customer/IdentityAccountResponse.md @@ -0,0 +1,21 @@ +# IdentityAccountResponse +> xendit.customer.model.IdentityAccountResponse + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **company** | **str, none_type** | ☑️ | | | | +| **description** | **str, none_type** | ☑️ | | | | +| **country** | [**CountryCode**](CountryCode.md) | ☑️ | | | | +| **type** | **str, none_type** | ☑️ | | | | +| **properties** | [**IdentityAccountResponseProperties**](IdentityAccountResponseProperties.md) | ☑️ | | | | +| **id** | **str** | | | | +| **code** | **str, none_type** | | | | +| **holder_name** | **str, none_type** | | | | +| **created** | **datetime** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/IdentityAccountResponseProperties.md b/docs/customer/IdentityAccountResponseProperties.md new file mode 100644 index 00000000..c3399f03 --- /dev/null +++ b/docs/customer/IdentityAccountResponseProperties.md @@ -0,0 +1,23 @@ +# IdentityAccountResponseProperties +> xendit.customer.model.IdentityAccountResponseProperties + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **account_number** | **str** | | Unique account identifier as per the bank records. | | +| **account_holder_name** | **str, none_type** | | Name of account holder as per the cardless credit account. | | +| **swift_code** | **str, none_type** | | The SWIFT code for international payments | | +| **account_type** | **str, none_type** | | Free text account type, e.g., Savings, Transaction, Virtual Account. | | +| **account_details** | **str, none_type** | | Potentially masked account detail, for display purposes only. | | +| **currency** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | | +| **token_id** | **str** | | The token id returned in tokenisation | | +| **payment_code** | **str** | | Complete fixed payment code (including prefix) | | +| **expires_at** | **str, none_type** | | YYYY-MM-DD string with expiry date for the payment code | | +| **qr_string** | **str** | | String representation of the QR Code image | | +| **account_id** | **str** | | Alphanumeric string identifying this account. Usually an email address or phone number. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/IdentityAccountType.md b/docs/customer/IdentityAccountType.md new file mode 100644 index 00000000..82145b93 --- /dev/null +++ b/docs/customer/IdentityAccountType.md @@ -0,0 +1,27 @@ +# IdentityAccountType +> xendit.customer.model.IdentityAccountType + + + +## Enum + + + * `BANK_ACCOUNT` (value: `"BANK_ACCOUNT"`) + + * `EWALLET` (value: `"EWALLET"`) + + * `CREDIT_CARD` (value: `"CREDIT_CARD"`) + + * `PAY_LATER` (value: `"PAY_LATER"`) + + * `OTC` (value: `"OTC"`) + + * `QR_CODE` (value: `"QR_CODE"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/IndividualDetail.md b/docs/customer/IndividualDetail.md new file mode 100644 index 00000000..acc17634 --- /dev/null +++ b/docs/customer/IndividualDetail.md @@ -0,0 +1,23 @@ +# IndividualDetail +> xendit.customer.model.IndividualDetail + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **given_names** | **str** | | | | +| **given_names_non_roman** | **str, none_type** | | | | +| **middle_name** | **str, none_type** | | | | +| **surname** | **str, none_type** | | | | +| **surname_non_roman** | **str, none_type** | | | | +| **mother_maiden_name** | **str, none_type** | | | | +| **gender** | **str, none_type** | | | | +| **date_of_birth** | **str, none_type** | | | | +| **nationality** | [**CountryCode**](CountryCode.md) | | | | +| **place_of_birth** | **str, none_type** | | | | +| **employment** | [**EmploymentDetail**](EmploymentDetail.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/KYCDocumentRequest.md b/docs/customer/KYCDocumentRequest.md new file mode 100644 index 00000000..905fdd41 --- /dev/null +++ b/docs/customer/KYCDocumentRequest.md @@ -0,0 +1,20 @@ +# KYCDocumentRequest +> xendit.customer.model.KYCDocumentRequest + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **country** | [**CountryCode**](CountryCode.md) | | | | +| **type** | [**KYCDocumentType**](KYCDocumentType.md) | | | | +| **sub_type** | [**KYCDocumentSubType**](KYCDocumentSubType.md) | | | | +| **document_name** | **str** | | | | +| **document_number** | **str** | | | | +| **expires_at** | **str** | | | | +| **holder_name** | **str** | | | | +| **document_images** | **[str]** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/KYCDocumentResponse.md b/docs/customer/KYCDocumentResponse.md new file mode 100644 index 00000000..28a9b57a --- /dev/null +++ b/docs/customer/KYCDocumentResponse.md @@ -0,0 +1,20 @@ +# KYCDocumentResponse +> xendit.customer.model.KYCDocumentResponse + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **country** | **bool, date, datetime, dict, float, int, list, str, none_type** | ☑️ | | | | +| **type** | **bool, date, datetime, dict, float, int, list, str, none_type** | ☑️ | | | | +| **sub_type** | **bool, date, datetime, dict, float, int, list, str, none_type** | ☑️ | | | | +| **document_name** | **str, none_type** | ☑️ | | | | +| **document_number** | **str, none_type** | ☑️ | | | | +| **expires_at** | **str, none_type** | ☑️ | | | | +| **holder_name** | **str, none_type** | ☑️ | | | | +| **document_images** | **[str], none_type** | ☑️ | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/KYCDocumentSubType.md b/docs/customer/KYCDocumentSubType.md new file mode 100644 index 00000000..4200358a --- /dev/null +++ b/docs/customer/KYCDocumentSubType.md @@ -0,0 +1,35 @@ +# KYCDocumentSubType +> xendit.customer.model.KYCDocumentSubType + + + +## Enum + + + * `NATIONAL_ID` (value: `"NATIONAL_ID"`) + + * `CONSULAR_ID` (value: `"CONSULAR_ID"`) + + * `VOTER_ID` (value: `"VOTER_ID"`) + + * `POSTAL_ID` (value: `"POSTAL_ID"`) + + * `RESIDENCE_PERMIT` (value: `"RESIDENCE_PERMIT"`) + + * `TAX_ID` (value: `"TAX_ID"`) + + * `STUDENT_ID` (value: `"STUDENT_ID"`) + + * `MILITARY_ID` (value: `"MILITARY_ID"`) + + * `MEDICAL_ID` (value: `"MEDICAL_ID"`) + + * `OTHERS` (value: `"OTHERS"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/KYCDocumentType.md b/docs/customer/KYCDocumentType.md new file mode 100644 index 00000000..b3d9d004 --- /dev/null +++ b/docs/customer/KYCDocumentType.md @@ -0,0 +1,31 @@ +# KYCDocumentType +> xendit.customer.model.KYCDocumentType + + + +## Enum + + + * `BIRTH_CERTIFICATE` (value: `"BIRTH_CERTIFICATE"`) + + * `BANK_STATEMENT` (value: `"BANK_STATEMENT"`) + + * `DRIVING_LICENSE` (value: `"DRIVING_LICENSE"`) + + * `IDENTITY_CARD` (value: `"IDENTITY_CARD"`) + + * `PASSPORT` (value: `"PASSPORT"`) + + * `VISA` (value: `"VISA"`) + + * `BUSINESS_REGISTRATION` (value: `"BUSINESS_REGISTRATION"`) + + * `BUSINESS_LICENSE` (value: `"BUSINESS_LICENSE"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/PatchCustomer.md b/docs/customer/PatchCustomer.md new file mode 100644 index 00000000..79cc16a3 --- /dev/null +++ b/docs/customer/PatchCustomer.md @@ -0,0 +1,25 @@ +# PatchCustomer +> xendit.customer.model.PatchCustomer + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **client_name** | **str, none_type** | | Entity's name for this client | | +| **reference_id** | **str, none_type** | | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | | +| **individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | | | +| **business_detail** | [**BusinessDetail**](BusinessDetail.md) | | | | +| **description** | **str, none_type** | | | | +| **email** | **str, none_type** | | | | +| **mobile_number** | **str, none_type** | | | | +| **phone_number** | **str, none_type** | | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | | +| **addresses** | [**[AddressRequest], none_type**](AddressRequest.md) | | | | +| **identity_accounts** | [**[IdentityAccountRequest], none_type**](IdentityAccountRequest.md) | | | | +| **kyc_documents** | [**[KYCDocumentRequest], none_type**](KYCDocumentRequest.md) | | | | +| **status** | [**EndCustomerStatus**](EndCustomerStatus.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/ResponseDataNotFound.md b/docs/customer/ResponseDataNotFound.md new file mode 100644 index 00000000..0c3bac18 --- /dev/null +++ b/docs/customer/ResponseDataNotFound.md @@ -0,0 +1,14 @@ +# ResponseDataNotFound +> xendit.customer.model.ResponseDataNotFound + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | | +| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/UpdateCustomer400Response.md b/docs/customer/UpdateCustomer400Response.md new file mode 100644 index 00000000..04bb8570 --- /dev/null +++ b/docs/customer/UpdateCustomer400Response.md @@ -0,0 +1,15 @@ +# UpdateCustomer400Response +> xendit.customer.model.UpdateCustomer400Response + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | ☑️ | | | | +| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | ☑️ | | | | +| **errors** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/customer/UpdateCustomer400ResponseAllOf.md b/docs/customer/UpdateCustomer400ResponseAllOf.md new file mode 100644 index 00000000..a3ceb2e2 --- /dev/null +++ b/docs/customer/UpdateCustomer400ResponseAllOf.md @@ -0,0 +1,14 @@ +# UpdateCustomer400ResponseAllOf +> xendit.customer.model.UpdateCustomer400ResponseAllOf + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | | +| **message** | **bool, date, datetime, dict, float, int, list, str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/AddressObject.md b/docs/invoice/AddressObject.md new file mode 100644 index 00000000..fef36ab0 --- /dev/null +++ b/docs/invoice/AddressObject.md @@ -0,0 +1,20 @@ +# AddressObject +> xendit.invoice.model.AddressObject + +An object representing an address with various properties. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **country** | **str, none_type** | | The country where the address is located. | | +| **street_line1** | **str, none_type** | | The first line of the street address. | | +| **street_line2** | **str, none_type** | | The second line of the street address. | | +| **city** | **str, none_type** | | The city or locality within the address. | | +| **province** | **str, none_type** | | The province or region within the country. | | +| **state** | **str, none_type** | | The state or administrative division within the country. | | +| **postal_code** | **str, none_type** | | The postal code or ZIP code for the address. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/AlternativeDisplayItem.md b/docs/invoice/AlternativeDisplayItem.md new file mode 100644 index 00000000..c42f9cf2 --- /dev/null +++ b/docs/invoice/AlternativeDisplayItem.md @@ -0,0 +1,15 @@ +# AlternativeDisplayItem +> xendit.invoice.model.AlternativeDisplayItem + +An object representing alternative display of a VA. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | **str** | | Represent type of alternative display. | | +| **value** | **str** | | Represent value of alternative display value. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/BadRequestError.md b/docs/invoice/BadRequestError.md new file mode 100644 index 00000000..44859899 --- /dev/null +++ b/docs/invoice/BadRequestError.md @@ -0,0 +1,15 @@ +# BadRequestError +> xendit.invoice.model.BadRequestError + +Response definition for a 400 Bad Request error when creating an invoice. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | ☑️ | The error code indicating the type of error that occurred. | | | +| **message** | **str** | ☑️ | A human-readable error message that provides additional information about the error. | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/Bank.md b/docs/invoice/Bank.md new file mode 100644 index 00000000..00fb20f0 --- /dev/null +++ b/docs/invoice/Bank.md @@ -0,0 +1,20 @@ +# Bank +> xendit.invoice.model.Bank + +An object representing bank details for invoices. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **bank_code** | [**BankCode**](BankCode.md) | ☑️ | | | | +| **collection_type** | **str** | ☑️ | The collection type for the bank details. | | | +| **account_holder_name** | **str** | ☑️ | The name of the account holder. | | | +| **bank_branch** | **str** | | The branch of the bank. | | +| **bank_account_number** | **str** | | The bank account number. | | +| **transfer_amount** | **float** | | The transfer amount. | | +| **alternative_displays** | [**[AlternativeDisplayItem]**](AlternativeDisplayItem.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/BankCode.md b/docs/invoice/BankCode.md new file mode 100644 index 00000000..edd4511a --- /dev/null +++ b/docs/invoice/BankCode.md @@ -0,0 +1,36 @@ +# BankCode +> xendit.invoice.model.BankCode + +Representing the available bank channels used for invoice-related transactions. + + +## Enum + + + * `BCA` (value: `"BCA"`) + + * `BNI` (value: `"BNI"`) + + * `BRI` (value: `"BRI"`) + + * `MANDIRI` (value: `"MANDIRI"`) + + * `PERMATA` (value: `"PERMATA"`) + + * `BSI` (value: `"BSI"`) + + * `BJB` (value: `"BJB"`) + + * `SAHABAT_SAMPOERNA` (value: `"SAHABAT_SAMPOERNA"`) + + * `CIMB` (value: `"CIMB"`) + + * `BNC` (value: `"BNC"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/CreateInvoiceRequest.md b/docs/invoice/CreateInvoiceRequest.md new file mode 100644 index 00000000..c79fc2c9 --- /dev/null +++ b/docs/invoice/CreateInvoiceRequest.md @@ -0,0 +1,33 @@ +# CreateInvoiceRequest +> xendit.invoice.model.CreateInvoiceRequest + +An object representing for an invoice creation request. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **external_id** | **str** | ☑️ | The external ID of the invoice. | | | +| **amount** | **float** | ☑️ | The invoice amount. | | | +| **payer_email** | **str** | | The email address of the payer. | | +| **description** | **str** | | A description of the payment. | | +| **invoice_duration** | **str** | | The duration of the invoice. | | +| **callback_virtual_account_id** | **str** | | The ID of the callback virtual account. | | +| **should_send_email** | **bool** | | Indicates whether email notifications should be sent. | | +| **customer** | [**CustomerObject**](CustomerObject.md) | | | | +| **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | | | +| **success_redirect_url** | **str** | | The URL to redirect to on successful payment. | | +| **failure_redirect_url** | **str** | | The URL to redirect to on payment failure. | | +| **payment_methods** | **[str]** | | An array of available payment methods. | | +| **mid_label** | **str** | | The middle label. | | +| **should_authenticate_credit_card** | **bool** | | Indicates whether credit card authentication is required. | | +| **currency** | **str** | | The currency of the invoice. | | +| **reminder_time** | **float** | | The reminder time. | | +| **local** | **str** | | The local. | | +| **reminder_time_unit** | **str** | | The unit of the reminder time. | | +| **items** | [**[InvoiceItem]**](InvoiceItem.md) | | An array of items included in the invoice. | | +| **fees** | [**[InvoiceFee]**](InvoiceFee.md) | | An array of fees associated with the invoice. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/CustomerObject.md b/docs/invoice/CustomerObject.md new file mode 100644 index 00000000..4a1f70c3 --- /dev/null +++ b/docs/invoice/CustomerObject.md @@ -0,0 +1,21 @@ +# CustomerObject +> xendit.invoice.model.CustomerObject + +An object representing a customer with various properties, including addresses. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **str, none_type** | | The unique identifier for the customer. | | +| **phone_number** | **str, none_type** | | The customer's phone number. | | +| **given_names** | **str, none_type** | | The customer's given names or first names. | | +| **surname** | **str, none_type** | | The customer's surname or last name. | | +| **email** | **str, none_type** | | The customer's email address. | | +| **mobile_number** | **str, none_type** | | The customer's mobile phone number. | | +| **customer_id** | **str, none_type** | | An additional identifier for the customer. | | +| **addresses** | [**[AddressObject], none_type**](AddressObject.md) | | An array of addresses associated with the customer. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/DirectDebit.md b/docs/invoice/DirectDebit.md new file mode 100644 index 00000000..28cc802e --- /dev/null +++ b/docs/invoice/DirectDebit.md @@ -0,0 +1,14 @@ +# DirectDebit +> xendit.invoice.model.DirectDebit + +An object representing direct debit details for invoices. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **direct_debit_type** | [**DirectDebitType**](DirectDebitType.md) | ☑️ | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/DirectDebitType.md b/docs/invoice/DirectDebitType.md new file mode 100644 index 00000000..cdc45dc3 --- /dev/null +++ b/docs/invoice/DirectDebitType.md @@ -0,0 +1,54 @@ +# DirectDebitType +> xendit.invoice.model.DirectDebitType + +Representing the available Direct Debit channels used for invoice-related transactions. + + +## Enum + + + * `BA_BRI` (value: `"BA_BRI"`) + + * `DC_BRI` (value: `"DC_BRI"`) + + * `DD_BRI` (value: `"DD_BRI"`) + + * `DD_MANDIRI` (value: `"DD_MANDIRI"`) + + * `BA_BPI` (value: `"BA_BPI"`) + + * `DC_BPI` (value: `"DC_BPI"`) + + * `DD_BPI` (value: `"DD_BPI"`) + + * `BA_UBP` (value: `"BA_UBP"`) + + * `DC_UBP` (value: `"DC_UBP"`) + + * `DD_UBP` (value: `"DD_UBP"`) + + * `BCA_KLIKPAY` (value: `"BCA_KLIKPAY"`) + + * `BA_BCA_KLIKPAY` (value: `"BA_BCA_KLIKPAY"`) + + * `DC_BCA_KLIKPAY` (value: `"DC_BCA_KLIKPAY"`) + + * `DD_BCA_KLIKPAY` (value: `"DD_BCA_KLIKPAY"`) + + * `DD_BDO_EPAY` (value: `"DD_BDO_EPAY"`) + + * `DD_RCBC` (value: `"DD_RCBC"`) + + * `DD_CHINABANK` (value: `"DD_CHINABANK"`) + + * `BA_CHINABANK` (value: `"BA_CHINABANK"`) + + * `DC_CHINABANK` (value: `"DC_CHINABANK"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/Ewallet.md b/docs/invoice/Ewallet.md new file mode 100644 index 00000000..2bfc0a55 --- /dev/null +++ b/docs/invoice/Ewallet.md @@ -0,0 +1,14 @@ +# Ewallet +> xendit.invoice.model.Ewallet + +An object representing e-wallet details for invoices. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **ewallet_type** | [**EwalletType**](EwalletType.md) | ☑️ | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/EwalletType.md b/docs/invoice/EwalletType.md new file mode 100644 index 00000000..61911095 --- /dev/null +++ b/docs/invoice/EwalletType.md @@ -0,0 +1,36 @@ +# EwalletType +> xendit.invoice.model.EwalletType + +Representing the available eWallet channels used for invoice-related transactions. + + +## Enum + + + * `OVO` (value: `"OVO"`) + + * `DANA` (value: `"DANA"`) + + * `LINKAJA` (value: `"LINKAJA"`) + + * `PAYMAYA` (value: `"PAYMAYA"`) + + * `SHOPEEPAY` (value: `"SHOPEEPAY"`) + + * `GCASH` (value: `"GCASH"`) + + * `GRABPAY` (value: `"GRABPAY"`) + + * `ASTRAPAY` (value: `"ASTRAPAY"`) + + * `NEXCASH` (value: `"NEXCASH"`) + + * `JENIUSPAY` (value: `"JENIUSPAY"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/ForbiddenError.md b/docs/invoice/ForbiddenError.md new file mode 100644 index 00000000..66a6f756 --- /dev/null +++ b/docs/invoice/ForbiddenError.md @@ -0,0 +1,15 @@ +# ForbiddenError +> xendit.invoice.model.ForbiddenError + +An error object used to indicate a 403 Forbidden response related to invoice operations. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **message** | **str** | ☑️ | A human-readable error message providing additional context about the 403 Forbidden response. | | | +| **error_code** | **str** | ☑️ | The specific error code indicating that access to the invoice operation is suspended. | | "ACCESS_SUSPENDED" | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/Invoice.md b/docs/invoice/Invoice.md new file mode 100644 index 00000000..570e6a5c --- /dev/null +++ b/docs/invoice/Invoice.md @@ -0,0 +1,46 @@ +# Invoice +> xendit.invoice.model.Invoice + +An object representing details for an invoice. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **external_id** | **str** | ☑️ | The external identifier for the invoice. | | | +| **user_id** | **str** | ☑️ | The user ID associated with the invoice. | | | +| **status** | [**InvoiceStatus**](InvoiceStatus.md) | ☑️ | | | | +| **merchant_name** | **str** | ☑️ | The name of the merchant. | | | +| **merchant_profile_picture_url** | **str** | ☑️ | The URL of the merchant's profile picture. | | | +| **amount** | **float** | ☑️ | The total amount of the invoice. | | | +| **expiry_date** | **datetime** | ☑️ | Representing a date and time in ISO 8601 format. | | | +| **invoice_url** | **str** | ☑️ | The URL to view the invoice. | | | +| **available_banks** | [**[Bank]**](Bank.md) | ☑️ | An array of available banks for payment. | | | +| **available_retail_outlets** | [**[RetailOutlet]**](RetailOutlet.md) | ☑️ | An array of available retail outlets for payment. | | | +| **available_ewallets** | [**[Ewallet]**](Ewallet.md) | ☑️ | An array of available e-wallets for payment. | | | +| **available_qr_codes** | [**[QrCode]**](QrCode.md) | ☑️ | An array of available QR codes for payment. | | | +| **available_direct_debits** | [**[DirectDebit]**](DirectDebit.md) | ☑️ | An array of available direct debit options for payment. | | | +| **available_paylaters** | [**[Paylater]**](Paylater.md) | ☑️ | An array of available pay-later options for payment. | | | +| **should_send_email** | **bool** | ☑️ | Indicates whether email notifications should be sent. | | | +| **created** | **datetime** | ☑️ | Representing a date and time in ISO 8601 format. | | | +| **updated** | **datetime** | ☑️ | Representing a date and time in ISO 8601 format. | | | +| **id** | **str** | | The unique identifier for the invoice. | | +| **payer_email** | **str** | | The email address of the payer. | | +| **description** | **str** | | A description of the invoice. | | +| **payment_method** | [**InvoicePaymentMethod**](InvoicePaymentMethod.md) | | | | +| **locale** | **str** | | The locale or language used for the invoice. | | +| **should_exclude_credit_card** | **bool** | | Indicates whether credit card payments should be excluded. | | +| **success_redirect_url** | **str** | | The URL to redirect to on successful payment. | | +| **failure_redirect_url** | **str** | | The URL to redirect to on payment failure. | | +| **should_authenticate_credit_card** | **bool** | | Indicates whether credit card authentication is required. | | +| **currency** | [**InvoiceCurrency**](InvoiceCurrency.md) | | | | +| **items** | [**[InvoiceItem]**](InvoiceItem.md) | | An array of items included in the invoice. | | +| **fixed_va** | **bool** | | Indicates whether the virtual account is fixed. | | +| **reminder_date** | **datetime** | | Representing a date and time in ISO 8601 format. | | +| **customer** | [**CustomerObject**](CustomerObject.md) | | | | +| **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | | | +| **fees** | [**[InvoiceFee]**](InvoiceFee.md) | | An array of fees associated with the invoice. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/InvoiceClientType.md b/docs/invoice/InvoiceClientType.md new file mode 100644 index 00000000..247acfcb --- /dev/null +++ b/docs/invoice/InvoiceClientType.md @@ -0,0 +1,28 @@ +# InvoiceClientType +> xendit.invoice.model.InvoiceClientType + +Representing the client type or source of an invoice. + + +## Enum + + + * `DASHBOARD` (value: `"DASHBOARD"`) + + * `API_GATEWAY` (value: `"API_GATEWAY"`) + + * `INTEGRATION` (value: `"INTEGRATION"`) + + * `ON_DEMAND` (value: `"ON_DEMAND"`) + + * `RECURRING` (value: `"RECURRING"`) + + * `MOBILE` (value: `"MOBILE"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/InvoiceCurrency.md b/docs/invoice/InvoiceCurrency.md new file mode 100644 index 00000000..1830dd68 --- /dev/null +++ b/docs/invoice/InvoiceCurrency.md @@ -0,0 +1,26 @@ +# InvoiceCurrency +> xendit.invoice.model.InvoiceCurrency + +Representing the currency used for an invoice. + + +## Enum + + + * `IDR` (value: `"IDR"`) + + * `USD` (value: `"USD"`) + + * `THB` (value: `"THB"`) + + * `VND` (value: `"VND"`) + + * `PHP` (value: `"PHP"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/InvoiceError404ResponseDefinition.md b/docs/invoice/InvoiceError404ResponseDefinition.md new file mode 100644 index 00000000..f2187d41 --- /dev/null +++ b/docs/invoice/InvoiceError404ResponseDefinition.md @@ -0,0 +1,15 @@ +# InvoiceError404ResponseDefinition +> xendit.invoice.model.InvoiceError404ResponseDefinition + +An error object used to indicate that the requested resource, in this case, an invoice, was not found. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **message** | **str** | ☑️ | A human-readable error message providing additional context about the resource not being found. | | | +| **error_code** | **str** | ☑️ | The specific error code indicating that the requested invoice was not found. | | "INVOICE_NOT_FOUND_ERROR" | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/InvoiceFee.md b/docs/invoice/InvoiceFee.md new file mode 100644 index 00000000..4a859b16 --- /dev/null +++ b/docs/invoice/InvoiceFee.md @@ -0,0 +1,15 @@ +# InvoiceFee +> xendit.invoice.model.InvoiceFee + +An object representing internal details for a fee associated with an invoice. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | **str** | ☑️ | The type of fee. | | | +| **value** | **float** | ☑️ | The value or amount of the fee. | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/InvoiceItem.md b/docs/invoice/InvoiceItem.md new file mode 100644 index 00000000..0734b816 --- /dev/null +++ b/docs/invoice/InvoiceItem.md @@ -0,0 +1,19 @@ +# InvoiceItem +> xendit.invoice.model.InvoiceItem + +An object representing an item within an invoice. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **name** | **str** | ☑️ | The name of the item. | | | +| **price** | **float** | ☑️ | The price of the item. | | | +| **quantity** | **float** | ☑️ | The quantity of the item. Must be greater than or equal to 0. | | | +| **reference_id** | **str** | | The reference ID of the item. | | +| **url** | **str** | | The URL associated with the item. | | +| **category** | **str** | | The category of the item. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/InvoiceNotFoundError.md b/docs/invoice/InvoiceNotFoundError.md new file mode 100644 index 00000000..a3b3db8e --- /dev/null +++ b/docs/invoice/InvoiceNotFoundError.md @@ -0,0 +1,15 @@ +# InvoiceNotFoundError +> xendit.invoice.model.InvoiceNotFoundError + +Response definition for a 404 Not Found error when creating an invoice. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | ☑️ | The error code indicating the type of error that occurred. | | | +| **message** | **str** | ☑️ | A human-readable error message that provides additional information about the error. | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/InvoicePaymentMethod.md b/docs/invoice/InvoicePaymentMethod.md new file mode 100644 index 00000000..9b185e5a --- /dev/null +++ b/docs/invoice/InvoicePaymentMethod.md @@ -0,0 +1,36 @@ +# InvoicePaymentMethod +> xendit.invoice.model.InvoicePaymentMethod + +Representing the payment method used for an invoice. + + +## Enum + + + * `POOL` (value: `"POOL"`) + + * `CALLBACK_VIRTUAL_ACCOUNT` (value: `"CALLBACK_VIRTUAL_ACCOUNT"`) + + * `CREDIT_CARD` (value: `"CREDIT_CARD"`) + + * `RETAIL_OUTLET` (value: `"RETAIL_OUTLET"`) + + * `QR_CODE` (value: `"QR_CODE"`) + + * `QRIS` (value: `"QRIS"`) + + * `EWALLET` (value: `"EWALLET"`) + + * `DIRECT_DEBIT` (value: `"DIRECT_DEBIT"`) + + * `BANK_TRANSFER` (value: `"BANK_TRANSFER"`) + + * `PAYLATER` (value: `"PAYLATER"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/InvoiceStatus.md b/docs/invoice/InvoiceStatus.md new file mode 100644 index 00000000..9dcb0c00 --- /dev/null +++ b/docs/invoice/InvoiceStatus.md @@ -0,0 +1,24 @@ +# InvoiceStatus +> xendit.invoice.model.InvoiceStatus + +Representing the status of an invoice. + + +## Enum + + + * `PENDING` (value: `"PENDING"`) + + * `PAID` (value: `"PAID"`) + + * `SETTLED` (value: `"SETTLED"`) + + * `EXPIRED` (value: `"EXPIRED"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/NotificationChannel.md b/docs/invoice/NotificationChannel.md new file mode 100644 index 00000000..4436cd3d --- /dev/null +++ b/docs/invoice/NotificationChannel.md @@ -0,0 +1,24 @@ +# NotificationChannel +> xendit.invoice.model.NotificationChannel + +Representing a notification channel for sending messages. + + +## Enum + + + * `EMAIL` (value: `"email"`) + + * `SMS` (value: `"sms"`) + + * `WHATSAPP` (value: `"whatsapp"`) + + * `VIBER` (value: `"viber"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/NotificationPreference.md b/docs/invoice/NotificationPreference.md new file mode 100644 index 00000000..5a2b3247 --- /dev/null +++ b/docs/invoice/NotificationPreference.md @@ -0,0 +1,17 @@ +# NotificationPreference +> xendit.invoice.model.NotificationPreference + +An object representing notification preferences for different invoice events. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **invoice_created** | [**[NotificationChannel]**](NotificationChannel.md) | | Notification channels for when an invoice is created. | | +| **invoice_reminder** | [**[NotificationChannel]**](NotificationChannel.md) | | Notification channels for invoice reminders. | | +| **invoice_expired** | [**[NotificationChannel]**](NotificationChannel.md) | | Notification channels for expired invoices. | | +| **invoice_paid** | [**[NotificationChannel]**](NotificationChannel.md) | | Notification channels for when an invoice is paid. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/Paylater.md b/docs/invoice/Paylater.md new file mode 100644 index 00000000..36bbf827 --- /dev/null +++ b/docs/invoice/Paylater.md @@ -0,0 +1,15 @@ +# Paylater +> xendit.invoice.model.Paylater + +An object representing paylater details for invoices. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **paylater_type** | [**PaylaterType**](PaylaterType.md) | ☑️ | | | | +| **should_exclude** | **bool** | | Indicates whether this paylater option should be excluded. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/PaylaterType.md b/docs/invoice/PaylaterType.md new file mode 100644 index 00000000..a9189d84 --- /dev/null +++ b/docs/invoice/PaylaterType.md @@ -0,0 +1,28 @@ +# PaylaterType +> xendit.invoice.model.PaylaterType + +Representing the available paylater channels used for invoice-related transactions. + + +## Enum + + + * `KREDIVO` (value: `"KREDIVO"`) + + * `AKULAKU` (value: `"AKULAKU"`) + + * `UANGME` (value: `"UANGME"`) + + * `BILLEASE` (value: `"BILLEASE"`) + + * `CASHALO` (value: `"CASHALO"`) + + * `ATOME` (value: `"ATOME"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/QrCode.md b/docs/invoice/QrCode.md new file mode 100644 index 00000000..dd0a0230 --- /dev/null +++ b/docs/invoice/QrCode.md @@ -0,0 +1,14 @@ +# QrCode +> xendit.invoice.model.QrCode + +An object representing QR code details for invoices. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **qr_code_type** | [**QrCodeType**](QrCodeType.md) | ☑️ | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/QrCodeType.md b/docs/invoice/QrCodeType.md new file mode 100644 index 00000000..e1577774 --- /dev/null +++ b/docs/invoice/QrCodeType.md @@ -0,0 +1,20 @@ +# QrCodeType +> xendit.invoice.model.QrCodeType + +Representing the available QR Code channels used for invoice-related transactions. + + +## Enum + + + * `QRIS` (value: `"QRIS"`) + + * `PROMPTPAY` (value: `"PROMPTPAY"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/RetailOutlet.md b/docs/invoice/RetailOutlet.md new file mode 100644 index 00000000..3001dd75 --- /dev/null +++ b/docs/invoice/RetailOutlet.md @@ -0,0 +1,17 @@ +# RetailOutlet +> xendit.invoice.model.RetailOutlet + +An object representing retail outlet details for invoices. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **retail_outlet_name** | [**RetailOutletName**](RetailOutletName.md) | ☑️ | | | | +| **payment_code** | **str** | | The payment code. | | +| **transfer_amount** | **float** | | The transfer amount. | | +| **merchant_name** | **str** | | The name of the merchant. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/RetailOutletName.md b/docs/invoice/RetailOutletName.md new file mode 100644 index 00000000..acb532a7 --- /dev/null +++ b/docs/invoice/RetailOutletName.md @@ -0,0 +1,34 @@ +# RetailOutletName +> xendit.invoice.model.RetailOutletName + +Representing the available retail outlet channels used for invoice-related transactions. + + +## Enum + + + * `ALFAMART` (value: `"ALFAMART"`) + + * `INDOMARET` (value: `"INDOMARET"`) + + * `7ELEVEN` (value: `"7ELEVEN"`) + + * `CEBUANA` (value: `"CEBUANA"`) + + * `DP_ECPAY_LOAN` (value: `"DP_ECPAY_LOAN"`) + + * `DP_MLHUILLIER` (value: `"DP_MLHUILLIER"`) + + * `DP_PALAWAN` (value: `"DP_PALAWAN"`) + + * `DP_ECPAY_SCHOOL` (value: `"DP_ECPAY_SCHOOL"`) + + * `LBC` (value: `"LBC"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/ServerError.md b/docs/invoice/ServerError.md new file mode 100644 index 00000000..42a17e5e --- /dev/null +++ b/docs/invoice/ServerError.md @@ -0,0 +1,14 @@ +# ServerError +> xendit.invoice.model.ServerError + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **message** | **str** | ☑️ | | | | +| **error_code** | **str** | ☑️ | | | "SERVER_ERROR" | + + +[[Back to README]](../../README.md) + + diff --git a/docs/invoice/UnauthorizedError.md b/docs/invoice/UnauthorizedError.md new file mode 100644 index 00000000..a96dc5d0 --- /dev/null +++ b/docs/invoice/UnauthorizedError.md @@ -0,0 +1,15 @@ +# UnauthorizedError +> xendit.invoice.model.UnauthorizedError + +An error object used to indicate unauthorized access to an invoice-related resource. + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **message** | **str** | ☑️ | A human-readable error message providing additional context about the unauthorized access. | | | +| **error_code** | **str** | ☑️ | The specific error code associated with the unauthorized access. | | "INVALID_API_KEY" | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/BillingInformation.md b/docs/payment_method/BillingInformation.md new file mode 100644 index 00000000..ba774384 --- /dev/null +++ b/docs/payment_method/BillingInformation.md @@ -0,0 +1,19 @@ +# BillingInformation +> xendit.payment_method.model.BillingInformation + +Billing Information + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **country** | **str** | ☑️ | | | | +| **street_line1** | **str, none_type** | | | | +| **street_line2** | **str, none_type** | | | | +| **city** | **str, none_type** | | | | +| **province_state** | **str, none_type** | | | | +| **postal_code** | **str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/Card.md b/docs/payment_method/Card.md new file mode 100644 index 00000000..fef6be29 --- /dev/null +++ b/docs/payment_method/Card.md @@ -0,0 +1,17 @@ +# Card +> xendit.payment_method.model.Card + +Card Payment Method Details + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **currency** | **str, none_type** | ☑️ | | | | +| **channel_properties** | [**CardChannelProperties**](CardChannelProperties.md) | ☑️ | | | | +| **card_information** | [**TokenizedCardInformation**](TokenizedCardInformation.md) | | | | +| **card_verification_results** | [**CardVerificationResults**](CardVerificationResults.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/CardChannelProperties.md b/docs/payment_method/CardChannelProperties.md new file mode 100644 index 00000000..d11b4e93 --- /dev/null +++ b/docs/payment_method/CardChannelProperties.md @@ -0,0 +1,17 @@ +# CardChannelProperties +> xendit.payment_method.model.CardChannelProperties + +Card Channel Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **skip_three_d_secure** | **bool, none_type** | | This field value is only being used for reusability = MULTIPLE_USE. To indicate whether to perform 3DS during the linking phase. Defaults to false. | | +| **success_return_url** | **str, none_type** | | URL where the end-customer is redirected if the authorization is successful | | +| **failure_return_url** | **str, none_type** | | URL where the end-customer is redirected if the authorization failed | | +| **cardonfile_type** | **str, none_type** | | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/CardParameters.md b/docs/payment_method/CardParameters.md new file mode 100644 index 00000000..83350fb9 --- /dev/null +++ b/docs/payment_method/CardParameters.md @@ -0,0 +1,15 @@ +# CardParameters +> xendit.payment_method.model.CardParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **currency** | **str** | ☑️ | | | | +| **channel_properties** | [**CardChannelProperties**](CardChannelProperties.md) | | | | +| **card_information** | [**CardParametersCardInformation**](CardParametersCardInformation.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/CardParametersCardInformation.md b/docs/payment_method/CardParametersCardInformation.md new file mode 100644 index 00000000..cba0c072 --- /dev/null +++ b/docs/payment_method/CardParametersCardInformation.md @@ -0,0 +1,18 @@ +# CardParametersCardInformation +> xendit.payment_method.model.CardParametersCardInformation + +Card Information + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **card_number** | **str** | ☑️ | | | | +| **expiry_month** | **str** | ☑️ | Card expiry month in MM format | | | +| **expiry_year** | **str** | ☑️ | Card expiry month in YY format | | | +| **cardholder_name** | **str, none_type** | | Cardholder name | | +| **cvv** | **str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/CardVerificationResults.md b/docs/payment_method/CardVerificationResults.md new file mode 100644 index 00000000..051c79dd --- /dev/null +++ b/docs/payment_method/CardVerificationResults.md @@ -0,0 +1,15 @@ +# CardVerificationResults +> xendit.payment_method.model.CardVerificationResults + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **three_d_secure** | [**CardVerificationResultsThreeDSecure**](CardVerificationResultsThreeDSecure.md) | ☑️ | | | | +| **cvv_result** | **str, none_type** | | | | +| **address_verification_result** | **str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/CardVerificationResultsThreeDSecure.md b/docs/payment_method/CardVerificationResultsThreeDSecure.md new file mode 100644 index 00000000..fb103c60 --- /dev/null +++ b/docs/payment_method/CardVerificationResultsThreeDSecure.md @@ -0,0 +1,17 @@ +# CardVerificationResultsThreeDSecure +> xendit.payment_method.model.CardVerificationResultsThreeDSecure + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **three_d_secure_flow** | **str, none_type** | | | | +| **eci_code** | **str, none_type** | | | | +| **three_d_secure_result** | **str, none_type** | | | | +| **three_d_secure_result_reason** | **str, none_type** | | | | +| **three_d_secure_version** | **str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/CreatePaymentMethod409Response.md b/docs/payment_method/CreatePaymentMethod409Response.md new file mode 100644 index 00000000..cc5e7bd6 --- /dev/null +++ b/docs/payment_method/CreatePaymentMethod409Response.md @@ -0,0 +1,14 @@ +# CreatePaymentMethod409Response +> xendit.payment_method.model.CreatePaymentMethod409Response + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | | +| **message** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/CreatePaymentMethod503Response.md b/docs/payment_method/CreatePaymentMethod503Response.md new file mode 100644 index 00000000..65603aeb --- /dev/null +++ b/docs/payment_method/CreatePaymentMethod503Response.md @@ -0,0 +1,14 @@ +# CreatePaymentMethod503Response +> xendit.payment_method.model.CreatePaymentMethod503Response + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | | +| **message** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/DirectDebit.md b/docs/payment_method/DirectDebit.md new file mode 100644 index 00000000..61d12ca2 --- /dev/null +++ b/docs/payment_method/DirectDebit.md @@ -0,0 +1,18 @@ +# DirectDebit +> xendit.payment_method.model.DirectDebit + +Direct Debit Payment Method Details + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**DirectDebitChannelCode**](DirectDebitChannelCode.md) | ☑️ | | | | +| **channel_properties** | [**DirectDebitChannelProperties**](DirectDebitChannelProperties.md) | ☑️ | | | | +| **type** | [**DirectDebitType**](DirectDebitType.md) | ☑️ | | | | +| **bank_account** | [**DirectDebitBankAccount**](DirectDebitBankAccount.md) | | | | +| **debit_card** | [**DirectDebitDebitCard**](DirectDebitDebitCard.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/DirectDebitAllOf.md b/docs/payment_method/DirectDebitAllOf.md new file mode 100644 index 00000000..8934c7a5 --- /dev/null +++ b/docs/payment_method/DirectDebitAllOf.md @@ -0,0 +1,15 @@ +# DirectDebitAllOf +> xendit.payment_method.model.DirectDebitAllOf + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | [**DirectDebitType**](DirectDebitType.md) | ☑️ | | | | +| **bank_account** | [**DirectDebitBankAccount**](DirectDebitBankAccount.md) | | | | +| **debit_card** | [**DirectDebitDebitCard**](DirectDebitDebitCard.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/DirectDebitBankAccount.md b/docs/payment_method/DirectDebitBankAccount.md new file mode 100644 index 00000000..5e8c1a6f --- /dev/null +++ b/docs/payment_method/DirectDebitBankAccount.md @@ -0,0 +1,16 @@ +# DirectDebitBankAccount +> xendit.payment_method.model.DirectDebitBankAccount + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **masked_bank_account_number** | **str, none_type** | | | | +| **bank_account_hash** | **str, none_type** | | | | +| **mobile_number** | **str, none_type** | | Mobile number of the customer registered to the partner channel | | +| **identity_document_number** | **str, none_type** | | Identity number of the customer registered to the partner channel | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/DirectDebitChannelCode.md b/docs/payment_method/DirectDebitChannelCode.md new file mode 100644 index 00000000..de6e97ad --- /dev/null +++ b/docs/payment_method/DirectDebitChannelCode.md @@ -0,0 +1,142 @@ +# DirectDebitChannelCode +> xendit.payment_method.model.DirectDebitChannelCode + +Direct Debit Channel Code + + +## Enum + + + * `BCA_KLIKPAY` (value: `"BCA_KLIKPAY"`) + + * `BCA_ONEKLIK` (value: `"BCA_ONEKLIK"`) + + * `BDO` (value: `"BDO"`) + + * `BPI` (value: `"BPI"`) + + * `BRI` (value: `"BRI"`) + + * `BNI` (value: `"BNI"`) + + * `CHINABANK` (value: `"CHINABANK"`) + + * `CIMBNIAGA` (value: `"CIMBNIAGA"`) + + * `MTB` (value: `"MTB"`) + + * `RCBC` (value: `"RCBC"`) + + * `UBP` (value: `"UBP"`) + + * `MANDIRI` (value: `"MANDIRI"`) + + * `BBL` (value: `"BBL"`) + + * `SCB` (value: `"SCB"`) + + * `KTB` (value: `"KTB"`) + + * `BAY` (value: `"BAY"`) + + * `KBANK_MB` (value: `"KBANK_MB"`) + + * `BAY_MB` (value: `"BAY_MB"`) + + * `KTB_MB` (value: `"KTB_MB"`) + + * `BBL_MB` (value: `"BBL_MB"`) + + * `SCB_MB` (value: `"SCB_MB"`) + + * `BDO_EPAY` (value: `"BDO_EPAY"`) + + * `AUTODEBIT_UBP` (value: `"AUTODEBIT_UBP"`) + + * `AFFIN_FPX` (value: `"AFFIN_FPX"`) + + * `AGRO_FPX` (value: `"AGRO_FPX"`) + + * `ALLIANCE_FPX` (value: `"ALLIANCE_FPX"`) + + * `AMBANK_FPX` (value: `"AMBANK_FPX"`) + + * `ISLAM_FPX` (value: `"ISLAM_FPX"`) + + * `MUAMALAT_FPX` (value: `"MUAMALAT_FPX"`) + + * `BOC_FPX` (value: `"BOC_FPX"`) + + * `RAKYAT_FPX` (value: `"RAKYAT_FPX"`) + + * `BSN_FPX` (value: `"BSN_FPX"`) + + * `CIMB_FPX` (value: `"CIMB_FPX"`) + + * `HLB_FPX` (value: `"HLB_FPX"`) + + * `HSBC_FPX` (value: `"HSBC_FPX"`) + + * `KFH_FPX` (value: `"KFH_FPX"`) + + * `MAYB2E_FPX` (value: `"MAYB2E_FPX"`) + + * `MAYB2U_FPX` (value: `"MAYB2U_FPX"`) + + * `OCBC_FPX` (value: `"OCBC_FPX"`) + + * `PUBLIC_FPX` (value: `"PUBLIC_FPX"`) + + * `RHB_FPX` (value: `"RHB_FPX"`) + + * `SCH_FPX` (value: `"SCH_FPX"`) + + * `UOB_FPX` (value: `"UOB_FPX"`) + + * `AFFIN_FPX_BUSINESS` (value: `"AFFIN_FPX_BUSINESS"`) + + * `AGRO_FPX_BUSINESS` (value: `"AGRO_FPX_BUSINESS"`) + + * `ALLIANCE_FPX_BUSINESS` (value: `"ALLIANCE_FPX_BUSINESS"`) + + * `AMBANK_FPX_BUSINESS` (value: `"AMBANK_FPX_BUSINESS"`) + + * `ISLAM_FPX_BUSINESS` (value: `"ISLAM_FPX_BUSINESS"`) + + * `MUAMALAT_FPX_BUSINESS` (value: `"MUAMALAT_FPX_BUSINESS"`) + + * `BNP_FPX_BUSINESS` (value: `"BNP_FPX_BUSINESS"`) + + * `CIMB_FPX_BUSINESS` (value: `"CIMB_FPX_BUSINESS"`) + + * `CITIBANK_FPX_BUSINESS` (value: `"CITIBANK_FPX_BUSINESS"`) + + * `DEUTSCHE_FPX_BUSINESS` (value: `"DEUTSCHE_FPX_BUSINESS"`) + + * `HLB_FPX_BUSINESS` (value: `"HLB_FPX_BUSINESS"`) + + * `HSBC_FPX_BUSINESS` (value: `"HSBC_FPX_BUSINESS"`) + + * `RAKYAT_FPX_BUSINESS` (value: `"RAKYAT_FPX_BUSINESS"`) + + * `KFH_FPX_BUSINESS` (value: `"KFH_FPX_BUSINESS"`) + + * `MAYB2E_FPX_BUSINESS` (value: `"MAYB2E_FPX_BUSINESS"`) + + * `OCBC_FPX_BUSINESS` (value: `"OCBC_FPX_BUSINESS"`) + + * `PUBLIC_FPX_BUSINESS` (value: `"PUBLIC_FPX_BUSINESS"`) + + * `RHB_FPX_BUSINESS` (value: `"RHB_FPX_BUSINESS"`) + + * `SCH_FPX_BUSINESS` (value: `"SCH_FPX_BUSINESS"`) + + * `UOB_FPX_BUSINESS` (value: `"UOB_FPX_BUSINESS"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/DirectDebitChannelProperties.md b/docs/payment_method/DirectDebitChannelProperties.md new file mode 100644 index 00000000..055cd7de --- /dev/null +++ b/docs/payment_method/DirectDebitChannelProperties.md @@ -0,0 +1,22 @@ +# DirectDebitChannelProperties +> xendit.payment_method.model.DirectDebitChannelProperties + +Direct Debit Channel Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **success_return_url** | **str** | | | | +| **failure_return_url** | **str, none_type** | | | | +| **mobile_number** | **str, none_type** | | Mobile number of the customer registered to the partner channel | | +| **card_last_four** | **str, none_type** | | Last four digits of the debit card | | +| **card_expiry** | **str, none_type** | | Expiry month and year of the debit card (in MM/YY format) | | +| **email** | **str, none_type** | | Email address of the customer that is registered to the partner channel | | +| **identity_document_number** | **str, none_type** | | Identity number of the customer registered to the partner channel | | +| **require_auth** | **bool, none_type** | | | | +| **account_number** | **str, none_type** | | Account number of the customer | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/DirectDebitDebitCard.md b/docs/payment_method/DirectDebitDebitCard.md new file mode 100644 index 00000000..05ff33dc --- /dev/null +++ b/docs/payment_method/DirectDebitDebitCard.md @@ -0,0 +1,17 @@ +# DirectDebitDebitCard +> xendit.payment_method.model.DirectDebitDebitCard + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **mobile_number** | **str, none_type** | | Mobile number of the customer registered to the partner channel | | +| **card_last_four** | **str, none_type** | | Last four digits of the debit card | | +| **card_expiry** | **str, none_type** | | Expiry month and year of the debit card (in MM/YY format) | | +| **email** | **str, none_type** | | Email address of the customer that is registered to the partner channel | | +| **account_number** | **str, none_type** | | Account number of the customer | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/DirectDebitParameters.md b/docs/payment_method/DirectDebitParameters.md new file mode 100644 index 00000000..30cdae37 --- /dev/null +++ b/docs/payment_method/DirectDebitParameters.md @@ -0,0 +1,14 @@ +# DirectDebitParameters +> xendit.payment_method.model.DirectDebitParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**DirectDebitChannelCode**](DirectDebitChannelCode.md) | ☑️ | | | | +| **channel_properties** | [**DirectDebitChannelProperties**](DirectDebitChannelProperties.md) | ☑️ | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/DirectDebitType.md b/docs/payment_method/DirectDebitType.md new file mode 100644 index 00000000..c7bb6cec --- /dev/null +++ b/docs/payment_method/DirectDebitType.md @@ -0,0 +1,21 @@ +# DirectDebitType +> xendit.payment_method.model.DirectDebitType + + + +## Enum + + + * `DEBIT_CARD` (value: `"DEBIT_CARD"`) + + * `BANK_ACCOUNT` (value: `"BANK_ACCOUNT"`) + + * `BANK_REDIRECT` (value: `"BANK_REDIRECT"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/EWallet.md b/docs/payment_method/EWallet.md new file mode 100644 index 00000000..b1d25ca2 --- /dev/null +++ b/docs/payment_method/EWallet.md @@ -0,0 +1,16 @@ +# EWallet +> xendit.payment_method.model.EWallet + +Ewallet Payment Method Details + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | ☑️ | | | | +| **channel_properties** | [**EWalletChannelProperties**](EWalletChannelProperties.md) | | | | +| **account** | [**EWalletAccount**](EWalletAccount.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/EWalletAccount.md b/docs/payment_method/EWalletAccount.md new file mode 100644 index 00000000..11bb28a3 --- /dev/null +++ b/docs/payment_method/EWalletAccount.md @@ -0,0 +1,17 @@ +# EWalletAccount +> xendit.payment_method.model.EWalletAccount + +EWallet Account Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **name** | **str, none_type** | | Name of the eWallet account holder. The value is null if unavailableName of the eWallet account holder. The value is null if unavailable | | +| **account_details** | **str, none_type** | | Identifier from eWallet provider e.g. phone number. The value is null if unavailable | | +| **balance** | **float, none_type** | | The main balance amount on eWallet account provided from eWallet provider. The value is null if unavailable | | +| **point_balance** | **float, none_type** | | The point balance amount on eWallet account. Applicable only on some eWallet provider that has point system. The value is null if unavailabl | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/EWalletChannelCode.md b/docs/payment_method/EWalletChannelCode.md new file mode 100644 index 00000000..81d2ec48 --- /dev/null +++ b/docs/payment_method/EWalletChannelCode.md @@ -0,0 +1,58 @@ +# EWalletChannelCode +> xendit.payment_method.model.EWalletChannelCode + +EWallet Channel Code + + +## Enum + + + * `GCASH` (value: `"GCASH"`) + + * `GRABPAY` (value: `"GRABPAY"`) + + * `PAYMAYA` (value: `"PAYMAYA"`) + + * `OVO` (value: `"OVO"`) + + * `DANA` (value: `"DANA"`) + + * `LINKAJA` (value: `"LINKAJA"`) + + * `SHOPEEPAY` (value: `"SHOPEEPAY"`) + + * `SAKUKU` (value: `"SAKUKU"`) + + * `NEXCASH` (value: `"NEXCASH"`) + + * `ASTRAPAY` (value: `"ASTRAPAY"`) + + * `JENIUSPAY` (value: `"JENIUSPAY"`) + + * `APPOTA` (value: `"APPOTA"`) + + * `MOMO` (value: `"MOMO"`) + + * `VNPTWALLET` (value: `"VNPTWALLET"`) + + * `VIETTELPAY` (value: `"VIETTELPAY"`) + + * `ZALOPAY` (value: `"ZALOPAY"`) + + * `WECHATPAY` (value: `"WECHATPAY"`) + + * `LINEPAY` (value: `"LINEPAY"`) + + * `TRUEMONEY` (value: `"TRUEMONEY"`) + + * `ALIPAY` (value: `"ALIPAY"`) + + * `TOUCHANDGO` (value: `"TOUCHANDGO"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/EWalletChannelProperties.md b/docs/payment_method/EWalletChannelProperties.md new file mode 100644 index 00000000..6d9a9a15 --- /dev/null +++ b/docs/payment_method/EWalletChannelProperties.md @@ -0,0 +1,19 @@ +# EWalletChannelProperties +> xendit.payment_method.model.EWalletChannelProperties + +EWallet Channel Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **success_return_url** | **str** | | URL where the end-customer is redirected if the authorization is successful | | +| **failure_return_url** | **str** | | URL where the end-customer is redirected if the authorization failed | | +| **cancel_return_url** | **str** | | URL where the end-customer is redirected if the authorization cancelled | | +| **mobile_number** | **str** | | Mobile number of customer in E.164 format (e.g. +628123123123). For OVO one time payment use only. | | +| **redeem_points** | **str** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | | +| **cashtag** | **str** | | Available for JENIUSPAY only | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/EWalletParameters.md b/docs/payment_method/EWalletParameters.md new file mode 100644 index 00000000..5932ab30 --- /dev/null +++ b/docs/payment_method/EWalletParameters.md @@ -0,0 +1,15 @@ +# EWalletParameters +> xendit.payment_method.model.EWalletParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | ☑️ | | | | +| **channel_properties** | [**EWalletChannelProperties**](EWalletChannelProperties.md) | | | | +| **account** | [**EWalletAccount**](EWalletAccount.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/GetAllPaymentMethods400Response.md b/docs/payment_method/GetAllPaymentMethods400Response.md new file mode 100644 index 00000000..0c4c3be5 --- /dev/null +++ b/docs/payment_method/GetAllPaymentMethods400Response.md @@ -0,0 +1,14 @@ +# GetAllPaymentMethods400Response +> xendit.payment_method.model.GetAllPaymentMethods400Response + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | | +| **message** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/GetAllPaymentMethods403Response.md b/docs/payment_method/GetAllPaymentMethods403Response.md new file mode 100644 index 00000000..f6b6d4a1 --- /dev/null +++ b/docs/payment_method/GetAllPaymentMethods403Response.md @@ -0,0 +1,14 @@ +# GetAllPaymentMethods403Response +> xendit.payment_method.model.GetAllPaymentMethods403Response + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | | +| **message** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/GetAllPaymentMethods404Response.md b/docs/payment_method/GetAllPaymentMethods404Response.md new file mode 100644 index 00000000..67dba671 --- /dev/null +++ b/docs/payment_method/GetAllPaymentMethods404Response.md @@ -0,0 +1,14 @@ +# GetAllPaymentMethods404Response +> xendit.payment_method.model.GetAllPaymentMethods404Response + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | "DATA_NOT_FOUND" | +| **message** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/GetAllPaymentMethodsDefaultResponse.md b/docs/payment_method/GetAllPaymentMethodsDefaultResponse.md new file mode 100644 index 00000000..d8bf567c --- /dev/null +++ b/docs/payment_method/GetAllPaymentMethodsDefaultResponse.md @@ -0,0 +1,14 @@ +# GetAllPaymentMethodsDefaultResponse +> xendit.payment_method.model.GetAllPaymentMethodsDefaultResponse + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | | +| **message** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/OverTheCounter.md b/docs/payment_method/OverTheCounter.md new file mode 100644 index 00000000..11db4bc1 --- /dev/null +++ b/docs/payment_method/OverTheCounter.md @@ -0,0 +1,17 @@ +# OverTheCounter +> xendit.payment_method.model.OverTheCounter + +Over The Counter Payment Method Details + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | ☑️ | | | | +| **channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | ☑️ | | | | +| **amount** | **float, none_type** | | | | +| **currency** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/OverTheCounterChannelCode.md b/docs/payment_method/OverTheCounterChannelCode.md new file mode 100644 index 00000000..2db666da --- /dev/null +++ b/docs/payment_method/OverTheCounterChannelCode.md @@ -0,0 +1,48 @@ +# OverTheCounterChannelCode +> xendit.payment_method.model.OverTheCounterChannelCode + +Over The Counter Channel Code + + +## Enum + + + * `7ELEVEN` (value: `"7ELEVEN"`) + + * `7ELEVEN_CLIQQ` (value: `"7ELEVEN_CLIQQ"`) + + * `CEBUANA` (value: `"CEBUANA"`) + + * `ECPAY` (value: `"ECPAY"`) + + * `PALAWAN` (value: `"PALAWAN"`) + + * `MLHUILLIER` (value: `"MLHUILLIER"`) + + * `ECPAY_DRAGONLOAN` (value: `"ECPAY_DRAGONLOAN"`) + + * `LBC` (value: `"LBC"`) + + * `ECPAY_SCHOOL` (value: `"ECPAY_SCHOOL"`) + + * `RD_PAWNSHOP` (value: `"RD_PAWNSHOP"`) + + * `CVM` (value: `"CVM"`) + + * `USSC` (value: `"USSC"`) + + * `SM_BILLS` (value: `"SM_BILLS"`) + + * `ROBINSONS_BILLS` (value: `"ROBINSONS_BILLS"`) + + * `ALFAMART` (value: `"ALFAMART"`) + + * `INDOMARET` (value: `"INDOMARET"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/OverTheCounterChannelProperties.md b/docs/payment_method/OverTheCounterChannelProperties.md new file mode 100644 index 00000000..eaeb65d1 --- /dev/null +++ b/docs/payment_method/OverTheCounterChannelProperties.md @@ -0,0 +1,16 @@ +# OverTheCounterChannelProperties +> xendit.payment_method.model.OverTheCounterChannelProperties + +Over The Counter Channel Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **customer_name** | **str** | ☑️ | Name of customer. | | | +| **payment_code** | **str** | | The payment code that you want to assign, e.g 12345. If you do not send one, one will be picked at random. | | +| **expires_at** | **datetime** | | The time when the payment code will be expired. The minimum is 2 hours and the maximum is 9 days for 7ELEVEN. Default expired date will be 2 days from payment code generated. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/OverTheCounterChannelPropertiesUpdate.md b/docs/payment_method/OverTheCounterChannelPropertiesUpdate.md new file mode 100644 index 00000000..3cb4bdfc --- /dev/null +++ b/docs/payment_method/OverTheCounterChannelPropertiesUpdate.md @@ -0,0 +1,15 @@ +# OverTheCounterChannelPropertiesUpdate +> xendit.payment_method.model.OverTheCounterChannelPropertiesUpdate + +Over The Counter Channel properties that can be updated + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **customer_name** | **str** | | Name of customer. | | +| **expires_at** | **datetime** | | The time when the payment code will be expired. The minimum is 2 hours and the maximum is 9 days for 7ELEVEN. Default expired date will be 2 days from payment code generated. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/OverTheCounterParameters.md b/docs/payment_method/OverTheCounterParameters.md new file mode 100644 index 00000000..b6e67584 --- /dev/null +++ b/docs/payment_method/OverTheCounterParameters.md @@ -0,0 +1,16 @@ +# OverTheCounterParameters +> xendit.payment_method.model.OverTheCounterParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | ☑️ | | | | +| **channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | ☑️ | | | | +| **amount** | **float, none_type** | | | | +| **currency** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/OverTheCounterUpdateParameters.md b/docs/payment_method/OverTheCounterUpdateParameters.md new file mode 100644 index 00000000..b9d20cd4 --- /dev/null +++ b/docs/payment_method/OverTheCounterUpdateParameters.md @@ -0,0 +1,14 @@ +# OverTheCounterUpdateParameters +> xendit.payment_method.model.OverTheCounterUpdateParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **amount** | **float, none_type** | | | | +| **channel_properties** | [**OverTheCounterChannelPropertiesUpdate**](OverTheCounterChannelPropertiesUpdate.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/PaymentMethod.md b/docs/payment_method/PaymentMethod.md new file mode 100644 index 00000000..00c36aff --- /dev/null +++ b/docs/payment_method/PaymentMethod.md @@ -0,0 +1,34 @@ +# PaymentMethod +> xendit.payment_method.model.PaymentMethod + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **str** | ☑️ | | | | +| **business_id** | **str** | | | | +| **type** | [**PaymentMethodType**](PaymentMethodType.md) | | | | +| **country** | [**PaymentMethodCountry**](PaymentMethodCountry.md) | | | | +| **customer_id** | **str, none_type** | | | | +| **customer** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | | +| **reference_id** | **str** | | | | +| **description** | **str, none_type** | | | | +| **status** | [**PaymentMethodStatus**](PaymentMethodStatus.md) | | | | +| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | | | +| **actions** | [**[PaymentMethodAction]**](PaymentMethodAction.md) | | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | | +| **billing_information** | [**BillingInformation**](BillingInformation.md) | | | | +| **failure_code** | **str, none_type** | | | | +| **created** | **datetime** | | | | +| **updated** | **datetime** | | | | +| **ewallet** | [**EWallet**](EWallet.md) | | | | +| **direct_debit** | [**DirectDebit**](DirectDebit.md) | | | | +| **over_the_counter** | [**OverTheCounter**](OverTheCounter.md) | | | | +| **card** | [**Card**](Card.md) | | | | +| **qr_code** | [**QRCode**](QRCode.md) | | | | +| **virtual_account** | [**VirtualAccount**](VirtualAccount.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/PaymentMethodAction.md b/docs/payment_method/PaymentMethodAction.md new file mode 100644 index 00000000..f3f2e716 --- /dev/null +++ b/docs/payment_method/PaymentMethodAction.md @@ -0,0 +1,16 @@ +# PaymentMethodAction +> xendit.payment_method.model.PaymentMethodAction + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **action** | **str** | | | | +| **method** | **str** | | | | +| **url** | **str** | | | | +| **url_type** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/PaymentMethodAuthParameters.md b/docs/payment_method/PaymentMethodAuthParameters.md new file mode 100644 index 00000000..7c399973 --- /dev/null +++ b/docs/payment_method/PaymentMethodAuthParameters.md @@ -0,0 +1,13 @@ +# PaymentMethodAuthParameters +> xendit.payment_method.model.PaymentMethodAuthParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **auth_code** | **str** | ☑️ | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/PaymentMethodCountry.md b/docs/payment_method/PaymentMethodCountry.md new file mode 100644 index 00000000..a1148d16 --- /dev/null +++ b/docs/payment_method/PaymentMethodCountry.md @@ -0,0 +1,27 @@ +# PaymentMethodCountry +> xendit.payment_method.model.PaymentMethodCountry + + + +## Enum + + + * `PH` (value: `"PH"`) + + * `ID` (value: `"ID"`) + + * `VN` (value: `"VN"`) + + * `TH` (value: `"TH"`) + + * `MY` (value: `"MY"`) + + * `US` (value: `"US"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/PaymentMethodExpireParameters.md b/docs/payment_method/PaymentMethodExpireParameters.md new file mode 100644 index 00000000..8dc1bbdf --- /dev/null +++ b/docs/payment_method/PaymentMethodExpireParameters.md @@ -0,0 +1,14 @@ +# PaymentMethodExpireParameters +> xendit.payment_method.model.PaymentMethodExpireParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **success_return_url** | **str, none_type** | | URL where the end customer is redirected if the unlinking authorization is successful. | | +| **failure_return_url** | **str, none_type** | | URL where the end customer is redirected if the unlinking authorization is failed. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/PaymentMethodList.md b/docs/payment_method/PaymentMethodList.md new file mode 100644 index 00000000..a24a0f96 --- /dev/null +++ b/docs/payment_method/PaymentMethodList.md @@ -0,0 +1,14 @@ +# PaymentMethodList +> xendit.payment_method.model.PaymentMethodList + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **data** | [**[PaymentMethod]**](PaymentMethod.md) | ☑️ | | | | +| **has_more** | **bool** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/PaymentMethodParameters.md b/docs/payment_method/PaymentMethodParameters.md new file mode 100644 index 00000000..f0f687e3 --- /dev/null +++ b/docs/payment_method/PaymentMethodParameters.md @@ -0,0 +1,26 @@ +# PaymentMethodParameters +> xendit.payment_method.model.PaymentMethodParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | [**PaymentMethodType**](PaymentMethodType.md) | ☑️ | | | | +| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | ☑️ | | | | +| **country** | **str, none_type** | | | | +| **customer_id** | **str, none_type** | | | | +| **reference_id** | **str** | | | | +| **description** | **str, none_type** | | | | +| **card** | [**CardParameters**](CardParameters.md) | | | | +| **direct_debit** | [**DirectDebitParameters**](DirectDebitParameters.md) | | | | +| **ewallet** | [**EWalletParameters**](EWalletParameters.md) | | | | +| **over_the_counter** | [**OverTheCounterParameters**](OverTheCounterParameters.md) | | | | +| **virtual_account** | [**VirtualAccountParameters**](VirtualAccountParameters.md) | | | | +| **qr_code** | [**QRCodeParameters**](QRCodeParameters.md) | | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | | +| **billing_information** | [**BillingInformation**](BillingInformation.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/PaymentMethodReusability.md b/docs/payment_method/PaymentMethodReusability.md new file mode 100644 index 00000000..947f1909 --- /dev/null +++ b/docs/payment_method/PaymentMethodReusability.md @@ -0,0 +1,19 @@ +# PaymentMethodReusability +> xendit.payment_method.model.PaymentMethodReusability + + + +## Enum + + + * `MULTIPLE_USE` (value: `"MULTIPLE_USE"`) + + * `ONE_TIME_USE` (value: `"ONE_TIME_USE"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/PaymentMethodStatus.md b/docs/payment_method/PaymentMethodStatus.md new file mode 100644 index 00000000..11588197 --- /dev/null +++ b/docs/payment_method/PaymentMethodStatus.md @@ -0,0 +1,27 @@ +# PaymentMethodStatus +> xendit.payment_method.model.PaymentMethodStatus + + + +## Enum + + + * `ACTIVE` (value: `"ACTIVE"`) + + * `EXPIRED` (value: `"EXPIRED"`) + + * `INACTIVE` (value: `"INACTIVE"`) + + * `PENDING` (value: `"PENDING"`) + + * `REQUIRES_ACTION` (value: `"REQUIRES_ACTION"`) + + * `FAILED` (value: `"FAILED"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/PaymentMethodType.md b/docs/payment_method/PaymentMethodType.md new file mode 100644 index 00000000..b7c33272 --- /dev/null +++ b/docs/payment_method/PaymentMethodType.md @@ -0,0 +1,31 @@ +# PaymentMethodType +> xendit.payment_method.model.PaymentMethodType + + + +## Enum + + + * `CARD` (value: `"CARD"`) + + * `CRYPTOCURRENCY` (value: `"CRYPTOCURRENCY"`) + + * `DIRECT_BANK_TRANSFER` (value: `"DIRECT_BANK_TRANSFER"`) + + * `DIRECT_DEBIT` (value: `"DIRECT_DEBIT"`) + + * `EWALLET` (value: `"EWALLET"`) + + * `OVER_THE_COUNTER` (value: `"OVER_THE_COUNTER"`) + + * `QR_CODE` (value: `"QR_CODE"`) + + * `VIRTUAL_ACCOUNT` (value: `"VIRTUAL_ACCOUNT"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/PaymentMethodUpdateParameters.md b/docs/payment_method/PaymentMethodUpdateParameters.md new file mode 100644 index 00000000..88a0336e --- /dev/null +++ b/docs/payment_method/PaymentMethodUpdateParameters.md @@ -0,0 +1,18 @@ +# PaymentMethodUpdateParameters +> xendit.payment_method.model.PaymentMethodUpdateParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **description** | **str** | | | | +| **reference_id** | **str** | | | | +| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | | | +| **status** | [**PaymentMethodStatus**](PaymentMethodStatus.md) | | | | +| **over_the_counter** | [**OverTheCounterUpdateParameters**](OverTheCounterUpdateParameters.md) | | | | +| **virtual_account** | [**VirtualAccountUpdateParameters**](VirtualAccountUpdateParameters.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/QRCode.md b/docs/payment_method/QRCode.md new file mode 100644 index 00000000..7734ffba --- /dev/null +++ b/docs/payment_method/QRCode.md @@ -0,0 +1,17 @@ +# QRCode +> xendit.payment_method.model.QRCode + +QR Code Payment Method Details + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **amount** | **float, none_type** | | | | +| **currency** | **str** | | | | +| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | | | +| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/QRCodeChannelCode.md b/docs/payment_method/QRCodeChannelCode.md new file mode 100644 index 00000000..22145489 --- /dev/null +++ b/docs/payment_method/QRCodeChannelCode.md @@ -0,0 +1,26 @@ +# QRCodeChannelCode +> xendit.payment_method.model.QRCodeChannelCode + +QR Code Channel Code + + +## Enum + + + * `QRIS` (value: `"QRIS"`) + + * `DANA` (value: `"DANA"`) + + * `RCBC` (value: `"RCBC"`) + + * `PROMPTPAY` (value: `"PROMPTPAY"`) + + * `LINKAJA` (value: `"LINKAJA"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/QRCodeChannelProperties.md b/docs/payment_method/QRCodeChannelProperties.md new file mode 100644 index 00000000..6f1b34cc --- /dev/null +++ b/docs/payment_method/QRCodeChannelProperties.md @@ -0,0 +1,15 @@ +# QRCodeChannelProperties +> xendit.payment_method.model.QRCodeChannelProperties + +QR Code Channel Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **qr_string** | **str** | | QR string to be rendered for display to end users. QR string to image rendering are commonly available in software libraries (e.g Nodejs, PHP, Java) | | +| **expires_at** | **datetime** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/QRCodeParameters.md b/docs/payment_method/QRCodeParameters.md new file mode 100644 index 00000000..090b0dce --- /dev/null +++ b/docs/payment_method/QRCodeParameters.md @@ -0,0 +1,16 @@ +# QRCodeParameters +> xendit.payment_method.model.QRCodeParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **amount** | **float, none_type** | | | | +| **currency** | **str** | | | | +| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | | | +| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/SimulatePaymentRequest.md b/docs/payment_method/SimulatePaymentRequest.md new file mode 100644 index 00000000..e5cd2b22 --- /dev/null +++ b/docs/payment_method/SimulatePaymentRequest.md @@ -0,0 +1,13 @@ +# SimulatePaymentRequest +> xendit.payment_method.model.SimulatePaymentRequest + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **amount** | **float** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/TokenizedCardInformation.md b/docs/payment_method/TokenizedCardInformation.md new file mode 100644 index 00000000..f59d710a --- /dev/null +++ b/docs/payment_method/TokenizedCardInformation.md @@ -0,0 +1,23 @@ +# TokenizedCardInformation +> xendit.payment_method.model.TokenizedCardInformation + +Tokenized Card Information + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **token_id** | **str** | ☑️ | | | | +| **masked_card_number** | **str** | ☑️ | 1st 6 and last 4 digits of the card | | | +| **expiry_month** | **str** | ☑️ | Card expiry month in MM format | | | +| **expiry_year** | **str** | ☑️ | Card expiry month in YY format | | | +| **fingerprint** | **str** | ☑️ | Xendit-generated identifier for the unique card number. Multiple payment method objects can be created for the same account - e.g. if the user first creates a one-time payment request, and then later on creates a multiple-use payment method using the same account. The fingerprint helps to identify the unique account being used. | | | +| **type** | **str** | ☑️ | Whether the card is a credit or debit card | | | +| **network** | **str** | ☑️ | Card network - VISA, MASTERCARD, JCB, AMEX, DISCOVER, BCA | | | +| **country** | **str** | ☑️ | Country where the card was issued ISO 3166-1 Alpha-2 | | | +| **issuer** | **str** | ☑️ | Issuer of the card, most often an issuing bank For example, “BCA”, “MANDIRI” | | | +| **cardholder_name** | **str, none_type** | | Cardholder name is optional but recommended for 3DS 2 / AVS verification | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/VirtualAccount.md b/docs/payment_method/VirtualAccount.md new file mode 100644 index 00000000..05505293 --- /dev/null +++ b/docs/payment_method/VirtualAccount.md @@ -0,0 +1,21 @@ +# VirtualAccount +> xendit.payment_method.model.VirtualAccount + +Virtual Account Payment Method Details + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | ☑️ | | | | +| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | ☑️ | | | | +| **amount** | **float, none_type** | | | | +| **min_amount** | **float, none_type** | | | | +| **max_amount** | **float, none_type** | | | | +| **currency** | **str** | | | | +| **alternative_display_types** | **[str]** | | For payments in Vietnam only, alternative display requested for the virtual account | | +| **alternative_displays** | [**[VirtualAccountAlternativeDisplay]**](VirtualAccountAlternativeDisplay.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/VirtualAccountAllOf.md b/docs/payment_method/VirtualAccountAllOf.md new file mode 100644 index 00000000..7417e7a3 --- /dev/null +++ b/docs/payment_method/VirtualAccountAllOf.md @@ -0,0 +1,13 @@ +# VirtualAccountAllOf +> xendit.payment_method.model.VirtualAccountAllOf + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **alternative_displays** | [**[VirtualAccountAlternativeDisplay]**](VirtualAccountAlternativeDisplay.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/VirtualAccountAlternativeDisplay.md b/docs/payment_method/VirtualAccountAlternativeDisplay.md new file mode 100644 index 00000000..6935b6ff --- /dev/null +++ b/docs/payment_method/VirtualAccountAlternativeDisplay.md @@ -0,0 +1,15 @@ +# VirtualAccountAlternativeDisplay +> xendit.payment_method.model.VirtualAccountAlternativeDisplay + +Alternative Display Object + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | **str** | | Type of the alternative display [readonly] | "QR_STRING" | +| **data** | **str** | | Data payload of the given alternative display | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/VirtualAccountChannelCode.md b/docs/payment_method/VirtualAccountChannelCode.md new file mode 100644 index 00000000..31961083 --- /dev/null +++ b/docs/payment_method/VirtualAccountChannelCode.md @@ -0,0 +1,48 @@ +# VirtualAccountChannelCode +> xendit.payment_method.model.VirtualAccountChannelCode + +Virtual Account Channel Code + + +## Enum + + + * `BCA` (value: `"BCA"`) + + * `BJB` (value: `"BJB"`) + + * `BNI` (value: `"BNI"`) + + * `BRI` (value: `"BRI"`) + + * `MANDIRI` (value: `"MANDIRI"`) + + * `PERMATA` (value: `"PERMATA"`) + + * `BSI` (value: `"BSI"`) + + * `CIMB` (value: `"CIMB"`) + + * `SAHABAT_SAMPOERNA` (value: `"SAHABAT_SAMPOERNA"`) + + * `ARTAJASA` (value: `"ARTAJASA"`) + + * `PV` (value: `"PV"`) + + * `VIETCAPITAL` (value: `"VIETCAPITAL"`) + + * `WOORI` (value: `"WOORI"`) + + * `MSB` (value: `"MSB"`) + + * `STANDARD_CHARTERED` (value: `"STANDARD_CHARTERED"`) + + * `AMBANK` (value: `"AMBANK"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/VirtualAccountChannelProperties.md b/docs/payment_method/VirtualAccountChannelProperties.md new file mode 100644 index 00000000..fa1cd4b6 --- /dev/null +++ b/docs/payment_method/VirtualAccountChannelProperties.md @@ -0,0 +1,17 @@ +# VirtualAccountChannelProperties +> xendit.payment_method.model.VirtualAccountChannelProperties + +Virtual Account Channel Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **customer_name** | **str** | | Name of customer. | | +| **virtual_account_number** | **str** | | You can assign specific Virtual Account number using this parameter. If you do not send one, one will be picked at random. Make sure the number you specify is within your Virtual Account range. | | +| **expires_at** | **datetime** | | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | | +| **suggested_amount** | **float** | | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/VirtualAccountChannelPropertiesPatch.md b/docs/payment_method/VirtualAccountChannelPropertiesPatch.md new file mode 100644 index 00000000..d21da071 --- /dev/null +++ b/docs/payment_method/VirtualAccountChannelPropertiesPatch.md @@ -0,0 +1,15 @@ +# VirtualAccountChannelPropertiesPatch +> xendit.payment_method.model.VirtualAccountChannelPropertiesPatch + +Virtual Account Channel Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **expires_at** | **datetime** | | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | | +| **suggested_amount** | **float** | | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/VirtualAccountParameters.md b/docs/payment_method/VirtualAccountParameters.md new file mode 100644 index 00000000..bb454081 --- /dev/null +++ b/docs/payment_method/VirtualAccountParameters.md @@ -0,0 +1,19 @@ +# VirtualAccountParameters +> xendit.payment_method.model.VirtualAccountParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | ☑️ | | | | +| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | ☑️ | | | | +| **amount** | **float, none_type** | | | | +| **min_amount** | **float, none_type** | | | | +| **max_amount** | **float, none_type** | | | | +| **currency** | **str** | | | | +| **alternative_display_types** | **[str]** | | For payments in Vietnam only, alternative display requested for the virtual account | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_method/VirtualAccountUpdateParameters.md b/docs/payment_method/VirtualAccountUpdateParameters.md new file mode 100644 index 00000000..a25200f9 --- /dev/null +++ b/docs/payment_method/VirtualAccountUpdateParameters.md @@ -0,0 +1,17 @@ +# VirtualAccountUpdateParameters +> xendit.payment_method.model.VirtualAccountUpdateParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **amount** | **float, none_type** | | | | +| **min_amount** | **float, none_type** | | | | +| **max_amount** | **float, none_type** | | | | +| **channel_properties** | [**VirtualAccountChannelPropertiesPatch**](VirtualAccountChannelPropertiesPatch.md) | | | | +| **alternative_display_types** | **[str]** | | For payments in Vietnam only, alternative display requested for the virtual account | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/Capture.md b/docs/payment_request/Capture.md new file mode 100644 index 00000000..e98c2784 --- /dev/null +++ b/docs/payment_request/Capture.md @@ -0,0 +1,27 @@ +# Capture +> xendit.payment_request.model.Capture + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **str** | ☑️ | | | | +| **payment_request_id** | **str** | ☑️ | | | | +| **payment_id** | **str** | ☑️ | | | | +| **reference_id** | **str** | ☑️ | | | | +| **currency** | **str** | ☑️ | | | | +| **authorized_amount** | **float** | ☑️ | | | | +| **captured_amount** | **float** | ☑️ | | | | +| **status** | **str** | ☑️ | | | | +| **payment_method** | [**PaymentMethod**](PaymentMethod.md) | ☑️ | | | | +| **failure_code** | **str, none_type** | ☑️ | | | | +| **customer_id** | **str, none_type** | ☑️ | | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | ☑️ | | | | +| **channel_properties** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | ☑️ | | | | +| **created** | **str** | ☑️ | | | | +| **updated** | **str** | ☑️ | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/CaptureList.md b/docs/payment_request/CaptureList.md new file mode 100644 index 00000000..e163ed8c --- /dev/null +++ b/docs/payment_request/CaptureList.md @@ -0,0 +1,13 @@ +# CaptureList +> xendit.payment_request.model.CaptureList + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **value** | [**[Capture]**](Capture.md) | | ☑️ | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/CaptureListResponse.md b/docs/payment_request/CaptureListResponse.md new file mode 100644 index 00000000..ad6d4de0 --- /dev/null +++ b/docs/payment_request/CaptureListResponse.md @@ -0,0 +1,14 @@ +# CaptureListResponse +> xendit.payment_request.model.CaptureListResponse + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **data** | [**CaptureList**](CaptureList.md) | ☑️ | | | | +| **has_more** | **bool** | ☑️ | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/CaptureParameters.md b/docs/payment_request/CaptureParameters.md new file mode 100644 index 00000000..7a0d2190 --- /dev/null +++ b/docs/payment_request/CaptureParameters.md @@ -0,0 +1,14 @@ +# CaptureParameters +> xendit.payment_request.model.CaptureParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **capture_amount** | **float** | ☑️ | | | | +| **reference_id** | **str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/Card.md b/docs/payment_request/Card.md new file mode 100644 index 00000000..06d540d5 --- /dev/null +++ b/docs/payment_request/Card.md @@ -0,0 +1,16 @@ +# Card +> xendit.payment_request.model.Card + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | ☑️ | | | | +| **channel_properties** | [**CardChannelProperties**](CardChannelProperties.md) | ☑️ | | | | +| **card_information** | [**CardInformation**](CardInformation.md) | ☑️ | | | | +| **card_verification_results** | [**CardVerificationResults**](CardVerificationResults.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/CardChannelProperties.md b/docs/payment_request/CardChannelProperties.md new file mode 100644 index 00000000..d5c8539e --- /dev/null +++ b/docs/payment_request/CardChannelProperties.md @@ -0,0 +1,18 @@ +# CardChannelProperties +> xendit.payment_request.model.CardChannelProperties + +Card Channel Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **skip_three_d_secure** | **bool, none_type** | | To indicate whether to perform 3DS during the linking phase | | +| **success_return_url** | **str, none_type** | | URL where the end-customer is redirected if the authorization is successful | | +| **failure_return_url** | **str, none_type** | | URL where the end-customer is redirected if the authorization failed | | +| **cardonfile_type** | **str, none_type** | | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | | +| **merchant_id_tag** | **str** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/CardInformation.md b/docs/payment_request/CardInformation.md new file mode 100644 index 00000000..2777e82d --- /dev/null +++ b/docs/payment_request/CardInformation.md @@ -0,0 +1,23 @@ +# CardInformation +> xendit.payment_request.model.CardInformation + +Card Information + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **token_id** | **str** | ☑️ | | | | +| **masked_card_number** | **str** | ☑️ | 1st 6 and last 4 digits of the card | | | +| **expiry_month** | **str** | ☑️ | Card expiry month in MM format | | | +| **expiry_year** | **str** | ☑️ | Card expiry month in YY format | | | +| **cardholder_name** | **str, none_type** | | Cardholder name | | +| **fingerprint** | **str** | | | | +| **type** | **str** | | | | +| **network** | **str** | | | | +| **country** | **str** | | | | +| **issuer** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/CardVerificationResults.md b/docs/payment_request/CardVerificationResults.md new file mode 100644 index 00000000..6c9f7c21 --- /dev/null +++ b/docs/payment_request/CardVerificationResults.md @@ -0,0 +1,15 @@ +# CardVerificationResults +> xendit.payment_request.model.CardVerificationResults + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **three_d_secure** | [**CardVerificationResultsThreeDSecure**](CardVerificationResultsThreeDSecure.md) | | | | +| **cvv_result** | **str, none_type** | | | | +| **address_verification_result** | **str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/CardVerificationResultsThreeDSecure.md b/docs/payment_request/CardVerificationResultsThreeDSecure.md new file mode 100644 index 00000000..e907e143 --- /dev/null +++ b/docs/payment_request/CardVerificationResultsThreeDSecure.md @@ -0,0 +1,17 @@ +# CardVerificationResultsThreeDSecure +> xendit.payment_request.model.CardVerificationResultsThreeDSecure + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **three_d_secure_flow** | **str, none_type** | | | | +| **eci_code** | **str, none_type** | | | | +| **three_d_secure_result** | **str, none_type** | | | | +| **three_d_secure_result_reason** | **str, none_type** | | | | +| **three_d_secure_version** | **str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/DirectDebit.md b/docs/payment_request/DirectDebit.md new file mode 100644 index 00000000..62526cfa --- /dev/null +++ b/docs/payment_request/DirectDebit.md @@ -0,0 +1,18 @@ +# DirectDebit +> xendit.payment_request.model.DirectDebit + +Direct Debit Payment Method Details + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**DirectDebitChannelCode**](DirectDebitChannelCode.md) | ☑️ | | | | +| **channel_properties** | [**DirectDebitChannelProperties**](DirectDebitChannelProperties.md) | ☑️ | | | | +| **type** | [**DirectDebitType**](DirectDebitType.md) | ☑️ | | | | +| **bank_account** | [**DirectDebitBankAccount**](DirectDebitBankAccount.md) | | | | +| **debit_card** | [**DirectDebitDebitCard**](DirectDebitDebitCard.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/DirectDebitAllOf.md b/docs/payment_request/DirectDebitAllOf.md new file mode 100644 index 00000000..974e76d2 --- /dev/null +++ b/docs/payment_request/DirectDebitAllOf.md @@ -0,0 +1,15 @@ +# DirectDebitAllOf +> xendit.payment_request.model.DirectDebitAllOf + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | [**DirectDebitType**](DirectDebitType.md) | ☑️ | | | | +| **bank_account** | [**DirectDebitBankAccount**](DirectDebitBankAccount.md) | | | | +| **debit_card** | [**DirectDebitDebitCard**](DirectDebitDebitCard.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/DirectDebitBankAccount.md b/docs/payment_request/DirectDebitBankAccount.md new file mode 100644 index 00000000..e4c819fa --- /dev/null +++ b/docs/payment_request/DirectDebitBankAccount.md @@ -0,0 +1,14 @@ +# DirectDebitBankAccount +> xendit.payment_request.model.DirectDebitBankAccount + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **masked_bank_account_number** | **str, none_type** | | | | +| **bank_account_hash** | **str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/DirectDebitChannelCode.md b/docs/payment_request/DirectDebitChannelCode.md new file mode 100644 index 00000000..82930500 --- /dev/null +++ b/docs/payment_request/DirectDebitChannelCode.md @@ -0,0 +1,142 @@ +# DirectDebitChannelCode +> xendit.payment_request.model.DirectDebitChannelCode + +Direct Debit Channel Code + + +## Enum + + + * `BCA_KLIKPAY` (value: `"BCA_KLIKPAY"`) + + * `BCA_ONEKLIK` (value: `"BCA_ONEKLIK"`) + + * `BRI` (value: `"BRI"`) + + * `BNI` (value: `"BNI"`) + + * `MANDIRI` (value: `"MANDIRI"`) + + * `BPI` (value: `"BPI"`) + + * `BDO` (value: `"BDO"`) + + * `CIMBNIAGA` (value: `"CIMBNIAGA"`) + + * `MTB` (value: `"MTB"`) + + * `RCBC` (value: `"RCBC"`) + + * `UBP` (value: `"UBP"`) + + * `AUTODEBIT_UBP` (value: `"AUTODEBIT_UBP"`) + + * `CHINABANK` (value: `"CHINABANK"`) + + * `BAY` (value: `"BAY"`) + + * `KTB` (value: `"KTB"`) + + * `BBL` (value: `"BBL"`) + + * `SCB` (value: `"SCB"`) + + * `KBANK_MB` (value: `"KBANK_MB"`) + + * `BAY_MB` (value: `"BAY_MB"`) + + * `KTB_MB` (value: `"KTB_MB"`) + + * `BBL_MB` (value: `"BBL_MB"`) + + * `SCB_MB` (value: `"SCB_MB"`) + + * `BDO_EPAY` (value: `"BDO_EPAY"`) + + * `AFFIN_FPX` (value: `"AFFIN_FPX"`) + + * `AGRO_FPX` (value: `"AGRO_FPX"`) + + * `ALLIANCE_FPX` (value: `"ALLIANCE_FPX"`) + + * `AMBANK_FPX` (value: `"AMBANK_FPX"`) + + * `ISLAM_FPX` (value: `"ISLAM_FPX"`) + + * `MUAMALAT_FPX` (value: `"MUAMALAT_FPX"`) + + * `BOC_FPX` (value: `"BOC_FPX"`) + + * `RAKYAT_FPX` (value: `"RAKYAT_FPX"`) + + * `BSN_FPX` (value: `"BSN_FPX"`) + + * `CIMB_FPX` (value: `"CIMB_FPX"`) + + * `HLB_FPX` (value: `"HLB_FPX"`) + + * `HSBC_FPX` (value: `"HSBC_FPX"`) + + * `KFH_FPX` (value: `"KFH_FPX"`) + + * `MAYB2E_FPX` (value: `"MAYB2E_FPX"`) + + * `MAYB2U_FPX` (value: `"MAYB2U_FPX"`) + + * `OCBC_FPX` (value: `"OCBC_FPX"`) + + * `PUBLIC_FPX` (value: `"PUBLIC_FPX"`) + + * `RHB_FPX` (value: `"RHB_FPX"`) + + * `SCH_FPX` (value: `"SCH_FPX"`) + + * `UOB_FPX` (value: `"UOB_FPX"`) + + * `AFFIN_FPX_BUSINESS` (value: `"AFFIN_FPX_BUSINESS"`) + + * `AGRO_FPX_BUSINESS` (value: `"AGRO_FPX_BUSINESS"`) + + * `ALLIANCE_FPX_BUSINESS` (value: `"ALLIANCE_FPX_BUSINESS"`) + + * `AMBANK_FPX_BUSINESS` (value: `"AMBANK_FPX_BUSINESS"`) + + * `ISLAM_FPX_BUSINESS` (value: `"ISLAM_FPX_BUSINESS"`) + + * `MUAMALAT_FPX_BUSINESS` (value: `"MUAMALAT_FPX_BUSINESS"`) + + * `BNP_FPX_BUSINESS` (value: `"BNP_FPX_BUSINESS"`) + + * `CIMB_FPX_BUSINESS` (value: `"CIMB_FPX_BUSINESS"`) + + * `CITIBANK_FPX_BUSINESS` (value: `"CITIBANK_FPX_BUSINESS"`) + + * `DEUTSCHE_FPX_BUSINESS` (value: `"DEUTSCHE_FPX_BUSINESS"`) + + * `HLB_FPX_BUSINESS` (value: `"HLB_FPX_BUSINESS"`) + + * `HSBC_FPX_BUSINESS` (value: `"HSBC_FPX_BUSINESS"`) + + * `RAKYAT_FPX_BUSINESS` (value: `"RAKYAT_FPX_BUSINESS"`) + + * `KFH_FPX_BUSINESS` (value: `"KFH_FPX_BUSINESS"`) + + * `MAYB2E_FPX_BUSINESS` (value: `"MAYB2E_FPX_BUSINESS"`) + + * `OCBC_FPX_BUSINESS` (value: `"OCBC_FPX_BUSINESS"`) + + * `PUBLIC_FPX_BUSINESS` (value: `"PUBLIC_FPX_BUSINESS"`) + + * `RHB_FPX_BUSINESS` (value: `"RHB_FPX_BUSINESS"`) + + * `SCH_FPX_BUSINESS` (value: `"SCH_FPX_BUSINESS"`) + + * `UOB_FPX_BUSINESS` (value: `"UOB_FPX_BUSINESS"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/DirectDebitChannelProperties.md b/docs/payment_request/DirectDebitChannelProperties.md new file mode 100644 index 00000000..a784f17e --- /dev/null +++ b/docs/payment_request/DirectDebitChannelProperties.md @@ -0,0 +1,20 @@ +# DirectDebitChannelProperties +> xendit.payment_request.model.DirectDebitChannelProperties + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **mobile_number** | **str** | | Mobile number of the customer registered to the partner channel | | +| **success_return_url** | **str** | | | | +| **failure_return_url** | **str** | | | | +| **identity_document_number** | **str** | | | | +| **account_number** | **str** | | | | +| **card_last_four** | **str** | | Last four digits of the debit card | | +| **card_expiry** | **str** | | Expiry month and year of the debit card (in MM/YY format) | | +| **email** | **str** | | Email address of the customer that is registered to the partner channel | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/DirectDebitChannelPropertiesBankAccount.md b/docs/payment_request/DirectDebitChannelPropertiesBankAccount.md new file mode 100644 index 00000000..af521df7 --- /dev/null +++ b/docs/payment_request/DirectDebitChannelPropertiesBankAccount.md @@ -0,0 +1,17 @@ +# DirectDebitChannelPropertiesBankAccount +> xendit.payment_request.model.DirectDebitChannelPropertiesBankAccount + +Direct Debit Bank Account Channel Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **success_return_url** | **str** | | | | +| **failure_return_url** | **str** | | | | +| **mobile_number** | **str** | | | | +| **identity_document_number** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/DirectDebitChannelPropertiesBankRedirect.md b/docs/payment_request/DirectDebitChannelPropertiesBankRedirect.md new file mode 100644 index 00000000..ab5bf430 --- /dev/null +++ b/docs/payment_request/DirectDebitChannelPropertiesBankRedirect.md @@ -0,0 +1,16 @@ +# DirectDebitChannelPropertiesBankRedirect +> xendit.payment_request.model.DirectDebitChannelPropertiesBankRedirect + +Direct Debit Bank Account Channel Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **mobile_number** | **str** | | Mobile number of the customer that is registered to channel | | +| **success_return_url** | **str** | | | | +| **failure_return_url** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/DirectDebitChannelPropertiesDebitCard.md b/docs/payment_request/DirectDebitChannelPropertiesDebitCard.md new file mode 100644 index 00000000..ca27448a --- /dev/null +++ b/docs/payment_request/DirectDebitChannelPropertiesDebitCard.md @@ -0,0 +1,18 @@ +# DirectDebitChannelPropertiesDebitCard +> xendit.payment_request.model.DirectDebitChannelPropertiesDebitCard + +Direct Debit Debit Card Channel Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **mobile_number** | **str** | | Mobile number of the customer registered to the partner channel | | +| **account_number** | **str** | | | | +| **card_last_four** | **str** | | Last four digits of the debit card | | +| **card_expiry** | **str** | | Expiry month and year of the debit card (in MM/YY format) | | +| **email** | **str** | | Email address of the customer that is registered to the partner channel | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/DirectDebitDebitCard.md b/docs/payment_request/DirectDebitDebitCard.md new file mode 100644 index 00000000..fd62c7fb --- /dev/null +++ b/docs/payment_request/DirectDebitDebitCard.md @@ -0,0 +1,17 @@ +# DirectDebitDebitCard +> xendit.payment_request.model.DirectDebitDebitCard + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **mobile_number** | **str, none_type** | | Mobile number of the customer registered to the partner channel | | +| **account_number** | **str** | | | | +| **card_last_four** | **str, none_type** | | Last four digits of the debit card | | +| **card_expiry** | **str, none_type** | | Expiry month and year of the debit card (in MM/YY format) | | +| **email** | **str, none_type** | | Email address of the customer that is registered to the partner channel | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/DirectDebitParameters.md b/docs/payment_request/DirectDebitParameters.md new file mode 100644 index 00000000..e5231989 --- /dev/null +++ b/docs/payment_request/DirectDebitParameters.md @@ -0,0 +1,15 @@ +# DirectDebitParameters +> xendit.payment_request.model.DirectDebitParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**DirectDebitChannelCode**](DirectDebitChannelCode.md) | ☑️ | | | | +| **channel_properties** | [**DirectDebitChannelProperties**](DirectDebitChannelProperties.md) | ☑️ | | | | +| **type** | [**DirectDebitType**](DirectDebitType.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/DirectDebitType.md b/docs/payment_request/DirectDebitType.md new file mode 100644 index 00000000..1642d578 --- /dev/null +++ b/docs/payment_request/DirectDebitType.md @@ -0,0 +1,21 @@ +# DirectDebitType +> xendit.payment_request.model.DirectDebitType + + + +## Enum + + + * `DEBIT_CARD` (value: `"DEBIT_CARD"`) + + * `BANK_ACCOUNT` (value: `"BANK_ACCOUNT"`) + + * `BANK_REDIRECT` (value: `"BANK_REDIRECT"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/EWallet.md b/docs/payment_request/EWallet.md new file mode 100644 index 00000000..d3faa9b8 --- /dev/null +++ b/docs/payment_request/EWallet.md @@ -0,0 +1,16 @@ +# EWallet +> xendit.payment_request.model.EWallet + +Ewallet Payment Method Details + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | | | | +| **channel_properties** | [**EWalletChannelProperties**](EWalletChannelProperties.md) | | | | +| **account** | [**EWalletAccount**](EWalletAccount.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/EWalletAccount.md b/docs/payment_request/EWalletAccount.md new file mode 100644 index 00000000..8c3c61e5 --- /dev/null +++ b/docs/payment_request/EWalletAccount.md @@ -0,0 +1,17 @@ +# EWalletAccount +> xendit.payment_request.model.EWalletAccount + +EWallet Account Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **name** | **str, none_type** | | Name of the eWallet account holder. The value is null if unavailableName of the eWallet account holder. The value is null if unavailable | | +| **account_details** | **str, none_type** | | Identifier from eWallet provider e.g. phone number. The value is null if unavailable | | +| **balance** | **float, none_type** | | The main balance amount on eWallet account provided from eWallet provider. The value is null if unavailable | | +| **point_balance** | **float, none_type** | | The point balance amount on eWallet account. Applicable only on some eWallet provider that has point system. The value is null if unavailabl | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/EWalletAllOf.md b/docs/payment_request/EWalletAllOf.md new file mode 100644 index 00000000..6dbe6196 --- /dev/null +++ b/docs/payment_request/EWalletAllOf.md @@ -0,0 +1,13 @@ +# EWalletAllOf +> xendit.payment_request.model.EWalletAllOf + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **account** | [**EWalletAccount**](EWalletAccount.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/EWalletChannelCode.md b/docs/payment_request/EWalletChannelCode.md new file mode 100644 index 00000000..377aaa9c --- /dev/null +++ b/docs/payment_request/EWalletChannelCode.md @@ -0,0 +1,56 @@ +# EWalletChannelCode +> xendit.payment_request.model.EWalletChannelCode + +Ewallet Channel Code + + +## Enum + + + * `GCASH` (value: `"GCASH"`) + + * `GRABPAY` (value: `"GRABPAY"`) + + * `PAYMAYA` (value: `"PAYMAYA"`) + + * `DANA` (value: `"DANA"`) + + * `OVO` (value: `"OVO"`) + + * `LINKAJA` (value: `"LINKAJA"`) + + * `SHOPEEPAY` (value: `"SHOPEEPAY"`) + + * `NEXCASH` (value: `"NEXCASH"`) + + * `ASTRAPAY` (value: `"ASTRAPAY"`) + + * `JENIUSPAY` (value: `"JENIUSPAY"`) + + * `APPOTA` (value: `"APPOTA"`) + + * `MOMO` (value: `"MOMO"`) + + * `VNPTWALLET` (value: `"VNPTWALLET"`) + + * `VIETTELPAY` (value: `"VIETTELPAY"`) + + * `ZALOPAY` (value: `"ZALOPAY"`) + + * `WECHATPAY` (value: `"WECHATPAY"`) + + * `LINEPAY` (value: `"LINEPAY"`) + + * `TRUEMONEY` (value: `"TRUEMONEY"`) + + * `ALIPAY` (value: `"ALIPAY"`) + + * `TOUCHANDGO` (value: `"TOUCHANDGO"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/EWalletChannelProperties.md b/docs/payment_request/EWalletChannelProperties.md new file mode 100644 index 00000000..9b4b4bf2 --- /dev/null +++ b/docs/payment_request/EWalletChannelProperties.md @@ -0,0 +1,19 @@ +# EWalletChannelProperties +> xendit.payment_request.model.EWalletChannelProperties + +Ewallet Channel Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **success_return_url** | **str** | | URL where the end-customer is redirected if the authorization is successful | | +| **failure_return_url** | **str** | | URL where the end-customer is redirected if the authorization failed | | +| **cancel_return_url** | **str** | | URL where the end-customer is redirected if the authorization cancelled | | +| **redeem_points** | **str** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | | +| **mobile_number** | **str** | | | | +| **cashtag** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/EWalletParameters.md b/docs/payment_request/EWalletParameters.md new file mode 100644 index 00000000..551c21bb --- /dev/null +++ b/docs/payment_request/EWalletParameters.md @@ -0,0 +1,14 @@ +# EWalletParameters +> xendit.payment_request.model.EWalletParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | | | | +| **channel_properties** | [**EWalletChannelProperties**](EWalletChannelProperties.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/Error.md b/docs/payment_request/Error.md new file mode 100644 index 00000000..386ca176 --- /dev/null +++ b/docs/payment_request/Error.md @@ -0,0 +1,14 @@ +# Error +> xendit.payment_request.model.Error + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str, none_type** | | | | +| **message** | **str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/OverTheCounter.md b/docs/payment_request/OverTheCounter.md new file mode 100644 index 00000000..df5d31c4 --- /dev/null +++ b/docs/payment_request/OverTheCounter.md @@ -0,0 +1,17 @@ +# OverTheCounter +> xendit.payment_request.model.OverTheCounter + +Over the Counter Payment Method Details + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | ☑️ | | | | +| **channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | ☑️ | | | | +| **amount** | **float, none_type** | | | | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/OverTheCounterChannelCode.md b/docs/payment_request/OverTheCounterChannelCode.md new file mode 100644 index 00000000..766dd183 --- /dev/null +++ b/docs/payment_request/OverTheCounterChannelCode.md @@ -0,0 +1,48 @@ +# OverTheCounterChannelCode +> xendit.payment_request.model.OverTheCounterChannelCode + +Over The Counter Channel Code + + +## Enum + + + * `7ELEVEN` (value: `"7ELEVEN"`) + + * `7ELEVEN_CLIQQ` (value: `"7ELEVEN_CLIQQ"`) + + * `CEBUANA` (value: `"CEBUANA"`) + + * `ECPAY` (value: `"ECPAY"`) + + * `PALAWAN` (value: `"PALAWAN"`) + + * `MLHUILLIER` (value: `"MLHUILLIER"`) + + * `ECPAY_DRAGONLOAN` (value: `"ECPAY_DRAGONLOAN"`) + + * `LBC` (value: `"LBC"`) + + * `ECPAY_SCHOOL` (value: `"ECPAY_SCHOOL"`) + + * `RD_PAWNSHOP` (value: `"RD_PAWNSHOP"`) + + * `CVM` (value: `"CVM"`) + + * `USSC` (value: `"USSC"`) + + * `SM_BILLS` (value: `"SM_BILLS"`) + + * `ROBINSONS_BILLS` (value: `"ROBINSONS_BILLS"`) + + * `ALFAMART` (value: `"ALFAMART"`) + + * `INDOMARET` (value: `"INDOMARET"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/OverTheCounterChannelProperties.md b/docs/payment_request/OverTheCounterChannelProperties.md new file mode 100644 index 00000000..b286ffa0 --- /dev/null +++ b/docs/payment_request/OverTheCounterChannelProperties.md @@ -0,0 +1,16 @@ +# OverTheCounterChannelProperties +> xendit.payment_request.model.OverTheCounterChannelProperties + +Over The Counter Channel Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **customer_name** | **str** | ☑️ | Name of customer. | | | +| **payment_code** | **str** | | The payment code that you want to assign, e.g 12345. If you do not send one, one will be picked at random. | | +| **expires_at** | **datetime** | | The time when the payment code will be expired. The minimum is 2 hours and the maximum is 9 days for 7ELEVEN. Default expired date will be 2 days from payment code generated. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/OverTheCounterParameters.md b/docs/payment_request/OverTheCounterParameters.md new file mode 100644 index 00000000..0e5fffeb --- /dev/null +++ b/docs/payment_request/OverTheCounterParameters.md @@ -0,0 +1,16 @@ +# OverTheCounterParameters +> xendit.payment_request.model.OverTheCounterParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | ☑️ | | | | +| **channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | ☑️ | | | | +| **amount** | **float, none_type** | | | | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentMethod.md b/docs/payment_request/PaymentMethod.md new file mode 100644 index 00000000..2b9ef751 --- /dev/null +++ b/docs/payment_request/PaymentMethod.md @@ -0,0 +1,27 @@ +# PaymentMethod +> xendit.payment_request.model.PaymentMethod + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **str** | ☑️ | | | | +| **type** | [**PaymentMethodType**](PaymentMethodType.md) | ☑️ | | | | +| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | ☑️ | | | | +| **status** | [**PaymentMethodStatus**](PaymentMethodStatus.md) | ☑️ | | | | +| **created** | **str** | | | | +| **updated** | **str** | | | | +| **description** | **str, none_type** | | | | +| **reference_id** | **str** | | | | +| **card** | [**Card**](Card.md) | | | | +| **direct_debit** | [**DirectDebit**](DirectDebit.md) | | | | +| **ewallet** | [**EWallet**](EWallet.md) | | | | +| **over_the_counter** | [**OverTheCounter**](OverTheCounter.md) | | | | +| **virtual_account** | [**VirtualAccount**](VirtualAccount.md) | | | | +| **qr_code** | [**QRCode**](QRCode.md) | | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentMethodParameters.md b/docs/payment_request/PaymentMethodParameters.md new file mode 100644 index 00000000..f37dc2c3 --- /dev/null +++ b/docs/payment_request/PaymentMethodParameters.md @@ -0,0 +1,21 @@ +# PaymentMethodParameters +> xendit.payment_request.model.PaymentMethodParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | [**PaymentMethodType**](PaymentMethodType.md) | ☑️ | | | | +| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | ☑️ | | | | +| **description** | **str, none_type** | | | | +| **reference_id** | **str** | | | | +| **direct_debit** | [**DirectDebitParameters**](DirectDebitParameters.md) | | | | +| **ewallet** | [**EWalletParameters**](EWalletParameters.md) | | | | +| **over_the_counter** | [**OverTheCounterParameters**](OverTheCounterParameters.md) | | | | +| **virtual_account** | [**VirtualAccountParameters**](VirtualAccountParameters.md) | | | | +| **qr_code** | [**QRCodeParameters**](QRCodeParameters.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentMethodReusability.md b/docs/payment_request/PaymentMethodReusability.md new file mode 100644 index 00000000..5693f440 --- /dev/null +++ b/docs/payment_request/PaymentMethodReusability.md @@ -0,0 +1,19 @@ +# PaymentMethodReusability +> xendit.payment_request.model.PaymentMethodReusability + + + +## Enum + + + * `MULTIPLE_USE` (value: `"MULTIPLE_USE"`) + + * `ONE_TIME_USE` (value: `"ONE_TIME_USE"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentMethodStatus.md b/docs/payment_request/PaymentMethodStatus.md new file mode 100644 index 00000000..0e298ac0 --- /dev/null +++ b/docs/payment_request/PaymentMethodStatus.md @@ -0,0 +1,25 @@ +# PaymentMethodStatus +> xendit.payment_request.model.PaymentMethodStatus + + + +## Enum + + + * `ACTIVE` (value: `"ACTIVE"`) + + * `INACTIVE` (value: `"INACTIVE"`) + + * `PENDING` (value: `"PENDING"`) + + * `EXPIRED` (value: `"EXPIRED"`) + + * `FAILED` (value: `"FAILED"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentMethodType.md b/docs/payment_request/PaymentMethodType.md new file mode 100644 index 00000000..854c1b8d --- /dev/null +++ b/docs/payment_request/PaymentMethodType.md @@ -0,0 +1,27 @@ +# PaymentMethodType +> xendit.payment_request.model.PaymentMethodType + + + +## Enum + + + * `CARD` (value: `"CARD"`) + + * `DIRECT_DEBIT` (value: `"DIRECT_DEBIT"`) + + * `EWALLET` (value: `"EWALLET"`) + + * `OVER_THE_COUNTER` (value: `"OVER_THE_COUNTER"`) + + * `QR_CODE` (value: `"QR_CODE"`) + + * `VIRTUAL_ACCOUNT` (value: `"VIRTUAL_ACCOUNT"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequest.md b/docs/payment_request/PaymentRequest.md new file mode 100644 index 00000000..49d8799c --- /dev/null +++ b/docs/payment_request/PaymentRequest.md @@ -0,0 +1,35 @@ +# PaymentRequest +> xendit.payment_request.model.PaymentRequest + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **str** | ☑️ | | | | +| **created** | **str** | ☑️ | | | | +| **updated** | **str** | ☑️ | | | | +| **reference_id** | **str** | ☑️ | | | | +| **business_id** | **str** | ☑️ | | | | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | ☑️ | | | | +| **payment_method** | [**PaymentMethod**](PaymentMethod.md) | ☑️ | | | | +| **status** | [**PaymentRequestStatus**](PaymentRequestStatus.md) | ☑️ | | | | +| **customer_id** | **str, none_type** | | | | +| **customer** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | | +| **amount** | **float** | | | | +| **min_amount** | **float, none_type** | | | | +| **max_amount** | **float, none_type** | | | | +| **country** | [**PaymentRequestCountry**](PaymentRequestCountry.md) | | | | +| **description** | **str, none_type** | | | | +| **failure_code** | **str, none_type** | | | | +| **capture_method** | [**PaymentRequestCaptureMethod**](PaymentRequestCaptureMethod.md) | | | | +| **initiator** | [**PaymentRequestInitiator**](PaymentRequestInitiator.md) | | | | +| **card_verification_results** | [**PaymentRequestCardVerificationResults**](PaymentRequestCardVerificationResults.md) | | | | +| **actions** | [**[PaymentRequestAction]**](PaymentRequestAction.md) | | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | | +| **shipping_information** | [**PaymentRequestShippingInformation**](PaymentRequestShippingInformation.md) | | | | +| **items** | [**PaymentRequestBasket**](PaymentRequestBasket.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestAction.md b/docs/payment_request/PaymentRequestAction.md new file mode 100644 index 00000000..8b6042a9 --- /dev/null +++ b/docs/payment_request/PaymentRequestAction.md @@ -0,0 +1,17 @@ +# PaymentRequestAction +> xendit.payment_request.model.PaymentRequestAction + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **action** | **str** | ☑️ | | | | +| **url_type** | **str** | ☑️ | | | | +| **method** | **str, none_type** | ☑️ | | | | +| **url** | **str, none_type** | ☑️ | | | | +| **qr_code** | **str, none_type** | ☑️ | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestAuthParameters.md b/docs/payment_request/PaymentRequestAuthParameters.md new file mode 100644 index 00000000..e23449ce --- /dev/null +++ b/docs/payment_request/PaymentRequestAuthParameters.md @@ -0,0 +1,13 @@ +# PaymentRequestAuthParameters +> xendit.payment_request.model.PaymentRequestAuthParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **auth_code** | **str** | ☑️ | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestBasket.md b/docs/payment_request/PaymentRequestBasket.md new file mode 100644 index 00000000..aaa1159a --- /dev/null +++ b/docs/payment_request/PaymentRequestBasket.md @@ -0,0 +1,13 @@ +# PaymentRequestBasket +> xendit.payment_request.model.PaymentRequestBasket + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **value** | [**[PaymentRequestBasketItem], none_type**](PaymentRequestBasketItem.md) | | ☑️ | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestBasketItem.md b/docs/payment_request/PaymentRequestBasketItem.md new file mode 100644 index 00000000..5474d11e --- /dev/null +++ b/docs/payment_request/PaymentRequestBasketItem.md @@ -0,0 +1,25 @@ +# PaymentRequestBasketItem +> xendit.payment_request.model.PaymentRequestBasketItem + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **name** | **str** | ☑️ | | | | +| **category** | **str** | ☑️ | | | | +| **currency** | **str** | ☑️ | | | | +| **quantity** | **float** | ☑️ | | | | +| **price** | **float** | ☑️ | | | | +| **reference_id** | **str** | | | | +| **description** | **str** | | | | +| **type** | **str** | | | | +| **sub_category** | **str** | | | | +| **payer_charged_currency** | **str** | | | | +| **payer_charged_price** | **float** | | | | +| **url** | **str** | | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestCaptureMethod.md b/docs/payment_request/PaymentRequestCaptureMethod.md new file mode 100644 index 00000000..64f43778 --- /dev/null +++ b/docs/payment_request/PaymentRequestCaptureMethod.md @@ -0,0 +1,19 @@ +# PaymentRequestCaptureMethod +> xendit.payment_request.model.PaymentRequestCaptureMethod + + + +## Enum + + + * `AUTOMATIC` (value: `"AUTOMATIC"`) + + * `MANUAL` (value: `"MANUAL"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestCardVerificationResults.md b/docs/payment_request/PaymentRequestCardVerificationResults.md new file mode 100644 index 00000000..b1e04374 --- /dev/null +++ b/docs/payment_request/PaymentRequestCardVerificationResults.md @@ -0,0 +1,15 @@ +# PaymentRequestCardVerificationResults +> xendit.payment_request.model.PaymentRequestCardVerificationResults + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **three_d_secure** | [**PaymentRequestCardVerificationResultsThreeDeeSecure**](PaymentRequestCardVerificationResultsThreeDeeSecure.md) | ☑️ | | | | +| **cvv_result** | **str, none_type** | | | | +| **address_verification_result** | **str, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestCardVerificationResultsThreeDeeSecure.md b/docs/payment_request/PaymentRequestCardVerificationResultsThreeDeeSecure.md new file mode 100644 index 00000000..c9f5310a --- /dev/null +++ b/docs/payment_request/PaymentRequestCardVerificationResultsThreeDeeSecure.md @@ -0,0 +1,17 @@ +# PaymentRequestCardVerificationResultsThreeDeeSecure +> xendit.payment_request.model.PaymentRequestCardVerificationResultsThreeDeeSecure + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **three_d_secure_flow** | **str** | | | | +| **eci_code** | **str** | | | | +| **three_d_secure_result** | **str** | | | | +| **three_d_secure_result_reason** | **str, none_type** | | | | +| **three_d_secure_version** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestChannelProperties.md b/docs/payment_request/PaymentRequestChannelProperties.md new file mode 100644 index 00000000..ebd6e7ab --- /dev/null +++ b/docs/payment_request/PaymentRequestChannelProperties.md @@ -0,0 +1,19 @@ +# PaymentRequestChannelProperties +> xendit.payment_request.model.PaymentRequestChannelProperties + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **success_return_url** | **str** | | URL where the end-customer is redirected if the authorization is successful | | +| **failure_return_url** | **str** | | URL where the end-customer is redirected if the authorization failed | | +| **cancel_return_url** | **str** | | URL where the end-customer is redirected if the authorization cancelled | | +| **redeem_points** | **str** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | | +| **require_auth** | **bool** | | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | | +| **merchant_id_tag** | **str** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | | +| **cardonfile_type** | **str, none_type** | | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestCountry.md b/docs/payment_request/PaymentRequestCountry.md new file mode 100644 index 00000000..cf5bcb99 --- /dev/null +++ b/docs/payment_request/PaymentRequestCountry.md @@ -0,0 +1,25 @@ +# PaymentRequestCountry +> xendit.payment_request.model.PaymentRequestCountry + + + +## Enum + + + * `ID` (value: `"ID"`) + + * `PH` (value: `"PH"`) + + * `VN` (value: `"VN"`) + + * `TH` (value: `"TH"`) + + * `MY` (value: `"MY"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestCurrency.md b/docs/payment_request/PaymentRequestCurrency.md new file mode 100644 index 00000000..d700476b --- /dev/null +++ b/docs/payment_request/PaymentRequestCurrency.md @@ -0,0 +1,27 @@ +# PaymentRequestCurrency +> xendit.payment_request.model.PaymentRequestCurrency + + + +## Enum + + + * `IDR` (value: `"IDR"`) + + * `PHP` (value: `"PHP"`) + + * `VND` (value: `"VND"`) + + * `THB` (value: `"THB"`) + + * `MYR` (value: `"MYR"`) + + * `USD` (value: `"USD"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestInitiator.md b/docs/payment_request/PaymentRequestInitiator.md new file mode 100644 index 00000000..196af727 --- /dev/null +++ b/docs/payment_request/PaymentRequestInitiator.md @@ -0,0 +1,19 @@ +# PaymentRequestInitiator +> xendit.payment_request.model.PaymentRequestInitiator + + + +## Enum + + + * `CUSTOMER` (value: `"CUSTOMER"`) + + * `MERCHANT` (value: `"MERCHANT"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestListResponse.md b/docs/payment_request/PaymentRequestListResponse.md new file mode 100644 index 00000000..88df1b61 --- /dev/null +++ b/docs/payment_request/PaymentRequestListResponse.md @@ -0,0 +1,14 @@ +# PaymentRequestListResponse +> xendit.payment_request.model.PaymentRequestListResponse + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **data** | [**[PaymentRequest]**](PaymentRequest.md) | ☑️ | | | | +| **has_more** | **bool** | ☑️ | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestParameters.md b/docs/payment_request/PaymentRequestParameters.md new file mode 100644 index 00000000..90282a5d --- /dev/null +++ b/docs/payment_request/PaymentRequestParameters.md @@ -0,0 +1,26 @@ +# PaymentRequestParameters +> xendit.payment_request.model.PaymentRequestParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | ☑️ | | | | +| **reference_id** | **str** | | | | +| **amount** | **float** | | | | +| **payment_method** | [**PaymentMethodParameters**](PaymentMethodParameters.md) | | | | +| **description** | **str, none_type** | | | | +| **capture_method** | [**PaymentRequestCaptureMethod**](PaymentRequestCaptureMethod.md) | | | | +| **initiator** | [**PaymentRequestInitiator**](PaymentRequestInitiator.md) | | | | +| **payment_method_id** | **str** | | | | +| **channel_properties** | [**PaymentRequestParametersChannelProperties**](PaymentRequestParametersChannelProperties.md) | | | | +| **shipping_information** | [**PaymentRequestShippingInformation**](PaymentRequestShippingInformation.md) | | | | +| **items** | [**PaymentRequestBasket**](PaymentRequestBasket.md) | | | | +| **customer_id** | **str, none_type** | | | | +| **customer** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestParametersChannelProperties.md b/docs/payment_request/PaymentRequestParametersChannelProperties.md new file mode 100644 index 00000000..5889c03b --- /dev/null +++ b/docs/payment_request/PaymentRequestParametersChannelProperties.md @@ -0,0 +1,20 @@ +# PaymentRequestParametersChannelProperties +> xendit.payment_request.model.PaymentRequestParametersChannelProperties + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **success_return_url** | **str** | | URL where the end-customer is redirected if the authorization is successful | | +| **failure_return_url** | **str** | | URL where the end-customer is redirected if the authorization failed | | +| **cancel_return_url** | **str** | | URL where the end-customer is redirected if the authorization cancelled | | +| **redeem_points** | **str** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | | +| **require_auth** | **bool** | | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | | +| **merchant_id_tag** | **str** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | | +| **cardonfile_type** | **str, none_type** | | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | | +| **cvv** | **str** | | Three digit code written on the back of the card (usually called CVV/CVN). | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestParametersChannelPropertiesAllOf.md b/docs/payment_request/PaymentRequestParametersChannelPropertiesAllOf.md new file mode 100644 index 00000000..b9eace28 --- /dev/null +++ b/docs/payment_request/PaymentRequestParametersChannelPropertiesAllOf.md @@ -0,0 +1,13 @@ +# PaymentRequestParametersChannelPropertiesAllOf +> xendit.payment_request.model.PaymentRequestParametersChannelPropertiesAllOf + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **cvv** | **str** | | Three digit code written on the back of the card (usually called CVV/CVN). | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestShippingInformation.md b/docs/payment_request/PaymentRequestShippingInformation.md new file mode 100644 index 00000000..4a71f7c9 --- /dev/null +++ b/docs/payment_request/PaymentRequestShippingInformation.md @@ -0,0 +1,18 @@ +# PaymentRequestShippingInformation +> xendit.payment_request.model.PaymentRequestShippingInformation + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **country** | **str** | ☑️ | | | | +| **street_line1** | **str** | | | | +| **street_line2** | **str** | | | | +| **city** | **str** | | | | +| **province_state** | **str** | | | | +| **postal_code** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/PaymentRequestStatus.md b/docs/payment_request/PaymentRequestStatus.md new file mode 100644 index 00000000..ea6ae153 --- /dev/null +++ b/docs/payment_request/PaymentRequestStatus.md @@ -0,0 +1,31 @@ +# PaymentRequestStatus +> xendit.payment_request.model.PaymentRequestStatus + + + +## Enum + + + * `PENDING` (value: `"PENDING"`) + + * `REQUIRES_ACTION` (value: `"REQUIRES_ACTION"`) + + * `CANCELED` (value: `"CANCELED"`) + + * `SUCCEEDED` (value: `"SUCCEEDED"`) + + * `FAILED` (value: `"FAILED"`) + + * `VOIDED` (value: `"VOIDED"`) + + * `UNKNOWN` (value: `"UNKNOWN"`) + + * `AWAITING_CAPTURE` (value: `"AWAITING_CAPTURE"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/QRCode.md b/docs/payment_request/QRCode.md new file mode 100644 index 00000000..76b511d0 --- /dev/null +++ b/docs/payment_request/QRCode.md @@ -0,0 +1,15 @@ +# QRCode +> xendit.payment_request.model.QRCode + +QRCode Payment Method Details + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | | | +| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/QRCodeChannelCode.md b/docs/payment_request/QRCodeChannelCode.md new file mode 100644 index 00000000..14c45709 --- /dev/null +++ b/docs/payment_request/QRCodeChannelCode.md @@ -0,0 +1,24 @@ +# QRCodeChannelCode +> xendit.payment_request.model.QRCodeChannelCode + +QR Code Channel Code + + +## Enum + + + * `DANA` (value: `"DANA"`) + + * `RCBC` (value: `"RCBC"`) + + * `LINKAJA` (value: `"LINKAJA"`) + + * `PROMPTPAY` (value: `"PROMPTPAY"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/QRCodeChannelProperties.md b/docs/payment_request/QRCodeChannelProperties.md new file mode 100644 index 00000000..9180e942 --- /dev/null +++ b/docs/payment_request/QRCodeChannelProperties.md @@ -0,0 +1,15 @@ +# QRCodeChannelProperties +> xendit.payment_request.model.QRCodeChannelProperties + +QR Code Channel Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **qr_string** | **str** | | | | +| **expires_at** | **datetime** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/QRCodeParameters.md b/docs/payment_request/QRCodeParameters.md new file mode 100644 index 00000000..3a125f28 --- /dev/null +++ b/docs/payment_request/QRCodeParameters.md @@ -0,0 +1,14 @@ +# QRCodeParameters +> xendit.payment_request.model.QRCodeParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | | | +| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/VirtualAccount.md b/docs/payment_request/VirtualAccount.md new file mode 100644 index 00000000..6d34b49d --- /dev/null +++ b/docs/payment_request/VirtualAccount.md @@ -0,0 +1,21 @@ +# VirtualAccount +> xendit.payment_request.model.VirtualAccount + +Virtual Account Payment Method Details + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | ☑️ | | | | +| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | ☑️ | | | | +| **min_amount** | **float, none_type** | | | | +| **max_amount** | **float, none_type** | | | | +| **amount** | **float, none_type** | | | | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | | | +| **alternative_display_types** | **[str]** | | Alternative display requested for the virtual account | | +| **alternative_displays** | [**[VirtualAccountAlternativeDisplay]**](VirtualAccountAlternativeDisplay.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/VirtualAccountAllOf.md b/docs/payment_request/VirtualAccountAllOf.md new file mode 100644 index 00000000..d66664f6 --- /dev/null +++ b/docs/payment_request/VirtualAccountAllOf.md @@ -0,0 +1,13 @@ +# VirtualAccountAllOf +> xendit.payment_request.model.VirtualAccountAllOf + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **alternative_displays** | [**[VirtualAccountAlternativeDisplay]**](VirtualAccountAlternativeDisplay.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/VirtualAccountAlternativeDisplay.md b/docs/payment_request/VirtualAccountAlternativeDisplay.md new file mode 100644 index 00000000..ac8d3126 --- /dev/null +++ b/docs/payment_request/VirtualAccountAlternativeDisplay.md @@ -0,0 +1,15 @@ +# VirtualAccountAlternativeDisplay +> xendit.payment_request.model.VirtualAccountAlternativeDisplay + +Alternative Display Object + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | **str** | | Type of the alternative display [readonly] | "QR_STRING" | +| **data** | **str** | | Data payload of the given alternative display | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/VirtualAccountChannelCode.md b/docs/payment_request/VirtualAccountChannelCode.md new file mode 100644 index 00000000..23f35de1 --- /dev/null +++ b/docs/payment_request/VirtualAccountChannelCode.md @@ -0,0 +1,48 @@ +# VirtualAccountChannelCode +> xendit.payment_request.model.VirtualAccountChannelCode + +Virtual Account Channel Code + + +## Enum + + + * `BCA` (value: `"BCA"`) + + * `BJB` (value: `"BJB"`) + + * `BNI` (value: `"BNI"`) + + * `BRI` (value: `"BRI"`) + + * `MANDIRI` (value: `"MANDIRI"`) + + * `PERMATA` (value: `"PERMATA"`) + + * `BSI` (value: `"BSI"`) + + * `CIMB` (value: `"CIMB"`) + + * `SAHABAT_SAMPOERNA` (value: `"SAHABAT_SAMPOERNA"`) + + * `ARTAJASA` (value: `"ARTAJASA"`) + + * `PV` (value: `"PV"`) + + * `VIETCAPITAL` (value: `"VIETCAPITAL"`) + + * `WOORI` (value: `"WOORI"`) + + * `MSB` (value: `"MSB"`) + + * `STANDARD_CHARTERED` (value: `"STANDARD_CHARTERED"`) + + * `AMBANK` (value: `"AMBANK"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/VirtualAccountChannelProperties.md b/docs/payment_request/VirtualAccountChannelProperties.md new file mode 100644 index 00000000..f9385236 --- /dev/null +++ b/docs/payment_request/VirtualAccountChannelProperties.md @@ -0,0 +1,17 @@ +# VirtualAccountChannelProperties +> xendit.payment_request.model.VirtualAccountChannelProperties + +Virtual Account Channel Properties + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **customer_name** | **str** | ☑️ | Name of customer. | | | +| **virtual_account_number** | **str** | | You can assign specific Virtual Account number using this parameter. If you do not send one, one will be picked at random. Make sure the number you specify is within your Virtual Account range. | | +| **expires_at** | **datetime** | | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | | +| **suggested_amount** | **float** | | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payment_request/VirtualAccountParameters.md b/docs/payment_request/VirtualAccountParameters.md new file mode 100644 index 00000000..b4e7e57b --- /dev/null +++ b/docs/payment_request/VirtualAccountParameters.md @@ -0,0 +1,19 @@ +# VirtualAccountParameters +> xendit.payment_request.model.VirtualAccountParameters + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | ☑️ | | | | +| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | ☑️ | | | | +| **min_amount** | **float, none_type** | | | | +| **max_amount** | **float, none_type** | | | | +| **amount** | **float, none_type** | | | | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | | | +| **alternative_display_types** | **[str]** | | Alternative display requested for the virtual account | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payout/Channel.md b/docs/payout/Channel.md new file mode 100644 index 00000000..5e0dfcf8 --- /dev/null +++ b/docs/payout/Channel.md @@ -0,0 +1,18 @@ +# Channel +> xendit.payout.model.Channel + +Channel information where you can send the money to + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | **str** | ☑️ | Destination channel to send the money to, prefixed by ISO-3166 country code | | | +| **channel_category** | [**ChannelCategory**](ChannelCategory.md) | ☑️ | | | | +| **currency** | **str** | ☑️ | Currency of the destination channel using ISO-4217 currency code | | | +| **channel_name** | **str** | ☑️ | Name of the destination channel | | | +| **amount_limits** | [**ChannelAmountLimits**](ChannelAmountLimits.md) | ☑️ | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payout/ChannelAccountType.md b/docs/payout/ChannelAccountType.md new file mode 100644 index 00000000..01b679c8 --- /dev/null +++ b/docs/payout/ChannelAccountType.md @@ -0,0 +1,26 @@ +# ChannelAccountType +> xendit.payout.model.ChannelAccountType + +Available account types (applicable for MY_DUITNOW) + + +## Enum + + + * `NATIONAL_ID` (value: `"NATIONAL_ID"`) + + * `MOBILE_NO` (value: `"MOBILE_NO"`) + + * `PASSPORT` (value: `"PASSPORT"`) + + * `BUSINESS_REGISTRATION` (value: `"BUSINESS_REGISTRATION"`) + + * `BANK_ACCOUNT` (value: `"BANK_ACCOUNT"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payout/ChannelAmountLimits.md b/docs/payout/ChannelAmountLimits.md new file mode 100644 index 00000000..93328a6a --- /dev/null +++ b/docs/payout/ChannelAmountLimits.md @@ -0,0 +1,16 @@ +# ChannelAmountLimits +> xendit.payout.model.ChannelAmountLimits + +Supported amount ranges for payouts to this channel + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **minimum** | **float** | ☑️ | Lowest amount supported for a payout to this channel | | | +| **maximum** | **float** | ☑️ | Highest amount supported for a payout to this channel | | | +| **minimum_increment** | **float** | ☑️ | Supported increments | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payout/ChannelCategory.md b/docs/payout/ChannelCategory.md new file mode 100644 index 00000000..b688de63 --- /dev/null +++ b/docs/payout/ChannelCategory.md @@ -0,0 +1,22 @@ +# ChannelCategory +> xendit.payout.model.ChannelCategory + +Category of channel code, as some channels might require more fields during processing + + +## Enum + + + * `BANK` (value: `"BANK"`) + + * `EWALLET` (value: `"EWALLET"`) + + * `OTC` (value: `"OTC"`) + + * `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`) + +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. + +[[Back to README]](../../README.md) + + diff --git a/docs/payout/CreatePayoutRequest.md b/docs/payout/CreatePayoutRequest.md new file mode 100644 index 00000000..70d190b6 --- /dev/null +++ b/docs/payout/CreatePayoutRequest.md @@ -0,0 +1,21 @@ +# CreatePayoutRequest +> xendit.payout.model.CreatePayoutRequest + +Information needed by Xendit to send money to the destination channel provided + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **reference_id** | **str** | ☑️ | A client defined payout identifier | | | +| **channel_code** | **str** | ☑️ | Channel code of selected destination bank or e-wallet | | | +| **channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | ☑️ | | | | +| **amount** | **float** | ☑️ | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | | | +| **currency** | **str** | ☑️ | Currency of the destination channel using ISO-4217 currency code | | | +| **description** | **str** | | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | | +| **receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | Object of additional information you may use | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payout/DigitalPayoutChannelProperties.md b/docs/payout/DigitalPayoutChannelProperties.md new file mode 100644 index 00000000..dd1fb59a --- /dev/null +++ b/docs/payout/DigitalPayoutChannelProperties.md @@ -0,0 +1,16 @@ +# DigitalPayoutChannelProperties +> xendit.payout.model.DigitalPayoutChannelProperties + +Channel information for digital destinations (banks, e-wallets) + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **account_number** | **str** | ☑️ | Registered account number | | | +| **account_holder_name** | **str, none_type** | | Registered account name | | +| **account_type** | [**ChannelAccountType**](ChannelAccountType.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payout/Error.md b/docs/payout/Error.md new file mode 100644 index 00000000..2ae6e4af --- /dev/null +++ b/docs/payout/Error.md @@ -0,0 +1,15 @@ +# Error +> xendit.payout.model.Error + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | ☑️ | Specific error encountered when processing the request, can refer to the API documentation on proper handling of each available error code https://developers.xendit.co/api-reference/#payouts | | | +| **message** | **str** | ☑️ | Human readable error message | | | +| **errors** | [**[ErrorErrorsInner]**](ErrorErrorsInner.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payout/ErrorErrorsInner.md b/docs/payout/ErrorErrorsInner.md new file mode 100644 index 00000000..2430b165 --- /dev/null +++ b/docs/payout/ErrorErrorsInner.md @@ -0,0 +1,14 @@ +# ErrorErrorsInner +> xendit.payout.model.ErrorErrorsInner + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **path** | **str** | ☑️ | Precise location of the error | | | +| **message** | **str** | ☑️ | Specific description of the error | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payout/GetPayouts200Response.md b/docs/payout/GetPayouts200Response.md new file mode 100644 index 00000000..2f4237ac --- /dev/null +++ b/docs/payout/GetPayouts200Response.md @@ -0,0 +1,15 @@ +# GetPayouts200Response +> xendit.payout.model.GetPayouts200Response + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **data** | [**[GetPayouts200ResponseDataInner]**](GetPayouts200ResponseDataInner.md) | | | | +| **has_more** | **bool** | | | | +| **links** | [**GetPayouts200ResponseLinks**](GetPayouts200ResponseLinks.md) | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payout/GetPayouts200ResponseDataInner.md b/docs/payout/GetPayouts200ResponseDataInner.md new file mode 100644 index 00000000..ed5d122c --- /dev/null +++ b/docs/payout/GetPayouts200ResponseDataInner.md @@ -0,0 +1,27 @@ +# GetPayouts200ResponseDataInner +> xendit.payout.model.GetPayouts200ResponseDataInner + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **description** | **str** | | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | | +| **receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | Object of additional information you may use | | +| **failure_code** | **str** | | If the Payout failed, we include a failure code for more details on the failure. | | +| **estimated_arrival_time** | **datetime** | | Our estimated time on to when your payout is reflected to the destination account | | +| **reference_id** | **str** | | A client defined payout identifier | | +| **channel_code** | **str** | | Channel code of selected destination bank or e-wallet | | +| **channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | | | | +| **amount** | **float** | | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | | +| **currency** | **str** | | Currency of the destination channel using ISO-4217 currency code | | +| **id** | **str** | | Xendit-generated unique identifier for each payout | | +| **created** | **datetime** | | The time payout was created on Xendit's system, in ISO 8601 format | | +| **updated** | **datetime** | | The time payout was last updated on Xendit's system, in ISO 8601 format | | +| **business_id** | **str** | | Xendit Business ID | | +| **status** | **str** | | Status of payout | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payout/GetPayouts200ResponseLinks.md b/docs/payout/GetPayouts200ResponseLinks.md new file mode 100644 index 00000000..915157fd --- /dev/null +++ b/docs/payout/GetPayouts200ResponseLinks.md @@ -0,0 +1,15 @@ +# GetPayouts200ResponseLinks +> xendit.payout.model.GetPayouts200ResponseLinks + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **href** | **str** | | | | +| **rel** | **str** | | | | +| **method** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payout/Payout.md b/docs/payout/Payout.md new file mode 100644 index 00000000..43c01554 --- /dev/null +++ b/docs/payout/Payout.md @@ -0,0 +1,27 @@ +# Payout +> xendit.payout.model.Payout + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **reference_id** | **str** | ☑️ | A client defined payout identifier | | | +| **channel_code** | **str** | ☑️ | Channel code of selected destination bank or e-wallet | | | +| **channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | ☑️ | | | | +| **amount** | **float** | ☑️ | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | | | +| **currency** | **str** | ☑️ | Currency of the destination channel using ISO-4217 currency code | | | +| **id** | **str** | ☑️ | Xendit-generated unique identifier for each payout | | | +| **created** | **datetime** | ☑️ | The time payout was created on Xendit's system, in ISO 8601 format | | | +| **updated** | **datetime** | ☑️ | The time payout was last updated on Xendit's system, in ISO 8601 format | | | +| **business_id** | **str** | ☑️ | Xendit Business ID | | | +| **status** | **str** | ☑️ | Status of payout | | | +| **description** | **str** | | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | | +| **receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | Object of additional information you may use | | +| **failure_code** | **str** | | If the Payout failed, we include a failure code for more details on the failure. | | +| **estimated_arrival_time** | **datetime** | | Our estimated time on to when your payout is reflected to the destination account | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payout/PayoutAllOf.md b/docs/payout/PayoutAllOf.md new file mode 100644 index 00000000..2e441836 --- /dev/null +++ b/docs/payout/PayoutAllOf.md @@ -0,0 +1,19 @@ +# PayoutAllOf +> xendit.payout.model.PayoutAllOf + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **str** | ☑️ | Xendit-generated unique identifier for each payout | | | +| **created** | **datetime** | ☑️ | The time payout was created on Xendit's system, in ISO 8601 format | | | +| **updated** | **datetime** | ☑️ | The time payout was last updated on Xendit's system, in ISO 8601 format | | | +| **business_id** | **str** | ☑️ | Xendit Business ID | | | +| **status** | **str** | ☑️ | Status of payout | | | +| **failure_code** | **str** | | If the Payout failed, we include a failure code for more details on the failure. | | +| **estimated_arrival_time** | **datetime** | | Our estimated time on to when your payout is reflected to the destination account | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/payout/ReceiptNotification.md b/docs/payout/ReceiptNotification.md new file mode 100644 index 00000000..0eea1a7b --- /dev/null +++ b/docs/payout/ReceiptNotification.md @@ -0,0 +1,16 @@ +# ReceiptNotification +> xendit.payout.model.ReceiptNotification + +Additional notification for completed payout + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **email_to** | **[str], none_type** | | Valid email address to send the payout receipt | | +| **email_cc** | **[str], none_type** | | Valid email address to cc the payout receipt | | +| **email_bcc** | **[str], none_type** | | Valid email address to bcc the payout receipt | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/refund/CreateRefund.md b/docs/refund/CreateRefund.md new file mode 100644 index 00000000..dd15b1b9 --- /dev/null +++ b/docs/refund/CreateRefund.md @@ -0,0 +1,19 @@ +# CreateRefund +> xendit.refund.model.CreateRefund + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **payment_request_id** | **str** | | | | +| **invoice_id** | **str** | | | | +| **reference_id** | **str** | | | | +| **amount** | **float** | | | | +| **currency** | **str** | | | | +| **reason** | **str** | | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/refund/CreateRefund400Response.md b/docs/refund/CreateRefund400Response.md new file mode 100644 index 00000000..71727244 --- /dev/null +++ b/docs/refund/CreateRefund400Response.md @@ -0,0 +1,14 @@ +# CreateRefund400Response +> xendit.refund.model.CreateRefund400Response + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | | +| **message** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/refund/CreateRefund403Response.md b/docs/refund/CreateRefund403Response.md new file mode 100644 index 00000000..ddb84da3 --- /dev/null +++ b/docs/refund/CreateRefund403Response.md @@ -0,0 +1,14 @@ +# CreateRefund403Response +> xendit.refund.model.CreateRefund403Response + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | "UNAUTHORIZED" | +| **message** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/refund/CreateRefund404Response.md b/docs/refund/CreateRefund404Response.md new file mode 100644 index 00000000..707cce78 --- /dev/null +++ b/docs/refund/CreateRefund404Response.md @@ -0,0 +1,14 @@ +# CreateRefund404Response +> xendit.refund.model.CreateRefund404Response + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | "DATA_NOT_FOUND" | +| **message** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/refund/CreateRefund409Response.md b/docs/refund/CreateRefund409Response.md new file mode 100644 index 00000000..6cdc46e1 --- /dev/null +++ b/docs/refund/CreateRefund409Response.md @@ -0,0 +1,14 @@ +# CreateRefund409Response +> xendit.refund.model.CreateRefund409Response + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | | +| **message** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/refund/CreateRefund503Response.md b/docs/refund/CreateRefund503Response.md new file mode 100644 index 00000000..800595f6 --- /dev/null +++ b/docs/refund/CreateRefund503Response.md @@ -0,0 +1,14 @@ +# CreateRefund503Response +> xendit.refund.model.CreateRefund503Response + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | | +| **message** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/refund/GetAllRefundsDefaultResponse.md b/docs/refund/GetAllRefundsDefaultResponse.md new file mode 100644 index 00000000..d0c0eac3 --- /dev/null +++ b/docs/refund/GetAllRefundsDefaultResponse.md @@ -0,0 +1,14 @@ +# GetAllRefundsDefaultResponse +> xendit.refund.model.GetAllRefundsDefaultResponse + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **str** | | | | +| **message** | **str** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/refund/Refund.md b/docs/refund/Refund.md new file mode 100644 index 00000000..fc040e71 --- /dev/null +++ b/docs/refund/Refund.md @@ -0,0 +1,24 @@ +# Refund +> xendit.refund.model.Refund + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **str** | | | | +| **payment_request_id** | **str** | | | | +| **amount** | **float** | | | | +| **channel_code** | **str** | | | | +| **country** | **str** | | | | +| **currency** | **str** | | | | +| **reference_id** | **str, none_type** | | | | +| **failure_code** | **str, none_type** | | | | +| **refund_fee_amount** | **float, none_type** | | | | +| **created** | **str** | | | | +| **updated** | **str** | | | | +| **metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/refund/RefundList.md b/docs/refund/RefundList.md new file mode 100644 index 00000000..5460589b --- /dev/null +++ b/docs/refund/RefundList.md @@ -0,0 +1,14 @@ +# RefundList +> xendit.refund.model.RefundList + + +## Properties +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **data** | [**[Refund]**](Refund.md) | ☑️ | | | | +| **has_more** | **bool** | | | | + + +[[Back to README]](../../README.md) + + diff --git a/docs/header.jpg b/images/header.jpg similarity index 100% rename from docs/header.jpg rename to images/header.jpg diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..9caec711 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,34 @@ +[tool.poetry] +name = "xendit-python" +version = "3.6.0" +description = "Xendit REST API Client for Python - Invoice, Payment Request, Payment Method, Refund, Balance, Transaction, Customer, and Payout Services https://xendit.github.io/apireference/" +authors = ["DevX Team "] +license = "MIT" +repository = "https://github.com/xendit/xendit-python" +readme = "README.md" +keywords = ["xendit", "sdk"] +classifiers = [ + "Intended Audience :: Developers", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3.10" +] +packages = [ + { include = "xendit" } +] + +[tool.poetry.dependencies] +python = "^3.10" +requests = "^2.23.0" + +[tool.poetry.dev-dependencies] +black = "^19.10b0" +pytest = "^5.4.3" +flake8 = "^3.8.3" +pytest-mock = "^3.1.1" +pre-commit = "^2.5.1" +responses = "^0.10.15" +pytest-cov = "^2.10.0" + +[build-system] +requires = ["poetry-core>=1.0.0a5"] +build-backend = "poetry.core.masonry.api" \ No newline at end of file diff --git a/setup.py b/setup.py index 060570db..e050ceca 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,12 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ from setuptools import setup, find_packages # noqa: H301 NAME = "xendit" -VERSION = "3.4.0" +VERSION = "3.6.0" # To install the library, run the following # # python setup.py install diff --git a/test/test_balance.py b/test/test_balance.py index 970d86ca..00b05e0a 100644 --- a/test/test_balance.py +++ b/test/test_balance.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_balance_api.py b/test/test_balance_api.py index 113d9897..b34421b8 100644 --- a/test/test_balance_api.py +++ b/test/test_balance_api.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_billing_information.py b/test/test_billing_information.py index 8eefb474..ae4a70e3 100644 --- a/test/test_billing_information.py +++ b/test/test_billing_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_capture.py b/test/test_capture.py index d7e3dada..67b5fae3 100644 --- a/test/test_capture.py +++ b/test/test_capture.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_capture_list.py b/test/test_capture_list.py index c243aea3..73f1c73e 100644 --- a/test/test_capture_list.py +++ b/test/test_capture_list.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_capture_list_response.py b/test/test_capture_list_response.py index 5379cf2f..e7e7bd5e 100644 --- a/test/test_capture_list_response.py +++ b/test/test_capture_list_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_capture_parameters.py b/test/test_capture_parameters.py index f9f2ecab..162b05ff 100644 --- a/test/test_capture_parameters.py +++ b/test/test_capture_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_card.py b/test/test_card.py index 202b73a4..408df511 100644 --- a/test/test_card.py +++ b/test/test_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_card_channel_properties.py b/test/test_card_channel_properties.py index c4cd53ce..41ea4cc6 100644 --- a/test/test_card_channel_properties.py +++ b/test/test_card_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_card_information.py b/test/test_card_information.py index f8ebb0b2..24106cdd 100644 --- a/test/test_card_information.py +++ b/test/test_card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_card_parameters.py b/test/test_card_parameters.py index 3d5bf2e4..9fbb7667 100644 --- a/test/test_card_parameters.py +++ b/test/test_card_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_card_parameters_card_information.py b/test/test_card_parameters_card_information.py index ec8042c3..7fa78efa 100644 --- a/test/test_card_parameters_card_information.py +++ b/test/test_card_parameters_card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_card_verification_results.py b/test/test_card_verification_results.py index db032502..7d98e5d6 100644 --- a/test/test_card_verification_results.py +++ b/test/test_card_verification_results.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_card_verification_results_three_d_secure.py b/test/test_card_verification_results_three_d_secure.py index d0c429e6..ddf2749d 100644 --- a/test/test_card_verification_results_three_d_secure.py +++ b/test/test_card_verification_results_three_d_secure.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_channels_categories.py b/test/test_channels_categories.py index 2c8d3739..f97aedf6 100644 --- a/test/test_channels_categories.py +++ b/test/test_channels_categories.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_create_payment_method409_response.py b/test/test_create_payment_method409_response.py index 2013789a..9d156b3e 100644 --- a/test/test_create_payment_method409_response.py +++ b/test/test_create_payment_method409_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_create_payment_method503_response.py b/test/test_create_payment_method503_response.py index ee98515c..172b10f4 100644 --- a/test/test_create_payment_method503_response.py +++ b/test/test_create_payment_method503_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_currency.py b/test/test_currency.py index bcdadeb3..caba098c 100644 --- a/test/test_currency.py +++ b/test/test_currency.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_date_range_filter.py b/test/test_date_range_filter.py index 91b95a84..e58a048c 100644 --- a/test/test_date_range_filter.py +++ b/test/test_date_range_filter.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_direct_debit_all_of.py b/test/test_direct_debit_all_of.py index e6a3a4cf..d7873e17 100644 --- a/test/test_direct_debit_all_of.py +++ b/test/test_direct_debit_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_direct_debit_bank_account.py b/test/test_direct_debit_bank_account.py index 718a94b9..d3b50464 100644 --- a/test/test_direct_debit_bank_account.py +++ b/test/test_direct_debit_bank_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_direct_debit_channel_code.py b/test/test_direct_debit_channel_code.py index 76230407..0030f831 100644 --- a/test/test_direct_debit_channel_code.py +++ b/test/test_direct_debit_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_direct_debit_channel_properties.py b/test/test_direct_debit_channel_properties.py index a3d5964b..88017a4b 100644 --- a/test/test_direct_debit_channel_properties.py +++ b/test/test_direct_debit_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_direct_debit_channel_properties_bank_account.py b/test/test_direct_debit_channel_properties_bank_account.py index 65818763..3d7e4b13 100644 --- a/test/test_direct_debit_channel_properties_bank_account.py +++ b/test/test_direct_debit_channel_properties_bank_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_direct_debit_channel_properties_bank_redirect.py b/test/test_direct_debit_channel_properties_bank_redirect.py index 0d2a7e3f..d544899d 100644 --- a/test/test_direct_debit_channel_properties_bank_redirect.py +++ b/test/test_direct_debit_channel_properties_bank_redirect.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_direct_debit_channel_properties_debit_card.py b/test/test_direct_debit_channel_properties_debit_card.py index cf5a8e0d..c79d80ec 100644 --- a/test/test_direct_debit_channel_properties_debit_card.py +++ b/test/test_direct_debit_channel_properties_debit_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_direct_debit_debit_card.py b/test/test_direct_debit_debit_card.py index afa9318b..4af4e34e 100644 --- a/test/test_direct_debit_debit_card.py +++ b/test/test_direct_debit_debit_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_direct_debit_parameters.py b/test/test_direct_debit_parameters.py index 931e4c51..2e3ecb26 100644 --- a/test/test_direct_debit_parameters.py +++ b/test/test_direct_debit_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_e_wallet.py b/test/test_e_wallet.py index eeea99aa..b85a75e8 100644 --- a/test/test_e_wallet.py +++ b/test/test_e_wallet.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_e_wallet_account.py b/test/test_e_wallet_account.py index 3bd7aa7d..e65b3d7a 100644 --- a/test/test_e_wallet_account.py +++ b/test/test_e_wallet_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_e_wallet_all_of.py b/test/test_e_wallet_all_of.py index fd702628..3f8eda7f 100644 --- a/test/test_e_wallet_all_of.py +++ b/test/test_e_wallet_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_e_wallet_channel_code.py b/test/test_e_wallet_channel_code.py index c2fc01c1..cdfe24c7 100644 --- a/test/test_e_wallet_channel_code.py +++ b/test/test_e_wallet_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_e_wallet_channel_properties.py b/test/test_e_wallet_channel_properties.py index de46eaf9..3639ae84 100644 --- a/test/test_e_wallet_channel_properties.py +++ b/test/test_e_wallet_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_e_wallet_parameters.py b/test/test_e_wallet_parameters.py index 4dc5fcbd..3b95e264 100644 --- a/test/test_e_wallet_parameters.py +++ b/test/test_e_wallet_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_fee_response.py b/test/test_fee_response.py index f614de2c..fb109c7d 100644 --- a/test/test_fee_response.py +++ b/test/test_fee_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_get_all_payment_methods400_response.py b/test/test_get_all_payment_methods400_response.py index df296b1a..7b1a37d9 100644 --- a/test/test_get_all_payment_methods400_response.py +++ b/test/test_get_all_payment_methods400_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_get_all_payment_methods403_response.py b/test/test_get_all_payment_methods403_response.py index 118bbf35..d38331b1 100644 --- a/test/test_get_all_payment_methods403_response.py +++ b/test/test_get_all_payment_methods403_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_get_all_payment_methods404_response.py b/test/test_get_all_payment_methods404_response.py index c891f2bc..ee415fe6 100644 --- a/test/test_get_all_payment_methods404_response.py +++ b/test/test_get_all_payment_methods404_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_get_all_payment_methods_default_response.py b/test/test_get_all_payment_methods_default_response.py index a2e9932a..cb849a02 100644 --- a/test/test_get_all_payment_methods_default_response.py +++ b/test/test_get_all_payment_methods_default_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_link_item.py b/test/test_link_item.py index 38aefe4f..6e761d18 100644 --- a/test/test_link_item.py +++ b/test/test_link_item.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_over_the_counter.py b/test/test_over_the_counter.py index 7009a2ba..8f3e7962 100644 --- a/test/test_over_the_counter.py +++ b/test/test_over_the_counter.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_over_the_counter_channel_code.py b/test/test_over_the_counter_channel_code.py index 64fa3a33..0ddb6449 100644 --- a/test/test_over_the_counter_channel_code.py +++ b/test/test_over_the_counter_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_over_the_counter_channel_properties.py b/test/test_over_the_counter_channel_properties.py index 1b404610..d8e1edda 100644 --- a/test/test_over_the_counter_channel_properties.py +++ b/test/test_over_the_counter_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_over_the_counter_channel_properties_update.py b/test/test_over_the_counter_channel_properties_update.py index 59cb6c17..7cbe1d31 100644 --- a/test/test_over_the_counter_channel_properties_update.py +++ b/test/test_over_the_counter_channel_properties_update.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_over_the_counter_parameters.py b/test/test_over_the_counter_parameters.py index 8c603722..dff153f5 100644 --- a/test/test_over_the_counter_parameters.py +++ b/test/test_over_the_counter_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_over_the_counter_update_parameters.py b/test/test_over_the_counter_update_parameters.py index ed788ffa..e8588149 100644 --- a/test/test_over_the_counter_update_parameters.py +++ b/test/test_over_the_counter_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_payment_method.py b/test/test_payment_method.py index feb3e14e..ae722210 100644 --- a/test/test_payment_method.py +++ b/test/test_payment_method.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_payment_method_action.py b/test/test_payment_method_action.py index 52cd3fbb..99dbc78c 100644 --- a/test/test_payment_method_action.py +++ b/test/test_payment_method_action.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_payment_method_api.py b/test/test_payment_method_api.py index 0cae02fc..67db12a6 100644 --- a/test/test_payment_method_api.py +++ b/test/test_payment_method_api.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_payment_method_auth_parameters.py b/test/test_payment_method_auth_parameters.py index cbfccea4..18a6a137 100644 --- a/test/test_payment_method_auth_parameters.py +++ b/test/test_payment_method_auth_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_payment_method_country.py b/test/test_payment_method_country.py index 3be887d8..028acce7 100644 --- a/test/test_payment_method_country.py +++ b/test/test_payment_method_country.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_payment_method_expire_parameters.py b/test/test_payment_method_expire_parameters.py index 319a7a26..13e63f54 100644 --- a/test/test_payment_method_expire_parameters.py +++ b/test/test_payment_method_expire_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_payment_method_list.py b/test/test_payment_method_list.py index f7803ac5..054ec224 100644 --- a/test/test_payment_method_list.py +++ b/test/test_payment_method_list.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_payment_method_parameters.py b/test/test_payment_method_parameters.py index cbe976fa..292f10b2 100644 --- a/test/test_payment_method_parameters.py +++ b/test/test_payment_method_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_payment_method_reusability.py b/test/test_payment_method_reusability.py index 5e1207d0..19dc4756 100644 --- a/test/test_payment_method_reusability.py +++ b/test/test_payment_method_reusability.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_payment_method_status.py b/test/test_payment_method_status.py index 537b1535..31708fee 100644 --- a/test/test_payment_method_status.py +++ b/test/test_payment_method_status.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_payment_method_type.py b/test/test_payment_method_type.py index 678cc140..a80a3d60 100644 --- a/test/test_payment_method_type.py +++ b/test/test_payment_method_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_payment_method_update_parameters.py b/test/test_payment_method_update_parameters.py index 602076b8..be8e00f7 100644 --- a/test/test_payment_method_update_parameters.py +++ b/test/test_payment_method_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_payment_request.py b/test/test_payment_request.py index 8603cf84..ff8ba1da 100644 --- a/test/test_payment_request.py +++ b/test/test_payment_request.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_action.py b/test/test_payment_request_action.py index 367089aa..da78421a 100644 --- a/test/test_payment_request_action.py +++ b/test/test_payment_request_action.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_api.py b/test/test_payment_request_api.py index bac0710d..b443219b 100644 --- a/test/test_payment_request_api.py +++ b/test/test_payment_request_api.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_auth_parameters.py b/test/test_payment_request_auth_parameters.py index aca870e5..5575ba9c 100644 --- a/test/test_payment_request_auth_parameters.py +++ b/test/test_payment_request_auth_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_basket.py b/test/test_payment_request_basket.py index e6cbb5ad..8a49c424 100644 --- a/test/test_payment_request_basket.py +++ b/test/test_payment_request_basket.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_basket_item.py b/test/test_payment_request_basket_item.py index c20a6b0c..ac8f289b 100644 --- a/test/test_payment_request_basket_item.py +++ b/test/test_payment_request_basket_item.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_capture_method.py b/test/test_payment_request_capture_method.py index 7c1c73d0..49c95b7e 100644 --- a/test/test_payment_request_capture_method.py +++ b/test/test_payment_request_capture_method.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_card_verification_results.py b/test/test_payment_request_card_verification_results.py index f5784be0..fd262a98 100644 --- a/test/test_payment_request_card_verification_results.py +++ b/test/test_payment_request_card_verification_results.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_card_verification_results_three_dee_secure.py b/test/test_payment_request_card_verification_results_three_dee_secure.py index f5f803ab..8c317298 100644 --- a/test/test_payment_request_card_verification_results_three_dee_secure.py +++ b/test/test_payment_request_card_verification_results_three_dee_secure.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_channel_properties.py b/test/test_payment_request_channel_properties.py index 8af6c369..19c862f4 100644 --- a/test/test_payment_request_channel_properties.py +++ b/test/test_payment_request_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_country.py b/test/test_payment_request_country.py index f2b96a4a..5608b9eb 100644 --- a/test/test_payment_request_country.py +++ b/test/test_payment_request_country.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_currency.py b/test/test_payment_request_currency.py index 3aa96c85..0f043ce3 100644 --- a/test/test_payment_request_currency.py +++ b/test/test_payment_request_currency.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_initiator.py b/test/test_payment_request_initiator.py index 9f10995a..1b91557e 100644 --- a/test/test_payment_request_initiator.py +++ b/test/test_payment_request_initiator.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_list_response.py b/test/test_payment_request_list_response.py index a6801167..7ec882c8 100644 --- a/test/test_payment_request_list_response.py +++ b/test/test_payment_request_list_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_parameters.py b/test/test_payment_request_parameters.py index e63ea346..06554f45 100644 --- a/test/test_payment_request_parameters.py +++ b/test/test_payment_request_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_parameters_channel_properties.py b/test/test_payment_request_parameters_channel_properties.py index 339e3552..925e6c4b 100644 --- a/test/test_payment_request_parameters_channel_properties.py +++ b/test/test_payment_request_parameters_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_parameters_channel_properties_all_of.py b/test/test_payment_request_parameters_channel_properties_all_of.py index 1b5f5551..90cc78d5 100644 --- a/test/test_payment_request_parameters_channel_properties_all_of.py +++ b/test/test_payment_request_parameters_channel_properties_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_shipping_information.py b/test/test_payment_request_shipping_information.py index ebdbf8d5..41498a39 100644 --- a/test/test_payment_request_shipping_information.py +++ b/test/test_payment_request_shipping_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_payment_request_status.py b/test/test_payment_request_status.py index 9360fe33..6a3682b8 100644 --- a/test/test_payment_request_status.py +++ b/test/test_payment_request_status.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/test/test_qr_code_channel_code.py b/test/test_qr_code_channel_code.py index bf010269..1734949e 100644 --- a/test/test_qr_code_channel_code.py +++ b/test/test_qr_code_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_qr_code_channel_properties.py b/test/test_qr_code_channel_properties.py index 754b4dc3..2629d301 100644 --- a/test/test_qr_code_channel_properties.py +++ b/test/test_qr_code_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_qr_code_parameters.py b/test/test_qr_code_parameters.py index 7adf5094..6ebc35b2 100644 --- a/test/test_qr_code_parameters.py +++ b/test/test_qr_code_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_server_error.py b/test/test_server_error.py index 1d995010..c371e42e 100644 --- a/test/test_server_error.py +++ b/test/test_server_error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_simulate_payment_request.py b/test/test_simulate_payment_request.py index eaed17d6..9eb63695 100644 --- a/test/test_simulate_payment_request.py +++ b/test/test_simulate_payment_request.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_tokenized_card_information.py b/test/test_tokenized_card_information.py index 43802f5c..651b62c8 100644 --- a/test/test_tokenized_card_information.py +++ b/test/test_tokenized_card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_transaction_api.py b/test/test_transaction_api.py index 364a9a29..bbc6490b 100644 --- a/test/test_transaction_api.py +++ b/test/test_transaction_api.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_transaction_id.py b/test/test_transaction_id.py index 87dc541f..1db895dc 100644 --- a/test/test_transaction_id.py +++ b/test/test_transaction_id.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_transaction_response.py b/test/test_transaction_response.py index e5597c61..064a9e19 100644 --- a/test/test_transaction_response.py +++ b/test/test_transaction_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_transaction_response_type.py b/test/test_transaction_response_type.py index d16fc3aa..e6d953a3 100644 --- a/test/test_transaction_response_type.py +++ b/test/test_transaction_response_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_transaction_statuses.py b/test/test_transaction_statuses.py index f1e5b314..4e275d8f 100644 --- a/test/test_transaction_statuses.py +++ b/test/test_transaction_statuses.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_transaction_types.py b/test/test_transaction_types.py index fd5fc188..9012bcd7 100644 --- a/test/test_transaction_types.py +++ b/test/test_transaction_types.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_transactions_response.py b/test/test_transactions_response.py index 67ef9be6..d5946592 100644 --- a/test/test_transactions_response.py +++ b/test/test_transactions_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_validation_error.py b/test/test_validation_error.py index f4910b03..b097e603 100644 --- a/test/test_validation_error.py +++ b/test/test_validation_error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/test/test_virtual_account.py b/test/test_virtual_account.py index 7b91958d..30226301 100644 --- a/test/test_virtual_account.py +++ b/test/test_virtual_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_virtual_account_all_of.py b/test/test_virtual_account_all_of.py index 329680d1..01594256 100644 --- a/test/test_virtual_account_all_of.py +++ b/test/test_virtual_account_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_virtual_account_alternative_display.py b/test/test_virtual_account_alternative_display.py index c6f0dbf7..32e39fe9 100644 --- a/test/test_virtual_account_alternative_display.py +++ b/test/test_virtual_account_alternative_display.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_virtual_account_channel_code.py b/test/test_virtual_account_channel_code.py index 4f8be622..3ed73f5e 100644 --- a/test/test_virtual_account_channel_code.py +++ b/test/test_virtual_account_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_virtual_account_channel_properties.py b/test/test_virtual_account_channel_properties.py index dbdb13b6..28c71cb1 100644 --- a/test/test_virtual_account_channel_properties.py +++ b/test/test_virtual_account_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_virtual_account_channel_properties_patch.py b/test/test_virtual_account_channel_properties_patch.py index 7ca9e9a6..a61e29a3 100644 --- a/test/test_virtual_account_channel_properties_patch.py +++ b/test/test_virtual_account_channel_properties_patch.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_virtual_account_parameters.py b/test/test_virtual_account_parameters.py index 350a71a0..06e4f8c2 100644 --- a/test/test_virtual_account_parameters.py +++ b/test/test_virtual_account_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/test/test_virtual_account_update_parameters.py b/test/test_virtual_account_update_parameters.py index 617e1169..6163a639 100644 --- a/test/test_virtual_account_update_parameters.py +++ b/test/test_virtual_account_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/__init__.py b/xendit/__init__.py index 7ee790f1..c4e3ad63 100644 --- a/xendit/__init__.py +++ b/xendit/__init__.py @@ -1,11 +1,11 @@ # flake8: noqa """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ -__version__ = "3.4.0" +__version__ = "3.6.0" # import ApiClient from xendit.api_client import ApiClient diff --git a/xendit/api_client.py b/xendit/api_client.py index 534b416d..7246bd92 100644 --- a/xendit/api_client.py +++ b/xendit/api_client.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ @@ -74,11 +74,11 @@ def __init__(self, configuration=None, header_name=None, header_value=None, # XENDIT headers self.default_headers['xendit-lib'] = 'python' - self.default_headers['xendit-lib-ver'] = '3.4.0' + self.default_headers['xendit-lib-ver'] = '3.6.0' self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/3.4.0/python' + self.user_agent = 'OpenAPI-Generator/3.6.0/python' def __enter__(self): return self diff --git a/xendit/balance_and_transaction/balance_api.py b/xendit/balance_and_transaction/balance_api.py index eda94a60..57ba6d20 100644 --- a/xendit/balance_and_transaction/balance_api.py +++ b/xendit/balance_and_transaction/balance_api.py @@ -3,7 +3,7 @@ # Introduction This specification describes how to use the Transaction Service V4 API. **Transaction Service** is the service that records the customer transactions and is responsible to calculate their balance. All products that move customer money around whether it is money-in, money-out, or transfer will interact with the Transaction Service on its flow. Transaction Service is the source of truth of Xendit and Customer regarding how much money that customer has that is stored in Xendit. Transaction Service is the source that is used for both our internal and customer financial reconciliation. Internally, the Transaction Service data structure is similar to how double-entry accounting works. ## How Xendit teams/services do integrate with Transaction Service V4 **Channel product team/service** They interact with the Transaction Service when they want to record the transactions. This transaction can be money-in (balance added), money-out (balance deducted), transfer, refund/void/reversal, or other kind of transaction that affects customer balance. Product team also interacts with the Transaction Service for getting information about the transaction or balance. **Billing/Fee team/service** They interact with Transaction Service either as the dependency of Transaction Service for getting the correct fee calculation/settings. Or using Transaction Service for getting the transaction/fee information to calculate the bill for the customer. **NUX team/service** They interact with the Transaction Service to set up the customer ledger_account that is used to record their transactions. **Finance team/service** They interact with the Transaction Service to get the transaction and balance data for each customer to do reconciliation. **Dashboard/API team/service** They interact with the Transaction Service as a proxy to show the data to the Customer. ## Prerequisites Before staring to use **Transaction Service API** you need to complete a few things: 1. Find out **Base URL** for the API. Every endpoint definition in this document contains list of available servers (local, staging, production) 2. Set up ledger accounts using business id and currency. **Ledger Account** represents the account of the customer that will be used to associate with ledger lines. Each business may have at least 1 ledger account group (a group consists of a few accounts of types such as cash, liability, holding), and the money movement of their ledger will revolve around those ledger accounts. **Ledger Lines** that show a debit or credit transaction for a ledger account. We’re using the double-entry principle in accounting where we should post 2 lines every time we make a transaction, 1 to debit an account and 1 to credit another account. See how to call Create cash, liability, holding, and tax account for a business (api/ledger-accounts/setup) section of this document 3. To be able to create payments with fee/VAT the Product rate settings and VAT rate settings should be created using Transaction Fee Service. See Fee Service Documentation for details about how to create Product/VAT rate settings. ## Transaction flows To integrate with the Transaction Service you should decide what types of transaction flows your integration will be using. Transaction flow is set by the transaction `type` during transaction creation 1. Money In flows 1. Payment from credit card `type: CREDIT_CARD_PAYMENT` 3. Payment from other sources without fee/VAT `type: DEPOSIT, FOREX_DEPOSIT, ISSUING_FUNDING_REFUND, BNPL_PARTNER_SETTLEMENT_CREDIT, PROMO_FEE_CASHBACK, PROMO_VAT_CASHBACK, BATCH_VA_PAYMENT` 4. Payment from other sources with fee/VAT `type: VA_PAYMENT, IM_ESCROW_VA_PAYMENT, IM_DEPOSIT, RO_PAYMENT, EWALLET_PAYMENT, CARDLESS_CREDIT_PAYMENT, IM_REMITTANCE_VA_PAYMENT, PAYLATER_PAYMENT, INVOICE, QR_CODE_PAYMENT, DIRECT_DEBIT_PAYMENT, DIRECT_BANK_TRANSFER, ACH_PAYMENT, CRYPTO_PAYMENT` 5. Billing deposit from cash `type: BILLING_DEPOSIT` 6. Billing deposit from other sources `type: BILLING_DIRECT_DEPOSIT, BILLING_VA_DIRECT_DEPOSIT` 2. Money out flows 1. Instant payment `type: simple money out types` `status: COMPLETED` 2. Simple payment without fee/VAT `type: CHARGEBACK_DEDUCTION, FRAUD_DEDUCTION, LOAN_REPAYMENT, FOREX_DEDUCTION, BNPL_PARTNER_SETTLEMENT_DEBIT, WITHDRAWAL` 3. Simple payment with fee/VAT `type: ISSUING_FUNDING, BATCH_DISBURSEMENT, CASH_DISBURSEMENT, DISBURSEMENT, REMITTANCE, REMITTANCE_PAYOUT, TAX_DISBURSEMENT` 4. Billing withdraw to cash `type: BILLING_WITHDRAWAL` 4. Billing withdraw to other destinations `type: BILL_PAYMENT` 3. Reversal flow Some of transactions could be reversed. See Reversible / non reversible transaction types section of this document. To reverse transaction you should call Update transaction (/api/transactions/:id) endpoint with the transaction status `REVERSED`. 4. Void/Cancellation Flow Transaction in the `PENDING_SETTLEMENT` status could be canceled. To do that you should call Update transaction (/api/transactions/:id) endpoint with the transaction status `VOIDED`. 5. Switcher flow Switchers are transactions that do not affect the customer balance. These are transactions that goes directly to the customers’ account and simply passes through Xendit. Therefore, it will not impact the customer balance and we will only charge Fee and VAT. To create switcher flow you should set `is_switcher_payment` field to `true`. ## Instant/non instant settlement Transactions can be performed instantly (instant settlement) or with delay (non instant settlement). Some of the transaction types are only instantly processed, some of them support both instant and non instant settlement and some of them have only non instant settlement. If settlement is instant than balance will be changed instantly. In opposite case the transaction status has to be set into PENDING_SETTLEMENT and settlement date should be provided. 1. Instant settlement Money In transaction types `DEPOSIT, BATCH_VA_PAYMENT, FOREX_DEPOSIT, IM_DEPOSIT, CARDLESS_CREDIT_PAYMENT, ISSUING_FUNDING_REFUND, BNPL_PARTNER_SETTLEMENT_CREDIT, PROMO_FEE_CASHBACK, PROMO_VAT_CASHBACK, REMITTANCE_VA_PAYMENT_CLAIM` 2. Both instant and non instant Money In transaction types `DIRECT_DEBIT_PAYMENT, DIRECT_BANK_TRANSFER, ACH_PAYMENT, RO_PAYMENT, EWALLET_PAYMENT, QR_CODE_PAYMENT, VA_PAYMENT, INVOICE, PAYLATER_PAYMENT` 3. Non Instant settlement Money In transaction types `CREDIT_CARD_PAYMENT` 4. Instant settlement Money Out transaction types `LOAN_REPAYMENT, FOREX_DEDUCTION, BILL_PAYMENT, ISSUING_FUNDING, BNPL_PARTNER_SETTLEMENT_DEBIT, FRAUD_DEDUCTION` 5. Both instant and non instant settlement supported Money Out transaction types `CHARGEBACK_DEDUCTION` 6. Non Instant settlement Money Out transaction types All other money out types are non instant settlement ## Reversible / non reversible transaction types Some transactions can be reversed. Here are the list of transaction types that could be reversed: `CASH_DISBURSEMENT, DISBURSEMENT, BATCH_DISBURSEMENT, REMITTANCE, REMITTANCE_PAYOUT, TAX_DISBURSEMENT, WITHDRAWAL, DEPOSIT, FOREX_DEPOSIT, FOREX_DEDUCTION, VA_PAYMENT, BATCH_VA_PAYMENT, IM_REMITTANCE_VA_PAYMENT, IM_ESCROW_VA_PAYMENT, IM_DEPOSIT, REMITTANCE_VA_PAYMENT, REMITTANCE_VA_PAYMENT_CLAIM, RO_PAYMENT, CARDLESS_CREDIT_PAYMENT, PAYLATER_PAYMENT, INVOICE, QR_CODE_PAYMENT, CREDIT_CARD_PAYMENT, EWALLET_PAYMENT, DIRECT_DEBIT_PAYMENT, DIRECT_BANK_TRANSFER, ACH_PAYMENT, CHARGEBACK_DEDUCTION, FRAUD_DEDUCTION, LOAN_REPAYMENT, ISSUING_FUNDING, ISSUING_FUNDING_REFUND, BNPL_PARTNER_SETTLEMENT_DEBIT, BNPL_PARTNER_SETTLEMENT_CREDIT, BILLING_DEPOSIT, BILLING_DIRECT_DEPOSIT, BILLING_VA_DIRECT_DEPOSIT, BILLING_WITHDRAWAL, BILL_PAYMENT, PROMO_FEE_CASHBACK, PROMO_VAT_CASHBACK` ## How to create transaction After you created or already have the `BUSINESS_CASH` ledger account ID (See Prerequisites section) and you know what transaction flows are going to be used you can create the new transaction using POST request to the Create a new transaction (/api/transactions) endpoint ## How to update transaction To update transaction you should do PATCH request to the Update transaction (/api/transactions/::id) endpoint # noqa: E501 - The version of the OpenAPI document: 3.4.3 + The version of the OpenAPI document: 3.5.0 """ import re # noqa: F401 diff --git a/xendit/balance_and_transaction/model/balance.py b/xendit/balance_and_transaction/model/balance.py index 059328b3..dac356c5 100644 --- a/xendit/balance_and_transaction/model/balance.py +++ b/xendit/balance_and_transaction/model/balance.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/xendit/balance_and_transaction/model/channels_categories.py b/xendit/balance_and_transaction/model/channels_categories.py index 92011ce4..9c494d53 100644 --- a/xendit/balance_and_transaction/model/channels_categories.py +++ b/xendit/balance_and_transaction/model/channels_categories.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/xendit/balance_and_transaction/model/currency.py b/xendit/balance_and_transaction/model/currency.py index 0c07119d..f1581fb3 100644 --- a/xendit/balance_and_transaction/model/currency.py +++ b/xendit/balance_and_transaction/model/currency.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/xendit/balance_and_transaction/model/date_range_filter.py b/xendit/balance_and_transaction/model/date_range_filter.py index 734ee6fd..1f10e099 100644 --- a/xendit/balance_and_transaction/model/date_range_filter.py +++ b/xendit/balance_and_transaction/model/date_range_filter.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/xendit/balance_and_transaction/model/fee_response.py b/xendit/balance_and_transaction/model/fee_response.py index df473f06..1f2bc11f 100644 --- a/xendit/balance_and_transaction/model/fee_response.py +++ b/xendit/balance_and_transaction/model/fee_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/xendit/balance_and_transaction/model/link_item.py b/xendit/balance_and_transaction/model/link_item.py index 93c58bb5..857d9a23 100644 --- a/xendit/balance_and_transaction/model/link_item.py +++ b/xendit/balance_and_transaction/model/link_item.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/xendit/balance_and_transaction/model/server_error.py b/xendit/balance_and_transaction/model/server_error.py index 965a04ff..f75a1005 100644 --- a/xendit/balance_and_transaction/model/server_error.py +++ b/xendit/balance_and_transaction/model/server_error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/xendit/balance_and_transaction/model/transaction_id.py b/xendit/balance_and_transaction/model/transaction_id.py index 31ae7942..eccae1d7 100644 --- a/xendit/balance_and_transaction/model/transaction_id.py +++ b/xendit/balance_and_transaction/model/transaction_id.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/xendit/balance_and_transaction/model/transaction_response.py b/xendit/balance_and_transaction/model/transaction_response.py index 1c1ca5c6..35a7d220 100644 --- a/xendit/balance_and_transaction/model/transaction_response.py +++ b/xendit/balance_and_transaction/model/transaction_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/xendit/balance_and_transaction/model/transaction_response_type.py b/xendit/balance_and_transaction/model/transaction_response_type.py index eebc5ba8..a3564cfd 100644 --- a/xendit/balance_and_transaction/model/transaction_response_type.py +++ b/xendit/balance_and_transaction/model/transaction_response_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/xendit/balance_and_transaction/model/transaction_statuses.py b/xendit/balance_and_transaction/model/transaction_statuses.py index 29a0171a..9337c005 100644 --- a/xendit/balance_and_transaction/model/transaction_statuses.py +++ b/xendit/balance_and_transaction/model/transaction_statuses.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/xendit/balance_and_transaction/model/transaction_types.py b/xendit/balance_and_transaction/model/transaction_types.py index 4275f5a8..e9e1d22c 100644 --- a/xendit/balance_and_transaction/model/transaction_types.py +++ b/xendit/balance_and_transaction/model/transaction_types.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/xendit/balance_and_transaction/model/transactions_response.py b/xendit/balance_and_transaction/model/transactions_response.py index 755fa265..fce8e7e8 100644 --- a/xendit/balance_and_transaction/model/transactions_response.py +++ b/xendit/balance_and_transaction/model/transactions_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/xendit/balance_and_transaction/model/validation_error.py b/xendit/balance_and_transaction/model/validation_error.py index 9be7e79b..0eb435c5 100644 --- a/xendit/balance_and_transaction/model/validation_error.py +++ b/xendit/balance_and_transaction/model/validation_error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 3.4.3 + The version of the XENDIT API: 3.5.0 """ diff --git a/xendit/balance_and_transaction/transaction_api.py b/xendit/balance_and_transaction/transaction_api.py index a8ced215..25e8bb25 100644 --- a/xendit/balance_and_transaction/transaction_api.py +++ b/xendit/balance_and_transaction/transaction_api.py @@ -3,7 +3,7 @@ # Introduction This specification describes how to use the Transaction Service V4 API. **Transaction Service** is the service that records the customer transactions and is responsible to calculate their balance. All products that move customer money around whether it is money-in, money-out, or transfer will interact with the Transaction Service on its flow. Transaction Service is the source of truth of Xendit and Customer regarding how much money that customer has that is stored in Xendit. Transaction Service is the source that is used for both our internal and customer financial reconciliation. Internally, the Transaction Service data structure is similar to how double-entry accounting works. ## How Xendit teams/services do integrate with Transaction Service V4 **Channel product team/service** They interact with the Transaction Service when they want to record the transactions. This transaction can be money-in (balance added), money-out (balance deducted), transfer, refund/void/reversal, or other kind of transaction that affects customer balance. Product team also interacts with the Transaction Service for getting information about the transaction or balance. **Billing/Fee team/service** They interact with Transaction Service either as the dependency of Transaction Service for getting the correct fee calculation/settings. Or using Transaction Service for getting the transaction/fee information to calculate the bill for the customer. **NUX team/service** They interact with the Transaction Service to set up the customer ledger_account that is used to record their transactions. **Finance team/service** They interact with the Transaction Service to get the transaction and balance data for each customer to do reconciliation. **Dashboard/API team/service** They interact with the Transaction Service as a proxy to show the data to the Customer. ## Prerequisites Before staring to use **Transaction Service API** you need to complete a few things: 1. Find out **Base URL** for the API. Every endpoint definition in this document contains list of available servers (local, staging, production) 2. Set up ledger accounts using business id and currency. **Ledger Account** represents the account of the customer that will be used to associate with ledger lines. Each business may have at least 1 ledger account group (a group consists of a few accounts of types such as cash, liability, holding), and the money movement of their ledger will revolve around those ledger accounts. **Ledger Lines** that show a debit or credit transaction for a ledger account. We’re using the double-entry principle in accounting where we should post 2 lines every time we make a transaction, 1 to debit an account and 1 to credit another account. See how to call Create cash, liability, holding, and tax account for a business (api/ledger-accounts/setup) section of this document 3. To be able to create payments with fee/VAT the Product rate settings and VAT rate settings should be created using Transaction Fee Service. See Fee Service Documentation for details about how to create Product/VAT rate settings. ## Transaction flows To integrate with the Transaction Service you should decide what types of transaction flows your integration will be using. Transaction flow is set by the transaction `type` during transaction creation 1. Money In flows 1. Payment from credit card `type: CREDIT_CARD_PAYMENT` 3. Payment from other sources without fee/VAT `type: DEPOSIT, FOREX_DEPOSIT, ISSUING_FUNDING_REFUND, BNPL_PARTNER_SETTLEMENT_CREDIT, PROMO_FEE_CASHBACK, PROMO_VAT_CASHBACK, BATCH_VA_PAYMENT` 4. Payment from other sources with fee/VAT `type: VA_PAYMENT, IM_ESCROW_VA_PAYMENT, IM_DEPOSIT, RO_PAYMENT, EWALLET_PAYMENT, CARDLESS_CREDIT_PAYMENT, IM_REMITTANCE_VA_PAYMENT, PAYLATER_PAYMENT, INVOICE, QR_CODE_PAYMENT, DIRECT_DEBIT_PAYMENT, DIRECT_BANK_TRANSFER, ACH_PAYMENT, CRYPTO_PAYMENT` 5. Billing deposit from cash `type: BILLING_DEPOSIT` 6. Billing deposit from other sources `type: BILLING_DIRECT_DEPOSIT, BILLING_VA_DIRECT_DEPOSIT` 2. Money out flows 1. Instant payment `type: simple money out types` `status: COMPLETED` 2. Simple payment without fee/VAT `type: CHARGEBACK_DEDUCTION, FRAUD_DEDUCTION, LOAN_REPAYMENT, FOREX_DEDUCTION, BNPL_PARTNER_SETTLEMENT_DEBIT, WITHDRAWAL` 3. Simple payment with fee/VAT `type: ISSUING_FUNDING, BATCH_DISBURSEMENT, CASH_DISBURSEMENT, DISBURSEMENT, REMITTANCE, REMITTANCE_PAYOUT, TAX_DISBURSEMENT` 4. Billing withdraw to cash `type: BILLING_WITHDRAWAL` 4. Billing withdraw to other destinations `type: BILL_PAYMENT` 3. Reversal flow Some of transactions could be reversed. See Reversible / non reversible transaction types section of this document. To reverse transaction you should call Update transaction (/api/transactions/:id) endpoint with the transaction status `REVERSED`. 4. Void/Cancellation Flow Transaction in the `PENDING_SETTLEMENT` status could be canceled. To do that you should call Update transaction (/api/transactions/:id) endpoint with the transaction status `VOIDED`. 5. Switcher flow Switchers are transactions that do not affect the customer balance. These are transactions that goes directly to the customers’ account and simply passes through Xendit. Therefore, it will not impact the customer balance and we will only charge Fee and VAT. To create switcher flow you should set `is_switcher_payment` field to `true`. ## Instant/non instant settlement Transactions can be performed instantly (instant settlement) or with delay (non instant settlement). Some of the transaction types are only instantly processed, some of them support both instant and non instant settlement and some of them have only non instant settlement. If settlement is instant than balance will be changed instantly. In opposite case the transaction status has to be set into PENDING_SETTLEMENT and settlement date should be provided. 1. Instant settlement Money In transaction types `DEPOSIT, BATCH_VA_PAYMENT, FOREX_DEPOSIT, IM_DEPOSIT, CARDLESS_CREDIT_PAYMENT, ISSUING_FUNDING_REFUND, BNPL_PARTNER_SETTLEMENT_CREDIT, PROMO_FEE_CASHBACK, PROMO_VAT_CASHBACK, REMITTANCE_VA_PAYMENT_CLAIM` 2. Both instant and non instant Money In transaction types `DIRECT_DEBIT_PAYMENT, DIRECT_BANK_TRANSFER, ACH_PAYMENT, RO_PAYMENT, EWALLET_PAYMENT, QR_CODE_PAYMENT, VA_PAYMENT, INVOICE, PAYLATER_PAYMENT` 3. Non Instant settlement Money In transaction types `CREDIT_CARD_PAYMENT` 4. Instant settlement Money Out transaction types `LOAN_REPAYMENT, FOREX_DEDUCTION, BILL_PAYMENT, ISSUING_FUNDING, BNPL_PARTNER_SETTLEMENT_DEBIT, FRAUD_DEDUCTION` 5. Both instant and non instant settlement supported Money Out transaction types `CHARGEBACK_DEDUCTION` 6. Non Instant settlement Money Out transaction types All other money out types are non instant settlement ## Reversible / non reversible transaction types Some transactions can be reversed. Here are the list of transaction types that could be reversed: `CASH_DISBURSEMENT, DISBURSEMENT, BATCH_DISBURSEMENT, REMITTANCE, REMITTANCE_PAYOUT, TAX_DISBURSEMENT, WITHDRAWAL, DEPOSIT, FOREX_DEPOSIT, FOREX_DEDUCTION, VA_PAYMENT, BATCH_VA_PAYMENT, IM_REMITTANCE_VA_PAYMENT, IM_ESCROW_VA_PAYMENT, IM_DEPOSIT, REMITTANCE_VA_PAYMENT, REMITTANCE_VA_PAYMENT_CLAIM, RO_PAYMENT, CARDLESS_CREDIT_PAYMENT, PAYLATER_PAYMENT, INVOICE, QR_CODE_PAYMENT, CREDIT_CARD_PAYMENT, EWALLET_PAYMENT, DIRECT_DEBIT_PAYMENT, DIRECT_BANK_TRANSFER, ACH_PAYMENT, CHARGEBACK_DEDUCTION, FRAUD_DEDUCTION, LOAN_REPAYMENT, ISSUING_FUNDING, ISSUING_FUNDING_REFUND, BNPL_PARTNER_SETTLEMENT_DEBIT, BNPL_PARTNER_SETTLEMENT_CREDIT, BILLING_DEPOSIT, BILLING_DIRECT_DEPOSIT, BILLING_VA_DIRECT_DEPOSIT, BILLING_WITHDRAWAL, BILL_PAYMENT, PROMO_FEE_CASHBACK, PROMO_VAT_CASHBACK` ## How to create transaction After you created or already have the `BUSINESS_CASH` ledger account ID (See Prerequisites section) and you know what transaction flows are going to be used you can create the new transaction using POST request to the Create a new transaction (/api/transactions) endpoint ## How to update transaction To update transaction you should do PATCH request to the Update transaction (/api/transactions/::id) endpoint # noqa: E501 - The version of the OpenAPI document: 3.4.3 + The version of the OpenAPI document: 3.5.0 """ import re # noqa: F401 diff --git a/xendit/configuration.py b/xendit/configuration.py index 030037d0..40cafca0 100644 --- a/xendit/configuration.py +++ b/xendit/configuration.py @@ -364,8 +364,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.44.1\n"\ - "SDK Package Version: 3.4.0".\ + "Version of the API: 1.45.1\n"\ + "SDK Package Version: 3.6.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/xendit/exceptions.py b/xendit/exceptions.py index bebb60c7..7c4b0772 100644 --- a/xendit/exceptions.py +++ b/xendit/exceptions.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ import json diff --git a/xendit/model_utils.py b/xendit/model_utils.py index 4f8be948..0aafa35c 100644 --- a/xendit/model_utils.py +++ b/xendit/model_utils.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_method/model/billing_information.py b/xendit/payment_method/model/billing_information.py index 4bd5c08d..660fa3dd 100644 --- a/xendit/payment_method/model/billing_information.py +++ b/xendit/payment_method/model/billing_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/card.py b/xendit/payment_method/model/card.py index 7b7da3c2..3d48322b 100644 --- a/xendit/payment_method/model/card.py +++ b/xendit/payment_method/model/card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/card_channel_properties.py b/xendit/payment_method/model/card_channel_properties.py index 91ebbf2d..5f737bf6 100644 --- a/xendit/payment_method/model/card_channel_properties.py +++ b/xendit/payment_method/model/card_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/card_parameters.py b/xendit/payment_method/model/card_parameters.py index b1073629..e4f10809 100644 --- a/xendit/payment_method/model/card_parameters.py +++ b/xendit/payment_method/model/card_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/card_parameters_card_information.py b/xendit/payment_method/model/card_parameters_card_information.py index eaabbeeb..a3ee6a15 100644 --- a/xendit/payment_method/model/card_parameters_card_information.py +++ b/xendit/payment_method/model/card_parameters_card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/card_verification_results.py b/xendit/payment_method/model/card_verification_results.py index 66229a2b..572ee154 100644 --- a/xendit/payment_method/model/card_verification_results.py +++ b/xendit/payment_method/model/card_verification_results.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/card_verification_results_three_d_secure.py b/xendit/payment_method/model/card_verification_results_three_d_secure.py index a816d81a..03d43a88 100644 --- a/xendit/payment_method/model/card_verification_results_three_d_secure.py +++ b/xendit/payment_method/model/card_verification_results_three_d_secure.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/create_payment_method409_response.py b/xendit/payment_method/model/create_payment_method409_response.py index a4b35992..e06ca37d 100644 --- a/xendit/payment_method/model/create_payment_method409_response.py +++ b/xendit/payment_method/model/create_payment_method409_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/create_payment_method503_response.py b/xendit/payment_method/model/create_payment_method503_response.py index b7373875..4174245c 100644 --- a/xendit/payment_method/model/create_payment_method503_response.py +++ b/xendit/payment_method/model/create_payment_method503_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/direct_debit.py b/xendit/payment_method/model/direct_debit.py index b5568164..2ee466e5 100644 --- a/xendit/payment_method/model/direct_debit.py +++ b/xendit/payment_method/model/direct_debit.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/direct_debit_all_of.py b/xendit/payment_method/model/direct_debit_all_of.py index 1bb201e3..814b3815 100644 --- a/xendit/payment_method/model/direct_debit_all_of.py +++ b/xendit/payment_method/model/direct_debit_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/direct_debit_bank_account.py b/xendit/payment_method/model/direct_debit_bank_account.py index 3e70318c..40af4998 100644 --- a/xendit/payment_method/model/direct_debit_bank_account.py +++ b/xendit/payment_method/model/direct_debit_bank_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/direct_debit_channel_code.py b/xendit/payment_method/model/direct_debit_channel_code.py index 045e468a..3f32736c 100644 --- a/xendit/payment_method/model/direct_debit_channel_code.py +++ b/xendit/payment_method/model/direct_debit_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/direct_debit_channel_properties.py b/xendit/payment_method/model/direct_debit_channel_properties.py index 481822ee..86b50ec9 100644 --- a/xendit/payment_method/model/direct_debit_channel_properties.py +++ b/xendit/payment_method/model/direct_debit_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ @@ -87,6 +87,7 @@ def openapi_types(): 'email': (str, none_type, none_type), # noqa: E501 'identity_document_number': (str, none_type, none_type), # noqa: E501 'require_auth': (bool, none_type, none_type), # noqa: E501 + 'account_number': (str, none_type, none_type), # noqa: E501 } @cached_property @@ -103,6 +104,7 @@ def discriminator(): 'email': 'email', # noqa: E501 'identity_document_number': 'identity_document_number', # noqa: E501 'require_auth': 'require_auth', # noqa: E501 + 'account_number': 'account_number', # noqa: E501 } read_only_vars = { @@ -154,6 +156,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 email (str, none_type): Email address of the customer that is registered to the partner channel. [optional] # noqa: E501 identity_document_number (str, none_type): Identity number of the customer registered to the partner channel. [optional] # noqa: E501 require_auth (bool, none_type): [optional] # noqa: E501 + account_number (str, none_type): Account number of the customer. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -216,6 +219,7 @@ def __init__(self, email: str | None = None, identity_document_number: str | None = None, require_auth: bool | None = None, + account_number: str | None = None, *args, **kwargs ): # noqa: E501 """DirectDebitChannelProperties - a model defined in OpenAPI @@ -260,6 +264,7 @@ def __init__(self, email (str, none_type): Email address of the customer that is registered to the partner channel. [optional] # noqa: E501 identity_document_number (str, none_type): Identity number of the customer registered to the partner channel. [optional] # noqa: E501 require_auth (bool, none_type): [optional] # noqa: E501 + account_number (str, none_type): Account number of the customer. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -307,6 +312,8 @@ def __init__(self, self.identity_document_number = identity_document_number if require_auth is not None: self.require_auth = require_auth + if account_number is not None: + self.account_number = account_number for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/xendit/payment_method/model/direct_debit_debit_card.py b/xendit/payment_method/model/direct_debit_debit_card.py index 5413b998..e4261143 100644 --- a/xendit/payment_method/model/direct_debit_debit_card.py +++ b/xendit/payment_method/model/direct_debit_debit_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ @@ -83,6 +83,7 @@ def openapi_types(): 'card_last_four': (str, none_type, none_type), # noqa: E501 'card_expiry': (str, none_type, none_type), # noqa: E501 'email': (str, none_type, none_type), # noqa: E501 + 'account_number': (str, none_type, none_type), # noqa: E501 } @cached_property @@ -95,6 +96,7 @@ def discriminator(): 'card_last_four': 'card_last_four', # noqa: E501 'card_expiry': 'card_expiry', # noqa: E501 'email': 'email', # noqa: E501 + 'account_number': 'account_number', # noqa: E501 } read_only_vars = { @@ -142,6 +144,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 card_last_four (str, none_type): Last four digits of the debit card. [optional] # noqa: E501 card_expiry (str, none_type): Expiry month and year of the debit card (in MM/YY format). [optional] # noqa: E501 email (str, none_type): Email address of the customer that is registered to the partner channel. [optional] # noqa: E501 + account_number (str, none_type): Account number of the customer. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -200,6 +203,7 @@ def __init__(self, card_last_four: str | None = None, card_expiry: str | None = None, email: str | None = None, + account_number: str | None = None, *args, **kwargs ): # noqa: E501 """DirectDebitDebitCard - a model defined in OpenAPI @@ -240,6 +244,7 @@ def __init__(self, card_last_four (str, none_type): Last four digits of the debit card. [optional] # noqa: E501 card_expiry (str, none_type): Expiry month and year of the debit card (in MM/YY format). [optional] # noqa: E501 email (str, none_type): Email address of the customer that is registered to the partner channel. [optional] # noqa: E501 + account_number (str, none_type): Account number of the customer. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -279,6 +284,8 @@ def __init__(self, self.card_expiry = card_expiry if email is not None: self.email = email + if account_number is not None: + self.account_number = account_number for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/xendit/payment_method/model/direct_debit_parameters.py b/xendit/payment_method/model/direct_debit_parameters.py index 8970c7e2..fc294ad6 100644 --- a/xendit/payment_method/model/direct_debit_parameters.py +++ b/xendit/payment_method/model/direct_debit_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/direct_debit_type.py b/xendit/payment_method/model/direct_debit_type.py index 10d0446f..810f6c72 100644 --- a/xendit/payment_method/model/direct_debit_type.py +++ b/xendit/payment_method/model/direct_debit_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/e_wallet.py b/xendit/payment_method/model/e_wallet.py index 048f0eca..70970f0d 100644 --- a/xendit/payment_method/model/e_wallet.py +++ b/xendit/payment_method/model/e_wallet.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/e_wallet_account.py b/xendit/payment_method/model/e_wallet_account.py index e0018da4..58f089c7 100644 --- a/xendit/payment_method/model/e_wallet_account.py +++ b/xendit/payment_method/model/e_wallet_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/e_wallet_channel_code.py b/xendit/payment_method/model/e_wallet_channel_code.py index 013a22d6..f8663e2b 100644 --- a/xendit/payment_method/model/e_wallet_channel_code.py +++ b/xendit/payment_method/model/e_wallet_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ @@ -70,6 +70,7 @@ class EWalletChannelCode(ModelSimple): 'LINEPAY': "LINEPAY", 'TRUEMONEY': "TRUEMONEY", 'ALIPAY': "ALIPAY", + 'TOUCHANDGO': "TOUCHANDGO", 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -122,10 +123,10 @@ def __init__(self, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): EWallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "OVO", "DANA", "LINKAJA", "SHOPEEPAY", "SAKUKU", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", ] # noqa: E501 + args[0] (str): EWallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "OVO", "DANA", "LINKAJA", "SHOPEEPAY", "SAKUKU", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", "TOUCHANDGO", ] # noqa: E501 Keyword Args: - value (str): EWallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "OVO", "DANA", "LINKAJA", "SHOPEEPAY", "SAKUKU", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", ] # noqa: E501 + value (str): EWallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "OVO", "DANA", "LINKAJA", "SHOPEEPAY", "SAKUKU", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", "TOUCHANDGO", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -218,10 +219,10 @@ def _from_openapi_data(cls, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): EWallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "OVO", "DANA", "LINKAJA", "SHOPEEPAY", "SAKUKU", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", ] # noqa: E501 + args[0] (str): EWallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "OVO", "DANA", "LINKAJA", "SHOPEEPAY", "SAKUKU", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", "TOUCHANDGO", ] # noqa: E501 Keyword Args: - value (str): EWallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "OVO", "DANA", "LINKAJA", "SHOPEEPAY", "SAKUKU", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", ] # noqa: E501 + value (str): EWallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "OVO", "DANA", "LINKAJA", "SHOPEEPAY", "SAKUKU", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", "TOUCHANDGO", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. diff --git a/xendit/payment_method/model/e_wallet_channel_properties.py b/xendit/payment_method/model/e_wallet_channel_properties.py index 122aea32..5933fdbf 100644 --- a/xendit/payment_method/model/e_wallet_channel_properties.py +++ b/xendit/payment_method/model/e_wallet_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/e_wallet_parameters.py b/xendit/payment_method/model/e_wallet_parameters.py index 1b9e3260..ad2faca3 100644 --- a/xendit/payment_method/model/e_wallet_parameters.py +++ b/xendit/payment_method/model/e_wallet_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/get_all_payment_methods400_response.py b/xendit/payment_method/model/get_all_payment_methods400_response.py index d098e15c..8a9802d8 100644 --- a/xendit/payment_method/model/get_all_payment_methods400_response.py +++ b/xendit/payment_method/model/get_all_payment_methods400_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/get_all_payment_methods403_response.py b/xendit/payment_method/model/get_all_payment_methods403_response.py index 50d9a8de..79456075 100644 --- a/xendit/payment_method/model/get_all_payment_methods403_response.py +++ b/xendit/payment_method/model/get_all_payment_methods403_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/get_all_payment_methods404_response.py b/xendit/payment_method/model/get_all_payment_methods404_response.py index 1632ff30..a6390f9b 100644 --- a/xendit/payment_method/model/get_all_payment_methods404_response.py +++ b/xendit/payment_method/model/get_all_payment_methods404_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/get_all_payment_methods_default_response.py b/xendit/payment_method/model/get_all_payment_methods_default_response.py index 1711f099..ebd8f979 100644 --- a/xendit/payment_method/model/get_all_payment_methods_default_response.py +++ b/xendit/payment_method/model/get_all_payment_methods_default_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/over_the_counter.py b/xendit/payment_method/model/over_the_counter.py index 75406a5d..c24b14bc 100644 --- a/xendit/payment_method/model/over_the_counter.py +++ b/xendit/payment_method/model/over_the_counter.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/over_the_counter_channel_code.py b/xendit/payment_method/model/over_the_counter_channel_code.py index 3bc27a67..41ac9bee 100644 --- a/xendit/payment_method/model/over_the_counter_channel_code.py +++ b/xendit/payment_method/model/over_the_counter_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/over_the_counter_channel_properties.py b/xendit/payment_method/model/over_the_counter_channel_properties.py index 3085e217..53114a2c 100644 --- a/xendit/payment_method/model/over_the_counter_channel_properties.py +++ b/xendit/payment_method/model/over_the_counter_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/over_the_counter_channel_properties_update.py b/xendit/payment_method/model/over_the_counter_channel_properties_update.py index 36e6ec82..018c34cb 100644 --- a/xendit/payment_method/model/over_the_counter_channel_properties_update.py +++ b/xendit/payment_method/model/over_the_counter_channel_properties_update.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/over_the_counter_parameters.py b/xendit/payment_method/model/over_the_counter_parameters.py index 4e55878e..14f8c492 100644 --- a/xendit/payment_method/model/over_the_counter_parameters.py +++ b/xendit/payment_method/model/over_the_counter_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/over_the_counter_update_parameters.py b/xendit/payment_method/model/over_the_counter_update_parameters.py index b93ebb65..e604a893 100644 --- a/xendit/payment_method/model/over_the_counter_update_parameters.py +++ b/xendit/payment_method/model/over_the_counter_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/payment_method.py b/xendit/payment_method/model/payment_method.py index 18dcb64e..1699c1e5 100644 --- a/xendit/payment_method/model/payment_method.py +++ b/xendit/payment_method/model/payment_method.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/payment_method_action.py b/xendit/payment_method/model/payment_method_action.py index 840a9b18..de783ab1 100644 --- a/xendit/payment_method/model/payment_method_action.py +++ b/xendit/payment_method/model/payment_method_action.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/payment_method_auth_parameters.py b/xendit/payment_method/model/payment_method_auth_parameters.py index da4975fc..cfc62a13 100644 --- a/xendit/payment_method/model/payment_method_auth_parameters.py +++ b/xendit/payment_method/model/payment_method_auth_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/payment_method_country.py b/xendit/payment_method/model/payment_method_country.py index 5bed39ba..053d41df 100644 --- a/xendit/payment_method/model/payment_method_country.py +++ b/xendit/payment_method/model/payment_method_country.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ @@ -55,6 +55,7 @@ class PaymentMethodCountry(ModelSimple): 'VN': "VN", 'TH': "TH", 'MY': "MY", + 'US': "US", 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -107,10 +108,10 @@ def __init__(self, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str):, must be one of ["PH", "ID", "VN", "TH", "MY", ] # noqa: E501 + args[0] (str):, must be one of ["PH", "ID", "VN", "TH", "MY", "US", ] # noqa: E501 Keyword Args: - value (str):, must be one of ["PH", "ID", "VN", "TH", "MY", ] # noqa: E501 + value (str):, must be one of ["PH", "ID", "VN", "TH", "MY", "US", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -203,10 +204,10 @@ def _from_openapi_data(cls, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str):, must be one of ["PH", "ID", "VN", "TH", "MY", ] # noqa: E501 + args[0] (str):, must be one of ["PH", "ID", "VN", "TH", "MY", "US", ] # noqa: E501 Keyword Args: - value (str):, must be one of ["PH", "ID", "VN", "TH", "MY", ] # noqa: E501 + value (str):, must be one of ["PH", "ID", "VN", "TH", "MY", "US", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. diff --git a/xendit/payment_method/model/payment_method_expire_parameters.py b/xendit/payment_method/model/payment_method_expire_parameters.py index 1a14a406..7ae1d216 100644 --- a/xendit/payment_method/model/payment_method_expire_parameters.py +++ b/xendit/payment_method/model/payment_method_expire_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/payment_method_list.py b/xendit/payment_method/model/payment_method_list.py index 38b3fc8a..3eb6f1fe 100644 --- a/xendit/payment_method/model/payment_method_list.py +++ b/xendit/payment_method/model/payment_method_list.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/payment_method_parameters.py b/xendit/payment_method/model/payment_method_parameters.py index 827c32ab..f798f02c 100644 --- a/xendit/payment_method/model/payment_method_parameters.py +++ b/xendit/payment_method/model/payment_method_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/payment_method_reusability.py b/xendit/payment_method/model/payment_method_reusability.py index 7b4213f5..8ce55582 100644 --- a/xendit/payment_method/model/payment_method_reusability.py +++ b/xendit/payment_method/model/payment_method_reusability.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/payment_method_status.py b/xendit/payment_method/model/payment_method_status.py index 24e82366..3573947a 100644 --- a/xendit/payment_method/model/payment_method_status.py +++ b/xendit/payment_method/model/payment_method_status.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/payment_method_type.py b/xendit/payment_method/model/payment_method_type.py index c9876743..5e2517c8 100644 --- a/xendit/payment_method/model/payment_method_type.py +++ b/xendit/payment_method/model/payment_method_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/payment_method_update_parameters.py b/xendit/payment_method/model/payment_method_update_parameters.py index 63cb8043..a350138e 100644 --- a/xendit/payment_method/model/payment_method_update_parameters.py +++ b/xendit/payment_method/model/payment_method_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/qr_code.py b/xendit/payment_method/model/qr_code.py index 76a0e5c1..b4f04a03 100644 --- a/xendit/payment_method/model/qr_code.py +++ b/xendit/payment_method/model/qr_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/qr_code_channel_code.py b/xendit/payment_method/model/qr_code_channel_code.py index 463fac51..105cfee1 100644 --- a/xendit/payment_method/model/qr_code_channel_code.py +++ b/xendit/payment_method/model/qr_code_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/qr_code_channel_properties.py b/xendit/payment_method/model/qr_code_channel_properties.py index 5fd00b36..391ed6a3 100644 --- a/xendit/payment_method/model/qr_code_channel_properties.py +++ b/xendit/payment_method/model/qr_code_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/qr_code_parameters.py b/xendit/payment_method/model/qr_code_parameters.py index 1bbbf437..48635ede 100644 --- a/xendit/payment_method/model/qr_code_parameters.py +++ b/xendit/payment_method/model/qr_code_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/simulate_payment_request.py b/xendit/payment_method/model/simulate_payment_request.py index 021dcff6..e85bf5dd 100644 --- a/xendit/payment_method/model/simulate_payment_request.py +++ b/xendit/payment_method/model/simulate_payment_request.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/tokenized_card_information.py b/xendit/payment_method/model/tokenized_card_information.py index 239a01a7..e67fbf6f 100644 --- a/xendit/payment_method/model/tokenized_card_information.py +++ b/xendit/payment_method/model/tokenized_card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/virtual_account.py b/xendit/payment_method/model/virtual_account.py index 6f057d0a..b7cddc2e 100644 --- a/xendit/payment_method/model/virtual_account.py +++ b/xendit/payment_method/model/virtual_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/virtual_account_all_of.py b/xendit/payment_method/model/virtual_account_all_of.py index e068b42e..90f4b4e6 100644 --- a/xendit/payment_method/model/virtual_account_all_of.py +++ b/xendit/payment_method/model/virtual_account_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/virtual_account_alternative_display.py b/xendit/payment_method/model/virtual_account_alternative_display.py index 65439933..2428b399 100644 --- a/xendit/payment_method/model/virtual_account_alternative_display.py +++ b/xendit/payment_method/model/virtual_account_alternative_display.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/virtual_account_channel_code.py b/xendit/payment_method/model/virtual_account_channel_code.py index 413e8441..79748cd9 100644 --- a/xendit/payment_method/model/virtual_account_channel_code.py +++ b/xendit/payment_method/model/virtual_account_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ @@ -65,6 +65,7 @@ class VirtualAccountChannelCode(ModelSimple): 'WOORI': "WOORI", 'MSB': "MSB", 'STANDARD_CHARTERED': "STANDARD_CHARTERED", + 'AMBANK': "AMBANK", 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -117,10 +118,10 @@ def __init__(self, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", ] # noqa: E501 + args[0] (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", ] # noqa: E501 Keyword Args: - value (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", ] # noqa: E501 + value (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -213,10 +214,10 @@ def _from_openapi_data(cls, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", ] # noqa: E501 + args[0] (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", ] # noqa: E501 Keyword Args: - value (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", ] # noqa: E501 + value (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. diff --git a/xendit/payment_method/model/virtual_account_channel_properties.py b/xendit/payment_method/model/virtual_account_channel_properties.py index 84345acc..b378fd5c 100644 --- a/xendit/payment_method/model/virtual_account_channel_properties.py +++ b/xendit/payment_method/model/virtual_account_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/virtual_account_channel_properties_patch.py b/xendit/payment_method/model/virtual_account_channel_properties_patch.py index 569a2fdc..2dc4a0de 100644 --- a/xendit/payment_method/model/virtual_account_channel_properties_patch.py +++ b/xendit/payment_method/model/virtual_account_channel_properties_patch.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/virtual_account_parameters.py b/xendit/payment_method/model/virtual_account_parameters.py index a8b8627e..3ddbbf4a 100644 --- a/xendit/payment_method/model/virtual_account_parameters.py +++ b/xendit/payment_method/model/virtual_account_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/model/virtual_account_update_parameters.py b/xendit/payment_method/model/virtual_account_update_parameters.py index f53bed74..6d311e71 100644 --- a/xendit/payment_method/model/virtual_account_update_parameters.py +++ b/xendit/payment_method/model/virtual_account_update_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 2.89.2 + The version of the XENDIT API: 2.91.2 """ diff --git a/xendit/payment_method/payment_method_api.py b/xendit/payment_method/payment_method_api.py index 450b7b29..d595406c 100644 --- a/xendit/payment_method/payment_method_api.py +++ b/xendit/payment_method/payment_method_api.py @@ -3,7 +3,7 @@ This API is used for Payment Method Service v2 # noqa: E501 - The version of the OpenAPI document: 2.89.2 + The version of the OpenAPI document: 2.91.2 """ import re # noqa: F401 diff --git a/xendit/payment_request/model/capture.py b/xendit/payment_request/model/capture.py index c4e99f94..40243a39 100644 --- a/xendit/payment_request/model/capture.py +++ b/xendit/payment_request/model/capture.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/capture_list.py b/xendit/payment_request/model/capture_list.py index 8ebc3bc9..1ee1e9fb 100644 --- a/xendit/payment_request/model/capture_list.py +++ b/xendit/payment_request/model/capture_list.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/capture_list_response.py b/xendit/payment_request/model/capture_list_response.py index 74712174..25e41165 100644 --- a/xendit/payment_request/model/capture_list_response.py +++ b/xendit/payment_request/model/capture_list_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/capture_parameters.py b/xendit/payment_request/model/capture_parameters.py index a757aa88..15c66135 100644 --- a/xendit/payment_request/model/capture_parameters.py +++ b/xendit/payment_request/model/capture_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/card.py b/xendit/payment_request/model/card.py index 5e20d1a9..d24230b8 100644 --- a/xendit/payment_request/model/card.py +++ b/xendit/payment_request/model/card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/card_channel_properties.py b/xendit/payment_request/model/card_channel_properties.py index a1546eea..d37f687a 100644 --- a/xendit/payment_request/model/card_channel_properties.py +++ b/xendit/payment_request/model/card_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/card_information.py b/xendit/payment_request/model/card_information.py index c4c45ba1..a73de543 100644 --- a/xendit/payment_request/model/card_information.py +++ b/xendit/payment_request/model/card_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/card_verification_results.py b/xendit/payment_request/model/card_verification_results.py index 34d1420a..88c505d2 100644 --- a/xendit/payment_request/model/card_verification_results.py +++ b/xendit/payment_request/model/card_verification_results.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/card_verification_results_three_d_secure.py b/xendit/payment_request/model/card_verification_results_three_d_secure.py index 55501667..cf23bba2 100644 --- a/xendit/payment_request/model/card_verification_results_three_d_secure.py +++ b/xendit/payment_request/model/card_verification_results_three_d_secure.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/direct_debit.py b/xendit/payment_request/model/direct_debit.py index b89257aa..ecb033dc 100644 --- a/xendit/payment_request/model/direct_debit.py +++ b/xendit/payment_request/model/direct_debit.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/direct_debit_all_of.py b/xendit/payment_request/model/direct_debit_all_of.py index 28f04927..800bdc97 100644 --- a/xendit/payment_request/model/direct_debit_all_of.py +++ b/xendit/payment_request/model/direct_debit_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/direct_debit_bank_account.py b/xendit/payment_request/model/direct_debit_bank_account.py index 142c80ed..4ff1a680 100644 --- a/xendit/payment_request/model/direct_debit_bank_account.py +++ b/xendit/payment_request/model/direct_debit_bank_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/direct_debit_channel_code.py b/xendit/payment_request/model/direct_debit_channel_code.py index 6d382272..101867ba 100644 --- a/xendit/payment_request/model/direct_debit_channel_code.py +++ b/xendit/payment_request/model/direct_debit_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/direct_debit_channel_properties.py b/xendit/payment_request/model/direct_debit_channel_properties.py index ae921727..a7d70ecb 100644 --- a/xendit/payment_request/model/direct_debit_channel_properties.py +++ b/xendit/payment_request/model/direct_debit_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/direct_debit_channel_properties_bank_account.py b/xendit/payment_request/model/direct_debit_channel_properties_bank_account.py index 6a2550be..14977cb3 100644 --- a/xendit/payment_request/model/direct_debit_channel_properties_bank_account.py +++ b/xendit/payment_request/model/direct_debit_channel_properties_bank_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/direct_debit_channel_properties_bank_redirect.py b/xendit/payment_request/model/direct_debit_channel_properties_bank_redirect.py index 57f33885..675f82db 100644 --- a/xendit/payment_request/model/direct_debit_channel_properties_bank_redirect.py +++ b/xendit/payment_request/model/direct_debit_channel_properties_bank_redirect.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/direct_debit_channel_properties_debit_card.py b/xendit/payment_request/model/direct_debit_channel_properties_debit_card.py index 54a08d0c..3b1db848 100644 --- a/xendit/payment_request/model/direct_debit_channel_properties_debit_card.py +++ b/xendit/payment_request/model/direct_debit_channel_properties_debit_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/direct_debit_debit_card.py b/xendit/payment_request/model/direct_debit_debit_card.py index 47763006..3507f46c 100644 --- a/xendit/payment_request/model/direct_debit_debit_card.py +++ b/xendit/payment_request/model/direct_debit_debit_card.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/direct_debit_parameters.py b/xendit/payment_request/model/direct_debit_parameters.py index 7cfba9f4..1fc4331e 100644 --- a/xendit/payment_request/model/direct_debit_parameters.py +++ b/xendit/payment_request/model/direct_debit_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/direct_debit_type.py b/xendit/payment_request/model/direct_debit_type.py index 98e903d7..45f82f76 100644 --- a/xendit/payment_request/model/direct_debit_type.py +++ b/xendit/payment_request/model/direct_debit_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/e_wallet.py b/xendit/payment_request/model/e_wallet.py index 26f3a68b..536122d3 100644 --- a/xendit/payment_request/model/e_wallet.py +++ b/xendit/payment_request/model/e_wallet.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/e_wallet_account.py b/xendit/payment_request/model/e_wallet_account.py index 3604c2d1..e7a68b7f 100644 --- a/xendit/payment_request/model/e_wallet_account.py +++ b/xendit/payment_request/model/e_wallet_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/e_wallet_all_of.py b/xendit/payment_request/model/e_wallet_all_of.py index b29619dc..012fdad0 100644 --- a/xendit/payment_request/model/e_wallet_all_of.py +++ b/xendit/payment_request/model/e_wallet_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/e_wallet_channel_code.py b/xendit/payment_request/model/e_wallet_channel_code.py index 8e6be5d3..373ac732 100644 --- a/xendit/payment_request/model/e_wallet_channel_code.py +++ b/xendit/payment_request/model/e_wallet_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ @@ -69,6 +69,7 @@ class EWalletChannelCode(ModelSimple): 'LINEPAY': "LINEPAY", 'TRUEMONEY': "TRUEMONEY", 'ALIPAY': "ALIPAY", + 'TOUCHANDGO': "TOUCHANDGO", 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -121,10 +122,10 @@ def __init__(self, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): Ewallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "DANA", "OVO", "LINKAJA", "SHOPEEPAY", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", ] # noqa: E501 + args[0] (str): Ewallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "DANA", "OVO", "LINKAJA", "SHOPEEPAY", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", "TOUCHANDGO", ] # noqa: E501 Keyword Args: - value (str): Ewallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "DANA", "OVO", "LINKAJA", "SHOPEEPAY", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", ] # noqa: E501 + value (str): Ewallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "DANA", "OVO", "LINKAJA", "SHOPEEPAY", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", "TOUCHANDGO", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -217,10 +218,10 @@ def _from_openapi_data(cls, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): Ewallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "DANA", "OVO", "LINKAJA", "SHOPEEPAY", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", ] # noqa: E501 + args[0] (str): Ewallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "DANA", "OVO", "LINKAJA", "SHOPEEPAY", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", "TOUCHANDGO", ] # noqa: E501 Keyword Args: - value (str): Ewallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "DANA", "OVO", "LINKAJA", "SHOPEEPAY", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", ] # noqa: E501 + value (str): Ewallet Channel Code., must be one of ["GCASH", "GRABPAY", "PAYMAYA", "DANA", "OVO", "LINKAJA", "SHOPEEPAY", "NEXCASH", "ASTRAPAY", "JENIUSPAY", "APPOTA", "MOMO", "VNPTWALLET", "VIETTELPAY", "ZALOPAY", "WECHATPAY", "LINEPAY", "TRUEMONEY", "ALIPAY", "TOUCHANDGO", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. diff --git a/xendit/payment_request/model/e_wallet_channel_properties.py b/xendit/payment_request/model/e_wallet_channel_properties.py index b3bcef12..6c51213b 100644 --- a/xendit/payment_request/model/e_wallet_channel_properties.py +++ b/xendit/payment_request/model/e_wallet_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/e_wallet_parameters.py b/xendit/payment_request/model/e_wallet_parameters.py index 5d8d9bba..21ce1062 100644 --- a/xendit/payment_request/model/e_wallet_parameters.py +++ b/xendit/payment_request/model/e_wallet_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/error.py b/xendit/payment_request/model/error.py index c484c211..11195a0f 100644 --- a/xendit/payment_request/model/error.py +++ b/xendit/payment_request/model/error.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/over_the_counter.py b/xendit/payment_request/model/over_the_counter.py index 2c26e12a..c319ab2a 100644 --- a/xendit/payment_request/model/over_the_counter.py +++ b/xendit/payment_request/model/over_the_counter.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/over_the_counter_channel_code.py b/xendit/payment_request/model/over_the_counter_channel_code.py index 8189f57b..612fb5bd 100644 --- a/xendit/payment_request/model/over_the_counter_channel_code.py +++ b/xendit/payment_request/model/over_the_counter_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/over_the_counter_channel_properties.py b/xendit/payment_request/model/over_the_counter_channel_properties.py index a9f2539e..0b3c6bcd 100644 --- a/xendit/payment_request/model/over_the_counter_channel_properties.py +++ b/xendit/payment_request/model/over_the_counter_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/over_the_counter_parameters.py b/xendit/payment_request/model/over_the_counter_parameters.py index 50e5d10d..a4dce611 100644 --- a/xendit/payment_request/model/over_the_counter_parameters.py +++ b/xendit/payment_request/model/over_the_counter_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_method.py b/xendit/payment_request/model/payment_method.py index c4ee5c52..7eca5d9c 100644 --- a/xendit/payment_request/model/payment_method.py +++ b/xendit/payment_request/model/payment_method.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_method_parameters.py b/xendit/payment_request/model/payment_method_parameters.py index 5ed7838f..43cfe1e8 100644 --- a/xendit/payment_request/model/payment_method_parameters.py +++ b/xendit/payment_request/model/payment_method_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_method_reusability.py b/xendit/payment_request/model/payment_method_reusability.py index ca7e6ed7..6388c622 100644 --- a/xendit/payment_request/model/payment_method_reusability.py +++ b/xendit/payment_request/model/payment_method_reusability.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_method_status.py b/xendit/payment_request/model/payment_method_status.py index 07d22288..0e5d36e0 100644 --- a/xendit/payment_request/model/payment_method_status.py +++ b/xendit/payment_request/model/payment_method_status.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_method_type.py b/xendit/payment_request/model/payment_method_type.py index 49c65948..0da560ac 100644 --- a/xendit/payment_request/model/payment_method_type.py +++ b/xendit/payment_request/model/payment_method_type.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request.py b/xendit/payment_request/model/payment_request.py index 6825bb85..1bf7fc1d 100644 --- a/xendit/payment_request/model/payment_request.py +++ b/xendit/payment_request/model/payment_request.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_action.py b/xendit/payment_request/model/payment_request_action.py index ba60db2b..8cf24562 100644 --- a/xendit/payment_request/model/payment_request_action.py +++ b/xendit/payment_request/model/payment_request_action.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_auth_parameters.py b/xendit/payment_request/model/payment_request_auth_parameters.py index 89fdbd0a..c390269d 100644 --- a/xendit/payment_request/model/payment_request_auth_parameters.py +++ b/xendit/payment_request/model/payment_request_auth_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_basket.py b/xendit/payment_request/model/payment_request_basket.py index edc024cd..c93048d8 100644 --- a/xendit/payment_request/model/payment_request_basket.py +++ b/xendit/payment_request/model/payment_request_basket.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_basket_item.py b/xendit/payment_request/model/payment_request_basket_item.py index ceb38b7a..f61f7534 100644 --- a/xendit/payment_request/model/payment_request_basket_item.py +++ b/xendit/payment_request/model/payment_request_basket_item.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_capture_method.py b/xendit/payment_request/model/payment_request_capture_method.py index 23e889e4..2424639c 100644 --- a/xendit/payment_request/model/payment_request_capture_method.py +++ b/xendit/payment_request/model/payment_request_capture_method.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_card_verification_results.py b/xendit/payment_request/model/payment_request_card_verification_results.py index d3ef033f..a0870448 100644 --- a/xendit/payment_request/model/payment_request_card_verification_results.py +++ b/xendit/payment_request/model/payment_request_card_verification_results.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_card_verification_results_three_dee_secure.py b/xendit/payment_request/model/payment_request_card_verification_results_three_dee_secure.py index 168c43bc..f01e676e 100644 --- a/xendit/payment_request/model/payment_request_card_verification_results_three_dee_secure.py +++ b/xendit/payment_request/model/payment_request_card_verification_results_three_dee_secure.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_channel_properties.py b/xendit/payment_request/model/payment_request_channel_properties.py index b80db562..770d737d 100644 --- a/xendit/payment_request/model/payment_request_channel_properties.py +++ b/xendit/payment_request/model/payment_request_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_country.py b/xendit/payment_request/model/payment_request_country.py index 6d332a90..e3e56bb1 100644 --- a/xendit/payment_request/model/payment_request_country.py +++ b/xendit/payment_request/model/payment_request_country.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_currency.py b/xendit/payment_request/model/payment_request_currency.py index 7d598c54..e2d73361 100644 --- a/xendit/payment_request/model/payment_request_currency.py +++ b/xendit/payment_request/model/payment_request_currency.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ @@ -55,6 +55,7 @@ class PaymentRequestCurrency(ModelSimple): 'VND': "VND", 'THB': "THB", 'MYR': "MYR", + 'USD': "USD", 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -107,10 +108,10 @@ def __init__(self, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str):, must be one of ["IDR", "PHP", "VND", "THB", "MYR", ] # noqa: E501 + args[0] (str):, must be one of ["IDR", "PHP", "VND", "THB", "MYR", "USD", ] # noqa: E501 Keyword Args: - value (str):, must be one of ["IDR", "PHP", "VND", "THB", "MYR", ] # noqa: E501 + value (str):, must be one of ["IDR", "PHP", "VND", "THB", "MYR", "USD", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -203,10 +204,10 @@ def _from_openapi_data(cls, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str):, must be one of ["IDR", "PHP", "VND", "THB", "MYR", ] # noqa: E501 + args[0] (str):, must be one of ["IDR", "PHP", "VND", "THB", "MYR", "USD", ] # noqa: E501 Keyword Args: - value (str):, must be one of ["IDR", "PHP", "VND", "THB", "MYR", ] # noqa: E501 + value (str):, must be one of ["IDR", "PHP", "VND", "THB", "MYR", "USD", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. diff --git a/xendit/payment_request/model/payment_request_initiator.py b/xendit/payment_request/model/payment_request_initiator.py index e982244f..b69d7446 100644 --- a/xendit/payment_request/model/payment_request_initiator.py +++ b/xendit/payment_request/model/payment_request_initiator.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_list_response.py b/xendit/payment_request/model/payment_request_list_response.py index b2c1ef05..520a7f03 100644 --- a/xendit/payment_request/model/payment_request_list_response.py +++ b/xendit/payment_request/model/payment_request_list_response.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_parameters.py b/xendit/payment_request/model/payment_request_parameters.py index 8baff99d..8dbb5df7 100644 --- a/xendit/payment_request/model/payment_request_parameters.py +++ b/xendit/payment_request/model/payment_request_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_parameters_channel_properties.py b/xendit/payment_request/model/payment_request_parameters_channel_properties.py index d6ba6347..a55cc1ee 100644 --- a/xendit/payment_request/model/payment_request_parameters_channel_properties.py +++ b/xendit/payment_request/model/payment_request_parameters_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_parameters_channel_properties_all_of.py b/xendit/payment_request/model/payment_request_parameters_channel_properties_all_of.py index 8d7dd19c..b6c4ff7c 100644 --- a/xendit/payment_request/model/payment_request_parameters_channel_properties_all_of.py +++ b/xendit/payment_request/model/payment_request_parameters_channel_properties_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_shipping_information.py b/xendit/payment_request/model/payment_request_shipping_information.py index 8017d48c..2e8c442c 100644 --- a/xendit/payment_request/model/payment_request_shipping_information.py +++ b/xendit/payment_request/model/payment_request_shipping_information.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/payment_request_status.py b/xendit/payment_request/model/payment_request_status.py index 5fd1749e..b8ce60e9 100644 --- a/xendit/payment_request/model/payment_request_status.py +++ b/xendit/payment_request/model/payment_request_status.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/qr_code.py b/xendit/payment_request/model/qr_code.py index e6d9e1f0..55937668 100644 --- a/xendit/payment_request/model/qr_code.py +++ b/xendit/payment_request/model/qr_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/qr_code_channel_code.py b/xendit/payment_request/model/qr_code_channel_code.py index 99e40b85..f5a996ce 100644 --- a/xendit/payment_request/model/qr_code_channel_code.py +++ b/xendit/payment_request/model/qr_code_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/qr_code_channel_properties.py b/xendit/payment_request/model/qr_code_channel_properties.py index d966a6f9..4de666b5 100644 --- a/xendit/payment_request/model/qr_code_channel_properties.py +++ b/xendit/payment_request/model/qr_code_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/qr_code_parameters.py b/xendit/payment_request/model/qr_code_parameters.py index e8680620..059c1fbc 100644 --- a/xendit/payment_request/model/qr_code_parameters.py +++ b/xendit/payment_request/model/qr_code_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/virtual_account.py b/xendit/payment_request/model/virtual_account.py index f7e65dcc..1f50bd74 100644 --- a/xendit/payment_request/model/virtual_account.py +++ b/xendit/payment_request/model/virtual_account.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/virtual_account_all_of.py b/xendit/payment_request/model/virtual_account_all_of.py index 85b2435f..77b0fb2e 100644 --- a/xendit/payment_request/model/virtual_account_all_of.py +++ b/xendit/payment_request/model/virtual_account_all_of.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/virtual_account_alternative_display.py b/xendit/payment_request/model/virtual_account_alternative_display.py index b934522b..5b039d5d 100644 --- a/xendit/payment_request/model/virtual_account_alternative_display.py +++ b/xendit/payment_request/model/virtual_account_alternative_display.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/virtual_account_channel_code.py b/xendit/payment_request/model/virtual_account_channel_code.py index 2fe5a260..4f7aa1c6 100644 --- a/xendit/payment_request/model/virtual_account_channel_code.py +++ b/xendit/payment_request/model/virtual_account_channel_code.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ @@ -65,6 +65,7 @@ class VirtualAccountChannelCode(ModelSimple): 'WOORI': "WOORI", 'MSB': "MSB", 'STANDARD_CHARTERED': "STANDARD_CHARTERED", + 'AMBANK': "AMBANK", 'XENDIT_ENUM_DEFAULT_FALLBACK': 'UNKNOWN_ENUM_VALUE', }, } @@ -117,10 +118,10 @@ def __init__(self, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", ] # noqa: E501 + args[0] (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", ] # noqa: E501 Keyword Args: - value (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", ] # noqa: E501 + value (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -213,10 +214,10 @@ def _from_openapi_data(cls, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", ] # noqa: E501 + args[0] (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", ] # noqa: E501 Keyword Args: - value (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", ] # noqa: E501 + value (str): Virtual Account Channel Code., must be one of ["BCA", "BJB", "BNI", "BRI", "MANDIRI", "PERMATA", "BSI", "CIMB", "SAHABAT_SAMPOERNA", "ARTAJASA", "PV", "VIETCAPITAL", "WOORI", "MSB", "STANDARD_CHARTERED", "AMBANK", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. diff --git a/xendit/payment_request/model/virtual_account_channel_properties.py b/xendit/payment_request/model/virtual_account_channel_properties.py index 9e0ed112..4ababa05 100644 --- a/xendit/payment_request/model/virtual_account_channel_properties.py +++ b/xendit/payment_request/model/virtual_account_channel_properties.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/model/virtual_account_parameters.py b/xendit/payment_request/model/virtual_account_parameters.py index b54eff85..09bbedab 100644 --- a/xendit/payment_request/model/virtual_account_parameters.py +++ b/xendit/payment_request/model/virtual_account_parameters.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ diff --git a/xendit/payment_request/payment_request_api.py b/xendit/payment_request/payment_request_api.py index d9d02884..ae78cd58 100644 --- a/xendit/payment_request/payment_request_api.py +++ b/xendit/payment_request/payment_request_api.py @@ -3,7 +3,7 @@ This API is used for Payment Requests # noqa: E501 - The version of the OpenAPI document: 1.44.1 + The version of the OpenAPI document: 1.45.1 """ import re # noqa: F401 diff --git a/xendit/rest.py b/xendit/rest.py index d4203718..6c0647f5 100644 --- a/xendit/rest.py +++ b/xendit/rest.py @@ -1,5 +1,5 @@ """ - The version of the XENDIT API: 1.44.1 + The version of the XENDIT API: 1.45.1 """ From 00b8db701d8446232ba7f101dcad9cb6f699e112 Mon Sep 17 00:00:00 2001 From: sekaranglila Date: Thu, 16 Nov 2023 11:22:00 +0700 Subject: [PATCH 4/4] Generated Xendit python SDK v3.6.0 --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e189de49..304f1e01 100644 --- a/README.md +++ b/README.md @@ -80,4 +80,6 @@ All URIs are relative to *https://api.xendit.co*. For more information about ou Further Reading * [Xendit Docs](https://docs.xendit.co/) -* [Xendit API Reference](https://developers.xendit.co/) \ No newline at end of file +* [Xendit API Reference](https://developers.xendit.co/) + +[//]: # (Readme update 16/10/23) \ No newline at end of file