transferzero-sdk 1.13.0 → 1.14.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '098d647f781cc5eb0d7a5c3ff7be86ed615ab3aea94a154cf2897b3fefebd7c6'
4
- data.tar.gz: 56fdced0faebdbdd9e9ef70765e944272d52db9beb60fc780b1181c8bdf0e4c3
3
+ metadata.gz: efe4eacd3dc9587ed2befed7f8f57c04b7d1f31a391cbdf02ee63c18f496f7ee
4
+ data.tar.gz: c7e6ef2451d5c2466ac8bf1487acea713885da2ed7bbef71f125c55cf86120e8
5
5
  SHA512:
6
- metadata.gz: 81fab8828444155af24970fb9cf6a57666c241814685689f145a6d77c31d2eb61cc45f15287465f889ef60cdd5a69213057e0dd0d62d2ac0fb6508136dfc1a86
7
- data.tar.gz: 14674bc6e5620af322b800f8263b7a1804f73f03004ba9775f331010a94df9aac58d92577b77dccf9e779adf02445e3a5abc02ef88634b2ba8d41df5a83a3aef
6
+ metadata.gz: 661c31a2d009eb1d3e8bc0988988143cec048fe8b1593c5557542415057ed76f4266b64fbe15064bb0a099d5da95b557f217816ce427f138160f83fa84e20e04
7
+ data.tar.gz: 8805617a198e21dba29b54fef5583a369ccb981f5cb3412a8376648aa1f65ddd242a15bac4c3881268ed5fdef3a3dc00ec351c9d09f9e4cc893d38f8c1887b00
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- transferzero-sdk (1.13.0)
4
+ transferzero-sdk (1.9.0)
5
5
  activesupport (>= 4)
6
6
  json (>= 1.4)
7
7
  typhoeus (~> 1.0, >= 1.0.1)
@@ -10,12 +10,12 @@ GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
12
  ZenTest (4.12.0)
13
- activesupport (6.1.3)
13
+ activesupport (6.0.3.4)
14
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)
15
+ i18n (>= 0.7, < 2)
16
+ minitest (~> 5.1)
17
+ tzinfo (~> 1.1)
18
+ zeitwerk (~> 2.2, >= 2.2.2)
19
19
  addressable (2.7.0)
20
20
  public_suffix (>= 2.0.2, < 5.0)
21
21
  autotest (4.4.6)
@@ -26,19 +26,18 @@ GEM
26
26
  autotest-rails-pure (4.1.2)
27
27
  byebug (11.1.3)
28
28
  coderay (1.1.3)
29
- concurrent-ruby (1.1.8)
30
- crack (0.4.5)
31
- rexml
29
+ concurrent-ruby (1.1.7)
30
+ crack (0.4.4)
32
31
  diff-lcs (1.4.4)
33
32
  ethon (0.12.0)
34
33
  ffi (>= 1.3.0)
35
- ffi (1.14.2)
34
+ ffi (1.13.1)
36
35
  hashdiff (1.0.1)
37
- i18n (1.8.9)
36
+ i18n (1.8.5)
38
37
  concurrent-ruby (~> 1.0)
39
- json (2.5.1)
38
+ json (2.3.1)
40
39
  method_source (1.0.0)
41
- minitest (5.14.4)
40
+ minitest (5.14.2)
42
41
  pry (0.13.1)
43
42
  coderay (~> 1.1)
44
43
  method_source (~> 1.0)
@@ -47,26 +46,26 @@ GEM
47
46
  pry (~> 0.13.0)
48
47
  public_suffix (4.0.6)
49
48
  rake (12.0.0)
50
- rexml (3.2.4)
51
49
  rspec (3.10.0)
52
50
  rspec-core (~> 3.10.0)
53
51
  rspec-expectations (~> 3.10.0)
54
52
  rspec-mocks (~> 3.10.0)
55
- rspec-core (3.10.1)
53
+ rspec-core (3.10.0)
56
54
  rspec-support (~> 3.10.0)
57
- rspec-expectations (3.10.1)
55
+ rspec-expectations (3.10.0)
58
56
  diff-lcs (>= 1.2.0, < 2.0)
59
57
  rspec-support (~> 3.10.0)
60
- rspec-mocks (3.10.2)
58
+ rspec-mocks (3.10.0)
61
59
  diff-lcs (>= 1.2.0, < 2.0)
62
60
  rspec-support (~> 3.10.0)
63
- rspec-support (3.10.2)
61
+ rspec-support (3.10.0)
64
62
  sys-uname (1.2.2)
65
63
  ffi (~> 1.1)
64
+ thread_safe (0.3.6)
66
65
  typhoeus (1.4.0)
67
66
  ethon (>= 0.9.0)
68
- tzinfo (2.0.4)
69
- concurrent-ruby (~> 1.0)
67
+ tzinfo (1.2.8)
68
+ thread_safe (~> 0.1)
70
69
  vcr (3.0.3)
71
70
  webmock (1.24.6)
72
71
  addressable (>= 2.3.6)
@@ -75,7 +74,7 @@ GEM
75
74
  zeitwerk (2.4.2)
76
75
 
77
76
  PLATFORMS
78
- x86_64-darwin-18
77
+ ruby
79
78
 
80
79
  DEPENDENCIES
81
80
  ZenTest (~> 4.11, >= 4.11.2)
@@ -91,4 +90,4 @@ DEPENDENCIES
91
90
  webmock (~> 1.24, >= 1.24.3)
92
91
 
93
92
  BUNDLED WITH
94
- 2.2.13
93
+ 2.1.4
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.13.0
10
+ - Package version: 1.14.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.13.0.gem
34
+ gem install ./transferzero-sdk-1.14.0.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.13.0.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.14.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.13.0'
42
+ gem 'transferzero-sdk', '~> 1.14.0'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -213,6 +213,7 @@ Class | Method | HTTP request | Description
213
213
  - [TransferZero::PayoutMethodDetailsXOFCash](docs/PayoutMethodDetailsXOFCash.md)
214
214
  - [TransferZero::PayoutMethodDetailsXOFMobile](docs/PayoutMethodDetailsXOFMobile.md)
215
215
  - [TransferZero::PayoutMethodDetailsZARBank](docs/PayoutMethodDetailsZARBank.md)
216
+ - [TransferZero::PayoutMethodEntityTypeEnum](docs/PayoutMethodEntityTypeEnum.md)
216
217
  - [TransferZero::PayoutMethodGenderEnum](docs/PayoutMethodGenderEnum.md)
217
218
  - [TransferZero::PayoutMethodIdentityCardTypeEnum](docs/PayoutMethodIdentityCardTypeEnum.md)
218
219
  - [TransferZero::PayoutMethodListResponse](docs/PayoutMethodListResponse.md)
@@ -20,9 +20,9 @@ Name | Type | Description | Notes
20
20
  **bic** | **String** | | [optional]
21
21
  **sender_identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
22
22
  **sender_identity_card_id** | **String** | |
23
- **sender_city_of_birth** | **String** | |
24
- **sender_country_of_birth** | **String** | |
25
- **sender_gender** | [**PayoutMethodGenderEnum**](PayoutMethodGenderEnum.md) | |
23
+ **sender_city_of_birth** | **String** | | [optional]
24
+ **sender_country_of_birth** | **String** | | [optional]
25
+ **sender_gender** | [**PayoutMethodGenderEnum**](PayoutMethodGenderEnum.md) | | [optional]
26
26
  **reason** | **String** | | [optional]
27
27
  **identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | | [optional]
28
28
  **identity_card_id** | **String** | | [optional]
@@ -34,6 +34,11 @@ Name | Type | Description | Notes
34
34
  **city** | **String** | |
35
35
  **email** | **String** | | [optional]
36
36
  **transfer_reason_code** | **String** | | [optional]
37
+ **contact_first_name** | **String** | | [optional]
38
+ **contact_last_name** | **String** | | [optional]
39
+ **registration_number** | **String** | | [optional]
40
+ **nature_of_business** | **String** | | [optional]
41
+ **entity_type** | [**PayoutMethodEntityTypeEnum**](PayoutMethodEntityTypeEnum.md) | | [optional]
37
42
 
38
43
  ## Code Sample
39
44
 
@@ -69,7 +74,12 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
69
74
  postal_code: null,
70
75
  city: null,
71
76
  email: null,
72
- transfer_reason_code: null)
77
+ transfer_reason_code: null,
78
+ contact_first_name: null,
79
+ contact_last_name: null,
80
+ registration_number: null,
81
+ nature_of_business: null,
82
+ entity_type: null)
73
83
  ```
74
84
 
75
85
 
@@ -9,9 +9,9 @@ Name | Type | Description | Notes
9
9
  **phone_number** | **String** | |
10
10
  **sender_identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
11
11
  **sender_identity_card_id** | **String** | |
12
- **sender_city_of_birth** | **String** | |
13
- **sender_country_of_birth** | **String** | |
14
- **sender_gender** | [**PayoutMethodGenderEnum**](PayoutMethodGenderEnum.md) | |
12
+ **sender_city_of_birth** | **String** | | [optional]
13
+ **sender_country_of_birth** | **String** | | [optional]
14
+ **sender_gender** | [**PayoutMethodGenderEnum**](PayoutMethodGenderEnum.md) | | [optional]
15
15
  **reason** | **String** | | [optional]
16
16
  **identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | | [optional]
17
17
  **identity_card_id** | **String** | | [optional]
@@ -14,6 +14,12 @@ Name | Type | Description | Notes
14
14
  **bank_account** | **String** | |
15
15
  **phone_number** | **String** | |
16
16
  **transfer_reason_code** | **String** | | [optional]
17
+ **name** | **String** | | [optional]
18
+ **contact_first_name** | **String** | | [optional]
19
+ **contact_last_name** | **String** | | [optional]
20
+ **registration_number** | **String** | | [optional]
21
+ **nature_of_business** | **String** | | [optional]
22
+ **entity_type** | [**PayoutMethodEntityTypeEnum**](PayoutMethodEntityTypeEnum.md) | | [optional]
17
23
 
18
24
  ## Code Sample
19
25
 
@@ -29,7 +35,13 @@ instance = TransferZero::PayoutMethodDetailsZARBank.new(first_name: null,
29
35
  bank_code: null,
30
36
  bank_account: null,
31
37
  phone_number: null,
32
- transfer_reason_code: null)
38
+ transfer_reason_code: null,
39
+ name: null,
40
+ contact_first_name: null,
41
+ contact_last_name: null,
42
+ registration_number: null,
43
+ nature_of_business: null,
44
+ entity_type: null)
33
45
  ```
34
46
 
35
47
 
@@ -0,0 +1,16 @@
1
+ # TransferZero::PayoutMethodEntityTypeEnum
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'TransferZero'
12
+
13
+ instance = TransferZero::PayoutMethodEntityTypeEnum.new()
14
+ ```
15
+
16
+
@@ -77,6 +77,7 @@ require 'transferzero-sdk/models/payout_method_details_xof_bank'
77
77
  require 'transferzero-sdk/models/payout_method_details_xof_cash'
78
78
  require 'transferzero-sdk/models/payout_method_details_xof_mobile'
79
79
  require 'transferzero-sdk/models/payout_method_details_zar_bank'
80
+ require 'transferzero-sdk/models/payout_method_entity_type_enum'
80
81
  require 'transferzero-sdk/models/payout_method_gender_enum'
81
82
  require 'transferzero-sdk/models/payout_method_identity_card_type_enum'
82
83
  require 'transferzero-sdk/models/payout_method_list_response'
@@ -35,7 +35,7 @@ module TransferZero
35
35
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
36
36
  def initialize(config = Configuration.default)
37
37
  @config = config
38
- @user_agent = "TransferZero-SDK/Ruby/1.13.0"
38
+ @user_agent = "TransferZero-SDK/Ruby/1.14.0"
39
39
  @default_headers = {
40
40
  'Content-Type' => 'application/json',
41
41
  'User-Agent' => @user_agent
@@ -74,6 +74,16 @@ class PayoutMethodDetails
74
74
 
75
75
  attr_accessor :transfer_reason_code
76
76
 
77
+ attr_accessor :contact_first_name
78
+
79
+ attr_accessor :contact_last_name
80
+
81
+ attr_accessor :registration_number
82
+
83
+ attr_accessor :nature_of_business
84
+
85
+ attr_accessor :entity_type
86
+
77
87
  # Attribute mapping from ruby-style variable name to JSON key.
78
88
  def self.attribute_map
79
89
  {
@@ -106,7 +116,12 @@ class PayoutMethodDetails
106
116
  :'postal_code' => :'postal_code',
107
117
  :'city' => :'city',
108
118
  :'email' => :'email',
109
- :'transfer_reason_code' => :'transfer_reason_code'
119
+ :'transfer_reason_code' => :'transfer_reason_code',
120
+ :'contact_first_name' => :'contact_first_name',
121
+ :'contact_last_name' => :'contact_last_name',
122
+ :'registration_number' => :'registration_number',
123
+ :'nature_of_business' => :'nature_of_business',
124
+ :'entity_type' => :'entity_type'
110
125
  }
111
126
  end
112
127
 
@@ -142,7 +157,12 @@ class PayoutMethodDetails
142
157
  :'postal_code' => :'String',
143
158
  :'city' => :'String',
144
159
  :'email' => :'String',
145
- :'transfer_reason_code' => :'String'
160
+ :'transfer_reason_code' => :'String',
161
+ :'contact_first_name' => :'String',
162
+ :'contact_last_name' => :'String',
163
+ :'registration_number' => :'String',
164
+ :'nature_of_business' => :'String',
165
+ :'entity_type' => :'PayoutMethodEntityTypeEnum'
146
166
  }
147
167
  end
148
168
 
@@ -299,6 +319,26 @@ class PayoutMethodDetails
299
319
  if attributes.key?(:'transfer_reason_code')
300
320
  self.transfer_reason_code = attributes[:'transfer_reason_code']
301
321
  end
322
+
323
+ if attributes.key?(:'contact_first_name')
324
+ self.contact_first_name = attributes[:'contact_first_name']
325
+ end
326
+
327
+ if attributes.key?(:'contact_last_name')
328
+ self.contact_last_name = attributes[:'contact_last_name']
329
+ end
330
+
331
+ if attributes.key?(:'registration_number')
332
+ self.registration_number = attributes[:'registration_number']
333
+ end
334
+
335
+ if attributes.key?(:'nature_of_business')
336
+ self.nature_of_business = attributes[:'nature_of_business']
337
+ end
338
+
339
+ if attributes.key?(:'entity_type')
340
+ self.entity_type = attributes[:'entity_type']
341
+ end
302
342
  end
303
343
 
304
344
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -349,18 +389,6 @@ class PayoutMethodDetails
349
389
  invalid_properties.push('invalid value for "sender_identity_card_id", sender_identity_card_id cannot be nil.')
350
390
  end
351
391
 
352
- if @sender_city_of_birth.nil?
353
- invalid_properties.push('invalid value for "sender_city_of_birth", sender_city_of_birth cannot be nil.')
354
- end
355
-
356
- if @sender_country_of_birth.nil?
357
- invalid_properties.push('invalid value for "sender_country_of_birth", sender_country_of_birth cannot be nil.')
358
- end
359
-
360
- if @sender_gender.nil?
361
- invalid_properties.push('invalid value for "sender_gender", sender_gender cannot be nil.')
362
- end
363
-
364
392
  if @name.nil?
365
393
  invalid_properties.push('invalid value for "name", name cannot be nil.')
366
394
  end
@@ -398,9 +426,6 @@ class PayoutMethodDetails
398
426
  return false if @bank_country.nil?
399
427
  return false if @sender_identity_card_type.nil?
400
428
  return false if @sender_identity_card_id.nil?
401
- return false if @sender_city_of_birth.nil?
402
- return false if @sender_country_of_birth.nil?
403
- return false if @sender_gender.nil?
404
429
  return false if @name.nil?
405
430
  return false if @address.nil?
406
431
  return false if @street.nil?
@@ -459,7 +484,12 @@ class PayoutMethodDetails
459
484
  postal_code == o.postal_code &&
460
485
  city == o.city &&
461
486
  email == o.email &&
462
- transfer_reason_code == o.transfer_reason_code
487
+ transfer_reason_code == o.transfer_reason_code &&
488
+ contact_first_name == o.contact_first_name &&
489
+ contact_last_name == o.contact_last_name &&
490
+ registration_number == o.registration_number &&
491
+ nature_of_business == o.nature_of_business &&
492
+ entity_type == o.entity_type
463
493
  end
464
494
 
465
495
  # @see the `==` method
@@ -471,7 +501,7 @@ class PayoutMethodDetails
471
501
  # Calculates hash code according to all attributes.
472
502
  # @return [Integer] Hash code
473
503
  def hash
474
- [first_name, last_name, bank_code, bank_account, bank_account_type, phone_number, mobile_provider, country, 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].hash
504
+ [first_name, last_name, bank_code, bank_account, bank_account_type, phone_number, mobile_provider, country, 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, entity_type].hash
475
505
  end
476
506
 
477
507
  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\", \"last_name\": \"Last\", \"phone_number\": \"212537718685\" # Mandatory; International format preferred \"sender_identity_card_type\" => \"O\", # Mandatory; Values: \"O\": Other, \"PP\": Passport, \"ID\": National ID \"sender_identity_card_id\" => 'AB12345678', # Mandatory \"sender_city_of_birth\" => \"London\", # Mandatory \"sender_country_of_birth\" => \"GB\", # Mandatory; ISO 2-letter format \"sender_gender\" => \"M\", # Mandatory; Values: \"M\": Male, \"F\": Female \"reason\" => \"Remittance payment\", # Optional; Default value is 'Remittance payment' \"identity_card_type\" => \"ID\", # Optional; Values: \"PP\": Passport, \"ID\": National ID \"identity_card_id\" => 'AB12345678' # Optional } ``` Please note when sending MAD::Cash payments you should subscribe to the recipient.pending webhook, as that will broadcast the payment reference ID the customer need to use to obtain the funds. Example webhook response excerpt - ```JSON { (...) \"state\":\"pending\", \"metadata\": { \"payment_reference\":\"9M5GJRJUBCY\" }, (...) } ``` The reference can also be provided optionally for MAD::Cash, but if you want to use this functionality please contact us for more details.
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"212537718685\" # Mandatory; International format preferred \"sender_identity_card_type\" => \"O\", # Mandatory; Values: \"O\": Other, \"PP\": Passport, \"ID\": National ID \"sender_identity_card_id\" => 'AB12345678', # Mandatory \"sender_city_of_birth\" => \"London\", # Optional \"sender_country_of_birth\" => \"GB\", # Optional; ISO 2-letter format \"sender_gender\" => \"M\", # Optional; Values: \"M\": Male, \"F\": Female \"reason\" => \"Remittance payment\", # Optional; Default value is 'Remittance payment' \"identity_card_type\" => \"ID\", # Optional; Values: \"PP\": Passport, \"ID\": National ID \"identity_card_id\" => 'AB12345678' # Optional } ``` Please note when sending MAD::Cash payments you should subscribe to the recipient.pending webhook, as that will broadcast the payment reference ID the customer need to use to obtain the funds. Example webhook response excerpt - ```JSON { (...) \"state\":\"pending\", \"metadata\": { \"payment_reference\":\"9M5GJRJUBCY\" }, (...) } ``` The reference can also be provided optionally for MAD::Cash, but if you want to use this functionality please contact us for more details.
17
17
  class PayoutMethodDetailsMADCash
18
18
  attr_accessor :first_name
19
19
 
@@ -155,18 +155,6 @@ class PayoutMethodDetailsMADCash
155
155
  invalid_properties.push('invalid value for "sender_identity_card_id", sender_identity_card_id cannot be nil.')
156
156
  end
157
157
 
158
- if @sender_city_of_birth.nil?
159
- invalid_properties.push('invalid value for "sender_city_of_birth", sender_city_of_birth cannot be nil.')
160
- end
161
-
162
- if @sender_country_of_birth.nil?
163
- invalid_properties.push('invalid value for "sender_country_of_birth", sender_country_of_birth cannot be nil.')
164
- end
165
-
166
- if @sender_gender.nil?
167
- invalid_properties.push('invalid value for "sender_gender", sender_gender cannot be nil.')
168
- end
169
-
170
158
  invalid_properties
171
159
  end
172
160
 
@@ -178,9 +166,6 @@ class PayoutMethodDetailsMADCash
178
166
  return false if @phone_number.nil?
179
167
  return false if @sender_identity_card_type.nil?
180
168
  return false if @sender_identity_card_id.nil?
181
- return false if @sender_city_of_birth.nil?
182
- return false if @sender_country_of_birth.nil?
183
- return false if @sender_gender.nil?
184
169
  true
185
170
  end
186
171
 
@@ -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\", \"last_name\": \"Last\", \"street\": \"Main Street\", \"postal_code\": \"AB0001\", \"city\": \"Cape Town\", \"email\": \"recipient@email.com\", \"bank_code\": \"334810\", \"bank_account\": \"12345678\", \"phone_number\": \"+27119785313\", \"transfer_reason_code\": \"185\" } ``` See [ZAR Bank](https://docs.transferzero.com/docs/payout-details/#zarbank) documentation for the bank_code and transfer_reason_code lists
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\", // Mandatory for business payouts; \"contact_last_name\" \"Contact\", // Mandatory for business payouts; \"street\": \"Main Street\", \"postal_code\": \"AB0001\", \"city\": \"Cape Town\", \"email\": \"recipient@email.com\", \"bank_code\": \"334810\", \"bank_account\": \"12345678\", \"phone_number\": \"+27119785313\", \"transfer_reason_code\": \"185\", \"entity_type\": \"sole_proprietorship\", // Optional; Default value is \"person\"; Mandatory for business payouts; \"nature_of_business\": \"Mining\", // Mandatory for business payouts; \"registration_number\": \"17364BGC\" // Mandatory for business payouts; } ``` See [ZAR Bank](https://docs.transferzero.com/docs/payout-details/#zarbank) documentation for the bank_code and transfer_reason_code lists
17
17
  class PayoutMethodDetailsZARBank
18
18
  attr_accessor :first_name
19
19
 
@@ -35,6 +35,18 @@ class PayoutMethodDetailsZARBank
35
35
 
36
36
  attr_accessor :transfer_reason_code
37
37
 
38
+ attr_accessor :name
39
+
40
+ attr_accessor :contact_first_name
41
+
42
+ attr_accessor :contact_last_name
43
+
44
+ attr_accessor :registration_number
45
+
46
+ attr_accessor :nature_of_business
47
+
48
+ attr_accessor :entity_type
49
+
38
50
  # Attribute mapping from ruby-style variable name to JSON key.
39
51
  def self.attribute_map
40
52
  {
@@ -47,7 +59,13 @@ class PayoutMethodDetailsZARBank
47
59
  :'bank_code' => :'bank_code',
48
60
  :'bank_account' => :'bank_account',
49
61
  :'phone_number' => :'phone_number',
50
- :'transfer_reason_code' => :'transfer_reason_code'
62
+ :'transfer_reason_code' => :'transfer_reason_code',
63
+ :'name' => :'name',
64
+ :'contact_first_name' => :'contact_first_name',
65
+ :'contact_last_name' => :'contact_last_name',
66
+ :'registration_number' => :'registration_number',
67
+ :'nature_of_business' => :'nature_of_business',
68
+ :'entity_type' => :'entity_type'
51
69
  }
52
70
  end
53
71
 
@@ -63,7 +81,13 @@ class PayoutMethodDetailsZARBank
63
81
  :'bank_code' => :'String',
64
82
  :'bank_account' => :'String',
65
83
  :'phone_number' => :'String',
66
- :'transfer_reason_code' => :'String'
84
+ :'transfer_reason_code' => :'String',
85
+ :'name' => :'String',
86
+ :'contact_first_name' => :'String',
87
+ :'contact_last_name' => :'String',
88
+ :'registration_number' => :'String',
89
+ :'nature_of_business' => :'String',
90
+ :'entity_type' => :'PayoutMethodEntityTypeEnum'
67
91
  }
68
92
  end
69
93
 
@@ -121,6 +145,30 @@ class PayoutMethodDetailsZARBank
121
145
  if attributes.key?(:'transfer_reason_code')
