diff --git a/.github/workflows/publish-release-on-pr-merge.yml b/.github/workflows/publish-release-on-pr-merge.yml index 337ca9bd..abaad125 100644 --- a/.github/workflows/publish-release-on-pr-merge.yml +++ b/.github/workflows/publish-release-on-pr-merge.yml @@ -1,4 +1,4 @@ -name: Publish Release on PR Merge +name: Publish GitHub Release on PR Merge on: pull_request: @@ -19,7 +19,11 @@ jobs: - name: Check for existing release id: existing env: + # The gh commands below read both of these from the environment: GH_TOKEN for auth, + # GH_REPO for which repo to act on. GH_REPO is required because this job has no + # checkout, so gh has no git remote to infer it from, and gh ignores GITHUB_REPOSITORY. GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }} run: | marker="" @@ -45,6 +49,7 @@ jobs: if: steps.existing.outputs.skip == 'false' env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} PR_TITLE: ${{ github.event.pull_request.title }} run: | LAST_TAG=$(gh release list --limit 1 --json tagName -q '.[0].tagName') @@ -79,6 +84,7 @@ jobs: if: steps.existing.outputs.skip == 'false' env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }} PR_BODY: ${{ github.event.pull_request.body }} MERGE_SHA: ${{ github.event.pull_request.merge_commit_sha }} diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 0941ec07..3a931a3a 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -183,6 +183,7 @@ docs/ChapsDestination.md docs/ChapsPaymentInfo.md docs/CipsAddress.md docs/CipsDestination.md +docs/CipsPaymentInfo.md docs/ClaimRewardsRequest.md docs/CollectionBurnRequestDto.md docs/CollectionBurnResponseDto.md @@ -460,8 +461,10 @@ docs/FixedFee.md docs/FlowDirection.md docs/FpsHkAddress.md docs/FpsHkDestination.md +docs/FpsHkPaymentInfo.md docs/FpsUkAddress.md docs/FpsUkDestination.md +docs/FpsUkPaymentInfo.md docs/FreezeTransactionResponse.md docs/FunctionDoc.md docs/Funds.md @@ -523,6 +526,7 @@ docs/InitiatorConfig.md docs/InitiatorConfigPattern.md docs/InstaPayAddress.md docs/InstaPayDestination.md +docs/InstaPayPaymentInfo.md docs/InstructionAmount.md docs/InteracAddress.md docs/InteracDestination.md @@ -609,6 +613,7 @@ docs/MultichainDeploymentMetadata.md docs/NFTsApi.md docs/NequiAddress.md docs/NequiDestination.md +docs/NequiPaymentInfo.md docs/NetworkChannel.md docs/NetworkConnection.md docs/NetworkConnectionResponse.md @@ -695,6 +700,7 @@ docs/PersonalIdentificationFullName.md docs/PersonalIdentificationType.md docs/PesonetAddress.md docs/PesonetDestination.md +docs/PesonetPaymentInfo.md docs/PixAddress.md docs/PixDestination.md docs/PixPaymentInfo.md @@ -1476,6 +1482,7 @@ fireblocks/models/chaps_destination.py fireblocks/models/chaps_payment_info.py fireblocks/models/cips_address.py fireblocks/models/cips_destination.py +fireblocks/models/cips_payment_info.py fireblocks/models/claim_rewards_request.py fireblocks/models/collection_burn_request_dto.py fireblocks/models/collection_burn_response_dto.py @@ -1739,8 +1746,10 @@ fireblocks/models/fixed_fee.py fireblocks/models/flow_direction.py fireblocks/models/fps_hk_address.py fireblocks/models/fps_hk_destination.py +fireblocks/models/fps_hk_payment_info.py fireblocks/models/fps_uk_address.py fireblocks/models/fps_uk_destination.py +fireblocks/models/fps_uk_payment_info.py fireblocks/models/freeze_transaction_response.py fireblocks/models/function_doc.py fireblocks/models/funds.py @@ -1800,6 +1809,7 @@ fireblocks/models/initiator_config.py fireblocks/models/initiator_config_pattern.py fireblocks/models/insta_pay_address.py fireblocks/models/insta_pay_destination.py +fireblocks/models/insta_pay_payment_info.py fireblocks/models/instruction_amount.py fireblocks/models/interac_address.py fireblocks/models/interac_destination.py @@ -1882,6 +1892,7 @@ fireblocks/models/mpc_key.py fireblocks/models/multichain_deployment_metadata.py fireblocks/models/nequi_address.py fireblocks/models/nequi_destination.py +fireblocks/models/nequi_payment_info.py fireblocks/models/network_channel.py fireblocks/models/network_connection.py fireblocks/models/network_connection_response.py @@ -1963,6 +1974,7 @@ fireblocks/models/personal_identification_full_name.py fireblocks/models/personal_identification_type.py fireblocks/models/pesonet_address.py fireblocks/models/pesonet_destination.py +fireblocks/models/pesonet_payment_info.py fireblocks/models/pix_address.py fireblocks/models/pix_destination.py fireblocks/models/pix_payment_info.py @@ -2684,6 +2696,7 @@ test/test_chaps_destination.py test/test_chaps_payment_info.py test/test_cips_address.py test/test_cips_destination.py +test/test_cips_payment_info.py test/test_claim_rewards_request.py test/test_collection_burn_request_dto.py test/test_collection_burn_response_dto.py @@ -2961,8 +2974,10 @@ test/test_fixed_fee.py test/test_flow_direction.py test/test_fps_hk_address.py test/test_fps_hk_destination.py +test/test_fps_hk_payment_info.py test/test_fps_uk_address.py test/test_fps_uk_destination.py +test/test_fps_uk_payment_info.py test/test_freeze_transaction_response.py test/test_function_doc.py test/test_funds.py @@ -3024,6 +3039,7 @@ test/test_initiator_config.py test/test_initiator_config_pattern.py test/test_insta_pay_address.py test/test_insta_pay_destination.py +test/test_insta_pay_payment_info.py test/test_instruction_amount.py test/test_interac_address.py test/test_interac_destination.py @@ -3109,6 +3125,7 @@ test/test_mpc_key.py test/test_multichain_deployment_metadata.py test/test_nequi_address.py test/test_nequi_destination.py +test/test_nequi_payment_info.py test/test_network_channel.py test/test_network_connection.py test/test_network_connection_response.py @@ -3196,6 +3213,7 @@ test/test_personal_identification_full_name.py test/test_personal_identification_type.py test/test_pesonet_address.py test/test_pesonet_destination.py +test/test_pesonet_payment_info.py test/test_pix_address.py test/test_pix_destination.py test/test_pix_payment_info.py diff --git a/README.md b/README.md index 2ad4ef04..c487ccca 100644 --- a/README.md +++ b/README.md @@ -865,6 +865,7 @@ Class | Method | HTTP request | Description - [ChapsPaymentInfo](docs/ChapsPaymentInfo.md) - [CipsAddress](docs/CipsAddress.md) - [CipsDestination](docs/CipsDestination.md) + - [CipsPaymentInfo](docs/CipsPaymentInfo.md) - [ClaimRewardsRequest](docs/ClaimRewardsRequest.md) - [CollectionBurnRequestDto](docs/CollectionBurnRequestDto.md) - [CollectionBurnResponseDto](docs/CollectionBurnResponseDto.md) @@ -1128,8 +1129,10 @@ Class | Method | HTTP request | Description - [FlowDirection](docs/FlowDirection.md) - [FpsHkAddress](docs/FpsHkAddress.md) - [FpsHkDestination](docs/FpsHkDestination.md) + - [FpsHkPaymentInfo](docs/FpsHkPaymentInfo.md) - [FpsUkAddress](docs/FpsUkAddress.md) - [FpsUkDestination](docs/FpsUkDestination.md) + - [FpsUkPaymentInfo](docs/FpsUkPaymentInfo.md) - [FreezeTransactionResponse](docs/FreezeTransactionResponse.md) - [FunctionDoc](docs/FunctionDoc.md) - [Funds](docs/Funds.md) @@ -1189,6 +1192,7 @@ Class | Method | HTTP request | Description - [InitiatorConfigPattern](docs/InitiatorConfigPattern.md) - [InstaPayAddress](docs/InstaPayAddress.md) - [InstaPayDestination](docs/InstaPayDestination.md) + - [InstaPayPaymentInfo](docs/InstaPayPaymentInfo.md) - [InstructionAmount](docs/InstructionAmount.md) - [InteracAddress](docs/InteracAddress.md) - [InteracDestination](docs/InteracDestination.md) @@ -1271,6 +1275,7 @@ Class | Method | HTTP request | Description - [MultichainDeploymentMetadata](docs/MultichainDeploymentMetadata.md) - [NequiAddress](docs/NequiAddress.md) - [NequiDestination](docs/NequiDestination.md) + - [NequiPaymentInfo](docs/NequiPaymentInfo.md) - [NetworkChannel](docs/NetworkChannel.md) - [NetworkConnection](docs/NetworkConnection.md) - [NetworkConnectionResponse](docs/NetworkConnectionResponse.md) @@ -1352,6 +1357,7 @@ Class | Method | HTTP request | Description - [PersonalIdentificationType](docs/PersonalIdentificationType.md) - [PesonetAddress](docs/PesonetAddress.md) - [PesonetDestination](docs/PesonetDestination.md) + - [PesonetPaymentInfo](docs/PesonetPaymentInfo.md) - [PixAddress](docs/PixAddress.md) - [PixDestination](docs/PixDestination.md) - [PixPaymentInfo](docs/PixPaymentInfo.md) diff --git a/docs/AdditionalInfoRequestAdditionalInfo.md b/docs/AdditionalInfoRequestAdditionalInfo.md index 05cae4d7..c0ae1dea 100644 --- a/docs/AdditionalInfoRequestAdditionalInfo.md +++ b/docs/AdditionalInfoRequestAdditionalInfo.md @@ -22,15 +22,15 @@ Name | Type | Description | Notes **aba_country** | **str** | The country for the ABA transfer (ISO 3166-1 alpha-2 code) | **spei_clabe** | **str** | The CLABE (Clave Bancaria Estandarizada) number for SPEI transfers | **spei_name** | **str** | The name associated with the SPEI account | [optional] -**rail** | **str** | The payment rail type for CHAPS transfers | -**addressing_system** | **str** | The addressing system used for CHAPS transfers | +**rail** | **str** | The payment rail type for PesoNet transfers | +**addressing_system** | **str** | The addressing system used for PesoNet transfers | **country** | **str** | The country for the transfer (ISO 3166-1 alpha-2 code) | -**bank_name** | **str** | The name of the bank | +**bank_name** | **str** | Name of the recipient's bank | **beneficiary_rfc** | **str** | The RFC (Registro Federal de Contribuyentes) of the beneficiary | [optional] **sender_document_id** | **str** | The document ID of the sender | [optional] **clabe** | **str** | The CLABE (Clave Bancaria Estandarizada) number | **pix_key** | **str** | The PIX key used for the transfer | -**bank_code** | **str** | The bank code or identifier | +**bank_code** | **str** | Hong Kong bank code | **key_type** | **str** | The type of PIX key being used | **account_holder_address** | **str** | The address of the account holder | [optional] **bic** | **str** | The Bank Identifier Code (BIC/SWIFT code) | [optional] @@ -38,10 +38,10 @@ Name | Type | Description | Notes **bank_address** | **str** | The address of the bank | [optional] **purpose_code** | **str** | The purpose code for the transfer | [optional] **tax_id** | **str** | The tax identification number | [optional] -**account_number** | **str** | UK bank account number | +**account_number** | **str** | Recipient bank account number | **routing_number** | **str** | The bank routing number (ABA routing number) | **account_type** | **str** | The type of bank account | -**swift_code** | **str** | The SWIFT/BIC code of the bank | +**swift_code** | **str** | SWIFT/BIC code of the recipient bank | **bank_address_line** | **str** | The street address of the bank | **bank_address_city** | **str** | The city where the bank is located | **bank_address_state** | **str** | The state where the bank is located | [optional] @@ -50,7 +50,7 @@ Name | Type | Description | Notes **branch_number** | **str** | The branch number of the bank | [optional] **mobile_phone_number** | **str** | The mobile phone number associated with the mobile money account | **provider** | **str** | The mobile money service provider | -**email** | **str** | The email address of the account holder | +**email** | **str** | Recipient email address | **beneficiary_document_id** | **str** | The document ID of the beneficiary | [optional] **beneficiary_relationship** | **str** | The relationship between sender and beneficiary | [optional] **recipient_handle_type** | **str** | The type of recipient handler being used | @@ -59,9 +59,14 @@ Name | Type | Description | Notes **value** | **str** | The PayID identifier (email, phone, ABN, or organization ID) | **type** | **str** | The type of PayID being used | **bsb** | **str** | Bank State Branch (BSB) number (6 digits, format XXX-XXX) | -**sort_code** | **str** | UK bank sort code (format XX-XX-XX) | -**bank_account_country** | **str** | CHAPS bank account holder name | +**sort_code** | **str** | UK sort code (format XX-XX-XX) | +**bank_account_country** | **str** | ISO 3166-1 alpha-2 country code of the bank account | **bank_account_holder_name** | **str** | CHAPS bank account holder name | +**bank_country** | **str** | ISO 3166-1 alpha-2 country code of the bank | +**reference_id** | **str** | Optional payment reference | [optional] +**phone** | **str** | Recipient phone number in E.164 format | +**recipient_legal_name** | **str** | Full legal name of the recipient | [optional] +**fps_id** | **str** | Hong Kong FPS identifier | [optional] ## Example diff --git a/docs/CipsPaymentInfo.md b/docs/CipsPaymentInfo.md new file mode 100644 index 00000000..f0560eb0 --- /dev/null +++ b/docs/CipsPaymentInfo.md @@ -0,0 +1,38 @@ +# CipsPaymentInfo + +CIPS payment information for Cross-Border Interbank Payment System transfers (CNY) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rail** | **str** | The payment rail type for CIPS transfers | +**addressing_system** | **str** | The addressing system used for CIPS transfers | +**account_holder_given_name** | **str** | The given name (first name) of the account holder | +**account_holder_surname** | **str** | The surname (last name) of the account holder | [optional] +**bank_name** | **str** | Name of the recipient's bank | +**bank_country** | **str** | ISO 3166-1 alpha-2 country code of the bank | +**swift_code** | **str** | SWIFT/BIC code of the recipient bank | +**account_number** | **str** | Recipient bank account number | +**reference_id** | **str** | Optional payment reference | [optional] + +## Example + +```python +from fireblocks.models.cips_payment_info import CipsPaymentInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of CipsPaymentInfo from a JSON string +cips_payment_info_instance = CipsPaymentInfo.from_json(json) +# print the JSON string representation of the object +print(CipsPaymentInfo.to_json()) + +# convert the object into a dict +cips_payment_info_dict = cips_payment_info_instance.to_dict() +# create an instance of CipsPaymentInfo from a dict +cips_payment_info_from_dict = CipsPaymentInfo.from_dict(cips_payment_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FpsHkPaymentInfo.md b/docs/FpsHkPaymentInfo.md new file mode 100644 index 00000000..6d3e931f --- /dev/null +++ b/docs/FpsHkPaymentInfo.md @@ -0,0 +1,37 @@ +# FpsHkPaymentInfo + +FPS HK payment information for Hong Kong Faster Payment System transfers (HKD) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rail** | **str** | The payment rail type for Hong Kong FPS transfers | +**addressing_system** | **str** | The addressing system used for Hong Kong FPS transfers | +**recipient_legal_name** | **str** | Full legal name of the recipient | [optional] +**account_number** | **str** | Recipient bank account number | [optional] +**bank_code** | **str** | Hong Kong bank code | [optional] +**phone** | **str** | Recipient phone number in E.164 format | [optional] +**email** | **str** | Recipient email address | [optional] +**fps_id** | **str** | Hong Kong FPS identifier | [optional] + +## Example + +```python +from fireblocks.models.fps_hk_payment_info import FpsHkPaymentInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of FpsHkPaymentInfo from a JSON string +fps_hk_payment_info_instance = FpsHkPaymentInfo.from_json(json) +# print the JSON string representation of the object +print(FpsHkPaymentInfo.to_json()) + +# convert the object into a dict +fps_hk_payment_info_dict = fps_hk_payment_info_instance.to_dict() +# create an instance of FpsHkPaymentInfo from a dict +fps_hk_payment_info_from_dict = FpsHkPaymentInfo.from_dict(fps_hk_payment_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FpsUkPaymentInfo.md b/docs/FpsUkPaymentInfo.md new file mode 100644 index 00000000..72959de1 --- /dev/null +++ b/docs/FpsUkPaymentInfo.md @@ -0,0 +1,36 @@ +# FpsUkPaymentInfo + +FPS UK payment information for UK Faster Payments transfers (GBP) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rail** | **str** | The payment rail type for UK Faster Payments transfers | +**addressing_system** | **str** | The addressing system used for UK Faster Payments transfers | +**account_holder_given_name** | **str** | The given name (first name) of the account holder | +**account_holder_surname** | **str** | The surname (last name) of the account holder | +**account_number** | **str** | UK bank account number | +**sort_code** | **str** | UK sort code (format XX-XX-XX) | +**bank_account_country** | **str** | ISO 3166-1 alpha-2 country code of the bank account | [optional] + +## Example + +```python +from fireblocks.models.fps_uk_payment_info import FpsUkPaymentInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of FpsUkPaymentInfo from a JSON string +fps_uk_payment_info_instance = FpsUkPaymentInfo.from_json(json) +# print the JSON string representation of the object +print(FpsUkPaymentInfo.to_json()) + +# convert the object into a dict +fps_uk_payment_info_dict = fps_uk_payment_info_instance.to_dict() +# create an instance of FpsUkPaymentInfo from a dict +fps_uk_payment_info_from_dict = FpsUkPaymentInfo.from_dict(fps_uk_payment_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InstaPayPaymentInfo.md b/docs/InstaPayPaymentInfo.md new file mode 100644 index 00000000..e6f4dccb --- /dev/null +++ b/docs/InstaPayPaymentInfo.md @@ -0,0 +1,35 @@ +# InstaPayPaymentInfo + +InstaPay payment information for Philippine instant payment transfers (PHP) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rail** | **str** | The payment rail type for InstaPay transfers | +**addressing_system** | **str** | The addressing system used for InstaPay transfers | +**account_holder_given_name** | **str** | The given name (first name) of the account holder | +**account_holder_surname** | **str** | The surname (last name) of the account holder | +**account_number** | **str** | Recipient bank account or wallet number | +**bank_name** | **str** | Name of the recipient's bank or wallet (e.g. BDO, BPI, GCash, Maya) | + +## Example + +```python +from fireblocks.models.insta_pay_payment_info import InstaPayPaymentInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of InstaPayPaymentInfo from a JSON string +insta_pay_payment_info_instance = InstaPayPaymentInfo.from_json(json) +# print the JSON string representation of the object +print(InstaPayPaymentInfo.to_json()) + +# convert the object into a dict +insta_pay_payment_info_dict = insta_pay_payment_info_instance.to_dict() +# create an instance of InstaPayPaymentInfo from a dict +insta_pay_payment_info_from_dict = InstaPayPaymentInfo.from_dict(insta_pay_payment_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NequiPaymentInfo.md b/docs/NequiPaymentInfo.md new file mode 100644 index 00000000..fd5a6621 --- /dev/null +++ b/docs/NequiPaymentInfo.md @@ -0,0 +1,32 @@ +# NequiPaymentInfo + +NEQUI payment information for Colombian mobile payment transfers (COP) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rail** | **str** | The payment rail type for NEQUI transfers | +**addressing_system** | **str** | The addressing system used for NEQUI transfers | +**phone** | **str** | Recipient phone number in E.164 format | + +## Example + +```python +from fireblocks.models.nequi_payment_info import NequiPaymentInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of NequiPaymentInfo from a JSON string +nequi_payment_info_instance = NequiPaymentInfo.from_json(json) +# print the JSON string representation of the object +print(NequiPaymentInfo.to_json()) + +# convert the object into a dict +nequi_payment_info_dict = nequi_payment_info_instance.to_dict() +# create an instance of NequiPaymentInfo from a dict +nequi_payment_info_from_dict = NequiPaymentInfo.from_dict(nequi_payment_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PesonetPaymentInfo.md b/docs/PesonetPaymentInfo.md new file mode 100644 index 00000000..84d6e3d3 --- /dev/null +++ b/docs/PesonetPaymentInfo.md @@ -0,0 +1,35 @@ +# PesonetPaymentInfo + +PesoNet payment information for Philippine batch payment transfers (PHP) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rail** | **str** | The payment rail type for PesoNet transfers | +**addressing_system** | **str** | The addressing system used for PesoNet transfers | +**account_holder_given_name** | **str** | The given name (first name) of the account holder | +**account_holder_surname** | **str** | The surname (last name) of the account holder | +**account_number** | **str** | Recipient bank account number | +**bank_name** | **str** | Name of the recipient's bank | + +## Example + +```python +from fireblocks.models.pesonet_payment_info import PesonetPaymentInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of PesonetPaymentInfo from a JSON string +pesonet_payment_info_instance = PesonetPaymentInfo.from_json(json) +# print the JSON string representation of the object +print(PesonetPaymentInfo.to_json()) + +# convert the object into a dict +pesonet_payment_info_dict = pesonet_payment_info_instance.to_dict() +# create an instance of PesonetPaymentInfo from a dict +pesonet_payment_info_from_dict = PesonetPaymentInfo.from_dict(pesonet_payment_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/fireblocks/__init__.py b/fireblocks/__init__.py index 221ae0f1..ddeb1bd5 100644 --- a/fireblocks/__init__.py +++ b/fireblocks/__init__.py @@ -335,6 +335,7 @@ from fireblocks.models.chaps_payment_info import ChapsPaymentInfo from fireblocks.models.cips_address import CipsAddress from fireblocks.models.cips_destination import CipsDestination +from fireblocks.models.cips_payment_info import CipsPaymentInfo from fireblocks.models.claim_rewards_request import ClaimRewardsRequest from fireblocks.models.collection_burn_request_dto import CollectionBurnRequestDto from fireblocks.models.collection_burn_response_dto import CollectionBurnResponseDto @@ -768,8 +769,10 @@ from fireblocks.models.flow_direction import FlowDirection from fireblocks.models.fps_hk_address import FpsHkAddress from fireblocks.models.fps_hk_destination import FpsHkDestination +from fireblocks.models.fps_hk_payment_info import FpsHkPaymentInfo from fireblocks.models.fps_uk_address import FpsUkAddress from fireblocks.models.fps_uk_destination import FpsUkDestination +from fireblocks.models.fps_uk_payment_info import FpsUkPaymentInfo from fireblocks.models.freeze_transaction_response import FreezeTransactionResponse from fireblocks.models.function_doc import FunctionDoc from fireblocks.models.funds import Funds @@ -863,6 +866,7 @@ from fireblocks.models.initiator_config_pattern import InitiatorConfigPattern from fireblocks.models.insta_pay_address import InstaPayAddress from fireblocks.models.insta_pay_destination import InstaPayDestination +from fireblocks.models.insta_pay_payment_info import InstaPayPaymentInfo from fireblocks.models.instruction_amount import InstructionAmount from fireblocks.models.interac_address import InteracAddress from fireblocks.models.interac_destination import InteracDestination @@ -989,6 +993,7 @@ ) from fireblocks.models.nequi_address import NequiAddress from fireblocks.models.nequi_destination import NequiDestination +from fireblocks.models.nequi_payment_info import NequiPaymentInfo from fireblocks.models.network_channel import NetworkChannel from fireblocks.models.network_connection import NetworkConnection from fireblocks.models.network_connection_response import NetworkConnectionResponse @@ -1098,6 +1103,7 @@ from fireblocks.models.personal_identification_type import PersonalIdentificationType from fireblocks.models.pesonet_address import PesonetAddress from fireblocks.models.pesonet_destination import PesonetDestination +from fireblocks.models.pesonet_payment_info import PesonetPaymentInfo from fireblocks.models.pix_address import PixAddress from fireblocks.models.pix_destination import PixDestination from fireblocks.models.pix_payment_info import PixPaymentInfo diff --git a/fireblocks/models/__init__.py b/fireblocks/models/__init__.py index 71e7fca7..7bbea7a6 100644 --- a/fireblocks/models/__init__.py +++ b/fireblocks/models/__init__.py @@ -192,6 +192,7 @@ from fireblocks.models.chaps_payment_info import ChapsPaymentInfo from fireblocks.models.cips_address import CipsAddress from fireblocks.models.cips_destination import CipsDestination +from fireblocks.models.cips_payment_info import CipsPaymentInfo from fireblocks.models.claim_rewards_request import ClaimRewardsRequest from fireblocks.models.collection_burn_request_dto import CollectionBurnRequestDto from fireblocks.models.collection_burn_response_dto import CollectionBurnResponseDto @@ -455,8 +456,10 @@ from fireblocks.models.flow_direction import FlowDirection from fireblocks.models.fps_hk_address import FpsHkAddress from fireblocks.models.fps_hk_destination import FpsHkDestination +from fireblocks.models.fps_hk_payment_info import FpsHkPaymentInfo from fireblocks.models.fps_uk_address import FpsUkAddress from fireblocks.models.fps_uk_destination import FpsUkDestination +from fireblocks.models.fps_uk_payment_info import FpsUkPaymentInfo from fireblocks.models.freeze_transaction_response import FreezeTransactionResponse from fireblocks.models.function_doc import FunctionDoc from fireblocks.models.funds import Funds @@ -516,6 +519,7 @@ from fireblocks.models.initiator_config_pattern import InitiatorConfigPattern from fireblocks.models.insta_pay_address import InstaPayAddress from fireblocks.models.insta_pay_destination import InstaPayDestination +from fireblocks.models.insta_pay_payment_info import InstaPayPaymentInfo from fireblocks.models.instruction_amount import InstructionAmount from fireblocks.models.interac_address import InteracAddress from fireblocks.models.interac_destination import InteracDestination @@ -598,6 +602,7 @@ from fireblocks.models.multichain_deployment_metadata import MultichainDeploymentMetadata from fireblocks.models.nequi_address import NequiAddress from fireblocks.models.nequi_destination import NequiDestination +from fireblocks.models.nequi_payment_info import NequiPaymentInfo from fireblocks.models.network_channel import NetworkChannel from fireblocks.models.network_connection import NetworkConnection from fireblocks.models.network_connection_response import NetworkConnectionResponse @@ -679,6 +684,7 @@ from fireblocks.models.personal_identification_type import PersonalIdentificationType from fireblocks.models.pesonet_address import PesonetAddress from fireblocks.models.pesonet_destination import PesonetDestination +from fireblocks.models.pesonet_payment_info import PesonetPaymentInfo from fireblocks.models.pix_address import PixAddress from fireblocks.models.pix_destination import PixDestination from fireblocks.models.pix_payment_info import PixPaymentInfo diff --git a/fireblocks/models/additional_info_request_additional_info.py b/fireblocks/models/additional_info_request_additional_info.py index 3dff5075..bc37ef73 100644 --- a/fireblocks/models/additional_info_request_additional_info.py +++ b/fireblocks/models/additional_info_request_additional_info.py @@ -21,11 +21,17 @@ from fireblocks.models.aba_payment_info import AbaPaymentInfo from fireblocks.models.ach_payment_info import AchPaymentInfo from fireblocks.models.chaps_payment_info import ChapsPaymentInfo +from fireblocks.models.cips_payment_info import CipsPaymentInfo +from fireblocks.models.fps_hk_payment_info import FpsHkPaymentInfo +from fireblocks.models.fps_uk_payment_info import FpsUkPaymentInfo from fireblocks.models.iban_payment_info import IbanPaymentInfo +from fireblocks.models.insta_pay_payment_info import InstaPayPaymentInfo from fireblocks.models.interac_payment_info import InteracPaymentInfo from fireblocks.models.lbt_payment_info import LbtPaymentInfo from fireblocks.models.momo_payment_info import MomoPaymentInfo +from fireblocks.models.nequi_payment_info import NequiPaymentInfo from fireblocks.models.payid_payment_info import PayidPaymentInfo +from fireblocks.models.pesonet_payment_info import PesonetPaymentInfo from fireblocks.models.pix_payment_info import PixPaymentInfo from fireblocks.models.sepa_payment_info import SepaPaymentInfo from fireblocks.models.spei_advanced_payment_info import SpeiAdvancedPaymentInfo @@ -35,7 +41,7 @@ from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -ADDITIONALINFOREQUESTADDITIONALINFO_ONE_OF_SCHEMAS = ["AbaPaymentInfo", "AchPaymentInfo", "ChapsPaymentInfo", "IbanPaymentInfo", "InteracPaymentInfo", "LbtPaymentInfo", "MomoPaymentInfo", "PayidPaymentInfo", "PixPaymentInfo", "SepaPaymentInfo", "SpeiAdvancedPaymentInfo", "SpeiBasicPaymentInfo", "UsWirePaymentInfo"] +ADDITIONALINFOREQUESTADDITIONALINFO_ONE_OF_SCHEMAS = ["AbaPaymentInfo", "AchPaymentInfo", "ChapsPaymentInfo", "CipsPaymentInfo", "FpsHkPaymentInfo", "FpsUkPaymentInfo", "IbanPaymentInfo", "InstaPayPaymentInfo", "InteracPaymentInfo", "LbtPaymentInfo", "MomoPaymentInfo", "NequiPaymentInfo", "PayidPaymentInfo", "PesonetPaymentInfo", "PixPaymentInfo", "SepaPaymentInfo", "SpeiAdvancedPaymentInfo", "SpeiBasicPaymentInfo", "UsWirePaymentInfo"] class AdditionalInfoRequestAdditionalInfo(BaseModel): """ @@ -67,8 +73,20 @@ class AdditionalInfoRequestAdditionalInfo(BaseModel): oneof_schema_12_validator: Optional[PayidPaymentInfo] = None # data type: ChapsPaymentInfo oneof_schema_13_validator: Optional[ChapsPaymentInfo] = None - actual_instance: Optional[Union[AbaPaymentInfo, AchPaymentInfo, ChapsPaymentInfo, IbanPaymentInfo, InteracPaymentInfo, LbtPaymentInfo, MomoPaymentInfo, PayidPaymentInfo, PixPaymentInfo, SepaPaymentInfo, SpeiAdvancedPaymentInfo, SpeiBasicPaymentInfo, UsWirePaymentInfo]] = None - one_of_schemas: Set[str] = { "AbaPaymentInfo", "AchPaymentInfo", "ChapsPaymentInfo", "IbanPaymentInfo", "InteracPaymentInfo", "LbtPaymentInfo", "MomoPaymentInfo", "PayidPaymentInfo", "PixPaymentInfo", "SepaPaymentInfo", "SpeiAdvancedPaymentInfo", "SpeiBasicPaymentInfo", "UsWirePaymentInfo" } + # data type: CipsPaymentInfo + oneof_schema_14_validator: Optional[CipsPaymentInfo] = None + # data type: NequiPaymentInfo + oneof_schema_15_validator: Optional[NequiPaymentInfo] = None + # data type: FpsUkPaymentInfo + oneof_schema_16_validator: Optional[FpsUkPaymentInfo] = None + # data type: FpsHkPaymentInfo + oneof_schema_17_validator: Optional[FpsHkPaymentInfo] = None + # data type: InstaPayPaymentInfo + oneof_schema_18_validator: Optional[InstaPayPaymentInfo] = None + # data type: PesonetPaymentInfo + oneof_schema_19_validator: Optional[PesonetPaymentInfo] = None + actual_instance: Optional[Union[AbaPaymentInfo, AchPaymentInfo, ChapsPaymentInfo, CipsPaymentInfo, FpsHkPaymentInfo, FpsUkPaymentInfo, IbanPaymentInfo, InstaPayPaymentInfo, InteracPaymentInfo, LbtPaymentInfo, MomoPaymentInfo, NequiPaymentInfo, PayidPaymentInfo, PesonetPaymentInfo, PixPaymentInfo, SepaPaymentInfo, SpeiAdvancedPaymentInfo, SpeiBasicPaymentInfo, UsWirePaymentInfo]] = None + one_of_schemas: Set[str] = { "AbaPaymentInfo", "AchPaymentInfo", "ChapsPaymentInfo", "CipsPaymentInfo", "FpsHkPaymentInfo", "FpsUkPaymentInfo", "IbanPaymentInfo", "InstaPayPaymentInfo", "InteracPaymentInfo", "LbtPaymentInfo", "MomoPaymentInfo", "NequiPaymentInfo", "PayidPaymentInfo", "PesonetPaymentInfo", "PixPaymentInfo", "SepaPaymentInfo", "SpeiAdvancedPaymentInfo", "SpeiBasicPaymentInfo", "UsWirePaymentInfo" } model_config = ConfigDict( validate_assignment=True, @@ -156,12 +174,42 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `ChapsPaymentInfo`") else: match += 1 + # validate data type: CipsPaymentInfo + if not isinstance(v, CipsPaymentInfo): + error_messages.append(f"Error! Input type `{type(v)}` is not `CipsPaymentInfo`") + else: + match += 1 + # validate data type: NequiPaymentInfo + if not isinstance(v, NequiPaymentInfo): + error_messages.append(f"Error! Input type `{type(v)}` is not `NequiPaymentInfo`") + else: + match += 1 + # validate data type: FpsUkPaymentInfo + if not isinstance(v, FpsUkPaymentInfo): + error_messages.append(f"Error! Input type `{type(v)}` is not `FpsUkPaymentInfo`") + else: + match += 1 + # validate data type: FpsHkPaymentInfo + if not isinstance(v, FpsHkPaymentInfo): + error_messages.append(f"Error! Input type `{type(v)}` is not `FpsHkPaymentInfo`") + else: + match += 1 + # validate data type: InstaPayPaymentInfo + if not isinstance(v, InstaPayPaymentInfo): + error_messages.append(f"Error! Input type `{type(v)}` is not `InstaPayPaymentInfo`") + else: + match += 1 + # validate data type: PesonetPaymentInfo + if not isinstance(v, PesonetPaymentInfo): + error_messages.append(f"Error! Input type `{type(v)}` is not `PesonetPaymentInfo`") + else: + match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in AdditionalInfoRequestAdditionalInfo with oneOf schemas: AbaPaymentInfo, AchPaymentInfo, ChapsPaymentInfo, IbanPaymentInfo, InteracPaymentInfo, LbtPaymentInfo, MomoPaymentInfo, PayidPaymentInfo, PixPaymentInfo, SepaPaymentInfo, SpeiAdvancedPaymentInfo, SpeiBasicPaymentInfo, UsWirePaymentInfo. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in AdditionalInfoRequestAdditionalInfo with oneOf schemas: AbaPaymentInfo, AchPaymentInfo, ChapsPaymentInfo, CipsPaymentInfo, FpsHkPaymentInfo, FpsUkPaymentInfo, IbanPaymentInfo, InstaPayPaymentInfo, InteracPaymentInfo, LbtPaymentInfo, MomoPaymentInfo, NequiPaymentInfo, PayidPaymentInfo, PesonetPaymentInfo, PixPaymentInfo, SepaPaymentInfo, SpeiAdvancedPaymentInfo, SpeiBasicPaymentInfo, UsWirePaymentInfo. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in AdditionalInfoRequestAdditionalInfo with oneOf schemas: AbaPaymentInfo, AchPaymentInfo, ChapsPaymentInfo, IbanPaymentInfo, InteracPaymentInfo, LbtPaymentInfo, MomoPaymentInfo, PayidPaymentInfo, PixPaymentInfo, SepaPaymentInfo, SpeiAdvancedPaymentInfo, SpeiBasicPaymentInfo, UsWirePaymentInfo. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in AdditionalInfoRequestAdditionalInfo with oneOf schemas: AbaPaymentInfo, AchPaymentInfo, ChapsPaymentInfo, CipsPaymentInfo, FpsHkPaymentInfo, FpsUkPaymentInfo, IbanPaymentInfo, InstaPayPaymentInfo, InteracPaymentInfo, LbtPaymentInfo, MomoPaymentInfo, NequiPaymentInfo, PayidPaymentInfo, PesonetPaymentInfo, PixPaymentInfo, SepaPaymentInfo, SpeiAdvancedPaymentInfo, SpeiBasicPaymentInfo, UsWirePaymentInfo. Details: " + ", ".join(error_messages)) else: return v @@ -254,13 +302,49 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into CipsPaymentInfo + try: + instance.actual_instance = CipsPaymentInfo.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into NequiPaymentInfo + try: + instance.actual_instance = NequiPaymentInfo.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into FpsUkPaymentInfo + try: + instance.actual_instance = FpsUkPaymentInfo.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into FpsHkPaymentInfo + try: + instance.actual_instance = FpsHkPaymentInfo.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into InstaPayPaymentInfo + try: + instance.actual_instance = InstaPayPaymentInfo.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into PesonetPaymentInfo + try: + instance.actual_instance = PesonetPaymentInfo.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into AdditionalInfoRequestAdditionalInfo with oneOf schemas: AbaPaymentInfo, AchPaymentInfo, ChapsPaymentInfo, IbanPaymentInfo, InteracPaymentInfo, LbtPaymentInfo, MomoPaymentInfo, PayidPaymentInfo, PixPaymentInfo, SepaPaymentInfo, SpeiAdvancedPaymentInfo, SpeiBasicPaymentInfo, UsWirePaymentInfo. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into AdditionalInfoRequestAdditionalInfo with oneOf schemas: AbaPaymentInfo, AchPaymentInfo, ChapsPaymentInfo, CipsPaymentInfo, FpsHkPaymentInfo, FpsUkPaymentInfo, IbanPaymentInfo, InstaPayPaymentInfo, InteracPaymentInfo, LbtPaymentInfo, MomoPaymentInfo, NequiPaymentInfo, PayidPaymentInfo, PesonetPaymentInfo, PixPaymentInfo, SepaPaymentInfo, SpeiAdvancedPaymentInfo, SpeiBasicPaymentInfo, UsWirePaymentInfo. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into AdditionalInfoRequestAdditionalInfo with oneOf schemas: AbaPaymentInfo, AchPaymentInfo, ChapsPaymentInfo, IbanPaymentInfo, InteracPaymentInfo, LbtPaymentInfo, MomoPaymentInfo, PayidPaymentInfo, PixPaymentInfo, SepaPaymentInfo, SpeiAdvancedPaymentInfo, SpeiBasicPaymentInfo, UsWirePaymentInfo. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into AdditionalInfoRequestAdditionalInfo with oneOf schemas: AbaPaymentInfo, AchPaymentInfo, ChapsPaymentInfo, CipsPaymentInfo, FpsHkPaymentInfo, FpsUkPaymentInfo, IbanPaymentInfo, InstaPayPaymentInfo, InteracPaymentInfo, LbtPaymentInfo, MomoPaymentInfo, NequiPaymentInfo, PayidPaymentInfo, PesonetPaymentInfo, PixPaymentInfo, SepaPaymentInfo, SpeiAdvancedPaymentInfo, SpeiBasicPaymentInfo, UsWirePaymentInfo. Details: " + ", ".join(error_messages)) else: return instance @@ -274,7 +358,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], AbaPaymentInfo, AchPaymentInfo, ChapsPaymentInfo, IbanPaymentInfo, InteracPaymentInfo, LbtPaymentInfo, MomoPaymentInfo, PayidPaymentInfo, PixPaymentInfo, SepaPaymentInfo, SpeiAdvancedPaymentInfo, SpeiBasicPaymentInfo, UsWirePaymentInfo]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], AbaPaymentInfo, AchPaymentInfo, ChapsPaymentInfo, CipsPaymentInfo, FpsHkPaymentInfo, FpsUkPaymentInfo, IbanPaymentInfo, InstaPayPaymentInfo, InteracPaymentInfo, LbtPaymentInfo, MomoPaymentInfo, NequiPaymentInfo, PayidPaymentInfo, PesonetPaymentInfo, PixPaymentInfo, SepaPaymentInfo, SpeiAdvancedPaymentInfo, SpeiBasicPaymentInfo, UsWirePaymentInfo]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/fireblocks/models/cips_payment_info.py b/fireblocks/models/cips_payment_info.py new file mode 100644 index 00000000..71e85192 --- /dev/null +++ b/fireblocks/models/cips_payment_info.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Fireblocks API + + Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + + The version of the OpenAPI document: 1.6.2 + Contact: developers@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CipsPaymentInfo(BaseModel): + """ + CIPS payment information for Cross-Border Interbank Payment System transfers (CNY) + """ # noqa: E501 + rail: StrictStr = Field(description="The payment rail type for CIPS transfers") + addressing_system: StrictStr = Field(description="The addressing system used for CIPS transfers", alias="addressingSystem") + account_holder_given_name: StrictStr = Field(description="The given name (first name) of the account holder", alias="accountHolderGivenName") + account_holder_surname: Optional[StrictStr] = Field(default=None, description="The surname (last name) of the account holder", alias="accountHolderSurname") + bank_name: StrictStr = Field(description="Name of the recipient's bank", alias="bankName") + bank_country: StrictStr = Field(description="ISO 3166-1 alpha-2 country code of the bank", alias="bankCountry") + swift_code: StrictStr = Field(description="SWIFT/BIC code of the recipient bank", alias="swiftCode") + account_number: StrictStr = Field(description="Recipient bank account number", alias="accountNumber") + reference_id: Optional[StrictStr] = Field(default=None, description="Optional payment reference", alias="referenceId") + __properties: ClassVar[List[str]] = ["rail", "addressingSystem", "accountHolderGivenName", "accountHolderSurname", "bankName", "bankCountry", "swiftCode", "accountNumber", "referenceId"] + + @field_validator('rail') + def rail_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['CIPS']): + raise ValueError("must be one of enum values ('CIPS')") + return value + + @field_validator('addressing_system') + def addressing_system_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['CIPS']): + raise ValueError("must be one of enum values ('CIPS')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CipsPaymentInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CipsPaymentInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rail": obj.get("rail"), + "addressingSystem": obj.get("addressingSystem"), + "accountHolderGivenName": obj.get("accountHolderGivenName"), + "accountHolderSurname": obj.get("accountHolderSurname"), + "bankName": obj.get("bankName"), + "bankCountry": obj.get("bankCountry"), + "swiftCode": obj.get("swiftCode"), + "accountNumber": obj.get("accountNumber"), + "referenceId": obj.get("referenceId") + }) + return _obj + + diff --git a/fireblocks/models/fps_hk_payment_info.py b/fireblocks/models/fps_hk_payment_info.py new file mode 100644 index 00000000..d9ed12c3 --- /dev/null +++ b/fireblocks/models/fps_hk_payment_info.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Fireblocks API + + Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + + The version of the OpenAPI document: 1.6.2 + Contact: developers@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class FpsHkPaymentInfo(BaseModel): + """ + FPS HK payment information for Hong Kong Faster Payment System transfers (HKD) + """ # noqa: E501 + rail: StrictStr = Field(description="The payment rail type for Hong Kong FPS transfers") + addressing_system: StrictStr = Field(description="The addressing system used for Hong Kong FPS transfers", alias="addressingSystem") + recipient_legal_name: Optional[StrictStr] = Field(default=None, description="Full legal name of the recipient", alias="recipientLegalName") + account_number: Optional[StrictStr] = Field(default=None, description="Recipient bank account number", alias="accountNumber") + bank_code: Optional[StrictStr] = Field(default=None, description="Hong Kong bank code", alias="bankCode") + phone: Optional[StrictStr] = Field(default=None, description="Recipient phone number in E.164 format") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") + fps_id: Optional[StrictStr] = Field(default=None, description="Hong Kong FPS identifier", alias="fpsId") + __properties: ClassVar[List[str]] = ["rail", "addressingSystem", "recipientLegalName", "accountNumber", "bankCode", "phone", "email", "fpsId"] + + @field_validator('rail') + def rail_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['FPS_HK']): + raise ValueError("must be one of enum values ('FPS_HK')") + return value + + @field_validator('addressing_system') + def addressing_system_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['FPS_HK']): + raise ValueError("must be one of enum values ('FPS_HK')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FpsHkPaymentInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FpsHkPaymentInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rail": obj.get("rail"), + "addressingSystem": obj.get("addressingSystem"), + "recipientLegalName": obj.get("recipientLegalName"), + "accountNumber": obj.get("accountNumber"), + "bankCode": obj.get("bankCode"), + "phone": obj.get("phone"), + "email": obj.get("email"), + "fpsId": obj.get("fpsId") + }) + return _obj + + diff --git a/fireblocks/models/fps_uk_payment_info.py b/fireblocks/models/fps_uk_payment_info.py new file mode 100644 index 00000000..5dd328e6 --- /dev/null +++ b/fireblocks/models/fps_uk_payment_info.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Fireblocks API + + Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + + The version of the OpenAPI document: 1.6.2 + Contact: developers@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class FpsUkPaymentInfo(BaseModel): + """ + FPS UK payment information for UK Faster Payments transfers (GBP) + """ # noqa: E501 + rail: StrictStr = Field(description="The payment rail type for UK Faster Payments transfers") + addressing_system: StrictStr = Field(description="The addressing system used for UK Faster Payments transfers", alias="addressingSystem") + account_holder_given_name: StrictStr = Field(description="The given name (first name) of the account holder", alias="accountHolderGivenName") + account_holder_surname: StrictStr = Field(description="The surname (last name) of the account holder", alias="accountHolderSurname") + account_number: StrictStr = Field(description="UK bank account number", alias="accountNumber") + sort_code: StrictStr = Field(description="UK sort code (format XX-XX-XX)", alias="sortCode") + bank_account_country: Optional[StrictStr] = Field(default=None, description="ISO 3166-1 alpha-2 country code of the bank account", alias="bankAccountCountry") + __properties: ClassVar[List[str]] = ["rail", "addressingSystem", "accountHolderGivenName", "accountHolderSurname", "accountNumber", "sortCode", "bankAccountCountry"] + + @field_validator('rail') + def rail_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['FPS_UK']): + raise ValueError("must be one of enum values ('FPS_UK')") + return value + + @field_validator('addressing_system') + def addressing_system_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['FPS_UK']): + raise ValueError("must be one of enum values ('FPS_UK')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FpsUkPaymentInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FpsUkPaymentInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rail": obj.get("rail"), + "addressingSystem": obj.get("addressingSystem"), + "accountHolderGivenName": obj.get("accountHolderGivenName"), + "accountHolderSurname": obj.get("accountHolderSurname"), + "accountNumber": obj.get("accountNumber"), + "sortCode": obj.get("sortCode"), + "bankAccountCountry": obj.get("bankAccountCountry") + }) + return _obj + + diff --git a/fireblocks/models/insta_pay_payment_info.py b/fireblocks/models/insta_pay_payment_info.py new file mode 100644 index 00000000..aad2bc41 --- /dev/null +++ b/fireblocks/models/insta_pay_payment_info.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Fireblocks API + + Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + + The version of the OpenAPI document: 1.6.2 + Contact: developers@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class InstaPayPaymentInfo(BaseModel): + """ + InstaPay payment information for Philippine instant payment transfers (PHP) + """ # noqa: E501 + rail: StrictStr = Field(description="The payment rail type for InstaPay transfers") + addressing_system: StrictStr = Field(description="The addressing system used for InstaPay transfers", alias="addressingSystem") + account_holder_given_name: StrictStr = Field(description="The given name (first name) of the account holder", alias="accountHolderGivenName") + account_holder_surname: StrictStr = Field(description="The surname (last name) of the account holder", alias="accountHolderSurname") + account_number: StrictStr = Field(description="Recipient bank account or wallet number", alias="accountNumber") + bank_name: StrictStr = Field(description="Name of the recipient's bank or wallet (e.g. BDO, BPI, GCash, Maya)", alias="bankName") + __properties: ClassVar[List[str]] = ["rail", "addressingSystem", "accountHolderGivenName", "accountHolderSurname", "accountNumber", "bankName"] + + @field_validator('rail') + def rail_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['INSTA_PAY']): + raise ValueError("must be one of enum values ('INSTA_PAY')") + return value + + @field_validator('addressing_system') + def addressing_system_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['INSTA_PAY']): + raise ValueError("must be one of enum values ('INSTA_PAY')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InstaPayPaymentInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InstaPayPaymentInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rail": obj.get("rail"), + "addressingSystem": obj.get("addressingSystem"), + "accountHolderGivenName": obj.get("accountHolderGivenName"), + "accountHolderSurname": obj.get("accountHolderSurname"), + "accountNumber": obj.get("accountNumber"), + "bankName": obj.get("bankName") + }) + return _obj + + diff --git a/fireblocks/models/nequi_payment_info.py b/fireblocks/models/nequi_payment_info.py new file mode 100644 index 00000000..3d04f8c6 --- /dev/null +++ b/fireblocks/models/nequi_payment_info.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Fireblocks API + + Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + + The version of the OpenAPI document: 1.6.2 + Contact: developers@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class NequiPaymentInfo(BaseModel): + """ + NEQUI payment information for Colombian mobile payment transfers (COP) + """ # noqa: E501 + rail: StrictStr = Field(description="The payment rail type for NEQUI transfers") + addressing_system: StrictStr = Field(description="The addressing system used for NEQUI transfers", alias="addressingSystem") + phone: StrictStr = Field(description="Recipient phone number in E.164 format") + __properties: ClassVar[List[str]] = ["rail", "addressingSystem", "phone"] + + @field_validator('rail') + def rail_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['NEQUI']): + raise ValueError("must be one of enum values ('NEQUI')") + return value + + @field_validator('addressing_system') + def addressing_system_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['NEQUI']): + raise ValueError("must be one of enum values ('NEQUI')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NequiPaymentInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NequiPaymentInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rail": obj.get("rail"), + "addressingSystem": obj.get("addressingSystem"), + "phone": obj.get("phone") + }) + return _obj + + diff --git a/fireblocks/models/pesonet_payment_info.py b/fireblocks/models/pesonet_payment_info.py new file mode 100644 index 00000000..b8a19ff2 --- /dev/null +++ b/fireblocks/models/pesonet_payment_info.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Fireblocks API + + Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + + The version of the OpenAPI document: 1.6.2 + Contact: developers@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class PesonetPaymentInfo(BaseModel): + """ + PesoNet payment information for Philippine batch payment transfers (PHP) + """ # noqa: E501 + rail: StrictStr = Field(description="The payment rail type for PesoNet transfers") + addressing_system: StrictStr = Field(description="The addressing system used for PesoNet transfers", alias="addressingSystem") + account_holder_given_name: StrictStr = Field(description="The given name (first name) of the account holder", alias="accountHolderGivenName") + account_holder_surname: StrictStr = Field(description="The surname (last name) of the account holder", alias="accountHolderSurname") + account_number: StrictStr = Field(description="Recipient bank account number", alias="accountNumber") + bank_name: StrictStr = Field(description="Name of the recipient's bank", alias="bankName") + __properties: ClassVar[List[str]] = ["rail", "addressingSystem", "accountHolderGivenName", "accountHolderSurname", "accountNumber", "bankName"] + + @field_validator('rail') + def rail_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['PESONET']): + raise ValueError("must be one of enum values ('PESONET')") + return value + + @field_validator('addressing_system') + def addressing_system_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['PESONET']): + raise ValueError("must be one of enum values ('PESONET')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PesonetPaymentInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PesonetPaymentInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rail": obj.get("rail"), + "addressingSystem": obj.get("addressingSystem"), + "accountHolderGivenName": obj.get("accountHolderGivenName"), + "accountHolderSurname": obj.get("accountHolderSurname"), + "accountNumber": obj.get("accountNumber"), + "bankName": obj.get("bankName") + }) + return _obj + + diff --git a/test/test_add_connected_account_request.py b/test/test_add_connected_account_request.py index 3c4fd0b2..edb14a3d 100644 --- a/test/test_add_connected_account_request.py +++ b/test/test_add_connected_account_request.py @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> AddConnectedAccountRequest: return AddConnectedAccountRequest( provider_id = 'BINANCE', display_name = 'My Binance Account', - creds = '[B@3f182db1', + creds = '[B@2c27bba2', api_key = 'api_key_abc123', main_account_id = 'acc-parent-001', account_id = 'provider-acc-001', @@ -47,7 +47,7 @@ def make_instance(self, include_optional) -> AddConnectedAccountRequest: else: return AddConnectedAccountRequest( provider_id = 'BINANCE', - creds = '[B@3f182db1', + creds = '[B@2c27bba2', api_key = 'api_key_abc123', ) """ diff --git a/test/test_additional_info_request_additional_info.py b/test/test_additional_info_request_additional_info.py index 36db5f2f..f69a4b63 100644 --- a/test/test_additional_info_request_additional_info.py +++ b/test/test_additional_info_request_additional_info.py @@ -38,8 +38,8 @@ def make_instance(self, include_optional) -> AdditionalInfoRequestAdditionalInfo model = AdditionalInfoRequestAdditionalInfo() if include_optional: return AdditionalInfoRequestAdditionalInfo( - account_holder_given_name = 'John', - account_holder_surname = 'Smith', + account_holder_given_name = 'Maria', + account_holder_surname = 'Santos', account_holder_city = 'London', account_holder_country = 'GB', account_holder_address1 = '123 Wall Street', @@ -54,15 +54,15 @@ def make_instance(self, include_optional) -> AdditionalInfoRequestAdditionalInfo aba_country = 'US', spei_clabe = '012180001234567890', spei_name = 'Juan Pérez', - rail = 'CHAPS', - addressing_system = 'CHAPS', + rail = 'PESONET', + addressing_system = 'PESONET', country = 'GB', - bank_name = 'Barclays Bank', + bank_name = 'BPI', beneficiary_rfc = 'PERJ800101ABC', sender_document_id = 'CURP123456789', clabe = '012180001234567890', pix_key = 'joao.silva@email.com', - bank_code = '001', + bank_code = '003', key_type = 'EMAIL', account_holder_address = '123 Rue de la Paix', bic = 'BNPAFRPP', @@ -70,10 +70,10 @@ def make_instance(self, include_optional) -> AdditionalInfoRequestAdditionalInfo bank_address = '16 Boulevard des Italiens, 75009 Paris', purpose_code = 'SALA', tax_id = '1234567890123', - account_number = '12345678', + account_number = '001234567890', routing_number = '021000021', account_type = 'CHECKING', - swift_code = 'CHASUS33', + swift_code = 'BKCHCNBJ', bank_address_line = '270 Park Avenue', bank_address_city = 'New York', bank_address_state = 'NY', @@ -82,7 +82,7 @@ def make_instance(self, include_optional) -> AdditionalInfoRequestAdditionalInfo branch_number = '001', mobile_phone_number = '+233241234567', provider = 'MTN', - email = 'john.doe@example.com', + email = 'chan.taiman@email.com', beneficiary_document_id = 'GHA-123456789-0', beneficiary_relationship = 'Family', recipient_handle_type = 'EMAIL', @@ -93,12 +93,17 @@ def make_instance(self, include_optional) -> AdditionalInfoRequestAdditionalInfo bsb = '123-456', sort_code = '12-34-56', bank_account_country = 'GB', - bank_account_holder_name = 'John Smith' + bank_account_holder_name = 'John Smith', + bank_country = 'CN', + reference_id = 'INV-2024-0001', + phone = '+85291234567', + recipient_legal_name = 'Chan Tai Man', + fps_id = '163912345' ) else: return AdditionalInfoRequestAdditionalInfo( - account_holder_given_name = 'John', - account_holder_surname = 'Smith', + account_holder_given_name = 'Maria', + account_holder_surname = 'Santos', account_holder_city = 'London', account_holder_country = 'GB', account_holder_address1 = '123 Wall Street', @@ -110,25 +115,25 @@ def make_instance(self, include_optional) -> AdditionalInfoRequestAdditionalInfo aba_account_number = '1234567890', aba_country = 'US', spei_clabe = '012180001234567890', - rail = 'CHAPS', - addressing_system = 'CHAPS', + rail = 'PESONET', + addressing_system = 'PESONET', country = 'GB', - bank_name = 'Barclays Bank', + bank_name = 'BPI', clabe = '012180001234567890', pix_key = 'joao.silva@email.com', - bank_code = '001', + bank_code = '003', key_type = 'EMAIL', - account_number = '12345678', + account_number = '001234567890', routing_number = '021000021', account_type = 'CHECKING', - swift_code = 'CHASUS33', + swift_code = 'BKCHCNBJ', bank_address_line = '270 Park Avenue', bank_address_city = 'New York', bank_address_country = 'US', bank_address_postal_code = '10017', mobile_phone_number = '+233241234567', provider = 'MTN', - email = 'john.doe@example.com', + email = 'chan.taiman@email.com', recipient_handle_type = 'EMAIL', recipient_handle_value = 'john.smith@email.com', message = 'Please deposit the funds into the account', @@ -138,6 +143,8 @@ def make_instance(self, include_optional) -> AdditionalInfoRequestAdditionalInfo sort_code = '12-34-56', bank_account_country = 'GB', bank_account_holder_name = 'John Smith', + bank_country = 'CN', + phone = '+85291234567', ) """ diff --git a/test/test_cips_payment_info.py b/test/test_cips_payment_info.py new file mode 100644 index 00000000..f36d6d16 --- /dev/null +++ b/test/test_cips_payment_info.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" +Fireblocks API + +Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + +The version of the OpenAPI document: 1.6.2 +Contact: developers@fireblocks.com +Generated by OpenAPI Generator (https://openapi-generator.tech) + +Do not edit the class manually. +""" # noqa: E501 + +import unittest + +from fireblocks.models.cips_payment_info import CipsPaymentInfo + + +class TestCipsPaymentInfo(unittest.TestCase): + """CipsPaymentInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CipsPaymentInfo: + """Test CipsPaymentInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `CipsPaymentInfo` + """ + model = CipsPaymentInfo() + if include_optional: + return CipsPaymentInfo( + rail = 'CIPS', + addressing_system = 'CIPS', + account_holder_given_name = 'Wei', + account_holder_surname = 'Zhang', + bank_name = 'Bank of China', + bank_country = 'CN', + swift_code = 'BKCHCNBJ', + account_number = '6217000010000000000', + reference_id = 'INV-2024-0001' + ) + else: + return CipsPaymentInfo( + rail = 'CIPS', + addressing_system = 'CIPS', + account_holder_given_name = 'Wei', + bank_name = 'Bank of China', + bank_country = 'CN', + swift_code = 'BKCHCNBJ', + account_number = '6217000010000000000', + ) + """ + + def testCipsPaymentInfo(self): + """Test CipsPaymentInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_fps_hk_payment_info.py b/test/test_fps_hk_payment_info.py new file mode 100644 index 00000000..9484811c --- /dev/null +++ b/test/test_fps_hk_payment_info.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" +Fireblocks API + +Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + +The version of the OpenAPI document: 1.6.2 +Contact: developers@fireblocks.com +Generated by OpenAPI Generator (https://openapi-generator.tech) + +Do not edit the class manually. +""" # noqa: E501 + +import unittest + +from fireblocks.models.fps_hk_payment_info import FpsHkPaymentInfo + + +class TestFpsHkPaymentInfo(unittest.TestCase): + """FpsHkPaymentInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FpsHkPaymentInfo: + """Test FpsHkPaymentInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `FpsHkPaymentInfo` + """ + model = FpsHkPaymentInfo() + if include_optional: + return FpsHkPaymentInfo( + rail = 'FPS_HK', + addressing_system = 'FPS_HK', + recipient_legal_name = 'Chan Tai Man', + account_number = '1234567890', + bank_code = '003', + phone = '+85291234567', + email = 'chan.taiman@email.com', + fps_id = '163912345' + ) + else: + return FpsHkPaymentInfo( + rail = 'FPS_HK', + addressing_system = 'FPS_HK', + ) + """ + + def testFpsHkPaymentInfo(self): + """Test FpsHkPaymentInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_fps_uk_payment_info.py b/test/test_fps_uk_payment_info.py new file mode 100644 index 00000000..c1c66fb9 --- /dev/null +++ b/test/test_fps_uk_payment_info.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" +Fireblocks API + +Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + +The version of the OpenAPI document: 1.6.2 +Contact: developers@fireblocks.com +Generated by OpenAPI Generator (https://openapi-generator.tech) + +Do not edit the class manually. +""" # noqa: E501 + +import unittest + +from fireblocks.models.fps_uk_payment_info import FpsUkPaymentInfo + + +class TestFpsUkPaymentInfo(unittest.TestCase): + """FpsUkPaymentInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FpsUkPaymentInfo: + """Test FpsUkPaymentInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `FpsUkPaymentInfo` + """ + model = FpsUkPaymentInfo() + if include_optional: + return FpsUkPaymentInfo( + rail = 'FPS_UK', + addressing_system = 'FPS_UK', + account_holder_given_name = 'James', + account_holder_surname = 'Wilson', + account_number = '12345678', + sort_code = '12-34-56', + bank_account_country = 'GB' + ) + else: + return FpsUkPaymentInfo( + rail = 'FPS_UK', + addressing_system = 'FPS_UK', + account_holder_given_name = 'James', + account_holder_surname = 'Wilson', + account_number = '12345678', + sort_code = '12-34-56', + ) + """ + + def testFpsUkPaymentInfo(self): + """Test FpsUkPaymentInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_insta_pay_payment_info.py b/test/test_insta_pay_payment_info.py new file mode 100644 index 00000000..63e4641f --- /dev/null +++ b/test/test_insta_pay_payment_info.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" +Fireblocks API + +Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + +The version of the OpenAPI document: 1.6.2 +Contact: developers@fireblocks.com +Generated by OpenAPI Generator (https://openapi-generator.tech) + +Do not edit the class manually. +""" # noqa: E501 + +import unittest + +from fireblocks.models.insta_pay_payment_info import InstaPayPaymentInfo + + +class TestInstaPayPaymentInfo(unittest.TestCase): + """InstaPayPaymentInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InstaPayPaymentInfo: + """Test InstaPayPaymentInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `InstaPayPaymentInfo` + """ + model = InstaPayPaymentInfo() + if include_optional: + return InstaPayPaymentInfo( + rail = 'INSTA_PAY', + addressing_system = 'INSTA_PAY', + account_holder_given_name = 'Juan', + account_holder_surname = 'Dela Cruz', + account_number = '001234567890', + bank_name = 'BDO Unibank' + ) + else: + return InstaPayPaymentInfo( + rail = 'INSTA_PAY', + addressing_system = 'INSTA_PAY', + account_holder_given_name = 'Juan', + account_holder_surname = 'Dela Cruz', + account_number = '001234567890', + bank_name = 'BDO Unibank', + ) + """ + + def testInstaPayPaymentInfo(self): + """Test InstaPayPaymentInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_nequi_payment_info.py b/test/test_nequi_payment_info.py new file mode 100644 index 00000000..f4cc0b27 --- /dev/null +++ b/test/test_nequi_payment_info.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" +Fireblocks API + +Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + +The version of the OpenAPI document: 1.6.2 +Contact: developers@fireblocks.com +Generated by OpenAPI Generator (https://openapi-generator.tech) + +Do not edit the class manually. +""" # noqa: E501 + +import unittest + +from fireblocks.models.nequi_payment_info import NequiPaymentInfo + + +class TestNequiPaymentInfo(unittest.TestCase): + """NequiPaymentInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NequiPaymentInfo: + """Test NequiPaymentInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `NequiPaymentInfo` + """ + model = NequiPaymentInfo() + if include_optional: + return NequiPaymentInfo( + rail = 'NEQUI', + addressing_system = 'NEQUI', + phone = '+573001234567' + ) + else: + return NequiPaymentInfo( + rail = 'NEQUI', + addressing_system = 'NEQUI', + phone = '+573001234567', + ) + """ + + def testNequiPaymentInfo(self): + """Test NequiPaymentInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_pesonet_payment_info.py b/test/test_pesonet_payment_info.py new file mode 100644 index 00000000..f2b0e384 --- /dev/null +++ b/test/test_pesonet_payment_info.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" +Fireblocks API + +Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + +The version of the OpenAPI document: 1.6.2 +Contact: developers@fireblocks.com +Generated by OpenAPI Generator (https://openapi-generator.tech) + +Do not edit the class manually. +""" # noqa: E501 + +import unittest + +from fireblocks.models.pesonet_payment_info import PesonetPaymentInfo + + +class TestPesonetPaymentInfo(unittest.TestCase): + """PesonetPaymentInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PesonetPaymentInfo: + """Test PesonetPaymentInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `PesonetPaymentInfo` + """ + model = PesonetPaymentInfo() + if include_optional: + return PesonetPaymentInfo( + rail = 'PESONET', + addressing_system = 'PESONET', + account_holder_given_name = 'Maria', + account_holder_surname = 'Santos', + account_number = '001234567890', + bank_name = 'BPI' + ) + else: + return PesonetPaymentInfo( + rail = 'PESONET', + addressing_system = 'PESONET', + account_holder_given_name = 'Maria', + account_holder_surname = 'Santos', + account_number = '001234567890', + bank_name = 'BPI', + ) + """ + + def testPesonetPaymentInfo(self): + """Test PesonetPaymentInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == "__main__": + unittest.main()