transferzero-sdk 1.14.0 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/docs/PayoutMethodDetails.md +3 -3
- data/docs/PayoutMethodDetailsZARBank.md +3 -3
- data/docs/{PayoutMethodEntityTypeEnum.md → PayoutMethodLegalEntityTypeEnum.md} +2 -2
- data/docs/PayoutMethodNatureOfBusinessEnum.md +16 -0
- data/docs/TransactionsApi.md +2 -0
- data/lib/transferzero-sdk.rb +2 -1
- data/lib/transferzero-sdk/api/transactions_api.rb +6 -0
- data/lib/transferzero-sdk/api_client.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method_details.rb +8 -8
- data/lib/transferzero-sdk/models/payout_method_details_zar_bank.rb +9 -9
- data/lib/transferzero-sdk/models/{payout_method_entity_type_enum.rb → payout_method_legal_entity_type_enum.rb} +3 -3
- data/lib/transferzero-sdk/models/payout_method_nature_of_business_enum.rb +65 -0
- data/lib/transferzero-sdk/version.rb +1 -1
- data/spec/models/{payout_method_entity_type_enum_spec.rb → payout_method_legal_entity_type_enum_spec.rb} +6 -6
- data/spec/models/payout_method_nature_of_business_enum_spec.rb +35 -0
- data/transferzero-sdk-1.14.0.gem +0 -0
- metadata +11 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 766d7cc6fa2f0d4d2234114ebca6e4d021ff8f64fb0dffeaac07c517afb0b49d
|
4
|
+
data.tar.gz: 2bbdea4c91a4295183a2cfdb69f28d5f96847874cd6a7e4b8236d9f7faae4908
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5343224fb113777a508f00675924fdf63627e692bab302d9a6f490198c82444891fa7d2c9f71e3b44503a39bbfa1bbd699a7617dddebab9ca4b75629fae2d2a
|
7
|
+
data.tar.gz: ccedd0371e38501fa45b92000bbaefe551b20e3f74839128487189782125c91e01343639f516423f0b52e09509c57c2466cb387861f68dc64a48136ffe99c671
|
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.14.
|
10
|
+
- Package version: 1.14.1
|
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.14.
|
34
|
+
gem install ./transferzero-sdk-1.14.1.gem
|
35
35
|
```
|
36
|
-
(for development, run `gem install --dev ./transferzero-sdk-1.14.
|
36
|
+
(for development, run `gem install --dev ./transferzero-sdk-1.14.1.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.14.
|
42
|
+
gem 'transferzero-sdk', '~> 1.14.1'
|
43
43
|
|
44
44
|
### Install from Git
|
45
45
|
|
@@ -213,11 +213,12 @@ 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)
|
217
216
|
- [TransferZero::PayoutMethodGenderEnum](docs/PayoutMethodGenderEnum.md)
|
218
217
|
- [TransferZero::PayoutMethodIdentityCardTypeEnum](docs/PayoutMethodIdentityCardTypeEnum.md)
|
218
|
+
- [TransferZero::PayoutMethodLegalEntityTypeEnum](docs/PayoutMethodLegalEntityTypeEnum.md)
|
219
219
|
- [TransferZero::PayoutMethodListResponse](docs/PayoutMethodListResponse.md)
|
220
220
|
- [TransferZero::PayoutMethodMobileProviderEnum](docs/PayoutMethodMobileProviderEnum.md)
|
221
|
+
- [TransferZero::PayoutMethodNatureOfBusinessEnum](docs/PayoutMethodNatureOfBusinessEnum.md)
|
221
222
|
- [TransferZero::PayoutMethodRequest](docs/PayoutMethodRequest.md)
|
222
223
|
- [TransferZero::PayoutMethodResponse](docs/PayoutMethodResponse.md)
|
223
224
|
- [TransferZero::PayoutMethodWebhook](docs/PayoutMethodWebhook.md)
|
data/docs/PayoutMethodDetails.md
CHANGED
@@ -37,8 +37,8 @@ Name | Type | Description | Notes
|
|
37
37
|
**contact_first_name** | **String** | | [optional]
|
38
38
|
**contact_last_name** | **String** | | [optional]
|
39
39
|
**registration_number** | **String** | | [optional]
|
40
|
-
**nature_of_business** | **
|
41
|
-
**
|
40
|
+
**nature_of_business** | [**PayoutMethodNatureOfBusinessEnum**](PayoutMethodNatureOfBusinessEnum.md) | | [optional]
|
41
|
+
**legal_entity_type** | [**PayoutMethodLegalEntityTypeEnum**](PayoutMethodLegalEntityTypeEnum.md) | | [optional]
|
42
42
|
|
43
43
|
## Code Sample
|
44
44
|
|
@@ -79,7 +79,7 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
|
|
79
79
|
contact_last_name: null,
|
80
80
|
registration_number: null,
|
81
81
|
nature_of_business: null,
|
82
|
-
|
82
|
+
legal_entity_type: null)
|
83
83
|
```
|
84
84
|
|
85
85
|
|
@@ -18,8 +18,8 @@ Name | Type | Description | Notes
|
|
18
18
|
**contact_first_name** | **String** | | [optional]
|
19
19
|
**contact_last_name** | **String** | | [optional]
|
20
20
|
**registration_number** | **String** | | [optional]
|
21
|
-
**nature_of_business** | **
|
22
|
-
**
|
21
|
+
**nature_of_business** | [**PayoutMethodNatureOfBusinessEnum**](PayoutMethodNatureOfBusinessEnum.md) | | [optional]
|
22
|
+
**legal_entity_type** | [**PayoutMethodLegalEntityTypeEnum**](PayoutMethodLegalEntityTypeEnum.md) | | [optional]
|
23
23
|
|
24
24
|
## Code Sample
|
25
25
|
|
@@ -41,7 +41,7 @@ instance = TransferZero::PayoutMethodDetailsZARBank.new(first_name: null,
|
|
41
41
|
contact_last_name: null,
|
42
42
|
registration_number: null,
|
43
43
|
nature_of_business: null,
|
44
|
-
|
44
|
+
legal_entity_type: null)
|
45
45
|
```
|
46
46
|
|
47
47
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# TransferZero::
|
1
|
+
# TransferZero::PayoutMethodLegalEntityTypeEnum
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
|
10
10
|
```ruby
|
11
11
|
require 'TransferZero'
|
12
12
|
|
13
|
-
instance = TransferZero::
|
13
|
+
instance = TransferZero::PayoutMethodLegalEntityTypeEnum.new()
|
14
14
|
```
|
15
15
|
|
16
16
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# TransferZero::PayoutMethodNatureOfBusinessEnum
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
|
8
|
+
## Code Sample
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'TransferZero'
|
12
|
+
|
13
|
+
instance = TransferZero::PayoutMethodNatureOfBusinessEnum.new()
|
14
|
+
```
|
15
|
+
|
16
|
+
|
data/docs/TransactionsApi.md
CHANGED
@@ -216,6 +216,7 @@ opts = {
|
|
216
216
|
per: 10 # Integer | The number of results to load per page (defaults to 10)
|
217
217
|
external_id: 'external_id_example' # String | Allows filtering results by `external_id`. Example: `/v1/senders?external_id=26ec8517-2f0d-48c0-b74f-0bccb9ab3a87`
|
218
218
|
sender_id: 'sender_id_example' # String | Allows filtering results by `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7`
|
219
|
+
transactions_type: 'transactions_type_example' # String | Allows filtering results by `transactions_type`. Example: `/v1/transactions?transactions_type=automated`
|
219
220
|
}
|
220
221
|
|
221
222
|
begin
|
@@ -241,6 +242,7 @@ Name | Type | Description | Notes
|
|
241
242
|
**per** | **Integer**| The number of results to load per page (defaults to 10) | [optional]
|
242
243
|
**external_id** | **String**| Allows filtering results by `external_id`. Example: `/v1/senders?external_id=26ec8517-2f0d-48c0-b74f-0bccb9ab3a87` | [optional]
|
243
244
|
**sender_id** | **String**| Allows filtering results by `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7` | [optional]
|
245
|
+
**transactions_type** | **String**| Allows filtering results by `transactions_type`. Example: `/v1/transactions?transactions_type=automated` | [optional]
|
244
246
|
|
245
247
|
### Return type
|
246
248
|
|
data/lib/transferzero-sdk.rb
CHANGED
@@ -77,11 +77,12 @@ 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'
|
81
80
|
require 'transferzero-sdk/models/payout_method_gender_enum'
|
82
81
|
require 'transferzero-sdk/models/payout_method_identity_card_type_enum'
|
82
|
+
require 'transferzero-sdk/models/payout_method_legal_entity_type_enum'
|
83
83
|
require 'transferzero-sdk/models/payout_method_list_response'
|
84
84
|
require 'transferzero-sdk/models/payout_method_mobile_provider_enum'
|
85
|
+
require 'transferzero-sdk/models/payout_method_nature_of_business_enum'
|
85
86
|
require 'transferzero-sdk/models/payout_method_request'
|
86
87
|
require 'transferzero-sdk/models/payout_method_response'
|
87
88
|
require 'transferzero-sdk/models/payout_method_webhook'
|
@@ -204,6 +204,7 @@ module TransferZero
|
|
204
204
|
# @option opts [Integer] :per The number of results to load per page (defaults to 10)
|
205
205
|
# @option opts [String] :external_id Allows filtering results by `external_id`. Example: `/v1/senders?external_id=26ec8517-2f0d-48c0-b74f-0bccb9ab3a87`
|
206
206
|
# @option opts [String] :sender_id Allows filtering results by `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7`
|
207
|
+
# @option opts [String] :transactions_type Allows filtering results by `transactions_type`. Example: `/v1/transactions?transactions_type=automated`
|
207
208
|
# @return [TransactionListResponse]
|
208
209
|
def get_transactions(opts = {})
|
209
210
|
data, _status_code, _headers = get_transactions_with_http_info(opts)
|
@@ -217,11 +218,15 @@ module TransferZero
|
|
217
218
|
# @option opts [Integer] :per The number of results to load per page (defaults to 10)
|
218
219
|
# @option opts [String] :external_id Allows filtering results by `external_id`. Example: `/v1/senders?external_id=26ec8517-2f0d-48c0-b74f-0bccb9ab3a87`
|
219
220
|
# @option opts [String] :sender_id Allows filtering results by `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7`
|
221
|
+
# @option opts [String] :transactions_type Allows filtering results by `transactions_type`. Example: `/v1/transactions?transactions_type=automated`
|
220
222
|
# @return [Array<(TransactionListResponse, Fixnum, Hash)>] TransactionListResponse data, response status code and response headers
|
221
223
|
def get_transactions_with_http_info(opts = {})
|
222
224
|
if @api_client.config.debugging
|
223
225
|
@api_client.config.logger.debug 'Calling API: TransactionsApi.get_transactions ...'
|
224
226
|
end
|
227
|
+
if @api_client.config.client_side_validation && opts[:'transactions_type'] && !['automated', 'manual'].include?(opts[:'transactions_type'])
|
228
|
+
fail ArgumentError, 'invalid value for "transactions_type", must be one of automated, manual'
|
229
|
+
end
|
225
230
|
# resource path
|
226
231
|
local_var_path = '/transactions'
|
227
232
|
|
@@ -231,6 +236,7 @@ module TransferZero
|
|
231
236
|
query_params[:'per'] = opts[:'per'] if !opts[:'per'].nil?
|
232
237
|
query_params[:'external_id'] = opts[:'external_id'] if !opts[:'external_id'].nil?
|
233
238
|
query_params[:'sender_id'] = opts[:'sender_id'] if !opts[:'sender_id'].nil?
|
239
|
+
query_params[:'transactions_type'] = opts[:'transactions_type'] if !opts[:'transactions_type'].nil?
|
234
240
|
|
235
241
|
# header parameters
|
236
242
|
header_params = {}
|
@@ -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.14.
|
38
|
+
@user_agent = "TransferZero-SDK/Ruby/1.14.1"
|
39
39
|
@default_headers = {
|
40
40
|
'Content-Type' => 'application/json',
|
41
41
|
'User-Agent' => @user_agent
|
@@ -82,7 +82,7 @@ class PayoutMethodDetails
|
|
82
82
|
|
83
83
|
attr_accessor :nature_of_business
|
84
84
|
|
85
|
-
attr_accessor :
|
85
|
+
attr_accessor :legal_entity_type
|
86
86
|
|
87
87
|
# Attribute mapping from ruby-style variable name to JSON key.
|
88
88
|
def self.attribute_map
|
@@ -121,7 +121,7 @@ class PayoutMethodDetails
|
|
121
121
|
:'contact_last_name' => :'contact_last_name',
|
122
122
|
:'registration_number' => :'registration_number',
|
123
123
|
:'nature_of_business' => :'nature_of_business',
|
124
|
-
:'
|
124
|
+
:'legal_entity_type' => :'legal_entity_type'
|
125
125
|
}
|
126
126
|
end
|
127
127
|
|
@@ -161,8 +161,8 @@ class PayoutMethodDetails
|
|
161
161
|
:'contact_first_name' => :'String',
|
162
162
|
:'contact_last_name' => :'String',
|
163
163
|
:'registration_number' => :'String',
|
164
|
-
:'nature_of_business' => :'
|
165
|
-
:'
|
164
|
+
:'nature_of_business' => :'PayoutMethodNatureOfBusinessEnum',
|
165
|
+
:'legal_entity_type' => :'PayoutMethodLegalEntityTypeEnum'
|
166
166
|
}
|
167
167
|
end
|
168
168
|
|
@@ -336,8 +336,8 @@ class PayoutMethodDetails
|
|
336
336
|
self.nature_of_business = attributes[:'nature_of_business']
|
337
337
|
end
|
338
338
|
|
339
|
-
if attributes.key?(:'
|
340
|
-
self.
|
339
|
+
if attributes.key?(:'legal_entity_type')
|
340
|
+
self.legal_entity_type = attributes[:'legal_entity_type']
|
341
341
|
end
|
342
342
|
end
|
343
343
|
|
@@ -489,7 +489,7 @@ class PayoutMethodDetails
|
|
489
489
|
contact_last_name == o.contact_last_name &&
|
490
490
|
registration_number == o.registration_number &&
|
491
491
|
nature_of_business == o.nature_of_business &&
|
492
|
-
|
492
|
+
legal_entity_type == o.legal_entity_type
|
493
493
|
end
|
494
494
|
|
495
495
|
# @see the `==` method
|
@@ -501,7 +501,7 @@ class PayoutMethodDetails
|
|
501
501
|
# Calculates hash code according to all attributes.
|
502
502
|
# @return [Integer] Hash code
|
503
503
|
def 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,
|
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, legal_entity_type].hash
|
505
505
|
end
|
506
506
|
|
507
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\", // 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\", \"
|
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\", \"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
|
17
17
|
class PayoutMethodDetailsZARBank
|
18
18
|
attr_accessor :first_name
|
19
19
|
|
@@ -45,7 +45,7 @@ class PayoutMethodDetailsZARBank
|
|
45
45
|
|
46
46
|
attr_accessor :nature_of_business
|
47
47
|
|
48
|
-
attr_accessor :
|
48
|
+
attr_accessor :legal_entity_type
|
49
49
|
|
50
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
51
|
def self.attribute_map
|
@@ -65,7 +65,7 @@ class PayoutMethodDetailsZARBank
|
|
65
65
|
:'contact_last_name' => :'contact_last_name',
|
66
66
|
:'registration_number' => :'registration_number',
|
67
67
|
:'nature_of_business' => :'nature_of_business',
|
68
|
-
:'
|
68
|
+
:'legal_entity_type' => :'legal_entity_type'
|
69
69
|
}
|
70
70
|
end
|
71
71
|
|
@@ -86,8 +86,8 @@ class PayoutMethodDetailsZARBank
|
|
86
86
|
:'contact_first_name' => :'String',
|
87
87
|
:'contact_last_name' => :'String',
|
88
88
|
:'registration_number' => :'String',
|
89
|
-
:'nature_of_business' => :'
|
90
|
-
:'
|
89
|
+
:'nature_of_business' => :'PayoutMethodNatureOfBusinessEnum',
|
90
|
+
:'legal_entity_type' => :'PayoutMethodLegalEntityTypeEnum'
|
91
91
|
}
|
92
92
|
end
|
93
93
|
|
@@ -166,8 +166,8 @@ class PayoutMethodDetailsZARBank
|
|
166
166
|
self.nature_of_business = attributes[:'nature_of_business']
|
167
167
|
end
|
168
168
|
|
169
|
-
if attributes.key?(:'
|
170
|
-
self.
|
169
|
+
if attributes.key?(:'legal_entity_type')
|
170
|
+
self.legal_entity_type = attributes[:'legal_entity_type']
|
171
171
|
end
|
172
172
|
end
|
173
173
|
|
@@ -244,7 +244,7 @@ class PayoutMethodDetailsZARBank
|
|
244
244
|
contact_last_name == o.contact_last_name &&
|
245
245
|
registration_number == o.registration_number &&
|
246
246
|
nature_of_business == o.nature_of_business &&
|
247
|
-
|
247
|
+
legal_entity_type == o.legal_entity_type
|
248
248
|
end
|
249
249
|
|
250
250
|
# @see the `==` method
|
@@ -256,7 +256,7 @@ class PayoutMethodDetailsZARBank
|
|
256
256
|
# Calculates hash code according to all attributes.
|
257
257
|
# @return [Integer] Hash code
|
258
258
|
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,
|
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
|
260
260
|
end
|
261
261
|
|
262
262
|
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
|
-
class
|
16
|
+
class PayoutMethodLegalEntityTypeEnum
|
17
17
|
|
18
18
|
PERSON = "person".freeze
|
19
19
|
SOLE_PROPRIETORSHIP = "sole_proprietorship".freeze
|
@@ -28,8 +28,8 @@ class PayoutMethodEntityTypeEnum
|
|
28
28
|
# @param [String] The enum value in the form of the string
|
29
29
|
# @return [String] The enum value
|
30
30
|
def build_from_hash(value)
|
31
|
-
constantValues =
|
32
|
-
raise "Invalid ENUM value #{value} for class #
|
31
|
+
constantValues = PayoutMethodLegalEntityTypeEnum.constants.select { |c| PayoutMethodLegalEntityTypeEnum::const_get(c) == value }
|
32
|
+
raise "Invalid ENUM value #{value} for class #PayoutMethodLegalEntityTypeEnum" if constantValues.empty? && !value.empty?
|
33
33
|
value
|
34
34
|
end
|
35
35
|
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
=begin
|
2
|
+
#TransferZero API
|
3
|
+
|
4
|
+
#Reference documentation for the TransferZero API V1
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.0.0-beta3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module TransferZero
|
16
|
+
class PayoutMethodNatureOfBusinessEnum
|
17
|
+
|
18
|
+
PERSONAL = "personal".freeze
|
19
|
+
AGRICULTURE_AND_HUNTING = "agriculture_and_hunting".freeze
|
20
|
+
FORESTRY = "forestry".freeze
|
21
|
+
FISHING = "fishing".freeze
|
22
|
+
AGRICULTURAL_BY_PRODUCTS = "agricultural_by_products".freeze
|
23
|
+
COAL_MINING = "coal_mining".freeze
|
24
|
+
OIL_MINING = "oil_mining".freeze
|
25
|
+
IRON_ORE_MINING = "iron_ore_mining".freeze
|
26
|
+
OTHER_METAL_AND_DIAMOND_MINING = "other_metal_and_diamond_mining".freeze
|
27
|
+
OTHER_MINERAL_MINING = "other_mineral_mining".freeze
|
28
|
+
MANUFACTURING_OF_FOOD_DRINK_TOBACCO = "manufacturing_of_food_drink_tobacco".freeze
|
29
|
+
MANUFACTURING_OF_TEXTILES_LEATHER_FUR_FURNITURE = "manufacturing_of_textiles_leather_fur_furniture".freeze
|
30
|
+
MANUFACTURE_OF_WOODEN_PRODUCTS_FURNITURE = "manufacture_of_wooden_products_furniture".freeze
|
31
|
+
MANUFACTURE_OF_PAPER_PULP_ALLIED_PRODUCTS = "manufacture_of_paper_pulp_allied_products".freeze
|
32
|
+
MANUFACTURE_OF_CHEMICALS_MEDICAL_PETROLEUM_RUBBER_PLASTIC_PRODUCTS = "manufacture_of_chemicals_medical_petroleum_rubber_plastic_products".freeze
|
33
|
+
MANUFACTURE_OF_POTTERY_CHINA_GLASS_STONE = "manufacture_of_pottery_china_glass_stone".freeze
|
34
|
+
MANUFACTURE_OF_IRON_STEEL_NON_FERROUS_METALS_BASIC_INDUSTRIES = "manufacture_of_iron_steel_non_ferrous_metals_basic_industries".freeze
|
35
|
+
MANUFACTURE_OF_METAL_PRODUCTS_ELECTRICAL_AND_SCIENTIFIC_ENGINEERING = "manufacture_of_metal_products_electrical_and_scientific_engineering".freeze
|
36
|
+
MANUFACTURE_OF_JEWELRY_MUSICAL_INSTRUMENTS_TOYS = "manufacture_of_jewelry_musical_instruments_toys".freeze
|
37
|
+
ELECTRICITY_GAS_AND_WATER = "electricity_gas_and_water".freeze
|
38
|
+
CONSTRUCTION = "construction".freeze
|
39
|
+
WHOLESALE_TRADE = "wholesale_trade".freeze
|
40
|
+
RETAIL_TRADE = "retail_trade".freeze
|
41
|
+
CATERING_INCL_HOTELS = "catering_incl_hotels".freeze
|
42
|
+
TRANSPORT_STORAGE = "transport_storage".freeze
|
43
|
+
COMMUNICATIONS = "communications".freeze
|
44
|
+
FINANCE_AND_HOLDING_COMPANIES = "finance_and_holding_companies".freeze
|
45
|
+
INSURANCE = "insurance".freeze
|
46
|
+
BUSINESS_SERVICES = "business_services".freeze
|
47
|
+
REAL_ESTATE_DEVELOPMENT_INVESTMENT = "real_estate_development_investment".freeze
|
48
|
+
CENTRAL_STATE_GOVERNMENTS = "central_state_governments".freeze
|
49
|
+
COMMUNITY_SERVICES_DEFENCE_POLICE_PRISONS_ETC = "community_services_defence_police_prisons_etc".freeze
|
50
|
+
SOCIAL_SERVICES_EDUCATION_HEALTH_CARE = "social_services_education_health_care".freeze
|
51
|
+
PERSONAL_SERVICES_LEISURE_SERVICES = "personal_services_leisure_services".freeze
|
52
|
+
PERSONAL_SERVICES_DOMESTIC_LAUNDRY_REPAIRS = "personal_services_domestic_laundry_repairs".freeze
|
53
|
+
PERSONAL_SERVICES_EMBASSIES_INTERNATIONAL_ORGANISATIONS = "personal_services_embassies_international_organisations".freeze
|
54
|
+
|
55
|
+
# Builds the enum from string
|
56
|
+
# @param [String] The enum value in the form of the string
|
57
|
+
# @return [String] The enum value
|
58
|
+
def build_from_hash(value)
|
59
|
+
constantValues = PayoutMethodNatureOfBusinessEnum.constants.select { |c| PayoutMethodNatureOfBusinessEnum::const_get(c) == value }
|
60
|
+
raise "Invalid ENUM value #{value} for class #PayoutMethodNatureOfBusinessEnum" if constantValues.empty? && !value.empty?
|
61
|
+
value
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
@@ -14,22 +14,22 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for TransferZero::
|
17
|
+
# Unit tests for TransferZero::PayoutMethodLegalEntityTypeEnum
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'PayoutMethodLegalEntityTypeEnum' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = TransferZero::
|
23
|
+
@instance = TransferZero::PayoutMethodLegalEntityTypeEnum.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(TransferZero::
|
30
|
+
describe 'test an instance of PayoutMethodLegalEntityTypeEnum' do
|
31
|
+
it 'should create an instance of PayoutMethodLegalEntityTypeEnum' do
|
32
|
+
expect(@instance).to be_instance_of(TransferZero::PayoutMethodLegalEntityTypeEnum)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
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::PayoutMethodNatureOfBusinessEnum
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'PayoutMethodNatureOfBusinessEnum' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = TransferZero::PayoutMethodNatureOfBusinessEnum.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of PayoutMethodNatureOfBusinessEnum' do
|
31
|
+
it 'should create an instance of PayoutMethodNatureOfBusinessEnum' do
|
32
|
+
expect(@instance).to be_instance_of(TransferZero::PayoutMethodNatureOfBusinessEnum)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
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.14.
|
4
|
+
version: 1.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TransferZero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -278,11 +278,12 @@ files:
|
|
278
278
|
- docs/PayoutMethodDetailsXOFCash.md
|
279
279
|
- docs/PayoutMethodDetailsXOFMobile.md
|
280
280
|
- docs/PayoutMethodDetailsZARBank.md
|
281
|
-
- docs/PayoutMethodEntityTypeEnum.md
|
282
281
|
- docs/PayoutMethodGenderEnum.md
|
283
282
|
- docs/PayoutMethodIdentityCardTypeEnum.md
|
283
|
+
- docs/PayoutMethodLegalEntityTypeEnum.md
|
284
284
|
- docs/PayoutMethodListResponse.md
|
285
285
|
- docs/PayoutMethodMobileProviderEnum.md
|
286
|
+
- docs/PayoutMethodNatureOfBusinessEnum.md
|
286
287
|
- docs/PayoutMethodRequest.md
|
287
288
|
- docs/PayoutMethodResponse.md
|
288
289
|
- docs/PayoutMethodWebhook.md
|
@@ -410,11 +411,12 @@ files:
|
|
410
411
|
- lib/transferzero-sdk/models/payout_method_details_xof_cash.rb
|
411
412
|
- lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb
|
412
413
|
- lib/transferzero-sdk/models/payout_method_details_zar_bank.rb
|
413
|
-
- lib/transferzero-sdk/models/payout_method_entity_type_enum.rb
|
414
414
|
- lib/transferzero-sdk/models/payout_method_gender_enum.rb
|
415
415
|
- lib/transferzero-sdk/models/payout_method_identity_card_type_enum.rb
|
416
|
+
- lib/transferzero-sdk/models/payout_method_legal_entity_type_enum.rb
|
416
417
|
- lib/transferzero-sdk/models/payout_method_list_response.rb
|
417
418
|
- lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb
|
419
|
+
- lib/transferzero-sdk/models/payout_method_nature_of_business_enum.rb
|
418
420
|
- lib/transferzero-sdk/models/payout_method_request.rb
|
419
421
|
- lib/transferzero-sdk/models/payout_method_response.rb
|
420
422
|
- lib/transferzero-sdk/models/payout_method_webhook.rb
|
@@ -532,11 +534,12 @@ files:
|
|
532
534
|
- spec/models/payout_method_details_xof_cash_spec.rb
|
533
535
|
- spec/models/payout_method_details_xof_mobile_spec.rb
|
534
536
|
- spec/models/payout_method_details_zar_bank_spec.rb
|
535
|
-
- spec/models/payout_method_entity_type_enum_spec.rb
|
536
537
|
- spec/models/payout_method_gender_enum_spec.rb
|
537
538
|
- spec/models/payout_method_identity_card_type_enum_spec.rb
|
539
|
+
- spec/models/payout_method_legal_entity_type_enum_spec.rb
|
538
540
|
- spec/models/payout_method_list_response_spec.rb
|
539
541
|
- spec/models/payout_method_mobile_provider_enum_spec.rb
|
542
|
+
- spec/models/payout_method_nature_of_business_enum_spec.rb
|
540
543
|
- spec/models/payout_method_request_spec.rb
|
541
544
|
- spec/models/payout_method_response_spec.rb
|
542
545
|
- spec/models/payout_method_spec.rb
|
@@ -585,6 +588,7 @@ files:
|
|
585
588
|
- transferzero-sdk-1.10.0.gem
|
586
589
|
- transferzero-sdk-1.11.0.gem
|
587
590
|
- transferzero-sdk-1.12.0.gem
|
591
|
+
- transferzero-sdk-1.14.0.gem
|
588
592
|
- transferzero-sdk.gemspec
|
589
593
|
homepage: https://github.com/transferzero/transferzero-sdk-ruby
|
590
594
|
licenses:
|
@@ -644,7 +648,6 @@ test_files:
|
|
644
648
|
- spec/models/transaction_traits_spec.rb
|
645
649
|
- spec/models/account_spec.rb
|
646
650
|
- spec/models/webhook_definition_request_spec.rb
|
647
|
-
- spec/models/payout_method_entity_type_enum_spec.rb
|
648
651
|
- spec/models/sender_state_spec.rb
|
649
652
|
- spec/models/payout_method_request_spec.rb
|
650
653
|
- spec/models/payout_method_details_gbp_bank_spec.rb
|
@@ -658,6 +661,7 @@ test_files:
|
|
658
661
|
- spec/models/document_webhook_spec.rb
|
659
662
|
- spec/models/payout_method_details_zar_bank_spec.rb
|
660
663
|
- spec/models/payout_method_gender_enum_spec.rb
|
664
|
+
- spec/models/payout_method_legal_entity_type_enum_spec.rb
|
661
665
|
- spec/models/transaction_list_response_spec.rb
|
662
666
|
- spec/models/payin_method_spec.rb
|
663
667
|
- spec/models/sender_response_spec.rb
|
@@ -703,6 +707,7 @@ test_files:
|
|
703
707
|
- spec/models/recipient_state_reason_details_spec.rb
|
704
708
|
- spec/models/payout_method_webhook_spec.rb
|
705
709
|
- spec/models/sender_response_meta_spec.rb
|
710
|
+
- spec/models/payout_method_nature_of_business_enum_spec.rb
|
706
711
|
- spec/models/payout_method_response_spec.rb
|
707
712
|
- spec/models/recipient_spec.rb
|
708
713
|
- spec/models/payout_method_identity_card_type_enum_spec.rb
|