transferzero-sdk 1.16.1 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cb88f7dd25322010286cda4057d0fa7353f08a01372ddd384c25c14a6a42644
4
- data.tar.gz: b4fe63d3416fe08dbbe8c8622a09fe1c4014ff6b6cab1bc6afb3e5f4e6b7a258
3
+ metadata.gz: d0dc4776f3a304bb0e878db347244d6a0ee0ab62f8976833c10287cd27152013
4
+ data.tar.gz: c9fb602686ab7b5a837fd5cecfd423db2612eac2d4b8a07325a51bd8b8da91d1
5
5
  SHA512:
6
- metadata.gz: 74ccb124ad0d3146592a1380d91e7a77b2bf4090cc2670b4ecbbfe2157a30077b629e8770b14368d2d98e3d31d3bbd7e8845e0a6ba35d454cdefe3be36b57ce8
7
- data.tar.gz: a2418c3385939f664e2fe2167627814dd351874241237fac09a8764a7a369e937ff01dd5dfd2c520db407b4707390fbed0b653ec423495c7eecba74854c6c499
6
+ metadata.gz: 2f096614a85af726f815b4f6e93a8923d694f483ef6e07331699f85c4454ccda323650d0b1bf9e9559eb49c92ac17e46706b6f505b50cb34ef4b7b1a71e0e46a
7
+ data.tar.gz: 8e9bdce85dd2c00fa07cf3295590025afed03abe96d061d710936a2426b8570bc98767142e95448b0774402ce58149380fb40dd44c37f2f9ebec71f9a9103c9c
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.16.1
10
+ - Package version: 1.17.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.16.1.gem
34
+ gem install ./transferzero-sdk-1.17.0.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.16.1.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.17.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.16.1'
42
+ gem 'transferzero-sdk', '~> 1.17.0'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -225,6 +225,7 @@ Class | Method | HTTP request | Description
225
225
  - [TransferZero::PayoutMethodNatureOfBusinessEnum](docs/PayoutMethodNatureOfBusinessEnum.md)
226
226
  - [TransferZero::PayoutMethodRequest](docs/PayoutMethodRequest.md)
227
227
  - [TransferZero::PayoutMethodResponse](docs/PayoutMethodResponse.md)
228
+ - [TransferZero::PayoutMethodTransferReasonEnum](docs/PayoutMethodTransferReasonEnum.md)
228
229
  - [TransferZero::PayoutMethodWebhook](docs/PayoutMethodWebhook.md)
229
230
  - [TransferZero::PoliticallyExposedPerson](docs/PoliticallyExposedPerson.md)
230
231
  - [TransferZero::ProofOfPayment](docs/ProofOfPayment.md)
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
15
15
  **iban** | **String** | |
16
16
  **bank_name** | **String** | |
17
17
  **bank_country** | **String** | | [optional]
18
+ **transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
18
19
  **cash_provider** | [**PayoutMethodCashProviderEnum**](PayoutMethodCashProviderEnum.md) | | [optional]
19
20
  **sort_code** | **String** | | [optional]
20
21
  **bic** | **String** | | [optional]
@@ -33,7 +34,7 @@ Name | Type | Description | Notes
33
34
  **postal_code** | **String** | |
34
35
  **city** | **String** | |
35
36
  **email** | **String** | | [optional]
36
- **transfer_reason_code** | **String** | |
37
+ **transfer_reason_code** | **String** | | [optional]
37
38
  **contact_first_name** | **String** | | [optional]
38
39
  **contact_last_name** | **String** | | [optional]
39
40
  **registration_number** | **String** | | [optional]
@@ -58,6 +59,7 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
58
59
  iban: null,
59
60
  bank_name: null,
60
61
  bank_country: null,
62
+ transfer_reason: null,
61
63
  cash_provider: null,
62
64
  sort_code: null,
63
65
  bic: null,
@@ -12,7 +12,8 @@ Name | Type | Description | Notes
12
12
  **bank_name** | **String** | |
13
13
  **branch_code** | **String** | | [optional]
14
14
  **swift_code** | **String** | |
15
- **transfer_reason_code** | **String** | |
15
+ **transfer_reason_code** | **String** | | [optional]
16
+ **transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
16
17
  **identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
17
18
  **identity_card_id** | **String** | |
18
19
 
@@ -30,6 +31,7 @@ instance = TransferZero::PayoutMethodDetailsKESBank.new(first_name: null,
30
31
  branch_code: null,
31
32
  swift_code: null,
32
33
  transfer_reason_code: null,
34
+ transfer_reason: null,
33
35
  identity_card_type: null,
34
36
  identity_card_id: null)
35
37
  ```
@@ -9,7 +9,8 @@ Name | Type | Description | Notes
9
9
  **street** | **String** | |
10
10
  **phone_number** | **String** | |
11
11
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
12
- **transfer_reason_code** | **String** | |
12
+ **transfer_reason_code** | **String** | | [optional]
13
+ **transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
13
14
  **identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
14
15
  **identity_card_id** | **String** | |
15
16
 
@@ -24,6 +25,7 @@ instance = TransferZero::PayoutMethodDetailsKESMobile.new(first_name: null,
24
25
  phone_number: null,
25
26
  mobile_provider: null,
26
27
  transfer_reason_code: null,
28
+ transfer_reason: null,
27
29
  identity_card_type: null,
28
30
  identity_card_id: null)
29
31
  ```
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **bank_name** | **String** | | [optional]
11
11
  **bank_country** | **String** | | [optional]
12
12
  **bank_code** | **String** | | [optional]
13
+ **transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
13
14
 
14
15
  ## Code Sample
15
16
 
