transferzero-sdk 1.33.2 → 1.34.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: 6f5609de0a095c2ed95270d85e2c79c3ea3cd894bf84064eb5ee651c97a3b743
4
- data.tar.gz: f42c71d58d6290d4f8f824a4932d433fdc0744aac464095e34d12a0f72526aee
3
+ metadata.gz: 46d88b46793ea46f7995bcf1f67556a19c86d65f0081feebf2577a70479e46e4
4
+ data.tar.gz: 39e74a6be0a8b747dd7144aed4e9e52f8c47b1da898209cc823227d653ad2e8d
5
5
  SHA512:
6
- metadata.gz: 922992bada9065cdc3fb25dfc43b3b01a83dbaa199536e2d648665990941d13ea59958f75b38bb88eb06bfa9d18ea7691cf4a0d40c9746289de5a34a39934313
7
- data.tar.gz: a2e56ac379db0420e1f5ce47e9e148dfe0f51d45d9d0a2fc6394943e546280dd0ccf3662355672caf93c58ca8fe9ae1d66c2faf3c8040a8f5c1ec7137d2bfa02
6
+ metadata.gz: f5f418424b6160dee8919b21da95515c79f846f9dbba2b1b1d5ab63fc1cef0bf7b9bf75ca5489cf5985b3652cf4b83e81073f2970668371b3a92ee335997e479
7
+ data.tar.gz: a725d2bb4c73843536650b98bfbf94f8bf306e4457566334174a7be3029115dc3f1142bd9a5243a339de112de1875bf2d295da9aedeb2234720c8e1bf3663b6b
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- transferzero-sdk (1.33.2)
5
- activesupport (>= 4, < 7)
4
+ transferzero-sdk (1.34.0)
5
+ activesupport (>= 4)
6
6
  faraday (~> 1.0, >= 1.0.1)
7
7
  json (>= 1.4)
8
8
 
@@ -10,16 +10,25 @@ GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
12
  ZenTest (4.12.1)
13
- activesupport (6.1.7.6)
13
+ activesupport (7.1.3)
14
+ base64
15
+ bigdecimal
14
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ connection_pool (>= 2.2.5)
18
+ drb
15
19
  i18n (>= 1.6, < 2)
16
20
  minitest (>= 5.1)
21
+ mutex_m
17
22
  tzinfo (~> 2.0)
18
- zeitwerk (~> 2.3)
23
+ base64 (0.2.0)
24
+ bigdecimal (3.1.6)
19
25
  byebug (11.1.3)
20
26
  coderay (1.1.3)
21
- concurrent-ruby (1.2.2)
27
+ concurrent-ruby (1.2.3)
28
+ connection_pool (2.4.1)
22
29
  diff-lcs (1.5.0)
30
+ drb (2.2.0)
31
+ ruby2_keywords
23
32
  faraday (1.10.3)
24
33
  faraday-em_http (~> 1.0)
25
34
  faraday-em_synchrony (~> 1.0)
@@ -47,8 +56,9 @@ GEM
47
56
  concurrent-ruby (~> 1.0)
48
57
  json (2.7.1)
49
58
  method_source (1.0.0)
50
- minitest (5.21.1)
59
+ minitest (5.21.2)
51
60
  multipart-post (2.3.0)
61
+ mutex_m (0.2.0)
52
62
  pry (0.14.2)
53
63
  coderay (~> 1.1)
54
64
  method_source (~> 1.0)
@@ -72,7 +82,6 @@ GEM
72
82
  ruby2_keywords (0.0.5)
73
83
  tzinfo (2.0.6)
74
84
  concurrent-ruby (~> 1.0)
75
- zeitwerk (2.6.12)
76
85
 
77
86
  PLATFORMS
78
87
  x86_64-linux
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.33.2
10
+ - Package version: 1.34.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.33.2.gem
34
+ gem install ./transferzero-sdk-1.34.0.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.33.2.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.34.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.33.2'
42
+ gem 'transferzero-sdk', '~> 1.34.0'
43
43
 
44
44
  ### Install from Git
45
45
 
