transferzero-sdk 1.25.0 → 1.26.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +88 -0
- data/README.md +5 -4
- data/docs/PayoutMethod.md +1 -1
- data/docs/PayoutMethodDetails.md +4 -2
- data/docs/PayoutMethodDetailsCADBank.md +25 -0
- data/docs/PayoutMethodDetailsUSDBank.md +10 -2
- data/lib/transferzero-sdk/api_client.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method_details.rb +22 -12
- data/lib/transferzero-sdk/models/payout_method_details_cad_bank.rb +264 -0
- data/lib/transferzero-sdk/models/payout_method_details_usd_bank.rb +38 -12
- data/lib/transferzero-sdk/models/payout_method_identity_card_type_enum.rb +2 -0
- data/lib/transferzero-sdk/version.rb +1 -1
- data/lib/transferzero-sdk.rb +1 -0
- data/spec/models/payout_method_details_cad_bank_spec.rb +65 -0
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5be47f1d203fb10177014dc2010918003221e523276a3699e1e9d59b5ebcd217
|
4
|
+
data.tar.gz: b8db60c105a52f30acf04920d5f9b319da98c6c07ded7fbeb6836a9ced3db936
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f8686dd0191dc016cafc9c142881b320107afcd71b9b7ce9d9120a057a467b5d7f4901f80ee5a27d25740eb4c90ad11e2d6faed2ab54043dabe0065e596890f
|
7
|
+
data.tar.gz: b03d7cbc46e6e983071d1d8a5a1f169493d93b5afca5d2e5cbf2a9ef048d5e41fcdbdfb7ba0bcc91d7373687dd8edbf7998abbfdf9b5d5171e6f797de44be69d
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
transferzero-sdk (1.25.0)
|
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.2)
|
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.0)
|
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.17.0)
|
51
|
+
multipart-post (2.3.0)
|
52
|
+
pry (0.13.1)
|
53
|
+
coderay (~> 1.1)
|
54
|
+
method_source (~> 1.0)
|
55
|
+
pry-byebug (3.9.0)
|
56
|
+
byebug (~> 11.0)
|
57
|
+
pry (~> 0.13.0)
|
58
|
+
rake (12.0.0)
|
59
|
+
rspec (3.11.0)
|
60
|
+
rspec-core (~> 3.11.0)
|
61
|
+
rspec-expectations (~> 3.11.0)
|
62
|
+
rspec-mocks (~> 3.11.0)
|
63
|
+
rspec-core (3.11.0)
|
64
|
+
rspec-support (~> 3.11.0)
|
65
|
+
rspec-expectations (3.11.1)
|
66
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
67
|
+
rspec-support (~> 3.11.0)
|
68
|
+
rspec-mocks (3.11.1)
|
69
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
70
|
+
rspec-support (~> 3.11.0)
|
71
|
+
rspec-support (3.11.1)
|
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.3.16
|
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.
|
10
|
+
- Package version: 1.26.1
|
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.
|
34
|
+
gem install ./transferzero-sdk-1.26.1.gem
|
35
35
|
```
|
36
|
-
(for development, run `gem install --dev ./transferzero-sdk-1.
|
36
|
+
(for development, run `gem install --dev ./transferzero-sdk-1.26.1.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.
|
42
|
+
gem 'transferzero-sdk', '~> 1.26.1'
|
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)
|
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: - `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. - &#
|
7
|
+
**type** | **String** | 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 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 | [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]
|
data/docs/PayoutMethodDetails.md
CHANGED
@@ -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
|
-
**
|
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
|
-
|
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
|
+
|
@@ -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.
|
39
|
+
@user_agent = "TransferZero-SDK/Ruby/1.26.1"
|
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. -
|
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 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 :
|
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
|
-
:'
|
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'
|
@@ -182,8 +185,9 @@ class PayoutMethodDetails
|
|
182
185
|
:'registration_number' => :'String',
|
183
186
|
:'nature_of_business' => :'PayoutMethodNatureOfBusinessEnum',
|
184
187
|
:'legal_entity_type' => :'PayoutMethodLegalEntityTypeEnum',
|
185
|
-
:'
|
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',
|
@@ -380,14 +385,18 @@ class PayoutMethodDetails
|
|
380
385
|
self.legal_entity_type = attributes[:'legal_entity_type']
|
381
386
|
end
|
382
387
|
|
383
|
-
if attributes.key?(:'
|
384
|
-
self.
|
388
|
+
if attributes.key?(:'routing_number')
|
389
|
+
self.routing_number = attributes[:'routing_number']
|
385
390
|
end
|
386
391
|
|
387
392
|
if attributes.key?(:'swift_code')
|
388
393
|
self.swift_code = attributes[:'swift_code']
|
389
394
|
end
|
390
395
|
|
396
|
+
if attributes.key?(:'branch_code')
|
397
|
+
self.branch_code = attributes[:'branch_code']
|
398
|
+
end
|
399
|
+
|
391
400
|
if attributes.key?(:'pix_key_type')
|
392
401
|
self.pix_key_type = attributes[:'pix_key_type']
|
393
402
|
end
|
@@ -485,14 +494,14 @@ class PayoutMethodDetails
|
|
485
494
|
invalid_properties.push('invalid value for "city", city cannot be nil.')
|
486
495
|
end
|
487
496
|
|
488
|
-
if @branch_code.nil?
|
489
|
-
invalid_properties.push('invalid value for "branch_code", branch_code cannot be nil.')
|
490
|
-
end
|
491
|
-
|
492
497
|
if @swift_code.nil?
|
493
498
|
invalid_properties.push('invalid value for "swift_code", swift_code cannot be nil.')
|
494
499
|
end
|
495
500
|
|
501
|
+
if @branch_code.nil?
|
502
|
+
invalid_properties.push('invalid value for "branch_code", branch_code cannot be nil.')
|
503
|
+
end
|
504
|
+
|
496
505
|
if @ifsc_code.nil?
|
497
506
|
invalid_properties.push('invalid value for "ifsc_code", ifsc_code cannot be nil.')
|
498
507
|
end
|
@@ -523,8 +532,8 @@ class PayoutMethodDetails
|
|
523
532
|
return false if @street.nil?
|
524
533
|
return false if @postal_code.nil?
|
525
534
|
return false if @city.nil?
|
526
|
-
return false if @branch_code.nil?
|
527
535
|
return false if @swift_code.nil?
|
536
|
+
return false if @branch_code.nil?
|
528
537
|
return false if @ifsc_code.nil?
|
529
538
|
_one_of_found = false
|
530
539
|
openapi_one_of.each do |_class|
|
@@ -586,8 +595,9 @@ class PayoutMethodDetails
|
|
586
595
|
registration_number == o.registration_number &&
|
587
596
|
nature_of_business == o.nature_of_business &&
|
588
597
|
legal_entity_type == o.legal_entity_type &&
|
589
|
-
|
598
|
+
routing_number == o.routing_number &&
|
590
599
|
swift_code == o.swift_code &&
|
600
|
+
branch_code == o.branch_code &&
|
591
601
|
pix_key_type == o.pix_key_type &&
|
592
602
|
pix_key_value == o.pix_key_value &&
|
593
603
|
ifsc_code == o.ifsc_code
|
@@ -602,7 +612,7 @@ class PayoutMethodDetails
|
|
602
612
|
# Calculates hash code according to all attributes.
|
603
613
|
# @return [Integer] Hash code
|
604
614
|
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,
|
615
|
+
[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
616
|
end
|
607
617
|
|
608
618
|
require 'active_support/core_ext/hash'
|
@@ -0,0 +1,264 @@
|
|
1
|
+
=begin
|
2
|
+
#TransferZero API
|
3
|
+
|
4
|
+
#Reference documentation for the TransferZero API V1
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.0.0-beta3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module TransferZero
|
16
|
+
# ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"bank_account\": \"123456789\", \"bank_code\": \"003\", \"branch_code\": \"12345\" } ``` See [CAD Bank](https://docs.transferzero.com/docs/payout-details/#cadbank) documentation for the bank_code list
|
17
|
+
class PayoutMethodDetailsCADBank
|
18
|
+
attr_accessor :first_name
|
19
|
+
|
20
|
+
attr_accessor :last_name
|
21
|
+
|
22
|
+
attr_accessor :bank_account
|
23
|
+
|
24
|
+
attr_accessor :bank_code
|
25
|
+
|
26
|
+
attr_accessor :branch_code
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'first_name' => :'first_name',
|
32
|
+
:'last_name' => :'last_name',
|
33
|
+
:'bank_account' => :'bank_account',
|
34
|
+
:'bank_code' => :'bank_code',
|
35
|
+
:'branch_code' => :'branch_code'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
def self.openapi_types
|
41
|
+
{
|
42
|
+
:'first_name' => :'String',
|
43
|
+
:'last_name' => :'String',
|
44
|
+
:'bank_account' => :'String',
|
45
|
+
:'bank_code' => :'String',
|
46
|
+
:'branch_code' => :'String'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
if (!attributes.is_a?(Hash))
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::PayoutMethodDetailsCADBank` initialize method"
|
55
|
+
end
|
56
|
+
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::PayoutMethodDetailsCADBank`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
|
+
end
|
62
|
+
h[k.to_sym] = v
|
63
|
+
}
|
64
|
+
|
65
|
+
if attributes.key?(:'first_name')
|
66
|
+
self.first_name = attributes[:'first_name']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.key?(:'last_name')
|
70
|
+
self.last_name = attributes[:'last_name']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.key?(:'bank_account')
|
74
|
+
self.bank_account = attributes[:'bank_account']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'bank_code')
|
78
|
+
self.bank_code = attributes[:'bank_code']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'branch_code')
|
82
|
+
self.branch_code = attributes[:'branch_code']
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
87
|
+
# @return Array for valid properties with the reasons
|
88
|
+
def list_invalid_properties
|
89
|
+
invalid_properties = Array.new
|
90
|
+
if @first_name.nil?
|
91
|
+
invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
|
92
|
+
end
|
93
|
+
|
94
|
+
if @last_name.nil?
|
95
|
+
invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
|
96
|
+
end
|
97
|
+
|
98
|
+
if @bank_account.nil?
|
99
|
+
invalid_properties.push('invalid value for "bank_account", bank_account cannot be nil.')
|
100
|
+
end
|
101
|
+
|
102
|
+
if @bank_code.nil?
|
103
|
+
invalid_properties.push('invalid value for "bank_code", bank_code cannot be nil.')
|
104
|
+
end
|
105
|
+
|
106
|
+
if @branch_code.nil?
|
107
|
+
invalid_properties.push('invalid value for "branch_code", branch_code cannot be nil.')
|
108
|
+
end
|
109
|
+
|
110
|
+
invalid_properties
|
111
|
+
end
|
112
|
+
|
113
|
+
# Check to see if the all the properties in the model are valid
|
114
|
+
# @return true if the model is valid
|
115
|
+
def valid?
|
116
|
+
return false if @first_name.nil?
|
117
|
+
return false if @last_name.nil?
|
118
|
+
return false if @bank_account.nil?
|
119
|
+
return false if @bank_code.nil?
|
120
|
+
return false if @branch_code.nil?
|
121
|
+
true
|
122
|
+
end
|
123
|
+
|
124
|
+
# Checks equality by comparing each attribute.
|
125
|
+
# @param [Object] Object to be compared
|
126
|
+
def ==(o)
|
127
|
+
return true if self.equal?(o)
|
128
|
+
self.class == o.class &&
|
129
|
+
first_name == o.first_name &&
|
130
|
+
last_name == o.last_name &&
|
131
|
+
bank_account == o.bank_account &&
|
132
|
+
bank_code == o.bank_code &&
|
133
|
+
branch_code == o.branch_code
|
134
|
+
end
|
135
|
+
|
136
|
+
# @see the `==` method
|
137
|
+
# @param [Object] Object to be compared
|
138
|
+
def eql?(o)
|
139
|
+
self == o
|
140
|
+
end
|
141
|
+
|
142
|
+
# Calculates hash code according to all attributes.
|
143
|
+
# @return [Integer] Hash code
|
144
|
+
def hash
|
145
|
+
[first_name, last_name, bank_account, bank_code, branch_code].hash
|
146
|
+
end
|
147
|
+
|
148
|
+
require 'active_support/core_ext/hash'
|
149
|
+
require 'active_support/hash_with_indifferent_access.rb'
|
150
|
+
# Builds the object from hash
|
151
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
152
|
+
# @return [Object] Returns the model itself
|
153
|
+
def build_from_hash(attributes)
|
154
|
+
return nil unless attributes.is_a?(Hash)
|
155
|
+
self.class.openapi_types.each_pair do |key, type|
|
156
|
+
if type =~ /\AArray<(.*)>/i
|
157
|
+
# check to ensure the input is an array given that the the attribute
|
158
|
+
# is documented as an array but the input is not
|
159
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
160
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
161
|
+
end
|
162
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
163
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
164
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
165
|
+
end
|
166
|
+
|
167
|
+
self
|
168
|
+
end
|
169
|
+
|
170
|
+
# Deserializes the data based on type
|
171
|
+
# @param string type Data type
|
172
|
+
# @param string value Value to be deserialized
|
173
|
+
# @return [Object] Deserialized data
|
174
|
+
def _deserialize(type, value)
|
175
|
+
case type.to_sym
|
176
|
+
when :DateTime
|
177
|
+
DateTime.parse(value)
|
178
|
+
when :Date
|
179
|
+
Date.parse(value)
|
180
|
+
when :String
|
181
|
+
value.to_s
|
182
|
+
when :Integer
|
183
|
+
value.to_i
|
184
|
+
when :Float
|
185
|
+
value.to_f
|
186
|
+
when :Boolean
|
187
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
188
|
+
true
|
189
|
+
else
|
190
|
+
false
|
191
|
+
end
|
192
|
+
when :Object
|
193
|
+
# generic object (usually a Hash), return directly
|
194
|
+
value
|
195
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
196
|
+
inner_type = Regexp.last_match[:inner_type]
|
197
|
+
value.map { |v| _deserialize(inner_type, v) }
|
198
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
199
|
+
k_type = Regexp.last_match[:k_type]
|
200
|
+
v_type = Regexp.last_match[:v_type]
|
201
|
+
{}.tap do |hash|
|
202
|
+
value.each do |k, v|
|
203
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
204
|
+
end
|
205
|
+
end
|
206
|
+
else # model
|
207
|
+
temp_model = TransferZero.const_get(type).new
|
208
|
+
temp_model.build_from_hash(value)
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
# Returns the string representation of the object
|
213
|
+
# @return [String] String presentation of the object
|
214
|
+
def to_s
|
215
|
+
to_hash.to_s
|
216
|
+
end
|
217
|
+
|
218
|
+
# to_body is an alias to to_hash (backward compatibility)
|
219
|
+
# @return [Hash] Returns the object in the form of hash
|
220
|
+
def to_body
|
221
|
+
to_hash
|
222
|
+
end
|
223
|
+
|
224
|
+
# Returns the object in the form of hash
|
225
|
+
# @return [Hash] Returns the object in the form of hash
|
226
|
+
def to_hash
|
227
|
+
hash = {}
|
228
|
+
self.class.attribute_map.each_pair do |attr, param|
|
229
|
+
value = self.send(attr)
|
230
|
+
next if value.nil?
|
231
|
+
hash[param] = _to_hash(value)
|
232
|
+
end
|
233
|
+
::ActiveSupport::HashWithIndifferentAccess.new(hash)
|
234
|
+
end
|
235
|
+
|
236
|
+
def [](key)
|
237
|
+
to_hash[key]
|
238
|
+
end
|
239
|
+
|
240
|
+
def dig(*args)
|
241
|
+
to_hash.dig(*args)
|
242
|
+
end
|
243
|
+
|
244
|
+
# Outputs non-array value in the form of hash
|
245
|
+
# For object, use to_hash. Otherwise, just return the value
|
246
|
+
# @param [Object] value Any valid value
|
247
|
+
# @return [Hash] Returns the value in the form of hash
|
248
|
+
def _to_hash(value)
|
249
|
+
if value.is_a?(Array)
|
250
|
+
value.compact.map { |v| _to_hash(v) }
|
251
|
+
elsif value.is_a?(Hash)
|
252
|
+
{}.tap do |hash|
|
253
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
254
|
+
end
|
255
|
+
elsif value.respond_to? :to_hash
|
256
|
+
value.to_hash
|
257
|
+
else
|
258
|
+
value
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
end
|
263
|
+
|
264
|
+
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.0.0-beta3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TransferZero
|
16
|
-
# ```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
|
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
|
17
17
|
class PayoutMethodDetailsUSDBank
|
18
18
|
attr_accessor :first_name
|
19
19
|
|
@@ -25,6 +25,14 @@ class PayoutMethodDetailsUSDBank
|
|
25
25
|
|
26
26
|
attr_accessor :bank_account
|
27
27
|
|
28
|
+
attr_accessor :bank_account_type
|
29
|
+
|
30
|
+
attr_accessor :bank_name
|
31
|
+
|
32
|
+
attr_accessor :routing_number
|
33
|
+
|
34
|
+
attr_accessor :swift_code
|
35
|
+
|
28
36
|
attr_accessor :country
|
29
37
|
|
30
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -35,6 +43,10 @@ class PayoutMethodDetailsUSDBank
|
|
35
43
|
:'phone_number' => :'phone_number',
|
36
44
|
:'bank_code' => :'bank_code',
|
37
45
|
:'bank_account' => :'bank_account',
|
46
|
+
:'bank_account_type' => :'bank_account_type',
|
47
|
+
:'bank_name' => :'bank_name',
|
48
|
+
:'routing_number' => :'routing_number',
|
49
|
+
:'swift_code' => :'swift_code',
|
38
50
|
:'country' => :'country'
|
39
51
|
}
|
40
52
|
end
|
@@ -47,6 +59,10 @@ class PayoutMethodDetailsUSDBank
|
|
47
59
|
:'phone_number' => :'String',
|
48
60
|
:'bank_code' => :'String',
|
49
61
|
:'bank_account' => :'String',
|
62
|
+
:'bank_account_type' => :'PayoutMethodBankAccountTypeEnum',
|
63
|
+
:'bank_name' => :'String',
|
64
|
+
:'routing_number' => :'String',
|
65
|
+
:'swift_code' => :'String',
|
50
66
|
:'country' => :'PayoutMethodCountryEnum'
|
51
67
|
}
|
52
68
|
end
|
@@ -86,6 +102,22 @@ class PayoutMethodDetailsUSDBank
|
|
86
102
|
self.bank_account = attributes[:'bank_account']
|
87
103
|
end
|
88
104
|
|
105
|
+
if attributes.key?(:'bank_account_type')
|
106
|
+
self.bank_account_type = attributes[:'bank_account_type']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'bank_name')
|
110
|
+
self.bank_name = attributes[:'bank_name']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'routing_number')
|
114
|
+
self.routing_number = attributes[:'routing_number']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'swift_code')
|
118
|
+
self.swift_code = attributes[:'swift_code']
|
119
|
+
end
|
120
|
+
|
89
121
|
if attributes.key?(:'country')
|
90
122
|
self.country = attributes[:'country']
|
91
123
|
end
|
@@ -103,14 +135,6 @@ class PayoutMethodDetailsUSDBank
|
|
103
135
|
invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
|
104
136
|
end
|
105
137
|
|
106
|
-
if @phone_number.nil?
|
107
|
-
invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
|
108
|
-
end
|
109
|
-
|
110
|
-
if @bank_code.nil?
|
111
|
-
invalid_properties.push('invalid value for "bank_code", bank_code cannot be nil.')
|
112
|
-
end
|
113
|
-
|
114
138
|
if @bank_account.nil?
|
115
139
|
invalid_properties.push('invalid value for "bank_account", bank_account cannot be nil.')
|
116
140
|
end
|
@@ -127,8 +151,6 @@ class PayoutMethodDetailsUSDBank
|
|
127
151
|
def valid?
|
128
152
|
return false if @first_name.nil?
|
129
153
|
return false if @last_name.nil?
|
130
|
-
return false if @phone_number.nil?
|
131
|
-
return false if @bank_code.nil?
|
132
154
|
return false if @bank_account.nil?
|
133
155
|
return false if @country.nil?
|
134
156
|
true
|
@@ -144,6 +166,10 @@ class PayoutMethodDetailsUSDBank
|
|
144
166
|
phone_number == o.phone_number &&
|
145
167
|
bank_code == o.bank_code &&
|
146
168
|
bank_account == o.bank_account &&
|
169
|
+
bank_account_type == o.bank_account_type &&
|
170
|
+
bank_name == o.bank_name &&
|
171
|
+
routing_number == o.routing_number &&
|
172
|
+
swift_code == o.swift_code &&
|
147
173
|
country == o.country
|
148
174
|
end
|
149
175
|
|
@@ -156,7 +182,7 @@ class PayoutMethodDetailsUSDBank
|
|
156
182
|
# Calculates hash code according to all attributes.
|
157
183
|
# @return [Integer] Hash code
|
158
184
|
def hash
|
159
|
-
[first_name, last_name, phone_number, bank_code, bank_account, country].hash
|
185
|
+
[first_name, last_name, phone_number, bank_code, bank_account, bank_account_type, bank_name, routing_number, swift_code, country].hash
|
160
186
|
end
|
161
187
|
|
162
188
|
require 'active_support/core_ext/hash'
|
data/lib/transferzero-sdk.rb
CHANGED
@@ -71,6 +71,7 @@ require 'transferzero-sdk/models/payout_method_details_brl_bank'
|
|
71
71
|
require 'transferzero-sdk/models/payout_method_details_btc'
|
72
72
|
require 'transferzero-sdk/models/payout_method_details_bwp_bank'
|
73
73
|
require 'transferzero-sdk/models/payout_method_details_balance'
|
74
|
+
require 'transferzero-sdk/models/payout_method_details_cad_bank'
|
74
75
|
require 'transferzero-sdk/models/payout_method_details_gbp_bank'
|
75
76
|
require 'transferzero-sdk/models/payout_method_details_ghs_bank'
|
76
77
|
require 'transferzero-sdk/models/payout_method_details_ghs_cash'
|
@@ -0,0 +1,65 @@
|
|
1
|
+
=begin
|
2
|
+
#TransferZero API
|
3
|
+
|
4
|
+
#Reference documentation for the TransferZero API V1
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.0.0-beta3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for TransferZero::PayoutMethodDetailsCADBank
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'PayoutMethodDetailsCADBank' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = TransferZero::PayoutMethodDetailsCADBank.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of PayoutMethodDetailsCADBank' do
|
31
|
+
it 'should create an instance of PayoutMethodDetailsCADBank' do
|
32
|
+
expect(@instance).to be_instance_of(TransferZero::PayoutMethodDetailsCADBank)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "first_name"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "last_name"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "bank_account"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "bank_code"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "branch_code"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
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.
|
4
|
+
version: 1.26.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TransferZero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -92,6 +92,7 @@ extensions: []
|
|
92
92
|
extra_rdoc_files: []
|
93
93
|
files:
|
94
94
|
- Gemfile
|
95
|
+
- Gemfile.lock
|
95
96
|
- LICENSE
|
96
97
|
- README.md
|
97
98
|
- Rakefile
|
@@ -158,6 +159,7 @@ files:
|
|
158
159
|
- docs/PayoutMethodDetailsBTC.md
|
159
160
|
- docs/PayoutMethodDetailsBWPBank.md
|
160
161
|
- docs/PayoutMethodDetailsBalance.md
|
162
|
+
- docs/PayoutMethodDetailsCADBank.md
|
161
163
|
- docs/PayoutMethodDetailsGBPBank.md
|
162
164
|
- docs/PayoutMethodDetailsGHSBank.md
|
163
165
|
- docs/PayoutMethodDetailsGHSCash.md
|
@@ -310,6 +312,7 @@ files:
|
|
310
312
|
- lib/transferzero-sdk/models/payout_method_details_brl_bank.rb
|
311
313
|
- lib/transferzero-sdk/models/payout_method_details_btc.rb
|
312
314
|
- lib/transferzero-sdk/models/payout_method_details_bwp_bank.rb
|
315
|
+
- lib/transferzero-sdk/models/payout_method_details_cad_bank.rb
|
313
316
|
- lib/transferzero-sdk/models/payout_method_details_gbp_bank.rb
|
314
317
|
- lib/transferzero-sdk/models/payout_method_details_ghs_bank.rb
|
315
318
|
- lib/transferzero-sdk/models/payout_method_details_ghs_cash.rb
|
@@ -451,6 +454,7 @@ files:
|
|
451
454
|
- spec/models/payout_method_details_brl_bank_spec.rb
|
452
455
|
- spec/models/payout_method_details_btc_spec.rb
|
453
456
|
- spec/models/payout_method_details_bwp_bank_spec.rb
|
457
|
+
- spec/models/payout_method_details_cad_bank_spec.rb
|
454
458
|
- spec/models/payout_method_details_gbp_bank_spec.rb
|
455
459
|
- spec/models/payout_method_details_ghs_bank_spec.rb
|
456
460
|
- spec/models/payout_method_details_ghs_cash_spec.rb
|
@@ -547,7 +551,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
547
551
|
- !ruby/object:Gem::Version
|
548
552
|
version: '0'
|
549
553
|
requirements: []
|
550
|
-
rubygems_version: 3.
|
554
|
+
rubygems_version: 3.4.6
|
551
555
|
signing_key:
|
552
556
|
specification_version: 4
|
553
557
|
summary: TransferZero API Ruby Gem
|
@@ -568,6 +572,7 @@ test_files:
|
|
568
572
|
- spec/api/account_debits_api_spec.rb
|
569
573
|
- spec/configuration_spec.rb
|
570
574
|
- spec/models/webhook_definition_response_spec.rb
|
575
|
+
- spec/models/payout_method_details_cad_bank_spec.rb
|
571
576
|
- spec/models/payout_method_details_xof_cash_spec.rb
|
572
577
|
- spec/models/payout_method_details_nzd_bank_spec.rb
|
573
578
|
- spec/models/sender_spec.rb
|