transferzero-sdk 1.25.0 → 1.27.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: 94ca1a923fcfdde85d94653aa0b0cdf269c002ff2e8d1556f3229c248337bd76
4
- data.tar.gz: 4e7dda95d76581b246169282e6d2f4201125ea08a56c8ee69dd676f0015eda5c
3
+ metadata.gz: bc3ff41a8e806c9cac51949b4c09709482a13841727a0609d264b22285120534
4
+ data.tar.gz: 626100aa021b382369e935c00c42ee758863b593c27178442d8c1c64513d204b
5
5
  SHA512:
6
- metadata.gz: bf4074448dbdb754354892e20e796b60d2925725d31f78753a9f763f779217bf22612aa6d2430cf98e65564d2c762a38ee858ebe4331f430b095a92620172c3a
7
- data.tar.gz: bbead843e3b399d68a1f0093df6463883e7348e1c2aae05b3e98ba8693d65ea799a6be98cc57b68a782ac589230cbd4cda3cc148a1f4cd70a4309d7ee59671f1
6
+ metadata.gz: f1351151eb99a89a9ea3f7f9970b23437aaae2c5a0d6f12138998ea07fbfd8718171847ea6442878a059c46ef5e1b38abc45b68816c139a9d62ff8bab6ea7dc2
7
+ data.tar.gz: 06e48cc37f882dc9aefc4587c97e1efad9ef228e52a37cbf560d39214e0c73809cb6765365e1bec6985cece2a274fb6504558e8f072ff32f44b8aed5d09216d4
data/Gemfile.lock ADDED
@@ -0,0 +1,88 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ transferzero-sdk (1.26.1)
5
+ activesupport (>= 4, < 7)
6
+ faraday (~> 1.0, >= 1.0.1)
7
+ json (>= 1.4)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ ZenTest (4.12.1)
13
+ activesupport (6.1.7.3)
14
+ concurrent-ruby (~> 1.0, >= 1.0.2)
15
+ i18n (>= 1.6, < 2)
16
+ minitest (>= 5.1)
17
+ tzinfo (~> 2.0)
18
+ zeitwerk (~> 2.3)
19
+ byebug (11.1.3)
20
+ coderay (1.1.3)
21
+ concurrent-ruby (1.2.2)
22
+ diff-lcs (1.5.0)
23
+ faraday (1.10.3)
24
+ faraday-em_http (~> 1.0)
25
+ faraday-em_synchrony (~> 1.0)
26
+ faraday-excon (~> 1.1)
27
+ faraday-httpclient (~> 1.0)
28
+ faraday-multipart (~> 1.0)
29
+ faraday-net_http (~> 1.0)
30
+ faraday-net_http_persistent (~> 1.0)
31
+ faraday-patron (~> 1.0)
32
+ faraday-rack (~> 1.0)
33
+ faraday-retry (~> 1.0)
34
+ ruby2_keywords (>= 0.0.4)
35
+ faraday-em_http (1.0.0)
36
+ faraday-em_synchrony (1.0.0)
37
+ faraday-excon (1.1.0)
38
+ faraday-httpclient (1.0.1)
39
+ faraday-multipart (1.0.4)
40
+ multipart-post (~> 2)
41
+ faraday-net_http (1.0.1)
42
+ faraday-net_http_persistent (1.2.0)
43
+ faraday-patron (1.0.0)
44
+ faraday-rack (1.0.0)
45
+ faraday-retry (1.0.3)
46
+ i18n (1.12.0)
47
+ concurrent-ruby (~> 1.0)
48
+ json (2.6.3)
49
+ method_source (1.0.0)
50
+ minitest (5.18.0)
51
+ multipart-post (2.3.0)
52
+ pry (0.14.2)
53
+ coderay (~> 1.1)
54
+ method_source (~> 1.0)
55
+ pry-byebug (3.10.1)
56
+ byebug (~> 11.0)
57
+ pry (>= 0.13, < 0.15)
58
+ rake (12.0.0)
59
+ rspec (3.12.0)
60
+ rspec-core (~> 3.12.0)
61
+ rspec-expectations (~> 3.12.0)
62
+ rspec-mocks (~> 3.12.0)
63
+ rspec-core (3.12.1)
64
+ rspec-support (~> 3.12.0)
65
+ rspec-expectations (3.12.2)
66
+ diff-lcs (>= 1.2.0, < 2.0)
67
+ rspec-support (~> 3.12.0)
68
+ rspec-mocks (3.12.4)
69
+ diff-lcs (>= 1.2.0, < 2.0)
70
+ rspec-support (~> 3.12.0)
71
+ rspec-support (3.12.0)
72
+ ruby2_keywords (0.0.5)
73
+ tzinfo (2.0.6)
74
+ concurrent-ruby (~> 1.0)
75
+ zeitwerk (2.6.7)
76
+
77
+ PLATFORMS
78
+ arm64-darwin-21
79
+
80
+ DEPENDENCIES
81
+ ZenTest (~> 4.11, >= 4.11.2)
82
+ pry-byebug
83
+ rake (~> 12.0.0)
84
+ rspec (~> 3.6, >= 3.6.0)
85
+ transferzero-sdk!
86
+
87
+ BUNDLED WITH
88
+ 2.4.6
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.25.0
10
+ - Package version: 1.27.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.25.0.gem
34
+ gem install ./transferzero-sdk-1.27.0.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.25.0.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.27.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.25.0'
42
+ gem 'transferzero-sdk', '~> 1.27.0'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -211,6 +211,7 @@ Class | Method | HTTP request | Description
211
211
  - [TransferZero::PayoutMethodDetailsBTC](docs/PayoutMethodDetailsBTC.md)