data/docs/PayoutMethod.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **type** | **String** | Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - &#x60;NGN::Bank&#x60; - for Nigerian bank account payments. - &#x60;GHS::Bank&#x60; - for Ghanaian bank account payments. - &#x60;GHS::Mobile&#x60; - for Ghanaian mobile money payments. - &#x60;GHS::Cash&#x60; - for Ghanaian cash remittance payments. - &#x60;UGX::Mobile&#x60; - for Ugandan mobile money payments. - &#x60;XOF::Mobile&#x60; - for mobile money payments to West-Africa. - &#x60;XOF::Bank&#x60; - for Senegalese bank account payments. - &#x60;XOF::Cash&#x60; - for Senegalese cash remittance payments. - &#x60;MAD::Cash&#x60; - for Moroccan cash remittance payments. - &#x60;EUR::Bank&#x60; - for IBAN bank transfers in EUR. - &#x60;GBP::Bank&#x60; - for IBAN bank and FP accounts transfers in GBP. - &#x60;ZAR::Bank&#x60; - for South Africa bank account payments. - &#x60;USD::Bank&#x60; - for USD account payments. *** Currently Nigeria &amp; United States only and in Beta phase *** - &#x60;USD::Cash&#x60; - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - &#x60;KES::Bank&#x60; - for Kenyan bank account payments. - &#x60;KES::Mobile&#x60; - for Kenyan mobile money payments. - &#x60;XAF::Mobile&#x60; - for mobile money payments to Cameroon. - &#x60;XAF::Bank&#x60; - for Cameroon bank account payments.. - &#x60;GNF::Mobile&#x60; - for mobile money payments to Guinea. - &#x60;BRL::Bank&#x60; - for Brazilian bank account payments. - &#x60;NZD::Bank&#x60; - for New Zealand bank account payments. - &#x60;INR::Bank&#x60; - for Indian bank account payments. - &#x60;BWP::Bank&#x60; - for Botswana bank account payments. - &#x60;ZMW::Bank&#x60; - for Zambian bank account payments. - &#x60;CAD::Bank&#x60; - for Canadian bank account payments. - &#x60;UGX::Bank&#x60; - for Ugandan bank account payments. - &#x60;EGP::Bank&#x60; - for Egyptian bank account payments. You can also send funds to the internal balance using &#x60;CCY::Balance&#x60;, where &#x60;CCY&#x60; is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance | [optional]
7
+ **type** | **String** | Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - &#x60;NGN::Bank&#x60; - for Nigerian bank account payments. - &#x60;GHS::Bank&#x60; - for Ghanaian bank account payments. - &#x60;GHS::Mobile&#x60; - for Ghanaian mobile money payments. - &#x60;GHS::Cash&#x60; - for Ghanaian cash remittance payments. - &#x60;UGX::Mobile&#x60; - for Ugandan mobile money payments. - &#x60;XOF::Mobile&#x60; - for mobile money payments to West-Africa. - &#x60;XOF::Bank&#x60; - for Senegalese bank account payments. - &#x60;XOF::Cash&#x60; - for Senegalese cash remittance payments. - &#x60;MAD::Cash&#x60; - for Moroccan cash remittance payments. - &#x60;EUR::Bank&#x60; - for IBAN bank transfers in EUR. - &#x60;GBP::Bank&#x60; - for IBAN bank and FP accounts transfers in GBP. - &#x60;ZAR::Bank&#x60; - for South Africa bank account payments. - &#x60;USD::Bank&#x60; - for USD account payments. *** Currently for Egypt, Nigeria and United States only and in Beta phase *** - &#x60;USD::Cash&#x60; - for USD cash remittance payments. *** Currently for Nigeria only and in Beta phase *** - &#x60;KES::Bank&#x60; - for Kenyan bank account payments. - &#x60;KES::Mobile&#x60; - for Kenyan mobile money payments. - &#x60;XAF::Mobile&#x60; - for mobile money payments to Cameroon. - &#x60;XAF::Bank&#x60; - for Cameroon bank account payments.. - &#x60;GNF::Mobile&#x60; - for mobile money payments to Guinea. - &#x60;BRL::Bank&#x60; - for Brazilian bank account payments. - &#x60;NZD::Bank&#x60; - for New Zealand bank account payments. - &#x60;INR::Bank&#x60; - for Indian bank account payments. - &#x60;BWP::Bank&#x60; - for Botswana bank account payments. - &#x60;ZMW::Bank&#x60; - for Zambian bank account payments. - &#x60;CAD::Bank&#x60; - for Canadian bank account payments. - &#x60;UGX::Bank&#x60; - for Ugandan bank account payments. - &#x60;EGP::Bank&#x60; - for Egyptian bank account payments. You can also send funds to the internal balance using &#x60;CCY::Balance&#x60;, where &#x60;CCY&#x60; is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance | [optional]
8
8
  **details** | [**PayoutMethodDetails**](PayoutMethodDetails.md) | | [optional]
