transferzero-sdk 1.27.3 → 1.27.6
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 +4 -4
- data/docs/PayoutMethodDetails.md +2 -2
- data/docs/PayoutMethodDetailsZARBank.md +6 -4
- data/lib/transferzero-sdk/api_client.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method_details.rb +15 -15
- data/lib/transferzero-sdk/models/payout_method_details_zar_bank.rb +11 -22
- data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +2 -0
- data/lib/transferzero-sdk/version.rb +1 -1
- metadata +128 -128
- data/transferzero-sdk-1.26.1.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: 69c09c863196a8b059b9f339e996c7621ab925c234f3e61598f84365ca16f46d
|
4
|
+
data.tar.gz: 353de11249637554debf347c6dcebc78e61bf98a7d945e59f73a8bb5ce6ca763
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91ef089e9e371b3b21127a79993098fa14e70b41fec97b74214dcec67d9d4482e0abf1d7d9a0bc8987b90bfa04a3a5b2d3fa2f9a2d462af0948509219c7995f8
|
7
|
+
data.tar.gz: a7b4c91b5a301640185b9a7f1db539fd0bfbc9ff6d4cf3dc8a94e4cb57c138b3b9ea69327cd620a66cce31e4dcfa8044f7655994b9a5c6821478371e9910fdab
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
transferzero-sdk (1.27.6)
|
5
|
+
activesupport (>= 4, < 7)
|
6
|
+
faraday (~> 1.0, >= 1.0.1)
|
7
|
+
json (>= 1.4)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
ZenTest (4.12.1)
|
13
|
+
activesupport (6.1.7.3)
|
14
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
|
+
i18n (>= 1.6, < 2)
|
16
|
+
minitest (>= 5.1)
|
17
|
+
tzinfo (~> 2.0)
|
18
|
+
zeitwerk (~> 2.3)
|
19
|
+
byebug (11.1.3)
|
20
|
+
coderay (1.1.3)
|
21
|
+
concurrent-ruby (1.2.2)
|
22
|
+
diff-lcs (1.5.0)
|
23
|
+
faraday (1.10.3)
|
24
|
+
faraday-em_http (~> 1.0)
|
25
|
+
faraday-em_synchrony (~> 1.0)
|
26
|
+
faraday-excon (~> 1.1)
|
27
|
+
faraday-httpclient (~> 1.0)
|
28
|
+
faraday-multipart (~> 1.0)
|
29
|
+
faraday-net_http (~> 1.0)
|
30
|
+
faraday-net_http_persistent (~> 1.0)
|
31
|
+
faraday-patron (~> 1.0)
|
32
|
+
faraday-rack (~> 1.0)
|
33
|
+
faraday-retry (~> 1.0)
|
34
|
+
ruby2_keywords (>= 0.0.4)
|
35
|
+
faraday-em_http (1.0.0)
|
36
|
+
faraday-em_synchrony (1.0.0)
|
37
|
+
faraday-excon (1.1.0)
|
38
|
+
faraday-httpclient (1.0.1)
|
39
|
+
faraday-multipart (1.0.4)
|
40
|
+
multipart-post (~> 2)
|
41
|
+
faraday-net_http (1.0.1)
|
42
|
+
faraday-net_http_persistent (1.2.0)
|
43
|
+
faraday-patron (1.0.0)
|
44
|
+
faraday-rack (1.0.0)
|
45
|
+
faraday-retry (1.0.3)
|
46
|
+
i18n (1.14.1)
|
47
|
+
concurrent-ruby (~> 1.0)
|
48
|
+
json (2.6.3)
|
49
|
+
method_source (1.0.0)
|
50
|
+
minitest (5.18.0)
|
51
|
+
multipart-post (2.3.0)
|
52
|
+
pry (0.14.2)
|
53
|
+
coderay (~> 1.1)
|
54
|
+
method_source (~> 1.0)
|
55
|
+
pry-byebug (3.10.1)
|
56
|
+
byebug (~> 11.0)
|
57
|
+
pry (>= 0.13, < 0.15)
|
58
|
+
rake (12.0.0)
|
59
|
+
rspec (3.12.0)
|
60
|
+
rspec-core (~> 3.12.0)
|
61
|
+
rspec-expectations (~> 3.12.0)
|
62
|
+
rspec-mocks (~> 3.12.0)
|
63
|
+
rspec-core (3.12.2)
|
64
|
+
rspec-support (~> 3.12.0)
|
65
|
+
rspec-expectations (3.12.3)
|
66
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
67
|
+
rspec-support (~> 3.12.0)
|
68
|
+
rspec-mocks (3.12.5)
|
69
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
70
|
+
rspec-support (~> 3.12.0)
|
71
|
+
rspec-support (3.12.0)
|
72
|
+
ruby2_keywords (0.0.5)
|
73
|
+
tzinfo (2.0.6)
|
74
|
+
concurrent-ruby (~> 1.0)
|
75
|
+
zeitwerk (2.6.8)
|
76
|
+
|
77
|
+
PLATFORMS
|
78
|
+
x86_64-linux
|
79
|
+
|
80
|
+
DEPENDENCIES
|
81
|
+
ZenTest (~> 4.11, >= 4.11.2)
|
82
|
+
pry-byebug
|
83
|
+
rake (~> 12.0.0)
|
84
|
+
rspec (~> 3.6, >= 3.6.0)
|
85
|
+
transferzero-sdk!
|
86
|
+
|
87
|
+
BUNDLED WITH
|
88
|
+
2.4.10
|
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.27.
|
10
|
+
- Package version: 1.27.5
|
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.27.
|
34
|
+
gem install ./transferzero-sdk-1.27.5.gem
|
35
35
|
```
|
36
|
-
(for development, run `gem install --dev ./transferzero-sdk-1.27.
|
36
|
+
(for development, run `gem install --dev ./transferzero-sdk-1.27.5.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.27.
|
42
|
+
gem 'transferzero-sdk', '~> 1.27.5'
|
43
43
|
|
44
44
|
### Install from Git
|
45
45
|
|
data/docs/PayoutMethodDetails.md
CHANGED
@@ -34,6 +34,7 @@ Name | Type | Description | Notes
|
|
34
34
|
**postal_code** | **String** | |
|
35
35
|
**city** | **String** | |
|
36
36
|
**email** | **String** | | [optional]
|
37
|
+
**branch_code** | **String** | |
|
37
38
|
**transfer_reason_code** | **String** | | [optional]
|
38
39
|
**contact_first_name** | **String** | | [optional]
|
39
40
|
**contact_last_name** | **String** | | [optional]
|
@@ -42,7 +43,6 @@ Name | Type | Description | Notes
|
|
42
43
|
**legal_entity_type** | [**PayoutMethodLegalEntityTypeEnum**](PayoutMethodLegalEntityTypeEnum.md) | | [optional]
|
43
44
|
**routing_number** | **String** | | [optional]
|
44
45
|
**swift_code** | **String** | |
|
45
|
-
**branch_code** | **String** | |
|
46
46
|
**pix_key_type** | [**PayoutMethodPixKeyTypeEnum**](PayoutMethodPixKeyTypeEnum.md) | | [optional]
|
47
47
|
**pix_key_value** | **String** | | [optional]
|
48
48
|
**ifsc_code** | **String** | |
|
@@ -82,6 +82,7 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
|
|
82
82
|
postal_code: null,
|
83
83
|
city: null,
|
84
84
|
email: null,
|
85
|
+
branch_code: null,
|
85
86
|
transfer_reason_code: null,
|
86
87
|
contact_first_name: null,
|
87
88
|
contact_last_name: null,
|
@@ -90,7 +91,6 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
|
|
90
91
|
legal_entity_type: null,
|
91
92
|
routing_number: null,
|
92
93
|
swift_code: null,
|
93
|
-
branch_code: null,
|
94
94
|
pix_key_type: null,
|
95
95
|
pix_key_value: null,
|
96
96
|
ifsc_code: null)
|
@@ -6,11 +6,12 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**first_name** | **String** | |
|
8
8
|
**last_name** | **String** | |
|
9
|
-
**street** | **String** | |
|
10
|
-
**postal_code** | **String** | |
|
11
|
-
**city** | **String** | |
|
9
|
+
**street** | **String** | | [optional]
|
10
|
+
**postal_code** | **String** | | [optional]
|
11
|
+
**city** | **String** | | [optional]
|
12
12
|
**email** | **String** | | [optional]
|
13
|
-
**bank_code** | **String** | |
|
13
|
+
**bank_code** | **String** | | [optional]
|
14
|
+
**branch_code** | **String** | | [optional]
|
14
15
|
**bank_account** | **String** | |
|
15
16
|
**phone_number** | **String** | |
|
16
17
|
**transfer_reason_code** | **String** | | [optional]
|
@@ -34,6 +35,7 @@ instance = TransferZero::PayoutMethodDetailsZARBank.new(first_name: null,
|
|
34
35
|
city: null,
|
35
36
|
email: null,
|
36
37
|
bank_code: null,
|
38
|
+
branch_code: null,
|
37
39
|
bank_account: null,
|
38
40
|
phone_number: null,
|
39
41
|
transfer_reason_code: null,
|
@@ -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.27.
|
39
|
+
@user_agent = "TransferZero-SDK/Ruby/1.27.5"
|
40
40
|
@default_headers = {
|
41
41
|
'Content-Type' => 'application/json',
|
42
42
|
'User-Agent' => @user_agent
|
@@ -74,6 +74,8 @@ class PayoutMethodDetails
|
|
74
74
|
|
75
75
|
attr_accessor :email
|
76
76
|
|
77
|
+
attr_accessor :branch_code
|
78
|
+
|
77
79
|
attr_accessor :transfer_reason_code
|
78
80
|
|
79
81
|
attr_accessor :contact_first_name
|
@@ -90,8 +92,6 @@ class PayoutMethodDetails
|
|
90
92
|
|
91
93
|
attr_accessor :swift_code
|
92
94
|
|
93
|
-
attr_accessor :branch_code
|
94
|
-
|
95
95
|
attr_accessor :pix_key_type
|
96
96
|
|
97
97
|
attr_accessor :pix_key_value
|
@@ -131,6 +131,7 @@ class PayoutMethodDetails
|
|
131
131
|
:'postal_code' => :'postal_code',
|
132
132
|
:'city' => :'city',
|
133
133
|
:'email' => :'email',
|
134
|
+
:'branch_code' => :'branch_code',
|
134
135
|
:'transfer_reason_code' => :'transfer_reason_code',
|
135
136
|
:'contact_first_name' => :'contact_first_name',
|
136
137
|
:'contact_last_name' => :'contact_last_name',
|
@@ -139,7 +140,6 @@ class PayoutMethodDetails
|
|
139
140
|
:'legal_entity_type' => :'legal_entity_type',
|
140
141
|
:'routing_number' => :'routing_number',
|
141
142
|
:'swift_code' => :'swift_code',
|
142
|
-
:'branch_code' => :'branch_code',
|
143
143
|
:'pix_key_type' => :'pix_key_type',
|
144
144
|
:'pix_key_value' => :'pix_key_value',
|
145
145
|
:'ifsc_code' => :'ifsc_code'
|
@@ -179,6 +179,7 @@ class PayoutMethodDetails
|
|
179
179
|
:'postal_code' => :'String',
|
180
180
|
:'city' => :'String',
|
181
181
|
:'email' => :'String',
|
182
|
+
:'branch_code' => :'String',
|
182
183
|
:'transfer_reason_code' => :'String',
|
183
184
|
:'contact_first_name' => :'String',
|
184
185
|
:'contact_last_name' => :'String',
|
@@ -187,7 +188,6 @@ class PayoutMethodDetails
|
|
187
188
|
:'legal_entity_type' => :'PayoutMethodLegalEntityTypeEnum',
|
188
189
|
:'routing_number' => :'String',
|
189
190
|
:'swift_code' => :'String',
|
190
|
-
:'branch_code' => :'String',
|
191
191
|
:'pix_key_type' => :'PayoutMethodPixKeyTypeEnum',
|
192
192
|
:'pix_key_value' => :'String',
|
193
193
|
:'ifsc_code' => :'String'
|
@@ -362,6 +362,10 @@ class PayoutMethodDetails
|
|
362
362
|
self.email = attributes[:'email']
|
363
363
|
end
|
364
364
|
|
365
|
+
if attributes.key?(:'branch_code')
|
366
|
+
self.branch_code = attributes[:'branch_code']
|
367
|
+
end
|
368
|
+
|
365
369
|
if attributes.key?(:'transfer_reason_code')
|
366
370
|
self.transfer_reason_code = attributes[:'transfer_reason_code']
|
367
371
|
end
|
@@ -394,10 +398,6 @@ class PayoutMethodDetails
|
|
394
398
|
self.swift_code = attributes[:'swift_code']
|
395
399
|
end
|
396
400
|
|
397
|
-
if attributes.key?(:'branch_code')
|
398
|
-
self.branch_code = attributes[:'branch_code']
|
399
|
-
end
|
400
|
-
|
401
401
|
if attributes.key?(:'pix_key_type')
|
402
402
|
self.pix_key_type = attributes[:'pix_key_type']
|
403
403
|
end
|
@@ -495,14 +495,14 @@ class PayoutMethodDetails
|
|
495
495
|
invalid_properties.push('invalid value for "city", city cannot be nil.')
|
496
496
|
end
|
497
497
|
|
498
|
-
if @swift_code.nil?
|
499
|
-
invalid_properties.push('invalid value for "swift_code", swift_code cannot be nil.')
|
500
|
-
end
|
501
|
-
|
502
498
|
if @branch_code.nil?
|
503
499
|
invalid_properties.push('invalid value for "branch_code", branch_code cannot be nil.')
|
504
500
|
end
|
505
501
|
|
502
|
+
if @swift_code.nil?
|
503
|
+
invalid_properties.push('invalid value for "swift_code", swift_code cannot be nil.')
|
504
|
+
end
|
505
|
+
|
506
506
|
if @ifsc_code.nil?
|
507
507
|
invalid_properties.push('invalid value for "ifsc_code", ifsc_code cannot be nil.')
|
508
508
|
end
|
@@ -533,8 +533,8 @@ class PayoutMethodDetails
|
|
533
533
|
return false if @street.nil?
|
534
534
|
return false if @postal_code.nil?
|
535
535
|
return false if @city.nil?
|
536
|
-
return false if @swift_code.nil?
|
537
536
|
return false if @branch_code.nil?
|
537
|
+
return false if @swift_code.nil?
|
538
538
|
return false if @ifsc_code.nil?
|
539
539
|
_one_of_found = false
|
540
540
|
openapi_one_of.each do |_class|
|
@@ -590,6 +590,7 @@ class PayoutMethodDetails
|
|
590
590
|
postal_code == o.postal_code &&
|
591
591
|
city == o.city &&
|
592
592
|
email == o.email &&
|
593
|
+
branch_code == o.branch_code &&
|
593
594
|
transfer_reason_code == o.transfer_reason_code &&
|
594
595
|
contact_first_name == o.contact_first_name &&
|
595
596
|
contact_last_name == o.contact_last_name &&
|
@@ -598,7 +599,6 @@ class PayoutMethodDetails
|
|
598
599
|
legal_entity_type == o.legal_entity_type &&
|
599
600
|
routing_number == o.routing_number &&
|
600
601
|
swift_code == o.swift_code &&
|
601
|
-
branch_code == o.branch_code &&
|
602
602
|
pix_key_type == o.pix_key_type &&
|
603
603
|
pix_key_value == o.pix_key_value &&
|
604
604
|
ifsc_code == o.ifsc_code
|
@@ -613,7 +613,7 @@ class PayoutMethodDetails
|
|
613
613
|
# Calculates hash code according to all attributes.
|
614
614
|
# @return [Integer] Hash code
|
615
615
|
def hash
|
616
|
-
[first_name, last_name, bank_code, bank_account, bank_account_type, phone_number, mobile_provider, country, transfer_reason, iban, bank_name, bank_country, cash_provider, sort_code, bic, sender_identity_card_type, sender_identity_card_id, sender_city_of_birth, sender_country_of_birth, sender_gender, reason, identity_card_type, identity_card_id, reference, name, address, street, postal_code, city, email, transfer_reason_code, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type, routing_number, swift_code,
|
616
|
+
[first_name, last_name, bank_code, bank_account, bank_account_type, phone_number, mobile_provider, country, transfer_reason, iban, bank_name, bank_country, cash_provider, sort_code, bic, sender_identity_card_type, sender_identity_card_id, sender_city_of_birth, sender_country_of_birth, sender_gender, reason, identity_card_type, identity_card_id, reference, name, address, street, postal_code, city, email, branch_code, transfer_reason_code, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type, routing_number, swift_code, pix_key_type, pix_key_value, ifsc_code].hash
|
617
617
|
end
|
618
618
|
|
619
619
|
require 'active_support/core_ext/hash'
|
@@ -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\": \"First\", // Mandatory for personal payouts; \"last_name\": \"Last\", // Mandatory for personal payouts; \"name\" \"First Ltd\", // Mandatory for business payouts; \"contact_first_name\" \"Business\",
|
16
|
+
# ```JSON \"details\": { \"first_name\": \"First\", // Mandatory for personal payouts; \"last_name\": \"Last\", // Mandatory for personal payouts; \"name\" \"First Ltd\", // Mandatory for business payouts; \"contact_first_name\" \"Business\", \"contact_last_name\" \"Contact\", \"street\": \"Main Street\", \"postal_code\": \"AB0001\", \"city\": \"Cape Town\", \"email\": \"recipient@email.com\", \"bank_name\" 'Bank Zero', // Optional \"bank_code\": \"334810\", // Optional; Required if branch_code is empty \"branch_code\": \"630067\", // Optional; Required if bank_code is empty \"bank_account\": \"12345678\", \"phone_number\": \"+27119785313\", // E.164 international format \"transfer_reason\": \"personal_account\", // New transfer reason field \"legal_entity_type\": \"sole_proprietorship\", // Optional; Default value is \"person\"; \"nature_of_business\": \"mining\", // Optional for business payouts; \"registration_number\": \"17364BGC\" // Optional for business payouts; } ``` See [ZAR Bank](https://docs.transferzero.com/docs/payout-details/#zarbank) documentation for the bank_code and transfer_reason lists
|
17
17
|
class PayoutMethodDetailsZARBank
|
18
18
|
attr_accessor :first_name
|
19
19
|
|
@@ -29,6 +29,8 @@ class PayoutMethodDetailsZARBank
|
|
29
29
|
|
30
30
|
attr_accessor :bank_code
|
31
31
|
|
32
|
+
attr_accessor :branch_code
|
33
|
+
|
32
34
|
attr_accessor :bank_account
|
33
35
|
|
34
36
|
attr_accessor :phone_number
|
@@ -59,6 +61,7 @@ class PayoutMethodDetailsZARBank
|
|
59
61
|
:'city' => :'city',
|
60
62
|
:'email' => :'email',
|
61
63
|
:'bank_code' => :'bank_code',
|
64
|
+
:'branch_code' => :'branch_code',
|
62
65
|
:'bank_account' => :'bank_account',
|
63
66
|
:'phone_number' => :'phone_number',
|
64
67
|
:'transfer_reason_code' => :'transfer_reason_code',
|
@@ -82,6 +85,7 @@ class PayoutMethodDetailsZARBank
|
|
82
85
|
:'city' => :'String',
|
83
86
|
:'email' => :'String',
|
84
87
|
:'bank_code' => :'String',
|
88
|
+
:'branch_code' => :'String',
|
85
89
|
:'bank_account' => :'String',
|
86
90
|
:'phone_number' => :'String',
|
87
91
|
:'transfer_reason_code' => :'String',
|
@@ -138,6 +142,10 @@ class PayoutMethodDetailsZARBank
|
|
138
142
|
self.bank_code = attributes[:'bank_code']
|
139
143
|
end
|
140
144
|
|
145
|
+
if attributes.key?(:'branch_code')
|
146
|
+
self.branch_code = attributes[:'branch_code']
|
147
|
+
end
|
148
|
+
|
141
149
|
if attributes.key?(:'bank_account')
|
142
150
|
self.bank_account = attributes[:'bank_account']
|
143
151
|
end
|
@@ -191,22 +199,6 @@ class PayoutMethodDetailsZARBank
|
|
191
199
|
invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
|
192
200
|
end
|
193
201
|
|
194
|
-
if @street.nil?
|
195
|
-
invalid_properties.push('invalid value for "street", street cannot be nil.')
|
196
|
-
end
|
197
|
-
|
198
|
-
if @postal_code.nil?
|
199
|
-
invalid_properties.push('invalid value for "postal_code", postal_code cannot be nil.')
|
200
|
-
end
|
201
|
-
|
202
|
-
if @city.nil?
|
203
|
-
invalid_properties.push('invalid value for "city", city cannot be nil.')
|
204
|
-
end
|
205
|
-
|
206
|
-
if @bank_code.nil?
|
207
|
-
invalid_properties.push('invalid value for "bank_code", bank_code cannot be nil.')
|
208
|
-
end
|
209
|
-
|
210
202
|
if @bank_account.nil?
|
211
203
|
invalid_properties.push('invalid value for "bank_account", bank_account cannot be nil.')
|
212
204
|
end
|
@@ -223,10 +215,6 @@ class PayoutMethodDetailsZARBank
|
|
223
215
|
def valid?
|
224
216
|
return false if @first_name.nil?
|
225
217
|
return false if @last_name.nil?
|
226
|
-
return false if @street.nil?
|
227
|
-
return false if @postal_code.nil?
|
228
|
-
return false if @city.nil?
|
229
|
-
return false if @bank_code.nil?
|
230
218
|
return false if @bank_account.nil?
|
231
219
|
return false if @phone_number.nil?
|
232
220
|
true
|
@@ -244,6 +232,7 @@ class PayoutMethodDetailsZARBank
|
|
244
232
|
city == o.city &&
|
245
233
|
email == o.email &&
|
246
234
|
bank_code == o.bank_code &&
|
235
|
+
branch_code == o.branch_code &&
|
247
236
|
bank_account == o.bank_account &&
|
248
237
|
phone_number == o.phone_number &&
|
249
238
|
transfer_reason_code == o.transfer_reason_code &&
|
@@ -265,7 +254,7 @@ class PayoutMethodDetailsZARBank
|
|
265
254
|
# Calculates hash code according to all attributes.
|
266
255
|
# @return [Integer] Hash code
|
267
256
|
def hash
|
268
|
-
[first_name, last_name, street, postal_code, city, email, bank_code, bank_account, phone_number, transfer_reason_code, transfer_reason, name, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type].hash
|
257
|
+
[first_name, last_name, street, postal_code, city, email, bank_code, branch_code, bank_account, phone_number, transfer_reason_code, transfer_reason, name, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type].hash
|
269
258
|
end
|
270
259
|
|
271
260
|
require 'active_support/core_ext/hash'
|
@@ -28,6 +28,8 @@ class PayoutMethodMobileProviderEnum
|
|
28
28
|
EMONEY = "emoney".freeze
|
29
29
|
FREE = "free".freeze
|
30
30
|
WAVE = "wave".freeze
|
31
|
+
EXPRESSO = "expresso".freeze
|
32
|
+
TMONEY = "tmoney".freeze
|
31
33
|
|
32
34
|
# Builds the enum from string
|
33
35
|
# @param [String] The enum value in the form of the string
|
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.27.
|
4
|
+
version: 1.27.6
|
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-06-05 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
|
@@ -557,7 +558,6 @@ files:
|
|
557
558
|
- spec/models/webhook_log_spec.rb
|
558
559
|
- spec/models/webhook_spec.rb
|
559
560
|
- spec/spec_helper.rb
|
560
|
-
- transferzero-sdk-1.26.1.gem
|
561
561
|
- transferzero-sdk.gemspec
|
562
562
|
homepage: https://github.com/transferzero/transferzero-sdk-ruby
|
563
563
|
licenses:
|
@@ -578,161 +578,161 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
578
578
|
- !ruby/object:Gem::Version
|
579
579
|
version: '0'
|
580
580
|
requirements: []
|
581
|
-
rubygems_version: 3.
|
581
|
+
rubygems_version: 3.4.10
|
582
582
|
signing_key:
|
583
583
|
specification_version: 4
|
584
584
|
summary: TransferZero API Ruby Gem
|
585
585
|
test_files:
|
586
|
-
- spec/api/
|
587
|
-
- spec/api/
|
588
|
-
- spec/api/
|
589
|
-
- spec/api/
|
590
|
-
- spec/api/recipients_api_spec.rb
|
586
|
+
- spec/api/payout_methods_api_spec.rb
|
587
|
+
- spec/api/account_debits_api_spec.rb
|
588
|
+
- spec/api/account_validation_api_spec.rb
|
589
|
+
- spec/api/documents_api_spec.rb
|
591
590
|
- spec/api/payin_methods_api_spec.rb
|
592
591
|
- spec/api/senders_api_spec.rb
|
593
|
-
- spec/api/
|
594
|
-
- spec/api/payout_methods_api_spec.rb
|
592
|
+
- spec/api/webhooks_api_spec.rb
|
595
593
|
- spec/api/api_logs_api_spec.rb
|
596
|
-
- spec/api/
|
594
|
+
- spec/api/transactions_api_spec.rb
|
595
|
+
- spec/api/logs_api_spec.rb
|
597
596
|
- spec/api/accounts_api_spec.rb
|
597
|
+
- spec/api/currency_info_api_spec.rb
|
598
598
|
- spec/api/payment_methods_api_spec.rb
|
599
|
-
- spec/api/
|
599
|
+
- spec/api/recipients_api_spec.rb
|
600
600
|
- spec/configuration_spec.rb
|
601
|
-
- spec/models/webhook_definition_response_spec.rb
|
602
|
-
- spec/models/payout_method_details_cad_bank_spec.rb
|
603
|
-
- spec/models/payout_method_details_xof_cash_spec.rb
|
604
|
-
- spec/models/payout_method_details_nzd_bank_spec.rb
|
605
|
-
- spec/models/sender_spec.rb
|
606
|
-
- spec/models/currency_opposite_spec.rb
|
607
|
-
- spec/models/payout_method_details_iban_spec.rb
|
608
|
-
- spec/models/webhook_spec.rb
|
609
|
-
- spec/models/payin_method_details_ngn_bank_spec.rb
|
610
|
-
- spec/models/payment_method_opposite_spec.rb
|
611
|
-
- spec/models/sender_webhook_spec.rb
|
612
601
|
- spec/models/payout_method_details_xaf_bank_spec.rb
|
602
|
+
- spec/models/payin_method_ux_flow_spec.rb
|
613
603
|
- spec/models/webhook_definition_spec.rb
|
614
|
-
- spec/models/
|
615
|
-
- spec/models/currency_list_response_spec.rb
|
616
|
-
- spec/models/debit_response_spec.rb
|
617
|
-
- spec/models/currency_opposite_all_of_spec.rb
|
618
|
-
- spec/models/webhook_definition_event_list_response_spec.rb
|
619
|
-
- spec/models/debit_spec.rb
|
620
|
-
- spec/models/payin_method_details_btc_spec.rb
|
621
|
-
- spec/models/transaction_response_meta_spec.rb
|
622
|
-
- spec/models/transaction_traits_spec.rb
|
623
|
-
- spec/models/account_spec.rb
|
624
|
-
- spec/models/webhook_definition_request_spec.rb
|
625
|
-
- spec/models/sender_state_spec.rb
|
626
|
-
- spec/models/payout_method_request_spec.rb
|
627
|
-
- spec/models/document_webhook_all_of_spec.rb
|
628
|
-
- spec/models/payout_method_details_kes_mobile_spec.rb
|
629
|
-
- spec/models/payout_method_details_gbp_bank_spec.rb
|
630
|
-
- spec/models/webhook_log_metadata_request_spec.rb
|
604
|
+
- spec/models/transaction_request_spec.rb
|
631
605
|
- spec/models/recipient_webhook_spec.rb
|
632
|
-
- spec/models/
|
633
|
-
- spec/models/
|
634
|
-
- spec/models/
|
635
|
-
- spec/models/pagination_meta_spec.rb
|
636
|
-
- spec/models/account_validation_result_spec.rb
|
637
|
-
- spec/models/debit_request_wrapper_spec.rb
|
638
|
-
- spec/models/document_webhook_spec.rb
|
606
|
+
- spec/models/pagination_spec.rb
|
607
|
+
- spec/models/recipient_spec.rb
|
608
|
+
- spec/models/account_meta_spec.rb
|
639
609
|
- spec/models/transaction_webhook_all_of_spec.rb
|
640
|
-
- spec/models/
|
641
|
-
- spec/models/
|
642
|
-
- spec/models/
|
643
|
-
- spec/models/
|
644
|
-
- spec/models/transaction_list_response_spec.rb
|
645
|
-
- spec/models/payin_method_spec.rb
|
646
|
-
- spec/models/sender_response_spec.rb
|
647
|
-
- spec/models/payout_method_details_bwp_bank_spec.rb
|
648
|
-
- spec/models/payin_method_details_mobile_spec.rb
|
610
|
+
- spec/models/payout_method_pix_key_type_enum_spec.rb
|
611
|
+
- spec/models/transaction_state_spec.rb
|
612
|
+
- spec/models/payout_method_details_ghs_cash_spec.rb
|
613
|
+
- spec/models/sender_state_spec.rb
|
649
614
|
- spec/models/currency_exchange_all_of_spec.rb
|
650
|
-
- spec/models/
|
615
|
+
- spec/models/document_request_spec.rb
|
651
616
|
- spec/models/account_validation_response_spec.rb
|
652
|
-
- spec/models/
|
617
|
+
- spec/models/payout_method_legal_entity_type_enum_spec.rb
|
618
|
+
- spec/models/webhook_spec.rb
|
619
|
+
- spec/models/proof_of_payment_spec.rb
|
620
|
+
- spec/models/payout_method_details_xaf_mobile_spec.rb
|
621
|
+
- spec/models/payout_method_details_xof_mobile_spec.rb
|
622
|
+
- spec/models/transaction_spec.rb
|
623
|
+
- spec/models/field_select_validation_spec.rb
|
653
624
|
- spec/models/payment_method_opposite_all_of_spec.rb
|
625
|
+
- spec/models/recipient_state_reason_details_spec.rb
|
626
|
+
- spec/models/sender_response_spec.rb
|
627
|
+
- spec/models/transaction_response_meta_spec.rb
|
654
628
|
- spec/models/api_log_spec.rb
|
655
|
-
- spec/models/
|
656
|
-
- spec/models/
|
657
|
-
- spec/models/
|
629
|
+
- spec/models/payout_method_details_ghs_bank_spec.rb
|
630
|
+
- spec/models/sender_list_response_spec.rb
|
631
|
+
- spec/models/recipient_request_spec.rb
|
658
632
|
- spec/models/payout_method_details_brl_bank_spec.rb
|
633
|
+
- spec/models/payout_method_details_ngn_bank_spec.rb
|
634
|
+
- spec/models/payout_method_details_zar_bank_spec.rb
|
635
|
+
- spec/models/payout_method_details_kes_mobile_spec.rb
|
636
|
+
- spec/models/pagination_meta_spec.rb
|
659
637
|
- spec/models/validation_error_description_spec.rb
|
660
|
-
- spec/models/payin_method_request_spec.rb
|
661
|
-
- spec/models/payout_method_details_zmw_bank_spec.rb
|
662
|
-
- spec/models/proof_of_payment_list_response_spec.rb
|
663
|
-
- spec/models/transaction_webhook_spec.rb
|
664
|
-
- spec/models/payout_method_details_xof_bank_spec.rb
|
665
|
-
- spec/models/webhook_log_metadata_spec.rb
|
666
|
-
- spec/models/sender_webhook_all_of_spec.rb
|
667
|
-
- spec/models/account_list_response_spec.rb
|
668
638
|
- spec/models/document_list_response_spec.rb
|
669
|
-
- spec/models/
|
670
|
-
- spec/models/transaction_spec.rb
|
671
|
-
- spec/models/payin_method_ux_flow_spec.rb
|
672
|
-
- spec/models/field_select_validation_spec.rb
|
673
|
-
- spec/models/account_meta_spec.rb
|
674
|
-
- spec/models/payout_method_details_kes_bank_spec.rb
|
675
|
-
- spec/models/payin_method_response_spec.rb
|
676
|
-
- spec/models/account_validation_request_spec.rb
|
677
|
-
- spec/models/sender_response_existing_spec.rb
|
678
|
-
- spec/models/sender_request_spec.rb
|
679
|
-
- spec/models/webhook_log_spec.rb
|
639
|
+
- spec/models/account_response_spec.rb
|
680
640
|
- spec/models/payout_method_details_gnf_mobile_spec.rb
|
681
|
-
- spec/models/
|
682
|
-
- spec/models/payout_method_details_xaf_mobile_spec.rb
|
683
|
-
- spec/models/payout_method_details_mobile_spec.rb
|
684
|
-
- spec/models/transaction_response_spec.rb
|
685
|
-
- spec/models/transaction_state_spec.rb
|
686
|
-
- spec/models/payout_method_spec.rb
|
687
|
-
- spec/models/payout_method_bank_account_type_enum_spec.rb
|
641
|
+
- spec/models/payout_method_request_spec.rb
|
688
642
|
- spec/models/payout_method_details_usd_bank_spec.rb
|
689
|
-
- spec/models/webhook_definition_list_response_spec.rb
|
690
|
-
- spec/models/debit_list_request_spec.rb
|
691
|
-
- spec/models/currency_spec.rb
|
692
643
|
- spec/models/webhook_log_list_response_spec.rb
|
693
|
-
- spec/models/
|
694
|
-
- spec/models/
|
695
|
-
- spec/models/
|
696
|
-
- spec/models/
|
697
|
-
- spec/models/
|
698
|
-
- spec/models/payout_method_pix_key_type_enum_spec.rb
|
699
|
-
- spec/models/account_response_spec.rb
|
700
|
-
- spec/models/recipient_request_spec.rb
|
701
|
-
- spec/models/recipient_state_reason_details_spec.rb
|
702
|
-
- spec/models/payout_method_webhook_all_of_spec.rb
|
703
|
-
- spec/models/payout_method_webhook_spec.rb
|
704
|
-
- spec/models/sender_response_meta_spec.rb
|
705
|
-
- spec/models/payout_method_nature_of_business_enum_spec.rb
|
706
|
-
- spec/models/payout_method_response_spec.rb
|
707
|
-
- spec/models/recipient_spec.rb
|
708
|
-
- spec/models/payout_method_identity_card_type_enum_spec.rb
|
709
|
-
- spec/models/proof_of_payment_spec.rb
|
710
|
-
- spec/models/payout_method_details_balance_spec.rb
|
711
|
-
- spec/models/payout_method_details_ngn_bank_spec.rb
|
712
|
-
- spec/models/api_log_response_spec.rb
|
644
|
+
- spec/models/currency_spec.rb
|
645
|
+
- spec/models/webhook_definition_response_spec.rb
|
646
|
+
- spec/models/payout_method_details_xof_cash_spec.rb
|
647
|
+
- spec/models/payment_method_opposite_spec.rb
|
648
|
+
- spec/models/error_status_spec.rb
|
713
649
|
- spec/models/debit_request_spec.rb
|
714
|
-
- spec/models/
|
650
|
+
- spec/models/document_spec.rb
|
715
651
|
- spec/models/transaction_response_existing_spec.rb
|
716
|
-
- spec/models/payment_method_list_response_spec.rb
|
717
|
-
- spec/models/recipient_state_spec.rb
|
718
|
-
- spec/models/field_validation_spec.rb
|
719
|
-
- spec/models/payout_method_details_usd_cash_spec.rb
|
720
|
-
- spec/models/payout_method_list_response_spec.rb
|
721
|
-
- spec/models/error_status_spec.rb
|
722
652
|
- spec/models/payout_method_mobile_provider_enum_spec.rb
|
723
|
-
- spec/models/
|
724
|
-
- spec/models/
|
725
|
-
- spec/models/
|
726
|
-
- spec/models/payout_method_details_xof_mobile_spec.rb
|
727
|
-
- spec/models/sender_list_response_spec.rb
|
728
|
-
- spec/models/state_reason_details_spec.rb
|
729
|
-
- spec/models/payout_method_details_ghs_cash_spec.rb
|
653
|
+
- spec/models/sender_webhook_all_of_spec.rb
|
654
|
+
- spec/models/sender_webhook_spec.rb
|
655
|
+
- spec/models/payout_method_details_ugx_bank_spec.rb
|
730
656
|
- spec/models/payout_method_transfer_reason_enum_spec.rb
|
657
|
+
- spec/models/payout_method_spec.rb
|
658
|
+
- spec/models/payout_method_identity_card_type_enum_spec.rb
|
659
|
+
- spec/models/account_spec.rb
|
660
|
+
- spec/models/currency_list_response_spec.rb
|
661
|
+
- spec/models/webhook_definition_request_spec.rb
|
662
|
+
- spec/models/account_validation_result_spec.rb
|
663
|
+
- spec/models/payin_method_details_btc_spec.rb
|
664
|
+
- spec/models/debit_spec.rb
|
665
|
+
- spec/models/payout_method_details_mobile_spec.rb
|
666
|
+
- spec/models/payin_method_details_mobile_spec.rb
|
667
|
+
- spec/models/payout_method_list_response_spec.rb
|
668
|
+
- spec/models/transaction_traits_spec.rb
|
669
|
+
- spec/models/payout_method_details_balance_spec.rb
|
670
|
+
- spec/models/payout_method_details_spec.rb
|
671
|
+
- spec/models/payout_method_details_bwp_bank_spec.rb
|
672
|
+
- spec/models/transaction_list_response_spec.rb
|
673
|
+
- spec/models/account_list_response_spec.rb
|
731
674
|
- spec/models/payout_method_cash_provider_enum_spec.rb
|
732
|
-
- spec/models/
|
733
|
-
- spec/models/
|
734
|
-
- spec/models/
|
675
|
+
- spec/models/payin_method_details_ngn_bank_spec.rb
|
676
|
+
- spec/models/document_webhook_spec.rb
|
677
|
+
- spec/models/payout_method_webhook_all_of_spec.rb
|
678
|
+
- spec/models/currency_opposite_all_of_spec.rb
|
679
|
+
- spec/models/webhook_log_response_spec.rb
|
680
|
+
- spec/models/account_validation_request_spec.rb
|
681
|
+
- spec/models/debit_list_request_spec.rb
|
735
682
|
- spec/models/politically_exposed_person_spec.rb
|
683
|
+
- spec/models/payout_method_details_usd_cash_spec.rb
|
684
|
+
- spec/models/sender_spec.rb
|
685
|
+
- spec/models/sender_response_existing_spec.rb
|
686
|
+
- spec/models/debit_list_response_spec.rb
|
687
|
+
- spec/models/recipient_webhook_all_of_spec.rb
|
688
|
+
- spec/models/recipient_response_spec.rb
|
689
|
+
- spec/models/payout_method_nature_of_business_enum_spec.rb
|
690
|
+
- spec/models/webhook_definition_list_response_spec.rb
|
691
|
+
- spec/models/document_webhook_all_of_spec.rb
|
692
|
+
- spec/models/debit_request_wrapper_spec.rb
|
693
|
+
- spec/models/payin_method_request_spec.rb
|
694
|
+
- spec/models/sender_request_spec.rb
|
695
|
+
- spec/models/payout_method_details_iban_spec.rb
|
696
|
+
- spec/models/field_description_spec.rb
|
736
697
|
- spec/models/payin_method_details_spec.rb
|
698
|
+
- spec/models/webhook_log_metadata_request_spec.rb
|
699
|
+
- spec/models/webhook_log_metadata_response_spec.rb
|
700
|
+
- spec/models/payout_method_country_enum_spec.rb
|
701
|
+
- spec/models/currency_opposite_spec.rb
|
702
|
+
- spec/models/payout_method_bank_account_type_enum_spec.rb
|
703
|
+
- spec/models/payment_method_spec.rb
|
704
|
+
- spec/models/proof_of_payment_list_response_spec.rb
|
705
|
+
- spec/models/payout_method_details_xof_bank_spec.rb
|
706
|
+
- spec/models/transaction_webhook_spec.rb
|
707
|
+
- spec/models/payout_method_gender_enum_spec.rb
|
708
|
+
- spec/models/sender_response_meta_spec.rb
|
709
|
+
- spec/models/webhook_log_metadata_spec.rb
|
710
|
+
- spec/models/field_validation_spec.rb
|
711
|
+
- spec/models/payout_method_details_mad_cash_spec.rb
|
712
|
+
- spec/models/webhook_log_spec.rb
|
713
|
+
- spec/models/debit_response_spec.rb
|
714
|
+
- spec/models/currency_exchange_list_response_spec.rb
|
715
|
+
- spec/models/payout_method_details_kes_bank_spec.rb
|
716
|
+
- spec/models/api_log_list_response_spec.rb
|
717
|
+
- spec/models/recipient_state_spec.rb
|
718
|
+
- spec/models/document_response_spec.rb
|
737
719
|
- spec/models/account_validation_error_spec.rb
|
720
|
+
- spec/models/payout_method_details_btc_spec.rb
|
721
|
+
- spec/models/payout_method_details_gbp_bank_spec.rb
|
722
|
+
- spec/models/payment_method_list_response_spec.rb
|
723
|
+
- spec/models/payout_method_response_spec.rb
|
724
|
+
- spec/models/payout_method_webhook_spec.rb
|
725
|
+
- spec/models/payin_method_state_spec.rb
|
726
|
+
- spec/models/payin_method_spec.rb
|
727
|
+
- spec/models/payout_method_details_cad_bank_spec.rb
|
728
|
+
- spec/models/payout_method_details_nzd_bank_spec.rb
|
729
|
+
- spec/models/state_reason_details_spec.rb
|
730
|
+
- spec/models/recipient_list_response_spec.rb
|
731
|
+
- spec/models/payout_method_details_inr_bank_spec.rb
|
732
|
+
- spec/models/transaction_response_spec.rb
|
733
|
+
- spec/models/currency_exchange_spec.rb
|
734
|
+
- spec/models/api_log_response_spec.rb
|
735
|
+
- spec/models/payin_method_response_spec.rb
|
736
|
+
- spec/models/webhook_definition_event_list_response_spec.rb
|
737
|
+
- spec/models/payout_method_details_zmw_bank_spec.rb
|
738
738
|
- spec/spec_helper.rb
|
data/transferzero-sdk-1.26.1.gem
DELETED
Binary file
|