transferzero-sdk 1.14.0 → 1.15.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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -5
  3. data/docs/AccountValidationRequest.md +2 -0
  4. data/docs/PayoutMethod.md +1 -1
  5. data/docs/{PayoutMethodEntityTypeEnum.md → PayoutMethodCountryEnumUSDBank.md} +2 -2
  6. data/docs/PayoutMethodDetails.md +12 -8
  7. data/docs/PayoutMethodDetailsKESBank.md +37 -0
  8. data/docs/PayoutMethodDetailsKESMobile.md +31 -0
  9. data/docs/PayoutMethodDetailsUSDBank.md +27 -0
  10. data/docs/PayoutMethodDetailsXOFBank.md +5 -3
  11. data/docs/PayoutMethodDetailsZARBank.md +3 -3
  12. data/docs/PayoutMethodLegalEntityTypeEnum.md +16 -0
  13. data/docs/PayoutMethodNatureOfBusinessEnum.md +16 -0
  14. data/docs/TransactionsApi.md +2 -0
  15. data/lib/transferzero-sdk.rb +6 -1
  16. data/lib/transferzero-sdk/api/transactions_api.rb +6 -0
  17. data/lib/transferzero-sdk/api_client.rb +2 -2
  18. data/lib/transferzero-sdk/models/account_validation_request.rb +15 -5
  19. data/lib/transferzero-sdk/models/payout_method.rb +1 -1
  20. data/lib/transferzero-sdk/models/payout_method_country_enum.rb +234 -8
  21. data/lib/transferzero-sdk/models/payout_method_country_enum_usd_bank.rb +269 -0
  22. data/lib/transferzero-sdk/models/payout_method_details.rb +55 -14
  23. data/lib/transferzero-sdk/models/payout_method_details_kes_bank.rb +343 -0
  24. data/lib/transferzero-sdk/models/payout_method_details_kes_mobile.rb +306 -0
  25. data/lib/transferzero-sdk/models/payout_method_details_usd_bank.rb +278 -0
  26. data/lib/transferzero-sdk/models/payout_method_details_xof_bank.rb +14 -15
  27. data/lib/transferzero-sdk/models/payout_method_details_zar_bank.rb +9 -9
  28. data/lib/transferzero-sdk/models/{payout_method_entity_type_enum.rb → payout_method_legal_entity_type_enum.rb} +3 -3
  29. data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +1 -0
  30. data/lib/transferzero-sdk/models/payout_method_nature_of_business_enum.rb +65 -0
  31. data/lib/transferzero-sdk/version.rb +1 -1
  32. data/spec/models/payout_method_country_enum_usd_bank_spec.rb +35 -0
  33. data/spec/models/payout_method_details_kes_bank_spec.rb +101 -0
  34. data/spec/models/payout_method_details_kes_mobile_spec.rb +83 -0
  35. data/spec/models/payout_method_details_usd_bank_spec.rb +71 -0
  36. data/spec/models/{payout_method_entity_type_enum_spec.rb → payout_method_legal_entity_type_enum_spec.rb} +6 -6
  37. data/spec/models/payout_method_nature_of_business_enum_spec.rb +35 -0
  38. metadata +36 -20
  39. data/Gemfile.lock +0 -93
  40. data/transferzero-sdk-1.10.0.gem +0 -0
  41. data/transferzero-sdk-1.11.0.gem +0 -0
  42. data/transferzero-sdk-1.12.0.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: efe4eacd3dc9587ed2befed7f8f57c04b7d1f31a391cbdf02ee63c18f496f7ee
4
- data.tar.gz: c7e6ef2451d5c2466ac8bf1487acea713885da2ed7bbef71f125c55cf86120e8
3
+ metadata.gz: 51bd01e02fdd44be8f6c1427a37fc8a12d351b95e82cdb2f86fdb7e77cf342da
4
+ data.tar.gz: fb5abc65c2e17aff999798d05b7d08c416e56220b8d1c578b1adb877c5ba0260
5
5
  SHA512:
