transferzero-sdk 1.7.0 → 1.8.0

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 (130) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -7
  3. data/docs/AccountMeta.md +1 -1
  4. data/docs/Currency.md +1 -1
  5. data/docs/CurrencyExchange.md +1 -1
  6. data/docs/CurrencyOpposite.md +1 -1
  7. data/docs/Document.md +3 -3
  8. data/docs/DocumentsApi.md +74 -2
  9. data/docs/FieldSelectValidation.md +1 -1
  10. data/docs/FieldValidation.md +1 -1
  11. data/docs/PayinMethodDetails.md +1 -3
  12. data/docs/PayinMethodDetailsMobile.md +1 -1
  13. data/docs/PaymentMethod.md +2 -2
  14. data/docs/PaymentMethodOpposite.md +2 -2
  15. data/docs/PayoutMethodDetails.md +1 -7
  16. data/docs/PayoutMethodDetailsIBAN.md +1 -1
  17. data/docs/Recipient.md +4 -4
  18. data/docs/RecipientsApi.md +1 -1
  19. data/docs/Sender.md +33 -63
  20. data/lib/transferzero-sdk.rb +0 -3
  21. data/lib/transferzero-sdk/api/documents_api.rb +63 -0
  22. data/lib/transferzero-sdk/api/recipients_api.rb +2 -2
  23. data/lib/transferzero-sdk/api_client.rb +3 -5
  24. data/lib/transferzero-sdk/models/account.rb +69 -70
  25. data/lib/transferzero-sdk/models/account_list_response.rb +66 -67
  26. data/lib/transferzero-sdk/models/account_meta.rb +60 -61
  27. data/lib/transferzero-sdk/models/account_response.rb +65 -66
  28. data/lib/transferzero-sdk/models/account_validation_error.rb +60 -61
  29. data/lib/transferzero-sdk/models/account_validation_request.rb +163 -164
  30. data/lib/transferzero-sdk/models/account_validation_response.rb +65 -66
  31. data/lib/transferzero-sdk/models/account_validation_result.rb +60 -61
  32. data/lib/transferzero-sdk/models/api_log.rb +135 -136
  33. data/lib/transferzero-sdk/models/api_log_list_response.rb +69 -70
  34. data/lib/transferzero-sdk/models/api_log_response.rb +59 -60
  35. data/lib/transferzero-sdk/models/currency.rb +141 -142
  36. data/lib/transferzero-sdk/models/currency_exchange.rb +157 -158
  37. data/lib/transferzero-sdk/models/currency_exchange_list_response.rb +61 -62
  38. data/lib/transferzero-sdk/models/currency_list_response.rb +61 -62
  39. data/lib/transferzero-sdk/models/currency_opposite.rb +165 -166
  40. data/lib/transferzero-sdk/models/debit.rb +150 -151
  41. data/lib/transferzero-sdk/models/debit_list_request.rb +60 -61
  42. data/lib/transferzero-sdk/models/debit_list_response.rb +66 -67
  43. data/lib/transferzero-sdk/models/debit_request.rb +59 -60
  44. data/lib/transferzero-sdk/models/debit_request_wrapper.rb +79 -80
  45. data/lib/transferzero-sdk/models/debit_response.rb +59 -60
  46. data/lib/transferzero-sdk/models/document.rb +177 -179
  47. data/lib/transferzero-sdk/models/document_list_response.rb +66 -67
  48. data/lib/transferzero-sdk/models/document_request.rb +59 -60
  49. data/lib/transferzero-sdk/models/document_response.rb +59 -60
  50. data/lib/transferzero-sdk/models/document_webhook.rb +95 -96
  51. data/lib/transferzero-sdk/models/error_status.rb +65 -66
  52. data/lib/transferzero-sdk/models/field_description.rb +94 -95
  53. data/lib/transferzero-sdk/models/field_select_validation.rb +69 -70
  54. data/lib/transferzero-sdk/models/field_validation.rb +77 -78
  55. data/lib/transferzero-sdk/models/pagination.rb +96 -97
  56. data/lib/transferzero-sdk/models/pagination_meta.rb +59 -60
  57. data/lib/transferzero-sdk/models/payin_method.rb +96 -97
  58. data/lib/transferzero-sdk/models/payin_method_details.rb +110 -122
  59. data/lib/transferzero-sdk/models/payin_method_details_mobile.rb +74 -75
  60. data/lib/transferzero-sdk/models/payin_method_details_ngn_bank.rb +70 -71
  61. data/lib/transferzero-sdk/models/payin_method_request.rb +59 -60
  62. data/lib/transferzero-sdk/models/payment_method.rb +108 -109
  63. data/lib/transferzero-sdk/models/payment_method_list_response.rb +60 -61
  64. data/lib/transferzero-sdk/models/payment_method_opposite.rb +123 -124
  65. data/lib/transferzero-sdk/models/payout_method.rb +106 -107
  66. data/lib/transferzero-sdk/models/payout_method_bank_account_type_enum.rb +19 -14
  67. data/lib/transferzero-sdk/models/payout_method_details.rb +297 -337
  68. data/lib/transferzero-sdk/models/payout_method_details_balance.rb +60 -61
  69. data/lib/transferzero-sdk/models/payout_method_details_ghs_bank.rb +96 -97
  70. data/lib/transferzero-sdk/models/payout_method_details_iban.rb +104 -100
  71. data/lib/transferzero-sdk/models/payout_method_details_mad_cash.rb +161 -162
  72. data/lib/transferzero-sdk/models/payout_method_details_mobile.rb +85 -86
  73. data/lib/transferzero-sdk/models/payout_method_details_ngn_bank.rb +103 -104
  74. data/lib/transferzero-sdk/models/payout_method_details_xof_bank.rb +107 -108
  75. data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +96 -97
  76. data/lib/transferzero-sdk/models/payout_method_gender_enum.rb +19 -14
  77. data/lib/transferzero-sdk/models/payout_method_identity_card_type_enum.rb +20 -15
  78. data/lib/transferzero-sdk/models/payout_method_list_response.rb +66 -67
  79. data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +19 -14
  80. data/lib/transferzero-sdk/models/payout_method_request.rb +59 -60
  81. data/lib/transferzero-sdk/models/payout_method_response.rb +59 -60
  82. data/lib/transferzero-sdk/models/payout_method_webhook.rb +95 -96
  83. data/lib/transferzero-sdk/models/politically_exposed_person.rb +123 -123
  84. data/lib/transferzero-sdk/models/recipient.rb +229 -230
  85. data/lib/transferzero-sdk/models/recipient_list_response.rb +66 -67
  86. data/lib/transferzero-sdk/models/recipient_request.rb +59 -60
  87. data/lib/transferzero-sdk/models/recipient_response.rb +59 -60
  88. data/lib/transferzero-sdk/models/recipient_state.rb +27 -22
  89. data/lib/transferzero-sdk/models/recipient_webhook.rb +95 -96
  90. data/lib/transferzero-sdk/models/sender.rb +358 -521
  91. data/lib/transferzero-sdk/models/sender_list_response.rb +66 -67
  92. data/lib/transferzero-sdk/models/sender_request.rb +59 -60
  93. data/lib/transferzero-sdk/models/sender_response.rb +65 -66
  94. data/lib/transferzero-sdk/models/sender_response_existing.rb +59 -60
  95. data/lib/transferzero-sdk/models/sender_response_meta.rb +59 -60
  96. data/lib/transferzero-sdk/models/sender_state.rb +24 -19
  97. data/lib/transferzero-sdk/models/sender_webhook.rb +95 -96
  98. data/lib/transferzero-sdk/models/transaction.rb +191 -192
  99. data/lib/transferzero-sdk/models/transaction_list_response.rb +66 -67
  100. data/lib/transferzero-sdk/models/transaction_request.rb +59 -60
  101. data/lib/transferzero-sdk/models/transaction_response.rb +65 -66
  102. data/lib/transferzero-sdk/models/transaction_response_existing.rb +65 -66
  103. data/lib/transferzero-sdk/models/transaction_response_meta.rb +59 -60
  104. data/lib/transferzero-sdk/models/transaction_state.rb +28 -23
  105. data/lib/transferzero-sdk/models/transaction_traits.rb +70 -71
  106. data/lib/transferzero-sdk/models/transaction_webhook.rb +95 -96
  107. data/lib/transferzero-sdk/models/validation_error_description.rb +61 -62
  108. data/lib/transferzero-sdk/models/webhook.rb +91 -92
  109. data/lib/transferzero-sdk/models/webhook_definition.rb +106 -107
  110. data/lib/transferzero-sdk/models/webhook_definition_event_list_response.rb +60 -61
  111. data/lib/transferzero-sdk/models/webhook_definition_list_response.rb +66 -67
  112. data/lib/transferzero-sdk/models/webhook_definition_request.rb +59 -60
  113. data/lib/transferzero-sdk/models/webhook_definition_response.rb +59 -60
  114. data/lib/transferzero-sdk/models/webhook_log.rb +96 -97
  115. data/lib/transferzero-sdk/models/webhook_log_list_response.rb +69 -70
  116. data/lib/transferzero-sdk/models/webhook_log_metadata.rb +128 -129
  117. data/lib/transferzero-sdk/models/webhook_log_metadata_request.rb +79 -80
  118. data/lib/transferzero-sdk/models/webhook_log_metadata_response.rb +80 -81
  119. data/lib/transferzero-sdk/models/webhook_log_response.rb +59 -60
  120. data/lib/transferzero-sdk/version.rb +1 -1
  121. metadata +3 -15
  122. data/docs/PayinMethodDetailsBTC.md +0 -17
  123. data/docs/PayoutMethodDetailsBTC.md +0 -23
  124. data/docs/PayoutMethodDetailsGBPBank.md +0 -29
  125. data/lib/transferzero-sdk/models/payin_method_details_btc.rb +0 -204
  126. data/lib/transferzero-sdk/models/payout_method_details_btc.rb +0 -250
  127. data/lib/transferzero-sdk/models/payout_method_details_gbp_bank.rb +0 -267
  128. data/spec/models/payin_method_details_btc_spec.rb +0 -41
  129. data/spec/models/payout_method_details_btc_spec.rb +0 -59
  130. data/spec/models/payout_method_details_gbp_bank_spec.rb +0 -77
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f333393e130ce032c7ae5f25df97e719a671e3f0071aaef40c6c67ad81295473
4
- data.tar.gz: 556e231d7edf40381c86bf3dadcf3b3559d9c799976d1f7a4d2ea69e7428094c
3
+ metadata.gz: c274d3c1799100cc96b0948c818a02e02ade91172cd7b4525c75a9242852d687
4
+ data.tar.gz: 7746ed2b6081cf788d8a3894ba3f0ccb4b4bfde981ecc9bfeecc8e11f229cc19
5
5
  SHA512:
6
- metadata.gz: '0100867ae3b2c304d8914632fcccbaf8312e3d16a65dc136c76f868ef3fabd43479b13aeb2aac5323ca18c83ce8504cc6693d289cee1408b8ea868a746ca16bc'
7
- data.tar.gz: a9b1c802ff472b829eca858a92d2a252b41ee163d28eb50c740d778c7aa86cf4fef5a48a876cb028e37ca4e4c3c6378826d7663d5c87d58ca0aec7056f680e12
6
+ metadata.gz: 7506bb914ebae11b793ac2d3a3e57b08c40d8559bf8d51a49cce4b9a281766a29b92a85be9edf8b1fbad2ff5e62e9e9ae2dde355587d9b4d1a4e1d43017dc417
7
+ data.tar.gz: 85e630486a5f4aa75d1b19de7ba6f57555ddc56947a6a6f178d11a157aee16138b3967df352b91a6d67b6d4fbc7cbd4d499a04221cd00d16145e47569dc629e2
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.7.0
10
+ - Package version: 1.8.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  For more information, please visit:
@@ -31,15 +31,15 @@ gem build transferzero-sdk.gemspec
31
31
  Then either install the gem locally:
32
32
 
33
33
  ```shell
34
- gem install ./transferzero-sdk-1.7.0.gem
34
+ gem install ./transferzero-sdk-1.8.0.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.7.0.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.8.0.gem` to install the development dependencies)
37
37
 