212
212
  - [TransferZero::PayoutMethodDetailsBWPBank](docs/PayoutMethodDetailsBWPBank.md)
213
213
  - [TransferZero::PayoutMethodDetailsBalance](docs/PayoutMethodDetailsBalance.md)
214
+ - [TransferZero::PayoutMethodDetailsCADBank](docs/PayoutMethodDetailsCADBank.md)
214
215
  - [TransferZero::PayoutMethodDetailsGBPBank](docs/PayoutMethodDetailsGBPBank.md)
215
216
  - [TransferZero::PayoutMethodDetailsGHSBank](docs/PayoutMethodDetailsGHSBank.md)
216
217
  - [TransferZero::PayoutMethodDetailsGHSCash](docs/PayoutMethodDetailsGHSCash.md)
@@ -223,6 +224,7 @@ Class | Method | HTTP request | Description
223
224
  - [TransferZero::PayoutMethodDetailsMobile](docs/PayoutMethodDetailsMobile.md)
224
225
  - [TransferZero::PayoutMethodDetailsNGNBank](docs/PayoutMethodDetailsNGNBank.md)
225
226
  - [TransferZero::PayoutMethodDetailsNZDBank](docs/PayoutMethodDetailsNZDBank.md)
227
+ - [TransferZero::PayoutMethodDetailsUGXBank](docs/PayoutMethodDetailsUGXBank.md)
226
228
  - [TransferZero::PayoutMethodDetailsUSDBank](docs/PayoutMethodDetailsUSDBank.md)
227
229
  - [TransferZero::PayoutMethodDetailsUSDCash](docs/PayoutMethodDetailsUSDCash.md)
228
230
  - [TransferZero::PayoutMethodDetailsXAFBank](docs/PayoutMethodDetailsXAFBank.md)
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 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. - &#39;BWP::Bank&#39; - for Botswana bank account payments. - &#39;ZMW::Bank&#39; - for Zambian 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 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. 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]
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
12
12
  **phone_number** | **String** | |
13
13
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
14
14
  **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | |
15
- **transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | |
15
+ **transfer_reason** | **String** | |
16
16
  **iban** | **String** | |
17
17
  **bank_name** | **String** | |
18
18
  **bank_country** | **String** | | [optional]
@@ -40,8 +40,9 @@ Name | Type | Description | Notes
40
40
  **registration_number** | **String** | | [optional]
41
41
  **nature_of_business** | [**PayoutMethodNatureOfBusinessEnum**](PayoutMethodNatureOfBusinessEnum.md) | | [optional]
42
42
  **legal_entity_type** | [**PayoutMethodLegalEntityTypeEnum**](PayoutMethodLegalEntityTypeEnum.md) | | [optional]
43
- **branch_code** | **String** | |
43
+ **routing_number** | **String** | | [optional]
44
44
  **swift_code** | **String** | |
45
+ **branch_code** | **String** | |
45
46
  **pix_key_type** | [**PayoutMethodPixKeyTypeEnum**](PayoutMethodPixKeyTypeEnum.md) | | [optional]
46
47
  **pix_key_value** | **String** | | [optional]
47
48
  **ifsc_code** | **String** | |
@@ -87,8 +88,9 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
87
88
  registration_number: null,
88
89
  nature_of_business: null,
89
90
  legal_entity_type: null,
90
- branch_code: null,
91
+ routing_number: null,
91
92
  swift_code: null,
93
+ branch_code: null,
92
94
  pix_key_type: null,
93
95
  pix_key_value: null,
94
96
  ifsc_code: null)