6
- metadata.gz: 661c31a2d009eb1d3e8bc0988988143cec048fe8b1593c5557542415057ed76f4266b64fbe15064bb0a099d5da95b557f217816ce427f138160f83fa84e20e04
7
- data.tar.gz: 8805617a198e21dba29b54fef5583a369ccb981f5cb3412a8376648aa1f65ddd242a15bac4c3881268ed5fdef3a3dc00ec351c9d09f9e4cc893d38f8c1887b00
6
+ metadata.gz: 74d6adb63c093c515b3912d2f9abf0f46ddccb1a2e637981446fa431274044f63606401f8a42b05c292e603a3162caa26f99feb10c9a14c094c4fcc8b7754d4e
7
+ data.tar.gz: 9396578c58ad84f73ef436754fedfb48aa8595bb746de3da8eb6051ef44c617276bc973aaa43bc280a929652bb95fe44f9422cf39688be06a84dd0d88002b425
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.0
10
+ - Package version: 1.15.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.0.gem
34
+ gem install ./transferzero-sdk-1.15.1.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.14.0.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.15.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.0'
42
+ gem 'transferzero-sdk', '~> 1.15.1'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -199,6 +199,7 @@ Class | Method | HTTP request | Description
199
199
  - [TransferZero::PayoutMethodBankAccountTypeEnum](docs/PayoutMethodBankAccountTypeEnum.md)
200
200
  - [TransferZero::PayoutMethodCashProviderEnum](docs/PayoutMethodCashProviderEnum.md)
201
201
  - [TransferZero::PayoutMethodCountryEnum](docs/PayoutMethodCountryEnum.md)
202
+ - [TransferZero::PayoutMethodCountryEnumUSDBank](docs/PayoutMethodCountryEnumUSDBank.md)
202
203
  - [TransferZero::PayoutMethodDetails](docs/PayoutMethodDetails.md)
203
204
  - [TransferZero::PayoutMethodDetailsBTC](docs/PayoutMethodDetailsBTC.md)
204
205
  - [TransferZero::PayoutMethodDetailsBalance](docs/PayoutMethodDetailsBalance.md)
@@ -206,18 +207,22 @@ Class | Method | HTTP request | Description
206
207
  - [TransferZero::PayoutMethodDetailsGHSBank](docs/PayoutMethodDetailsGHSBank.md)
207
208
  - [TransferZero::PayoutMethodDetailsGHSCash](docs/PayoutMethodDetailsGHSCash.md)
208
209
  - [TransferZero::PayoutMethodDetailsIBAN](docs/PayoutMethodDetailsIBAN.md)
210
+ - [TransferZero::PayoutMethodDetailsKESBank](docs/PayoutMethodDetailsKESBank.md)
211
+ - [TransferZero::PayoutMethodDetailsKESMobile](docs/PayoutMethodDetailsKESMobile.md)
209
212
  - [TransferZero::PayoutMethodDetailsMADCash](docs/PayoutMethodDetailsMADCash.md)
210
213
  - [TransferZero::PayoutMethodDetailsMobile](docs/PayoutMethodDetailsMobile.md)
211
214
  - [TransferZero::PayoutMethodDetailsNGNBank](docs/PayoutMethodDetailsNGNBank.md)
215
+ - [TransferZero::PayoutMethodDetailsUSDBank](docs/PayoutMethodDetailsUSDBank.md)
212
216
  - [TransferZero::PayoutMethodDetailsXOFBank](docs/PayoutMethodDetailsXOFBank.md)
213
217
  - [TransferZero::PayoutMethodDetailsXOFCash](docs/PayoutMethodDetailsXOFCash.md)
214
218
  - [TransferZero::PayoutMethodDetailsXOFMobile](docs/PayoutMethodDetailsXOFMobile.md)
215
219
  - [TransferZero::PayoutMethodDetailsZARBank](docs/PayoutMethodDetailsZARBank.md)
216
- - [TransferZero::PayoutMethodEntityTypeEnum](docs/PayoutMethodEntityTypeEnum.md)
217
220
  - [TransferZero::PayoutMethodGenderEnum](docs/PayoutMethodGenderEnum.md)
218
221
  - [TransferZero::PayoutMethodIdentityCardTypeEnum](docs/PayoutMethodIdentityCardTypeEnum.md)
222
+ - [TransferZero::PayoutMethodLegalEntityTypeEnum](docs/PayoutMethodLegalEntityTypeEnum.md)
219
223
  - [TransferZero::PayoutMethodListResponse](docs/PayoutMethodListResponse.md)
220
224
  - [TransferZero::PayoutMethodMobileProviderEnum](docs/PayoutMethodMobileProviderEnum.md)
225
+ - [TransferZero::PayoutMethodNatureOfBusinessEnum](docs/PayoutMethodNatureOfBusinessEnum.md)
221
226
  - [TransferZero::PayoutMethodRequest](docs/PayoutMethodRequest.md)
222
227
  - [TransferZero::PayoutMethodResponse](docs/PayoutMethodResponse.md)
