transferzero-sdk 1.12.2 → 1.14.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -4
  3. data/docs/PayoutMethod.md +1 -1
  4. data/docs/PayoutMethodCountryEnumUSDBank.md +16 -0
  5. data/docs/PayoutMethodDetails.md +16 -6
  6. data/docs/PayoutMethodDetailsGHSCash.md +21 -0
  7. data/docs/PayoutMethodDetailsMADCash.md +3 -3
  8. data/docs/PayoutMethodDetailsUSDBank.md +27 -0
  9. data/docs/PayoutMethodDetailsXOFMobile.md +3 -1
  10. data/docs/PayoutMethodDetailsZARBank.md +13 -1
  11. data/docs/PayoutMethodLegalEntityTypeEnum.md +16 -0
  12. data/docs/PayoutMethodNatureOfBusinessEnum.md +16 -0
  13. data/docs/TransactionsApi.md +2 -0
  14. data/lib/transferzero-sdk.rb +5 -0
  15. data/lib/transferzero-sdk/api/transactions_api.rb +6 -0
  16. data/lib/transferzero-sdk/api_client.rb +2 -2
  17. data/lib/transferzero-sdk/models/account_validation_request.rb +4 -4
  18. data/lib/transferzero-sdk/models/payout_method.rb +1 -1
  19. data/lib/transferzero-sdk/models/payout_method_country_enum.rb +234 -8
  20. data/lib/transferzero-sdk/models/payout_method_country_enum_usd_bank.rb +269 -0
  21. data/lib/transferzero-sdk/models/payout_method_details.rb +65 -28
  22. data/lib/transferzero-sdk/models/payout_method_details_ghs_cash.rb +236 -0
  23. data/lib/transferzero-sdk/models/payout_method_details_mad_cash.rb +1 -16
  24. data/lib/transferzero-sdk/models/payout_method_details_usd_bank.rb +278 -0
  25. data/lib/transferzero-sdk/models/payout_method_details_xof_cash.rb +1 -1
  26. data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +14 -5
  27. data/lib/transferzero-sdk/models/payout_method_details_zar_bank.rb +59 -5
  28. data/lib/transferzero-sdk/models/payout_method_legal_entity_type_enum.rb +37 -0
  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_ghs_cash_spec.rb +53 -0
  34. data/spec/models/payout_method_details_usd_bank_spec.rb +71 -0
  35. data/spec/models/payout_method_legal_entity_type_enum_spec.rb +35 -0
  36. data/spec/models/payout_method_nature_of_business_enum_spec.rb +35 -0
  37. metadata +32 -13
  38. data/transferzero-sdk-1.9.0.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0801e5de9f7d7b390d9da8326a1ad9421b3b07c4fa9f501e4f806783123138ef'
4
- data.tar.gz: d3aee7c91d1eae43b96b79f5e9c5553fac2cbe257e35528bcb4ec4b21c7832cf
3
+ metadata.gz: c93e4120ef526c40c3c6147274b313851674dcf7a8b09ed1dd7d709a4a981f9a
4
+ data.tar.gz: 14168543f7ebfd577ff2f5e83139b8bd7c9ccfeb01b62ba2dd1d66cf7c7e1456
5
5
  SHA512:
6
- metadata.gz: 889711b7a190f71685a31ac90eca202b602bcf7a00c440c562790f87932de78dbbc37c978ab5d34fa2b25e55276dc6911754dbcceba2f8f3e9b9e607e0ddfbed
7
- data.tar.gz: 29ebc7e29f6121b0f7d006612b70f0c4cc4cd2cc958ee54b16545a5ac93da3617e48920047a3cd6fe95ed4935d6c482006a0812f70a192899f29a140dd3dbe88
6
+ metadata.gz: f974f965df60cf386b5cdb1bd2f83fc663dab61c34bd70a4a168c4452cc689450ed1e4294c878910926fe47e9650636b5a17e36dc7694c51b74a42205b772d99
7
+ data.tar.gz: d45403c5778105ddb4dd1c5e8e0e8c73e304bdcb232849cbbe5a4cd1cad23e89d4f50bbd15b49af9188458d5982d1e0591fd67e9cb48fd3b3cddea28805da6bf
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.12.2
10
+ - Package version: 1.14.2
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.12.2.gem
34
+ gem install ./transferzero-sdk-1.14.2.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.12.2.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.14.2.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.12.2'
42
+ gem 'transferzero-sdk', '~> 1.14.2'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -199,23 +199,28 @@ 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)
205
206
  - [TransferZero::PayoutMethodDetailsGBPBank](docs/PayoutMethodDetailsGBPBank.md)
