transferzero-sdk 1.30.2 → 1.31.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43bef3f1ee393f103fc535a4a443ef1a67d8b4e1d2c2891fc61ff7db9902762d
4
- data.tar.gz: 7cd0f8af6a2463fa492b36e9a038a7ba2aa465c767e761155f6555f71114e5d2
3
+ metadata.gz: 9c3ba87248b22e8808d7e8549ffecdc667cd02ddbe26c9a79894a8b135a758ff
4
+ data.tar.gz: c0c86305fbe8de1822d311e72526391192d0e0d63647ee075db29115d104f12e
5
5
  SHA512:
6
- metadata.gz: 77234ac8883073a1b6c7d8baf278303c88a94b22efe6acab9b208fbdb98313784028e16aeca942ce601dbc2cbfc4ccec1e2367068b4f28eebab6e7114bf12f1c
7
- data.tar.gz: 99ac5dfb752c5f8be10f3ed44bd9d2b226dbf55c083882c80e184868b417ee8076557abefc7a73f54b2d2accc8f96bbf15f68cbfaf5ccff51d16f358129b9d3f
6
+ metadata.gz: 3b517a948f572a7a171e129d443cc22eaa71a51d1013282ac0efa8255d1db884948e28f83c5bfaec4b673b232cf509686d2f8c8ca27239748f37c98b7228e16f
7
+ data.tar.gz: 79e32aa22eb3ab5eae34f23adf73bea4138725a72a77255279682828d65873a4d5a740c51d11b23c0be0a5335b6056b85080495c27d797b6c9bb23af4fef258c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- transferzero-sdk (1.30.2)
4
+ transferzero-sdk (1.31.0)
5
5
  activesupport (>= 4, < 7)
6
6
  faraday (~> 1.0, >= 1.0.1)
7
7
  json (>= 1.4)
data/README.md CHANGED
@@ -7,7 +7,7 @@ Reference documentation for the TransferZero API V1
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 1.0
10
- - Package version: 1.30.2
10
+ - Package version: 1.31.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  For more information, please visit:
@@ -31,15 +31,15 @@ gem build transferzero-sdk.gemspec
31
31
  Then either install the gem locally:
32
32
 
33
33
  ```shell
34
- gem install ./transferzero-sdk-1.30.2.gem
34
+ gem install ./transferzero-sdk-1.31.0.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.30.2.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.31.0.gem` to install the development dependencies)
37
37
 
38
38
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
39
39
 
40
40
  Finally add this to the Gemfile:
41
41
 
42
- gem 'transferzero-sdk', '~> 1.30.2'
42
+ gem 'transferzero-sdk', '~> 1.31.0'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -106,8 +106,6 @@ Class | Method | HTTP request | Description
106
106
  ------------ | ------------- | ------------- | -------------