@@ -21,7 +22,8 @@ instance = TransferZero::PayoutMethodDetailsXOFBank.new(first_name: null,
21
22
  iban: null,
22
23
  bank_name: null,
23
24
  bank_country: null,
24
- bank_code: null)
25
+ bank_code: null,
26
+ transfer_reason: null)
25
27
  ```
26
28
 
27
29
 
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
14
14
  **bank_account** | **String** | |
15
15
  **phone_number** | **String** | |
16
16
  **transfer_reason_code** | **String** | | [optional]
17
+ **transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
17
18
  **name** | **String** | | [optional]
18
19
  **contact_first_name** | **String** | | [optional]
19
20
  **contact_last_name** | **String** | | [optional]
@@ -36,6 +37,7 @@ instance = TransferZero::PayoutMethodDetailsZARBank.new(first_name: null,
36
37
  bank_account: null,
37
38
  phone_number: null,
38
39
  transfer_reason_code: null,
40
+ transfer_reason: null,
39
41
  name: null,
40
42
  contact_first_name: null,
41
43
  contact_last_name: null,
@@ -0,0 +1,16 @@
1
+ # TransferZero::PayoutMethodTransferReasonEnum
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'TransferZero'
12
+
13
+ instance = TransferZero::PayoutMethodTransferReasonEnum.new()
14
+ ```
15
+
16
+
@@ -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.16.1"
38
+ @user_agent = "TransferZero-SDK/Ruby/1.17.0"
39
39
  @default_headers = {
40
40
  'Content-Type' => 'application/json',
41
41
  'User-Agent' => @user_agent
@@ -36,6 +36,8 @@ class PayoutMethodDetails
36
36
 
37
37
  attr_accessor :bank_country
38
38
 
39
+ attr_accessor :transfer_reason
40
+
39
41
  attr_accessor :cash_provider
40
42
 
41
43
  attr_accessor :sort_code
@@ -102,6 +104,7 @@ class PayoutMethodDetails
102
104
  :'iban' => :'iban',
103
105
  :'bank_name' => :'bank_name',
104
106
  :'bank_country' => :'bank_country',
107
+ :'transfer_reason' => :'transfer_reason',
105
108
  :'cash_provider' => :'cash_provider',
106
109
  :'sort_code' => :'sort_code',
107
110
  :'bic' => :'bic',
@@ -145,6 +148,7 @@ class PayoutMethodDetails
145
148
  :'iban' => :'String',
146
149
  :'bank_name' => :'String',
147
150
  :'bank_country' => :'String',
151
+ :'transfer_reason' => :'PayoutMethodTransferReasonEnum',
148
152
  :'cash_provider' => :'PayoutMethodCashProviderEnum',
149
153
  :'sort_code' => :'String',
150
154
  :'bic' => :'String',
@@ -256,6 +260,10 @@ class PayoutMethodDetails
256
260
  self.bank_country = attributes[:'bank_country']
257
261
  end
258
262
 
263
+ if attributes.key?(:'transfer_reason')
264
+ self.transfer_reason = attributes[:'transfer_reason']
265
+ end
266
+
259
267
  if attributes.key?(:'cash_provider')
260
268
  self.cash_provider = attributes[:'cash_provider']
261
269
  end
@@ -437,10 +445,6 @@ class PayoutMethodDetails
437
445
  invalid_properties.push('invalid value for "city", city cannot be nil.')
438
446
  end
439
447
 
440
- if @transfer_reason_code.nil?
441
- invalid_properties.push('invalid value for "transfer_reason_code", transfer_reason_code cannot be nil.')
442
- end
443
-
444
448
  if @swift_code.nil?
445
449
  invalid_properties.push('invalid value for "swift_code", swift_code cannot be nil.')
446
450
  end
@@ -469,7 +473,6 @@ class PayoutMethodDetails
469
473
  return false if @street.nil?
470
474
  return false if @postal_code.nil?
471
475
  return false if @city.nil?
472
- return false if @transfer_reason_code.nil?
473
476
  return false if @swift_code.nil?
474
477
  _one_of_found = false
475
478
  openapi_one_of.each do |_class|
@@ -506,6 +509,7 @@ class PayoutMethodDetails
506
509
  iban == o.iban &&
507
510
  bank_name == o.bank_name &&
508
511
  bank_country == o.bank_country &&
512
+ transfer_reason == o.transfer_reason &&
509
513
  cash_provider == o.cash_provider &&
510
514
  sort_code == o.sort_code &&
511
515
  bic == o.bic &&
@@ -543,7 +547,7 @@ class PayoutMethodDetails
543
547
  # Calculates hash code according to all attributes.
544
548
  # @return [Integer] Hash code
545
549
  def hash
546
- [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, legal_entity_type, branch_code, swift_code].hash
550
+ [first_name, last_name, bank_code, bank_account, bank_account_type, phone_number, mobile_provider, country, iban, bank_name, bank_country, transfer_reason, 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, branch_code, swift_code].hash
547
551
  end
548
552
 
549
553
  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\", \"street\": \"Main Street\", \"bank_code\": \"68\", \"bank_account\": \"12345678\", \"bank_name\": \"Equity Bank Ltd\", \"branch_code\": \"404\", \"swift_code\" \"ABCLKENA\", \"transfer_reason_code\": \"185\", \"identity_card_type\": \"ID\", \"identity_card_id\": \"AB12345678\" } ``` The valid bank_code values are: - Habib Bank Limited: 08 - Trans-National Bank Limited: 26 - Housing Finance Co. Kenya: 61 - UBA Kenya Bank Ltd: 76 - Kenya Commercial Bank: 01000 - Standard Chartered Bank: 02000 - Barclays Bank of Kenya: 03000 - Bank of India: 05000 - Bank of Boroda: 06000 - NCBA Bank: 07000 - Prime Bank: 10000 - Co-operative Bank of Kenya: 11000 - National Bank of Kenya: 12000 - M-Oriental Commercial Bank Limited: 14000 - Citibank: 16000 - Habib Bank A.G. Zurich: 17000 - Middle East Bank: 18000 - Bank of Africa Kenya: 19000 - Consolidated Bank of Kenya: 23000 - Credit Bank Ltd: 25000 - Chase Bank: 30000 - Stanbic Bank Kenya: 31000 - African Banking Corporation: 35000 - Giro Bank Limited: 42000 - ECO Bank Kenya: 43000 - Spire Bank Limited: 49000 - Paramount Universal Bank Limited: 50000 - Jamii Bora Bank: 51000 - Guaranty Trust Bank Kenya: 53000 - Victoria Bank Limited: 54000 - Guardian Bank: 55000 - Investments and Mortgages Bank Limited: 57000 - Development Bank of Kenya: 59000 - Fidelity Commercial Bank: 46000 - Diamond Trust Bank: 63000 - Sidian Bank: 66000 - Equity Bank Limited: 68000 - Family Bank: 70000 - Gulf African Bank: 72000 - First Community Bank: 74000 - KWFT Bank: 78000 See [KES Bank](https://docs.transferzero.com/docs/payout-details/#kesbank) documentation for the transfer_reason_code list
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"street\": \"Main Street\", \"bank_code\": \"68\", \"bank_account\": \"12345678\", \"bank_name\": \"Equity Bank Ltd\", \"branch_code\": \"404\", \"swift_code\" \"ABCLKENA\", \"transfer_reason\": \"personal_account\", // New transfer reason field \"identity_card_type\": \"ID\", \"identity_card_id\": \"AB12345678\" } ``` The valid bank_code values are: - Habib Bank Limited: 08 - Trans-National Bank Limited: 26 - Housing Finance Co. Kenya: 61 - UBA Kenya Bank Ltd: 76 - Kenya Commercial Bank: 01000 - Standard Chartered Bank: 02000 - Barclays Bank of Kenya: 03000 - Bank of India: 05000 - Bank of Boroda: 06000 - NCBA Bank: 07000 - Prime Bank: 10000 - Co-operative Bank of Kenya: 11000 - National Bank of Kenya: 12000 - M-Oriental Commercial Bank Limited: 14000 - Citibank: 16000 - Habib Bank A.G. Zurich: 17000 - Middle East Bank: 18000 - Bank of Africa Kenya: 19000 - Consolidated Bank of Kenya: 23000 - Credit Bank Ltd: 25000 - Chase Bank: 30000 - Stanbic Bank Kenya: 31000 - African Banking Corporation: 35000 - Giro Bank Limited: 42000 - ECO Bank Kenya: 43000 - Spire Bank Limited: 49000 - Paramount Universal Bank Limited: 50000 - Jamii Bora Bank: 51000 - Guaranty Trust Bank Kenya: 53000 - Victoria Bank Limited: 54000 - Guardian Bank: 55000 - Investments and Mortgages Bank Limited: 57000 - Development Bank of Kenya: 59000 - Fidelity Commercial Bank: 46000 - Diamond Trust Bank: 63000 - Sidian Bank: 66000 - Equity Bank Limited: 68000 - Family Bank: 70000 - Gulf African Bank: 72000 - First Community Bank: 74000 - KWFT Bank: 78000 See [KES Bank](https://docs.transferzero.com/docs/payout-details/#kesbank) documentation for the transfer_reason list
17
17
  class PayoutMethodDetailsKESBank
18
18
  attr_accessor :first_name
19
19
 
@@ -33,6 +33,8 @@ class PayoutMethodDetailsKESBank
33
33
 
34
34
  attr_accessor :transfer_reason_code
35
35
 
36
+ attr_accessor :transfer_reason
37
+
36
38
  attr_accessor :identity_card_type
37
39
 
38
40
  attr_accessor :identity_card_id
@@ -49,6 +51,7 @@ class PayoutMethodDetailsKESBank
49
51
  :'branch_code' => :'branch_code',
50
52
  :'swift_code' => :'swift_code',
51
53
  :'transfer_reason_code' => :'transfer_reason_code',
54
+ :'transfer_reason' => :'transfer_reason',
52
55
  :'identity_card_type' => :'identity_card_type',
53
56
  :'identity_card_id' => :'identity_card_id'
54
57
  }
@@ -66,6 +69,7 @@ class PayoutMethodDetailsKESBank
66
69
  :'branch_code' => :'String',
67
70
  :'swift_code' => :'String',
68
71
  :'transfer_reason_code' => :'String',
72
+ :'transfer_reason' => :'PayoutMethodTransferReasonEnum',
69
73
  :'identity_card_type' => :'PayoutMethodIdentityCardTypeEnum',
70
74
  :'identity_card_id' => :'String'
71
75
  }
@@ -122,6 +126,10 @@ class PayoutMethodDetailsKESBank
122
126
  self.transfer_reason_code = attributes[:'transfer_reason_code']
123
127
  end
124
128
 
129
+ if attributes.key?(:'transfer_reason')
130
+ self.transfer_reason = attributes[:'transfer_reason']
131
+ end
132
+
125
133
  if attributes.key?(:'identity_card_type')
126
134
  self.identity_card_type = attributes[:'identity_card_type']
127
135
  end
@@ -163,10 +171,6 @@ class PayoutMethodDetailsKESBank
163
171
  invalid_properties.push('invalid value for "swift_code", swift_code cannot be nil.')
164
172
  end
165
173
 
166
- if @transfer_reason_code.nil?
167
- invalid_properties.push('invalid value for "transfer_reason_code", transfer_reason_code cannot be nil.')
168
- end
169
-
170
174
  if @identity_card_type.nil?
171
175
  invalid_properties.push('invalid value for "identity_card_type", identity_card_type cannot be nil.')
172
176
  end
@@ -188,7 +192,6 @@ class PayoutMethodDetailsKESBank
188
192
  return false if @bank_account.nil?
189
193
  return false if @bank_name.nil?
190
194
  return false if @swift_code.nil?
191
- return false if @transfer_reason_code.nil?
192
195
  return false if @identity_card_type.nil?
193
196
  return false if @identity_card_id.nil?
194
197
  true
@@ -208,6 +211,7 @@ class PayoutMethodDetailsKESBank
208
211
  branch_code == o.branch_code &&
209
212
  swift_code == o.swift_code &&
210
213
  transfer_reason_code == o.transfer_reason_code &&
214
+ transfer_reason == o.transfer_reason &&
211
215
  identity_card_type == o.identity_card_type &&
212
216
  identity_card_id == o.identity_card_id
213
217
  end
@@ -221,7 +225,7 @@ class PayoutMethodDetailsKESBank
221
225
  # Calculates hash code according to all attributes.
222
226
  # @return [Integer] Hash code
223
227
  def hash
224
- [first_name, last_name, bank_code, street, bank_account, bank_name, branch_code, swift_code, transfer_reason_code, identity_card_type, identity_card_id].hash
228
+ [first_name, last_name, bank_code, street, bank_account, bank_name, branch_code, swift_code, transfer_reason_code, transfer_reason, identity_card_type, identity_card_id].hash
225
229
  end
226
230
 
227
231
  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\", \"street\": \"Main Street\", \"phone_number\": \"+254997853134\", \"mobile_provider\": \"mpesa\", \"transfer_reason_code\": \"185\", \"identity_card_type\": \"ID\", \"identity_card_id\": \"AB12345678\" } ``` See [KES Mobile](https://docs.transferzero.com/docs/payout-details/#kesmobile) documentation for transfer_reason_code lists
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"street\": \"Main Street\", \"phone_number\": \"+254997853134\", \"mobile_provider\": \"mpesa\", \"transfer_reason\": \"personal_account\", // New transfer reason field \"identity_card_type\": \"ID\", \"identity_card_id\": \"AB12345678\" } ``` See [KES Mobile](https://docs.transferzero.com/docs/payout-details/#kesmobile) documentation for transfer_reason lists
17
17
  class PayoutMethodDetailsKESMobile
18
18
  attr_accessor :first_name
19
19
 
@@ -27,6 +27,8 @@ class PayoutMethodDetailsKESMobile
27
27
 
28
28
  attr_accessor :transfer_reason_code
29
29
 
30
+ attr_accessor :transfer_reason
31
+
30
32
  attr_accessor :identity_card_type
31
33
 
32
34
  attr_accessor :identity_card_id
@@ -40,6 +42,7 @@ class PayoutMethodDetailsKESMobile
40
42
  :'phone_number' => :'phone_number',
41
43
  :'mobile_provider' => :'mobile_provider',
42
44
  :'transfer_reason_code' => :'transfer_reason_code',
45
+ :'transfer_reason' => :'transfer_reason',
43
46
  :'identity_card_type' => :'identity_card_type',
44
47
  :'identity_card_id' => :'identity_card_id'
45
48
  }
@@ -54,6 +57,7 @@ class PayoutMethodDetailsKESMobile
54
57
  :'phone_number' => :'String',
55
58
  :'mobile_provider' => :'PayoutMethodMobileProviderEnum',
56
59
  :'transfer_reason_code' => :'String',
60
+ :'transfer_reason' => :'PayoutMethodTransferReasonEnum',
57
61
  :'identity_card_type' => :'PayoutMethodIdentityCardTypeEnum',
58
62
  :'identity_card_id' => :'String'
59
63
  }
@@ -98,6 +102,10 @@ class PayoutMethodDetailsKESMobile
98
102
  self.transfer_reason_code = attributes[:'transfer_reason_code']
99
103
  end
100
104
 
105
+ if attributes.key?(:'transfer_reason')
106
+ self.transfer_reason = attributes[:'transfer_reason']
107
+ end
108
+
101
109
  if attributes.key?(:'identity_card_type')
102
110
  self.identity_card_type = attributes[:'identity_card_type']
103
111
  end
@@ -131,10 +139,6 @@ class PayoutMethodDetailsKESMobile
131
139
  invalid_properties.push('invalid value for "mobile_provider", mobile_provider cannot be nil.')
132
140
  end
133
141
 
134
- if @transfer_reason_code.nil?
135
- invalid_properties.push('invalid value for "transfer_reason_code", transfer_reason_code cannot be nil.')
136
- end
137
-
138
142
  if @identity_card_type.nil?
139
143
  invalid_properties.push('invalid value for "identity_card_type", identity_card_type cannot be nil.')
140
144
  end
@@ -154,7 +158,6 @@ class PayoutMethodDetailsKESMobile
154
158
  return false if @street.nil?
155
159
  return false if @phone_number.nil?
156
160
  return false if @mobile_provider.nil?
157
- return false if @transfer_reason_code.nil?
158
161
  return false if @identity_card_type.nil?
159
162
  return false if @identity_card_id.nil?
160
163
  true
@@ -171,6 +174,7 @@ class PayoutMethodDetailsKESMobile
171
174
  phone_number == o.phone_number &&
172
175
  mobile_provider == o.mobile_provider &&
173
176
  transfer_reason_code == o.transfer_reason_code &&
177
+ transfer_reason == o.transfer_reason &&
174
178
  identity_card_type == o.identity_card_type &&
175
179
  identity_card_id == o.identity_card_id
176
180
  end
@@ -184,7 +188,7 @@ class PayoutMethodDetailsKESMobile
184
188
  # Calculates hash code according to all attributes.
185
189
  # @return [Integer] Hash code
186
190
  def hash
187
- [first_name, last_name, street, phone_number, mobile_provider, transfer_reason_code, identity_card_type, identity_card_id].hash
191
+ [first_name, last_name, street, phone_number, mobile_provider, transfer_reason_code, transfer_reason, identity_card_type, identity_card_id].hash
188
192
  end
189
193
 
190
194
  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\", \"iban\": \"BJ0610100100144390000769\", # BBAN format \"bank_name\": \"Bank Of Africa Bénin\", \"bank_country\": \"BJ\", # ISO country code for Benin \"bank_code\": \"BJ061\" } ``` See [XOF Bank](https://docs.transferzero.com/docs/payout-details/#xofbank) documentation for the bank_code list
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"iban\": \"BJ0610100100144390000769\", # BBAN format \"bank_name\": \"Bank Of Africa Bénin\", \"bank_country\": \"BJ\", # ISO country code for Benin \"bank_code\": \"BJ061\", \"transfer_reason\": \"personal_account\" } ``` See [XOF Bank](https://docs.transferzero.com/docs/payout-details/#xofbank) documentation for the bank_code and transfer_reason lists
17
17
  class PayoutMethodDetailsXOFBank
18
18
  attr_accessor :first_name
19
19
 
@@ -27,6 +27,8 @@ class PayoutMethodDetailsXOFBank
27
27
 
28
28
  attr_accessor :bank_code
29
29
 
30
+ attr_accessor :transfer_reason
31
+
30
32
  # Attribute mapping from ruby-style variable name to JSON key.
31
33
  def self.attribute_map
32
34
  {
@@ -35,7 +37,8 @@ class PayoutMethodDetailsXOFBank
35
37
  :'iban' => :'iban',
36
38
  :'bank_name' => :'bank_name',
37
39
  :'bank_country' => :'bank_country',
38
- :'bank_code' => :'bank_code'
40
+ :'bank_code' => :'bank_code',
41
+ :'transfer_reason' => :'transfer_reason'
39
42
  }
40
43
  end
41
44
 
@@ -47,7 +50,8 @@ class PayoutMethodDetailsXOFBank
47
50
  :'iban' => :'String',
48
51
  :'bank_name' => :'String',
49
52
  :'bank_country' => :'String',
50
- :'bank_code' => :'String'
53
+ :'bank_code' => :'String',
54
+ :'transfer_reason' => :'PayoutMethodTransferReasonEnum'
51
55
  }
52
56
  end
53
57
 
@@ -89,6 +93,10 @@ class PayoutMethodDetailsXOFBank
89
93
  if attributes.key?(:'bank_code')
90
94
  self.bank_code = attributes[:'bank_code']
91
95
  end
96
+
97
+ if attributes.key?(:'transfer_reason')
98
+ self.transfer_reason = attributes[:'transfer_reason']
99
+ end
92
100
  end
93
101
 
94
102
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -129,7 +137,8 @@ class PayoutMethodDetailsXOFBank
129
137
  iban == o.iban &&
130
138
  bank_name == o.bank_name &&
131
139
  bank_country == o.bank_country &&
132
- bank_code == o.bank_code
140
+ bank_code == o.bank_code &&
141
+ transfer_reason == o.transfer_reason
133
142
  end
134
143
 
135
144
  # @see the `==` method
@@ -141,7 +150,7 @@ class PayoutMethodDetailsXOFBank
141
150
  # Calculates hash code according to all attributes.
142
151
  # @return [Integer] Hash code
143
152
  def hash
144
- [first_name, last_name, iban, bank_name, bank_country, bank_code].hash
153
+ [first_name, last_name, iban, bank_name, bank_country, bank_code, transfer_reason].hash
145
154
  end
146
155
 
147
156
  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\", // 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_name\" 'Bank Zero', // Optional \"bank_code\": \"334810\", \"bank_account\": \"12345678\", \"phone_number\": \"+27119785313\", \"transfer_reason_code\": \"185\", \"legal_entity_type\": \"sole_proprietorship\", // Optional; Default value is \"person\"; Mandatory for business payouts; \"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_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_name\" 'Bank Zero', // Optional \"bank_code\": \"334810\", \"bank_account\": \"12345678\", \"phone_number\": \"+27119785313\", \"transfer_reason\": \"personal_account\", // New transfer reason field \"legal_entity_type\": \"sole_proprietorship\", // Optional; Default value is \"person\"; Mandatory for business payouts; \"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
 
@@ -35,6 +35,8 @@ class PayoutMethodDetailsZARBank
35
35
 
36
36
  attr_accessor :transfer_reason_code
37
37
 
38
+ attr_accessor :transfer_reason
39
+
38
40
  attr_accessor :name
39
41
 
40
42
  attr_accessor :contact_first_name
@@ -60,6 +62,7 @@ class PayoutMethodDetailsZARBank
60
62
  :'bank_account' => :'bank_account',
61
63
  :'phone_number' => :'phone_number',
62
64
  :'transfer_reason_code' => :'transfer_reason_code',
65
+ :'transfer_reason' => :'transfer_reason',
63
66
  :'name' => :'name',
64
67
  :'contact_first_name' => :'contact_first_name',
65
68
  :'contact_last_name' => :'contact_last_name',
@@ -82,6 +85,7 @@ class PayoutMethodDetailsZARBank
82
85
  :'bank_account' => :'String',
83
86
  :'phone_number' => :'String',
84
87
  :'transfer_reason_code' => :'String',
88
+ :'transfer_reason' => :'PayoutMethodTransferReasonEnum',
85
89
  :'name' => :'String',
86
90
  :'contact_first_name' => :'String',
87
91
  :'contact_last_name' => :'String',
@@ -146,6 +150,10 @@ class PayoutMethodDetailsZARBank
146
150
  self.transfer_reason_code = attributes[:'transfer_reason_code']
147
151
  end
148
152
 
153
+ if attributes.key?(:'transfer_reason')
154
+ self.transfer_reason = attributes[:'transfer_reason']
155
+ end
156
+
149
157
  if attributes.key?(:'name')
150
158
  self.name = attributes[:'name']
151
159
  end
@@ -239,6 +247,7 @@ class PayoutMethodDetailsZARBank
239
247
  bank_account == o.bank_account &&
240
248
  phone_number == o.phone_number &&
241
249
  transfer_reason_code == o.transfer_reason_code &&
250
+ transfer_reason == o.transfer_reason &&
242
251
  name == o.name &&
243
252
  contact_first_name == o.contact_first_name &&
244
253
  contact_last_name == o.contact_last_name &&
@@ -256,7 +265,7 @@ class PayoutMethodDetailsZARBank
256
265
  # Calculates hash code according to all attributes.
257
266
  # @return [Integer] Hash code
258
267
  def 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, legal_entity_type].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
260
269
  end
261
270
 
262
271
  require 'active_support/core_ext/hash'