122
146
  self.transfer_reason_code = attributes[:'transfer_reason_code']
123
147
  end
148
+
149
+ if attributes.key?(:'name')
150
+ self.name = attributes[:'name']
151
+ end
152
+
153
+ if attributes.key?(:'contact_first_name')
154
+ self.contact_first_name = attributes[:'contact_first_name']
155
+ end
156
+
157
+ if attributes.key?(:'contact_last_name')
158
+ self.contact_last_name = attributes[:'contact_last_name']
159
+ end
160
+
161
+ if attributes.key?(:'registration_number')
162
+ self.registration_number = attributes[:'registration_number']
163
+ end
164
+
165
+ if attributes.key?(:'nature_of_business')
166
+ self.nature_of_business = attributes[:'nature_of_business']
167
+ end
168
+
169
+ if attributes.key?(:'entity_type')
170
+ self.entity_type = attributes[:'entity_type']
171
+ end
124
172
  end
125
173
 
126
174
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -190,7 +238,13 @@ class PayoutMethodDetailsZARBank
190
238
  bank_code == o.bank_code &&
191
239
  bank_account == o.bank_account &&
192
240
  phone_number == o.phone_number &&
193
- transfer_reason_code == o.transfer_reason_code
241
+ transfer_reason_code == o.transfer_reason_code &&
242
+ name == o.name &&
243
+ contact_first_name == o.contact_first_name &&
244
+ contact_last_name == o.contact_last_name &&
245
+ registration_number == o.registration_number &&
246
+ nature_of_business == o.nature_of_business &&
247
+ entity_type == o.entity_type
194
248
  end
195
249
 
196
250
  # @see the `==` method
@@ -202,7 +256,7 @@ class PayoutMethodDetailsZARBank
202
256
  # Calculates hash code according to all attributes.
203
257
  # @return [Integer] Hash code
204
258
  def hash
205
- [first_name, last_name, street, postal_code, city, email, bank_code, bank_account, phone_number, transfer_reason_code].hash
259
+ [first_name, last_name, street, postal_code, city, email, bank_code, bank_account, phone_number, transfer_reason_code, name, contact_first_name, contact_last_name, registration_number, nature_of_business, entity_type].hash
206
260
  end
207
261
 
208
262
  require 'active_support/core_ext/hash'
@@ -0,0 +1,37 @@
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
+ class PayoutMethodEntityTypeEnum
17
+
18
+ PERSON = "person".freeze
19
+ SOLE_PROPRIETORSHIP = "sole_proprietorship".freeze
20
+ PRIVATELY_OWNED_COMPANY = "privately_owned_company".freeze
21
+ PUBLICLY_OWNED_COMPANY = "publicly_owned_company".freeze
22
+ GOVERNMENT_OWNED_ENTITY = "government_owned_entity".freeze
23
+ PARTNERSHIP = "partnership".freeze
24
+ GO = "go".freeze
25
+ FINANCIAL_INSTITUTION = "financial_institution".freeze
26
+
27
+ # Builds the enum from string
28
+ # @param [String] The enum value in the form of the string
29
+ # @return [String] The enum value
30
+ def build_from_hash(value)
31
+ constantValues = PayoutMethodEntityTypeEnum.constants.select { |c| PayoutMethodEntityTypeEnum::const_get(c) == value }
32
+ raise "Invalid ENUM value #{value} for class #PayoutMethodEntityTypeEnum" if constantValues.empty? && !value.empty?
33
+ value
34
+ end
35
+ end
36
+
37
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.0.0-beta3
11
11
  =end
12
12
 
13
13
  module TransferZero
14
- VERSION = '1.13.0'
14
+ VERSION = '1.14.0'
15
15
  end
@@ -0,0 +1,35 @@
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::PayoutMethodEntityTypeEnum
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PayoutMethodEntityTypeEnum' do
21
+ before do
22
+ # run before each test
23
+ @instance = TransferZero::PayoutMethodEntityTypeEnum.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PayoutMethodEntityTypeEnum' do
31
+ it 'should create an instance of PayoutMethodEntityTypeEnum' do
32
+ expect(@instance).to be_instance_of(TransferZero::PayoutMethodEntityTypeEnum)
33
+ end
34
+ end
35
+ end
Binary file
Binary file
Binary file
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.13.0
4
+ version: 1.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TransferZero
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-18 00:00:00.000000000 Z
11
+ date: 2021-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -62,22 +62,22 @@ dependencies:
62
62
  name: rspec
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '3.6'
68
65
  - - ">="
69
66
  - !ruby/object:Gem::Version
70
67
  version: 3.6.0
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: '3.6'
71
71
  type: :development
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - "~>"
76
- - !ruby/object:Gem::Version
77
- version: '3.6'
78
75
  - - ">="
79
76
  - !ruby/object:Gem::Version
80
77
  version: 3.6.0
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '3.6'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: vcr
83
83
  requirement: !ruby/object:Gem::Requirement
@@ -278,6 +278,7 @@ files:
278
278
  - docs/PayoutMethodDetailsXOFCash.md
279
279
  - docs/PayoutMethodDetailsXOFMobile.md
280
280
  - docs/PayoutMethodDetailsZARBank.md
281
+ - docs/PayoutMethodEntityTypeEnum.md
281
282
  - docs/PayoutMethodGenderEnum.md
282
283
  - docs/PayoutMethodIdentityCardTypeEnum.md
283
284
  - docs/PayoutMethodListResponse.md
@@ -409,6 +410,7 @@ files:
409
410
  - lib/transferzero-sdk/models/payout_method_details_xof_cash.rb
410
411
  - lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb
411
412
  - lib/transferzero-sdk/models/payout_method_details_zar_bank.rb
413
+ - lib/transferzero-sdk/models/payout_method_entity_type_enum.rb
412
414
  - lib/transferzero-sdk/models/payout_method_gender_enum.rb
413
415
  - lib/transferzero-sdk/models/payout_method_identity_card_type_enum.rb
414
416
  - lib/transferzero-sdk/models/payout_method_list_response.rb
@@ -530,6 +532,7 @@ files:
530
532
  - spec/models/payout_method_details_xof_cash_spec.rb
531
533
  - spec/models/payout_method_details_xof_mobile_spec.rb
532
534
  - spec/models/payout_method_details_zar_bank_spec.rb
535
+ - spec/models/payout_method_entity_type_enum_spec.rb
533
536
  - spec/models/payout_method_gender_enum_spec.rb
534
537
  - spec/models/payout_method_identity_card_type_enum_spec.rb
535
538
  - spec/models/payout_method_list_response_spec.rb
@@ -579,12 +582,15 @@ files:
579
582
  - spec/models/webhook_log_spec.rb
580
583
  - spec/models/webhook_spec.rb
581
584
  - spec/spec_helper.rb
585
+ - transferzero-sdk-1.10.0.gem
586
+ - transferzero-sdk-1.11.0.gem
587
+ - transferzero-sdk-1.12.0.gem
582
588
  - transferzero-sdk.gemspec
583
589
  homepage: https://github.com/transferzero/transferzero-sdk-ruby
584
590
  licenses:
585
591
  - MIT
586
592
  metadata: {}
587
- post_install_message:
593
+ post_install_message:
588
594
  rdoc_options: []
589
595
  require_paths:
590
596
  - lib
@@ -599,8 +605,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
599
605
  - !ruby/object:Gem::Version
600
606
  version: '0'
601
607
  requirements: []
602
- rubygems_version: 3.2.3
603
- signing_key:
608
+ rubygems_version: 3.0.3
609
+ signing_key:
604
610
  specification_version: 4
605
611
  summary: TransferZero API Ruby Gem
606
612
  test_files:
@@ -638,6 +644,7 @@ test_files:
638
644
  - spec/models/transaction_traits_spec.rb
639
645
  - spec/models/account_spec.rb
640
646
  - spec/models/webhook_definition_request_spec.rb
647
+ - spec/models/payout_method_entity_type_enum_spec.rb
641
648
  - spec/models/sender_state_spec.rb
642
649
  - spec/models/payout_method_request_spec.rb
643
650
  - spec/models/payout_method_details_gbp_bank_spec.rb