107
107
  *TransferZero::APILogsApi* | [**get_api_log**](docs/APILogsApi.md#get_api_log) | **GET** /api_logs/{API Log ID} | Fetch an individual API log
108
108
  *TransferZero::APILogsApi* | [**get_api_logs**](docs/APILogsApi.md#get_api_logs) | **GET** /api_logs | Fetch a list of API logs
109
- *TransferZero::AccountDebitsApi* | [**get_accounts_debit**](docs/AccountDebitsApi.md#get_accounts_debit) | **GET** /accounts/debits/{Account Debit ID} | Fetching an account debit
110
- *TransferZero::AccountDebitsApi* | [**get_accounts_debits**](docs/AccountDebitsApi.md#get_accounts_debits) | **GET** /accounts/debits | Listing Accounts debits
111
109
  *TransferZero::AccountDebitsApi* | [**post_accounts_debits**](docs/AccountDebitsApi.md#post_accounts_debits) | **POST** /accounts/debits | Creating an account debit
112
110
  *TransferZero::AccountValidationApi* | [**post_account_validations**](docs/AccountValidationApi.md#post_account_validations) | **POST** /account_validations | Validates the existence of a bank account or a mobile phone number
113
111
  *TransferZero::AccountsApi* | [**get_account**](docs/AccountsApi.md#get_account) | **GET** /accounts/{Currency} | Fetches account balance for specified currrency
@@ -178,7 +176,6 @@ Class | Method | HTTP request | Description
178
176
  - [TransferZero::DebitListResponse](docs/DebitListResponse.md)
179
177
  - [TransferZero::DebitRequest](docs/DebitRequest.md)
180
178
  - [TransferZero::DebitRequestWrapper](docs/DebitRequestWrapper.md)
181
- - [TransferZero::DebitResponse](docs/DebitResponse.md)
182
179
  - [TransferZero::Document](docs/Document.md)
183
180
  - [TransferZero::DocumentListResponse](docs/DocumentListResponse.md)
184
181
  - [TransferZero::DocumentRequest](docs/DocumentRequest.md)
@@ -4,138 +4,9 @@ All URIs are relative to *https://api-sandbox.transferzero.com/v1*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**get_accounts_debit**](AccountDebitsApi.md#get_accounts_debit) | **GET** /accounts/debits/{Account Debit ID} | Fetching an account debit
8
- [**get_accounts_debits**](AccountDebitsApi.md#get_accounts_debits) | **GET** /accounts/debits | Listing Accounts debits
9
7
  [**post_accounts_debits**](AccountDebitsApi.md#post_accounts_debits) | **POST** /accounts/debits | Creating an account debit
10
8
 
11
9
 
12
- # **get_accounts_debit**
13
- > DebitResponse get_accounts_debit(account_debit_id)
14
-
15
- Fetching an account debit
16
-
17
- Returns a single account debit by the account debit ID
18
-
19
- ### Example
20
- ```ruby
21
- # load the gem
22
- require 'transferzero-sdk'
23
-
24
- api_instance = TransferZero::AccountDebitsApi.new
25
-
26
-
27
- begin
28
- #Fetching an account debit
29
- result = api_instance.get_accounts_debit(account_debit_id)
30
- p result
31
- rescue TransferZero::ApiError => e
32
- if e.validation_error
33
- puts "WARN: Validation error occured when calling the endpoint"
34
- result = e.response_object("DebitResponse")
35
- p result
36
- else
37
- puts "Exception when calling AccountDebitsApi->get_accounts_debit: #{e}"
38
- end
39
- end
40
- ```
41
-
42
- ### Parameters
43
-
44
- Name | Type | Description | Notes
45
- ------------- | ------------- | ------------- | -------------
46
- **account_debit_id** | [**String**](.md)| ID of the account debit to get. Example: &#x60;/v1/accounts/debits/9170c890-1a45-46bd-9b79-3deeb8b4ff3d&#x60; |
47
-
48
- ### Return type
49
-
50
- [**DebitResponse**](DebitResponse.md)
51
-
52
- ### Authorization
53
-
54
- You can set the API Key and Secret on the TransferZero object when setting it up:
55
-
56
- ```ruby
57
-
58
- TransferZero.configure do |config|
59
- config.api_key = '<key'
60
- config.api_secret = '<secret>'
61
- config.host = 'https://api-sandbox.transferzero.com/v1'
62
- end
63
-
64
- ```
65
-
66
- ### HTTP request headers
67
-
68
- - **Content-Type**: Not defined
69
- - **Accept**: application/json
70
-
71
-
72
-
73
- # **get_accounts_debits**
74
- > DebitListResponse get_accounts_debits(opts)
75
-
76
- Listing Accounts debits
77
-
78
- Get a list of accounts debits
79
-
80
- ### Example
81
- ```ruby
82
- # load the gem
83
- require 'transferzero-sdk'
84
-
85
- api_instance = TransferZero::AccountDebitsApi.new
86
-
87
- opts = {
88
- page: 1 # Integer | The page number to request (defaults to 1)
89
- per: 10 # Integer | The number of results to load per page (defaults to 10)
90
- }
91
-
92
- begin
93
- #Listing Accounts debits
94
- result = api_instance.get_accounts_debits(opts)
95
- p result
96
- rescue TransferZero::ApiError => e
97
- if e.validation_error
98
- puts "WARN: Validation error occured when calling the endpoint"
99
- result = e.response_object("DebitListResponse")
100
- p result
101
- else
102
- puts "Exception when calling AccountDebitsApi->get_accounts_debits: #{e}"
103
- end
104
- end
105
- ```
106
-
107
- ### Parameters
108
-
109
- Name | Type | Description | Notes
110
- ------------- | ------------- | ------------- | -------------
111
- **page** | **Integer**| The page number to request (defaults to 1) | [optional]
112
- **per** | **Integer**| The number of results to load per page (defaults to 10) | [optional]
113
-
114
- ### Return type
115
-
116
- [**DebitListResponse**](DebitListResponse.md)
117
-
118
- ### Authorization
119
-
120
- You can set the API Key and Secret on the TransferZero object when setting it up:
121
-
122
- ```ruby
123
-
124
- TransferZero.configure do |config|
125
- config.api_key = '<key'
126
- config.api_secret = '<secret>'
127
- config.host = 'https://api-sandbox.transferzero.com/v1'
128
- end
129
-
130
- ```
131
-
132
- ### HTTP request headers
133
-
134
- - **Content-Type**: Not defined
135
- - **Accept**: application/json
136
-
137
-
138
-
139
10
  # **post_accounts_debits**
140
11
  > DebitListResponse post_accounts_debits(debit_request_wrapper)
141
12
 
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
19
19
  **cash_provider** | [**PayoutMethodCashProviderEnum**](PayoutMethodCashProviderEnum.md) | |
20
20
  **sort_code** | **String** | | [optional]
21
21
  **bic** | **String** | | [optional]
22
+ **narration** | **String** | | [optional]
22
23
  **sender_identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
23
24
  **sender_identity_card_id** | **String** | |
24
25
  **sender_city_of_birth** | **String** | | [optional]
@@ -68,6 +69,7 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
68
69
  cash_provider: null,
69
70
  sort_code: null,
70
71
  bic: null,
72
+ narration: null,
71
73
  sender_identity_card_type: null,
72
74
  sender_identity_card_id: null,
73
75
  sender_city_of_birth: null,
@@ -6,11 +6,12 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **first_name** | **String** | |
8
8
  **last_name** | **String** | |
9
- **bank_name** | **String** | | [optional]
9
+ **iban** | **String** | | [optional]
10
10
  **bank_account** | **String** | | [optional]
11
11
  **sort_code** | **String** | | [optional]
12
- **iban** | **String** | | [optional]
13
12
  **bic** | **String** | | [optional]
13
+ **bank_name** | **String** | | [optional]
14
+ **narration** | **String** | | [optional]
14
15
 
15
16
  ## Code Sample
16
17
 
@@ -19,11 +20,12 @@ require 'TransferZero'
19
20
 
20
21
  instance = TransferZero::PayoutMethodDetailsGBPBank.new(first_name: null,
21
22
  last_name: null,
22
- bank_name: null,
23
+ iban: null,
23
24
  bank_account: null,
24
25
  sort_code: null,
25
- iban: null,
26
- bic: null)
26
+ bic: null,
27
+ bank_name: null,
28
+ narration: null)
27
29
  ```
28
30
 
29
31
 
@@ -6,9 +6,10 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **first_name** | **String** | |
8
8
  **last_name** | **String** | |
9
- **bank_name** | **String** | | [optional]
10
9
  **iban** | **String** | |
11
10
  **bic** | **String** | | [optional]
11
+ **bank_name** | **String** | | [optional]
12
+ **narration** | **String** | | [optional]
12
13
 
13
14
  ## Code Sample
14
15
 
@@ -17,9 +18,10 @@ require 'TransferZero'
17
18
 
18
19
  instance = TransferZero::PayoutMethodDetailsIBAN.new(first_name: null,
19
20
  last_name: null,
20
- bank_name: null,
21
21
  iban: null,
22
- bic: null)
22
+ bic: null,
23
+ bank_name: null,
24
+ narration: null)
23
25
  ```
24
26
 
25
27
 
@@ -21,114 +21,6 @@ module TransferZero
21
21
  end
22
22
 
23
23
 
24
- # Fetching an account debit
25
- # Returns a single account debit by the account debit ID
26
- # @param account_debit_id ID of the account debit to get. Example: &#x60;/v1/accounts/debits/9170c890-1a45-46bd-9b79-3deeb8b4ff3d&#x60;
27
- # @param [Hash] opts the optional parameters
28
- # @return [DebitResponse]
29
- def get_accounts_debit(account_debit_id, opts = {})
30
- data, _status_code, _headers = get_accounts_debit_with_http_info(account_debit_id, opts)
31
- data
32
- end
33
-
34
- # Fetching an account debit
35
- # Returns a single account debit by the account debit ID
36
- # @param account_debit_id ID of the account debit to get. Example: &#x60;/v1/accounts/debits/9170c890-1a45-46bd-9b79-3deeb8b4ff3d&#x60;
37
- # @param [Hash] opts the optional parameters
38
- # @return [Array<(DebitResponse, Fixnum, Hash)>] DebitResponse data, response status code and response headers
39
- def get_accounts_debit_with_http_info(account_debit_id, opts = {})
40
- if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: AccountDebitsApi.get_accounts_debit ...'
42
- end
43
- # verify the required parameter 'account_debit_id' is set
44
- if @api_client.config.client_side_validation && account_debit_id.nil?
45
- fail ArgumentError, "Missing the required parameter 'account_debit_id' when calling AccountDebitsApi.get_accounts_debit"
46
- end
47
- # resource path
48
- local_var_path = '/accounts/debits/{Account Debit ID}'.sub('{' + 'Account Debit ID' + '}', account_debit_id.to_s)
49
-
50
- # query parameters
51
- query_params = {}
52
-
53
- # header parameters
54
- header_params = {}
55
- # HTTP header 'Accept' (if needed)
56
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
57
-
58
- # form parameters
59
- form_params = {}
60
-
61
- # http body (model)
62
- post_body = nil
63
- auth_names = ['AuthorizationKey', 'AuthorizationNonce', 'AuthorizationSecret', 'AuthorizationSignature']
64
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
65
- :header_params => header_params,
66
- :query_params => query_params,
67
- :form_params => form_params,
68
- :body => post_body,
69
- :auth_names => auth_names,
70
- :return_type => 'DebitResponse')
71
- if @api_client.config.debugging
72
- @api_client.config.logger.debug "API called: AccountDebitsApi#get_accounts_debit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
- end
74
- return data, status_code, headers
75
- end
76
-
77
-
78
- # Listing Accounts debits
79
- # Get a list of accounts debits
80
- # @param [Hash] opts the optional parameters
81
- # @option opts [Integer] :page The page number to request (defaults to 1)
82
- # @option opts [Integer] :per The number of results to load per page (defaults to 10)
83
- # @return [DebitListResponse]
84
- def get_accounts_debits(opts = {})
85
- data, _status_code, _headers = get_accounts_debits_with_http_info(opts)
86
- data
87
- end
88
-
89
- # Listing Accounts debits
90
- # Get a list of accounts debits
91
- # @param [Hash] opts the optional parameters
92
- # @option opts [Integer] :page The page number to request (defaults to 1)
93
- # @option opts [Integer] :per The number of results to load per page (defaults to 10)
94
- # @return [Array<(DebitListResponse, Fixnum, Hash)>] DebitListResponse data, response status code and response headers
95
- def get_accounts_debits_with_http_info(opts = {})
96
- if @api_client.config.debugging
97
- @api_client.config.logger.debug 'Calling API: AccountDebitsApi.get_accounts_debits ...'
98
- end
99
- # resource path
100
- local_var_path = '/accounts/debits'
101
-
102
- # query parameters
103
- query_params = {}
104
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
105
- query_params[:'per'] = opts[:'per'] if !opts[:'per'].nil?
106
-
107
- # header parameters
108
- header_params = {}
109
- # HTTP header 'Accept' (if needed)
110
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
111
-
112
- # form parameters
113
- form_params = {}
114
-
115
- # http body (model)
116
- post_body = nil
117
- auth_names = ['AuthorizationKey', 'AuthorizationNonce', 'AuthorizationSecret', 'AuthorizationSignature']
118
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
119
- :header_params => header_params,
120
- :query_params => query_params,
121
- :form_params => form_params,
122
- :body => post_body,
123
- :auth_names => auth_names,
124
- :return_type => 'DebitListResponse')
125
- if @api_client.config.debugging
126
- @api_client.config.logger.debug "API called: AccountDebitsApi#get_accounts_debits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
127
- end
128
- return data, status_code, headers
129
- end
130
-
131
-
132
24
  # Creating an account debit
133
25
  # Creates a new account debit finding transaction through the internal balance To successfully fund a transaction - - The currency needs to be the same as the input_currency on the transaction - The amount has to be the same as the input_amount on the transaction - The to_id is the id of the transaction - You need to have enough balance of the appropriate currency inside your wallet Once the transaction is funded, we will immediately start trying to pay out the recipient(s). It is also possible to create multiple account debits by supplying an array of debit objects
134
26
  # @param debit_request_wrapper
@@ -36,7 +36,7 @@ module TransferZero
36
36
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
37
37
  def initialize(config = Configuration.default)
38
38
  @config = config
39
- @user_agent = "TransferZero-SDK/Ruby/1.30.2"
39
+ @user_agent = "TransferZero-SDK/Ruby/1.31.0"
40
40
  @default_headers = {
41
41
  'Content-Type' => 'application/json',
42
42
  'User-Agent' => @user_agent
@@ -44,6 +44,8 @@ class PayoutMethodDetails
44
44
 
45
45
  attr_accessor :bic
46
46
 
47
+ attr_accessor :narration
48
+
47
49
  attr_accessor :sender_identity_card_type
48
50
 
49
51
  attr_accessor :sender_identity_card_id
@@ -118,6 +120,7 @@ class PayoutMethodDetails
118
120
  :'cash_provider' => :'cash_provider',
119
121
  :'sort_code' => :'sort_code',
120
122
  :'bic' => :'bic',
123
+ :'narration' => :'narration',
121
124
  :'sender_identity_card_type' => :'sender_identity_card_type',
122
125
  :'sender_identity_card_id' => :'sender_identity_card_id',
123
126
  :'sender_city_of_birth' => :'sender_city_of_birth',
@@ -167,6 +170,7 @@ class PayoutMethodDetails
167
170
  :'cash_provider' => :'PayoutMethodCashProviderEnum',
168
171
  :'sort_code' => :'String',
169
172
  :'bic' => :'String',
173
+ :'narration' => :'String',
170
174
  :'sender_identity_card_type' => :'PayoutMethodIdentityCardTypeEnum',
171
175
  :'sender_identity_card_id' => :'String',
172
176
  :'sender_city_of_birth' => :'String',
@@ -307,6 +311,10 @@ class PayoutMethodDetails
307
311
  self.bic = attributes[:'bic']
308
312
  end
309
313
 
314
+ if attributes.key?(:'narration')
315
+ self.narration = attributes[:'narration']
316
+ end
317
+
310
318
  if attributes.key?(:'sender_identity_card_type')
311
319
  self.sender_identity_card_type = attributes[:'sender_identity_card_type']
312
320
  end
@@ -579,6 +587,7 @@ class PayoutMethodDetails
579
587
  cash_provider == o.cash_provider &&
580
588
  sort_code == o.sort_code &&
581
589
  bic == o.bic &&
590
+ narration == o.narration &&
582
591
  sender_identity_card_type == o.sender_identity_card_type &&
583
592
  sender_identity_card_id == o.sender_identity_card_id &&
584
593
  sender_city_of_birth == o.sender_city_of_birth &&
@@ -618,7 +627,7 @@ class PayoutMethodDetails
618
627
  # Calculates hash code according to all attributes.
619
628
  # @return [Integer] Hash code
620
629
  def hash
621
- [first_name, last_name, bank_code, bank_account, bank_account_type, phone_number, mobile_provider, country, transfer_reason, iban, bank_name, bank_country, cash_provider, sort_code, bic, sender_identity_card_type, sender_identity_card_id, sender_city_of_birth, sender_country_of_birth, sender_gender, reason, identity_card_type, identity_card_id, reference, name, address, street, postal_code, city, email, branch_code, transfer_reason_code, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type, routing_number, swift_code, relationship_to_sender, pix_key_type, pix_key_value, ifsc_code].hash
630
+ [first_name, last_name, bank_code, bank_account, bank_account_type, phone_number, mobile_provider, country, transfer_reason, iban, bank_name, bank_country, cash_provider, sort_code, bic, narration, sender_identity_card_type, sender_identity_card_id, sender_city_of_birth, sender_country_of_birth, sender_gender, reason, identity_card_type, identity_card_id, reference, name, address, street, postal_code, city, email, branch_code, transfer_reason_code, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type, routing_number, swift_code, relationship_to_sender, pix_key_type, pix_key_value, ifsc_code].hash
622
631
  end
623
632
 
624
633
  require 'active_support/core_ext/hash'
@@ -13,32 +13,35 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"bank_name\": \"Deutsche Bank\", \"bank_account\": \"12345678\", // Required if IBAN is not present \"sort_code\": \"123456\", // Required if bank_account is present \"iban\": \"DE89370400440532013000\", // Required if no bank_account & sort_code \"bic\": \"DEUTDEBBXXX\" // Optional } ```
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"iban\": \"GB45LOYD60161331926819\", // Required if no `bank_account` and `sort_code` \"bank_account\": \"12345678\", // Required if `iban` is not present \"sort_code\": \"123456\", // Required if `bank_account` is present \"bic\": \"CHASUS33XXX\" // Optional \"bank_name\": \"JPMorgan Chase Bank\", // Optional \"narration\": \"Birthday Gift\" // Optional } ```
17
17
  class PayoutMethodDetailsGBPBank
18
18
  attr_accessor :first_name
19
19
 
20
20
  attr_accessor :last_name
21
21
 
22
- attr_accessor :bank_name
22
+ attr_accessor :iban
23
23
 
24
24
  attr_accessor :bank_account
25
25
 
26
26
  attr_accessor :sort_code
27
27
 
28
- attr_accessor :iban
29
-
30
28
  attr_accessor :bic
31
29
 
30
+ attr_accessor :bank_name
31
+
32
+ attr_accessor :narration
33
+
32
34
  # Attribute mapping from ruby-style variable name to JSON key.
33
35
  def self.attribute_map
34
36
  {
35
37
  :'first_name' => :'first_name',
36
38
  :'last_name' => :'last_name',
37
- :'bank_name' => :'bank_name',
39
+ :'iban' => :'iban',
38
40
  :'bank_account' => :'bank_account',
39
41
  :'sort_code' => :'sort_code',
40
- :'iban' => :'iban',
41
- :'bic' => :'bic'
42
+ :'bic' => :'bic',
43
+ :'bank_name' => :'bank_name',
44
+ :'narration' => :'narration'
42
45
  }
43
46
  end
44
47
 
@@ -47,11 +50,12 @@ class PayoutMethodDetailsGBPBank
47
50
  {
48
51
  :'first_name' => :'String',
49
52
  :'last_name' => :'String',
50
- :'bank_name' => :'String',
53
+ :'iban' => :'String',
51
54
  :'bank_account' => :'String',
52
55
  :'sort_code' => :'String',
53
- :'iban' => :'String',
54
- :'bic' => :'String'
56
+ :'bic' => :'String',
57
+ :'bank_name' => :'String',
58
+ :'narration' => :'String'
55
59
  }
56
60
  end
57
61
 
@@ -78,8 +82,8 @@ class PayoutMethodDetailsGBPBank
78
82
  self.last_name = attributes[:'last_name']
79
83
  end
80
84
 
81
- if attributes.key?(:'bank_name')
82
- self.bank_name = attributes[:'bank_name']
85
+ if attributes.key?(:'iban')
86
+ self.iban = attributes[:'iban']
83
87
  end
84
88
 
85
89
  if attributes.key?(:'bank_account')
@@ -90,13 +94,17 @@ class PayoutMethodDetailsGBPBank
90
94
  self.sort_code = attributes[:'sort_code']
91
95
  end
92
96
 
93
- if attributes.key?(:'iban')
94
- self.iban = attributes[:'iban']
95
- end
96
-
97
97
  if attributes.key?(:'bic')
98
98
  self.bic = attributes[:'bic']
99
99
  end
100
+
101
+ if attributes.key?(:'bank_name')
102
+ self.bank_name = attributes[:'bank_name']
103
+ end
104
+
105
+ if attributes.key?(:'narration')
106
+ self.narration = attributes[:'narration']
107
+ end
100
108
  end
101
109
 
102
110
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -129,11 +137,12 @@ class PayoutMethodDetailsGBPBank
129
137
  self.class == o.class &&
130
138
  first_name == o.first_name &&
131
139
  last_name == o.last_name &&
132
- bank_name == o.bank_name &&
140
+ iban == o.iban &&
133
141
  bank_account == o.bank_account &&
134
142
  sort_code == o.sort_code &&
135
- iban == o.iban &&
136
- bic == o.bic
143
+ bic == o.bic &&
144
+ bank_name == o.bank_name &&
145
+ narration == o.narration
137
146
  end
138
147
 
139
148
  # @see the `==` method
@@ -145,7 +154,7 @@ class PayoutMethodDetailsGBPBank
145
154
  # Calculates hash code according to all attributes.
146
155
  # @return [Integer] Hash code
147
156
  def hash
148
- [first_name, last_name, bank_name, bank_account, sort_code, iban, bic].hash
157
+ [first_name, last_name, iban, bank_account, sort_code, bic, bank_name, narration].hash
149
158
  end
150
159
 
151
160
  require 'active_support/core_ext/hash'
@@ -13,26 +13,29 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"bank_name\": \"Deutsche Bank\", \"iban\": \"DE89370400440532013000\", \"bic\": \"DEUTDEBBXXX\" // Optional } ```
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"iban\": \"DE89370400440532013000\", \"bic\": \"DEUTDEBBXXX\", // Optional \"bank_name\": \"Deutsche Bank\", // Optional \"narration\": \"Birthday Gift\" // Optional } ```
17
17
  class PayoutMethodDetailsIBAN
18
18
  attr_accessor :first_name
19
19
 
20
20
  attr_accessor :last_name
21
21
 
22
- attr_accessor :bank_name
23
-
24
22
  attr_accessor :iban
25
23
 
26
24
  attr_accessor :bic
27
25
 
26
+ attr_accessor :bank_name
27
+
28
+ attr_accessor :narration
29
+
28
30
  # Attribute mapping from ruby-style variable name to JSON key.
29
31
  def self.attribute_map
30
32
  {
31
33
  :'first_name' => :'first_name',
32
34
  :'last_name' => :'last_name',
33
- :'bank_name' => :'bank_name',
34
35
  :'iban' => :'iban',
35
- :'bic' => :'bic'
36
+ :'bic' => :'bic',
37
+ :'bank_name' => :'bank_name',
38
+ :'narration' => :'narration'
36
39
  }
37
40
  end
38
41
 
@@ -41,9 +44,10 @@ class PayoutMethodDetailsIBAN
41
44
  {
42
45
  :'first_name' => :'String',
43
46
  :'last_name' => :'String',
44
- :'bank_name' => :'String',
45
47
  :'iban' => :'String',
46
- :'bic' => :'String'
48
+ :'bic' => :'String',
49
+ :'bank_name' => :'String',
50
+ :'narration' => :'String'
47
51
  }
48
52
  end
49
53
 
@@ -70,10 +74,6 @@ class PayoutMethodDetailsIBAN
70
74
  self.last_name = attributes[:'last_name']
71
75
  end
72
76
 
73
- if attributes.key?(:'bank_name')
74
- self.bank_name = attributes[:'bank_name']
75
- end
76
-
77
77
  if attributes.key?(:'iban')
78
78
  self.iban = attributes[:'iban']
79
79
  end
@@ -81,6 +81,14 @@ class PayoutMethodDetailsIBAN
81
81
  if attributes.key?(:'bic')
82
82
  self.bic = attributes[:'bic']
83
83
  end
84
+
85
+ if attributes.key?(:'bank_name')
86
+ self.bank_name = attributes[:'bank_name']
87
+ end
88
+
89
+ if attributes.key?(:'narration')
90
+ self.narration = attributes[:'narration']
91
+ end
84
92
  end
85
93
 
86
94
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -118,9 +126,10 @@ class PayoutMethodDetailsIBAN
118
126
  self.class == o.class &&
119
127
  first_name == o.first_name &&
120
128
  last_name == o.last_name &&
121
- bank_name == o.bank_name &&
122
129
  iban == o.iban &&
123
- bic == o.bic
130
+ bic == o.bic &&
131
+ bank_name == o.bank_name &&
132
+ narration == o.narration
124
133
  end
125
134
 
126
135
  # @see the `==` method
@@ -132,7 +141,7 @@ class PayoutMethodDetailsIBAN
132
141
  # Calculates hash code according to all attributes.
133
142
  # @return [Integer] Hash code
134
143
  def hash
135
- [first_name, last_name, bank_name, iban, bic].hash
144
+ [first_name, last_name, iban, bic, bank_name, narration].hash
136
145
  end
137
146
 
138
147
  require 'active_support/core_ext/hash'
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.0.0-beta3
11
11
  =end
12
12
 
13
13
  module TransferZero
14
- VERSION = '1.30.2'
14
+ VERSION = '1.31.0'
15
15
  end
@@ -38,7 +38,6 @@ require 'transferzero-sdk/models/debit_list_request'
38
38
  require 'transferzero-sdk/models/debit_list_response'
39
39
  require 'transferzero-sdk/models/debit_request'
40
40
  require 'transferzero-sdk/models/debit_request_wrapper'
41
- require 'transferzero-sdk/models/debit_response'
42
41
  require 'transferzero-sdk/models/document'
43
42
  require 'transferzero-sdk/models/document_list_response'
44
43
  require 'transferzero-sdk/models/document_request'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transferzero-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.30.2
4
+ version: 1.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TransferZero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-20 00:00:00.000000000 Z
11
+ date: 2023-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday