diff --git a/finix/api/authorizations_api.py b/finix/api/authorizations_api.py index fcaa792..00ed1c8 100644 --- a/finix/api/authorizations_api.py +++ b/finix/api/authorizations_api.py @@ -236,22 +236,22 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'sort', + 'amount', + 'amount_gt', + 'amount_gte', + 'amount_lt', + 'amount_lte', 'before_cursor', - 'limit', - 'idempotency_id', - 'state', 'created_at_gte', 'created_at_lte', + 'idempotency_id', + 'limit', + 'sort', + 'state', 'updated_at_gte', 'updated_at_lte', - 'is_void', - 'amount', - 'amount_lt', - 'amount_gt', - 'amount_lte', - 'amount_gte', 'trace_id', + 'is_void', 'instrument_bin', 'instrument_account_last4', 'instrument_brand_type', @@ -288,38 +288,38 @@ def __init__(self, api_client=None): }, }, 'openapi_types': { - 'sort': - (str,), + 'amount': + (int,), + 'amount_gt': + (int,), + 'amount_gte': + (int,), + 'amount_lt': + (int,), + 'amount_lte': + (int,), 'before_cursor': (str,), + 'created_at_gte': + (str,), + 'created_at_lte': + (str,), + 'idempotency_id': + (str,), 'limit': (int,), - 'idempotency_id': + 'sort': (str,), 'state': (str,), - 'created_at_gte': - (str,), - 'created_at_lte': - (str,), 'updated_at_gte': (str,), 'updated_at_lte': (str,), - 'is_void': - (str,), - 'amount': - (int,), - 'amount_lt': - (int,), - 'amount_gt': - (int,), - 'amount_lte': - (int,), - 'amount_gte': - (int,), 'trace_id': (str,), + 'is_void': + (str,), 'instrument_bin': (str,), 'instrument_account_last4': @@ -348,22 +348,22 @@ def __init__(self, api_client=None): (str,), }, 'attribute_map': { - 'sort': 'sort', + 'amount': 'amount', + 'amount_gt': 'amount.gt', + 'amount_gte': 'amount.gte', + 'amount_lt': 'amount.lt', + 'amount_lte': 'amount.lte', 'before_cursor': 'before_cursor', - 'limit': 'limit', - 'idempotency_id': 'idempotency_id', - 'state': 'state', 'created_at_gte': 'created_at.gte', 'created_at_lte': 'created_at.lte', + 'idempotency_id': 'idempotency_id', + 'limit': 'limit', + 'sort': 'sort', + 'state': 'state', 'updated_at_gte': 'updated_at.gte', 'updated_at_lte': 'updated_at.lte', - 'is_void': 'is_void', - 'amount': 'amount', - 'amount_lt': 'amount.lt', - 'amount_gt': 'amount.gt', - 'amount_lte': 'amount.lte', - 'amount_gte': 'amount.gte', 'trace_id': 'trace_id', + 'is_void': 'is_void', 'instrument_bin': 'instrument_bin', 'instrument_account_last4': 'instrument_account_last4', 'instrument_brand_type': 'instrument_brand_type', @@ -379,22 +379,22 @@ def __init__(self, api_client=None): 'after_cursor': 'after_cursor', }, 'location_map': { - 'sort': 'query', + 'amount': 'query', + 'amount_gt': 'query', + 'amount_gte': 'query', + 'amount_lt': 'query', + 'amount_lte': 'query', 'before_cursor': 'query', - 'limit': 'query', - 'idempotency_id': 'query', - 'state': 'query', 'created_at_gte': 'query', 'created_at_lte': 'query', + 'idempotency_id': 'query', + 'limit': 'query', + 'sort': 'query', + 'state': 'query', 'updated_at_gte': 'query', 'updated_at_lte': 'query', - 'is_void': 'query', - 'amount': 'query', - 'amount_lt': 'query', - 'amount_gt': 'query', - 'amount_lte': 'query', - 'amount_gte': 'query', 'trace_id': 'query', + 'is_void': 'query', 'instrument_bin': 'query', 'instrument_account_last4': 'query', 'instrument_brand_type': 'query', @@ -428,7 +428,7 @@ def update( ): """Capture an Authorization # noqa: E501 - If successfully captured, the `transfer` field of the `Authorization` will contain the ID of the `Transfer` resource that'll move funds. By default, `Transfers` are in a **PENDING** state. The **PENDING** state means the system hasn't submitted the request to capture funds. Capture requests get submitted via a batch request. Once the `Authorization` is updated with a `capture_amount` (i.e. *Captured*), the state of the `Transfer` will update to **SUCCEEDED**. > Voided `Authorizations` can't be captured. # noqa: E501 + If successfully captured, the `transfer` field of the `Authorization` will contain the ID of the `Transfer` resource that'll move funds. By default, `Transfers` are in a **PENDING** state. The **PENDING** state means the request to capture funds hasn't been submitted yet. Capture requests get submitted via a batch request. Once the `Authorization` is updated with a `capture_amount` (i.e. *Captured*), the state of the `Transfer` will update to **SUCCEEDED**. > Voided `Authorizations` can't be captured. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -436,7 +436,7 @@ def update( >>> result = thread.get() Args: - authorization_id (str): ID of authorization to fetch + authorization_id (str): ID of `Authorization` to fetch. Keyword Args: update_authorization_request (UpdateAuthorizationRequest): [optional] @@ -506,7 +506,7 @@ def create( ): """Create an Authorization # noqa: E501 - Create an `Authorization` to process a transaction. `Authorizations` can have two possible `states`: - **SUCCEEDED** - **FAILED** If the `Authorization` has **SUCCEEDED** , it must be captured before `expires_at` passes or the funds will be released. Learn how to prevent duplicate authorizations by passing an [Idempotency ID](#section/Idempotency-Requests) in the payload. # noqa: E501 + Create an `Authorization` to process a transaction. `Authorizations` can have six possible `states`, two of which are expected: - **SUCCEEDED** - **FAILED** If the `Authorization` has **SUCCEEDED** , it must be captured before `expires_at` passes or the funds will be released. If the `transfer` field of an `Authorization` is **null**, it hasn't been captured yet. Learn how to prevent duplicate authorizations by passing an [Idempotency ID](#section/Idempotency-Requests) in the payload. - `Authorizations` on debit cards place a hold on funds in the cardholder's bank account and can lead to lower than expected balances or issues with insufficient funds. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -579,7 +579,7 @@ def get( authorization_id, **kwargs ): - """Get an Authorization # noqa: E501 + """Fetch an Authorization # noqa: E501 Retrieve the details of a previously created `Authorization`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -589,7 +589,7 @@ def get( >>> result = thread.get() Args: - authorization_id (str): ID of authorization to fetch + authorization_id (str): ID of `Authorization` to fetch. Keyword Args: _return_http_data_only (bool): response data without head status @@ -667,34 +667,34 @@ def list( Keyword Args: - sort (str): Specify key to be used for sorting the collection. [optional] + amount (int): Filter by an amount equal to the given value.. [optional] + amount_gt (int): Filter by an amount greater than.. [optional] + amount_gte (int): Filter by an amount greater than or equal.. [optional] + amount_lt (int): Filter by an amount less than.. [optional] + amount_lte (int): Filter by an amount less than or equal.. [optional] before_cursor (str): Return every resource created before the cursor value.. [optional] - limit (int): The numbers of items to return. [optional] - idempotency_id (str): Filter by idempotency_id. [optional] + created_at_gte (str): Filter where `created_at` is after the given date.. [optional] + created_at_lte (str): Filter where `created_at` is before the given date.. [optional] + idempotency_id (str): Filter by `idempotency_id`.. [optional] + limit (int): The numbers of items to return.. [optional] + sort (str): Specify key to be used for sorting the collection.. [optional] state (str): Filter by Transaction state.. [optional] - created_at_gte (str): Filter where created_at is after the given date.. [optional] - created_at_lte (str): Filter where created_at is before the given date.. [optional] - updated_at_gte (str): Filter where updated_at is after the given date. [optional] - updated_at_lte (str): Filter where updated_at is before the given date. [optional] - is_void (str): Filter by idempotency_id. [optional] - amount (int): Filter by an amount equal to the given value. [optional] - amount_lt (int): Filter by an amount less than. [optional] - amount_gt (int): Filter by an amount greater than. [optional] - amount_lte (int): Filter by an amount less than or equal. [optional] - amount_gte (int): Filter by an amount greater than or equal. [optional] - trace_id (str): Filter by trace_id. [optional] - instrument_bin (str): Filter by Bank Identification Number (BIN). The BIN is the first 6 digits of the masked number. [optional] - instrument_account_last4 (str): Filter Transactions by the last 4 digits of the bank account. The bank account last 4 are the last 4 digits of the masked number instrument_account_last4=9444 BIN . [optional] - instrument_brand_type (str): Filter by card brand. Available card brand types can be found in the drop-down. [optional] - merchant_identity_id (str): Filter by Identity ID. [optional] - merchant_identity_name (str): Filter Transactions by Identity name. The name is not case-sensitive. [optional] - instrument_name (str): Filter Transactions by payment instrument name. [optional] - instrument_type (str): Filter Transactions by payment instrument type. Available instrument types include: Bank Account or Payment Card. [optional] - merchant_id (str): Filter by Merchant ID. [optional] - merchant_mid (str): Filter by Merchant Identification Number (MID). [optional] - instrument_card_last4 (str): Filter by the payment card last 4 digits. [optional] - merchant_processor_id (str): Filter by Processor ID. [optional] - type (str): Type of the authorization.. [optional] + updated_at_gte (str): Filter where `updated_at` is after the given date.. [optional] + updated_at_lte (str): Filter where `updated_at` is before the given date.. [optional] + trace_id (str): Filter by `trace_id`.. [optional] + is_void (str): Filter by `idempotency_id`.. [optional] + instrument_bin (str): Filter by Bank Identification Number (BIN). The BIN is the first 6 digits of the masked number.. [optional] + instrument_account_last4 (str): Filter Transactions by the last 4 digits of the bank account. The bank account last 4 are the last 4 digits of the masked number instrument_account_last4=9444 BIN.. [optional] + instrument_brand_type (str): Filter by card brand. Available card brand types can be found in the drop-down.. [optional] + merchant_identity_id (str): Filter by `Identity` ID.. [optional] + merchant_identity_name (str): Filter Transactions by `Identity` name. The name is not case-sensitive.. [optional] + instrument_name (str): Filter Transactions by `Payment Instrument` name.. [optional] + instrument_type (str): Filter Transactions by `Payment Instrument` type. Available instrument types include: Bank Account or Payment Card.. [optional] + merchant_id (str): Filter by `Merchant` ID.. [optional] + merchant_mid (str): Filter by Merchant Identification Number (MID).. [optional] + instrument_card_last4 (str): Filter by the payment card last 4 digits.. [optional] + merchant_processor_id (str): Filter by `Processor` ID.. [optional] + type (str): Type of the `Authorization`.. [optional] after_cursor (str): Return every resource created after the cursor value.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. diff --git a/finix/api/balance_transfers_api.py b/finix/api/balance_transfers_api.py index c4df6f5..4228522 100644 --- a/finix/api/balance_transfers_api.py +++ b/finix/api/balance_transfers_api.py @@ -362,7 +362,7 @@ def get( balance_transfers_id, **kwargs ): - """Get a Balance Transfer # noqa: E501 + """Fetch a Balance Transfer # noqa: E501 Retrieve the details of a `balance_transfer`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -450,21 +450,21 @@ def list( Keyword Args: - limit (int): The numbers of items to return. [optional] - offset (int): The number of items to skip before starting to collect the result set. [optional] - page_number (int): The page number to list. [optional] - page_size (int): The size of the page. [optional] - created_at_gte (str): Filter where created_at is after the given date.. [optional] - created_at_lte (str): Filter where created_at is before the given date.. [optional] - updated_at_gte (str): Filter where updated_at is after the given date. [optional] - updated_at_lte (str): Filter where updated_at is before the given date. [optional] - idempotency_id (str): Filter by idempotency_id. [optional] - amount (int): Filter by an amount equal to the given value. [optional] - description (str): Filter by the `description` value . [optional] - destination (str): Filter by the `Payment Instrument` saved in `destination`. [optional] - external_reference_id (str): Filter by the value saved in `external_reference_id`. [optional] - reference_id (str): Filter by the value saved in `reference_id`. [optional] - source (str): Filter by the `Payment Instrument` saved in `source`. [optional] + limit (int): The numbers of items to return.. [optional] + offset (int): The number of items to skip before starting to collect the result set.. [optional] + page_number (int): The page number to list.. [optional] + page_size (int): The size of the page.. [optional] + created_at_gte (str): Filter where `created_at` is after the given date.. [optional] + created_at_lte (str): Filter where `created_at` is before the given date.. [optional] + updated_at_gte (str): Filter where `updated_at` is after the given date.. [optional] + updated_at_lte (str): Filter where `updated_at` is before the given date.. [optional] + idempotency_id (str): Filter by `idempotency_id`.. [optional] + amount (int): Filter by an amount equal to the given value.. [optional] + description (str): Filter by the `Description` value .. [optional] + destination (str): Filter by the `Payment Instrument` saved in `Destination`.. [optional] + external_reference_id (str): Filter by the value saved in `external_reference_id`.. [optional] + reference_id (str): Filter by the value saved in `reference_id`.. [optional] + source (str): Filter by the `Payment Instrument` saved in `source`.. [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 diff --git a/finix/api/devices_api.py b/finix/api/devices_api.py index d5d763a..21dab83 100644 --- a/finix/api/devices_api.py +++ b/finix/api/devices_api.py @@ -26,6 +26,7 @@ from finix.model.error404_not_found_list import Error404NotFoundList from finix.model.error406_not_acceptable import Error406NotAcceptable from finix.model.error_generic import ErrorGeneric +from finix.model.update_device_request import UpdateDeviceRequest from finix.model.finix_utils import FinixList from functools import wraps @@ -132,6 +133,7 @@ def __init__(self, api_client=None): params_map={ 'all': [ 'device_id', + 'include_connection', ], 'required': [ 'device_id', @@ -151,12 +153,16 @@ def __init__(self, api_client=None): 'openapi_types': { 'device_id': (str,), + 'include_connection': + (bool,), }, 'attribute_map': { 'device_id': 'device_id', + 'include_connection': 'include_connection', }, 'location_map': { 'device_id': 'path', + 'include_connection': 'query', }, 'collection_format_map': { } @@ -183,7 +189,7 @@ def __init__(self, api_client=None): params_map={ 'all': [ 'device_id', - 'body', + 'update_device_request', ], 'required': [ 'device_id', @@ -203,15 +209,15 @@ def __init__(self, api_client=None): 'openapi_types': { 'device_id': (str,), - 'body': - ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), + 'update_device_request': + (UpdateDeviceRequest,), }, 'attribute_map': { 'device_id': 'device_id', }, 'location_map': { 'device_id': 'path', - 'body': 'body', + 'update_device_request': 'body', }, 'collection_format_map': { } @@ -311,9 +317,9 @@ def get( device_id, **kwargs ): - """Get Device # noqa: E501 + """Fetch a Device # noqa: E501 - Retrieve the details of an existing `Device`. To check the connectivity of the device, include `?include_connection\\=true \\` at the end of the request endpoint. # noqa: E501 + Retrieve the details of an existing `Device`. To check the connectivity of the device, include `?include_connection\\=true\\` at the end of the request endpoint. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -324,6 +330,7 @@ def get( device_id (str): ID of the `Device`. Keyword Args: + include_connection (bool): Specifies whether the connection information should be included.. [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 @@ -402,7 +409,7 @@ def update( device_id (str): ID of the `Device`. Keyword Args: - body ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] + update_device_request (UpdateDeviceRequest): [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 diff --git a/finix/api/disputes_api.py b/finix/api/disputes_api.py index c4c88b9..22f4f29 100644 --- a/finix/api/disputes_api.py +++ b/finix/api/disputes_api.py @@ -446,9 +446,9 @@ def create_dispute_evidence( dispute_id, **kwargs ): - """Create Dispute Evidence # noqa: E501 + """Upload Dispute Evidence # noqa: E501 - Upload dispute evidence for a `Dispute`. There are four values available for `state` that details the status of the evidence upload: * **PENDING**: The evidence file has not yet been submitted to the `Processor`. No user action is required. * **SUCCEEDED**: The evidence file has been successfully sent to the `Processor`. No further user action is required. * **CANCELED**: The evidence file upload was not completed due to user action. * **FAILED**: An issue occurred. User action is required. Any of the following issues could have occurred: * There was an error in the system and the user should retry uploading their evidence file. * There is an issue with the file and the user should retry uploading a different file. * There is an issue and the user should contact Support. # noqa: E501 + Upload dispute evidence for a `Dispute`. - You can upload up to 8 files; the total size of the uploaded files combined cannot exceed 10 MB. - The allowed file formats include JPG, PNG, PDF, or TIFF. - Individual PNG and JPEG files can't exceed 50 KB; PDF and TIFF files can't exceed 1 MB. There are four values available for `state` that details the status of the evidence upload: * **PENDING**: The evidence file has not yet been submitted to the `Processor`. No user action is required. * **SUCCEEDED**: The evidence file has been successfully sent to the `Processor`. No further user action is required. * **CANCELED**: The evidence file upload was not completed due to user action. * **FAILED**: An issue occurred. User action is required. Any of the following issues could have occurred: * There was an error in the system and the user should retry uploading their evidence file. * There is an issue with the file and the user should retry uploading a different file. * There is an issue and the user should contact Support. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -525,7 +525,7 @@ def get( dispute_id, **kwargs ): - """Get Dispute # noqa: E501 + """Fetch a Dispute # noqa: E501 Retrieve the details of a previously created `Dispute`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -698,7 +698,7 @@ def list_dispute_evidence_by_dispute_id( dispute_id (str): ID of `Dispute` to mange evidence for. Keyword Args: - limit (int): The numbers of items to return. [optional] + limit (int): The numbers of items to return.. [optional] after_cursor (str): Return every resource created after the cursor value.. [optional] before_cursor (str): Return every resource created before the cursor value.. [optional] _return_http_data_only (bool): response data without head status @@ -778,13 +778,13 @@ def list( Keyword Args: - sort (str): Specify key to be used for sorting the collection. [optional] - offset (int): The number of items to skip before starting to collect the result set. [optional] - limit (int): The numbers of items to return. [optional] - created_at_gte (str): Filter where created_at is after the given date.. [optional] - created_at_lte (str): Filter where created_at is before the given date.. [optional] - updated_at_gte (str): Filter where updated_at is after the given date. [optional] - updated_at_lte (str): Filter where updated_at is before the given date. [optional] + sort (str): Specify key to be used for sorting the collection.. [optional] + offset (int): The number of items to skip before starting to collect the result set.. [optional] + limit (int): The numbers of items to return.. [optional] + created_at_gte (str): Filter where `created_at` is after the given date.. [optional] + created_at_lte (str): Filter where `created_at` is before the given date.. [optional] + updated_at_gte (str): Filter where `updated_at` is after the given date.. [optional] + updated_at_lte (str): Filter where `updated_at` is before the given date.. [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 @@ -863,7 +863,7 @@ def list_disputes_adjustments( dispute_id (str): ID of the `Dispute` resource. Keyword Args: - limit (int): The numbers of items to return. [optional] + limit (int): The numbers of items to return.. [optional] after_cursor (str): Return every resource created after the cursor value.. [optional] before_cursor (str): Return every resource created before the cursor value.. [optional] _return_http_data_only (bool): response data without head status diff --git a/finix/api/fee_profiles_api.py b/finix/api/fee_profiles_api.py index 4114d97..dfa2e21 100644 --- a/finix/api/fee_profiles_api.py +++ b/finix/api/fee_profiles_api.py @@ -229,7 +229,7 @@ def create( ): """Create a Fee Profile # noqa: E501 - Create fee profiles # noqa: E501 + Create a `fee_profile`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -304,7 +304,7 @@ def get( ): """Fetch a Fee Profile # noqa: E501 - Get fee profile # noqa: E501 + Get a `fee_profile`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -312,7 +312,7 @@ def get( >>> result = thread.get() Args: - fee_profile_id (str): The ID of the fee profile. + fee_profile_id (str): The ID of the `fee_profile`. Keyword Args: _return_http_data_only (bool): response data without head status @@ -381,7 +381,7 @@ def list( ): """List Fee Profiles # noqa: E501 - Get all fee profiles # noqa: E501 + List all `Fee Profiles`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -392,7 +392,7 @@ def list( Keyword Args: after_cursor (str): Return every resource created after the cursor value.. [optional] before_cursor (str): Return every resource created before the cursor value.. [optional] - limit (int): The numbers of items to return. [optional] + limit (int): The numbers of items to return.. [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 diff --git a/finix/api/files_api.py b/finix/api/files_api.py index 9dd0459..11f65d8 100644 --- a/finix/api/files_api.py +++ b/finix/api/files_api.py @@ -980,7 +980,7 @@ def list_external_links( ): """List All External Links # noqa: E501 - List the previously `external_links` for a `File`. For more info, see [Uploading files to Finix](/guides/onboarding/uploading-files-to-finix/#create-an-external-link). # noqa: E501 + List the previously created `external_links` for a `File`. For more info, see [Uploading files to Finix](/guides/onboarding/uploading-files-to-finix/#create-an-external-link). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -991,14 +991,14 @@ def list_external_links( file_id (str): Your `File` ID. Keyword Args: - sort (str): Specify key to be used for sorting the collection. [optional] + sort (str): Specify key to be used for sorting the collection.. [optional] after_cursor (str): Return every resource created after the cursor value.. [optional] - limit (int): The numbers of items to return. [optional] - id (str): Filter by id. [optional] - created_at_gte (str): Filter where created_at is after the given date.. [optional] - created_at_lte (str): Filter where created_at is before the given date.. [optional] - updated_at_gte (str): Filter where updated_at is after the given date. [optional] - updated_at_lte (str): Filter where updated_at is before the given date. [optional] + limit (int): The numbers of items to return.. [optional] + id (str): Filter by `id`.. [optional] + created_at_gte (str): Filter where `created_at` is after the given date.. [optional] + created_at_lte (str): Filter where `created_at` is before the given date.. [optional] + updated_at_gte (str): Filter where `updated_at` is after the given date.. [optional] + updated_at_lte (str): Filter where `updated_at` is before the given date.. [optional] before_cursor (str): Return every resource created before the cursor value.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. @@ -1077,14 +1077,14 @@ def list( Keyword Args: - sort (str): Specify key to be used for sorting the collection. [optional] + sort (str): Specify key to be used for sorting the collection.. [optional] after_cursor (str): Return every resource created after the cursor value.. [optional] - limit (int): The numbers of items to return. [optional] - id (str): Filter by id. [optional] - created_at_gte (str): Filter where created_at is after the given date.. [optional] - created_at_lte (str): Filter where created_at is before the given date.. [optional] - updated_at_gte (str): Filter where updated_at is after the given date. [optional] - updated_at_lte (str): Filter where updated_at is before the given date. [optional] + limit (int): The numbers of items to return.. [optional] + id (str): Filter by `id`.. [optional] + created_at_gte (str): Filter where `created_at` is after the given date.. [optional] + created_at_lte (str): Filter where `created_at` is before the given date.. [optional] + updated_at_gte (str): Filter where `updated_at` is after the given date.. [optional] + updated_at_lte (str): Filter where `updated_at` is before the given date.. [optional] before_cursor (str): Return every resource created before the cursor value.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. diff --git a/finix/api/identities_api.py b/finix/api/identities_api.py index 6a367aa..3372590 100644 --- a/finix/api/identities_api.py +++ b/finix/api/identities_api.py @@ -686,7 +686,7 @@ def create_identity_verification( >>> result = thread.get() Args: - identity_id (str): ID of identity to fetch + identity_id (str): ID of `Identity` to verify. Keyword Args: create_verification_request (CreateVerificationRequest): [optional] @@ -765,7 +765,7 @@ def get( >>> result = thread.get() Args: - identity_id (str): ID of the `identity` to fetch + identity_id (str): ID of the `Identity` to fetch. Keyword Args: _return_http_data_only (bool): response data without head status @@ -843,18 +843,18 @@ def list( Keyword Args: - sort (str): Specify key to be used for sorting the collection. [optional] + sort (str): Specify key to be used for sorting the collection.. [optional] after_cursor (str): Return every resource created after the cursor value.. [optional] - limit (int): The numbers of items to return. [optional] - id (str): Filter by id. [optional] - created_at_gte (str): Filter where created_at is after the given date.. [optional] - created_at_lte (str): Filter where created_at is before the given date.. [optional] - default_statement_descriptor (str): Filter by the default_statement_descriptor. [optional] + limit (int): The numbers of items to return.. [optional] + id (str): Filter by `id`.. [optional] + created_at_gte (str): Filter where `created_at` is after the given date.. [optional] + created_at_lte (str): Filter where `created_at` is before the given date.. [optional] + default_statement_descriptor (str): Filter by the `default_statement_descriptor`.. [optional] business_name (str): Filter by the full business name. Partial business names are not supported.. [optional] - business_type (str): Filter by the business type. Partial business types are not supported. [optional] + business_type (str): Filter by the business type. Partial business types are not supported.. [optional] email (str): Filter by the email address or email domain. Partial emails are not supported.. [optional] - first_name (str): Filter by the first name of the person associated to the Identity.. [optional] - last_name (str): Filter by the last name of the person associated to the identity.. [optional] + first_name (str): Filter by the first name of the person associated to the `Identity`.. [optional] + last_name (str): Filter by the last name of the person associated to the `Identity`.. [optional] title (str): Filter by the title if available.. [optional] before_cursor (str): Return every resource created before the cursor value.. [optional] _return_http_data_only (bool): response data without head status @@ -1015,7 +1015,7 @@ def update( >>> result = thread.get() Args: - identity_id (str): ID of the `identity` to fetch + identity_id (str): ID of the `Identity` to fetch. Keyword Args: update_identity_request (UpdateIdentityRequest): [optional] diff --git a/finix/api/instrument_updates_api.py b/finix/api/instrument_updates_api.py index 58c8719..5d32d37 100644 --- a/finix/api/instrument_updates_api.py +++ b/finix/api/instrument_updates_api.py @@ -226,7 +226,7 @@ def create( ): """Create Instrument Updates # noqa: E501 - To update the card details of your customers, create an `instrument_updates` resource. Include the `Payment Instrument` IDs you want to update in a CSV. For more info, the following guide on using our [Account Updater](/docs/guides/payments/account-updater/). # noqa: E501 + To update the card details of your customers, create an `instrument_updates` resource. Include the `Payment Instrument` IDs you want to update in a CSV. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -388,7 +388,7 @@ def get( >>> result = thread.get() Args: - instrument_updates_id (str): The Id of the instrument update. + instrument_updates_id (str): The ID of the `instrument_update`. Keyword Args: _return_http_data_only (bool): response data without head status diff --git a/finix/api/merchant_profiles_api.py b/finix/api/merchant_profiles_api.py index 7ed7ac0..073db0b 100644 --- a/finix/api/merchant_profiles_api.py +++ b/finix/api/merchant_profiles_api.py @@ -25,6 +25,7 @@ from finix.model.error406_not_acceptable import Error406NotAcceptable from finix.model.merchant_profile import MerchantProfile from finix.model.merchant_profiles_list import MerchantProfilesList +from finix.model.update_merchant_profile_request import UpdateMerchantProfileRequest from finix.model.finix_utils import FinixList from functools import wraps @@ -126,7 +127,6 @@ def __init__(self, api_client=None): 'all': [ 'id', 'before_cursor', - 'after_cursor', 'limit', ], 'required': [], @@ -147,21 +147,17 @@ def __init__(self, api_client=None): (str,), 'before_cursor': (str,), - 'after_cursor': - (str,), 'limit': (int,), }, 'attribute_map': { 'id': 'id', 'before_cursor': 'before_cursor', - 'after_cursor': 'after_cursor', 'limit': 'limit', }, 'location_map': { 'id': 'query', 'before_cursor': 'query', - 'after_cursor': 'query', 'limit': 'query', }, 'collection_format_map': { @@ -189,7 +185,7 @@ def __init__(self, api_client=None): params_map={ 'all': [ 'merchant_profile_id', - 'body', + 'update_merchant_profile_request', ], 'required': [ 'merchant_profile_id', @@ -209,15 +205,15 @@ def __init__(self, api_client=None): 'openapi_types': { 'merchant_profile_id': (str,), - 'body': - ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), + 'update_merchant_profile_request': + (UpdateMerchantProfileRequest,), }, 'attribute_map': { 'merchant_profile_id': 'merchant_profile_id', }, 'location_map': { 'merchant_profile_id': 'path', - 'body': 'body', + 'update_merchant_profile_request': 'body', }, 'collection_format_map': { } @@ -238,9 +234,9 @@ def get( merchant_profile_id, **kwargs ): - """Show Merchant Profile # noqa: E501 + """Fetch a Merchant Profile # noqa: E501 - Get the merchant profile object # noqa: E501 + Retrieve the details of a previosuly created `merchant_profile`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -248,7 +244,7 @@ def get( >>> result = thread.get() Args: - merchant_profile_id (str): ID of merchant profile + merchant_profile_id (str): ID of `merchant_profile`. Keyword Args: _return_http_data_only (bool): response data without head status @@ -317,7 +313,7 @@ def list( ): """List Merchant Profiles # noqa: E501 - Get list of all the merchant_profiles objects # noqa: E501 + Retireve a list of all `merchant_profiles`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -326,10 +322,9 @@ def list( Keyword Args: - id (str): Filter by id. [optional] + id (str): Filter by `id`.. [optional] before_cursor (str): Return every resource created before the cursor value.. [optional] - after_cursor (str): Return every resource created after the cursor value.. [optional] - limit (int): The numbers of items to return. [optional] + limit (int): The numbers of items to return.. [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 @@ -397,7 +392,7 @@ def update( ): """Update a Merchant Profile # noqa: E501 - Update a merchant profile # noqa: E501 + Update a `merchant_profile`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -405,10 +400,10 @@ def update( >>> result = thread.get() Args: - merchant_profile_id (str): ID of merchant profile + merchant_profile_id (str): ID of `merchant_profile`. Keyword Args: - body ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] + update_merchant_profile_request (UpdateMerchantProfileRequest): [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 diff --git a/finix/api/merchants_api.py b/finix/api/merchants_api.py index 4199c65..ea8b6c9 100644 --- a/finix/api/merchants_api.py +++ b/finix/api/merchants_api.py @@ -246,10 +246,10 @@ def __init__(self, api_client=None): 'id', 'created_at_gte', 'created_at_lte', - 'sort', 'after_cursor', - 'limit', 'before_cursor', + 'limit', + 'sort', ], 'required': [], 'nullable': [ @@ -271,32 +271,32 @@ def __init__(self, api_client=None): (str,), 'created_at_lte': (str,), - 'sort': - (str,), 'after_cursor': (str,), + 'before_cursor': + (str,), 'limit': (int,), - 'before_cursor': + 'sort': (str,), }, 'attribute_map': { 'id': 'id', 'created_at_gte': 'created_at.gte', 'created_at_lte': 'created_at.lte', - 'sort': 'sort', 'after_cursor': 'after_cursor', - 'limit': 'limit', 'before_cursor': 'before_cursor', + 'limit': 'limit', + 'sort': 'sort', }, 'location_map': { 'id': 'query', 'created_at_gte': 'query', 'created_at_lte': 'query', - 'sort': 'query', 'after_cursor': 'query', - 'limit': 'query', 'before_cursor': 'query', + 'limit': 'query', + 'sort': 'query', }, 'collection_format_map': { } @@ -374,7 +374,7 @@ def create( ): """Create a Merchant # noqa: E501 - Create a `Merchant` to start the underwriting process for your merchant. `Merchants` must be created under an [`Identity`](#tag/Identities). > A bank account must be associated with the previously created `Identity` before a `Merchant` can be succefully onboarded and verified. `Merchant` resources can have three possible `onboarding_states`: 1. **PROVISIONING**: The request is pending (the state may change after two minutes). * `processing_enabled`: **False** * `settlement_enabled`: **False** 1. **APPROVED**: The `Merchant` has been approved and can begin processing payments. * `processing_enabled`: **True** * `settlement_enabled`: **True** 1. **REJECTED**: The `Merchant` was rejected by the processor because of invalid information or it failed a regulatory and/or compliance check (e.g. KYC, OFAC, or MATCH). Make any changes that are needed, and [try verifying the `Merchant` again](#operation/createMerchantVerification). * `processing_enabled`: **False** * `settlement_enabled`: **False** > Provisioning a `Merchant` account is an asynchronous request. We recommend creating a [`Webhook`](#tag/Webhooks) to listen for the state change. # noqa: E501 + Create a `Merchant` to start the underwriting (also called provisioning) process for your merchant. `Merchants` must be created under an [`Identity`](#tag/Identities). > A bank account must be associated with the previously created `Identity` before a `Merchant` can be succefully onboarded and verified. `Merchant` resources can have three possible `onboarding_states`: 1. **PROVISIONING**: The request is pending (the state can change after two minutes). * `processing_enabled`: **False** * `settlement_enabled`: **False** 1. **APPROVED**: The `Merchant` has been approved and can begin processing payments. * `processing_enabled`: **True** * `settlement_enabled`: **True** 1. **REJECTED**: The `Merchant` was rejected by the processor because of invalid information or it failed a regulatory and/or compliance check (e.g. KYC, OFAC, or MATCH). Make any changes that are needed, and [try verifying the `Merchant` again](#operation/createMerchantVerification). * `processing_enabled`: **False** * `settlement_enabled`: **False** > Provisioning a `Merchant` account is an asynchronous request. We recommend creating a [`Webhook`](#tag/Webhooks) to listen for the state change. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -453,7 +453,7 @@ def create_merchant_verification( ): """Verify a Merchant # noqa: E501 - Verify a merchant either to reattempt provisioning, or when the merchant's `Identity` was updated. # noqa: E501 + If the `onboarding_state` for a `Merchant` returns **FAILED**, correct the `Identity` information saved for the `Merchant`. Once corrected, try verifying (also called provisioning) the `Merchant` again with another request. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -530,7 +530,7 @@ def get( merchant_id, **kwargs ): - """Get a Merchant # noqa: E501 + """Fetch a Merchant # noqa: E501 Retrieve the details of a `Merchant`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -618,13 +618,13 @@ def list( Keyword Args: - id (str): Filter by id. [optional] - created_at_gte (str): Filter where created_at is after the given date.. [optional] - created_at_lte (str): Filter where created_at is before the given date.. [optional] - sort (str): Specify key to be used for sorting the collection. [optional] + id (str): Filter by `id`.. [optional] + created_at_gte (str): Filter where `created_at` is after the given date.. [optional] + created_at_lte (str): Filter where `created_at` is before the given date.. [optional] after_cursor (str): Return every resource created after the cursor value.. [optional] - limit (int): The numbers of items to return. [optional] before_cursor (str): Return every resource created before the cursor value.. [optional] + limit (int): The numbers of items to return.. [optional] + sort (str): Specify key to be used for sorting the collection.. [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 diff --git a/finix/api/payment_instruments_api.py b/finix/api/payment_instruments_api.py index 4f75dbe..b832a13 100644 --- a/finix/api/payment_instruments_api.py +++ b/finix/api/payment_instruments_api.py @@ -297,21 +297,21 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'limit', - 'after_cursor', 'account_last4', 'account_routing_number', + 'after_cursor', 'application', + 'before_cursor', 'bin', 'created_at_gte', 'created_at_lte', 'expiration_month', 'expiration_year', 'last_four', + 'limit', 'name', 'owner_identity_id', 'type', - 'before_cursor', ], 'required': [], 'nullable': [ @@ -334,16 +334,16 @@ def __init__(self, api_client=None): }, }, 'openapi_types': { - 'limit': - (int,), - 'after_cursor': - (str,), 'account_last4': (str,), 'account_routing_number': (str,), + 'after_cursor': + (str,), 'application': (str,), + 'before_cursor': + (str,), 'bin': (str,), 'created_at_gte': @@ -356,48 +356,48 @@ def __init__(self, api_client=None): (str,), 'last_four': (str,), + 'limit': + (int,), 'name': (str,), 'owner_identity_id': (str,), 'type': (str,), - 'before_cursor': - (str,), }, 'attribute_map': { - 'limit': 'limit', - 'after_cursor': 'after_cursor', 'account_last4': 'account_last4', 'account_routing_number': 'account_routing_number', + 'after_cursor': 'after_cursor', 'application': 'application', + 'before_cursor': 'before_cursor', 'bin': 'bin', 'created_at_gte': 'created_at.gte', 'created_at_lte': 'created_at.lte', 'expiration_month': 'expiration_month', 'expiration_year': 'expiration_year', 'last_four': 'last_four', + 'limit': 'limit', 'name': 'name', 'owner_identity_id': 'owner_identity_id', 'type': 'type', - 'before_cursor': 'before_cursor', }, 'location_map': { - 'limit': 'query', - 'after_cursor': 'query', 'account_last4': 'query', 'account_routing_number': 'query', + 'after_cursor': 'query', 'application': 'query', + 'before_cursor': 'query', 'bin': 'query', 'created_at_gte': 'query', 'created_at_lte': 'query', 'expiration_month': 'query', 'expiration_year': 'query', 'last_four': 'query', + 'limit': 'query', 'name': 'query', 'owner_identity_id': 'query', 'type': 'query', - 'before_cursor': 'query', }, 'collection_format_map': { } @@ -548,7 +548,7 @@ def create( ): """Create a Payment Instrument # noqa: E501 - Create a `Payment Instrument` resource using a card or bank account. To accept payment details, review our guide on how to [tokenize cards using hosted fields](/guides/payments/tokenization-with-hosted-fields). > The creation of `Payment Instruments` using cards directly via Finix's API should only be done for testing purposes. You must use the Hosted Tokenization fields or javascript client to remain out of PCI scope. # noqa: E501 + Create a `Payment Instrument` resource using a card or bank account. To accept payment details, review our guide on how to [tokenize cards using hosted fields](/guides/payments/tokenization-with-hosted-fields). - The creation of `Payment Instruments` directly via Finix's API should only be done for testing purposes. You must use the Hosted Tokenization fields or the javascript client to remain out of PCI scope. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -621,7 +621,7 @@ def get( payment_instrument_id, **kwargs ): - """Get a Payment Instrument # noqa: E501 + """Fetch a Payment Instrument # noqa: E501 Retrieve the details of a `Payment Instrument`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -709,7 +709,7 @@ def list_updates_by_payment_instrument_id( >>> result = thread.get() Args: - payment_instrument_id (str): ID of object + payment_instrument_id (str): ID of `Payment Instrument` object. Keyword Args: limit (int): The number of entries to return.. [optional] @@ -792,21 +792,21 @@ def list( Keyword Args: - limit (int): The numbers of items to return. [optional] - after_cursor (str): Return every resource created after the cursor value.. [optional] account_last4 (str): Filter by the last 4 digits of the account if available.. [optional] account_routing_number (str): Filter by the account routing number if available.. [optional] - application (str): Filter by application id. [optional] - bin (str): Filter by Bank Identification Number (BIN). The BIN is the first 6 digits of the masked number. [optional] - created_at_gte (str): Filter where created_at is after the given date.. [optional] - created_at_lte (str): Filter where created_at is before the given date.. [optional] + after_cursor (str): Return every resource created after the cursor value.. [optional] + application (str): Filter by `Application` ID.. [optional] + before_cursor (str): Return every resource created before the cursor value.. [optional] + bin (str): Filter by Bank Identification Number (BIN). The BIN is the first 6 digits of the masked number.. [optional] + created_at_gte (str): Filter where `created_at` is after the given date.. [optional] + created_at_lte (str): Filter where `created_at` is before the given date.. [optional] expiration_month (str): Filter by the expiration month associated with the `Payment Instrument` if applicable. This filter only applies to payment cards.. [optional] - expiration_year (str): Filter by the 4 digit expiration year associated with the Payment Instrument if applicable. This filter only applies to payment cards. [optional] - last_four (str): Filter by the last 4 digits of the Payment Instrument card. This filter only applies to payment cards.. [optional] + expiration_year (str): Filter by the 4 digit expiration year associated with the Payment Instrument if applicable. This filter only applies to payment cards.. [optional] + last_four (str): Filter by the last 4 digits of the `Payment Instrument` card. This filter only applies to payment cards.. [optional] + limit (int): The numbers of items to return.. [optional] name (str): Filter by the name.. [optional] - owner_identity_id (str): Filter by the owner id of the associated identity.. [optional] - type (str): Filter by the payment instrument type.. [optional] - before_cursor (str): Return every resource created before the cursor value.. [optional] + owner_identity_id (str): Filter by the owner id of the associated `Identity`.. [optional] + type (str): Filter by the `Payment Instrument` type.. [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 diff --git a/finix/api/settlements_api.py b/finix/api/settlements_api.py index 18a5235..cbe8c6c 100644 --- a/finix/api/settlements_api.py +++ b/finix/api/settlements_api.py @@ -30,7 +30,6 @@ from finix.model.settlement import Settlement from finix.model.settlements_list import SettlementsList from finix.model.transfers_list import TransfersList -from finix.model.update_settlement_request import UpdateSettlementRequest from finix.model.finix_utils import FinixList from functools import wraps @@ -447,63 +446,6 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self._update_endpoint = finix.api_client.Endpoint( - settings={ - 'response_type': (Settlement,), - 'auth': [ - 'BasicAuth' - ], - 'endpoint_path': '/settlements/{settlement_id}', - 'operation_id': 'update', - 'http_method': 'PUT', - 'servers': None, - }, - params_map={ - 'all': [ - 'settlement_id', - 'update_settlement_request', - ], - 'required': [ - 'settlement_id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'settlement_id': - (str,), - 'update_settlement_request': - (UpdateSettlementRequest,), - }, - 'attribute_map': { - 'settlement_id': 'settlement_id', - }, - 'location_map': { - 'settlement_id': 'path', - 'update_settlement_request': 'body', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/hal+json' - ], - 'content_type': [ - 'application/hal+json' - ] - }, - api_client=api_client - ) def create( self, @@ -512,7 +454,7 @@ def create( ): """Create a Batch Settlement # noqa: E501 - Create a batch `Settlement`. A `Settlement` is a collection of **SUCCEEDED** Transfers that are ready to get paid out to a `Merchant`. # noqa: E501 + Send this POST request to batch every `Transfer` that got updated to **SUCCEEDED** into a `Settlement`. The new `Settlement` will include every `Transfer` that got updated to **SUCCEEDED** since the last `Settlement` got approved. The `Settlement` that gets created will not accrue any further transactions and gets immediately submitted for approval. - Any refunded `Transfers` get included in `Settlements` as a deduction. - **PENDING** `Transfers` don't get included in `Settlements`. - The `total_amount` minus the `total_fee` equals the `net_amount`. The `net_amount` is the amount in cents that gets deposited into the merchant's bank account. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -520,7 +462,7 @@ def create( >>> result = thread.get() Args: - identity_id (str): ID of identity to fetch + identity_id (str): ID of the `Identity` for the merchant you want to settle. Keyword Args: create_settlement_request (CreateSettlementRequest): [optional] @@ -589,7 +531,7 @@ def get( settlement_id, **kwargs ): - """Get a Settlement # noqa: E501 + """Fetch a Settlement # noqa: E501 Retreive the details of a `Settlement`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -669,7 +611,7 @@ def list_funding_transfers( ): """List Settlement Funding Transfers # noqa: E501 - Retrieve the `Transfers` in a `Settlement` that have `type` **CREDIT**. # noqa: E501 + Retrieve the `Transfers` in a `Settlement` that have `type` **CREDIT** or **DEBIT**. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -680,7 +622,7 @@ def list_funding_transfers( settlement_id (str): ID of `Settlement` object. Keyword Args: - limit (int): The numbers of items to return. [optional] + limit (int): The numbers of items to return.. [optional] after_cursor (str): Return every resource created after the cursor value.. [optional] before_cursor (str): Return every resource created before the cursor value.. [optional] _return_http_data_only (bool): response data without head status @@ -763,7 +705,7 @@ def list_transfers_by_settlement_id( settlement_id (str): ID of `Settlement` object. Keyword Args: - limit (int): The numbers of items to return. [optional] + limit (int): The numbers of items to return.. [optional] after_cursor (str): Return every resource created after the cursor value.. [optional] before_cursor (str): Return every resource created before the cursor value.. [optional] _return_http_data_only (bool): response data without head status @@ -832,9 +774,9 @@ def list( self, **kwargs ): - """List Settlements # noqa: E501 + """List All Settlements # noqa: E501 - Retrieve a list of `Settlements`. # noqa: E501 + Retrieve a list of `Settlements`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -843,12 +785,12 @@ def list( Keyword Args: - created_at_gte (str): Filter where created_at is after the given date.. [optional] - created_at_lte (str): Filter where created_at is before the given date.. [optional] - updated_at_gte (str): Filter where updated_at is after the given date. [optional] - updated_at_lte (str): Filter where updated_at is before the given date. [optional] - id (str): Filter by id. [optional] - limit (int): The numbers of items to return. [optional] + created_at_gte (str): Filter where `created_at` is after the given date.. [optional] + created_at_lte (str): Filter where `created_at` is before the given date.. [optional] + updated_at_gte (str): Filter where `updated_at` is after the given date.. [optional] + updated_at_lte (str): Filter where `updated_at` is before the given date.. [optional] + id (str): Filter by `id`.. [optional] + limit (int): The numbers of items to return.. [optional] after_cursor (str): Return every resource created after the cursor value.. [optional] before_cursor (str): Return every resource created before the cursor value.. [optional] _return_http_data_only (bool): response data without head status @@ -990,82 +932,3 @@ def remove_transfers_from_settlement( settlement_id return self._remove_transfers_from_settlement_endpoint.call_with_http_info(**kwargs) - def update( - self, - settlement_id, - **kwargs - ): - """Update a Settlement # noqa: E501 - - Update a `Settlement`. # 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(settlement_id, async_req=True) - >>> result = thread.get() - - Args: - settlement_id (str): ID of `Settlement` object. - - Keyword Args: - update_settlement_request (UpdateSettlementRequest): [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. - async_req (bool): execute request asynchronously - - Returns: - Settlement - 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', False - ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', False - ) - 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['settlement_id'] = \ - settlement_id - return self._update_endpoint.call_with_http_info(**kwargs) - diff --git a/finix/api/transfers_api.py b/finix/api/transfers_api.py index 7fe026a..1214dcd 100644 --- a/finix/api/transfers_api.py +++ b/finix/api/transfers_api.py @@ -651,7 +651,7 @@ def create_transfer_reversal( ): """Refund or Reverse a Transfer # noqa: E501 - Reverse a transfer with a `type` of **DEBIT**. This reversal creates a new `Transfer` resource with a `type` of **REVERSAL**. The refund can get delivered in most cases without the physical card. The card only needs to be swiped (to receive the refund) when: - The payment type is **DEBIT**, and the transaction is no longer in the batch. - The payment type is **CREDIT**, and the transaction is no longer in the batch and is older than 45 days. # noqa: E501 + Reverse a transfer with a `type` of **DEBIT**. This reversal creates a new `Transfer` resource with a `type` of **REVERSAL**. The refund can get delivered in most cases without the physical card. The card only needs to be swiped (to receive the refund) when: - The payment type is **DEBIT**, and the transaction is no longer in the Settlement batch. - The payment type is **CREDIT**, and the transaction is no longer in the batch and is older than 45 days. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -659,7 +659,7 @@ def create_transfer_reversal( >>> result = thread.get() Args: - transfer_id (str): ID of `transfer` object + transfer_id (str): ID of `Transfer` object. Keyword Args: create_reversal_request (CreateReversalRequest): [optional] @@ -728,9 +728,9 @@ def get( transfer_id, **kwargs ): - """Get a Transfer # noqa: E501 + """Fetch a Transfer # noqa: E501 - Retrieve a `transfer`. # noqa: E501 + Retrieve a `Transfer`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -738,7 +738,7 @@ def get( >>> result = thread.get() Args: - transfer_id (str): ID of `transfer` object. + transfer_id (str): ID of `Transfer` resource. Keyword Args: _return_http_data_only (bool): response data without head status @@ -816,7 +816,7 @@ def list_transfers_reversals( >>> result = thread.get() Args: - transfer_id (str): ID of `transfer` object + transfer_id (str): ID of `Transfer` object. Keyword Args: limit (int): The number of entries to return.. [optional] @@ -899,37 +899,37 @@ def list( Keyword Args: - sort (str): Specify key to be used for sorting the collection. [optional] + sort (str): Specify key to be used for sorting the collection.. [optional] after_cursor (str): Return every resource created after the cursor value.. [optional] - limit (int): The numbers of items to return. [optional] - amount (int): Filter by an amount equal to the given value. [optional] - amount_gte (int): Filter by an amount greater than or equal. [optional] - amount_gt (int): Filter by an amount greater than. [optional] - amount_lte (int): Filter by an amount less than or equal. [optional] - amount_lt (int): Filter by an amount less than. [optional] - created_at_gte (str): Filter where created_at is after the given date.. [optional] - created_at_lte (str): Filter where created_at is before the given date.. [optional] - idempotency_id (str): Filter by idempotency_id. [optional] - id (str): Filter by id. [optional] + limit (int): The numbers of items to return.. [optional] + amount (int): Filter by an amount equal to the given value.. [optional] + amount_gte (int): Filter by an amount greater than or equal.. [optional] + amount_gt (int): Filter by an amount greater than.. [optional] + amount_lte (int): Filter by an amount less than or equal.. [optional] + amount_lt (int): Filter by an amount less than.. [optional] + created_at_gte (str): Filter where `created_at` is after the given date.. [optional] + created_at_lte (str): Filter where `created_at` is before the given date.. [optional] + idempotency_id (str): Filter by `idempotency_id`.. [optional] + id (str): Filter by `id`.. [optional] state (str): Filter by Transaction state.. [optional] - ready_to_settle_at_gte (str): Filter by ready_to_settle_at. [optional] - ready_to_settle_at_lte (str): Filter by ready_to_settle_at. [optional] - statement_descriptor (int): Filter by statement_descriptor. [optional] - trace_id (str): Filter by trace_id. [optional] - updated_at_gte (str): Filter where updated_at is after the given date. [optional] - updated_at_lte (str): Filter where updated_at is before the given date. [optional] - instrument_bin (str): Filter by Bank Identification Number (BIN). The BIN is the first 6 digits of the masked number. [optional] - instrument_account_last4 (str): Filter Transactions by the last 4 digits of the bank account. The bank account last 4 are the last 4 digits of the masked number instrument_account_last4=9444 BIN . [optional] - instrument_brand_type (str): Filter by card brand. Available card brand types can be found in the drop-down. [optional] - merchant_identity_id (str): Filter by Identity ID. [optional] - merchant_identity_name (str): Filter Transactions by Identity name. The name is not case-sensitive. [optional] - instrument_name (str): Filter Transactions by payment instrument name. [optional] - instrument_type (str): Filter Transactions by payment instrument type. Available instrument types include: Bank Account or Payment Card. [optional] - merchant_id (str): Filter by Merchant ID. [optional] - merchant_mid (str): Filter by Merchant Identification Number (MID). [optional] - instrument_card_last4 (str): Filter by the payment card last 4 digits. [optional] - merchant_processor_id (str): Filter by Processor ID. [optional] - type (str): Filter by Transfer type. Available type filters include: All, Debits, Refunds, or Credits.. [optional] + ready_to_settle_at_gte (str): Filter by `ready_to_settle_at`.. [optional] + ready_to_settle_at_lte (str): Filter by `ready_to_settle_at`.. [optional] + statement_descriptor (int): Filter by `statement_descriptor`.. [optional] + trace_id (str): Filter by `trace_id`.. [optional] + updated_at_gte (str): Filter where `updated_at` is after the given date.. [optional] + updated_at_lte (str): Filter where `updated_at` is before the given date.. [optional] + instrument_bin (str): Filter by Bank Identification Number (BIN). The BIN is the first 6 digits of the masked number.. [optional] + instrument_account_last4 (str): Filter Transactions by the last 4 digits of the bank account. The bank account last 4 are the last 4 digits of the masked number instrument_account_last4=9444 BIN.. [optional] + instrument_brand_type (str): Filter by card brand. Available card brand types can be found in the drop-down.. [optional] + merchant_identity_id (str): Filter by `Identity` ID.. [optional] + merchant_identity_name (str): Filter Transactions by `Identity` name. The name is not case-sensitive.. [optional] + instrument_name (str): Filter Transactions by `Payment Instrument` name.. [optional] + instrument_type (str): Filter Transactions by `Payment Instrument` type. Available instrument types include: Bank Account or Payment Card. [optional] + merchant_id (str): Filter by `Merchant` ID.. [optional] + merchant_mid (str): Filter by Merchant Identification Number (MID).. [optional] + instrument_card_last4 (str): Filter by the payment card last 4 digits.. [optional] + merchant_processor_id (str): Filter by `Processor` ID.. [optional] + type (str): Filter by `Transfer` type. Available type filters include: All, Debits, Refunds, or Credits.. [optional] before_cursor (str): Return every resource created before the cursor value.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. @@ -1006,7 +1006,7 @@ def update( >>> result = thread.get() Args: - transfer_id (str): ID of `transfer` object. + transfer_id (str): ID of `Transfer` resource. Keyword Args: update_transfer_request (UpdateTransferRequest): [optional] diff --git a/finix/api/verifications_api.py b/finix/api/verifications_api.py index 2a0a64f..a563c9c 100644 --- a/finix/api/verifications_api.py +++ b/finix/api/verifications_api.py @@ -230,6 +230,77 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self._list_by_payment_instrument_id_endpoint = finix.api_client.Endpoint( + settings={ + 'response_type': (VerificationsList,), + 'auth': [ + 'BasicAuth' + ], + 'endpoint_path': '/payment_instruments/{payment_instrument_id}/verifications', + 'operation_id': 'list_by_payment_instrument_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'payment_instrument_id', + 'limit', + 'offset', + 'page_number', + 'page_size', + ], + 'required': [ + 'payment_instrument_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'payment_instrument_id': + (str,), + 'limit': + (int,), + 'offset': + (int,), + 'page_number': + (int,), + 'page_size': + (int,), + }, + 'attribute_map': { + 'payment_instrument_id': 'payment_instrument_id', + 'limit': 'limit', + 'offset': 'offset', + 'page_number': 'pageNumber', + 'page_size': 'pageSize', + }, + 'location_map': { + 'payment_instrument_id': 'path', + 'limit': 'query', + 'offset': 'query', + 'page_number': 'query', + 'page_size': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/hal+json' + ], + 'content_type': [], + }, + api_client=api_client + ) self._list_endpoint = finix.api_client.Endpoint( settings={ 'response_type': (VerificationsList,), @@ -294,9 +365,9 @@ def create( self, **kwargs ): - """Perform a Verification # noqa: E501 + """Create a Merchant Verification # noqa: E501 - Create a `verification` to verify an `Identity` or `Payment Instrument`. Verifications can also be created directly on the resources you want to verify: - `POST /merchants/{id}/verifications` - `POST /payment_instruments/{id}/verifications` # noqa: E501 + Create a `Verification` to verify a merchant's `Identity`. Verifications can also be created directly on the resources you want to verify: - `POST /merchants/{merchant_id}/verifications` Verify `Payment Instruments` directly on the resource: - `POST /payment_instruments/{payment_instrument_id}/verifications` # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -369,7 +440,7 @@ def get( verification_id, **kwargs ): - """Get a Verification # noqa: E501 + """Fetch a Verification # noqa: E501 Retrieve the details of a `Verification`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -449,7 +520,7 @@ def list_by_merchant_id( ): """List Merchant Verifications # noqa: E501 - Get a list of all the `Verifications` in the `Merchant` object. # noqa: E501 + Get a list of all the `Verifications` for a `Merchant` resource. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -525,6 +596,90 @@ def list_by_merchant_id( fl = FinixList(ret, self.list_by_merchant_id, **kwargs) return fl + def list_by_payment_instrument_id( + self, + payment_instrument_id, + **kwargs + ): + """List Payment Instrument Verifications # noqa: E501 + + List all the `Verifications` created for a `Payment Instrument`. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.list_by_payment_instrument_id(payment_instrument_id, async_req=True) + >>> result = thread.get() + + Args: + payment_instrument_id (str): ID of `Payment Instrument `object. + + Keyword Args: + limit (int): The number of entries to return.. [optional] + offset (int): The number of items to skip before starting to collect the result set.. [optional] + page_number (int): The page number to list.. [optional] + page_size (int): The size of the page.. [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. + async_req (bool): execute request asynchronously + + Returns: + VerificationsList + 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', False + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', False + ) + 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['payment_instrument_id'] = \ + payment_instrument_id + ret = self._list_by_payment_instrument_id_endpoint.call_with_http_info(**kwargs) + fl = FinixList(ret, self.list_by_payment_instrument_id, **kwargs) + return fl + def list( self, **kwargs @@ -540,7 +695,7 @@ def list( Keyword Args: - limit (int): The numbers of items to return. [optional] + limit (int): The numbers of items to return.. [optional] after_cursor (str): Return every resource created after the cursor value.. [optional] before_cursor (str): Return every resource created before the cursor value.. [optional] _return_http_data_only (bool): response data without head status diff --git a/finix/api/webhooks_api.py b/finix/api/webhooks_api.py index ea1ec74..3c51743 100644 --- a/finix/api/webhooks_api.py +++ b/finix/api/webhooks_api.py @@ -361,7 +361,7 @@ def get( webhook_id, **kwargs ): - """Get a Webhook # noqa: E501 + """Fetch a Webhook # noqa: E501 Retrieve the details of a `Webhook`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -449,7 +449,7 @@ def list( Keyword Args: - limit (int): The numbers of items to return. [optional] + limit (int): The numbers of items to return.. [optional] after_cursor (str): Return every resource created after the cursor value.. [optional] before_cursor (str): Return every resource created before the cursor value.. [optional] _return_http_data_only (bool): response data without head status diff --git a/finix/configuration.py b/finix/configuration.py index 422bd51..554e45c 100644 --- a/finix/configuration.py +++ b/finix/configuration.py @@ -25,7 +25,6 @@ class Environment (str, enum.Enum): SANDBOX = 'https://finix.sandbox-payments-api.com' - PRODUCTION = 'https://finix.live-payments-api.com' class Configuration(object): """ @@ -416,10 +415,6 @@ def get_host_settings(self): { 'url': "https://finix.sandbox-payments-api.com", 'description': "Sandbox server to be used for testing and development", - }, - { - 'url': "https://finix.live-payments-api.com", - 'description': "Live server to be used for production charges", } ] diff --git a/finix/model/additional_buyer_charges.py b/finix/model/additional_buyer_charges.py new file mode 100644 index 0000000..e401369 --- /dev/null +++ b/finix/model/additional_buyer_charges.py @@ -0,0 +1,254 @@ +""" + Finix API + + The version of the OpenAPI document: 2022-02-01 + Contact: support@finixpayments.com +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from finix.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 finix.exceptions import ApiAttributeError + + + +class AdditionalBuyerCharges(ModelNormal): + """ + + 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 { + 'convenience_amount': (float, none_type,), # noqa: E501 + 'rent_surcharge_amount': (float, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'convenience_amount': 'convenience_amount', # noqa: E501 + 'rent_surcharge_amount': 'rent_surcharge_amount', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdditionalBuyerCharges - 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,) + convenience_amount (float, none_type): Include the convenience fee the merchant is charging the buyer for the transaction when creating a `Transfer` or an `Authorization`.. [optional] # noqa: E501 + rent_surcharge_amount (float, none_type): Include the rent surcharge the merchant is charging the buyer for the transaction when creating a `Transfer` or an `Authorization`.. [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: + 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, *args, **kwargs): # noqa: E501 + """AdditionalBuyerCharges - 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,) + convenience_amount (float, none_type): Include the convenience fee the merchant is charging the buyer for the transaction when creating a `Transfer` or an `Authorization`.. [optional] # noqa: E501 + rent_surcharge_amount (float, none_type): Include the rent surcharge the merchant is charging the buyer for the transaction when creating a `Transfer` or an `Authorization`.. [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: + 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) + 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/finix/model/additional_purchase_data.py b/finix/model/additional_purchase_data.py index aed499e..bc5627e 100644 --- a/finix/model/additional_purchase_data.py +++ b/finix/model/additional_purchase_data.py @@ -125,12 +125,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, customer_reference_number, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """AdditionalPurchaseData - a model defined in OpenAPI - Args: - customer_reference_number (str): The customer reference for the purchase (max 17 characters). - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -162,12 +159,13 @@ def _from_openapi_data(cls, customer_reference_number, *args, **kwargs): # noqa Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + customer_reference_number (str): The customer reference for the purchase (max 17 characters).. [optional] # noqa: E501 customs_duty_amount (int): The duty in cents on the total purchase amount for the order. [optional] # noqa: E501 destination_country_code (str): The ISO country code of the order destination.. [optional] # noqa: E501 destination_postal_code (str): The postal code of the order destination (10 characters). [optional] # noqa: E501 discount_amount (int): The amount in cents of the discount for the order.. [optional] # noqa: E501 invoice_reference_number (str): The order's invoice number (max 15 characters). [optional] # noqa: E501 - item_data ([AdditionalPurchaseDataItemData]): [optional] # noqa: E501 + item_data ([AdditionalPurchaseDataItemData]): Additional information about the transaction. Used for Level 2 and Level 3 Processing.. [optional] # noqa: E501 order_date (AdditionalPurchaseDataOrderDate): [optional] # noqa: E501 sales_tax (int): Total aggregate tax amount in cents for the entire purchase. Field is automatically calculated if you pass in the itemized tax amounts. For non-taxable transactions either set `sales_tax` to 0 or omit from payload and also set `tax_exempt` to **True**.. [optional] # noqa: E501 ship_from_postal_code (str): The postal code from where order is shipped (10 characters). [optional] # noqa: E501 @@ -200,7 +198,6 @@ def _from_openapi_data(cls, customer_reference_number, *args, **kwargs): # noqa self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.customer_reference_number = customer_reference_number for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -221,12 +218,9 @@ def _from_openapi_data(cls, customer_reference_number, *args, **kwargs): # noqa ]) @convert_js_args_to_python_args - def __init__(self, customer_reference_number, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """AdditionalPurchaseData - a model defined in OpenAPI - Args: - customer_reference_number (str): The customer reference for the purchase (max 17 characters). - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -258,12 +252,13 @@ def __init__(self, customer_reference_number, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + customer_reference_number (str): The customer reference for the purchase (max 17 characters).. [optional] # noqa: E501 customs_duty_amount (int): The duty in cents on the total purchase amount for the order. [optional] # noqa: E501 destination_country_code (str): The ISO country code of the order destination.. [optional] # noqa: E501 destination_postal_code (str): The postal code of the order destination (10 characters). [optional] # noqa: E501 discount_amount (int): The amount in cents of the discount for the order.. [optional] # noqa: E501 invoice_reference_number (str): The order's invoice number (max 15 characters). [optional] # noqa: E501 - item_data ([AdditionalPurchaseDataItemData]): [optional] # noqa: E501 + item_data ([AdditionalPurchaseDataItemData]): Additional information about the transaction. Used for Level 2 and Level 3 Processing.. [optional] # noqa: E501 order_date (AdditionalPurchaseDataOrderDate): [optional] # noqa: E501 sales_tax (int): Total aggregate tax amount in cents for the entire purchase. Field is automatically calculated if you pass in the itemized tax amounts. For non-taxable transactions either set `sales_tax` to 0 or omit from payload and also set `tax_exempt` to **True**.. [optional] # noqa: E501 ship_from_postal_code (str): The postal code from where order is shipped (10 characters). [optional] # noqa: E501 @@ -294,7 +289,6 @@ def __init__(self, customer_reference_number, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.customer_reference_number = customer_reference_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/finix/model/additional_purchase_data_item_data.py b/finix/model/additional_purchase_data_item_data.py index 9240094..daf0892 100644 --- a/finix/model/additional_purchase_data_item_data.py +++ b/finix/model/additional_purchase_data_item_data.py @@ -111,20 +111,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, amount_excluding_sales_tax, amount_including_sales_tax, commodity_code, cost_per_unit, item_description, item_discount_amount, merchant_product_code, quantity, unit_of_measure, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """AdditionalPurchaseDataItemData - a model defined in OpenAPI - Args: - amount_excluding_sales_tax (int): Total cost in cents of the line item excluding tax. - amount_including_sales_tax (int): Total cost in cents of the line item including tax. - commodity_code (str): A commodity code is a numeric code representing a particular product or service as defined by the National Institute of Governmental Purchasing. The code can be 3, 5, 7, or 11 digits in length. The longer the code the more granular the description of the product/service. (max 12 characters). - cost_per_unit (int): The price in cents of one unit of the item purchased - item_description (str): Required when `item_data` is supplied (max 25 characters) - item_discount_amount (int): Item discount amount in cents - merchant_product_code (str): Merchant defined product code (max 12 characters). - quantity (int): The number of items purchased. Must be greater than 0. - unit_of_measure (str): The unit of measure of the purchased item (max 3 characters). - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -156,6 +145,15 @@ def _from_openapi_data(cls, amount_excluding_sales_tax, amount_including_sales_t Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + amount_excluding_sales_tax (int): Total cost in cents of the line item excluding tax.. [optional] # noqa: E501 + amount_including_sales_tax (int): Total cost in cents of the line item including tax.. [optional] # noqa: E501 + commodity_code (str): A commodity code is a numeric code representing a particular product or service as defined by the National Institute of Governmental Purchasing. The code can be 3, 5, 7, or 11 digits in length. The longer the code the more granular the description of the product/service. (max 12 characters).. [optional] # noqa: E501 + cost_per_unit (int): The price in cents of one unit of the item purchased. [optional] # noqa: E501 + item_description (str): Required when `item_data` is supplied (max 25 characters). [optional] # noqa: E501 + item_discount_amount (int): Item discount amount in cents . [optional] # noqa: E501 + merchant_product_code (str): Merchant defined product code (max 12 characters).. [optional] # noqa: E501 + quantity (int): The number of items purchased. Must be greater than 0.. [optional] # noqa: E501 + unit_of_measure (str): The unit of measure of the purchased item (max 3 characters).. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -183,15 +181,6 @@ def _from_openapi_data(cls, amount_excluding_sales_tax, amount_including_sales_t self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.amount_excluding_sales_tax = amount_excluding_sales_tax - self.amount_including_sales_tax = amount_including_sales_tax - self.commodity_code = commodity_code - self.cost_per_unit = cost_per_unit - self.item_description = item_description - self.item_discount_amount = item_discount_amount - self.merchant_product_code = merchant_product_code - self.quantity = quantity - self.unit_of_measure = unit_of_measure for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -212,20 +201,9 @@ def _from_openapi_data(cls, amount_excluding_sales_tax, amount_including_sales_t ]) @convert_js_args_to_python_args - def __init__(self, amount_excluding_sales_tax, amount_including_sales_tax, commodity_code, cost_per_unit, item_description, item_discount_amount, merchant_product_code, quantity, unit_of_measure, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """AdditionalPurchaseDataItemData - a model defined in OpenAPI - Args: - amount_excluding_sales_tax (int): Total cost in cents of the line item excluding tax. - amount_including_sales_tax (int): Total cost in cents of the line item including tax. - commodity_code (str): A commodity code is a numeric code representing a particular product or service as defined by the National Institute of Governmental Purchasing. The code can be 3, 5, 7, or 11 digits in length. The longer the code the more granular the description of the product/service. (max 12 characters). - cost_per_unit (int): The price in cents of one unit of the item purchased - item_description (str): Required when `item_data` is supplied (max 25 characters) - item_discount_amount (int): Item discount amount in cents - merchant_product_code (str): Merchant defined product code (max 12 characters). - quantity (int): The number of items purchased. Must be greater than 0. - unit_of_measure (str): The unit of measure of the purchased item (max 3 characters). - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -257,6 +235,15 @@ def __init__(self, amount_excluding_sales_tax, amount_including_sales_tax, commo Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + amount_excluding_sales_tax (int): Total cost in cents of the line item excluding tax.. [optional] # noqa: E501 + amount_including_sales_tax (int): Total cost in cents of the line item including tax.. [optional] # noqa: E501 + commodity_code (str): A commodity code is a numeric code representing a particular product or service as defined by the National Institute of Governmental Purchasing. The code can be 3, 5, 7, or 11 digits in length. The longer the code the more granular the description of the product/service. (max 12 characters).. [optional] # noqa: E501 + cost_per_unit (int): The price in cents of one unit of the item purchased. [optional] # noqa: E501 + item_description (str): Required when `item_data` is supplied (max 25 characters). [optional] # noqa: E501 + item_discount_amount (int): Item discount amount in cents . [optional] # noqa: E501 + merchant_product_code (str): Merchant defined product code (max 12 characters).. [optional] # noqa: E501 + quantity (int): The number of items purchased. Must be greater than 0.. [optional] # noqa: E501 + unit_of_measure (str): The unit of measure of the purchased item (max 3 characters).. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -282,15 +269,6 @@ def __init__(self, amount_excluding_sales_tax, amount_including_sales_tax, commo self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.amount_excluding_sales_tax = amount_excluding_sales_tax - self.amount_including_sales_tax = amount_including_sales_tax - self.commodity_code = commodity_code - self.cost_per_unit = cost_per_unit - self.item_description = item_description - self.item_discount_amount = item_discount_amount - self.merchant_product_code = merchant_product_code - self.quantity = quantity - self.unit_of_measure = unit_of_measure 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/finix/model/additional_purchase_data_order_date.py b/finix/model/additional_purchase_data_order_date.py index 1b5f9a2..abcf61a 100644 --- a/finix/model/additional_purchase_data_order_date.py +++ b/finix/model/additional_purchase_data_order_date.py @@ -99,14 +99,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, day, month, year, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """AdditionalPurchaseDataOrderDate - a model defined in OpenAPI - Args: - day (int): Day of purchase (between 1 and 31) - month (int): Month of purchase (between 1 and 12) - year (int): Year of purchase (4-digit) - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -138,6 +133,9 @@ def _from_openapi_data(cls, day, month, year, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + day (int): Day of purchase (between 1 and 31). [optional] # noqa: E501 + month (int): Month of purchase (between 1 and 12). [optional] # noqa: E501 + year (int): Year of purchase (4-digit). [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -165,9 +163,6 @@ def _from_openapi_data(cls, day, month, year, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.day = day - self.month = month - self.year = year for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -188,14 +183,9 @@ def _from_openapi_data(cls, day, month, year, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, day, month, year, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """AdditionalPurchaseDataOrderDate - a model defined in OpenAPI - Args: - day (int): Day of purchase (between 1 and 31) - month (int): Month of purchase (between 1 and 12) - year (int): Year of purchase (4-digit) - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -227,6 +217,9 @@ def __init__(self, day, month, year, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + day (int): Day of purchase (between 1 and 31). [optional] # noqa: E501 + month (int): Month of purchase (between 1 and 12). [optional] # noqa: E501 + year (int): Year of purchase (4-digit). [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -252,9 +245,6 @@ def __init__(self, day, month, year, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.day = day - self.month = month - self.year = year 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/finix/model/address.py b/finix/model/address.py index 8682b0e..1c1f9bf 100644 --- a/finix/model/address.py +++ b/finix/model/address.py @@ -111,17 +111,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, city, country, line1, line2, postal_code, region, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """Address - a model defined in OpenAPI - Args: - city (str, none_type): City (max 20 characters). - country (Country): - line1 (str, none_type): First line of the address (max 35 characters). - line2 (str, none_type): Second line of the address (max 35 characters). - postal_code (str, none_type): Zip or Postal code (max 7 characters). - region (str, none_type): 2-letter State code. - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -153,6 +145,12 @@ def _from_openapi_data(cls, city, country, line1, line2, postal_code, region, *a Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + city (str, none_type): City (max 20 characters).. [optional] # noqa: E501 + country (Country): [optional] # noqa: E501 + line1 (str, none_type): First line of the address (max 35 characters).. [optional] # noqa: E501 + line2 (str, none_type): Second line of the address (max 35 characters).. [optional] # noqa: E501 + postal_code (str, none_type): Zip or Postal code (max 7 characters).. [optional] # noqa: E501 + region (str, none_type): 2-letter State code.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -180,12 +178,6 @@ def _from_openapi_data(cls, city, country, line1, line2, postal_code, region, *a self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.city = city - self.country = country - self.line1 = line1 - self.line2 = line2 - self.postal_code = postal_code - self.region = region for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -206,17 +198,9 @@ def _from_openapi_data(cls, city, country, line1, line2, postal_code, region, *a ]) @convert_js_args_to_python_args - def __init__(self, city, country, line1, line2, postal_code, region, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """Address - a model defined in OpenAPI - Args: - city (str, none_type): City (max 20 characters). - country (Country): - line1 (str, none_type): First line of the address (max 35 characters). - line2 (str, none_type): Second line of the address (max 35 characters). - postal_code (str, none_type): Zip or Postal code (max 7 characters). - region (str, none_type): 2-letter State code. - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -248,6 +232,12 @@ def __init__(self, city, country, line1, line2, postal_code, region, *args, **kw Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + city (str, none_type): City (max 20 characters).. [optional] # noqa: E501 + country (Country): [optional] # noqa: E501 + line1 (str, none_type): First line of the address (max 35 characters).. [optional] # noqa: E501 + line2 (str, none_type): Second line of the address (max 35 characters).. [optional] # noqa: E501 + postal_code (str, none_type): Zip or Postal code (max 7 characters).. [optional] # noqa: E501 + region (str, none_type): 2-letter State code.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -273,12 +263,6 @@ def __init__(self, city, country, line1, line2, postal_code, region, *args, **kw self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.city = city - self.country = country - self.line1 = line1 - self.line2 = line2 - self.postal_code = postal_code - self.region = region 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/finix/model/adjustment_transfers_list.py b/finix/model/adjustment_transfers_list.py index 9332963..4fcb31e 100644 --- a/finix/model/adjustment_transfers_list.py +++ b/finix/model/adjustment_transfers_list.py @@ -86,9 +86,9 @@ def openapi_types(): """ lazy_import() return { + 'page': (PageCursor,), # noqa: E501 'embedded': (AdjustmentTransfersListEmbedded,), # noqa: E501 'links': (DisputeEvidenceLinks,), # noqa: E501 - 'page': (PageCursor,), # noqa: E501 } @cached_property @@ -97,9 +97,9 @@ def discriminator(): attribute_map = { + 'page': 'page', # noqa: E501 'embedded': '_embedded', # noqa: E501 'links': '_links', # noqa: E501 - 'page': 'page', # noqa: E501 } read_only_vars = { @@ -143,9 +143,9 @@ 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,) + page (PageCursor): [optional] # noqa: E501 embedded (AdjustmentTransfersListEmbedded): [optional] # noqa: E501 links (DisputeEvidenceLinks): [optional] # noqa: E501 - page (PageCursor): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -227,9 +227,9 @@ 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,) + page (PageCursor): [optional] # noqa: E501 embedded (AdjustmentTransfersListEmbedded): [optional] # noqa: E501 links (DisputeEvidenceLinks): [optional] # noqa: E501 - page (PageCursor): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/finix/model/adjustment_transfers_list_embedded.py b/finix/model/adjustment_transfers_list_embedded.py index 323d42f..245633f 100644 --- a/finix/model/adjustment_transfers_list_embedded.py +++ b/finix/model/adjustment_transfers_list_embedded.py @@ -135,7 +135,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,) - transfers ([Transfer]): [optional] # noqa: E501 + transfers ([Transfer]): `Transfer` objects.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -217,7 +217,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,) - transfers ([Transfer]): [optional] # noqa: E501 + transfers ([Transfer]): `Transfer` objects.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/finix/model/apple_pay_session_request.py b/finix/model/apple_pay_session_request.py index 14fec78..1a78674 100644 --- a/finix/model/apple_pay_session_request.py +++ b/finix/model/apple_pay_session_request.py @@ -135,8 +135,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,) - display_name (str): This will be the merchant name shown to users when making a purchase via Apple Pay.1. [optional] # noqa: E501 - domain (str): The domain where the buyer is initiating the payment.. [optional] # noqa: E501 + display_name (str): This will be the merchant name shown to users when making a purchase via Apple Pay.. [optional] # noqa: E501 + domain (str): The domain (or website) where the buyer is initiating the payment.. [optional] # noqa: E501 merchant_identity (str): The `merchant_identity_id` used when registering the business with Apple Pay through our registration API.. [optional] # noqa: E501 validation_url (str): A unique validation URL that will be provided by the Apple SDK front-end for every payment.. [optional] # noqa: E501 """ @@ -220,8 +220,8 @@ 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,) - display_name (str): This will be the merchant name shown to users when making a purchase via Apple Pay.1. [optional] # noqa: E501 - domain (str): The domain where the buyer is initiating the payment.. [optional] # noqa: E501 + display_name (str): This will be the merchant name shown to users when making a purchase via Apple Pay.. [optional] # noqa: E501 + domain (str): The domain (or website) where the buyer is initiating the payment.. [optional] # noqa: E501 merchant_identity (str): The `merchant_identity_id` used when registering the business with Apple Pay through our registration API.. [optional] # noqa: E501 validation_url (str): A unique validation URL that will be provided by the Apple SDK front-end for every payment.. [optional] # noqa: E501 """ diff --git a/finix/model/application.py b/finix/model/application.py index d54da11..f5ad24c 100644 --- a/finix/model/application.py +++ b/finix/model/application.py @@ -56,19 +56,19 @@ class Application(ModelNormal): """ allowed_values = { - ('settlement_funding_identifier',): { + ('fee_ready_to_settle_upon',): { 'None': None, - 'UNSET': "UNSET", + 'RECONCILIATION': "RECONCILIATION", + 'SUCCESSFUL_CAPTURE': "SUCCESSFUL_CAPTURE", }, ('ready_to_settle_upon',): { 'None': None, 'RECONCILIATION': "RECONCILIATION", 'SUCCESSFUL_CAPTURE': "SUCCESSFUL_CAPTURE", }, - ('fee_ready_to_settle_upon',): { + ('settlement_funding_identifier',): { 'None': None, - 'RECONCILIATION': "RECONCILIATION", - 'SUCCESSFUL_CAPTURE': "SUCCESSFUL_CAPTURE", + 'UNSET': "UNSET", }, } @@ -108,7 +108,6 @@ def openapi_types(): """ lazy_import() return { - 'tags': (Tags,), # noqa: E501 'id': (str,), # noqa: E501 'created_at': (datetime,), # noqa: E501 'updated_at': (datetime,), # noqa: E501 @@ -116,13 +115,14 @@ def openapi_types(): 'card_expiration_date_required': (bool,), # noqa: E501 'creating_transfer_from_report_enabled': (bool,), # noqa: E501 'enabled': (bool,), # noqa: E501 + 'fee_ready_to_settle_upon': (str, none_type,), # noqa: E501 'name': (str,), # noqa: E501 'owner': (str,), # noqa: E501 'processing_enabled': (bool,), # noqa: E501 + 'ready_to_settle_upon': (str, none_type,), # noqa: E501 'settlement_enabled': (bool,), # noqa: E501 'settlement_funding_identifier': (str, none_type,), # noqa: E501 - 'ready_to_settle_upon': (str, none_type,), # noqa: E501 - 'fee_ready_to_settle_upon': (str, none_type,), # noqa: E501 + 'tags': (Tags,), # noqa: E501 'links': (ApplicationLinks,), # noqa: E501 } @@ -132,7 +132,6 @@ def discriminator(): attribute_map = { - 'tags': 'tags', # noqa: E501 'id': 'id', # noqa: E501 'created_at': 'created_at', # noqa: E501 'updated_at': 'updated_at', # noqa: E501 @@ -140,13 +139,14 @@ def discriminator(): 'card_expiration_date_required': 'card_expiration_date_required', # noqa: E501 'creating_transfer_from_report_enabled': 'creating_transfer_from_report_enabled', # noqa: E501 'enabled': 'enabled', # noqa: E501 + 'fee_ready_to_settle_upon': 'fee_ready_to_settle_upon', # noqa: E501 'name': 'name', # noqa: E501 'owner': 'owner', # noqa: E501 'processing_enabled': 'processing_enabled', # noqa: E501 + 'ready_to_settle_upon': 'ready_to_settle_upon', # noqa: E501 'settlement_enabled': 'settlement_enabled', # noqa: E501 'settlement_funding_identifier': 'settlement_funding_identifier', # noqa: E501 - 'ready_to_settle_upon': 'ready_to_settle_upon', # noqa: E501 - 'fee_ready_to_settle_upon': 'fee_ready_to_settle_upon', # noqa: E501 + 'tags': 'tags', # noqa: E501 'links': '_links', # noqa: E501 } @@ -191,7 +191,6 @@ 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,) - tags (Tags): [optional] # noqa: E501 id (str): ID of the `Application` resource.. [optional] # noqa: E501 created_at (datetime): Point in time when this object was created.. [optional] # noqa: E501 updated_at (datetime): Point in time when this object was most recently updated.. [optional] # noqa: E501 @@ -199,13 +198,14 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 card_expiration_date_required (bool): Details if the `Application` requires the card's expiration date.. [optional] # noqa: E501 creating_transfer_from_report_enabled (bool): Details if the `Application` is automatically set to create `Transfers` once settlement reports get generated.. [optional] # noqa: E501 enabled (bool): Details if the `Application` is enabled and active. Set to **false** to disable the `Application`.. [optional] # noqa: E501 + fee_ready_to_settle_upon (str, none_type): Details when the `fees` of `Authroizations` submitted under the `Application` will be ready to settle.. [optional] # noqa: E501 name (str): The name of the `Application`.. [optional] # noqa: E501 owner (str): ID of the `Identity` resource that created the `Application`.. [optional] # noqa: E501 processing_enabled (bool): Details if transaction processing is enabled for the `Application`. . [optional] # noqa: E501 + ready_to_settle_upon (str, none_type): Details when `Authroizations` submitted under the `Application` will be ready to settle.. [optional] # noqa: E501 settlement_enabled (bool): Details if settlement processing is enabled for the `Application`. . [optional] # noqa: E501 settlement_funding_identifier (str, none_type): [optional] if omitted the server will use the default value of "UNSET" # noqa: E501 - ready_to_settle_upon (str, none_type): Details when `Authroizations` submitted under the `Application` will be ready to settle.. [optional] # noqa: E501 - fee_ready_to_settle_upon (str, none_type): Details when the `fees` of `Authroizations` submitted under the `Application` will be ready to settle.. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 links (ApplicationLinks): [optional] # noqa: E501 """ @@ -288,7 +288,6 @@ 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,) - tags (Tags): [optional] # noqa: E501 id (str): ID of the `Application` resource.. [optional] # noqa: E501 created_at (datetime): Point in time when this object was created.. [optional] # noqa: E501 updated_at (datetime): Point in time when this object was most recently updated.. [optional] # noqa: E501 @@ -296,13 +295,14 @@ def __init__(self, *args, **kwargs): # noqa: E501 card_expiration_date_required (bool): Details if the `Application` requires the card's expiration date.. [optional] # noqa: E501 creating_transfer_from_report_enabled (bool): Details if the `Application` is automatically set to create `Transfers` once settlement reports get generated.. [optional] # noqa: E501 enabled (bool): Details if the `Application` is enabled and active. Set to **false** to disable the `Application`.. [optional] # noqa: E501 + fee_ready_to_settle_upon (str, none_type): Details when the `fees` of `Authroizations` submitted under the `Application` will be ready to settle.. [optional] # noqa: E501 name (str): The name of the `Application`.. [optional] # noqa: E501 owner (str): ID of the `Identity` resource that created the `Application`.. [optional] # noqa: E501 processing_enabled (bool): Details if transaction processing is enabled for the `Application`. . [optional] # noqa: E501 + ready_to_settle_upon (str, none_type): Details when `Authroizations` submitted under the `Application` will be ready to settle.. [optional] # noqa: E501 settlement_enabled (bool): Details if settlement processing is enabled for the `Application`. . [optional] # noqa: E501 settlement_funding_identifier (str, none_type): [optional] if omitted the server will use the default value of "UNSET" # noqa: E501 - ready_to_settle_upon (str, none_type): Details when `Authroizations` submitted under the `Application` will be ready to settle.. [optional] # noqa: E501 - fee_ready_to_settle_upon (str, none_type): Details when the `fees` of `Authroizations` submitted under the `Application` will be ready to settle.. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 links (ApplicationLinks): [optional] # noqa: E501 """ diff --git a/finix/model/application_profile.py b/finix/model/application_profile.py index 344d575..870330b 100644 --- a/finix/model/application_profile.py +++ b/finix/model/application_profile.py @@ -99,13 +99,13 @@ def openapi_types(): """ lazy_import() return { - 'tags': (Tags,), # noqa: E501 'id': (str,), # noqa: E501 'created_at': (datetime,), # noqa: E501 'updated_at': (datetime,), # noqa: E501 'application': (str,), # noqa: E501 'fee_profile': (str, none_type,), # noqa: E501 'risk_profile': (str,), # noqa: E501 + 'tags': (Tags,), # noqa: E501 'links': (ApplicationProfileLinks,), # noqa: E501 } @@ -115,13 +115,13 @@ def discriminator(): attribute_map = { - 'tags': 'tags', # noqa: E501 'id': 'id', # noqa: E501 'created_at': 'created_at', # noqa: E501 'updated_at': 'updated_at', # noqa: E501 'application': 'application', # noqa: E501 'fee_profile': 'fee_profile', # noqa: E501 'risk_profile': 'risk_profile', # noqa: E501 + 'tags': 'tags', # noqa: E501 'links': '_links', # noqa: E501 } @@ -166,13 +166,13 @@ 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,) - tags (Tags): [optional] # noqa: E501 id (str): ID of the `application_profile` resource.. [optional] # noqa: E501 created_at (datetime): Timestamp of when the object was created.. [optional] # noqa: E501 updated_at (datetime): Timestamp of when the object was last updated.. [optional] # noqa: E501 application (str): The ID of the `Application` resource.. [optional] # noqa: E501 fee_profile (str, none_type): The ID of the `Fee Profile` associated with the `Application`.. [optional] # noqa: E501 risk_profile (str): The ID of the `risk_profile` that was created during provisioning.. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 links (ApplicationProfileLinks): [optional] # noqa: E501 """ @@ -255,13 +255,13 @@ 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,) - tags (Tags): [optional] # noqa: E501 id (str): ID of the `application_profile` resource.. [optional] # noqa: E501 created_at (datetime): Timestamp of when the object was created.. [optional] # noqa: E501 updated_at (datetime): Timestamp of when the object was last updated.. [optional] # noqa: E501 application (str): The ID of the `Application` resource.. [optional] # noqa: E501 fee_profile (str, none_type): The ID of the `Fee Profile` associated with the `Application`.. [optional] # noqa: E501 risk_profile (str): The ID of the `risk_profile` that was created during provisioning.. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 links (ApplicationProfileLinks): [optional] # noqa: E501 """ diff --git a/finix/model/application_profiles_list_embedded.py b/finix/model/application_profiles_list_embedded.py index 3aaf799..a78ecbf 100644 --- a/finix/model/application_profiles_list_embedded.py +++ b/finix/model/application_profiles_list_embedded.py @@ -138,7 +138,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,) - application_profiles ([ApplicationProfile]): `application_profile` resource.. [optional] # noqa: E501 + application_profiles ([ApplicationProfile]): `application_profile` resources.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -220,7 +220,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,) - application_profiles ([ApplicationProfile]): `application_profile` resource.. [optional] # noqa: E501 + application_profiles ([ApplicationProfile]): `application_profile` resources.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/finix/model/applications_list_embedded.py b/finix/model/applications_list_embedded.py index f2434a7..752a10b 100644 --- a/finix/model/applications_list_embedded.py +++ b/finix/model/applications_list_embedded.py @@ -138,7 +138,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,) - applications ([Application]): `Application` resource.. [optional] # noqa: E501 + applications ([Application]): `Application` resources.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -220,7 +220,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,) - applications ([Application]): `Application` resource.. [optional] # noqa: E501 + applications ([Application]): `Application` resources.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/finix/model/authorization.py b/finix/model/authorization.py index 0e830de..8389540 100644 --- a/finix/model/authorization.py +++ b/finix/model/authorization.py @@ -28,17 +28,15 @@ def lazy_import(): - from finix.model.authorization_external_responses import AuthorizationExternalResponses + from finix.model.additional_buyer_charges import AdditionalBuyerCharges from finix.model.authorization_links import AuthorizationLinks from finix.model.card_present_details import CardPresentDetails from finix.model.currency import Currency - from finix.model.sub_type_transfer import SubTypeTransfer from finix.model.tags import Tags - globals()['AuthorizationExternalResponses'] = AuthorizationExternalResponses + globals()['AdditionalBuyerCharges'] = AdditionalBuyerCharges globals()['AuthorizationLinks'] = AuthorizationLinks globals()['CardPresentDetails'] = CardPresentDetails globals()['Currency'] = Currency - globals()['SubTypeTransfer'] = SubTypeTransfer globals()['Tags'] = Tags @@ -122,11 +120,11 @@ def openapi_types(): """ lazy_import() return { - 'tags': (Tags,), # noqa: E501 'id': (str,), # noqa: E501 'created_at': (datetime,), # noqa: E501 'updated_at': (datetime,), # noqa: E501 '_3ds_redirect_url': (str, none_type,), # noqa: E501 + 'additional_buyer_charges': (AdditionalBuyerCharges,), # noqa: E501 'amount': (int,), # noqa: E501 'application': (str,), # noqa: E501 'card_present_details': (CardPresentDetails,), # noqa: E501 @@ -134,21 +132,19 @@ def openapi_types(): 'currency': (Currency,), # noqa: E501 'device': (str, none_type,), # noqa: E501 'expires_at': (datetime,), # noqa: E501 - 'external_responses': ([AuthorizationExternalResponses], none_type,), # noqa: E501 - 'idempotency_id': (str, none_type,), # noqa: E501 'failure_code': (str, none_type,), # noqa: E501 'failure_message': (str, none_type,), # noqa: E501 + 'idempotency_id': (str, none_type,), # noqa: E501 'is_void': (bool,), # noqa: E501 'merchant_identity': (str, none_type,), # noqa: E501 - 'merchant': (str, none_type,), # noqa: E501 'messages': ([str],), # noqa: E501 'raw': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 'source': (str,), # noqa: E501 'state': (str,), # noqa: E501 + 'tags': (Tags,), # noqa: E501 'trace_id': (str,), # noqa: E501 'transfer': (str, none_type,), # noqa: E501 'void_state': (str,), # noqa: E501 - 'sub_type': (SubTypeTransfer,), # noqa: E501 'links': (AuthorizationLinks,), # noqa: E501 } @@ -158,11 +154,11 @@ def discriminator(): attribute_map = { - 'tags': 'tags', # noqa: E501 'id': 'id', # noqa: E501 'created_at': 'created_at', # noqa: E501 'updated_at': 'updated_at', # noqa: E501 '_3ds_redirect_url': '3ds_redirect_url', # noqa: E501 + 'additional_buyer_charges': 'additional_buyer_charges', # noqa: E501 'amount': 'amount', # noqa: E501 'application': 'application', # noqa: E501 'card_present_details': 'card_present_details', # noqa: E501 @@ -170,21 +166,19 @@ def discriminator(): 'currency': 'currency', # noqa: E501 'device': 'device', # noqa: E501 'expires_at': 'expires_at', # noqa: E501 - 'external_responses': 'external_responses', # noqa: E501 - 'idempotency_id': 'idempotency_id', # noqa: E501 'failure_code': 'failure_code', # noqa: E501 'failure_message': 'failure_message', # noqa: E501 + 'idempotency_id': 'idempotency_id', # noqa: E501 'is_void': 'is_void', # noqa: E501 'merchant_identity': 'merchant_identity', # noqa: E501 - 'merchant': 'merchant', # noqa: E501 'messages': 'messages', # noqa: E501 'raw': 'raw', # noqa: E501 'source': 'source', # noqa: E501 'state': 'state', # noqa: E501 + 'tags': 'tags', # noqa: E501 'trace_id': 'trace_id', # noqa: E501 'transfer': 'transfer', # noqa: E501 'void_state': 'void_state', # noqa: E501 - 'sub_type': 'sub_type', # noqa: E501 'links': '_links', # noqa: E501 } @@ -229,33 +223,31 @@ 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,) - tags (Tags): [optional] # noqa: E501 id (str): The ID of the `Authorization` resource.. [optional] # noqa: E501 created_at (datetime): Timestamp of when the object was created.. [optional] # noqa: E501 updated_at (datetime): Timestamp of when the object was last updated.. [optional] # noqa: E501 _3ds_redirect_url (str, none_type): The redirect URL used for 3DS transactions (if supported by the processor).. [optional] # noqa: E501 + additional_buyer_charges (AdditionalBuyerCharges): [optional] # noqa: E501 amount (int): The total amount that will be debited in cents (e.g. 100 cents to debit $1.00).. [optional] # noqa: E501 application (str): The ID of the `Application` resource the `Authorization` was created under.. [optional] # noqa: E501 card_present_details (CardPresentDetails): [optional] # noqa: E501 capture_amount (int): The amount of the `Authorization` you would like to capture in cents. Must be less than or equal to the `amount` of the `Authorization`.. [optional] # noqa: E501 currency (Currency): [optional] # noqa: E501 device (str, none_type): The ID of the activated device.. [optional] # noqa: E501 - expires_at (datetime): Authorization expiration time.. [optional] # noqa: E501 - external_responses ([AuthorizationExternalResponses], none_type): [optional] # noqa: E501 - idempotency_id (str, none_type): A randomly generated value that'll be associated with the request.. [optional] # noqa: E501 + expires_at (datetime): `Authorization` expiration time.. [optional] # noqa: E501 failure_code (str, none_type): The code of the failure so the decline can be handled programmatically. For more info on how to handle the failure, see [Failure Codes](/docs/guides/developers/errors/#failure-codes).. [optional] # noqa: E501 failure_message (str, none_type): A human-readable description of why the transaction was declined. This will also include a suggestion on how to complete the payment.. [optional] # noqa: E501 + idempotency_id (str, none_type): A randomly generated value that'll be associated with the request.. [optional] # noqa: E501 is_void (bool): Details if the `Authorization` is void.. [optional] # noqa: E501 merchant_identity (str, none_type): The ID of the resource.. [optional] # noqa: E501 - merchant (str, none_type): The ID of the resource.. [optional] # noqa: E501 messages ([str]): Message field that provides additional details. This field is typically **null**.. [optional] # noqa: E501 - raw ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Raw response from the processor. [optional] # noqa: E501 + raw ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Raw response from the processor.. [optional] # noqa: E501 source (str): ID of the `Payment Instrument` where funds get debited.. [optional] # noqa: E501 - state (str): The state of the `Transfer`.. [optional] # noqa: E501 + state (str): The state of the `Authorization`.. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 trace_id (str): Trace ID of the `Authorization`. The processor sends back the `trace_id` so you can track the authorization end-to-end.. [optional] # noqa: E501 transfer (str, none_type): The ID of the `transfer` resource that gets created when the `Authorization` moves to **SUCCEEDED**.. [optional] # noqa: E501 void_state (str): Details if the `Authorization` has been voided.. [optional] # noqa: E501 - sub_type (SubTypeTransfer): [optional] # noqa: E501 links (AuthorizationLinks): [optional] # noqa: E501 """ @@ -338,33 +330,31 @@ 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,) - tags (Tags): [optional] # noqa: E501 id (str): The ID of the `Authorization` resource.. [optional] # noqa: E501 created_at (datetime): Timestamp of when the object was created.. [optional] # noqa: E501 updated_at (datetime): Timestamp of when the object was last updated.. [optional] # noqa: E501 _3ds_redirect_url (str, none_type): The redirect URL used for 3DS transactions (if supported by the processor).. [optional] # noqa: E501 + additional_buyer_charges (AdditionalBuyerCharges): [optional] # noqa: E501 amount (int): The total amount that will be debited in cents (e.g. 100 cents to debit $1.00).. [optional] # noqa: E501 application (str): The ID of the `Application` resource the `Authorization` was created under.. [optional] # noqa: E501 card_present_details (CardPresentDetails): [optional] # noqa: E501 capture_amount (int): The amount of the `Authorization` you would like to capture in cents. Must be less than or equal to the `amount` of the `Authorization`.. [optional] # noqa: E501 currency (Currency): [optional] # noqa: E501 device (str, none_type): The ID of the activated device.. [optional] # noqa: E501 - expires_at (datetime): Authorization expiration time.. [optional] # noqa: E501 - external_responses ([AuthorizationExternalResponses], none_type): [optional] # noqa: E501 - idempotency_id (str, none_type): A randomly generated value that'll be associated with the request.. [optional] # noqa: E501 + expires_at (datetime): `Authorization` expiration time.. [optional] # noqa: E501 failure_code (str, none_type): The code of the failure so the decline can be handled programmatically. For more info on how to handle the failure, see [Failure Codes](/docs/guides/developers/errors/#failure-codes).. [optional] # noqa: E501 failure_message (str, none_type): A human-readable description of why the transaction was declined. This will also include a suggestion on how to complete the payment.. [optional] # noqa: E501 + idempotency_id (str, none_type): A randomly generated value that'll be associated with the request.. [optional] # noqa: E501 is_void (bool): Details if the `Authorization` is void.. [optional] # noqa: E501 merchant_identity (str, none_type): The ID of the resource.. [optional] # noqa: E501 - merchant (str, none_type): The ID of the resource.. [optional] # noqa: E501 messages ([str]): Message field that provides additional details. This field is typically **null**.. [optional] # noqa: E501 - raw ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Raw response from the processor. [optional] # noqa: E501 + raw ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Raw response from the processor.. [optional] # noqa: E501 source (str): ID of the `Payment Instrument` where funds get debited.. [optional] # noqa: E501 - state (str): The state of the `Transfer`.. [optional] # noqa: E501 + state (str): The state of the `Authorization`.. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 trace_id (str): Trace ID of the `Authorization`. The processor sends back the `trace_id` so you can track the authorization end-to-end.. [optional] # noqa: E501 transfer (str, none_type): The ID of the `transfer` resource that gets created when the `Authorization` moves to **SUCCEEDED**.. [optional] # noqa: E501 void_state (str): Details if the `Authorization` has been voided.. [optional] # noqa: E501 - sub_type (SubTypeTransfer): [optional] # noqa: E501 links (AuthorizationLinks): [optional] # noqa: E501 """ diff --git a/finix/model/authorization_captured.py b/finix/model/authorization_captured.py index ef655ae..81003a3 100644 --- a/finix/model/authorization_captured.py +++ b/finix/model/authorization_captured.py @@ -28,17 +28,17 @@ def lazy_import(): - from finix.model.authorization_external_responses import AuthorizationExternalResponses + from finix.model.additional_buyer_charges import AdditionalBuyerCharges + from finix.model.authorization_captured_external_responses import AuthorizationCapturedExternalResponses from finix.model.authorization_links import AuthorizationLinks from finix.model.card_present_details import CardPresentDetails from finix.model.currency import Currency - from finix.model.sub_type_transfer import SubTypeTransfer from finix.model.tags import Tags - globals()['AuthorizationExternalResponses'] = AuthorizationExternalResponses + globals()['AdditionalBuyerCharges'] = AdditionalBuyerCharges + globals()['AuthorizationCapturedExternalResponses'] = AuthorizationCapturedExternalResponses globals()['AuthorizationLinks'] = AuthorizationLinks globals()['CardPresentDetails'] = CardPresentDetails globals()['Currency'] = Currency - globals()['SubTypeTransfer'] = SubTypeTransfer globals()['Tags'] = Tags @@ -122,11 +122,11 @@ def openapi_types(): """ lazy_import() return { - 'tags': (Tags,), # noqa: E501 'id': (str,), # noqa: E501 'created_at': (datetime,), # noqa: E501 'updated_at': (datetime,), # noqa: E501 '_3ds_redirect_url': (str, none_type,), # noqa: E501 + 'additional_buyer_charges': (AdditionalBuyerCharges,), # noqa: E501 'amount': (int,), # noqa: E501 'application': (str,), # noqa: E501 'card_present_details': (CardPresentDetails,), # noqa: E501 @@ -134,21 +134,20 @@ def openapi_types(): 'currency': (Currency,), # noqa: E501 'device': (str, none_type,), # noqa: E501 'expires_at': (datetime,), # noqa: E501 - 'external_responses': ([AuthorizationExternalResponses], none_type,), # noqa: E501 - 'idempotency_id': (str, none_type,), # noqa: E501 + 'external_responses': ([AuthorizationCapturedExternalResponses], none_type,), # noqa: E501 'failure_code': (str, none_type,), # noqa: E501 'failure_message': (str, none_type,), # noqa: E501 + 'idempotency_id': (str, none_type,), # noqa: E501 'is_void': (bool,), # noqa: E501 'merchant_identity': (str, none_type,), # noqa: E501 - 'merchant': (str, none_type,), # noqa: E501 'messages': ([str],), # noqa: E501 'raw': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 'source': (str,), # noqa: E501 'state': (str,), # noqa: E501 + 'tags': (Tags,), # noqa: E501 'trace_id': (str,), # noqa: E501 'transfer': (str, none_type,), # noqa: E501 'void_state': (str,), # noqa: E501 - 'sub_type': (SubTypeTransfer,), # noqa: E501 'links': (AuthorizationLinks,), # noqa: E501 } @@ -158,11 +157,11 @@ def discriminator(): attribute_map = { - 'tags': 'tags', # noqa: E501 'id': 'id', # noqa: E501 'created_at': 'created_at', # noqa: E501 'updated_at': 'updated_at', # noqa: E501 '_3ds_redirect_url': '3ds_redirect_url', # noqa: E501 + 'additional_buyer_charges': 'additional_buyer_charges', # noqa: E501 'amount': 'amount', # noqa: E501 'application': 'application', # noqa: E501 'card_present_details': 'card_present_details', # noqa: E501 @@ -171,20 +170,19 @@ def discriminator(): 'device': 'device', # noqa: E501 'expires_at': 'expires_at', # noqa: E501 'external_responses': 'external_responses', # noqa: E501 - 'idempotency_id': 'idempotency_id', # noqa: E501 'failure_code': 'failure_code', # noqa: E501 'failure_message': 'failure_message', # noqa: E501 + 'idempotency_id': 'idempotency_id', # noqa: E501 'is_void': 'is_void', # noqa: E501 'merchant_identity': 'merchant_identity', # noqa: E501 - 'merchant': 'merchant', # noqa: E501 'messages': 'messages', # noqa: E501 'raw': 'raw', # noqa: E501 'source': 'source', # noqa: E501 'state': 'state', # noqa: E501 + 'tags': 'tags', # noqa: E501 'trace_id': 'trace_id', # noqa: E501 'transfer': 'transfer', # noqa: E501 'void_state': 'void_state', # noqa: E501 - 'sub_type': 'sub_type', # noqa: E501 'links': '_links', # noqa: E501 } @@ -229,11 +227,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,) - tags (Tags): [optional] # noqa: E501 id (str): The ID of the `Authorization` resource.. [optional] # noqa: E501 created_at (datetime): Timestamp of when the object was created.. [optional] # noqa: E501 updated_at (datetime): Timestamp of when the object was last updated.. [optional] # noqa: E501 _3ds_redirect_url (str, none_type): The redirect URL used for 3DS transactions (if supported by the processor).. [optional] # noqa: E501 + additional_buyer_charges (AdditionalBuyerCharges): [optional] # noqa: E501 amount (int): The total amount that will be debited in cents (e.g. 100 cents to debit $1.00).. [optional] # noqa: E501 application (str): The ID of the `Application` resource the `Authorization` was created under.. [optional] # noqa: E501 card_present_details (CardPresentDetails): [optional] # noqa: E501 @@ -241,21 +239,20 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 currency (Currency): [optional] # noqa: E501 device (str, none_type): The ID of the activated device.. [optional] # noqa: E501 expires_at (datetime): Authorization expiration time.. [optional] # noqa: E501 - external_responses ([AuthorizationExternalResponses], none_type): [optional] # noqa: E501 - idempotency_id (str, none_type): A randomly generated value that'll be associated with the request.. [optional] # noqa: E501 + external_responses ([AuthorizationCapturedExternalResponses], none_type): [optional] # noqa: E501 failure_code (str, none_type): The code of the failure so the decline can be handled programmatically. For more info on how to handle the failure, see [Failure Codes](/docs/guides/developers/errors/#failure-codes).. [optional] # noqa: E501 failure_message (str, none_type): A human-readable description of why the transaction was declined. This will also include a suggestion on how to complete the payment.. [optional] # noqa: E501 + idempotency_id (str, none_type): A randomly generated value that'll be associated with the request.. [optional] # noqa: E501 is_void (bool): Details if the `Authorization` is void.. [optional] # noqa: E501 merchant_identity (str, none_type): The ID of the resource.. [optional] # noqa: E501 - merchant (str, none_type): The ID of the resource.. [optional] # noqa: E501 messages ([str]): Message field that provides additional details. This field is typically **null**.. [optional] # noqa: E501 - raw ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Raw response from the processor. [optional] # noqa: E501 + raw ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Raw response from the processor.. [optional] # noqa: E501 source (str): ID of the `Payment Instrument` where funds get debited.. [optional] # noqa: E501 state (str): The state of the `Transfer`.. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 trace_id (str): Trace ID of the `Authorization`. The processor sends back the `trace_id` so you can track the authorization end-to-end.. [optional] # noqa: E501 transfer (str, none_type): The ID of the `transfer` resource that gets created when the `Authorization` moves to **SUCCEEDED**.. [optional] # noqa: E501 void_state (str): Details if the `Authorization` has been voided.. [optional] # noqa: E501 - sub_type (SubTypeTransfer): [optional] # noqa: E501 links (AuthorizationLinks): [optional] # noqa: E501 """ @@ -338,11 +335,11 @@ 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,) - tags (Tags): [optional] # noqa: E501 id (str): The ID of the `Authorization` resource.. [optional] # noqa: E501 created_at (datetime): Timestamp of when the object was created.. [optional] # noqa: E501 updated_at (datetime): Timestamp of when the object was last updated.. [optional] # noqa: E501 _3ds_redirect_url (str, none_type): The redirect URL used for 3DS transactions (if supported by the processor).. [optional] # noqa: E501 + additional_buyer_charges (AdditionalBuyerCharges): [optional] # noqa: E501 amount (int): The total amount that will be debited in cents (e.g. 100 cents to debit $1.00).. [optional] # noqa: E501 application (str): The ID of the `Application` resource the `Authorization` was created under.. [optional] # noqa: E501 card_present_details (CardPresentDetails): [optional] # noqa: E501 @@ -350,21 +347,20 @@ def __init__(self, *args, **kwargs): # noqa: E501 currency (Currency): [optional] # noqa: E501 device (str, none_type): The ID of the activated device.. [optional] # noqa: E501 expires_at (datetime): Authorization expiration time.. [optional] # noqa: E501 - external_responses ([AuthorizationExternalResponses], none_type): [optional] # noqa: E501 - idempotency_id (str, none_type): A randomly generated value that'll be associated with the request.. [optional] # noqa: E501 + external_responses ([AuthorizationCapturedExternalResponses], none_type): [optional] # noqa: E501 failure_code (str, none_type): The code of the failure so the decline can be handled programmatically. For more info on how to handle the failure, see [Failure Codes](/docs/guides/developers/errors/#failure-codes).. [optional] # noqa: E501 failure_message (str, none_type): A human-readable description of why the transaction was declined. This will also include a suggestion on how to complete the payment.. [optional] # noqa: E501 + idempotency_id (str, none_type): A randomly generated value that'll be associated with the request.. [optional] # noqa: E501 is_void (bool): Details if the `Authorization` is void.. [optional] # noqa: E501 merchant_identity (str, none_type): The ID of the resource.. [optional] # noqa: E501 - merchant (str, none_type): The ID of the resource.. [optional] # noqa: E501 messages ([str]): Message field that provides additional details. This field is typically **null**.. [optional] # noqa: E501 - raw ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Raw response from the processor. [optional] # noqa: E501 + raw ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Raw response from the processor.. [optional] # noqa: E501 source (str): ID of the `Payment Instrument` where funds get debited.. [optional] # noqa: E501 state (str): The state of the `Transfer`.. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 trace_id (str): Trace ID of the `Authorization`. The processor sends back the `trace_id` so you can track the authorization end-to-end.. [optional] # noqa: E501 transfer (str, none_type): The ID of the `transfer` resource that gets created when the `Authorization` moves to **SUCCEEDED**.. [optional] # noqa: E501 void_state (str): Details if the `Authorization` has been voided.. [optional] # noqa: E501 - sub_type (SubTypeTransfer): [optional] # noqa: E501 links (AuthorizationLinks): [optional] # noqa: E501 """ diff --git a/finix/model/authorization_external_responses.py b/finix/model/authorization_captured_external_responses.py similarity index 98% rename from finix/model/authorization_external_responses.py rename to finix/model/authorization_captured_external_responses.py index 670d923..38b15c4 100644 --- a/finix/model/authorization_external_responses.py +++ b/finix/model/authorization_captured_external_responses.py @@ -28,7 +28,7 @@ -class AuthorizationExternalResponses(ModelNormal): +class AuthorizationCapturedExternalResponses(ModelNormal): """ Attributes: @@ -98,7 +98,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AuthorizationExternalResponses - a model defined in OpenAPI + """AuthorizationCapturedExternalResponses - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -181,7 +181,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AuthorizationExternalResponses - a model defined in OpenAPI + """AuthorizationCapturedExternalResponses - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/finix/model/authorizations_list_embedded.py b/finix/model/authorizations_list_embedded.py index a99aba3..875417c 100644 --- a/finix/model/authorizations_list_embedded.py +++ b/finix/model/authorizations_list_embedded.py @@ -138,7 +138,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,) - authorizations ([Authorization]): [optional] # noqa: E501 + authorizations ([Authorization]): `Authorization` objects.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -220,7 +220,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,) - authorizations ([Authorization]): [optional] # noqa: E501 + authorizations ([Authorization]): `Authorization` objects.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/finix/model/balance_transfer_list_embedded.py b/finix/model/balance_transfer_list_embedded.py index c69512b..5b7420e 100644 --- a/finix/model/balance_transfer_list_embedded.py +++ b/finix/model/balance_transfer_list_embedded.py @@ -135,7 +135,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,) - balance_transfers ([BalanceTransferList]): [optional] # noqa: E501 + balance_transfers ([BalanceTransferList]): `balance_transfer` objects.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -217,7 +217,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,) - balance_transfers ([BalanceTransferList]): [optional] # noqa: E501 + balance_transfers ([BalanceTransferList]): `balance_transfer` objects.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/finix/model/card_present_details.py b/finix/model/card_present_details.py index ae3ebe8..913c944 100644 --- a/finix/model/card_present_details.py +++ b/finix/model/card_present_details.py @@ -82,12 +82,12 @@ def openapi_types(): """ lazy_import() return { - 'approval_code': (str,), # noqa: E501 - 'brand': (str,), # noqa: E501 + 'approval_code': (str, none_type,), # noqa: E501 + 'brand': (str, none_type,), # noqa: E501 'emv_data': (CardPresentDetailsEmvData,), # noqa: E501 - 'entry_mode': (str,), # noqa: E501 - 'masked_account_number': (str,), # noqa: E501 - 'name': (str,), # noqa: E501 + 'entry_mode': (str, none_type,), # noqa: E501 + 'masked_account_number': (str, none_type,), # noqa: E501 + 'name': (str, none_type,), # noqa: E501 'payment_type': (str,), # noqa: E501 } @@ -147,12 +147,12 @@ 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,) - approval_code (str): Unique ID used to identify the approval of the `Transfer`.. [optional] # noqa: E501 - brand (str): The brand of the card saved in the `Payment Instrument`.. [optional] # noqa: E501 + approval_code (str, none_type): Unique ID used to identify the approval of the `Transfer`.. [optional] # noqa: E501 + brand (str, none_type): The brand of the card saved in the `Payment Instrument`.. [optional] # noqa: E501 emv_data (CardPresentDetailsEmvData): [optional] # noqa: E501 - entry_mode (str): Details how the card was entered to process the transaction.. [optional] # noqa: E501 - masked_account_number (str): Last four digits of the bank account number.. [optional] # noqa: E501 - name (str): The name of the bank account or card owner.. [optional] # noqa: E501 + entry_mode (str, none_type): Details how the card was entered to process the transaction.. [optional] # noqa: E501 + masked_account_number (str, none_type): Last four digits of the bank account number.. [optional] # noqa: E501 + name (str, none_type): The name of the bank account or card owner.. [optional] # noqa: E501 payment_type (str): The type of `Payment Instrument` used in the transaction (or the original payment).. [optional] # noqa: E501 """ @@ -235,12 +235,12 @@ 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,) - approval_code (str): Unique ID used to identify the approval of the `Transfer`.. [optional] # noqa: E501 - brand (str): The brand of the card saved in the `Payment Instrument`.. [optional] # noqa: E501 + approval_code (str, none_type): Unique ID used to identify the approval of the `Transfer`.. [optional] # noqa: E501 + brand (str, none_type): The brand of the card saved in the `Payment Instrument`.. [optional] # noqa: E501 emv_data (CardPresentDetailsEmvData): [optional] # noqa: E501 - entry_mode (str): Details how the card was entered to process the transaction.. [optional] # noqa: E501 - masked_account_number (str): Last four digits of the bank account number.. [optional] # noqa: E501 - name (str): The name of the bank account or card owner.. [optional] # noqa: E501 + entry_mode (str, none_type): Details how the card was entered to process the transaction.. [optional] # noqa: E501 + masked_account_number (str, none_type): Last four digits of the bank account number.. [optional] # noqa: E501 + name (str, none_type): The name of the bank account or card owner.. [optional] # noqa: E501 payment_type (str): The type of `Payment Instrument` used in the transaction (or the original payment).. [optional] # noqa: E501 """ diff --git a/finix/model/card_present_details_emv_data.py b/finix/model/card_present_details_emv_data.py index f6c7975..f87892a 100644 --- a/finix/model/card_present_details_emv_data.py +++ b/finix/model/card_present_details_emv_data.py @@ -82,7 +82,6 @@ def openapi_types(): """ lazy_import() return { - 'tags': (Tags,), # noqa: E501 'application_identifier': (str,), # noqa: E501 'application_label': (str,), # noqa: E501 'application_preferred_name': (str, none_type,), # noqa: E501 @@ -90,6 +89,7 @@ def openapi_types(): 'cryptogram': (str,), # noqa: E501 'issuer_code_table_index': (str, none_type,), # noqa: E501 'pin_verified': (bool,), # noqa: E501 + 'tags': (Tags,), # noqa: E501 } @cached_property @@ -98,7 +98,6 @@ def discriminator(): attribute_map = { - 'tags': 'tags', # noqa: E501 'application_identifier': 'application_identifier', # noqa: E501 'application_label': 'application_label', # noqa: E501 'application_preferred_name': 'application_preferred_name', # noqa: E501 @@ -106,6 +105,7 @@ def discriminator(): 'cryptogram': 'cryptogram', # noqa: E501 'issuer_code_table_index': 'issuer_code_table_index', # noqa: E501 'pin_verified': 'pin_verified', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -149,7 +149,6 @@ 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,) - tags (Tags): [optional] # noqa: E501 application_identifier (str): ID of the EMV application processing the transaction.. [optional] # noqa: E501 application_label (str): EMV card label.. [optional] # noqa: E501 application_preferred_name (str, none_type): Alternate EMV application name (if provided).. [optional] # noqa: E501 @@ -157,6 +156,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 cryptogram (str): Encrypted card infromation used to process the transaction.. [optional] # noqa: E501 issuer_code_table_index (str, none_type): The alphabet code table (according to ISO 8859) used by the EMV application (if provided).. [optional] # noqa: E501 pin_verified (bool): Details if the cardholder's PIN number was verified.. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -238,7 +238,6 @@ 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,) - tags (Tags): [optional] # noqa: E501 application_identifier (str): ID of the EMV application processing the transaction.. [optional] # noqa: E501 application_label (str): EMV card label.. [optional] # noqa: E501 application_preferred_name (str, none_type): Alternate EMV application name (if provided).. [optional] # noqa: E501 @@ -246,6 +245,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 cryptogram (str): Encrypted card infromation used to process the transaction.. [optional] # noqa: E501 issuer_code_table_index (str, none_type): The alphabet code table (according to ISO 8859) used by the EMV application (if provided).. [optional] # noqa: E501 pin_verified (bool): Details if the cardholder's PIN number was verified.. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/finix/model/create_application_request.py b/finix/model/create_application_request.py index 97e7b62..8f5b95d 100644 --- a/finix/model/create_application_request.py +++ b/finix/model/create_application_request.py @@ -89,11 +89,11 @@ def openapi_types(): """ lazy_import() return { - 'entity': (IdentityEntityForm,), # noqa: E501 'user': (str,), # noqa: E501 - 'tags': (Tags,), # noqa: E501 + 'entity': (IdentityEntityForm,), # noqa: E501 'max_transaction_amount': (int, none_type,), # noqa: E501 'name': (str, none_type,), # noqa: E501 + 'tags': (Tags,), # noqa: E501 } @cached_property @@ -102,11 +102,11 @@ def discriminator(): attribute_map = { - 'entity': 'entity', # noqa: E501 'user': 'user', # noqa: E501 - 'tags': 'tags', # noqa: E501 + 'entity': 'entity', # noqa: E501 'max_transaction_amount': 'max_transaction_amount', # noqa: E501 'name': 'name', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -116,11 +116,10 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, entity, user, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, user, *args, **kwargs): # noqa: E501 """CreateApplicationRequest - a model defined in OpenAPI Args: - entity (IdentityEntityForm): user (str): ID of the `User` resource. Keyword Args: @@ -154,9 +153,10 @@ def _from_openapi_data(cls, entity, user, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - tags (Tags): [optional] # noqa: E501 + entity (IdentityEntityForm): [optional] # noqa: E501 max_transaction_amount (int, none_type): Maximum amount that can be processed for a single transaction in cents (max 12 characters).. [optional] # noqa: E501 - name (str, none_type): Merchant's full legal business name (If INDIVIDUAL_SOLE_PROPRIETORSHIP, please input first name, Full legal last name and middle initial; max 120 characters).. [optional] # noqa: E501 + name (str, none_type): Merchant's full legal business name (If **INDIVIDUAL_SOLE_PROPRIETORSHIP**, enter first name, Full legal last name and middle initial; max 120 characters).. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -184,7 +184,6 @@ def _from_openapi_data(cls, entity, user, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.entity = entity self.user = user for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ @@ -206,11 +205,10 @@ def _from_openapi_data(cls, entity, user, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, entity, user, *args, **kwargs): # noqa: E501 + def __init__(self, user, *args, **kwargs): # noqa: E501 """CreateApplicationRequest - a model defined in OpenAPI Args: - entity (IdentityEntityForm): user (str): ID of the `User` resource. Keyword Args: @@ -244,9 +242,10 @@ def __init__(self, entity, user, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - tags (Tags): [optional] # noqa: E501 + entity (IdentityEntityForm): [optional] # noqa: E501 max_transaction_amount (int, none_type): Maximum amount that can be processed for a single transaction in cents (max 12 characters).. [optional] # noqa: E501 - name (str, none_type): Merchant's full legal business name (If INDIVIDUAL_SOLE_PROPRIETORSHIP, please input first name, Full legal last name and middle initial; max 120 characters).. [optional] # noqa: E501 + name (str, none_type): Merchant's full legal business name (If **INDIVIDUAL_SOLE_PROPRIETORSHIP**, enter first name, Full legal last name and middle initial; max 120 characters).. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -272,7 +271,6 @@ def __init__(self, entity, user, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.entity = entity self.user = user for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ diff --git a/finix/model/create_authorization_request.py b/finix/model/create_authorization_request.py index 07c30b4..c5d842a 100644 --- a/finix/model/create_authorization_request.py +++ b/finix/model/create_authorization_request.py @@ -28,12 +28,14 @@ def lazy_import(): + from finix.model.additional_buyer_charges import AdditionalBuyerCharges from finix.model.additional_purchase_data import AdditionalPurchaseData from finix.model.create_authorization_request3d_secure_authentication import CreateAuthorizationRequest3dSecureAuthentication from finix.model.currency import Currency from finix.model.operation_key import OperationKey from finix.model.sub_type_transfer import SubTypeTransfer from finix.model.tags import Tags + globals()['AdditionalBuyerCharges'] = AdditionalBuyerCharges globals()['AdditionalPurchaseData'] = AdditionalPurchaseData globals()['CreateAuthorizationRequest3dSecureAuthentication'] = CreateAuthorizationRequest3dSecureAuthentication globals()['Currency'] = Currency @@ -114,17 +116,17 @@ def openapi_types(): return { 'amount': (int,), # noqa: E501 'currency': (Currency,), # noqa: E501 - 'tags': (Tags,), # noqa: E501 + 'additional_buyer_charges': (AdditionalBuyerCharges,), # noqa: E501 + 'additional_purchase_data': (AdditionalPurchaseData,), # noqa: E501 + 'device': (str, none_type,), # noqa: E501 + 'fraud_session_id': (str,), # noqa: E501 'idempotency_id': (str, none_type,), # noqa: E501 'merchant': (str, none_type,), # noqa: E501 - 'merchant_identity': (str, none_type,), # noqa: E501 + 'operation_key': (OperationKey,), # noqa: E501 'processor': (str,), # noqa: E501 'source': (str, none_type,), # noqa: E501 - 'additional_purchase_data': (AdditionalPurchaseData,), # noqa: E501 - 'fraud_session_id': (str,), # noqa: E501 'sub_type': (SubTypeTransfer,), # noqa: E501 - 'operation_key': (OperationKey,), # noqa: E501 - 'device': (str, none_type,), # noqa: E501 + 'tags': (Tags,), # noqa: E501 '_3d_secure_authentication': (CreateAuthorizationRequest3dSecureAuthentication,), # noqa: E501 } @@ -136,17 +138,17 @@ def discriminator(): attribute_map = { 'amount': 'amount', # noqa: E501 'currency': 'currency', # noqa: E501 - 'tags': 'tags', # noqa: E501 + 'additional_buyer_charges': 'additional_buyer_charges', # noqa: E501 + 'additional_purchase_data': 'additional_purchase_data', # noqa: E501 + 'device': 'device', # noqa: E501 + 'fraud_session_id': 'fraud_session_id', # noqa: E501 'idempotency_id': 'idempotency_id', # noqa: E501 'merchant': 'merchant', # noqa: E501 - 'merchant_identity': 'merchant_identity', # noqa: E501 + 'operation_key': 'operation_key', # noqa: E501 'processor': 'processor', # noqa: E501 'source': 'source', # noqa: E501 - 'additional_purchase_data': 'additional_purchase_data', # noqa: E501 - 'fraud_session_id': 'fraud_session_id', # noqa: E501 'sub_type': 'sub_type', # noqa: E501 - 'operation_key': 'operation_key', # noqa: E501 - 'device': 'device', # noqa: E501 + 'tags': 'tags', # noqa: E501 '_3d_secure_authentication': '3d_secure_authentication', # noqa: E501 } @@ -195,17 +197,17 @@ def _from_openapi_data(cls, amount, currency, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - tags (Tags): [optional] # noqa: E501 + additional_buyer_charges (AdditionalBuyerCharges): [optional] # noqa: E501 + additional_purchase_data (AdditionalPurchaseData): [optional] # noqa: E501 + device (str, none_type): The ID of the resource.. [optional] # noqa: E501 + fraud_session_id (str): The `fraud_session_session` ID you want to review for fraud. For more info, see [Fraud Detection](/docs/guides/payments/fraud-detection/).. [optional] # noqa: E501 idempotency_id (str, none_type): A randomly generated value that'll be associated with the request.. [optional] # noqa: E501 merchant (str, none_type): The ID of the resource.. [optional] # noqa: E501 - merchant_identity (str, none_type): The ID of the resource.. [optional] # noqa: E501 + operation_key (OperationKey): [optional] # noqa: E501 processor (str): Name of the transaction processor.. [optional] # noqa: E501 source (str, none_type): The ID of the resource.. [optional] # noqa: E501 - additional_purchase_data (AdditionalPurchaseData): [optional] # noqa: E501 - fraud_session_id (str): The `fraud_session_session` ID you want to review for fraud. For more info, see [Fraud Detection](/docs/guides/payments/fraud-detection/).. [optional] # noqa: E501 sub_type (SubTypeTransfer): [optional] # noqa: E501 - operation_key (OperationKey): [optional] # noqa: E501 - device (str, none_type): The ID of the resource.. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 _3d_secure_authentication (CreateAuthorizationRequest3dSecureAuthentication): [optional] # noqa: E501 """ @@ -294,17 +296,17 @@ def __init__(self, amount, currency, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - tags (Tags): [optional] # noqa: E501 + additional_buyer_charges (AdditionalBuyerCharges): [optional] # noqa: E501 + additional_purchase_data (AdditionalPurchaseData): [optional] # noqa: E501 + device (str, none_type): The ID of the resource.. [optional] # noqa: E501 + fraud_session_id (str): The `fraud_session_session` ID you want to review for fraud. For more info, see [Fraud Detection](/docs/guides/payments/fraud-detection/).. [optional] # noqa: E501 idempotency_id (str, none_type): A randomly generated value that'll be associated with the request.. [optional] # noqa: E501 merchant (str, none_type): The ID of the resource.. [optional] # noqa: E501 - merchant_identity (str, none_type): The ID of the resource.. [optional] # noqa: E501 + operation_key (OperationKey): [optional] # noqa: E501 processor (str): Name of the transaction processor.. [optional] # noqa: E501 source (str, none_type): The ID of the resource.. [optional] # noqa: E501 - additional_purchase_data (AdditionalPurchaseData): [optional] # noqa: E501 - fraud_session_id (str): The `fraud_session_session` ID you want to review for fraud. For more info, see [Fraud Detection](/docs/guides/payments/fraud-detection/).. [optional] # noqa: E501 sub_type (SubTypeTransfer): [optional] # noqa: E501 - operation_key (OperationKey): [optional] # noqa: E501 - device (str, none_type): The ID of the resource.. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 _3d_secure_authentication (CreateAuthorizationRequest3dSecureAuthentication): [optional] # noqa: E501 """ diff --git a/finix/model/create_authorization_request3d_secure_authentication.py b/finix/model/create_authorization_request3d_secure_authentication.py index bc6a11d..112ccc5 100644 --- a/finix/model/create_authorization_request3d_secure_authentication.py +++ b/finix/model/create_authorization_request3d_secure_authentication.py @@ -82,8 +82,8 @@ def openapi_types(): """ return { 'cardholder_authentication': (str,), # noqa: E501 - 'electronic_commerce_indicator': (str,), # noqa: E501 'cardholder_ip_address': (str,), # noqa: E501 + 'electronic_commerce_indicator': (str,), # noqa: E501 'transaction_id': (str,), # noqa: E501 } @@ -94,8 +94,8 @@ def discriminator(): attribute_map = { 'cardholder_authentication': 'cardholder_authentication', # noqa: E501 - 'electronic_commerce_indicator': 'electronic_commerce_indicator', # noqa: E501 'cardholder_ip_address': 'cardholder_ip_address', # noqa: E501 + 'electronic_commerce_indicator': 'electronic_commerce_indicator', # noqa: E501 'transaction_id': 'transaction_id', # noqa: E501 } @@ -106,13 +106,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, cardholder_authentication, electronic_commerce_indicator, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """CreateAuthorizationRequest3dSecureAuthentication - a model defined in OpenAPI - Args: - cardholder_authentication (str): Provides evidence that the cardholder authentication occurred or that the merchant attempted authentication. This is unique for each authentication transaction. - electronic_commerce_indicator (str): AUTHENTICATED: Approved by 3D Secure Vendor; ATTEMPTED: Issuer or cardholder does not support 3D Secure - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -144,7 +140,9 @@ def _from_openapi_data(cls, cardholder_authentication, electronic_commerce_indic Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + cardholder_authentication (str): Provides evidence that the cardholder authentication occurred or that the merchant attempted authentication. This is unique for each authentication transaction.. [optional] # noqa: E501 cardholder_ip_address (str): Only required for American Express cards. Format is nnn.nnn.nnn.nnn. [optional] # noqa: E501 + electronic_commerce_indicator (str): AUTHENTICATED: Approved by 3D Secure Vendor; ATTEMPTED: Issuer or cardholder does not support 3D Secure. [optional] # noqa: E501 transaction_id (str): Only valid for Visa transactions. [optional] # noqa: E501 """ @@ -173,8 +171,6 @@ def _from_openapi_data(cls, cardholder_authentication, electronic_commerce_indic self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.cardholder_authentication = cardholder_authentication - self.electronic_commerce_indicator = electronic_commerce_indicator for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -195,13 +191,9 @@ def _from_openapi_data(cls, cardholder_authentication, electronic_commerce_indic ]) @convert_js_args_to_python_args - def __init__(self, cardholder_authentication, electronic_commerce_indicator, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """CreateAuthorizationRequest3dSecureAuthentication - a model defined in OpenAPI - Args: - cardholder_authentication (str): Provides evidence that the cardholder authentication occurred or that the merchant attempted authentication. This is unique for each authentication transaction. - electronic_commerce_indicator (str): AUTHENTICATED: Approved by 3D Secure Vendor; ATTEMPTED: Issuer or cardholder does not support 3D Secure - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -233,7 +225,9 @@ def __init__(self, cardholder_authentication, electronic_commerce_indicator, *ar Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + cardholder_authentication (str): Provides evidence that the cardholder authentication occurred or that the merchant attempted authentication. This is unique for each authentication transaction.. [optional] # noqa: E501 cardholder_ip_address (str): Only required for American Express cards. Format is nnn.nnn.nnn.nnn. [optional] # noqa: E501 + electronic_commerce_indicator (str): AUTHENTICATED: Approved by 3D Secure Vendor; ATTEMPTED: Issuer or cardholder does not support 3D Secure. [optional] # noqa: E501 transaction_id (str): Only valid for Visa transactions. [optional] # noqa: E501 """ @@ -260,8 +254,6 @@ def __init__(self, cardholder_authentication, electronic_commerce_indicator, *ar self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.cardholder_authentication = cardholder_authentication - self.electronic_commerce_indicator = electronic_commerce_indicator 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/finix/model/create_balance_transfer_request.py b/finix/model/create_balance_transfer_request.py index 22015c9..e2dc260 100644 --- a/finix/model/create_balance_transfer_request.py +++ b/finix/model/create_balance_transfer_request.py @@ -93,12 +93,12 @@ def openapi_types(): """ lazy_import() return { - 'destination': (str, none_type,), # noqa: E501 - 'currency': (Currency,), # noqa: E501 'amount': (int,), # noqa: E501 - 'source': (str,), # noqa: E501 - 'processor_type': (str,), # noqa: E501 + 'currency': (Currency,), # noqa: E501 'description': (str,), # noqa: E501 + 'destination': (str, none_type,), # noqa: E501 + 'processor_type': (str,), # noqa: E501 + 'source': (str,), # noqa: E501 'tags': (Tags,), # noqa: E501 } @@ -108,12 +108,12 @@ def discriminator(): attribute_map = { - 'destination': 'destination', # noqa: E501 - 'currency': 'currency', # noqa: E501 'amount': 'amount', # noqa: E501 - 'source': 'source', # noqa: E501 - 'processor_type': 'processor_type', # noqa: E501 + 'currency': 'currency', # noqa: E501 'description': 'description', # noqa: E501 + 'destination': 'destination', # noqa: E501 + 'processor_type': 'processor_type', # noqa: E501 + 'source': 'source', # noqa: E501 'tags': 'tags', # noqa: E501 } @@ -124,15 +124,16 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, destination, currency, amount, source, processor_type, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, amount, currency, description, destination, processor_type, source, *args, **kwargs): # noqa: E501 """CreateBalanceTransferRequest - a model defined in OpenAPI Args: - destination (str, none_type): Choose the value that best applies to the account where funds will get credited. - currency (Currency): amount (int): The total amount that will be debited in cents (e.g. 100 cents to debit $1.00). - source (str): Choose the value that best applies to the account where funds will get debited. + currency (Currency): + description (str): Additional information about the `balance_transfer` (e.g. **Transferring funds for Holidays**). + destination (str, none_type): Choose the value that best applies to the account where funds will get credited. processor_type (str): Pass **LITLE_V1**; `balance_transfers` are only avalible for platforms with **LITLE_V1** credentials. + source (str): Choose the value that best applies to the account where funds will get debited. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -165,7 +166,6 @@ def _from_openapi_data(cls, destination, currency, amount, source, processor_typ Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - description (str): Additional information about the `balance_transfer` (e.g. **Transferring funds for Holidays**).. [optional] # noqa: E501 tags (Tags): [optional] # noqa: E501 """ @@ -194,11 +194,12 @@ def _from_openapi_data(cls, destination, currency, amount, source, processor_typ self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.destination = destination - self.currency = currency self.amount = amount - self.source = source + self.currency = currency + self.description = description + self.destination = destination self.processor_type = processor_type + self.source = source for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -219,15 +220,16 @@ def _from_openapi_data(cls, destination, currency, amount, source, processor_typ ]) @convert_js_args_to_python_args - def __init__(self, destination, currency, amount, source, processor_type, *args, **kwargs): # noqa: E501 + def __init__(self, amount, currency, description, destination, processor_type, source, *args, **kwargs): # noqa: E501 """CreateBalanceTransferRequest - a model defined in OpenAPI Args: - destination (str, none_type): Choose the value that best applies to the account where funds will get credited. - currency (Currency): amount (int): The total amount that will be debited in cents (e.g. 100 cents to debit $1.00). - source (str): Choose the value that best applies to the account where funds will get debited. + currency (Currency): + description (str): Additional information about the `balance_transfer` (e.g. **Transferring funds for Holidays**). + destination (str, none_type): Choose the value that best applies to the account where funds will get credited. processor_type (str): Pass **LITLE_V1**; `balance_transfers` are only avalible for platforms with **LITLE_V1** credentials. + source (str): Choose the value that best applies to the account where funds will get debited. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -260,7 +262,6 @@ def __init__(self, destination, currency, amount, source, processor_type, *args, Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - description (str): Additional information about the `balance_transfer` (e.g. **Transferring funds for Holidays**).. [optional] # noqa: E501 tags (Tags): [optional] # noqa: E501 """ @@ -287,11 +288,12 @@ def __init__(self, destination, currency, amount, source, processor_type, *args, self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.destination = destination - self.currency = currency self.amount = amount - self.source = source + self.currency = currency + self.description = description + self.destination = destination self.processor_type = processor_type + self.source = source 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/finix/model/create_device.py b/finix/model/create_device.py index 69361e2..ff18c7c 100644 --- a/finix/model/create_device.py +++ b/finix/model/create_device.py @@ -66,6 +66,7 @@ class CreateDevice(ModelNormal): 'ISC480': "ISC480", 'ISMP4': "ISMP4", 'ANDROID': "ANDROID", + 'LANE_3000': "LANE_3000", }, } @@ -95,12 +96,12 @@ def openapi_types(): """ lazy_import() return { - 'tags': (Tags,), # noqa: E501 - 'description': (str,), # noqa: E501 - 'configuration': (ConfigurationDetails,), # noqa: E501 - 'merchant_id': (str,), # noqa: E501 'model': (str,), # noqa: E501 'name': (str,), # noqa: E501 + 'configuration': (ConfigurationDetails,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'merchant_id': (str,), # noqa: E501 + 'tags': (Tags,), # noqa: E501 } @cached_property @@ -109,12 +110,12 @@ def discriminator(): attribute_map = { - 'tags': 'tags', # noqa: E501 - 'description': 'description', # noqa: E501 - 'configuration': 'configuration', # noqa: E501 - 'merchant_id': 'merchant_id', # noqa: E501 'model': 'model', # noqa: E501 'name': 'name', # noqa: E501 + 'configuration': 'configuration', # noqa: E501 + 'description': 'description', # noqa: E501 + 'merchant_id': 'merchant_id', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -124,9 +125,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, model, name, *args, **kwargs): # noqa: E501 """CreateDevice - a model defined in OpenAPI + Args: + model (str): Include one of the following values to let Finix know the type of device that's being used. + name (str): Name of the `Device`. + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -158,12 +163,10 @@ 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,) - tags (Tags): [optional] # noqa: E501 - description (str): Additional information about device (e.g. self serving terminal).. [optional] # noqa: E501 configuration (ConfigurationDetails): [optional] # noqa: E501 + description (str): Additional information about device (e.g. self serving terminal).. [optional] # noqa: E501 merchant_id (str): ID of the `Merchant` the `Device` is associated with.. [optional] # noqa: E501 - model (str): Include one of the following values to let Finix know the type of device that's being used.. [optional] # noqa: E501 - name (str): Name of the `Device`.. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -191,6 +194,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.model = model + self.name = name for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -211,9 +216,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, model, name, *args, **kwargs): # noqa: E501 """CreateDevice - a model defined in OpenAPI + Args: + model (str): Include one of the following values to let Finix know the type of device that's being used. + name (str): Name of the `Device`. + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -245,12 +254,10 @@ 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,) - tags (Tags): [optional] # noqa: E501 - description (str): Additional information about device (e.g. self serving terminal).. [optional] # noqa: E501 configuration (ConfigurationDetails): [optional] # noqa: E501 + description (str): Additional information about device (e.g. self serving terminal).. [optional] # noqa: E501 merchant_id (str): ID of the `Merchant` the `Device` is associated with.. [optional] # noqa: E501 - model (str): Include one of the following values to let Finix know the type of device that's being used.. [optional] # noqa: E501 - name (str): Name of the `Device`.. [optional] # noqa: E501 + tags (Tags): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -276,6 +283,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.model = model + self.name = name 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/finix/model/create_external_link_request.py b/finix/model/create_external_link_request.py index 8a791f9..5c32579 100644 --- a/finix/model/create_external_link_request.py +++ b/finix/model/create_external_link_request.py @@ -87,9 +87,9 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 'duration': (int,), # noqa: E501 'tags': (Tags,), # noqa: E501 + 'type': (str,), # noqa: E501 } @cached_property @@ -98,9 +98,9 @@ def discriminator(): attribute_map = { - 'type': 'type', # noqa: E501 'duration': 'duration', # noqa: E501 'tags': 'tags', # noqa: E501 + 'type': 'type', # noqa: E501 } read_only_vars = { @@ -144,9 +144,9 @@ 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,) - type (str):