@@ -0,0 +1,137 @@
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 PayoutMethodTransferReasonEnum
17
+
18
+ PERSONAL_ACCOUNT = "personal_account".freeze
19
+ DONATIONS_AND_GIFTS = "donations_and_gifts".freeze
20
+ THIRD_PARTY_PERSON_ACCOUNT = "third_party_person_account".freeze
21
+ MORTGAGE_REPAYMENTS = "mortgage_repayments".freeze
22
+ BUSINESS_TRAVEL_PAYMENTS = "business_travel_payments".freeze
23
+ PERSONAL_TRAVEL_PAYMENTS = "personal_travel_payments".freeze
24
+ TUITION_FEES = "tuition_fees".freeze
25
+ FINANCIAL_COMMISSION_FEES = "financial_commission_fees".freeze
26
+ FINANCIAL_SERVICES_PROCEEDS = "financial_services_proceeds".freeze
27
+ INDIVIDUAL_PROPERTY_INVESTMENTS = "individual_property_investments".freeze
28
+ OTHER_INVESTMENTS = "other_investments".freeze
29
+ CORPORATE_PROPERTY_INVESTMENTS = "corporate_property_investments".freeze
30
+ IMMIGRANTS_CAPITAL_PAYMENTS = "immigrants_capital_payments".freeze
31
+ LEGAL_SERVICES = "legal_services".freeze
32
+ ACCOUNTING_SERVICES = "accounting_services".freeze
33
+ CONSULTING_SERVICES = "consulting_services".freeze
34
+ PUBLIC_RELATION_SERVICES = "public_relation_services".freeze
35
+ ADS_AND_MARKET_RESEARCH_SERVICES = "ads_and_market_research_services".freeze
36
+ MANAGERIAL_SERVICES = "managerial_services".freeze
37
+ MEDICAL_AND_DENTAL_SERVICES = "medical_and_dental_services".freeze
38
+ EDUCATIONAL_SERVICES = "educational_services".freeze
39
+ OPERATIONAL_LEASING = "operational_leasing".freeze
40
+ CULTURAL_AND_RECREATIONAL_SERVICES = "cultural_and_recreational_services".freeze
41
+ SALARY_RESIDENT_OUT_COUNTRY = "salary_resident_out_country".freeze
42
+ SALARY_NON_RESIDENT_IN_COUNTRY = "salary_non_resident_in_country".freeze
43
+ SALARY_CONTRACT_WORKER_IN_COUNTRY = "salary_contract_worker_in_country".freeze
44
+ SOCIAL_SECURITY_SCHEMES = "social_security_schemes".freeze
45
+ CHARITIES_AND_RELIGIOUS_BODIES = "charities_and_religious_bodies".freeze
46
+ DONATIONS_AND_AID_TO_GOVERNMENT = "donations_and_aid_to_government".freeze
47
+ DONATIONS_AND_AID_TO_PRIVATE = "donations_and_aid_to_private".freeze
48
+ PENSIONS = "pensions".freeze
49
+ ANNUITIES = "annuities".freeze
50
+ INHERITANCES = "inheritances".freeze
51
+ ALIMONY = "alimony".freeze
52
+ TAX_INCOME = "tax_income".freeze
53
+ TAX_VAT_REFUNDS = "tax_vat_refunds".freeze
54
+ TAX_OTHER = "tax_other".freeze
55
+ NON_LIFE_INSURANCE_PREMIUMS = "non_life_insurance_premiums".freeze
56
+ LIFE_INSURANCE_PREMIUMS = "life_insurance_premiums".freeze
57
+ DIVIDENDS = "dividends".freeze
58
+ BRANCH_PROFITS = "branch_profits".freeze
59
+ COMMISION_OR_BROKERAGE = "commision_or_brokerage".freeze
60
+ RENTAL = "rental".freeze
61
+ INDIVIDUAL_INVESTMENT_INCOME_FROM_ABROAD = "individual_investment_income_from_abroad".freeze
62
+ SHARES_SALE = "shares_sale".freeze
63
+ BONDS_SALE = "bonds_sale".freeze
64
+ MONEY_MARKET_INSTRUMENTS_SALE = "money_market_instruments_sale".freeze
65
+ FUNDS_REPATRIATION_OF_FOREIGN_BANK_ACCOUNT = "funds_repatriation_of_foreign_bank_account".freeze
66
+ MUTUAL_FUNDS_SALE_OR_COLLECTIVE_INVESTMENT = "mutual_funds_sale_or_collective_investment".freeze
67
+ OVERSEAS_PROPERTY_SALE = "overseas_property_sale".freeze
68
+ SALE_AND_REPATRIATION_OF_OTHER_INVESTMENT = "sale_and_repatriation_of_other_investment".freeze
69
+ REPATRIATION_SOUTH_AFRICAN_RESERVE_BANK_INSTRUCTION = "repatriation_south_african_reserve_bank_instruction".freeze
70
+ RESIDENT_LOAN_FROM_NON_RESIDENT_SHARE_HOLDER = "resident_loan_from_non_resident_share_holder".freeze
71
+ RESIDENT_LOAN_FROM_NON_RESIDENT_THIRD_PARTY = "resident_loan_from_non_resident_third_party".freeze
72
+ RESIDENT_LOAN_REPAYMENT_FROM_OVERSEAS_LIVING_SOUTH_AFRICAN = "resident_loan_repayment_from_overseas_living_south_african".freeze
73
+ STUDY_LOAN_REPAYMENT = "study_loan_repayment".freeze
74
+ SHAREHOLDERS_LOAN_REPAYMENT = "shareholders_loan_repayment".freeze
75
+ THIRD_PARTY_LOAN_REPAYMENT = "third_party_loan_repayment".freeze
76
+ TRADE_FINANCE_LOAN_REPAYMENT = "trade_finance_loan_repayment".freeze
77
+ RESEARCH_AND_DEVELOPMENT_PROCEEDS = "research_and_development_proceeds".freeze
78
+ RESEARCH_AND_DEVELOPMENT_FUNDING = "research_and_development_funding".freeze
79
+ MACHINARY_AND_EQUIPMENT_REPAIRS = "machinary_and_equipment_repairs".freeze
80
+ ARCHITECTURAL_ENGINEERING_TECHNICAL_SERVICES = "architectural_engineering_technical_services".freeze
81
+ AGRIGULTURAL_MINING_WASTE_DEPOLLUTION_SERVICES = "agrigultural_mining_waste_depollution_services".freeze
82
+ CONSTRUCTION_SERVICES = "construction_services".freeze
83
+ TELECOMMUNICATION_SERVICES = "telecommunication_services".freeze
84
+ DATA_NEWS_AGENCY_FEES = "data_news_agency_fees".freeze
85
+ ROAD_PASSENGER_SERVICES = "road_passenger_services".freeze
86
+ RAIL_PASSENGER_SERVICES = "rail_passenger_services".freeze
87
+ SEA_PASSENGER_SERVICES = "sea_passenger_services".freeze
88
+ AIR_PASSENGER_SERVICES = "air_passenger_services".freeze
89
+ ROAD_FREIGHT_SERVICES = "road_freight_services".freeze
90
+ RAIL_FREIGHT_SERVICES = "rail_freight_services".freeze
91
+ SEA_FREIGHT_SERVICES = "sea_freight_services".freeze
92
+ AIR_FREIGHT_SERVICES = "air_freight_services".freeze
93
+ ROAD_POSTAL_AND_COURIER_SERVICES = "road_postal_and_courier_services".freeze
94
+ RAIL_POSTAL_AND_COURIER_SERVICES = "rail_postal_and_courier_services".freeze
95
+ SEA_POSTAL_AND_COURIER_SERVICES = "sea_postal_and_courier_services".freeze
96
+ AIR_POSTAL_AND_COURIER_SERVICES = "air_postal_and_courier_services".freeze
97
+ LISTED_SHARES_INVESTMENT = "listed_shares_investment".freeze
98
+ NON_LISTED_SHARES_INVESTMENT = "non_listed_shares_investment".freeze
99
+ MONEY_MARKET_INSTRUMENTS_INVESTMENT = "money_market_instruments_investment".freeze
100
+ LISTED_BONDS_INVESTMENT = "listed_bonds_investment".freeze
101
+ NON_LISTED_BONDS_INVESTMENT = "non_listed_bonds_investment".freeze
102
+ REPRODUCE_DISTRIBUTE_RIGHTS_LICENSE = "reproduce_distribute_rights_license".freeze
103
+ PATENTS_AND_INVESTIONS_RIGHTS_LICENSE = "patents_and_investions_rights_license".freeze
104
+ PATTERNS_AND_DESIGNS_RIGHTS = "patterns_and_designs_rights".freeze
105
+ COPYRIGHTS_RIGHTS = "copyrights_rights".freeze
106
+ FRANCHISES_AND_TRADEMARKS_RIGHTS = "franchises_and_trademarks_rights".freeze
107
+ PATENTS_AND_INVENTIONS_DISPOSAL = "patents_and_inventions_disposal".freeze
108
+ PATTERNS_AND_DESIGNS_DISPOSAL = "patterns_and_designs_disposal".freeze
109
+ COPYRIGHTS_DISPOSAL = "copyrights_disposal".freeze
110
+ FRANCHISES_AND_TRADEMARKS_DISPOSAL = "franchises_and_trademarks_disposal".freeze
111
+ SALES_OF_MANUSCRIPTS_SOUND_RECORDINGS_FILMS = "sales_of_manuscripts_sound_recordings_films".freeze
112
+ FUNDS_RELATED_TO_RECORDING_PRODUCTIONS = "funds_related_to_recording_productions".freeze
113
+ SOFTWARE_OWNERSHIP_RIGHTS_SALE = "software_ownership_rights_sale".freeze
114
+ COMPUTER_SERVICES = "computer_services".freeze
115
+ CUSTOMISED_SOFTWARE_SALES = "customised_software_sales".freeze
116
+ NON_CUSTOMISED_SOFTWARE_ON_PHYSICAL_MEDIA_PERIODIC_LICENCE_SALE = "non_customised_software_on_physical_media_periodic_licence_sale".freeze
117
+ NON_CUSTOMISED_SOFTWARE_ON_PYISICAL_MEDIA_PERPETUAL_USE_SALE = "non_customised_software_on_pyisical_media_perpetual_use_sale".freeze
118
+ NON_CUSTOMISED_SOFTWARE_FOR_DOWNLOADING_ELECTRONICALLY_MADE_PERIODIC_LICENCE_SALE = "non_customised_software_for_downloading_electronically_made_periodic_licence_sale".freeze
119
+ NON_CUSTOMISED_SOFTWARE_FOR_DOWNLOADING_ELECTRONICALLY_MADE_SINGLE_PAYMENT_SALE = "non_customised_software_for_downloading_electronically_made_single_payment_sale".freeze
120
+ FIXED_ASSETS_DONATIONS_TO_SA_GOVERNMENT = "fixed_assets_donations_to_sa_government".freeze
121
+ FIXED_ASSETS_DONATIONS_TO_CORPORATE_ENTITIES = "fixed_assets_donations_to_corporate_entities".freeze
122
+ PROPERTY_DISINVESTMENT_BY_CORPORATE_ENTITY_RESIDENT = "property_disinvestment_by_corporate_entity_resident".freeze
123
+ OTHER_BUSINESS_SERVICES = "other_business_services".freeze
124
+ INSTITUTIONAL_INVESTOR_DISINVESTMENT = "institutional_investor_disinvestment".freeze
125
+ GOVERNMENT_SERVICES = "government_services".freeze
126
+
127
+ # Builds the enum from string
128
+ # @param [String] The enum value in the form of the string
129
+ # @return [String] The enum value
130
+ def build_from_hash(value)
131
+ constantValues = PayoutMethodTransferReasonEnum.constants.select { |c| PayoutMethodTransferReasonEnum::const_get(c) == value }
132
+ raise "Invalid ENUM value #{value} for class #PayoutMethodTransferReasonEnum" if constantValues.empty? && !value.empty?
133
+ value
134
+ end
135
+ end
136
+
137
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.0.0-beta3
11
11
  =end