9
9
  **metadata** | [**Object**](.md) | Metadata of payout method. You can store any kind of information in this field. | [optional]
10
10
  **id** | **String** | | [optional]
@@ -42,13 +42,13 @@ Name | Type | Description | Notes
42
42
  **registration_number** | **String** | | [optional]
43
43
  **nature_of_business** | [**PayoutMethodNatureOfBusinessEnum**](PayoutMethodNatureOfBusinessEnum.md) | | [optional]
44
44
  **legal_entity_type** | [**PayoutMethodLegalEntityTypeEnum**](PayoutMethodLegalEntityTypeEnum.md) | | [optional]
45
+ **middle_name** | **String** | | [optional]
45
46
  **routing_number** | **String** | | [optional]
46
47
  **swift_code** | **String** | | [optional]
47
48
  **relationship_to_sender** | **String** | | [optional]
48
49
  **pix_key_type** | [**PayoutMethodPixKeyTypeEnum**](PayoutMethodPixKeyTypeEnum.md) | | [optional]
49
50
  **pix_key_value** | **String** | | [optional]
50
51
  **ifsc_code** | **String** | |
51
- **middle_name** | **String** | | [optional]
52
52
 
53
53
  ## Code Sample
54
54
 
@@ -93,13 +93,13 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
93
93
  registration_number: null,
94
94
  nature_of_business: null,
95
95
  legal_entity_type: null,
96
+ middle_name: null,
96
97
  routing_number: null,
97
98
  swift_code: null,
98
99
  relationship_to_sender: null,
99
100
  pix_key_type: null,
100
101
  pix_key_value: null,
101
- ifsc_code: null,
102
- middle_name: null)
102
+ ifsc_code: null)
103
103
  ```
104
104
 
105
105
 
@@ -5,14 +5,18 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **first_name** | **String** | |
8
+ **middle_name** | **String** | | [optional]
8
9
  **last_name** | **String** | |
9
10
  **phone_number** | **String** | | [optional]
10
11
  **bank_code** | **String** | | [optional]
11
- **bank_account** | **String** | |
12
+ **bank_account** | **String** | | [optional]
12
13
  **bank_account_type** | [**PayoutMethodBankAccountTypeEnum**](PayoutMethodBankAccountTypeEnum.md) | | [optional]
13
14
  **bank_name** | **String** | | [optional]
14
15
  **routing_number** | **String** | | [optional]
15
16
  **swift_code** | **String** | | [optional]
17
+ **iban** | **String** | | [optional]
18
+ **street** | **String** | | [optional]
19
+ **transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
16
20
  **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | |
17
21
 
18
22
  ## Code Sample
@@ -21,6 +25,7 @@ Name | Type | Description | Notes
21
25
  require 'TransferZero'
22
26
 
23
27
  instance = TransferZero::PayoutMethodDetailsUSDBank.new(first_name: null,
28
+ middle_name: null,
24
29
  last_name: null,
25
30
  phone_number: null,
26
31
  bank_code: null,
@@ -29,6 +34,9 @@ instance = TransferZero::PayoutMethodDetailsUSDBank.new(first_name: null,
29
34
  bank_name: null,
30
35
  routing_number: null,
31
36
  swift_code: null,
37
+ iban: null,
38
+ street: null,
39
+ transfer_reason: null,
32
40
  country: null)
33
41
  ```
34
42
 
@@ -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.33.2"
39
+ @user_agent = "TransferZero-SDK/Ruby/1.34.0"
40
40
  @default_headers = {
41
41
  'Content-Type' => 'application/json',
42
42
  'User-Agent' => @user_agent
@@ -15,7 +15,7 @@ require 'date'
15
15
  module TransferZero
16
16
  # This describes the specific details on how the payment has to be routed to the recipient.
17
17
  class PayoutMethod
18
- # Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - `NGN::Bank` - for Nigerian bank account payments. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `GHS::Cash` - for Ghanaian cash remittance payments. - `UGX::Mobile` - for Ugandan mobile money payments. - `XOF::Mobile` - for mobile money payments to West-Africa. - `XOF::Bank` - for Senegalese bank account payments. - `XOF::Cash` - for Senegalese cash remittance payments. - `MAD::Cash` - for Moroccan cash remittance payments. - `EUR::Bank` - for IBAN bank transfers in EUR. - `GBP::Bank` - for IBAN bank and FP accounts transfers in GBP. - `ZAR::Bank` - for South Africa bank account payments. - `USD::Bank` - for USD account payments. *** Currently Nigeria & United States only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - `KES::Bank` - for Kenyan bank account payments. - `KES::Mobile` - for Kenyan mobile money payments. - `XAF::Mobile` - for mobile money payments to Cameroon. - `XAF::Bank` - for Cameroon bank account payments.. - `GNF::Mobile` - for mobile money payments to Guinea. - `BRL::Bank` - for Brazilian bank account payments. - `NZD::Bank` - for New Zealand bank account payments. - `INR::Bank` - for Indian bank account payments. - `BWP::Bank` - for Botswana bank account payments. - `ZMW::Bank` - for Zambian bank account payments. - `CAD::Bank` - for Canadian bank account payments. - `UGX::Bank` - for Ugandan bank account payments. - `EGP::Bank` - for Egyptian bank account payments. You can also send funds to the internal balance using `CCY::Balance`, where `CCY` is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance
18
+ # Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - `NGN::Bank` - for Nigerian bank account payments. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `GHS::Cash` - for Ghanaian cash remittance payments. - `UGX::Mobile` - for Ugandan mobile money payments. - `XOF::Mobile` - for mobile money payments to West-Africa. - `XOF::Bank` - for Senegalese bank account payments. - `XOF::Cash` - for Senegalese cash remittance payments. - `MAD::Cash` - for Moroccan cash remittance payments. - `EUR::Bank` - for IBAN bank transfers in EUR. - `GBP::Bank` - for IBAN bank and FP accounts transfers in GBP. - `ZAR::Bank` - for South Africa bank account payments. - `USD::Bank` - for USD account payments. *** Currently for Egypt, Nigeria and United States only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently for Nigeria only and in Beta phase *** - `KES::Bank` - for Kenyan bank account payments. - `KES::Mobile` - for Kenyan mobile money payments. - `XAF::Mobile` - for mobile money payments to Cameroon. - `XAF::Bank` - for Cameroon bank account payments.. - `GNF::Mobile` - for mobile money payments to Guinea. - `BRL::Bank` - for Brazilian bank account payments. - `NZD::Bank` - for New Zealand bank account payments. - `INR::Bank` - for Indian bank account payments. - `BWP::Bank` - for Botswana bank account payments. - `ZMW::Bank` - for Zambian bank account payments. - `CAD::Bank` - for Canadian bank account payments. - `UGX::Bank` - for Ugandan bank account payments. - `EGP::Bank` - for Egyptian bank account payments. You can also send funds to the internal balance using `CCY::Balance`, where `CCY` is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance
19
19
  attr_accessor :type
20
20
 
21
21
  attr_accessor :details
@@ -90,6 +90,8 @@ class PayoutMethodDetails
90
90
 
91
91
  attr_accessor :legal_entity_type
92
92
 
93
+ attr_accessor :middle_name
94
+
93
95
  attr_accessor :routing_number
94
96
 
95
97
  attr_accessor :swift_code
@@ -102,8 +104,6 @@ class PayoutMethodDetails
102
104
 
103
105
  attr_accessor :ifsc_code
104
106
 
105
- attr_accessor :middle_name
106
-
107
107
  # Attribute mapping from ruby-style variable name to JSON key.
108
108
  def self.attribute_map
109
109
  {
@@ -145,13 +145,13 @@ class PayoutMethodDetails
145
145
  :'registration_number' => :'registration_number',
146
146
  :'nature_of_business' => :'nature_of_business',
147
147
  :'legal_entity_type' => :'legal_entity_type',
148
+ :'middle_name' => :'middle_name',
148
149
  :'routing_number' => :'routing_number',
149
150
  :'swift_code' => :'swift_code',
150
151
  :'relationship_to_sender' => :'relationship_to_sender',
151
152
  :'pix_key_type' => :'pix_key_type',
152
153
  :'pix_key_value' => :'pix_key_value',
153
- :'ifsc_code' => :'ifsc_code',
154
- :'middle_name' => :'middle_name'
154
+ :'ifsc_code' => :'ifsc_code'
155
155
  }
156
156
  end
157
157
 
@@ -196,13 +196,13 @@ class PayoutMethodDetails
196
196
  :'registration_number' => :'String',
197
197
  :'nature_of_business' => :'PayoutMethodNatureOfBusinessEnum',
198
198
  :'legal_entity_type' => :'PayoutMethodLegalEntityTypeEnum',
199
+ :'middle_name' => :'String',
199
200
  :'routing_number' => :'String',
200
201
  :'swift_code' => :'String',
201
202
  :'relationship_to_sender' => :'String',
202
203
  :'pix_key_type' => :'PayoutMethodPixKeyTypeEnum',
203
204
  :'pix_key_value' => :'String',
204
- :'ifsc_code' => :'String',
205
- :'middle_name' => :'String'
205
+ :'ifsc_code' => :'String'
206
206
  }
207
207
  end
208
208
 
@@ -407,6 +407,10 @@ class PayoutMethodDetails
407
407
  self.legal_entity_type = attributes[:'legal_entity_type']
408
408
  end
409
409
 
410
+ if attributes.key?(:'middle_name')
411
+ self.middle_name = attributes[:'middle_name']
412
+ end
413
+
410
414
  if attributes.key?(:'routing_number')
411
415
  self.routing_number = attributes[:'routing_number']
412
416
  end
@@ -430,10 +434,6 @@ class PayoutMethodDetails
430
434
  if attributes.key?(:'ifsc_code')
431
435
  self.ifsc_code = attributes[:'ifsc_code']
432
436
  end
433
-
434
- if attributes.key?(:'middle_name')
435
- self.middle_name = attributes[:'middle_name']
436
- end
437
437
  end
438
438
 
439
439
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -618,13 +618,13 @@ class PayoutMethodDetails
618
618
  registration_number == o.registration_number &&
619
619
  nature_of_business == o.nature_of_business &&
620
620
  legal_entity_type == o.legal_entity_type &&
621
+ middle_name == o.middle_name &&
621
622
  routing_number == o.routing_number &&
622
623
  swift_code == o.swift_code &&
623
624
  relationship_to_sender == o.relationship_to_sender &&
624
625
  pix_key_type == o.pix_key_type &&
625
626
  pix_key_value == o.pix_key_value &&
626
- ifsc_code == o.ifsc_code &&
627
- middle_name == o.middle_name
627
+ ifsc_code == o.ifsc_code
628
628
  end
629
629
 
630
630
  # @see the `==` method
@@ -636,7 +636,7 @@ class PayoutMethodDetails
636
636
  # Calculates hash code according to all attributes.
637
637
  # @return [Integer] Hash code
638
638
  def hash
639
- [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, middle_name].hash
639
+ [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, middle_name, routing_number, swift_code, relationship_to_sender, pix_key_type, pix_key_value, ifsc_code].hash
640
640
  end
641
641
 
642
642
  require 'active_support/core_ext/hash'
@@ -13,10 +13,12 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- # Nigeria: ```JSON \"details\": { \"first_name\": \"Jane\", \"last_name\": \"Doe\", \"phone_number\": \"+2341234567\", // E.164 international format \"bank_code\": \"057\", \"bank_account\": \"1234567890\", \"country\": \"NG\" } ``` See [USD Bank](https://docs.transferzero.com/docs/payout-details/#usdbank) documentation for the bank_code and country lists United States: ```JSON \"details\": { \"first_name\": \"Jane\", \"last_name\": \"Doe\", \"bank_account\": \"1234567890\", \"bank_account_type\": \"20\", // 10 for Savings, 20 for Checking \"bank_name\": \"US Bank\", \"routing_number\": \"091000022\", \"swift_code\": \"USBKUS44IMT\", \"country\": \"US\" } See [USD Bank](https://docs.transferzero.com/docs/payout-details/#usdbank-1) documentation
16
+ # Nigeria: ```JSON \"details\": { \"first_name\": \"Jane\", \"last_name\": \"Doe\", \"phone_number\": \"+2341234567\", // E.164 international format \"bank_code\": \"057\", \"bank_account\": \"1234567890\", \"country\": \"NG\" } ``` See [USD Bank](https://docs.transferzero.com/docs/payout-details/#usdbank) documentation for the bank_code and country lists United States: ```JSON \"details\": { \"first_name\": \"Jane\", \"last_name\": \"Doe\", \"bank_account\": \"1234567890\", \"bank_account_type\": \"20\", // 10 for Savings, 20 for Checking \"bank_name\": \"US Bank\", \"routing_number\": \"091000022\", \"swift_code\": \"USBKUS44IMT\", \"country\": \"US\" } See [USD Bank](https://docs.transferzero.com/docs/payout-details/#usdbank-1) documentation Egypt: ```JSON \"details\": { \"first_name\": \"Jane\", \"middle_name\": \"Jill\", // optional \"last_name\": \"Doe\", \"street\": \"1 Main Street\", \"phone_number\": \"+201023456789\", \"iban\": \"EG380019000500000000263180002\", \"transfer_reason\": \"personal_account\", } ``` See [USD Bank](https://docs.transferzero.com/docs/payout-details/#usdbank-2) documentation
17
17
  class PayoutMethodDetailsUSDBank
18
18
  attr_accessor :first_name
19
19
 
20
+ attr_accessor :middle_name
21
+
20
22
  attr_accessor :last_name
21
23
 
22
24
  attr_accessor :phone_number
@@ -33,12 +35,19 @@ class PayoutMethodDetailsUSDBank
33
35
 
34
36
  attr_accessor :swift_code
35
37
 
38
+ attr_accessor :iban
39
+
40
+ attr_accessor :street
41
+
42
+ attr_accessor :transfer_reason
43
+
36
44
  attr_accessor :country
37
45
 
38
46
  # Attribute mapping from ruby-style variable name to JSON key.
39
47
  def self.attribute_map
40
48
  {
41
49
  :'first_name' => :'first_name',
50
+ :'middle_name' => :'middle_name',
42
51
  :'last_name' => :'last_name',
43
52
  :'phone_number' => :'phone_number',
44
53
  :'bank_code' => :'bank_code',
@@ -47,6 +56,9 @@ class PayoutMethodDetailsUSDBank
47
56
  :'bank_name' => :'bank_name',
48
57
  :'routing_number' => :'routing_number',
49
58
  :'swift_code' => :'swift_code',
59
+ :'iban' => :'iban',
60
+ :'street' => :'street',
61
+ :'transfer_reason' => :'transfer_reason',
50
62
  :'country' => :'country'
51
63
  }
52
64
  end
@@ -55,6 +67,7 @@ class PayoutMethodDetailsUSDBank
55
67
  def self.openapi_types
56
68
  {
57
69
  :'first_name' => :'String',
70
+ :'middle_name' => :'String',
58
71
  :'last_name' => :'String',
59
72
  :'phone_number' => :'String',
60
73
  :'bank_code' => :'String',
@@ -63,6 +76,9 @@ class PayoutMethodDetailsUSDBank
63
76
  :'bank_name' => :'String',
64
77
  :'routing_number' => :'String',
65
78
  :'swift_code' => :'String',
79
+ :'iban' => :'String',
80
+ :'street' => :'String',
81
+ :'transfer_reason' => :'PayoutMethodTransferReasonEnum',
66
82
  :'country' => :'PayoutMethodCountryEnum'
67
83
  }
68
84
  end
@@ -86,6 +102,10 @@ class PayoutMethodDetailsUSDBank
86
102
  self.first_name = attributes[:'first_name']
87
103
  end
88
104
 
105
+ if attributes.key?(:'middle_name')
106
+ self.middle_name = attributes[:'middle_name']
107
+ end
108
+
89
109
  if attributes.key?(:'last_name')
90
110
  self.last_name = attributes[:'last_name']
91
111
  end
@@ -118,6 +138,18 @@ class PayoutMethodDetailsUSDBank
118
138
  self.swift_code = attributes[:'swift_code']
119
139
  end
120
140
 
141
+ if attributes.key?(:'iban')
142
+ self.iban = attributes[:'iban']
143
+ end
144
+
145
+ if attributes.key?(:'street')
146
+ self.street = attributes[:'street']
147
+ end
148
+
149
+ if attributes.key?(:'transfer_reason')
150
+ self.transfer_reason = attributes[:'transfer_reason']
151
+ end
152
+
121
153
  if attributes.key?(:'country')
122
154
  self.country = attributes[:'country']
123
155
  end
@@ -135,10 +167,6 @@ class PayoutMethodDetailsUSDBank
135
167
  invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
136
168
  end
137
169
 
138
- if @bank_account.nil?
139
- invalid_properties.push('invalid value for "bank_account", bank_account cannot be nil.')
140
- end
141
-
142
170
  if @country.nil?
143
171
  invalid_properties.push('invalid value for "country", country cannot be nil.')
144
172
  end
@@ -151,7 +179,6 @@ class PayoutMethodDetailsUSDBank
151
179
  def valid?
152
180
  return false if @first_name.nil?
153
181
  return false if @last_name.nil?
154
- return false if @bank_account.nil?
155
182
  return false if @country.nil?
156
183
  true
157
184
  end
@@ -162,6 +189,7 @@ class PayoutMethodDetailsUSDBank
162
189
  return true if self.equal?(o)
163
190
  self.class == o.class &&
164
191
  first_name == o.first_name &&
192
+ middle_name == o.middle_name &&
165
193
  last_name == o.last_name &&
166
194
  phone_number == o.phone_number &&
167
195
  bank_code == o.bank_code &&
@@ -170,6 +198,9 @@ class PayoutMethodDetailsUSDBank
170
198
  bank_name == o.bank_name &&
171
199
  routing_number == o.routing_number &&
172
200
  swift_code == o.swift_code &&
201
+ iban == o.iban &&
202
+ street == o.street &&
203
+ transfer_reason == o.transfer_reason &&
173
204
  country == o.country
174
205
  end
175
206
 
@@ -182,7 +213,7 @@ class PayoutMethodDetailsUSDBank
182
213
  # Calculates hash code according to all attributes.
183
214
  # @return [Integer] Hash code
184
215
  def hash
185
- [first_name, last_name, phone_number, bank_code, bank_account, bank_account_type, bank_name, routing_number, swift_code, country].hash
216
+ [first_name, middle_name, last_name, phone_number, bank_code, bank_account, bank_account_type, bank_name, routing_number, swift_code, iban, street, transfer_reason, country].hash
186
217
  end
187
218
 
188
219
  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.33.2'
14
+ VERSION = '1.34.0'
15
15
  end
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
29
29
 
30
30
  s.add_runtime_dependency 'faraday', '~> 1.0', '>= 1.0.1'
31
31
  s.add_runtime_dependency 'json', '>= 1.4'
32
- s.add_runtime_dependency 'activesupport', '>= 4', '< 7'
32
+ s.add_runtime_dependency 'activesupport', '>= 4'
33
33
 
34
34
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
35
35
 
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.33.2
4
+ version: 1.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TransferZero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-16 00:00:00.000000000 Z
11
+ date: 2024-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -51,9 +51,6 @@ dependencies:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: '4'
54
- - - "<"
55
- - !ruby/object:Gem::Version
56
- version: '7'
57
54
  type: :runtime
58
55
  prerelease: false
59
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -61,9 +58,6 @@ dependencies:
61
58
  - - ">="
62
59
  - !ruby/object:Gem::Version
63
60
  version: '4'
64
- - - "<"
65
- - !ruby/object:Gem::Version
66
- version: '7'
67
61
  - !ruby/object:Gem::Dependency
68
62
  name: rspec
69
63
  requirement: !ruby/object:Gem::Requirement