@@ -0,0 +1,25 @@
1
+ # TransferZero::PayoutMethodDetailsCADBank
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **bank_account** | **String** | |
10
+ **bank_code** | **String** | |
11
+ **branch_code** | **String** | |
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'TransferZero'
17
+
18
+ instance = TransferZero::PayoutMethodDetailsCADBank.new(first_name: null,
19
+ last_name: null,
20
+ bank_account: null,
21
+ bank_code: null,
22
+ branch_code: null)
23
+ ```
24
+
25
+
@@ -0,0 +1,33 @@
1
+ # TransferZero::PayoutMethodDetailsUGXBank
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **street** | **String** | |
10
+ **city** | **String** | |
11
+ **postal_code** | **String** | |
12
+ **identity_card_id** | **String** | |
13
+ **bank_account** | **String** | |
14
+ **branch_code** | **String** | |
15
+ **transfer_reason** | **String** | |
16
+
17
+ ## Code Sample
18
+
19
+ ```ruby
20
+ require 'TransferZero'
21
+
22
+ instance = TransferZero::PayoutMethodDetailsUGXBank.new(first_name: null,
23
+ last_name: null,
24
+ street: null,
25
+ city: null,
26
+ postal_code: null,
27
+ identity_card_id: null,
28
+ bank_account: null,
29
+ branch_code: null,
30
+ transfer_reason: null)
31
+ ```
32
+
33
+
@@ -6,9 +6,13 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **first_name** | **String** | |
8
8
  **last_name** | **String** | |
9
- **phone_number** | **String** | |
10
- **bank_code** | **String** | |
9
+ **phone_number** | **String** | | [optional]
10
+ **bank_code** | **String** | | [optional]
11
11
  **bank_account** | **String** | |
12
+ **bank_account_type** | [**PayoutMethodBankAccountTypeEnum**](PayoutMethodBankAccountTypeEnum.md) | | [optional]
13
+ **bank_name** | **String** | | [optional]
14
+ **routing_number** | **String** | | [optional]
15
+ **swift_code** | **String** | | [optional]
12
16
  **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | |
13
17
 
14
18
  ## Code Sample
@@ -21,6 +25,10 @@ instance = TransferZero::PayoutMethodDetailsUSDBank.new(first_name: null,
21
25
  phone_number: null,
22
26
  bank_code: null,
23
27
  bank_account: null,
28
+ bank_account_type: null,
29
+ bank_name: null,
30
+ routing_number: null,
31
+ swift_code: null,
24
32
  country: null)
25
33
  ```
26
34
 
@@ -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.25.0"
39
+ @user_agent = "TransferZero-SDK/Ruby/1.27.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 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. 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 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. 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
@@ -86,10 +86,12 @@ class PayoutMethodDetails
86
86
 
87
87
  attr_accessor :legal_entity_type
88
88
 
89
- attr_accessor :branch_code
89
+ attr_accessor :routing_number
90
90
 
91
91
  attr_accessor :swift_code
92
92
 
93
+ attr_accessor :branch_code
94
+
93
95
  attr_accessor :pix_key_type
94
96
 
95
97
  attr_accessor :pix_key_value
@@ -135,8 +137,9 @@ class PayoutMethodDetails
135
137
  :'registration_number' => :'registration_number',
136
138
  :'nature_of_business' => :'nature_of_business',
137
139
  :'legal_entity_type' => :'legal_entity_type',
138
- :'branch_code' => :'branch_code',
140
+ :'routing_number' => :'routing_number',
139
141
  :'swift_code' => :'swift_code',
142
+ :'branch_code' => :'branch_code',
140
143
  :'pix_key_type' => :'pix_key_type',
141
144
  :'pix_key_value' => :'pix_key_value',
142
145
  :'ifsc_code' => :'ifsc_code'
@@ -154,7 +157,7 @@ class PayoutMethodDetails
154
157
  :'phone_number' => :'String',
155
158
  :'mobile_provider' => :'PayoutMethodMobileProviderEnum',
156
159
  :'country' => :'PayoutMethodCountryEnum',
157
- :'transfer_reason' => :'PayoutMethodTransferReasonEnum',
160
+ :'transfer_reason' => :'String',
158
161
  :'iban' => :'String',
159
162
  :'bank_name' => :'String',
160
163
  :'bank_country' => :'String',
@@ -182,8 +185,9 @@ class PayoutMethodDetails
182
185
  :'registration_number' => :'String',
183
186
  :'nature_of_business' => :'PayoutMethodNatureOfBusinessEnum',
184
187
  :'legal_entity_type' => :'PayoutMethodLegalEntityTypeEnum',
185
- :'branch_code' => :'String',
188
+ :'routing_number' => :'String',
186
189
  :'swift_code' => :'String',
190
+ :'branch_code' => :'String',
187
191
  :'pix_key_type' => :'PayoutMethodPixKeyTypeEnum',
188
192
  :'pix_key_value' => :'String',
189
193
  :'ifsc_code' => :'String'
@@ -197,6 +201,7 @@ class PayoutMethodDetails
197
201
  :'PayoutMethodDetailsBTC',
198
202
  :'PayoutMethodDetailsBWPBank',
199
203
  :'PayoutMethodDetailsBalance',
204
+ :'PayoutMethodDetailsCADBank',
200
205
  :'PayoutMethodDetailsGBPBank',
201
206
  :'PayoutMethodDetailsGHSBank',
202
207
  :'PayoutMethodDetailsGHSCash',
@@ -209,6 +214,7 @@ class PayoutMethodDetails
209
214
  :'PayoutMethodDetailsMobile',
210
215
  :'PayoutMethodDetailsNGNBank',
211
216
  :'PayoutMethodDetailsNZDBank',
217
+ :'PayoutMethodDetailsUGXBank',
212
218
  :'PayoutMethodDetailsUSDBank',
213
219
  :'PayoutMethodDetailsUSDCash',
214
220
  :'PayoutMethodDetailsXAFBank',
@@ -380,14 +386,18 @@ class PayoutMethodDetails
380
386
  self.legal_entity_type = attributes[:'legal_entity_type']
381
387
  end
382
388
 
383
- if attributes.key?(:'branch_code')
384
- self.branch_code = attributes[:'branch_code']
389
+ if attributes.key?(:'routing_number')
390
+ self.routing_number = attributes[:'routing_number']
385
391
  end
386
392
 
387
393
  if attributes.key?(:'swift_code')
388
394
  self.swift_code = attributes[:'swift_code']
389
395
  end
390
396
 
397
+ if attributes.key?(:'branch_code')
398
+ self.branch_code = attributes[:'branch_code']
399
+ end
400
+
391
401
  if attributes.key?(:'pix_key_type')
392
402
  self.pix_key_type = attributes[:'pix_key_type']
393
403
  end
@@ -485,14 +495,14 @@ class PayoutMethodDetails
485
495
  invalid_properties.push('invalid value for "city", city cannot be nil.')
486
496
  end
487
497
 
488
- if @branch_code.nil?
489
- invalid_properties.push('invalid value for "branch_code", branch_code cannot be nil.')
490
- end
491
-
492
498
  if @swift_code.nil?
493
499
  invalid_properties.push('invalid value for "swift_code", swift_code cannot be nil.')
494
500
  end
495
501
 
502
+ if @branch_code.nil?
503
+ invalid_properties.push('invalid value for "branch_code", branch_code cannot be nil.')
504
+ end
505
+
496
506
  if @ifsc_code.nil?
497
507
  invalid_properties.push('invalid value for "ifsc_code", ifsc_code cannot be nil.')
498
508
  end
@@ -523,8 +533,8 @@ class PayoutMethodDetails
523
533
  return false if @street.nil?
524
534
  return false if @postal_code.nil?
525
535
  return false if @city.nil?
526
- return false if @branch_code.nil?
527
536
  return false if @swift_code.nil?
537
+ return false if @branch_code.nil?
528
538
  return false if @ifsc_code.nil?
529
539
  _one_of_found = false
530
540
  openapi_one_of.each do |_class|
@@ -586,8 +596,9 @@ class PayoutMethodDetails
586
596
  registration_number == o.registration_number &&
587
597
  nature_of_business == o.nature_of_business &&
588
598
  legal_entity_type == o.legal_entity_type &&
589
- branch_code == o.branch_code &&
599
+ routing_number == o.routing_number &&
590
600
  swift_code == o.swift_code &&
601
+ branch_code == o.branch_code &&
591
602
  pix_key_type == o.pix_key_type &&
592
603
  pix_key_value == o.pix_key_value &&
593
604
  ifsc_code == o.ifsc_code
@@ -602,7 +613,7 @@ class PayoutMethodDetails
602
613
  # Calculates hash code according to all attributes.
603
614
  # @return [Integer] Hash code
604
615
  def hash
605
- [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, transfer_reason_code, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type, branch_code, swift_code, pix_key_type, pix_key_value, ifsc_code].hash
616
+ [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, transfer_reason_code, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type, routing_number, swift_code, branch_code, pix_key_type, pix_key_value, ifsc_code].hash
606
617
  end
607
618
 
608
619
  require 'active_support/core_ext/hash'