12
12
 
13
13
  module TransferZero
14
- VERSION = '1.16.1'
14
+ VERSION = '1.17.0'
15
15
  end
@@ -89,6 +89,7 @@ require 'transferzero-sdk/models/payout_method_mobile_provider_enum'
89
89
  require 'transferzero-sdk/models/payout_method_nature_of_business_enum'
90
90
  require 'transferzero-sdk/models/payout_method_request'
91
91
  require 'transferzero-sdk/models/payout_method_response'
92
+ require 'transferzero-sdk/models/payout_method_transfer_reason_enum'
92
93
  require 'transferzero-sdk/models/payout_method_webhook'
93
94
  require 'transferzero-sdk/models/politically_exposed_person'
94
95
  require 'transferzero-sdk/models/proof_of_payment'
@@ -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::PayoutMethodTransferReasonEnum
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PayoutMethodTransferReasonEnum' do
21
+ before do
22
+ # run before each test
23
+ @instance = TransferZero::PayoutMethodTransferReasonEnum.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PayoutMethodTransferReasonEnum' do
31
+ it 'should create an instance of PayoutMethodTransferReasonEnum' do
32
+ expect(@instance).to be_instance_of(TransferZero::PayoutMethodTransferReasonEnum)
33
+ end
34
+ end
35
+ 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.16.1
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TransferZero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-23 00:00:00.000000000 Z
11
+ date: 2021-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -206,7 +206,6 @@ extensions: []
206
206
  extra_rdoc_files: []
