transferzero-sdk 1.24.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 +50 -54
- data/README.md +7 -4
- data/docs/PayoutMethod.md +1 -1
- data/docs/PayoutMethodDetails.md +4 -2
- data/docs/PayoutMethodDetailsBWPBank.md +25 -0
- data/docs/PayoutMethodDetailsCADBank.md +25 -0
- data/docs/PayoutMethodDetailsUSDBank.md +10 -2
- data/docs/PayoutMethodDetailsZMWBank.md +23 -0
- 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 +25 -8
- data/lib/transferzero-sdk/models/payout_method_details_bwp_bank.rb +264 -0
- 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_details_zmw_bank.rb +250 -0
- 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 +3 -0
- data/spec/models/payout_method_details_bwp_bank_spec.rb +65 -0
- data/spec/models/payout_method_details_cad_bank_spec.rb +65 -0
- data/spec/models/payout_method_details_zmw_bank_spec.rb +59 -0
- metadata +15 -14
- data/transferzero-sdk-1.19.0.gem +0 -0
- data/transferzero-sdk-1.19.2.gem +0 -0
- data/transferzero-sdk-1.19.3.gem +0 -0
- data/transferzero-sdk-1.19.4.gem +0 -0
- data/transferzero-sdk-1.19.5.gem +0 -0
- data/transferzero-sdk-1.20.1.gem +0 -0
- data/transferzero-sdk-1.21.0.gem +0 -0
- data/transferzero-sdk-1.22.0.gem +0 -0
- data/transferzero-sdk-1.23.0.gem +0 -0
- data/transferzero-sdk-1.23.3.gem +0 -0
- data/transferzero-sdk-1.23.5.gem +0 -0
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
CHANGED
@@ -1,92 +1,88 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
transferzero-sdk (1.
|
5
|
-
activesupport (>= 4)
|
4
|
+
transferzero-sdk (1.25.0)
|
5
|
+
activesupport (>= 4, < 7)
|
6
|
+
faraday (~> 1.0, >= 1.0.1)
|
6
7
|
json (>= 1.4)
|
7
|
-
typhoeus (~> 1.0, >= 1.0.1)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
ZenTest (4.12.
|
13
|
-
activesupport (6.1.
|
12
|
+
ZenTest (4.12.1)
|
13
|
+
activesupport (6.1.7.2)
|
14
14
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
15
|
i18n (>= 1.6, < 2)
|
16
16
|
minitest (>= 5.1)
|
17
17
|
tzinfo (~> 2.0)
|
18
18
|
zeitwerk (~> 2.3)
|
19
|
-
addressable (2.7.0)
|
20
|
-
public_suffix (>= 2.0.2, < 5.0)
|
21
|
-
autotest (4.4.6)
|
22
|
-
ZenTest (>= 4.4.1)
|
23
|
-
autotest-fsevent (0.2.17)
|
24
|
-
sys-uname
|
25
|
-
autotest-growl (0.2.16)
|
26
|
-
autotest-rails-pure (4.1.2)
|
27
19
|
byebug (11.1.3)
|
28
20
|
coderay (1.1.3)
|
29
|
-
concurrent-ruby (1.
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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)
|
37
47
|
concurrent-ruby (~> 1.0)
|
38
|
-
json (2.
|
48
|
+
json (2.6.3)
|
39
49
|
method_source (1.0.0)
|
40
|
-
minitest (5.
|
50
|
+
minitest (5.17.0)
|
51
|
+
multipart-post (2.3.0)
|
41
52
|
pry (0.13.1)
|
42
53
|
coderay (~> 1.1)
|
43
54
|
method_source (~> 1.0)
|
44
55
|
pry-byebug (3.9.0)
|
45
56
|
byebug (~> 11.0)
|
46
57
|
pry (~> 0.13.0)
|
47
|
-
public_suffix (4.0.6)
|
48
58
|
rake (12.0.0)
|
49
|
-
rspec (3.
|
50
|
-
rspec-core (~> 3.
|
51
|
-
rspec-expectations (~> 3.
|
52
|
-
rspec-mocks (~> 3.
|
53
|
-
rspec-core (3.
|
54
|
-
rspec-support (~> 3.
|
55
|
-
rspec-expectations (3.
|
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)
|
56
66
|
diff-lcs (>= 1.2.0, < 2.0)
|
57
|
-
rspec-support (~> 3.
|
58
|
-
rspec-mocks (3.
|
67
|
+
rspec-support (~> 3.11.0)
|
68
|
+
rspec-mocks (3.11.1)
|
59
69
|
diff-lcs (>= 1.2.0, < 2.0)
|
60
|
-
rspec-support (~> 3.
|
61
|
-
rspec-support (3.
|
62
|
-
|
63
|
-
|
64
|
-
typhoeus (1.4.0)
|
65
|
-
ethon (>= 0.9.0)
|
66
|
-
tzinfo (2.0.4)
|
70
|
+
rspec-support (~> 3.11.0)
|
71
|
+
rspec-support (3.11.1)
|
72
|
+
ruby2_keywords (0.0.5)
|
73
|
+
tzinfo (2.0.6)
|
67
74
|
concurrent-ruby (~> 1.0)
|
68
|
-
|
69
|
-
webmock (1.24.6)
|
70
|
-
addressable (>= 2.3.6)
|
71
|
-
crack (>= 0.3.2)
|
72
|
-
hashdiff
|
73
|
-
zeitwerk (2.4.2)
|
75
|
+
zeitwerk (2.6.7)
|
74
76
|
|
75
77
|
PLATFORMS
|
76
|
-
|
78
|
+
arm64-darwin-21
|
77
79
|
|
78
80
|
DEPENDENCIES
|
79
81
|
ZenTest (~> 4.11, >= 4.11.2)
|
80
|
-
autotest (~> 4.4, >= 4.4.6)
|
81
|
-
autotest-fsevent (~> 0.2, >= 0.2.12)
|
82
|
-
autotest-growl (~> 0.2, >= 0.2.16)
|
83
|
-
autotest-rails-pure (~> 4.1, >= 4.1.2)
|
84
82
|
pry-byebug
|
85
83
|
rake (~> 12.0.0)
|
86
84
|
rspec (~> 3.6, >= 3.6.0)
|
87
85
|
transferzero-sdk!
|
88
|
-
vcr (~> 3.0, >= 3.0.1)
|
89
|
-
webmock (~> 1.24, >= 1.24.3)
|
90
86
|
|
91
87
|
BUNDLED WITH
|
92
|
-
|
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
|
|
@@ -209,7 +209,9 @@ Class | Method | HTTP request | Description
|
|
209
209
|
- [TransferZero::PayoutMethodDetails](docs/PayoutMethodDetails.md)
|
210
210
|
- [TransferZero::PayoutMethodDetailsBRLBank](docs/PayoutMethodDetailsBRLBank.md)
|
211
211
|
- [TransferZero::PayoutMethodDetailsBTC](docs/PayoutMethodDetailsBTC.md)
|
212
|
+
- [TransferZero::PayoutMethodDetailsBWPBank](docs/PayoutMethodDetailsBWPBank.md)
|
212
213
|
- [TransferZero::PayoutMethodDetailsBalance](docs/PayoutMethodDetailsBalance.md)
|
214
|
+
- [TransferZero::PayoutMethodDetailsCADBank](docs/PayoutMethodDetailsCADBank.md)
|
213
215
|
- [TransferZero::PayoutMethodDetailsGBPBank](docs/PayoutMethodDetailsGBPBank.md)
|
214
216
|
- [TransferZero::PayoutMethodDetailsGHSBank](docs/PayoutMethodDetailsGHSBank.md)
|
215
217
|
- [TransferZero::PayoutMethodDetailsGHSCash](docs/PayoutMethodDetailsGHSCash.md)
|
@@ -230,6 +232,7 @@ Class | Method | HTTP request | Description
|
|
230
232
|
- [TransferZero::PayoutMethodDetailsXOFCash](docs/PayoutMethodDetailsXOFCash.md)
|
231
233
|
- [TransferZero::PayoutMethodDetailsXOFMobile](docs/PayoutMethodDetailsXOFMobile.md)
|
232
234
|
- [TransferZero::PayoutMethodDetailsZARBank](docs/PayoutMethodDetailsZARBank.md)
|
235
|
+
- [TransferZero::PayoutMethodDetailsZMWBank](docs/PayoutMethodDetailsZMWBank.md)
|
233
236
|
- [TransferZero::PayoutMethodGenderEnum](docs/PayoutMethodGenderEnum.md)
|
234
237
|
- [TransferZero::PayoutMethodIdentityCardTypeEnum](docs/PayoutMethodIdentityCardTypeEnum.md)
|
235
238
|
- [TransferZero::PayoutMethodLegalEntityTypeEnum](docs/PayoutMethodLegalEntityTypeEnum.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. 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]
|
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::PayoutMethodDetailsBWPBank
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**first_name** | **String** | |
|
8
|
+
**last_name** | **String** | |
|
9
|
+
**bank_name** | **String** | |
|
10
|
+
**bank_account** | **String** | |
|
11
|
+
**branch_code** | **String** | |
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'TransferZero'
|
17
|
+
|
18
|
+
instance = TransferZero::PayoutMethodDetailsBWPBank.new(first_name: null,
|
19
|
+
last_name: null,
|
20
|
+
bank_name: null,
|
21
|
+
bank_account: null,
|
22
|
+
branch_code: null)
|
23
|
+
```
|
24
|
+
|
25
|
+
|
@@ -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
|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# TransferZero::PayoutMethodDetailsZMWBank
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**first_name** | **String** | |
|
8
|
+
**last_name** | **String** | |
|
9
|
+
**bank_account** | **String** | |
|
10
|
+
**branch_code** | **String** | |
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'TransferZero'
|
16
|
+
|
17
|
+
instance = TransferZero::PayoutMethodDetailsZMWBank.new(first_name: null,
|
18
|
+
last_name: null,
|
19
|
+
bank_account: null,
|
20
|
+
branch_code: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -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. 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 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'
|
@@ -195,7 +199,9 @@ class PayoutMethodDetails
|
|
195
199
|
[
|
196
200
|
:'PayoutMethodDetailsBRLBank',
|
197
201
|
:'PayoutMethodDetailsBTC',
|
202
|
+
:'PayoutMethodDetailsBWPBank',
|
198
203
|
:'PayoutMethodDetailsBalance',
|
204
|
+
:'PayoutMethodDetailsCADBank',
|
199
205
|
:'PayoutMethodDetailsGBPBank',
|
200
206
|
:'PayoutMethodDetailsGHSBank',
|
201
207
|
:'PayoutMethodDetailsGHSCash',
|
@@ -215,7 +221,8 @@ class PayoutMethodDetails
|
|
215
221
|
:'PayoutMethodDetailsXOFBank',
|
216
222
|
:'PayoutMethodDetailsXOFCash',
|
217
223
|
:'PayoutMethodDetailsXOFMobile',
|
218
|
-
:'PayoutMethodDetailsZARBank'
|
224
|
+
:'PayoutMethodDetailsZARBank',
|
225
|
+
:'PayoutMethodDetailsZMWBank'
|
219
226
|
]
|
220
227
|
end
|
221
228
|
|
@@ -378,14 +385,18 @@ class PayoutMethodDetails
|
|
378
385
|
self.legal_entity_type = attributes[:'legal_entity_type']
|
379
386
|
end
|
380
387
|
|
381
|
-
if attributes.key?(:'
|
382
|
-
self.
|
388
|
+
if attributes.key?(:'routing_number')
|
389
|
+
self.routing_number = attributes[:'routing_number']
|
383
390
|
end
|
384
391
|
|
385
392
|
if attributes.key?(:'swift_code')
|
386
393
|
self.swift_code = attributes[:'swift_code']
|
387
394
|
end
|
388
395
|
|
396
|
+
if attributes.key?(:'branch_code')
|
397
|
+
self.branch_code = attributes[:'branch_code']
|
398
|
+
end
|
399
|
+
|
389
400
|
if attributes.key?(:'pix_key_type')
|
390
401
|
self.pix_key_type = attributes[:'pix_key_type']
|
391
402
|
end
|
@@ -487,6 +498,10 @@ class PayoutMethodDetails
|
|
487
498
|
invalid_properties.push('invalid value for "swift_code", swift_code cannot be nil.')
|
488
499
|
end
|
489
500
|
|
501
|
+
if @branch_code.nil?
|
502
|
+
invalid_properties.push('invalid value for "branch_code", branch_code cannot be nil.')
|
503
|
+
end
|
504
|
+
|
490
505
|
if @ifsc_code.nil?
|
491
506
|
invalid_properties.push('invalid value for "ifsc_code", ifsc_code cannot be nil.')
|
492
507
|
end
|
@@ -518,6 +533,7 @@ class PayoutMethodDetails
|
|
518
533
|
return false if @postal_code.nil?
|
519
534
|
return false if @city.nil?
|
520
535
|
return false if @swift_code.nil?
|
536
|
+
return false if @branch_code.nil?
|
521
537
|
return false if @ifsc_code.nil?
|
522
538
|
_one_of_found = false
|
523
539
|
openapi_one_of.each do |_class|
|
@@ -579,8 +595,9 @@ class PayoutMethodDetails
|
|
579
595
|
registration_number == o.registration_number &&
|
580
596
|
nature_of_business == o.nature_of_business &&
|
581
597
|
legal_entity_type == o.legal_entity_type &&
|
582
|
-
|
598
|
+
routing_number == o.routing_number &&
|
583
599
|
swift_code == o.swift_code &&
|
600
|
+
branch_code == o.branch_code &&
|
584
601
|
pix_key_type == o.pix_key_type &&
|
585
602
|
pix_key_value == o.pix_key_value &&
|
586
603
|
ifsc_code == o.ifsc_code
|
@@ -595,7 +612,7 @@ class PayoutMethodDetails
|
|
595
612
|
# Calculates hash code according to all attributes.
|
596
613
|
# @return [Integer] Hash code
|
597
614
|
def hash
|
598
|
-
[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
|
599
616
|
end
|
600
617
|
|
601
618
|
require 'active_support/core_ext/hash'
|