206
207
  - [TransferZero::PayoutMethodDetailsGHSBank](docs/PayoutMethodDetailsGHSBank.md)
208
+ - [TransferZero::PayoutMethodDetailsGHSCash](docs/PayoutMethodDetailsGHSCash.md)
207
209
  - [TransferZero::PayoutMethodDetailsIBAN](docs/PayoutMethodDetailsIBAN.md)
208
210
  - [TransferZero::PayoutMethodDetailsMADCash](docs/PayoutMethodDetailsMADCash.md)
209
211
  - [TransferZero::PayoutMethodDetailsMobile](docs/PayoutMethodDetailsMobile.md)
210
212
  - [TransferZero::PayoutMethodDetailsNGNBank](docs/PayoutMethodDetailsNGNBank.md)
213
+ - [TransferZero::PayoutMethodDetailsUSDBank](docs/PayoutMethodDetailsUSDBank.md)
211
214
  - [TransferZero::PayoutMethodDetailsXOFBank](docs/PayoutMethodDetailsXOFBank.md)
212
215
  - [TransferZero::PayoutMethodDetailsXOFCash](docs/PayoutMethodDetailsXOFCash.md)
213
216
  - [TransferZero::PayoutMethodDetailsXOFMobile](docs/PayoutMethodDetailsXOFMobile.md)
214
217
  - [TransferZero::PayoutMethodDetailsZARBank](docs/PayoutMethodDetailsZARBank.md)
215
218
  - [TransferZero::PayoutMethodGenderEnum](docs/PayoutMethodGenderEnum.md)
216
219
  - [TransferZero::PayoutMethodIdentityCardTypeEnum](docs/PayoutMethodIdentityCardTypeEnum.md)
220
+ - [TransferZero::PayoutMethodLegalEntityTypeEnum](docs/PayoutMethodLegalEntityTypeEnum.md)
217
221
  - [TransferZero::PayoutMethodListResponse](docs/PayoutMethodListResponse.md)
218
222
  - [TransferZero::PayoutMethodMobileProviderEnum](docs/PayoutMethodMobileProviderEnum.md)
223
+ - [TransferZero::PayoutMethodNatureOfBusinessEnum](docs/PayoutMethodNatureOfBusinessEnum.md)
219
224
  - [TransferZero::PayoutMethodRequest](docs/PayoutMethodRequest.md)
220
225
  - [TransferZero::PayoutMethodResponse](docs/PayoutMethodResponse.md)
221
226
  - [TransferZero::PayoutMethodWebhook](docs/PayoutMethodWebhook.md)
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. - `UGX::Mobile` - for Ugandan mobile money payments. - `TZS::Mobile` - for Tanzanian mobile money payments. - `XOF::Mobile` - for Senegalese mobile money payments. - `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 *** 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]
@@ -0,0 +1,16 @@
1
+ # TransferZero::PayoutMethodCountryEnumUSDBank
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'TransferZero'
12
+
13
+ instance = TransferZero::PayoutMethodCountryEnumUSDBank.new()
14
+ ```
15
+
16
+
@@ -11,18 +11,18 @@ 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** | [**PayoutMethodCountryEnumUSDBank**](PayoutMethodCountryEnumUSDBank.md) | |
14
15
  **iban** | **String** | |
15
16
  **bank_name** | **String** | |
16
17
  **bank_country** | **String** | |
17
18
  **cash_provider** | [**PayoutMethodCashProviderEnum**](PayoutMethodCashProviderEnum.md) | | [optional]
18
- **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | | [optional]
19
19
  **sort_code** | **String** | | [optional]
20
20
  **bic** | **String** | | [optional]
21
21
  **sender_identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
22
22
  **sender_identity_card_id** | **String** | |
23
- **sender_city_of_birth** | **String** | |
24
- **sender_country_of_birth** | **String** | |
25
- **sender_gender** | [**PayoutMethodGenderEnum**](PayoutMethodGenderEnum.md) | |
23
+ **sender_city_of_birth** | **String** | | [optional]
24
+ **sender_country_of_birth** | **String** | | [optional]
25
+ **sender_gender** | [**PayoutMethodGenderEnum**](PayoutMethodGenderEnum.md) | | [optional]
26
26
  **reason** | **String** | | [optional]
27
27
  **identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | | [optional]
28
28
  **identity_card_id** | **String** | | [optional]