207
207
  files:
208
208
  - Gemfile
209
- - Gemfile.lock
210
209
  - LICENSE
211
210
  - README.md
212
211
  - Rakefile
@@ -290,6 +289,7 @@ files:
290
289
  - docs/PayoutMethodNatureOfBusinessEnum.md
291
290
  - docs/PayoutMethodRequest.md
292
291
  - docs/PayoutMethodResponse.md
292
+ - docs/PayoutMethodTransferReasonEnum.md
293
293
  - docs/PayoutMethodWebhook.md
294
294
  - docs/PayoutMethodsApi.md
295
295
  - docs/PoliticallyExposedPerson.md
@@ -427,6 +427,7 @@ files:
427
427
  - lib/transferzero-sdk/models/payout_method_nature_of_business_enum.rb
428
428
  - lib/transferzero-sdk/models/payout_method_request.rb
429
429
  - lib/transferzero-sdk/models/payout_method_response.rb
430
+ - lib/transferzero-sdk/models/payout_method_transfer_reason_enum.rb
430
431
  - lib/transferzero-sdk/models/payout_method_webhook.rb
431
432
  - lib/transferzero-sdk/models/politically_exposed_person.rb
432
433
  - lib/transferzero-sdk/models/proof_of_payment.rb
@@ -555,6 +556,7 @@ files:
555
556
  - spec/models/payout_method_request_spec.rb
556
557
  - spec/models/payout_method_response_spec.rb
557
558
  - spec/models/payout_method_spec.rb
559
+ - spec/models/payout_method_transfer_reason_enum_spec.rb
558
560
  - spec/models/payout_method_webhook_spec.rb
559
561
  - spec/models/politically_exposed_person_spec.rb
560
562
  - spec/models/proof_of_payment_list_response_spec.rb
@@ -617,7 +619,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
617
619
  - !ruby/object:Gem::Version
618
620
  version: '0'
619
621
  requirements: []
620
- rubygems_version: 3.1.4
622
+ rubygems_version: 3.1.2
621
623
  signing_key:
622
624
  specification_version: 4
623
625
  summary: TransferZero API Ruby Gem
@@ -742,6 +744,7 @@ test_files:
742
744
  - spec/models/payout_method_details_xof_mobile_spec.rb
743
745
  - spec/models/sender_list_response_spec.rb
744
746
  - spec/models/payout_method_details_ghs_cash_spec.rb
747
+ - spec/models/payout_method_transfer_reason_enum_spec.rb
745
748
  - spec/models/payout_method_cash_provider_enum_spec.rb
746
749
  - spec/models/field_description_spec.rb
747
750
  - spec/models/currency_exchange_spec.rb
data/Gemfile.lock DELETED
@@ -1,89 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- transferzero-sdk (1.16.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.4.1)
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-growl (0.2.16)
24
- autotest-rails-pure (4.1.2)
25
- byebug (11.1.3)
26
- coderay (1.1.3)
27
- concurrent-ruby (1.1.9)
28
- crack (0.4.5)
29
- rexml
30
- diff-lcs (1.4.4)
31
- ethon (0.14.0)
32
- ffi (>= 1.15.0)
33
- ffi (1.15.4)
34
- hashdiff (1.0.1)
35
- i18n (1.8.10)
36
- concurrent-ruby (~> 1.0)
37
- json (2.5.1)
38
- method_source (1.0.0)
39
- minitest (5.14.4)
40
- pry (0.13.1)
41
- coderay (~> 1.1)
42
- method_source (~> 1.0)
43
- pry-byebug (3.9.0)
44
- byebug (~> 11.0)
45
- pry (~> 0.13.0)
46
- public_suffix (4.0.6)
47
- rake (12.0.0)
48
- rexml (3.2.4)
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.1)
54
- rspec-support (~> 3.10.0)
55
- rspec-expectations (3.10.1)
56
- diff-lcs (>= 1.2.0, < 2.0)
57
- rspec-support (~> 3.10.0)
58
- rspec-mocks (3.10.1)
59
- diff-lcs (>= 1.2.0, < 2.0)
60
- rspec-support (~> 3.10.0)
61
- rspec-support (3.10.1)
62
- typhoeus (1.4.0)
63
- ethon (>= 0.9.0)
64
- tzinfo (2.0.4)
65
- concurrent-ruby (~> 1.0)
66
- vcr (3.0.3)
67
- webmock (1.24.6)
68
- addressable (>= 2.3.6)
69
- crack (>= 0.3.2)
70
- hashdiff
71
- zeitwerk (2.4.2)
72
-
73
- PLATFORMS
74
- ruby
75
-
76
- DEPENDENCIES
77
- ZenTest (~> 4.11, >= 4.11.2)
78
- autotest (~> 4.4, >= 4.4.6)
79
- autotest-growl (~> 0.2, >= 0.2.16)
80
- autotest-rails-pure (~> 4.1, >= 4.1.2)
81
- pry-byebug
82
- rake (~> 12.0.0)
83
- rspec (~> 3.6, >= 3.6.0)
84
- transferzero-sdk!
85
- vcr (~> 3.0, >= 3.0.1)
86
- webmock (~> 1.24, >= 1.24.3)
87
-
88
- BUNDLED WITH
89
- 2.1.4