transferzero-sdk 1.24.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/PayoutMethod.md +1 -1
- data/docs/PayoutMethodDetails.md +1 -1
- data/docs/PayoutMethodDetailsBWPBank.md +25 -0
- 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 +8 -1
- data/lib/transferzero-sdk/models/payout_method_details_bwp_bank.rb +264 -0
- data/lib/transferzero-sdk/models/payout_method_details_zmw_bank.rb +250 -0
- data/lib/transferzero-sdk/version.rb +1 -1
- data/lib/transferzero-sdk.rb +2 -0
- data/spec/models/payout_method_details_bwp_bank_spec.rb +65 -0
- data/spec/models/payout_method_details_zmw_bank_spec.rb +59 -0
- metadata +10 -14
- data/Gemfile.lock +0 -92
- 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: 94ca1a923fcfdde85d94653aa0b0cdf269c002ff2e8d1556f3229c248337bd76
|
4
|
+
data.tar.gz: 4e7dda95d76581b246169282e6d2f4201125ea08a56c8ee69dd676f0015eda5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf4074448dbdb754354892e20e796b60d2925725d31f78753a9f763f779217bf22612aa6d2430cf98e65564d2c762a38ee858ebe4331f430b095a92620172c3a
|
7
|
+
data.tar.gz: bbead843e3b399d68a1f0093df6463883e7348e1c2aae05b3e98ba8693d65ea799a6be98cc57b68a782ac589230cbd4cda3cc148a1f4cd70a4309d7ee59671f1
|
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.25.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.
|
34
|
+
gem install ./transferzero-sdk-1.25.0.gem
|
35
35
|
```
|
36
|
-
(for development, run `gem install --dev ./transferzero-sdk-1.
|
36
|
+
(for development, run `gem install --dev ./transferzero-sdk-1.25.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.
|
42
|
+
gem 'transferzero-sdk', '~> 1.25.0'
|
43
43
|
|
44
44
|
### Install from Git
|
45
45
|
|
@@ -209,6 +209,7 @@ 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)
|
213
214
|
- [TransferZero::PayoutMethodDetailsGBPBank](docs/PayoutMethodDetailsGBPBank.md)
|
214
215
|
- [TransferZero::PayoutMethodDetailsGHSBank](docs/PayoutMethodDetailsGHSBank.md)
|
@@ -230,6 +231,7 @@ Class | Method | HTTP request | Description
|
|
230
231
|
- [TransferZero::PayoutMethodDetailsXOFCash](docs/PayoutMethodDetailsXOFCash.md)
|
231
232
|
- [TransferZero::PayoutMethodDetailsXOFMobile](docs/PayoutMethodDetailsXOFMobile.md)
|
232
233
|
- [TransferZero::PayoutMethodDetailsZARBank](docs/PayoutMethodDetailsZARBank.md)
|
234
|
+
- [TransferZero::PayoutMethodDetailsZMWBank](docs/PayoutMethodDetailsZMWBank.md)
|
233
235
|
- [TransferZero::PayoutMethodGenderEnum](docs/PayoutMethodGenderEnum.md)
|
234
236
|
- [TransferZero::PayoutMethodIdentityCardTypeEnum](docs/PayoutMethodIdentityCardTypeEnum.md)
|
235
237
|
- [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 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 | [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,7 +40,7 @@ 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
|
+
**branch_code** | **String** | |
|
44
44
|
**swift_code** | **String** | |
|
45
45
|
**pix_key_type** | [**PayoutMethodPixKeyTypeEnum**](PayoutMethodPixKeyTypeEnum.md) | | [optional]
|
46
46
|
**pix_key_value** | **String** | | [optional]
|
@@ -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,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.25.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. 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 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
|
19
19
|
attr_accessor :type
|
20
20
|
|
21
21
|
attr_accessor :details
|
@@ -195,6 +195,7 @@ class PayoutMethodDetails
|
|
195
195
|
[
|
196
196
|
:'PayoutMethodDetailsBRLBank',
|
197
197
|
:'PayoutMethodDetailsBTC',
|
198
|
+
:'PayoutMethodDetailsBWPBank',
|
198
199
|
:'PayoutMethodDetailsBalance',
|
199
200
|
:'PayoutMethodDetailsGBPBank',
|
200
201
|
:'PayoutMethodDetailsGHSBank',
|
@@ -215,7 +216,8 @@ class PayoutMethodDetails
|
|
215
216
|
:'PayoutMethodDetailsXOFBank',
|
216
217
|
:'PayoutMethodDetailsXOFCash',
|
217
218
|
:'PayoutMethodDetailsXOFMobile',
|
218
|
-
:'PayoutMethodDetailsZARBank'
|
219
|
+
:'PayoutMethodDetailsZARBank',
|
220
|
+
:'PayoutMethodDetailsZMWBank'
|
219
221
|
]
|
220
222
|
end
|
221
223
|
|
@@ -483,6 +485,10 @@ class PayoutMethodDetails
|
|
483
485
|
invalid_properties.push('invalid value for "city", city cannot be nil.')
|
484
486
|
end
|
485
487
|
|
488
|
+
if @branch_code.nil?
|
489
|
+
invalid_properties.push('invalid value for "branch_code", branch_code cannot be nil.')
|
490
|
+
end
|
491
|
+
|
486
492
|
if @swift_code.nil?
|
487
493
|
invalid_properties.push('invalid value for "swift_code", swift_code cannot be nil.')
|
488
494
|
end
|
@@ -517,6 +523,7 @@ class PayoutMethodDetails
|
|
517
523
|
return false if @street.nil?
|
518
524
|
return false if @postal_code.nil?
|
519
525
|
return false if @city.nil?
|
526
|
+
return false if @branch_code.nil?
|
520
527
|
return false if @swift_code.nil?
|
521
528
|
return false if @ifsc_code.nil?
|
522
529
|
_one_of_found = false
|
@@ -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_name\": \"Banc ABC\", \"bank_account\": \"12345678912345678\", \"branch_code\": \"550067\", } ``` See [BWP Bank](https://docs.transferzero.com/docs/payout-details/#bwpbank) documentation for the bank_name & branch_code list
|
17
|
+
class PayoutMethodDetailsBWPBank
|
18
|
+
attr_accessor :first_name
|
19
|
+
|
20
|
+
attr_accessor :last_name
|
21
|
+
|
22
|
+
attr_accessor :bank_name
|
23
|
+
|
24
|
+
attr_accessor :bank_account
|
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_name' => :'bank_name',
|
34
|
+
:'bank_account' => :'bank_account',
|
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_name' => :'String',
|
45
|
+
:'bank_account' => :'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::PayoutMethodDetailsBWPBank` 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::PayoutMethodDetailsBWPBank`. 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_name')
|
74
|
+
self.bank_name = attributes[:'bank_name']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'bank_account')
|
78
|
+
self.bank_account = attributes[:'bank_account']
|
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_name.nil?
|
99
|
+
invalid_properties.push('invalid value for "bank_name", bank_name cannot be nil.')
|
100
|
+
end
|
101
|
+
|
102
|
+
if @bank_account.nil?
|
103
|
+
invalid_properties.push('invalid value for "bank_account", bank_account 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_name.nil?
|
119
|
+
return false if @bank_account.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_name == o.bank_name &&
|
132
|
+
bank_account == o.bank_account &&
|
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_name, bank_account, 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
|
@@ -0,0 +1,250 @@
|
|
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\": \"1234567890\", \"branch_code\": \"ZM210003\", } ``` See [ZMW Bank](https://docs.transferzero.com/docs/payout-details/#zmwbank) documentation for the branch_code list
|
17
|
+
class PayoutMethodDetailsZMWBank
|
18
|
+
attr_accessor :first_name
|
19
|
+
|
20
|
+
attr_accessor :last_name
|
21
|
+
|
22
|
+
attr_accessor :bank_account
|
23
|
+
|
24
|
+
attr_accessor :branch_code
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'first_name' => :'first_name',
|
30
|
+
:'last_name' => :'last_name',
|
31
|
+
:'bank_account' => :'bank_account',
|
32
|
+
:'branch_code' => :'branch_code'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Attribute type mapping.
|
37
|
+
def self.openapi_types
|
38
|
+
{
|
39
|
+
:'first_name' => :'String',
|
40
|
+
:'last_name' => :'String',
|
41
|
+
:'bank_account' => :'String',
|
42
|
+
:'branch_code' => :'String'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# Initializes the object
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::PayoutMethodDetailsZMWBank` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::PayoutMethodDetailsZMWBank`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
|
+
end
|
58
|
+
h[k.to_sym] = v
|
59
|
+
}
|
60
|
+
|
61
|
+
if attributes.key?(:'first_name')
|
62
|
+
self.first_name = attributes[:'first_name']
|
63
|
+
end
|
64
|
+
|
65
|
+
if attributes.key?(:'last_name')
|
66
|
+
self.last_name = attributes[:'last_name']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.key?(:'bank_account')
|
70
|
+
self.bank_account = attributes[:'bank_account']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.key?(:'branch_code')
|
74
|
+
self.branch_code = attributes[:'branch_code']
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
79
|
+
# @return Array for valid properties with the reasons
|
80
|
+
def list_invalid_properties
|
81
|
+
invalid_properties = Array.new
|
82
|
+
if @first_name.nil?
|
83
|
+
invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
|
84
|
+
end
|
85
|
+
|
86
|
+
if @last_name.nil?
|
87
|
+
invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
|
88
|
+
end
|
89
|
+
|
90
|
+
if @bank_account.nil?
|
91
|
+
invalid_properties.push('invalid value for "bank_account", bank_account cannot be nil.')
|
92
|
+
end
|
93
|
+
|
94
|
+
if @branch_code.nil?
|
95
|
+
invalid_properties.push('invalid value for "branch_code", branch_code cannot be nil.')
|
96
|
+
end
|
97
|
+
|
98
|
+
invalid_properties
|
99
|
+
end
|
100
|
+
|
101
|
+
# Check to see if the all the properties in the model are valid
|
102
|
+
# @return true if the model is valid
|
103
|
+
def valid?
|
104
|
+
return false if @first_name.nil?
|
105
|
+
return false if @last_name.nil?
|
106
|
+
return false if @bank_account.nil?
|
107
|
+
return false if @branch_code.nil?
|
108
|
+
true
|
109
|
+
end
|
110
|
+
|
111
|
+
# Checks equality by comparing each attribute.
|
112
|
+
# @param [Object] Object to be compared
|
113
|
+
def ==(o)
|
114
|
+
return true if self.equal?(o)
|
115
|
+
self.class == o.class &&
|
116
|
+
first_name == o.first_name &&
|
117
|
+
last_name == o.last_name &&
|
118
|
+
bank_account == o.bank_account &&
|
119
|
+
branch_code == o.branch_code
|
120
|
+
end
|
121
|
+
|
122
|
+
# @see the `==` method
|
123
|
+
# @param [Object] Object to be compared
|
124
|
+
def eql?(o)
|
125
|
+
self == o
|
126
|
+
end
|
127
|
+
|
128
|
+
# Calculates hash code according to all attributes.
|
129
|
+
# @return [Integer] Hash code
|
130
|
+
def hash
|
131
|
+
[first_name, last_name, bank_account, branch_code].hash
|
132
|
+
end
|
133
|
+
|
134
|
+
require 'active_support/core_ext/hash'
|
135
|
+
require 'active_support/hash_with_indifferent_access.rb'
|
136
|
+
# Builds the object from hash
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
138
|
+
# @return [Object] Returns the model itself
|
139
|
+
def build_from_hash(attributes)
|
140
|
+
return nil unless attributes.is_a?(Hash)
|
141
|
+
self.class.openapi_types.each_pair do |key, type|
|
142
|
+
if type =~ /\AArray<(.*)>/i
|
143
|
+
# check to ensure the input is an array given that the the attribute
|
144
|
+
# is documented as an array but the input is not
|
145
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
146
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
147
|
+
end
|
148
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
149
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
150
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
151
|
+
end
|
152
|
+
|
153
|
+
self
|
154
|
+
end
|
155
|
+
|
156
|
+
# Deserializes the data based on type
|
157
|
+
# @param string type Data type
|
158
|
+
# @param string value Value to be deserialized
|
159
|
+
# @return [Object] Deserialized data
|
160
|
+
def _deserialize(type, value)
|
161
|
+
case type.to_sym
|
162
|
+
when :DateTime
|
163
|
+
DateTime.parse(value)
|
164
|
+
when :Date
|
165
|
+
Date.parse(value)
|
166
|
+
when :String
|
167
|
+
value.to_s
|
168
|
+
when :Integer
|
169
|
+
value.to_i
|
170
|
+
when :Float
|
171
|
+
value.to_f
|
172
|
+
when :Boolean
|
173
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
174
|
+
true
|
175
|
+
else
|
176
|
+
false
|
177
|
+
end
|
178
|
+
when :Object
|
179
|
+
# generic object (usually a Hash), return directly
|
180
|
+
value
|
181
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
182
|
+
inner_type = Regexp.last_match[:inner_type]
|
183
|
+
value.map { |v| _deserialize(inner_type, v) }
|
184
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
185
|
+
k_type = Regexp.last_match[:k_type]
|
186
|
+
v_type = Regexp.last_match[:v_type]
|
187
|
+
{}.tap do |hash|
|
188
|
+
value.each do |k, v|
|
189
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
else # model
|
193
|
+
temp_model = TransferZero.const_get(type).new
|
194
|
+
temp_model.build_from_hash(value)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# Returns the string representation of the object
|
199
|
+
# @return [String] String presentation of the object
|
200
|
+
def to_s
|
201
|
+
to_hash.to_s
|
202
|
+
end
|
203
|
+
|
204
|
+
# to_body is an alias to to_hash (backward compatibility)
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
206
|
+
def to_body
|
207
|
+
to_hash
|
208
|
+
end
|
209
|
+
|
210
|
+
# Returns the object in the form of hash
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
212
|
+
def to_hash
|
213
|
+
hash = {}
|
214
|
+
self.class.attribute_map.each_pair do |attr, param|
|
215
|
+
value = self.send(attr)
|
216
|
+
next if value.nil?
|
217
|
+
hash[param] = _to_hash(value)
|
218
|
+
end
|
219
|
+
::ActiveSupport::HashWithIndifferentAccess.new(hash)
|
220
|
+
end
|
221
|
+
|
222
|
+
def [](key)
|
223
|
+
to_hash[key]
|
224
|
+
end
|
225
|
+
|
226
|
+
def dig(*args)
|
227
|
+
to_hash.dig(*args)
|
228
|
+
end
|
229
|
+
|
230
|
+
# Outputs non-array value in the form of hash
|
231
|
+
# For object, use to_hash. Otherwise, just return the value
|
232
|
+
# @param [Object] value Any valid value
|
233
|
+
# @return [Hash] Returns the value in the form of hash
|
234
|
+
def _to_hash(value)
|
235
|
+
if value.is_a?(Array)
|
236
|
+
value.compact.map { |v| _to_hash(v) }
|
237
|
+
elsif value.is_a?(Hash)
|
238
|
+
{}.tap do |hash|
|
239
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
240
|
+
end
|
241
|
+
elsif value.respond_to? :to_hash
|
242
|
+
value.to_hash
|
243
|
+
else
|
244
|
+
value
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
end
|
249
|
+
|
250
|
+
end
|
data/lib/transferzero-sdk.rb
CHANGED
@@ -69,6 +69,7 @@ require 'transferzero-sdk/models/payout_method_country_enum'
|
|
69
69
|
require 'transferzero-sdk/models/payout_method_details'
|
70
70
|
require 'transferzero-sdk/models/payout_method_details_brl_bank'
|
71
71
|
require 'transferzero-sdk/models/payout_method_details_btc'
|
72
|
+
require 'transferzero-sdk/models/payout_method_details_bwp_bank'
|
72
73
|
require 'transferzero-sdk/models/payout_method_details_balance'
|
73
74
|
require 'transferzero-sdk/models/payout_method_details_gbp_bank'
|
74
75
|
require 'transferzero-sdk/models/payout_method_details_ghs_bank'
|
@@ -90,6 +91,7 @@ require 'transferzero-sdk/models/payout_method_details_xof_bank'
|
|
90
91
|
require 'transferzero-sdk/models/payout_method_details_xof_cash'
|
91
92
|
require 'transferzero-sdk/models/payout_method_details_xof_mobile'
|
92
93
|
require 'transferzero-sdk/models/payout_method_details_zar_bank'
|
94
|
+
require 'transferzero-sdk/models/payout_method_details_zmw_bank'
|
93
95
|
require 'transferzero-sdk/models/payout_method_gender_enum'
|
94
96
|
require 'transferzero-sdk/models/payout_method_identity_card_type_enum'
|
95
97
|
require 'transferzero-sdk/models/payout_method_legal_entity_type_enum'
|
@@ -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::PayoutMethodDetailsBWPBank
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'PayoutMethodDetailsBWPBank' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = TransferZero::PayoutMethodDetailsBWPBank.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of PayoutMethodDetailsBWPBank' do
|
31
|
+
it 'should create an instance of PayoutMethodDetailsBWPBank' do
|
32
|
+
expect(@instance).to be_instance_of(TransferZero::PayoutMethodDetailsBWPBank)
|
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_name"' 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_account"' 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
|
@@ -0,0 +1,59 @@
|
|
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::PayoutMethodDetailsZMWBank
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'PayoutMethodDetailsZMWBank' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = TransferZero::PayoutMethodDetailsZMWBank.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of PayoutMethodDetailsZMWBank' do
|
31
|
+
it 'should create an instance of PayoutMethodDetailsZMWBank' do
|
32
|
+
expect(@instance).to be_instance_of(TransferZero::PayoutMethodDetailsZMWBank)
|
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 "branch_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
|
+
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.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TransferZero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -92,7 +92,6 @@ extensions: []
|
|
92
92
|
extra_rdoc_files: []
|
93
93
|
files:
|
94
94
|
- Gemfile
|
95
|
-
- Gemfile.lock
|
96
95
|
- LICENSE
|
97
96
|
- README.md
|
98
97
|
- Rakefile
|
@@ -157,6 +156,7 @@ files:
|
|
157
156
|
- docs/PayoutMethodDetails.md
|
158
157
|
- docs/PayoutMethodDetailsBRLBank.md
|
159
158
|
- docs/PayoutMethodDetailsBTC.md
|
159
|
+
- docs/PayoutMethodDetailsBWPBank.md
|
160
160
|
- docs/PayoutMethodDetailsBalance.md
|
161
161
|
- docs/PayoutMethodDetailsGBPBank.md
|
162
162
|
- docs/PayoutMethodDetailsGHSBank.md
|
@@ -178,6 +178,7 @@ files:
|
|
178
178
|
- docs/PayoutMethodDetailsXOFCash.md
|
179
179
|
- docs/PayoutMethodDetailsXOFMobile.md
|
180
180
|
- docs/PayoutMethodDetailsZARBank.md
|
181
|
+
- docs/PayoutMethodDetailsZMWBank.md
|
181
182
|
- docs/PayoutMethodGenderEnum.md
|
182
183
|
- docs/PayoutMethodIdentityCardTypeEnum.md
|
183
184
|
- docs/PayoutMethodLegalEntityTypeEnum.md
|
@@ -308,6 +309,7 @@ files:
|
|
308
309
|
- lib/transferzero-sdk/models/payout_method_details_balance.rb
|
309
310
|
- lib/transferzero-sdk/models/payout_method_details_brl_bank.rb
|
310
311
|
- lib/transferzero-sdk/models/payout_method_details_btc.rb
|
312
|
+
- lib/transferzero-sdk/models/payout_method_details_bwp_bank.rb
|
311
313
|
- lib/transferzero-sdk/models/payout_method_details_gbp_bank.rb
|
312
314
|
- lib/transferzero-sdk/models/payout_method_details_ghs_bank.rb
|
313
315
|
- lib/transferzero-sdk/models/payout_method_details_ghs_cash.rb
|
@@ -328,6 +330,7 @@ files:
|
|
328
330
|
- lib/transferzero-sdk/models/payout_method_details_xof_cash.rb
|
329
331
|
- lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb
|
330
332
|
- lib/transferzero-sdk/models/payout_method_details_zar_bank.rb
|
333
|
+
- lib/transferzero-sdk/models/payout_method_details_zmw_bank.rb
|
331
334
|
- lib/transferzero-sdk/models/payout_method_gender_enum.rb
|
332
335
|
- lib/transferzero-sdk/models/payout_method_identity_card_type_enum.rb
|
333
336
|
- lib/transferzero-sdk/models/payout_method_legal_entity_type_enum.rb
|
@@ -447,6 +450,7 @@ files:
|
|
447
450
|
- spec/models/payout_method_details_balance_spec.rb
|
448
451
|
- spec/models/payout_method_details_brl_bank_spec.rb
|
449
452
|
- spec/models/payout_method_details_btc_spec.rb
|
453
|
+
- spec/models/payout_method_details_bwp_bank_spec.rb
|
450
454
|
- spec/models/payout_method_details_gbp_bank_spec.rb
|
451
455
|
- spec/models/payout_method_details_ghs_bank_spec.rb
|
452
456
|
- spec/models/payout_method_details_ghs_cash_spec.rb
|
@@ -468,6 +472,7 @@ files:
|
|
468
472
|
- spec/models/payout_method_details_xof_cash_spec.rb
|
469
473
|
- spec/models/payout_method_details_xof_mobile_spec.rb
|
470
474
|
- spec/models/payout_method_details_zar_bank_spec.rb
|
475
|
+
- spec/models/payout_method_details_zmw_bank_spec.rb
|
471
476
|
- spec/models/payout_method_gender_enum_spec.rb
|
472
477
|
- spec/models/payout_method_identity_card_type_enum_spec.rb
|
473
478
|
- spec/models/payout_method_legal_entity_type_enum_spec.rb
|
@@ -522,17 +527,6 @@ files:
|
|
522
527
|
- spec/models/webhook_log_spec.rb
|
523
528
|
- spec/models/webhook_spec.rb
|
524
529
|
- spec/spec_helper.rb
|
525
|
-
- transferzero-sdk-1.19.0.gem
|
526
|
-
- transferzero-sdk-1.19.2.gem
|
527
|
-
- transferzero-sdk-1.19.3.gem
|
528
|
-
- transferzero-sdk-1.19.4.gem
|
529
|
-
- transferzero-sdk-1.19.5.gem
|
530
|
-
- transferzero-sdk-1.20.1.gem
|
531
|
-
- transferzero-sdk-1.21.0.gem
|
532
|
-
- transferzero-sdk-1.22.0.gem
|
533
|
-
- transferzero-sdk-1.23.0.gem
|
534
|
-
- transferzero-sdk-1.23.3.gem
|
535
|
-
- transferzero-sdk-1.23.5.gem
|
536
530
|
- transferzero-sdk.gemspec
|
537
531
|
homepage: https://github.com/transferzero/transferzero-sdk-ruby
|
538
532
|
licenses:
|
@@ -614,6 +608,7 @@ test_files:
|
|
614
608
|
- spec/models/transaction_list_response_spec.rb
|
615
609
|
- spec/models/payin_method_spec.rb
|
616
610
|
- spec/models/sender_response_spec.rb
|
611
|
+
- spec/models/payout_method_details_bwp_bank_spec.rb
|
617
612
|
- spec/models/payin_method_details_mobile_spec.rb
|
618
613
|
- spec/models/payout_method_details_mad_cash_spec.rb
|
619
614
|
- spec/models/account_validation_response_spec.rb
|
@@ -625,6 +620,7 @@ test_files:
|
|
625
620
|
- spec/models/payout_method_details_brl_bank_spec.rb
|
626
621
|
- spec/models/validation_error_description_spec.rb
|
627
622
|
- spec/models/payin_method_request_spec.rb
|
623
|
+
- spec/models/payout_method_details_zmw_bank_spec.rb
|
628
624
|
- spec/models/proof_of_payment_list_response_spec.rb
|
629
625
|
- spec/models/transaction_webhook_spec.rb
|
630
626
|
- spec/models/payout_method_details_xof_bank_spec.rb
|
data/Gemfile.lock
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
transferzero-sdk (1.11.0)
|
5
|
-
activesupport (>= 4)
|
6
|
-
json (>= 1.4)
|
7
|
-
typhoeus (~> 1.0, >= 1.0.1)
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
ZenTest (4.12.0)
|
13
|
-
activesupport (6.1.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
|
-
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
|
-
byebug (11.1.3)
|
28
|
-
coderay (1.1.3)
|
29
|
-
concurrent-ruby (1.1.8)
|
30
|
-
crack (0.4.4)
|
31
|
-
diff-lcs (1.4.4)
|
32
|
-
ethon (0.12.0)
|
33
|
-
ffi (>= 1.3.0)
|
34
|
-
ffi (1.13.1)
|
35
|
-
hashdiff (1.0.1)
|
36
|
-
i18n (1.8.9)
|
37
|
-
concurrent-ruby (~> 1.0)
|
38
|
-
json (2.5.1)
|
39
|
-
method_source (1.0.0)
|
40
|
-
minitest (5.14.3)
|
41
|
-
pry (0.13.1)
|
42
|
-
coderay (~> 1.1)
|
43
|
-
method_source (~> 1.0)
|
44
|
-
pry-byebug (3.9.0)
|
45
|
-
byebug (~> 11.0)
|
46
|
-
pry (~> 0.13.0)
|
47
|
-
public_suffix (4.0.6)
|
48
|
-
rake (12.0.0)
|
49
|
-
rspec (3.10.0)
|
50
|
-
rspec-core (~> 3.10.0)
|
51
|
-
rspec-expectations (~> 3.10.0)
|
52
|
-
rspec-mocks (~> 3.10.0)
|
53
|
-
rspec-core (3.10.0)
|
54
|
-
rspec-support (~> 3.10.0)
|
55
|
-
rspec-expectations (3.10.0)
|
56
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
57
|
-
rspec-support (~> 3.10.0)
|
58
|
-
rspec-mocks (3.10.0)
|
59
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
60
|
-
rspec-support (~> 3.10.0)
|
61
|
-
rspec-support (3.10.0)
|
62
|
-
sys-uname (1.2.2)
|
63
|
-
ffi (~> 1.1)
|
64
|
-
typhoeus (1.4.0)
|
65
|
-
ethon (>= 0.9.0)
|
66
|
-
tzinfo (2.0.4)
|
67
|
-
concurrent-ruby (~> 1.0)
|
68
|
-
vcr (3.0.3)
|
69
|
-
webmock (1.24.6)
|
70
|
-
addressable (>= 2.3.6)
|
71
|
-
crack (>= 0.3.2)
|
72
|
-
hashdiff
|
73
|
-
zeitwerk (2.4.2)
|
74
|
-
|
75
|
-
PLATFORMS
|
76
|
-
ruby
|
77
|
-
|
78
|
-
DEPENDENCIES
|
79
|
-
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
|
-
pry-byebug
|
85
|
-
rake (~> 12.0.0)
|
86
|
-
rspec (~> 3.6, >= 3.6.0)
|
87
|
-
transferzero-sdk!
|
88
|
-
vcr (~> 3.0, >= 3.0.1)
|
89
|
-
webmock (~> 1.24, >= 1.24.3)
|
90
|
-
|
91
|
-
BUNDLED WITH
|
92
|
-
1.17.3
|
data/transferzero-sdk-1.19.0.gem
DELETED
Binary file
|
data/transferzero-sdk-1.19.2.gem
DELETED
Binary file
|
data/transferzero-sdk-1.19.3.gem
DELETED
Binary file
|
data/transferzero-sdk-1.19.4.gem
DELETED
Binary file
|
data/transferzero-sdk-1.19.5.gem
DELETED
Binary file
|
data/transferzero-sdk-1.20.1.gem
DELETED
Binary file
|
data/transferzero-sdk-1.21.0.gem
DELETED
Binary file
|
data/transferzero-sdk-1.22.0.gem
DELETED
Binary file
|
data/transferzero-sdk-1.23.0.gem
DELETED
Binary file
|
data/transferzero-sdk-1.23.3.gem
DELETED
Binary file
|
data/transferzero-sdk-1.23.5.gem
DELETED
Binary file
|