38
38
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
39
39
 
40
40
  Finally add this to the Gemfile:
41
41
 
42
- gem 'transferzero-sdk', '~> 1.7.0'
42
+ gem 'transferzero-sdk', '~> 1.8.0'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -115,6 +115,7 @@ Class | Method | HTTP request | Description
115
115
  *TransferZero::CurrencyInfoApi* | [**info_currencies**](docs/CurrencyInfoApi.md#info_currencies) | **GET** /info/currencies | Getting a list of possible requested currencies
116
116
  *TransferZero::CurrencyInfoApi* | [**info_currencies_in**](docs/CurrencyInfoApi.md#info_currencies_in) | **GET** /info/currencies/in | Getting a list of possible input currencies
117
117
  *TransferZero::CurrencyInfoApi* | [**info_currencies_out**](docs/CurrencyInfoApi.md#info_currencies_out) | **GET** /info/currencies/out | Getting a list of possible output currencies
118
+ *TransferZero::DocumentsApi* | [**delete_document**](docs/DocumentsApi.md#delete_document) | **DELETE** /documents/{Document ID} | Deleting a document
118
119
  *TransferZero::DocumentsApi* | [**get_document**](docs/DocumentsApi.md#get_document) | **GET** /documents/{Document ID} | Fetching a document
119
120
  *TransferZero::DocumentsApi* | [**get_documents**](docs/DocumentsApi.md#get_documents) | **GET** /documents | Getting a list of documents
120
121
  *TransferZero::DocumentsApi* | [**post_documents**](docs/DocumentsApi.md#post_documents) | **POST** /documents | Creating a document
@@ -187,7 +188,6 @@ Class | Method | HTTP request | Description
187
188
  - [TransferZero::PaginationMeta](docs/PaginationMeta.md)
188
189
  - [TransferZero::PayinMethod](docs/PayinMethod.md)
189
190
  - [TransferZero::PayinMethodDetails](docs/PayinMethodDetails.md)
190
- - [TransferZero::PayinMethodDetailsBTC](docs/PayinMethodDetailsBTC.md)
191
191
  - [TransferZero::PayinMethodDetailsMobile](docs/PayinMethodDetailsMobile.md)
192
192
  - [TransferZero::PayinMethodDetailsNGNBank](docs/PayinMethodDetailsNGNBank.md)
193
193
  - [TransferZero::PayinMethodRequest](docs/PayinMethodRequest.md)
@@ -197,9 +197,7 @@ Class | Method | HTTP request | Description
197
197
  - [TransferZero::PayoutMethod](docs/PayoutMethod.md)
198
198
  - [TransferZero::PayoutMethodBankAccountTypeEnum](docs/PayoutMethodBankAccountTypeEnum.md)
199
199
  - [TransferZero::PayoutMethodDetails](docs/PayoutMethodDetails.md)
200
- - [TransferZero::PayoutMethodDetailsBTC](docs/PayoutMethodDetailsBTC.md)
201
200
  - [TransferZero::PayoutMethodDetailsBalance](docs/PayoutMethodDetailsBalance.md)
202
- - [TransferZero::PayoutMethodDetailsGBPBank](docs/PayoutMethodDetailsGBPBank.md)
203
201
  - [TransferZero::PayoutMethodDetailsGHSBank](docs/PayoutMethodDetailsGHSBank.md)
204
202
  - [TransferZero::PayoutMethodDetailsIBAN](docs/PayoutMethodDetailsIBAN.md)
205
203
  - [TransferZero::PayoutMethodDetailsMADCash](docs/PayoutMethodDetailsMADCash.md)
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ```ruby
12
12
  require 'TransferZero'
13
13
 
14
- instance = TransferZero::AccountMeta.new(negative_balance: false)
14
+ instance = TransferZero::AccountMeta.new(negative_balance: null)
15
15
  ```
16
16
 
17
17
 
@@ -25,7 +25,7 @@ instance = TransferZero::Currency.new(code: NGN,
25
25
  symbol: ₦,
26
26
  decimals: 2,
27
27
  subunit_to_unit: 100,
28
- primary: true,
28
+ primary: null,
29
29
  min: 100,
30
30
  max: 50000000,
31
31
  margin: null,
@@ -26,7 +26,7 @@ instance = TransferZero::CurrencyExchange.new(code: NGN,
26
26
  symbol: ₦,
27
27
  decimals: 2,
28
28
  subunit_to_unit: 100,
29
- primary: true,
29
+ primary: null,
30
30
  min: 100,
31
31
  max: 50000000,
32
32
  margin: null,
@@ -27,7 +27,7 @@ instance = TransferZero::CurrencyOpposite.new(code: NGN,
27
27
  symbol: ₦,
28
28
  decimals: 2,
29
29
  subunit_to_unit: 100,
30
- primary: true,
30
+ primary: null,
31
31
  min: 100,
32
32
  max: 50000000,
33
33
  margin: null,
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **sender_id** | **String** | | [optional]
7
8
  **upload** | **String** | Base64 encoded data uri of an image/pdf file or a fully qualified url |
8
- **url** | **String** | URL of the document location | [optional]
9
9
  **upload_file_name** | **String** | Name of the upload |
10
10
  **metadata** | [**Object**](.md) | Metadata of document | [optional]
11
11
  **upload_content_type** | **String** | | [optional]
@@ -22,8 +22,8 @@ Name | Type | Description | Notes
22
22
  ```ruby
23
23
  require 'TransferZero'
24
24
 
25
- instance = TransferZero::Document.new(upload: data:image/png;base64,iVBORw0KGg...lFTkSuQmCC,
26
- url: https://bitpesa-documents.amazonaws.com/document.pdf,
25
+ instance = TransferZero::Document.new(sender_id: ebe9bc0b-f2f6-4ce8-802a-8b79912d041e,
26
+ upload: data:image/png;base64,iVBORw0KGg...lFTkSuQmCC,
27
27
  upload_file_name: example.png,
28
28
  metadata: {},
29
29
  upload_content_type: image/png,
@@ -4,13 +4,79 @@ All URIs are relative to *https://api-sandbox.transferzero.com/v1*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**delete_document**](DocumentsApi.md#delete_document) | **DELETE** /documents/{Document ID} | Deleting a document
7
8
  [**get_document**](DocumentsApi.md#get_document) | **GET** /documents/{Document ID} | Fetching a document
8
9
  [**get_documents**](DocumentsApi.md#get_documents) | **GET** /documents | Getting a list of documents
9
10
  [**post_documents**](DocumentsApi.md#post_documents) | **POST** /documents | Creating a document
10
11
 
11
12
 
13
+ # **delete_document**
14
+ > DocumentResponse delete_document(document_idopts)
15
+
16
+ Deleting a document
17
+
18
+ Deletes a single document by the Document ID
19
+
20
+ ### Example
21
+ ```ruby
22
+ # load the gem
23
+ require 'transferzero-sdk'
24
+
25
+ api_instance = TransferZero::DocumentsApi.new
26
+
27
+ opts = {
28
+ sender_id: 'sender_id_example' # String | Allows filtering results by `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7`
29
+ }
30
+
31
+ begin
32
+ #Deleting a document
33
+ result = api_instance.delete_document(document_idopts)
34
+ p result
35
+ rescue TransferZero::ApiError => e
36
+ if e.validation_error
37
+ puts "WARN: Validation error occured when calling the endpoint"
38
+ result = e.response_object("DocumentResponse")
39
+ p result
40
+ else
41
+ puts "Exception when calling DocumentsApi->delete_document: #{e}"
42
+ end
43
+ end
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+ Name | Type | Description | Notes
49
+ ------------- | ------------- | ------------- | -------------
50
+ **document_id** | [**String**](.md)| ID of the document to delete. Example: `/v1/document/bf9ff782-e182-45ac-abea-5bce83ad6670` |
51
+ **sender_id** | **String**| Allows filtering results by `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7` | [optional]
52
+
53
+ ### Return type
54
+
55
+ [**DocumentResponse**](DocumentResponse.md)
56
+
57
+ ### Authorization
58
+
59
+ You can set the API Key and Secret on the TransferZero object when setting it up:
60
+
61
+ ```ruby
62
+
63
+ TransferZero.configure do |config|
64
+ config.api_key = '<key'
65
+ config.api_secret = '<secret>'
66
+ config.host = 'https://api-sandbox.transferzero.com/v1'
67
+ end
68
+
69
+ ```
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: Not defined
74
+ - **Accept**: application/json
75
+
76
+
77
+
12
78
  # **get_document**
13
- > DocumentResponse get_document(document_id)
79
+ > DocumentResponse get_document(document_idopts)
14
80
 
15
81
  Fetching a document
16
82
 
@@ -23,10 +89,13 @@ require 'transferzero-sdk'
23
89
 
24
90
  api_instance = TransferZero::DocumentsApi.new
25
91
 
92
+ opts = {
93
+ sender_id: 'sender_id_example' # String | Allows filtering results by `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7`
94
+ }
26
95
 
27
96
  begin
28
97
  #Fetching a document
29
- result = api_instance.get_document(document_id)
98
+ result = api_instance.get_document(document_idopts)
30
99
  p result
31
100
  rescue TransferZero::ApiError => e
32
101
  if e.validation_error
@@ -44,6 +113,7 @@ end
44
113
  Name | Type | Description | Notes
45
114
  ------------- | ------------- | ------------- | -------------
46
115
  **document_id** | [**String**](.md)| ID of the document to get. Example: &#x60;/v1/documents/bf9ff782-e182-45ac-abea-5bce83ad6670&#x60; |
116
+ **sender_id** | **String**| Allows filtering results by &#x60;sender_id&#x60;. Example: &#x60;/v1/transactions?sender_id&#x3D;b41d3cb7-6c54-4245-85fc-8e30690eb0f7&#x60; | [optional]
47
117
 
48
118
  ### Return type
49
119
 
@@ -87,6 +157,7 @@ api_instance = TransferZero::DocumentsApi.new
87
157
  opts = {
88
158
  page: 1 # Integer | The page number to request (defaults to 1)
89
159
  per: 10 # Integer | The number of results to load per page (defaults to 10)
160
+ sender_id: 'sender_id_example' # String | Allows filtering results by `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7`
90
161
  }
91
162
 
92
163
  begin
@@ -110,6 +181,7 @@ Name | Type | Description | Notes
110
181
  ------------- | ------------- | ------------- | -------------
111
182
  **page** | **Integer**| The page number to request (defaults to 1) | [optional]
112
183
  **per** | **Integer**| The number of results to load per page (defaults to 10) | [optional]
184
+ **sender_id** | **String**| Allows filtering results by &#x60;sender_id&#x60;. Example: &#x60;/v1/transactions?sender_id&#x3D;b41d3cb7-6c54-4245-85fc-8e30690eb0f7&#x60; | [optional]
113
185
 
114
186
  ### Return type
115
187
 
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
13
13
  require 'TransferZero'
14
14
 
15
15
  instance = TransferZero::FieldSelectValidation.new(_in: {&quot;20&quot;:&quot;Current&quot;,&quot;10&quot;:&quot;Savings&quot;},
16
- allow_blank: false)
16
+ allow_blank: null)
17
17
  ```
18
18
 
19
19
 
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
13
13
  ```ruby
14
14
  require 'TransferZero'
15
15
 
16
- instance = TransferZero::FieldValidation.new(presence: true,
16
+ instance = TransferZero::FieldValidation.new(presence: null,
17
17
  inclusion: null,
18
18
  format: {&quot;with&quot;:&quot;(?-mix:\\A\\d+\\z)&quot;})
19
19
  ```
@@ -8,7 +8,6 @@ Name | Type | Description | Notes
8
8
  **redirect_url** | **String** | This is where the user should be redirected back when the payment has been finished | [optional]
9
9
  **phone_number** | **String** | The phone number where the funds should be collected from |
10
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]
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
11
 
13
12
  ## Code Sample
14
13
 
@@ -18,8 +17,7 @@ require 'TransferZero'
18
17
  instance = TransferZero::PayinMethodDetails.new(payment_method: null,
19
18
  redirect_url: null,
20
19
  phone_number: +2569999999,
21
- send_instructions: true,
22
- refund_address: null)
20
+ send_instructions: null)
23
21
  ```
24
22
 
25
23
 
@@ -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
+ send_instructions: null)
17
17
  ```
18
18
 
19
19
 
@@ -18,9 +18,9 @@ require 'TransferZero'
18
18
 
19
19
  instance = TransferZero::PaymentMethod.new(type: NGN::Bank,
20
20
  provider: Interswitch,
21
- otc_permitted: false,
21
+ otc_permitted: null,
22
22
  details: [&quot;email&quot;,&quot;first_name&quot;,&quot;last_name&quot;,&quot;address&quot;],
23
- default: false,
23
+ default: null,
24
24
  fields: {&quot;email&quot;:{&quot;type&quot;:&quot;input&quot;,&quot;validations&quot;:{&quot;inclusion&quot;:{&quot;in&quot;:{&quot;NI&quot;:&quot;National Id&quot;,&quot;PP&quot;:&quot;Passport&quot;},&quot;allow_blank&quot;:true}}}})
25
25
  ```
26
26
 
@@ -19,9 +19,9 @@ require 'TransferZero'
19
19
 
20
20
  instance = TransferZero::PaymentMethodOpposite.new(type: NGN::Bank,
21
21
  provider: Interswitch,
22
- otc_permitted: false,
22
+ otc_permitted: null,
23
23
  details: [&quot;email&quot;,&quot;first_name&quot;,&quot;last_name&quot;,&quot;address&quot;],
24
- default: false,
24
+ default: null,
25
25
  fields: {&quot;email&quot;:{&quot;type&quot;:&quot;input&quot;,&quot;validations&quot;:{&quot;inclusion&quot;:{&quot;in&quot;:{&quot;NI&quot;:&quot;National Id&quot;,&quot;PP&quot;:&quot;Passport&quot;},&quot;allow_blank&quot;:true}}}},
26
26
  opposites: null)
27
27
  ```
@@ -14,7 +14,6 @@ Name | Type | Description | Notes
14
14
  **iban** | **String** | |
15
15
  **bank_name** | **String** | |
16
16
  **bank_country** | **String** | |
17
- **sort_code** | **String** | | [optional]
18
17
  **bic** | **String** | | [optional]
19
18
  **sender_identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
20
19
  **sender_identity_card_id** | **String** | |
@@ -25,8 +24,6 @@ Name | Type | Description | Notes
25
24
  **identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | | [optional]
26
25
  **identity_card_id** | **String** | | [optional]
27
26
  **reference** | **String** | | [optional]
28
- **name** | **String** | |
29
- **address** | **String** | |
30
27
 
31
28
  ## Code Sample
32
29
 
@@ -43,7 +40,6 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
43
40
  iban: null,
44
41
  bank_name: null,
45
42
  bank_country: null,
46
- sort_code: null,
47
43
  bic: null,
48
44
  sender_identity_card_type: null,
49
45
  sender_identity_card_id: null,
@@ -53,9 +49,7 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
53
49
  reason: null,
54
50
  identity_card_type: null,
55
51
  identity_card_id: null,
56
- reference: null,
57
- name: null,
58
- address: null)
52
+ reference: null)
59
53
  ```
60
54
 
61
55
 
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **first_name** | **String** | |
8
8
  **last_name** | **String** | |
9
- **bank_name** | **String** | | [optional]
9
+ **bank_name** | **String** | |
10
10
  **iban** | **String** | |
11
11
  **bic** | **String** | | [optional]
12
12
 
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
12
12
  **editable** | **Boolean** | Shows whether the recipient can be edited using the PATCH /v1/recipients/{id} endpoint or not | [optional]
13
13
  **retriable** | **Boolean** | Shows whether the transaction made to the recipient can be retried or not | [optional]
14
14
  **input_usd_amount** | **Float** | Shows how much this payment is worth in USD | [optional]
15
- **may_cancel** | **Boolean** | If true it shows that the payment can be cancelled immediately using the DELETE /v1/recipients/{id} endpoint. If false you can still try to cancel it, however it will only gets cancelled once we have confirmation from our partner that the payment has failed. | [optional]
15
+ **may_cancel** | **Boolean** | Shows whether the payment can be cancelled using the DELETE /v1/recipients/{id} endpoint or not. The payment can not be cancelled if the payout is pending. | [optional]
16
16
  **state_reason** | **String** | In case the payment is unsuccessful it holds the error message associated with the last unsuccessful payout. | [optional]
17
17
  **state** | [**RecipientState**](RecipientState.md) | | [optional]
18
18
  **transaction_id** | **String** | The ID of the transaction that is related to this recipient | [optional]
@@ -36,10 +36,10 @@ instance = TransferZero::Recipient.new(requested_amount: 750.0,
36
36
  payout_method: null,
37
37
  metadata: {},
38
38
  created_at: null,
39
- editable: true,
40
- retriable: true,
39
+ editable: null,
40
+ retriable: null,
41
41
  input_usd_amount: 10,
42
- may_cancel: true,
42
+ may_cancel: null,
43
43
  state_reason: null,
44
44
  state: null,
45
45
  transaction_id: 97e79719-06e4-4794-aeeb-d2d9415d983a,
@@ -14,7 +14,7 @@ Method | HTTP request | Description
14
14
 
15
15
  Cancelling a recipient
16
16
 
17
- Cancels the payment to the recipient specified in the URL path. Please note recipients where the `may_cancel` attribute is true will be cancelled immediately. If the `may_cancel` attribute is false you can still try to cancel the recipient, however it will only gets cancelled if we will receive a confirmation from our partner that the payment has failed
17
+ Cancels the payment to the recipient specified in the URL path. Please note only recipients where the `may_cancel` attribute is true can be cancelled.
18
18
 
19
19
  ### Example
20
20
  ```ruby
@@ -4,100 +4,70 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **id** | **String** | | [optional]
8
7
  **type** | **String** | Type of sender to create - either person or business (defaults to person) | [optional]
9
- **state** | [**SenderState**](SenderState.md) | | [optional]
10
8
  **country** | **String** | Country of sender in 2-character alpha ISO 3166-2 country format |
11
- **street** | **String** | Sender&#39;s street |
12
- **postal_code** | **String** | Zip code of sender |
13
- **city** | **String** | Sender&#39;s city |
14
9
  **phone_country** | **String** | Phone country of sender in 2-character alpha ISO 3166-2 country format |
15
10
  **phone_number** | **String** | Phone number of sender (without country callcode) | [optional]
16
11
  **email** | **String** | Email of sender |
17
- **ip** | **String** | IP of sender |
18
- **address_description** | **String** | Description of address | [optional]
19
- **identification_number** | **String** | Identification number of document used | [optional]
20
- **identification_type** | **String** | Document to be identified. The identification type can be one of the following: - &#x60;DL&#x60;: Driving License - &#x60;PP&#x60;: International Passport - &#x60;ID&#x60;: National ID - &#x60;OT&#x60;: Other | [optional]
21
- **name** | **String** | Name of sender (used only with a Business sender) | [optional]
22
12
  **first_name** | **String** | First name of sender (used only with a Personal sender) | [optional]
23
13
  **middle_name** | **String** | Middle name of sender (used only with a Personal sender) | [optional]
24
14
  **last_name** | **String** | Last name of sender (used only with a Personal sender) | [optional]
25
- **birth_date** | **Date** | Date of birth of sender (used only with a Personal sender) | [optional]
26
15
  **occupation** | **String** | Occupation of sender (used only with a Personal sender) | [optional]
27
16
  **nationality** | **String** | The nationality of the sender (used only with a Personal sender) | [optional]
28
- **legal_entity_type** | **String** | Legal entity type (used only with a Business sender) | [optional]
29
- **registration_date** | **String** | The registration date (used only with a Business sender) | [optional]
30
- **registration_number** | **String** | The registration number (used only with a Business sender) | [optional]
31
- **nature_of_business** | **String** | Nature of business options (used only with a Business sender) | [optional]
32
- **source_of_funds** | **String** | The source of funds | [optional]
33
- **core_business_activities** | **String** | The core activities (used only with a Business sender) | [optional]
34
- **purpose_of_opening_account** | **String** | The purpose for opening their account (used only with a Business sender) | [optional]
35
- **office_phone** | **String** | The official phone number (used only with a Business sender) | [optional]
36
- **vat_registration_number** | **String** | The VAT registration number (used only with a Business sender) | [optional]
37
- **financial_regulator** | **String** | The Financial Regulator (used only with a Business sender) | [optional]
38
- **regulatory_licence_number** | **String** | The Regulatory Licence Number (used only with a Business sender) | [optional]
39
- **contact_person_email** | **String** | The contact&#39;s email address (used only with a Business sender) | [optional]
40
- **trading_country** | **String** | The Business trading country (used only with a Business sender) | [optional]
41
- **trading_address** | **String** | The Business trading address (used only with a Business sender) | [optional]
42
- **number_monthly_transactions** | **String** | The estimated number of monthly transactions (used only with a Business sender) | [optional]
43
- **amount_monthly_transactions** | **String** | The estimated amount for all transactions each month in USD (used only with a Business sender) | [optional]
17
+ **onboarding_status** | **String** | The onboarding status of the sender | [optional]
18
+ **address** | **String** | The address of the sender | [optional]
19
+ **description** | **String** | Description of the sender | [optional]
20
+ **name** | **String** | Name of sender (used only with a Business sender) | [optional]
21
+ **city** | **String** | Sender&#39;s city |
22
+ **street** | **String** | Sender&#39;s street |
23
+ **address_description** | **String** | Description of address | [optional]
24
+ **postal_code** | **String** | Zip code of sender |
25
+ **birth_date** | **Date** | Date of birth of sender | [optional]
26
+ **ip** | **String** | IP of sender |
27
+ **identification_number** | **String** | Identification number of document used | [optional]
28
+ **identification_type** | **String** | Document to be identified. The identification type can be one of the following: - &#x60;DL&#x60;: Driving License - &#x60;PP&#x60;: International Passport - &#x60;ID&#x60;: National ID - &#x60;OT&#x60;: Other | [optional]
44
29
  **documents** | [**Array&lt;Document&gt;**](Document.md) | Needed for KYC checks. Required to approve the sender unless KYC is waived for your account. Please send us an empty list of documents: &#x60;\&quot;documents\&quot;: [ ]&#x60; in the request if KYC has been waived. If the documents already exist, please send the Document ID eg. &#x60;&#x60;&#x60;JSON \&quot;documents\&quot;: [ { \&quot;id\&quot;: \&quot;b6648ba3-1c7b-4f59-8580-684899c84a07\&quot; } ] &#x60;&#x60;&#x60; |
30
+ **politically_exposed_people** | [**Array&lt;PoliticallyExposedPerson&gt;**](PoliticallyExposedPerson.md) | A list of politically exposed people, individuals who are or have been entrusted with prominent public functions by a country, for example heads of state or heads of government, senior politicians, senior government, judicial or military officials, senior executives of state owned corporations, important political party officials. There is a limit of three (3) politically exposed people per Sender. Politically exposed person example: &#x60;&#x60;&#x60;json { \&quot;name\&quot;: \&quot;Ronald Reagan\&quot;, \&quot;position\&quot;: \&quot;President of the United States\&quot;, \&quot;started_date\&quot;: \&quot;1981-01-20T00:00:00.000Z\&quot;, \&quot;ended_date\&quot;: \&quot;1989-01-20T00:00:00.000Z\&quot; } &#x60;&#x60;&#x60; | [optional]
45
31
  **metadata** | [**Object**](.md) | Metadata of sender. You can store any detail specific to your integration here (for example the local ID of the sender on your end). When requesting sender details you will receive the sent metadata back. Also when sending sender related webhooks you will receive the details stored here as well. | [optional]
46
- **errors** | **Hash&lt;String, Array&lt;ValidationErrorDescription&gt;&gt;** | The fields that have some problems and don&#39;t pass validation | [optional]
47
- **onboarding_status** | **String** | The onboarding status of the sender | [optional]
48
- **politically_exposed_people** | [**Array&lt;PoliticallyExposedPerson&gt;**](PoliticallyExposedPerson.md) | An optional list of politically exposed people, individuals who are or have been entrusted with prominent public functions by a country, for example heads of state or heads of government, senior politicians, senior government, judicial or military officials, senior executives of state owned corporations, important political party officials. There is a limit of three (3) politically exposed people per Sender. Politically exposed person example: &#x60;&#x60;&#x60;json { \&quot;politically_exposed_person\&quot;: { \&quot;name\&quot;: \&quot;Ronald Reagan\&quot;, \&quot;position\&quot;: \&quot;President of the United States\&quot;, \&quot;started_date\&quot;: \&quot;1981-01-20T00:00:00.000Z\&quot;, \&quot;ended_date\&quot;: \&quot;1989-01-20T00:00:00.000Z\&quot;, \&quot;sender_id\&quot;: \&quot;344fb668-196d-43db-9d94-b34b7e6c7e0b\&quot; } } &#x60;&#x60;&#x60; | [optional]
32
+ **state** | [**SenderState**](SenderState.md) | | [optional]
33
+ **id** | **String** | | [optional]
49
34
  **external_id** | **String** | Optional ID that is supplied by partner linking it to the partner&#39;s own Sender ID. Note: if present we will validate whether the sent ID is a duplicate in our system or not. | [optional]
50
- **created_at** | **String** | Date and time of sender was created | [optional]
35
+ **errors** | **Hash&lt;String, Array&lt;ValidationErrorDescription&gt;&gt;** | The fields that have some problems and don&#39;t pass validation | [optional]
51
36
 
52
37
  ## Code Sample
53
38
 
54
39
  ```ruby
55
40
  require 'TransferZero'
56
41
 
57
- instance = TransferZero::Sender.new(id: bf9ff782-e182-45ac-abea-5bce83ad6670,
58
- type: person,
59
- state: null,
42
+ instance = TransferZero::Sender.new(type: person,
60
43
  country: NG,
61
- street: Fake Street,
62
- postal_code: 798983,
63
- city: Kampala,
64
44
  phone_country: NG,
65
45
  phone_number: 752403639,
66
46
  email: example@home.org,
67
- ip: 127.0.0.1,
68
- address_description: null,
69
- identification_number: AB123456,
70
- identification_type: ID,
71
- name: null,
72
47
  first_name: Johnny,
73
48
  middle_name: Johnny,
74
49
  last_name: English,
75
- birth_date: null,
76
50
  occupation: Accountant,
77
51
  nationality: NG,
78
- legal_entity_type: sole_proprietorship,
79
- registration_date: null,
80
- registration_number: null,
81
- nature_of_business: null,
82
- source_of_funds: null,
83
- core_business_activities: null,
84
- purpose_of_opening_account: null,
85
- office_phone: null,
86
- vat_registration_number: null,
87
- financial_regulator: null,
88
- regulatory_licence_number: null,
89
- contact_person_email: null,
90
- trading_country: null,
91
- trading_address: null,
92
- number_monthly_transactions: null,
93
- amount_monthly_transactions: null,
94
- documents: [{&quot;id&quot;:&quot;b6648ba3-1c7b-4f59-8580-684899c84a07&quot;}],
95
- metadata: {},
96
- errors: {&quot;phone_number&quot;:[{&quot;error&quot;:&quot;invalid&quot;}],&quot;documents&quot;:[{&quot;error&quot;:&quot;blank&quot;}]},
97
52
  onboarding_status: null,
53
+ address: null,
54
+ description: null,
55
+ name: null,
56
+ city: Kampala,
57
+ street: Fake Street,
58
+ address_description: null,
59
+ postal_code: 798983,
60
+ birth_date: null,
61
+ ip: 127.0.0.1,
62
+ identification_number: AB123456,
63
+ identification_type: ID,
64
+ documents: [{&quot;id&quot;:&quot;b6648ba3-1c7b-4f59-8580-684899c84a07&quot;}],
98
65
  politically_exposed_people: [{&quot;id&quot;:&quot;40&quot;,&quot;name&quot;:&quot;Ronald Reagan&quot;,&quot;position&quot;:&quot;President of the United States&quot;,&quot;started_date&quot;:&quot;1981-01-20T00:00:00.000Z&quot;,&quot;ended_date&quot;:&quot;1989-01-20T00:00:00.000Z&quot;,&quot;sender_id&quot;:&quot;f9dc79ca-0c39-4add-9f4d-5ad7e6f187fb&quot;}],
66
+ metadata: {},
67
+ state: null,
68
+ id: bf9ff782-e182-45ac-abea-5bce83ad6670,
99
69
  external_id: 806ec63a-a5a7-43cc-9d75-1ee74fbcc026,
100
- created_at: 2019-01-11T00:00:00.001+0000)
70
+ errors: {&quot;phone_number&quot;:[{&quot;error&quot;:&quot;invalid&quot;}],&quot;documents&quot;:[{&quot;error&quot;:&quot;blank&quot;}]})
101
71
  ```
102
72
 
103
73