@@ -34,6 +34,11 @@ Name | Type | Description | Notes
34
34
  **city** | **String** | |
35
35
  **email** | **String** | | [optional]
36
36
  **transfer_reason_code** | **String** | | [optional]
37
+ **contact_first_name** | **String** | | [optional]
38
+ **contact_last_name** | **String** | | [optional]
39
+ **registration_number** | **String** | | [optional]
40
+ **nature_of_business** | [**PayoutMethodNatureOfBusinessEnum**](PayoutMethodNatureOfBusinessEnum.md) | | [optional]
41
+ **legal_entity_type** | [**PayoutMethodLegalEntityTypeEnum**](PayoutMethodLegalEntityTypeEnum.md) | | [optional]
37
42
 
38
43
  ## Code Sample
39
44
 
@@ -47,11 +52,11 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
47
52
  bank_account_type: null,
48
53
  phone_number: null,
49
54
  mobile_provider: null,
55
+ country: null,
50
56
  iban: null,
51
57
  bank_name: null,
52
58
  bank_country: null,
53
59
  cash_provider: null,
54
- country: null,
55
60
  sort_code: null,
56
61
  bic: null,
57
62
  sender_identity_card_type: null,
@@ -69,7 +74,12 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
69
74
  postal_code: null,
70
75
  city: null,
71
76
  email: null,
72
- transfer_reason_code: null)
77
+ transfer_reason_code: null,
78
+ contact_first_name: null,
79
+ contact_last_name: null,
80
+ registration_number: null,
81
+ nature_of_business: null,
82
+ legal_entity_type: null)
73
83
  ```
74
84
 
75
85
 
@@ -0,0 +1,21 @@
1
+ # TransferZero::PayoutMethodDetailsGHSCash
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **phone_number** | **String** | |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'TransferZero'
15
+
16
+ instance = TransferZero::PayoutMethodDetailsGHSCash.new(first_name: null,
17
+ last_name: null,
18
+ phone_number: null)
19
+ ```
20
+
21
+
@@ -9,9 +9,9 @@ Name | Type | Description | Notes
9
9
  **phone_number** | **String** | |
10
10
  **sender_identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
11
11
  **sender_identity_card_id** | **String** | |
12
- **sender_city_of_birth** | **String** | |
13
- **sender_country_of_birth** | **String** | |
14
- **sender_gender** | [**PayoutMethodGenderEnum**](PayoutMethodGenderEnum.md) | |
12
+ **sender_city_of_birth** | **String** | | [optional]
13
+ **sender_country_of_birth** | **String** | | [optional]
14
+ **sender_gender** | [**PayoutMethodGenderEnum**](PayoutMethodGenderEnum.md) | | [optional]
15
15
  **reason** | **String** | | [optional]
16
16
  **identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | | [optional]
17
17
  **identity_card_id** | **String** | | [optional]
@@ -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
+
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **last_name** | **String** | |
9
9
  **phone_number** | **String** | |
10
10
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
11
+ **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | | [optional]
11
12
 
12
13
  ## Code Sample
13
14
 
@@ -17,7 +18,8 @@ require 'TransferZero'
17
18
  instance = TransferZero::PayoutMethodDetailsXOFMobile.new(first_name: null,
18
19
  last_name: null,
19
20
  phone_number: null,
20
- mobile_provider: null)
21
+ mobile_provider: null,
22
+ country: null)
21
23
  ```
22
24
 
23
25
 
@@ -14,6 +14,12 @@ Name | Type | Description | Notes
14
14
  **bank_account** | **String** | |
15
15
  **phone_number** | **String** | |
16
16
  **transfer_reason_code** | **String** | | [optional]
17
+ **name** | **String** | | [optional]
18
+ **contact_first_name** | **String** | | [optional]
19
+ **contact_last_name** | **String** | | [optional]
20
+ **registration_number** | **String** | | [optional]
21
+ **nature_of_business** | [**PayoutMethodNatureOfBusinessEnum**](PayoutMethodNatureOfBusinessEnum.md) | | [optional]
22
+ **legal_entity_type** | [**PayoutMethodLegalEntityTypeEnum**](PayoutMethodLegalEntityTypeEnum.md) | | [optional]
17
23
 
18
24
  ## Code Sample
19
25
 
@@ -29,7 +35,13 @@ instance = TransferZero::PayoutMethodDetailsZARBank.new(first_name: null,
29
35
  bank_code: null,
30
36
  bank_account: null,
31
37
  phone_number: null,
32
- transfer_reason_code: null)
38
+ transfer_reason_code: null,
39
+ name: null,
40
+ contact_first_name: null,
41
+ contact_last_name: null,
42
+ registration_number: null,
43
+ nature_of_business: null,
44
+ legal_entity_type: null)
33
45
  ```