223
228
  - [TransferZero::PayoutMethodWebhook](docs/PayoutMethodWebhook.md)
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **bank_account** | **String** | Account Number to query | [optional]
8
8
  **bank_code** | **String** | Bank Code to query - same codes are used as for creating the transactions | [optional]
9
+ **iban** | **String** | IBAN to query - BBAN format for XOF bank accounts | [optional]
9
10
  **phone_number** | **String** | Phone number to query | [optional]
10
11
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | | [optional]
11
12
  **country** | **String** | Country of account in 2-character alpha ISO 3166-2 country format |
@@ -19,6 +20,7 @@ require 'TransferZero'
19
20
 
20
21
  instance = TransferZero::AccountValidationRequest.new(bank_account: null,
21
22
  bank_code: null,
23
+ iban: null,
22
24
  phone_number: +233000000000,
23
25
  mobile_provider: null,
24
26
  country: null,
data/docs/PayoutMethod.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **type** | **String** | Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - `NGN::Bank` - for Nigerian bank account payments. - `NGN::Mobile` - for Nigerian mobile money payments. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `GHS::Cash` - for Ghanaian cash remittance payments. - `UGX::Mobile` - for Ugandan mobile money payments. - `TZS::Mobile` - for Tanzanian mobile money payments. - `XOF::Mobile` - for mobile money payments to West-Africa. - `XOF::Bank` - for Senegalese bank account payments. - `XOF::Cash` - for Senegalese cash remittance payments. - `MAD::Cash` - for Moroccan cash remittance payments. - `EUR::Bank` - for IBAN bank transfers in EUR. - `GBP::Bank` - for IBAN bank and FP accounts transfers in GBP. - `ZAR::Bank` - for South Africa bank account payments. You can also send funds to the internal balance using `CCY::Balance`, where `CCY` is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance | [optional]
7
+ **type** | **String** | Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - `NGN::Bank` - for Nigerian bank account payments. - `NGN::Mobile` - for Nigerian mobile money payments. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `GHS::Cash` - for Ghanaian cash remittance payments. - `UGX::Mobile` - for Ugandan mobile money payments. - `TZS::Mobile` - for Tanzanian mobile money payments. - `XOF::Mobile` - for mobile money payments to West-Africa. - `XOF::Bank` - for Senegalese bank account payments. - `XOF::Cash` - for Senegalese cash remittance payments. - `MAD::Cash` - for Moroccan cash remittance payments. - `EUR::Bank` - for IBAN bank transfers in EUR. - `GBP::Bank` - for IBAN bank and FP accounts transfers in GBP. - `ZAR::Bank` - for South Africa bank account payments. - `USD::Bank` - for USD account payments. *** Currently Nigeria only and in Beta phase *** - `KES::Bank` - for Kenyan bank account payments. - `KES::Mobile` - for Kenyan mobile money payments. You can also send funds to the internal balance using `CCY::Balance`, where `CCY` is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance | [optional]
8
8
  **details** | [**PayoutMethodDetails**](PayoutMethodDetails.md) | | [optional]
9
9
  **metadata** | [**Object**](.md) | Metadata of payout method. You can store any kind of information in this field. | [optional]
10
10
  **id** | **String** | | [optional]
@@ -1,4 +1,4 @@
1
- # TransferZero::PayoutMethodEntityTypeEnum
1
+ # TransferZero::PayoutMethodCountryEnumUSDBank
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::PayoutMethodEntityTypeEnum.new()
13
+ instance = TransferZero::PayoutMethodCountryEnumUSDBank.new()
14
14
  ```
15
15
 
16
16
 
@@ -11,10 +11,10 @@ Name | Type | Description | Notes
11
11
  **bank_account_type** | [**PayoutMethodBankAccountTypeEnum**](PayoutMethodBankAccountTypeEnum.md) | | [optional]
12
12
  **phone_number** | **String** | |
13
13
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
14
- **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | | [optional]
14
+ **country** | [**PayoutMethodCountryEnumUSDBank**](PayoutMethodCountryEnumUSDBank.md) | |
15
15
  **iban** | **String** | |
16
16
  **bank_name** | **String** | |
17
- **bank_country** | **String** | |
17
+ **bank_country** | **String** | | [optional]
18
18
  **cash_provider** | [**PayoutMethodCashProviderEnum**](PayoutMethodCashProviderEnum.md) | | [optional]
19
19
  **sort_code** | **String** | | [optional]
20
20
  **bic** | **String** | | [optional]
@@ -24,8 +24,8 @@ Name | Type | Description | Notes
24
24
  **sender_country_of_birth** | **String** | | [optional]
25
25
  **sender_gender** | [**PayoutMethodGenderEnum**](PayoutMethodGenderEnum.md) | | [optional]
26
26
  **reason** | **String** | | [optional]
27
- **identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | | [optional]
28
- **identity_card_id** | **String** | | [optional]
27
+ **identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
28
+ **identity_card_id** | **String** | |
29
29
  **reference** | **String** | | [optional]
30
30
  **name** | **String** | |
31
31
  **address** | **String** | |
@@ -33,12 +33,14 @@ Name | Type | Description | Notes
33
33
  **postal_code** | **String** | |
34
34
  **city** | **String** | |
35
35
  **email** | **String** | | [optional]
36
- **transfer_reason_code** | **String** | | [optional]
36
+ **transfer_reason_code** | **String** | |
37
37
  **contact_first_name** | **String** | | [optional]
38
38
  **contact_last_name** | **String** | | [optional]
39
39
  **registration_number** | **String** | | [optional]
40
- **nature_of_business** | **String** | | [optional]
41
- **entity_type** | [**PayoutMethodEntityTypeEnum**](PayoutMethodEntityTypeEnum.md) | | [optional]
40
+ **nature_of_business** | [**PayoutMethodNatureOfBusinessEnum**](PayoutMethodNatureOfBusinessEnum.md) | | [optional]
41
+ **legal_entity_type** | [**PayoutMethodLegalEntityTypeEnum**](PayoutMethodLegalEntityTypeEnum.md) | | [optional]
42
+ **branch_code** | **String** | | [optional]
43
+ **swift_code** | **String** | |
42
44
 
43
45
  ## Code Sample
44
46
 
@@ -79,7 +81,9 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
79
81
  contact_last_name: null,
80
82
  registration_number: null,
81
83
  nature_of_business: null,
82
- entity_type: null)
84
+ legal_entity_type: null,
85
+ branch_code: null,
86
+ swift_code: null)
83
87
  ```
84
88
 
85
89
 
@@ -0,0 +1,37 @@
1
+ # TransferZero::PayoutMethodDetailsKESBank
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **bank_code** | **String** | |
10
+ **street** | **String** | |
11
+ **bank_account** | **String** | |
12
+ **bank_name** | **String** | |
13
+ **branch_code** | **String** | | [optional]
14
+ **swift_code** | **String** | |
15
+ **transfer_reason_code** | **String** | |
16
+ **identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
17
+ **identity_card_id** | **String** | |
18
+
19
+ ## Code Sample
20
+
21
+ ```ruby
22
+ require 'TransferZero'
23
+
24
+ instance = TransferZero::PayoutMethodDetailsKESBank.new(first_name: null,
25
+ last_name: null,
26
+ bank_code: null,
27
+ street: null,
28
+ bank_account: null,
29
+ bank_name: null,
30
+ branch_code: null,
31
+ swift_code: null,
32
+ transfer_reason_code: null,
33
+ identity_card_type: null,
34
+ identity_card_id: null)
35
+ ```
36
+
37
+
@@ -0,0 +1,31 @@
1
+ # TransferZero::PayoutMethodDetailsKESMobile
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **street** | **String** | |
10
+ **phone_number** | **String** | |
11
+ **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
12
+ **transfer_reason_code** | **String** | |
13
+ **identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
14
+ **identity_card_id** | **String** | |
15
+
16
+ ## Code Sample
17
+
18
+ ```ruby
19
+ require 'TransferZero'
20
+
21
+ instance = TransferZero::PayoutMethodDetailsKESMobile.new(first_name: null,
22
+ last_name: null,
23
+ street: null,
24
+ phone_number: null,
25
+ mobile_provider: null,
26
+ transfer_reason_code: null,
27
+ identity_card_type: null,
28
+ identity_card_id: null)
29
+ ```
30
+
31
+
@@ -0,0 +1,27 @@
1
+ # TransferZero::PayoutMethodDetailsUSDBank
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **phone_number** | **String** | |
10
+ **bank_code** | **String** | |
11
+ **bank_account** | **String** | |
12
+ **country** | [**PayoutMethodCountryEnumUSDBank**](PayoutMethodCountryEnumUSDBank.md) | |
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'TransferZero'
18
+
19
+ instance = TransferZero::PayoutMethodDetailsUSDBank.new(first_name: null,
20
+ last_name: null,
21
+ phone_number: null,
22
+ bank_code: null,
23
+ bank_account: null,
24
+ country: null)
25
+ ```
26
+
27
+
@@ -7,8 +7,9 @@ Name | Type | Description | Notes
7
7
  **first_name** | **String** | |
8
8
  **last_name** | **String** | |
9
9
  **iban** | **String** | |
10
- **bank_name** | **String** | |
11
- **bank_country** | **String** | |
10
+ **bank_name** | **String** | | [optional]
11
+ **bank_country** | **String** | | [optional]
12
+ **bank_code** | **String** | | [optional]
12
13
 
13
14
  ## Code Sample
14
15
 
@@ -19,7 +20,8 @@ instance = TransferZero::PayoutMethodDetailsXOFBank.new(first_name: null,
19
20
  last_name: null,
20
21
  iban: null,
21
22
  bank_name: null,
22
- bank_country: null)
23
+ bank_country: null,
24
+ bank_code: null)
23
25
  ```
24
26
 
25
27
 
@@ -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** | **String** | | [optional]
22
- **entity_type** | [**PayoutMethodEntityTypeEnum**](PayoutMethodEntityTypeEnum.md) | | [optional]
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
- entity_type: null)
44
+ legal_entity_type: null)
45
45
  ```
46
46
 
47
47
 
@@ -0,0 +1,16 @@
1
+ # TransferZero::PayoutMethodLegalEntityTypeEnum
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'TransferZero'
12
+
13
+ instance = TransferZero::PayoutMethodLegalEntityTypeEnum.new()
14
+ ```
15
+
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
+
@@ -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
 
