transferzero-sdk 1.30.2 → 1.30.3
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/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/docs/PayoutMethodDetails.md +2 -0
- data/docs/PayoutMethodDetailsGBPBank.md +7 -5
- data/docs/PayoutMethodDetailsIBAN.md +5 -3
- data/lib/transferzero-sdk/api_client.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method_details.rb +10 -1
- data/lib/transferzero-sdk/models/payout_method_details_gbp_bank.rb +29 -20
- data/lib/transferzero-sdk/models/payout_method_details_iban.rb +23 -14
- data/lib/transferzero-sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ef6a78005e41133ff80a1d9f21851b4fd9255a6b7fd099f8f6b497ecd54092a
|
4
|
+
data.tar.gz: 81ab6ef201268601ada80fcbcf85a774980a9abfb36314b6cbbf8c5b8a2dee9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6102457736a74d4af311f7f7aae4078ed69bbf9a721e527b5c8f19edee7524052b9f7845b11bb6917f1b0035a548ce3bac3b5be1ede4b919fedf8bbe473d8f0
|
7
|
+
data.tar.gz: c62bd9a3e1b30288c60c8d20263593363e2a158a6873d9102d6c6afa1bc61bc7206143000c8a08aba0bdf3a112677b1e01237c6143cb584672a81e73225905d3
|
data/Gemfile.lock
CHANGED
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.30.
|
10
|
+
- Package version: 1.30.3
|
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.30.
|
34
|
+
gem install ./transferzero-sdk-1.30.3.gem
|
35
35
|
```
|
36
|
-
(for development, run `gem install --dev ./transferzero-sdk-1.30.
|
36
|
+
(for development, run `gem install --dev ./transferzero-sdk-1.30.3.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.30.
|
42
|
+
gem 'transferzero-sdk', '~> 1.30.3'
|
43
43
|
|
44
44
|
### Install from Git
|
45
45
|
|
data/docs/PayoutMethodDetails.md
CHANGED
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
|
|
19
19
|
**cash_provider** | [**PayoutMethodCashProviderEnum**](PayoutMethodCashProviderEnum.md) | |
|
20
20
|
**sort_code** | **String** | | [optional]
|
21
21
|
**bic** | **String** | | [optional]
|
22
|
+
**narration** | **String** | | [optional]
|
22
23
|
**sender_identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
|
23
24
|
**sender_identity_card_id** | **String** | |
|
24
25
|
**sender_city_of_birth** | **String** | | [optional]
|
@@ -68,6 +69,7 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
|
|
68
69
|
cash_provider: null,
|
69
70
|
sort_code: null,
|
70
71
|
bic: null,
|
72
|
+
narration: null,
|
71
73
|
sender_identity_card_type: null,
|
72
74
|
sender_identity_card_id: null,
|
73
75
|
sender_city_of_birth: null,
|
@@ -6,11 +6,12 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**first_name** | **String** | |
|
8
8
|
**last_name** | **String** | |
|
9
|
-
**
|
9
|
+
**iban** | **String** | | [optional]
|
10
10
|
**bank_account** | **String** | | [optional]
|
11
11
|
**sort_code** | **String** | | [optional]
|
12
|
-
**iban** | **String** | | [optional]
|
13
12
|
**bic** | **String** | | [optional]
|
13
|
+
**bank_name** | **String** | | [optional]
|
14
|
+
**narration** | **String** | | [optional]
|
14
15
|
|
15
16
|
## Code Sample
|
16
17
|
|
@@ -19,11 +20,12 @@ require 'TransferZero'
|
|
19
20
|
|
20
21
|
instance = TransferZero::PayoutMethodDetailsGBPBank.new(first_name: null,
|
21
22
|
last_name: null,
|
22
|
-
|
23
|
+
iban: null,
|
23
24
|
bank_account: null,
|
24
25
|
sort_code: null,
|
25
|
-
|
26
|
-
|
26
|
+
bic: null,
|
27
|
+
bank_name: null,
|
28
|
+
narration: null)
|
27
29
|
```
|
28
30
|
|
29
31
|
|
@@ -6,9 +6,10 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**first_name** | **String** | |
|
8
8
|
**last_name** | **String** | |
|
9
|
-
**bank_name** | **String** | | [optional]
|
10
9
|
**iban** | **String** | |
|
11
10
|
**bic** | **String** | | [optional]
|
11
|
+
**bank_name** | **String** | | [optional]
|
12
|
+
**narration** | **String** | | [optional]
|
12
13
|
|
13
14
|
## Code Sample
|
14
15
|
|
@@ -17,9 +18,10 @@ require 'TransferZero'
|
|
17
18
|
|
18
19
|
instance = TransferZero::PayoutMethodDetailsIBAN.new(first_name: null,
|
19
20
|
last_name: null,
|
20
|
-
bank_name: null,
|
21
21
|
iban: null,
|
22
|
-
bic: null
|
22
|
+
bic: null,
|
23
|
+
bank_name: null,
|
24
|
+
narration: null)
|
23
25
|
```
|
24
26
|
|
25
27
|
|
@@ -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.30.
|
39
|
+
@user_agent = "TransferZero-SDK/Ruby/1.30.3"
|
40
40
|
@default_headers = {
|
41
41
|
'Content-Type' => 'application/json',
|
42
42
|
'User-Agent' => @user_agent
|
@@ -44,6 +44,8 @@ class PayoutMethodDetails
|
|
44
44
|
|
45
45
|
attr_accessor :bic
|
46
46
|
|
47
|
+
attr_accessor :narration
|
48
|
+
|
47
49
|
attr_accessor :sender_identity_card_type
|
48
50
|
|
49
51
|
attr_accessor :sender_identity_card_id
|
@@ -118,6 +120,7 @@ class PayoutMethodDetails
|
|
118
120
|
:'cash_provider' => :'cash_provider',
|
119
121
|
:'sort_code' => :'sort_code',
|
120
122
|
:'bic' => :'bic',
|
123
|
+
:'narration' => :'narration',
|
121
124
|
:'sender_identity_card_type' => :'sender_identity_card_type',
|
122
125
|
:'sender_identity_card_id' => :'sender_identity_card_id',
|
123
126
|
:'sender_city_of_birth' => :'sender_city_of_birth',
|
@@ -167,6 +170,7 @@ class PayoutMethodDetails
|
|
167
170
|
:'cash_provider' => :'PayoutMethodCashProviderEnum',
|
168
171
|
:'sort_code' => :'String',
|
169
172
|
:'bic' => :'String',
|
173
|
+
:'narration' => :'String',
|
170
174
|
:'sender_identity_card_type' => :'PayoutMethodIdentityCardTypeEnum',
|
171
175
|
:'sender_identity_card_id' => :'String',
|
172
176
|
:'sender_city_of_birth' => :'String',
|
@@ -307,6 +311,10 @@ class PayoutMethodDetails
|
|
307
311
|
self.bic = attributes[:'bic']
|
308
312
|
end
|
309
313
|
|
314
|
+
if attributes.key?(:'narration')
|
315
|
+
self.narration = attributes[:'narration']
|
316
|
+
end
|
317
|
+
|
310
318
|
if attributes.key?(:'sender_identity_card_type')
|
311
319
|
self.sender_identity_card_type = attributes[:'sender_identity_card_type']
|
312
320
|
end
|
@@ -579,6 +587,7 @@ class PayoutMethodDetails
|
|
579
587
|
cash_provider == o.cash_provider &&
|
580
588
|
sort_code == o.sort_code &&
|
581
589
|
bic == o.bic &&
|
590
|
+
narration == o.narration &&
|
582
591
|
sender_identity_card_type == o.sender_identity_card_type &&
|
583
592
|
sender_identity_card_id == o.sender_identity_card_id &&
|
584
593
|
sender_city_of_birth == o.sender_city_of_birth &&
|
@@ -618,7 +627,7 @@ class PayoutMethodDetails
|
|
618
627
|
# Calculates hash code according to all attributes.
|
619
628
|
# @return [Integer] Hash code
|
620
629
|
def hash
|
621
|
-
[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, relationship_to_sender, pix_key_type, pix_key_value, ifsc_code].hash
|
630
|
+
[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, narration, 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, relationship_to_sender, pix_key_type, pix_key_value, ifsc_code].hash
|
622
631
|
end
|
623
632
|
|
624
633
|
require 'active_support/core_ext/hash'
|
@@ -13,32 +13,35 @@ OpenAPI Generator version: 4.0.0-beta3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TransferZero
|
16
|
-
# ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"
|
16
|
+
# ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"iban\": \"GB45LOYD60161331926819\", // Required if no `bank_account` and `sort_code` \"bank_account\": \"12345678\", // Required if `iban` is not present \"sort_code\": \"123456\", // Required if `bank_account` is present \"bic\": \"CHASUS33XXX\" // Optional \"bank_name\": \"JPMorgan Chase Bank\", // Optional \"narration\": \"Birthday Gift\" // Optional } ```
|
17
17
|
class PayoutMethodDetailsGBPBank
|
18
18
|
attr_accessor :first_name
|
19
19
|
|
20
20
|
attr_accessor :last_name
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :iban
|
23
23
|
|
24
24
|
attr_accessor :bank_account
|
25
25
|
|
26
26
|
attr_accessor :sort_code
|
27
27
|
|
28
|
-
attr_accessor :iban
|
29
|
-
|
30
28
|
attr_accessor :bic
|
31
29
|
|
30
|
+
attr_accessor :bank_name
|
31
|
+
|
32
|
+
attr_accessor :narration
|
33
|
+
|
32
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
35
|
def self.attribute_map
|
34
36
|
{
|
35
37
|
:'first_name' => :'first_name',
|
36
38
|
:'last_name' => :'last_name',
|
37
|
-
:'
|
39
|
+
:'iban' => :'iban',
|
38
40
|
:'bank_account' => :'bank_account',
|
39
41
|
:'sort_code' => :'sort_code',
|
40
|
-
:'
|
41
|
-
:'
|
42
|
+
:'bic' => :'bic',
|
43
|
+
:'bank_name' => :'bank_name',
|
44
|
+
:'narration' => :'narration'
|
42
45
|
}
|
43
46
|
end
|
44
47
|
|
@@ -47,11 +50,12 @@ class PayoutMethodDetailsGBPBank
|
|
47
50
|
{
|
48
51
|
:'first_name' => :'String',
|
49
52
|
:'last_name' => :'String',
|
50
|
-
:'
|
53
|
+
:'iban' => :'String',
|
51
54
|
:'bank_account' => :'String',
|
52
55
|
:'sort_code' => :'String',
|
53
|
-
:'
|
54
|
-
:'
|
56
|
+
:'bic' => :'String',
|
57
|
+
:'bank_name' => :'String',
|
58
|
+
:'narration' => :'String'
|
55
59
|
}
|
56
60
|
end
|
57
61
|
|
@@ -78,8 +82,8 @@ class PayoutMethodDetailsGBPBank
|
|
78
82
|
self.last_name = attributes[:'last_name']
|
79
83
|
end
|
80
84
|
|
81
|
-
if attributes.key?(:'
|
82
|
-
self.
|
85
|
+
if attributes.key?(:'iban')
|
86
|
+
self.iban = attributes[:'iban']
|
83
87
|
end
|
84
88
|
|
85
89
|
if attributes.key?(:'bank_account')
|
@@ -90,13 +94,17 @@ class PayoutMethodDetailsGBPBank
|
|
90
94
|
self.sort_code = attributes[:'sort_code']
|
91
95
|
end
|
92
96
|
|
93
|
-
if attributes.key?(:'iban')
|
94
|
-
self.iban = attributes[:'iban']
|
95
|
-
end
|
96
|
-
|
97
97
|
if attributes.key?(:'bic')
|
98
98
|
self.bic = attributes[:'bic']
|
99
99
|
end
|
100
|
+
|
101
|
+
if attributes.key?(:'bank_name')
|
102
|
+
self.bank_name = attributes[:'bank_name']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'narration')
|
106
|
+
self.narration = attributes[:'narration']
|
107
|
+
end
|
100
108
|
end
|
101
109
|
|
102
110
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -129,11 +137,12 @@ class PayoutMethodDetailsGBPBank
|
|
129
137
|
self.class == o.class &&
|
130
138
|
first_name == o.first_name &&
|
131
139
|
last_name == o.last_name &&
|
132
|
-
|
140
|
+
iban == o.iban &&
|
133
141
|
bank_account == o.bank_account &&
|
134
142
|
sort_code == o.sort_code &&
|
135
|
-
|
136
|
-
|
143
|
+
bic == o.bic &&
|
144
|
+
bank_name == o.bank_name &&
|
145
|
+
narration == o.narration
|
137
146
|
end
|
138
147
|
|
139
148
|
# @see the `==` method
|
@@ -145,7 +154,7 @@ class PayoutMethodDetailsGBPBank
|
|
145
154
|
# Calculates hash code according to all attributes.
|
146
155
|
# @return [Integer] Hash code
|
147
156
|
def hash
|
148
|
-
[first_name, last_name,
|
157
|
+
[first_name, last_name, iban, bank_account, sort_code, bic, bank_name, narration].hash
|
149
158
|
end
|
150
159
|
|
151
160
|
require 'active_support/core_ext/hash'
|
@@ -13,26 +13,29 @@ OpenAPI Generator version: 4.0.0-beta3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TransferZero
|
16
|
-
# ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"
|
16
|
+
# ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"iban\": \"DE89370400440532013000\", \"bic\": \"DEUTDEBBXXX\", // Optional \"bank_name\": \"Deutsche Bank\", // Optional \"narration\": \"Birthday Gift\" // Optional } ```
|
17
17
|
class PayoutMethodDetailsIBAN
|
18
18
|
attr_accessor :first_name
|
19
19
|
|
20
20
|
attr_accessor :last_name
|
21
21
|
|
22
|
-
attr_accessor :bank_name
|
23
|
-
|
24
22
|
attr_accessor :iban
|
25
23
|
|
26
24
|
attr_accessor :bic
|
27
25
|
|
26
|
+
attr_accessor :bank_name
|
27
|
+
|
28
|
+
attr_accessor :narration
|
29
|
+
|
28
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
31
|
def self.attribute_map
|
30
32
|
{
|
31
33
|
:'first_name' => :'first_name',
|
32
34
|
:'last_name' => :'last_name',
|
33
|
-
:'bank_name' => :'bank_name',
|
34
35
|
:'iban' => :'iban',
|
35
|
-
:'bic' => :'bic'
|
36
|
+
:'bic' => :'bic',
|
37
|
+
:'bank_name' => :'bank_name',
|
38
|
+
:'narration' => :'narration'
|
36
39
|
}
|
37
40
|
end
|
38
41
|
|
@@ -41,9 +44,10 @@ class PayoutMethodDetailsIBAN
|
|
41
44
|
{
|
42
45
|
:'first_name' => :'String',
|
43
46
|
:'last_name' => :'String',
|
44
|
-
:'bank_name' => :'String',
|
45
47
|
:'iban' => :'String',
|
46
|
-
:'bic' => :'String'
|
48
|
+
:'bic' => :'String',
|
49
|
+
:'bank_name' => :'String',
|
50
|
+
:'narration' => :'String'
|
47
51
|
}
|
48
52
|
end
|
49
53
|
|
@@ -70,10 +74,6 @@ class PayoutMethodDetailsIBAN
|
|
70
74
|
self.last_name = attributes[:'last_name']
|
71
75
|
end
|
72
76
|
|
73
|
-
if attributes.key?(:'bank_name')
|
74
|
-
self.bank_name = attributes[:'bank_name']
|
75
|
-
end
|
76
|
-
|
77
77
|
if attributes.key?(:'iban')
|
78
78
|
self.iban = attributes[:'iban']
|
79
79
|
end
|
@@ -81,6 +81,14 @@ class PayoutMethodDetailsIBAN
|
|
81
81
|
if attributes.key?(:'bic')
|
82
82
|
self.bic = attributes[:'bic']
|
83
83
|
end
|
84
|
+
|
85
|
+
if attributes.key?(:'bank_name')
|
86
|
+
self.bank_name = attributes[:'bank_name']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.key?(:'narration')
|
90
|
+
self.narration = attributes[:'narration']
|
91
|
+
end
|
84
92
|
end
|
85
93
|
|
86
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -118,9 +126,10 @@ class PayoutMethodDetailsIBAN
|
|
118
126
|
self.class == o.class &&
|
119
127
|
first_name == o.first_name &&
|
120
128
|
last_name == o.last_name &&
|
121
|
-
bank_name == o.bank_name &&
|
122
129
|
iban == o.iban &&
|
123
|
-
bic == o.bic
|
130
|
+
bic == o.bic &&
|
131
|
+
bank_name == o.bank_name &&
|
132
|
+
narration == o.narration
|
124
133
|
end
|
125
134
|
|
126
135
|
# @see the `==` method
|
@@ -132,7 +141,7 @@ class PayoutMethodDetailsIBAN
|
|
132
141
|
# Calculates hash code according to all attributes.
|
133
142
|
# @return [Integer] Hash code
|
134
143
|
def hash
|
135
|
-
[first_name, last_name,
|
144
|
+
[first_name, last_name, iban, bic, bank_name, narration].hash
|
136
145
|
end
|
137
146
|
|
138
147
|
require 'active_support/core_ext/hash'
|
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.30.
|
4
|
+
version: 1.30.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TransferZero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|