34
46
 
35
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,23 +63,28 @@ 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'
69
70
  require 'transferzero-sdk/models/payout_method_details_gbp_bank'
70
71
  require 'transferzero-sdk/models/payout_method_details_ghs_bank'
72
+ require 'transferzero-sdk/models/payout_method_details_ghs_cash'
71
73
  require 'transferzero-sdk/models/payout_method_details_iban'
72
74
  require 'transferzero-sdk/models/payout_method_details_mad_cash'
73
75
  require 'transferzero-sdk/models/payout_method_details_mobile'
74
76
  require 'transferzero-sdk/models/payout_method_details_ngn_bank'
77
+ require 'transferzero-sdk/models/payout_method_details_usd_bank'
75
78
  require 'transferzero-sdk/models/payout_method_details_xof_bank'
76
79
  require 'transferzero-sdk/models/payout_method_details_xof_cash'
77
80
  require 'transferzero-sdk/models/payout_method_details_xof_mobile'
78
81
  require 'transferzero-sdk/models/payout_method_details_zar_bank'
79
82
  require 'transferzero-sdk/models/payout_method_gender_enum'
80
83
  require 'transferzero-sdk/models/payout_method_identity_card_type_enum'
84
+ require 'transferzero-sdk/models/payout_method_legal_entity_type_enum'
81
85
  require 'transferzero-sdk/models/payout_method_list_response'
82
86
  require 'transferzero-sdk/models/payout_method_mobile_provider_enum'
87
+ require 'transferzero-sdk/models/payout_method_nature_of_business_enum'
83
88
  require 'transferzero-sdk/models/payout_method_request'
84
89
  require 'transferzero-sdk/models/payout_method_response'
85
90
  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.12.2"
38
+ @user_agent = "TransferZero-SDK/Ruby/1.14.2"
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
@@ -149,10 +149,10 @@ class AccountValidationRequest
149
149
  # @return true if the model is valid
150
150
  def valid?
151
151
  return false if @country.nil?
152
- country_validator = EnumAttributeValidator.new('String', ["NG", "GH"])
152
+ country_validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN"])
153
153
  return false unless country_validator.valid?(@country)
154
154
  return false if @currency.nil?
155
- currency_validator = EnumAttributeValidator.new('String', ["NGN", "GHS"])
155
+ currency_validator = EnumAttributeValidator.new('String', ["NGN", "GHS", "XOF"])
156
156
  return false unless currency_validator.valid?(@currency)
157
157
  return false if @method.nil?
158
158
  method_validator = EnumAttributeValidator.new('String', ["bank", "mobile"])
@@ -163,7 +163,7 @@ class AccountValidationRequest
163
163
  # Custom attribute writer method checking allowed values (enum).
164
164
  # @param [Object] country Object to be assigned
165
165
  def country=(country)
166
- validator = EnumAttributeValidator.new('String', ["NG", "GH"])
166
+ validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN"])
167
167
  unless validator.valid?(country) || country.empty?
168
168
  fail ArgumentError, "invalid value for \"country\", must be one of #{validator.allowable_values}."
169
169
  end
@@ -173,7 +173,7 @@ class AccountValidationRequest
173
173
  # Custom attribute writer method checking allowed values (enum).
174
174
  # @param [Object] currency Object to be assigned
175
175
  def currency=(currency)
176
- validator = EnumAttributeValidator.new('String', ["NGN", "GHS"])
176
+ validator = EnumAttributeValidator.new('String', ["NGN", "GHS", "XOF"])
177
177
  unless validator.valid?(currency) || currency.empty?
178
178
  fail ArgumentError, "invalid value for \"currency\", must be one of #{validator.allowable_values}."
179
179
  end
@@ -15,7 +15,7 @@ require 'date'
15
15
  module TransferZero
16
16
  # This describes the specific details on how the payment has to be routed to the recipient.
17
17
  class PayoutMethod
18
- # 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. - `UGX::Mobile` - for Ugandan mobile money payments. - `TZS::Mobile` - for Tanzanian mobile money payments. - `XOF::Mobile` - for Senegalese mobile money payments. - `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
18
+ # 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 *** 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
19
19
  attr_accessor :type
20
20
 
21
21
  attr_accessor :details