@@ -63,6 +63,7 @@ require 'transferzero-sdk/models/payout_method'
63
63
  require 'transferzero-sdk/models/payout_method_bank_account_type_enum'
64
64
  require 'transferzero-sdk/models/payout_method_cash_provider_enum'
65
65
  require 'transferzero-sdk/models/payout_method_country_enum'
66
+ require 'transferzero-sdk/models/payout_method_country_enum_usd_bank'
66
67
  require 'transferzero-sdk/models/payout_method_details'
67
68
  require 'transferzero-sdk/models/payout_method_details_btc'
68
69
  require 'transferzero-sdk/models/payout_method_details_balance'
@@ -70,18 +71,22 @@ require 'transferzero-sdk/models/payout_method_details_gbp_bank'
70
71
  require 'transferzero-sdk/models/payout_method_details_ghs_bank'
71
72
  require 'transferzero-sdk/models/payout_method_details_ghs_cash'
72
73
  require 'transferzero-sdk/models/payout_method_details_iban'
74
+ require 'transferzero-sdk/models/payout_method_details_kes_bank'
75
+ require 'transferzero-sdk/models/payout_method_details_kes_mobile'
73
76
  require 'transferzero-sdk/models/payout_method_details_mad_cash'
74
77
  require 'transferzero-sdk/models/payout_method_details_mobile'
