transferzero-sdk 1.16.1 → 1.19.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -4
  3. data/docs/Document.md +2 -0
  4. data/docs/PayinMethod.md +12 -4
  5. data/docs/PayinMethodDetails.md +5 -5
  6. data/docs/PayinMethodDetailsMobile.md +3 -3
  7. data/docs/PayinMethodDetailsNGNBank.md +2 -2
  8. data/docs/PayinMethodResponse.md +17 -0
  9. data/docs/PayinMethodState.md +16 -0
  10. data/docs/PayinMethodUxFlow.md +16 -0
  11. data/docs/PayinMethodsApi.md +256 -0
  12. data/docs/PayoutMethod.md +1 -1
  13. data/docs/PayoutMethodDetails.md +4 -2
  14. data/docs/PayoutMethodDetailsGNFMobile.md +23 -0
  15. data/docs/PayoutMethodDetailsKESBank.md +3 -1
  16. data/docs/PayoutMethodDetailsKESMobile.md +3 -1
  17. data/docs/PayoutMethodDetailsXAFMobile.md +25 -0
  18. data/docs/PayoutMethodDetailsXOFBank.md +3 -1
  19. data/docs/PayoutMethodDetailsXOFCash.md +1 -1
  20. data/docs/PayoutMethodDetailsXOFMobile.md +3 -1
  21. data/docs/PayoutMethodDetailsZARBank.md +2 -0
  22. data/docs/PayoutMethodTransferReasonEnum.md +16 -0
  23. data/docs/RecipientStateReasonDetails.md +3 -3
  24. data/docs/Sender.md +4 -0
  25. data/docs/StateReasonDetails.md +23 -0
  26. data/lib/transferzero-sdk/api/payin_methods_api.rb +244 -0
  27. data/lib/transferzero-sdk/api_client.rb +1 -1
  28. data/lib/transferzero-sdk/models/document.rb +11 -1
  29. data/lib/transferzero-sdk/models/payin_method.rb +47 -9
  30. data/lib/transferzero-sdk/models/payin_method_details.rb +9 -15
  31. data/lib/transferzero-sdk/models/payin_method_details_mobile.rb +8 -14
  32. data/lib/transferzero-sdk/models/payin_method_details_ngn_bank.rb +2 -2
  33. data/lib/transferzero-sdk/models/payin_method_response.rb +202 -0
  34. data/lib/transferzero-sdk/models/payin_method_state.rb +39 -0
  35. data/lib/transferzero-sdk/models/payin_method_ux_flow.rb +34 -0
  36. data/lib/transferzero-sdk/models/payout_method.rb +1 -1
  37. data/lib/transferzero-sdk/models/payout_method_details.rb +17 -6
  38. data/lib/transferzero-sdk/models/payout_method_details_gnf_mobile.rb +250 -0
  39. data/lib/transferzero-sdk/models/payout_method_details_kes_bank.rb +11 -7
  40. data/lib/transferzero-sdk/models/payout_method_details_kes_mobile.rb +11 -7
  41. data/lib/transferzero-sdk/models/payout_method_details_mobile.rb +1 -1
  42. data/lib/transferzero-sdk/models/payout_method_details_xaf_mobile.rb +259 -0
  43. data/lib/transferzero-sdk/models/payout_method_details_xof_bank.rb +14 -5
  44. data/lib/transferzero-sdk/models/payout_method_details_xof_cash.rb +6 -1
  45. data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +14 -5
  46. data/lib/transferzero-sdk/models/payout_method_details_zar_bank.rb +11 -2
  47. data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +1 -0
  48. data/lib/transferzero-sdk/models/payout_method_transfer_reason_enum.rb +137 -0
  49. data/lib/transferzero-sdk/models/recipient_state_reason_details.rb +21 -2
  50. data/lib/transferzero-sdk/models/sender.rb +21 -1
  51. data/lib/transferzero-sdk/models/state_reason_details.rb +235 -0
  52. data/lib/transferzero-sdk/version.rb +1 -1
  53. data/lib/transferzero-sdk.rb +8 -0
  54. data/spec/api/payin_methods_api_spec.rb +84 -0
  55. data/spec/models/payin_method_response_spec.rb +41 -0
  56. data/spec/models/payin_method_state_spec.rb +35 -0
  57. data/spec/models/payin_method_ux_flow_spec.rb +35 -0
  58. data/spec/models/payout_method_details_gnf_mobile_spec.rb +59 -0
  59. data/spec/models/payout_method_details_xaf_mobile_spec.rb +65 -0
  60. data/spec/models/payout_method_transfer_reason_enum_spec.rb +35 -0
  61. data/spec/models/state_reason_details_spec.rb +59 -0
  62. data/transferzero-sdk-1.17.0.gem +0 -0
  63. metadata +36 -4
  64. data/Gemfile.lock +0 -89
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cb88f7dd25322010286cda4057d0fa7353f08a01372ddd384c25c14a6a42644
4
- data.tar.gz: b4fe63d3416fe08dbbe8c8622a09fe1c4014ff6b6cab1bc6afb3e5f4e6b7a258
3
+ metadata.gz: '00468d46970a925efd5635a7582a0d3a1c1960f9506eb0a50d9b2abcaddc5a20'
4
+ data.tar.gz: c6ee6c667f53b785dc92c3635ba29f1350d28b66dadddbbe7f7041e9ffa173fc
5
5
  SHA512:
6
- metadata.gz: 74ccb124ad0d3146592a1380d91e7a77b2bf4090cc2670b4ecbbfe2157a30077b629e8770b14368d2d98e3d31d3bbd7e8845e0a6ba35d454cdefe3be36b57ce8
7
- data.tar.gz: a2418c3385939f664e2fe2167627814dd351874241237fac09a8764a7a369e937ff01dd5dfd2c520db407b4707390fbed0b653ec423495c7eecba74854c6c499
6
+ metadata.gz: 4cca859d0aa1c027a2a4d99fd3f84c3274143ebae977de2aa69a3f3397e9869cbf1b79a32d3b6c18be2613a58dcbc11f76e4898a2c443876a5b7c42a25fa00c2
7
+ data.tar.gz: 574688f95c6f1cd9c2675d3730ad647a635507df70d83c15dc60a547e737f8515a6b3a587744c378a6ee2ceed8b78f6d1053317f3ca6ad25c8cfd325b7542483
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.19.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.16.1.gem
34
+ gem install ./transferzero-sdk-1.19.1.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.19.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.16.1'
42
+ gem 'transferzero-sdk', '~> 1.19.1'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -120,6 +120,10 @@ Class | Method | HTTP request | Description
120
120
  *TransferZero::DocumentsApi* | [**post_documents**](docs/DocumentsApi.md#post_documents) | **POST** /documents | Creating a document
121
121
  *TransferZero::LogsApi* | [**get_webhook_log**](docs/LogsApi.md#get_webhook_log) | **GET** /logs/{Webhook Log ID} | Fetch an individual webhook log
122
122
  *TransferZero::LogsApi* | [**get_webhook_logs**](docs/LogsApi.md#get_webhook_logs) | **GET** /logs/webhooks | Fetch a list of webhook logs
123
+ *TransferZero::PayinMethodsApi* | [**delete_payin_method**](docs/PayinMethodsApi.md#delete_payin_method) | **DELETE** /payin_methods/{PayinMethod ID} | Deleting a payin method
124
+ *TransferZero::PayinMethodsApi* | [**get_payin_method**](docs/PayinMethodsApi.md#get_payin_method) | **GET** /payin_methods/{PayinMethod ID} | Fetching a payin method
125
+ *TransferZero::PayinMethodsApi* | [**patch_payin_method**](docs/PayinMethodsApi.md#patch_payin_method) | **PATCH** /payin_methods/{PayinMethod ID} | Updating a payin method
126
+ *TransferZero::PayinMethodsApi* | [**retry_payin_method**](docs/PayinMethodsApi.md#retry_payin_method) | **POST** /payin_methods/{PayinMethod ID}/retry | Retries PayinMethod
123
127
  *TransferZero::PaymentMethodsApi* | [**payment_methods_in**](docs/PaymentMethodsApi.md#payment_methods_in) | **GET** /info/payment_methods/in | This method returns possible payin methods.
124
128
  *TransferZero::PaymentMethodsApi* | [**payment_methods_out**](docs/PaymentMethodsApi.md#payment_methods_out) | **GET** /info/payment_methods/out | This method returns possible payout methods.
125
129
  *TransferZero::PayoutMethodsApi* | [**delete_payout_method**](docs/PayoutMethodsApi.md#delete_payout_method) | **DELETE** /payout_methods/{Payout Method ID} | Deleting a payout method
@@ -192,6 +196,9 @@ Class | Method | HTTP request | Description
192
196
  - [TransferZero::PayinMethodDetailsMobile](docs/PayinMethodDetailsMobile.md)
193
197
  - [TransferZero::PayinMethodDetailsNGNBank](docs/PayinMethodDetailsNGNBank.md)
194
198
  - [TransferZero::PayinMethodRequest](docs/PayinMethodRequest.md)
199
+ - [TransferZero::PayinMethodResponse](docs/PayinMethodResponse.md)
200
+ - [TransferZero::PayinMethodState](docs/PayinMethodState.md)
201
+ - [TransferZero::PayinMethodUxFlow](docs/PayinMethodUxFlow.md)
195
202
  - [TransferZero::PaymentMethod](docs/PaymentMethod.md)
196
203
  - [TransferZero::PaymentMethodListResponse](docs/PaymentMethodListResponse.md)
197
204
  - [TransferZero::PaymentMethodOpposite](docs/PaymentMethodOpposite.md)
@@ -205,6 +212,7 @@ Class | Method | HTTP request | Description
205
212
  - [TransferZero::PayoutMethodDetailsGBPBank](docs/PayoutMethodDetailsGBPBank.md)
206
213
  - [TransferZero::PayoutMethodDetailsGHSBank](docs/PayoutMethodDetailsGHSBank.md)
207
214
  - [TransferZero::PayoutMethodDetailsGHSCash](docs/PayoutMethodDetailsGHSCash.md)
215
+ - [TransferZero::PayoutMethodDetailsGNFMobile](docs/PayoutMethodDetailsGNFMobile.md)
208
216
  - [TransferZero::PayoutMethodDetailsIBAN](docs/PayoutMethodDetailsIBAN.md)
209
217
  - [TransferZero::PayoutMethodDetailsKESBank](docs/PayoutMethodDetailsKESBank.md)
210
218
  - [TransferZero::PayoutMethodDetailsKESMobile](docs/PayoutMethodDetailsKESMobile.md)
@@ -213,6 +221,7 @@ Class | Method | HTTP request | Description
213
221
  - [TransferZero::PayoutMethodDetailsNGNBank](docs/PayoutMethodDetailsNGNBank.md)
214
222
  - [TransferZero::PayoutMethodDetailsUSDBank](docs/PayoutMethodDetailsUSDBank.md)
215
223
  - [TransferZero::PayoutMethodDetailsUSDCash](docs/PayoutMethodDetailsUSDCash.md)
224
+ - [TransferZero::PayoutMethodDetailsXAFMobile](docs/PayoutMethodDetailsXAFMobile.md)
216
225
  - [TransferZero::PayoutMethodDetailsXOFBank](docs/PayoutMethodDetailsXOFBank.md)
217
226
  - [TransferZero::PayoutMethodDetailsXOFCash](docs/PayoutMethodDetailsXOFCash.md)
218
227
  - [TransferZero::PayoutMethodDetailsXOFMobile](docs/PayoutMethodDetailsXOFMobile.md)
@@ -225,6 +234,7 @@ Class | Method | HTTP request | Description
225
234
  - [TransferZero::PayoutMethodNatureOfBusinessEnum](docs/PayoutMethodNatureOfBusinessEnum.md)
226
235
  - [TransferZero::PayoutMethodRequest](docs/PayoutMethodRequest.md)
227
236
  - [TransferZero::PayoutMethodResponse](docs/PayoutMethodResponse.md)
237
+ - [TransferZero::PayoutMethodTransferReasonEnum](docs/PayoutMethodTransferReasonEnum.md)
228
238
  - [TransferZero::PayoutMethodWebhook](docs/PayoutMethodWebhook.md)
229
239
  - [TransferZero::PoliticallyExposedPerson](docs/PoliticallyExposedPerson.md)
230
240
  - [TransferZero::ProofOfPayment](docs/ProofOfPayment.md)
@@ -244,6 +254,7 @@ Class | Method | HTTP request | Description
244
254
  - [TransferZero::SenderResponseMeta](docs/SenderResponseMeta.md)
245
255
  - [TransferZero::SenderState](docs/SenderState.md)
246
256
  - [TransferZero::SenderWebhook](docs/SenderWebhook.md)
257
+ - [TransferZero::StateReasonDetails](docs/StateReasonDetails.md)
247
258
  - [TransferZero::Transaction](docs/Transaction.md)
248
259
  - [TransferZero::TransactionListResponse](docs/TransactionListResponse.md)
249
260
  - [TransferZero::TransactionRequest](docs/TransactionRequest.md)
data/docs/Document.md CHANGED
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
17
17
  **id** | **String** | | [optional]
18
18
  **document_id** | **String** | Document ID issued by government | [optional]
19
19
  **expiry_date** | **Date** | Document expiry date issued by government | [optional]
20
+ **source** | **String** | Determines the document's source. Default value \"Manual\" | [optional]
20
21
  **errors** | **Hash<String, Array<ValidationErrorDescription>>** | The fields that have some problems and don't pass validation | [optional]
21
22
 
22
23
  ## Code Sample
@@ -37,6 +38,7 @@ instance = TransferZero::Document.new(upload: data:image/png;base64,iVBORw0KGg..
37
38
  id: ebe9bc0b-f2f6-4ce8-802a-8b79912d041e,
38
39
  document_id: XYZ12345,
39
40
  expiry_date: null,
41
+ source: Manual,
40
42
  errors: {"phone_number":[{"error":"invalid"}],"documents":[{"error":"blank"}]})
41
43
  ```
42
44
 
data/docs/PayinMethod.md CHANGED
@@ -4,22 +4,30 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **type** | **String** | Describes how the payment should be requested from the user. Possible values: - `NGN::Bank`: NGN bank and card collection requests - `NGN::Mobile`: NGN mobile collections - `GHS::Mobile`: GHS mobile collections - `TZS::Mobile`: TZS mobile collections - `UGX::Mobile`: UGX mobile collections - `EUR::Bank`: EUR IBAN collections - `GBP::Bank`: GBP IBAN collections | [optional]
7
+ **type** | **String** | Describes how the payment should be requested from the sender. Possible values: - `GHS::Mobile`: GHS mobile collections - `UGX::Mobile`: UGX mobile collections - `EUR::Bank`: EUR IBAN collections - `GBP::Bank`: GBP IBAN collections | [optional]
8
+ **ux_flow** | [**PayinMethodUxFlow**](PayinMethodUxFlow.md) | | [optional]
8
9
  **in_details** | [**PayinMethodDetails**](PayinMethodDetails.md) | | [optional]
10
+ **id** | **String** | | [optional]
11
+ **state** | [**PayinMethodState**](PayinMethodState.md) | | [optional]
12
+ **state_reason_details** | [**StateReasonDetails**](StateReasonDetails.md) | | [optional]
9
13
  **out_details** | [**Object**](.md) | This will contain the description on where to pay the funds. Please see the [Collections Details](https://docs.transferzero.com/docs/collection-details) in the API documentation on what to expect here. | [optional]
10
14
  **instructions** | [**Object**](.md) | This will contain the instructions on how to pay the funds. Please see the [Collections Details](https://docs.transferzero.com/docs/collection-details) in the API documentation on what to expect here. | [optional]
11
- **provider** | **String** | Describes which provider to use for collection. Please see the [Collections Details](https://docs.transferzero.com/docs/collection-details) in the API documentation on the valid values | [optional]
15
+ **errors** | **Hash<String, Array<ValidationErrorDescription>>** | The fields that have some problems and don't pass validation | [optional]
12
16
 
13
17
  ## Code Sample
14
18
 
15
19
  ```ruby
16
20
  require 'TransferZero'
17
21
 
18
- instance = TransferZero::PayinMethod.new(type: NGN::Bank,
22
+ instance = TransferZero::PayinMethod.new(type: GHS::Mobile,
23
+ ux_flow: null,
19
24
  in_details: null,
25
+ id: 97e79719-06e4-4794-aeeb-d2d9415d983a,
26
+ state: null,
27
+ state_reason_details: null,
20
28
  out_details: null,
21
29
  instructions: null,
22
- provider: null)
30
+ errors: {"phone_number":[{"error":"invalid"}],"documents":[{"error":"blank"}]})
23
31
  ```
24
32
 
25
33
 
@@ -4,10 +4,10 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **payment_method** | **String** | The payment method which the user will use to make the payments. Options are `bank`, `card` or you can leave empty to support both. | [optional]
8
- **redirect_url** | **String** | This is where the user should be redirected back when the payment has been finished | [optional]
9
- **phone_number** | **String** | The phone number where the funds should be collected from |
10
- **send_instructions** | **Boolean** | States whether to send out the instructions to the phone number on how to pay the funds or not. This shuold always be set to true, otherwise the sender might not receive a prompt for payment. | [optional]
7
+ **payment_method** | **String** | The payment method which the sender will use to make the payments. Options are `bank`, `card` or you can leave empty to support both. | [optional]
8
+ **redirect_url** | **String** | This is where the sender should be redirected back when the payment has been finished | [optional]
9
+ **phone_number** | **String** | The phone number where the funds should be collected from | [optional]
10
+ **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | | [optional]
11
11
  **refund_address** | **String** | Please make sure the refund_address is a valid BTC address belonging to the sender, as that is going to be used in case the transaction has to be refunded. | [optional]
12
12
 
13
13
  ## Code Sample
@@ -18,7 +18,7 @@ require 'TransferZero'
18
18
  instance = TransferZero::PayinMethodDetails.new(payment_method: null,
19
19
  redirect_url: null,
20
20
  phone_number: +2569999999,
21
- send_instructions: true,
21
+ mobile_provider: null,
22
22
  refund_address: null)
23
23
  ```
24
24
 
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **phone_number** | **String** | The phone number where the funds should be collected from |
8
- **send_instructions** | **Boolean** | States whether to send out the instructions to the phone number on how to pay the funds or not. This shuold always be set to true, otherwise the sender might not receive a prompt for payment. | [optional]
7
+ **phone_number** | **String** | The phone number where the funds should be collected from | [optional]
8
+ **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | | [optional]
9
9
 
10
10
  ## Code Sample
11
11
 
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
13
13
  require 'TransferZero'
14
14
 
15
15
  instance = TransferZero::PayinMethodDetailsMobile.new(phone_number: +2569999999,
16
- send_instructions: true)
16
+ mobile_provider: null)
17
17
  ```
18
18
 
19
19
 
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **payment_method** | **String** | The payment method which the user will use to make the payments. Options are `bank`, `card` or you can leave empty to support both. | [optional]
8
- **redirect_url** | **String** | This is where the user should be redirected back when the payment has been finished | [optional]
7
+ **payment_method** | **String** | The payment method which the sender will use to make the payments. Options are `bank`, `card` or you can leave empty to support both. | [optional]
8
+ **redirect_url** | **String** | This is where the sender should be redirected back when the payment has been finished | [optional]
9
9
 
10
10
  ## Code Sample
11
11
 
@@ -0,0 +1,17 @@
1
+ # TransferZero::PayinMethodResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **object** | [**PayinMethod**](PayinMethod.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'TransferZero'
13
+
14
+ instance = TransferZero::PayinMethodResponse.new(object: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,16 @@
1
+ # TransferZero::PayinMethodState
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'TransferZero'
12
+
13
+ instance = TransferZero::PayinMethodState.new()
14
+ ```
15
+
16
+
@@ -0,0 +1,16 @@
1
+ # TransferZero::PayinMethodUxFlow
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'TransferZero'
12
+
13
+ instance = TransferZero::PayinMethodUxFlow.new()
14
+ ```
15
+
16
+
@@ -0,0 +1,256 @@
1
+ # TransferZero::PayinMethodsApi
2
+
3
+ All URIs are relative to *https://api-sandbox.transferzero.com/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete_payin_method**](PayinMethodsApi.md#delete_payin_method) | **DELETE** /payin_methods/{PayinMethod ID} | Deleting a payin method
8
+ [**get_payin_method**](PayinMethodsApi.md#get_payin_method) | **GET** /payin_methods/{PayinMethod ID} | Fetching a payin method
9
+ [**patch_payin_method**](PayinMethodsApi.md#patch_payin_method) | **PATCH** /payin_methods/{PayinMethod ID} | Updating a payin method
10
+ [**retry_payin_method**](PayinMethodsApi.md#retry_payin_method) | **POST** /payin_methods/{PayinMethod ID}/retry | Retries PayinMethod
11
+
12
+
13
+ # **delete_payin_method**
14
+ > PayinMethodResponse delete_payin_method(payin_method_id)
15
+
16
+ Deleting a payin method
17
+
18
+ Initiates a cancellation request for the specified payin method
19
+
20
+ ### Example
21
+ ```ruby
22
+ # load the gem
23
+ require 'transferzero-sdk'
24
+
25
+ api_instance = TransferZero::PayinMethodsApi.new
26
+
27
+
28
+ begin
29
+ #Deleting a payin method
30
+ result = api_instance.delete_payin_method(payin_method_id)
31
+ p result
32
+ rescue TransferZero::ApiError => e
33
+ if e.validation_error
34
+ puts "WARN: Validation error occured when calling the endpoint"
35
+ result = e.response_object("PayinMethodResponse")
36
+ p result
37
+ else
38
+ puts "Exception when calling PayinMethodsApi->delete_payin_method: #{e}"
39
+ end
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **payin_method_id** | [**String**](.md)| ID of the payin method to delete. Example: `/v1/payin_methods/bf9ff782-e182-45ac-abea-5bce83ad6670` |
48
+
49
+ ### Return type
50
+
51
+ [**PayinMethodResponse**](PayinMethodResponse.md)
52
+
53
+ ### Authorization
54
+
55
+ You can set the API Key and Secret on the TransferZero object when setting it up:
56
+
57
+ ```ruby
58
+
59
+ TransferZero.configure do |config|
60
+ config.api_key = '<key'
61
+ config.api_secret = '<secret>'
62
+ config.host = 'https://api-sandbox.transferzero.com/v1'
63
+ end
64
+
65
+ ```
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: Not defined
70
+ - **Accept**: application/json
71
+
72
+
73
+
74
+ # **get_payin_method**
75
+ > PayinMethodResponse get_payin_method(payin_method_id)
76
+
77
+ Fetching a payin method
78
+
79
+ Show a payin method by id
80
+
81
+ ### Example
82
+ ```ruby
83
+ # load the gem
84
+ require 'transferzero-sdk'
85
+
86
+ api_instance = TransferZero::PayinMethodsApi.new
87
+
88
+
89
+ begin
90
+ #Fetching a payin method
91
+ result = api_instance.get_payin_method(payin_method_id)
92
+ p result
93
+ rescue TransferZero::ApiError => e
94
+ if e.validation_error
95
+ puts "WARN: Validation error occured when calling the endpoint"
96
+ result = e.response_object("PayinMethodResponse")
97
+ p result
98
+ else
99
+ puts "Exception when calling PayinMethodsApi->get_payin_method: #{e}"
100
+ end
101
+ end
102
+ ```
103
+
104
+ ### Parameters
105
+
106
+ Name | Type | Description | Notes
107
+ ------------- | ------------- | ------------- | -------------
108
+ **payin_method_id** | [**String**](.md)| ID of the payin method to get. Example: &#x60;/v1/payin_methods/bf9ff782-e182-45ac-abea-5bce83ad6670&#x60; |
109
+
110
+ ### Return type
111
+
112
+ [**PayinMethodResponse**](PayinMethodResponse.md)
113
+
114
+ ### Authorization
115
+
116
+ You can set the API Key and Secret on the TransferZero object when setting it up:
117
+
118
+ ```ruby
119
+
120
+ TransferZero.configure do |config|
121
+ config.api_key = '<key'
122
+ config.api_secret = '<secret>'
123
+ config.host = 'https://api-sandbox.transferzero.com/v1'
124
+ end
125
+
126
+ ```
127
+
128
+ ### HTTP request headers
129
+
130
+ - **Content-Type**: Not defined
131
+ - **Accept**: application/json
132
+
133
+
134
+
135
+ # **patch_payin_method**
136
+ > PayinMethodResponse patch_payin_method(payin_method_idpayin_method)
137
+
138
+ Updating a payin method
139
+
140
+ Updates the payin method specified in the URL path.
141
+
142
+ ### Example
143
+ ```ruby
144
+ # load the gem
145
+ require 'transferzero-sdk'
146
+
147
+ api_instance = TransferZero::PayinMethodsApi.new
148
+
149
+
150
+ begin
151
+ #Updating a payin method
152
+ result = api_instance.patch_payin_method(payin_method_idpayin_method)
153
+ p result
154
+ rescue TransferZero::ApiError => e
155
+ if e.validation_error
156
+ puts "WARN: Validation error occured when calling the endpoint"
157
+ result = e.response_object("PayinMethodResponse")
158
+ p result
159
+ else
160
+ puts "Exception when calling PayinMethodsApi->patch_payin_method: #{e}"
161
+ end
162
+ end
163
+ ```
164
+
165
+ ### Parameters
166
+
167
+ Name | Type | Description | Notes
168
+ ------------- | ------------- | ------------- | -------------
169
+ **payin_method_id** | [**String**](.md)| ID of the payin method to get. Example: &#x60;/v1/payin_methods/bf9ff782-e182-45ac-abea-5bce83ad6670&#x60; |
170
+ **payin_method** | [**PayinMethod**](PayinMethod.md)| |
171
+
172
+ ### Return type
173
+
174
+ [**PayinMethodResponse**](PayinMethodResponse.md)
175
+
176
+ ### Authorization
177
+
178
+ You can set the API Key and Secret on the TransferZero object when setting it up:
179
+
180
+ ```ruby
181
+
182
+ TransferZero.configure do |config|
183
+ config.api_key = '<key'
184
+ config.api_secret = '<secret>'
185
+ config.host = 'https://api-sandbox.transferzero.com/v1'
186
+ end
187
+
188
+ ```
189
+
190
+ ### HTTP request headers
191
+
192
+ - **Content-Type**: application/json
193
+ - **Accept**: application/json
194
+
195
+
196
+
197
+ # **retry_payin_method**
198
+ > retry_payin_method(payin_method_id)
199
+
200
+ Retries PayinMethod
201
+
202
+ Retries the collection process for the payin method. Please note only payin methods in `error` state can be retried.
203
+
204
+ ### Example
205
+ ```ruby
206
+ # load the gem
207
+ require 'transferzero-sdk'
208
+
209
+ api_instance = TransferZero::PayinMethodsApi.new
210
+
211
+
212
+ begin
213
+ #Retries PayinMethod
214
+ api_instance.retry_payin_method(payin_method_id)
215
+ rescue TransferZero::ApiError => e
216
+ if e.validation_error
217
+ puts "WARN: Validation error occured when calling the endpoint"
218
+ result = e.response_object("")
219
+ p result
220
+ else
221
+ puts "Exception when calling PayinMethodsApi->retry_payin_method: #{e}"
222
+ end
223
+ end
224
+ ```
225
+
226
+ ### Parameters
227
+
228
+ Name | Type | Description | Notes
229
+ ------------- | ------------- | ------------- | -------------
230
+ **payin_method_id** | [**String**](.md)| ID of the payin method whose collection process should be retried Example: &#x60;/v1/payin_methods/9d4d7b73-a94c-4979-ab57-09074fd55d33/retry&#x60; |
231
+
232
+ ### Return type
233
+
234
+ nil (empty response body)
235
+
236
+ ### Authorization
237
+
238
+ You can set the API Key and Secret on the TransferZero object when setting it up:
239
+
240
+ ```ruby
241
+
242
+ TransferZero.configure do |config|
243
+ config.api_key = '<key'
244
+ config.api_secret = '<secret>'
245
+ config.host = 'https://api-sandbox.transferzero.com/v1'
246
+ end
247
+
248
+ ```
249
+
250
+ ### HTTP request headers
251
+
252
+ - **Content-Type**: Not defined
253
+ - **Accept**: Not defined
254
+
255
+
256
+
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: - &#x60;NGN::Bank&#x60; - for Nigerian bank account payments. - &#x60;NGN::Mobile&#x60; - for Nigerian mobile money payments. - &#x60;GHS::Bank&#x60; - for Ghanaian bank account payments. - &#x60;GHS::Mobile&#x60; - for Ghanaian mobile money payments. - &#x60;GHS::Cash&#x60; - for Ghanaian cash remittance payments. - &#x60;UGX::Mobile&#x60; - for Ugandan mobile money payments. - &#x60;TZS::Mobile&#x60; - for Tanzanian mobile money payments. - &#x60;XOF::Mobile&#x60; - for mobile money payments to West-Africa. - &#x60;XOF::Bank&#x60; - for Senegalese bank account payments. - &#x60;XOF::Cash&#x60; - for Senegalese cash remittance payments. - &#x60;MAD::Cash&#x60; - for Moroccan cash remittance payments. - &#x60;EUR::Bank&#x60; - for IBAN bank transfers in EUR. - &#x60;GBP::Bank&#x60; - for IBAN bank and FP accounts transfers in GBP. - &#x60;ZAR::Bank&#x60; - for South Africa bank account payments. - &#x60;USD::Bank&#x60; - for USD account payments. *** Currently Nigeria only and in Beta phase *** - &#x60;USD::Cash&#x60; - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - &#x60;KES::Bank&#x60; - for Kenyan bank account payments. - &#x60;KES::Mobile&#x60; - for Kenyan mobile money payments. You can also send funds to the internal balance using &#x60;CCY::Balance&#x60;, where &#x60;CCY&#x60; 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: - &#x60;NGN::Bank&#x60; - for Nigerian bank account payments. - &#x60;NGN::Mobile&#x60; - for Nigerian mobile money payments. - &#x60;GHS::Bank&#x60; - for Ghanaian bank account payments. - &#x60;GHS::Mobile&#x60; - for Ghanaian mobile money payments. - &#x60;GHS::Cash&#x60; - for Ghanaian cash remittance payments. - &#x60;UGX::Mobile&#x60; - for Ugandan mobile money payments. - &#x60;TZS::Mobile&#x60; - for Tanzanian mobile money payments. - &#x60;XOF::Mobile&#x60; - for mobile money payments to West-Africa. - &#x60;XOF::Bank&#x60; - for Senegalese bank account payments. - &#x60;XOF::Cash&#x60; - for Senegalese cash remittance payments. - &#x60;MAD::Cash&#x60; - for Moroccan cash remittance payments. - &#x60;EUR::Bank&#x60; - for IBAN bank transfers in EUR. - &#x60;GBP::Bank&#x60; - for IBAN bank and FP accounts transfers in GBP. - &#x60;ZAR::Bank&#x60; - for South Africa bank account payments. - &#x60;USD::Bank&#x60; - for USD account payments. *** Currently Nigeria only and in Beta phase *** - &#x60;USD::Cash&#x60; - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - &#x60;KES::Bank&#x60; - for Kenyan bank account payments. - &#x60;KES::Mobile&#x60; - for Kenyan mobile money payments. - &#x60;XAF::Mobile&#x60; - for mobile money payments to Cameroon. - &#x60;GNF::Mobile&#x60; - for mobile money payments to Guinea. You can also send funds to the internal balance using &#x60;CCY::Balance&#x60;, where &#x60;CCY&#x60; 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]
@@ -12,10 +12,11 @@ Name | Type | Description | Notes
12
12
  **phone_number** | **String** | |
13
13
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
14
14
  **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | |
15
+ **transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
15
16
  **iban** | **String** | |
16
17
  **bank_name** | **String** | |
17
18
  **bank_country** | **String** | | [optional]
18
- **cash_provider** | [**PayoutMethodCashProviderEnum**](PayoutMethodCashProviderEnum.md) | | [optional]
19
+ **cash_provider** | [**PayoutMethodCashProviderEnum**](PayoutMethodCashProviderEnum.md) | |
19
20
  **sort_code** | **String** | | [optional]
20
21
  **bic** | **String** | | [optional]
21
22
  **sender_identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
@@ -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]
@@ -55,6 +56,7 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
55
56
  phone_number: null,
56
57
  mobile_provider: null,
57
58
  country: null,
59
+ transfer_reason: null,
58
60
  iban: null,
59
61
  bank_name: null,
60
62
  bank_country: null,
@@ -0,0 +1,23 @@
1
+ # TransferZero::PayoutMethodDetailsGNFMobile
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **phone_number** | **String** | |
10
+ **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'TransferZero'
16
+
17
+ instance = TransferZero::PayoutMethodDetailsGNFMobile.new(first_name: null,
18
+ last_name: null,
19
+ phone_number: null,
20
+ mobile_provider: null)
21
+ ```
22
+
23
+
@@ -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
  ```
@@ -0,0 +1,25 @@
1
+ # TransferZero::PayoutMethodDetailsXAFMobile
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **phone_number** | **String** | |
10
+ **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
11
+ **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'TransferZero'
17
+
18
+ instance = TransferZero::PayoutMethodDetailsXAFMobile.new(first_name: null,
19
+ last_name: null,
20
+ phone_number: null,
21
+ mobile_provider: null,
22
+ country: null)
23
+ ```
24
+
25
+
@@ -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