75
78
  require 'transferzero-sdk/models/payout_method_details_ngn_bank'
79
+ require 'transferzero-sdk/models/payout_method_details_usd_bank'
76
80
  require 'transferzero-sdk/models/payout_method_details_xof_bank'
77
81
  require 'transferzero-sdk/models/payout_method_details_xof_cash'
78
82
  require 'transferzero-sdk/models/payout_method_details_xof_mobile'
79
83
  require 'transferzero-sdk/models/payout_method_details_zar_bank'
80
- require 'transferzero-sdk/models/payout_method_entity_type_enum'
81
84
  require 'transferzero-sdk/models/payout_method_gender_enum'
82
85
  require 'transferzero-sdk/models/payout_method_identity_card_type_enum'
86
+ require 'transferzero-sdk/models/payout_method_legal_entity_type_enum'
83
87
  require 'transferzero-sdk/models/payout_method_list_response'
84
88
  require 'transferzero-sdk/models/payout_method_mobile_provider_enum'
89
+ require 'transferzero-sdk/models/payout_method_nature_of_business_enum'
85
90
  require 'transferzero-sdk/models/payout_method_request'
86
91
  require 'transferzero-sdk/models/payout_method_response'
87
92
  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.0"
38
+ @user_agent = "TransferZero-SDK/Ruby/1.15.1"
39
39
  @default_headers = {
40
40
  'Content-Type' => 'application/json',
41
41
  'User-Agent' => @user_agent
@@ -199,7 +199,7 @@ module TransferZero
199
199
  nonce,
200
200
  'POST',
201
201
  url,
202
- DIGEST.hexdigest(body.to_s.gsub(/[[:space:]]+/, ' ').strip)
202
+ DIGEST.hexdigest(body.to_s)
203
203
  ])
204
204
 
205
205
  header_signature == signature