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.
- checksums.yaml +4 -4
- data/README.md +5 -7
- data/docs/AccountMeta.md +1 -1
- data/docs/Currency.md +1 -1
- data/docs/CurrencyExchange.md +1 -1
- data/docs/CurrencyOpposite.md +1 -1
- data/docs/Document.md +3 -3
- data/docs/DocumentsApi.md +74 -2
- data/docs/FieldSelectValidation.md +1 -1
- data/docs/FieldValidation.md +1 -1
- data/docs/PayinMethodDetails.md +1 -3
- data/docs/PayinMethodDetailsMobile.md +1 -1
- data/docs/PaymentMethod.md +2 -2
- data/docs/PaymentMethodOpposite.md +2 -2
- data/docs/PayoutMethodDetails.md +1 -7
- data/docs/PayoutMethodDetailsIBAN.md +1 -1
- data/docs/Recipient.md +4 -4
- data/docs/RecipientsApi.md +1 -1
- data/docs/Sender.md +33 -63
- data/lib/transferzero-sdk.rb +0 -3
- data/lib/transferzero-sdk/api/documents_api.rb +63 -0
- data/lib/transferzero-sdk/api/recipients_api.rb +2 -2
- data/lib/transferzero-sdk/api_client.rb +3 -5
- data/lib/transferzero-sdk/models/account.rb +69 -70
- data/lib/transferzero-sdk/models/account_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/account_meta.rb +60 -61
- data/lib/transferzero-sdk/models/account_response.rb +65 -66
- data/lib/transferzero-sdk/models/account_validation_error.rb +60 -61
- data/lib/transferzero-sdk/models/account_validation_request.rb +163 -164
- data/lib/transferzero-sdk/models/account_validation_response.rb +65 -66
- data/lib/transferzero-sdk/models/account_validation_result.rb +60 -61
- data/lib/transferzero-sdk/models/api_log.rb +135 -136
- data/lib/transferzero-sdk/models/api_log_list_response.rb +69 -70
- data/lib/transferzero-sdk/models/api_log_response.rb +59 -60
- data/lib/transferzero-sdk/models/currency.rb +141 -142
- data/lib/transferzero-sdk/models/currency_exchange.rb +157 -158
- data/lib/transferzero-sdk/models/currency_exchange_list_response.rb +61 -62
- data/lib/transferzero-sdk/models/currency_list_response.rb +61 -62
- data/lib/transferzero-sdk/models/currency_opposite.rb +165 -166
- data/lib/transferzero-sdk/models/debit.rb +150 -151
- data/lib/transferzero-sdk/models/debit_list_request.rb +60 -61
- data/lib/transferzero-sdk/models/debit_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/debit_request.rb +59 -60
- data/lib/transferzero-sdk/models/debit_request_wrapper.rb +79 -80
- data/lib/transferzero-sdk/models/debit_response.rb +59 -60
- data/lib/transferzero-sdk/models/document.rb +177 -179
- data/lib/transferzero-sdk/models/document_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/document_request.rb +59 -60
- data/lib/transferzero-sdk/models/document_response.rb +59 -60
- data/lib/transferzero-sdk/models/document_webhook.rb +95 -96
- data/lib/transferzero-sdk/models/error_status.rb +65 -66
- data/lib/transferzero-sdk/models/field_description.rb +94 -95
- data/lib/transferzero-sdk/models/field_select_validation.rb +69 -70
- data/lib/transferzero-sdk/models/field_validation.rb +77 -78
- data/lib/transferzero-sdk/models/pagination.rb +96 -97
- data/lib/transferzero-sdk/models/pagination_meta.rb +59 -60
- data/lib/transferzero-sdk/models/payin_method.rb +96 -97
- data/lib/transferzero-sdk/models/payin_method_details.rb +110 -122
- data/lib/transferzero-sdk/models/payin_method_details_mobile.rb +74 -75
- data/lib/transferzero-sdk/models/payin_method_details_ngn_bank.rb +70 -71
- data/lib/transferzero-sdk/models/payin_method_request.rb +59 -60
- data/lib/transferzero-sdk/models/payment_method.rb +108 -109
- data/lib/transferzero-sdk/models/payment_method_list_response.rb +60 -61
- data/lib/transferzero-sdk/models/payment_method_opposite.rb +123 -124
- data/lib/transferzero-sdk/models/payout_method.rb +106 -107
- data/lib/transferzero-sdk/models/payout_method_bank_account_type_enum.rb +19 -14
- data/lib/transferzero-sdk/models/payout_method_details.rb +297 -337
- data/lib/transferzero-sdk/models/payout_method_details_balance.rb +60 -61
- data/lib/transferzero-sdk/models/payout_method_details_ghs_bank.rb +96 -97
- data/lib/transferzero-sdk/models/payout_method_details_iban.rb +104 -100
- data/lib/transferzero-sdk/models/payout_method_details_mad_cash.rb +161 -162
- data/lib/transferzero-sdk/models/payout_method_details_mobile.rb +85 -86
- data/lib/transferzero-sdk/models/payout_method_details_ngn_bank.rb +103 -104
- data/lib/transferzero-sdk/models/payout_method_details_xof_bank.rb +107 -108
- data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +96 -97
- data/lib/transferzero-sdk/models/payout_method_gender_enum.rb +19 -14
- data/lib/transferzero-sdk/models/payout_method_identity_card_type_enum.rb +20 -15
- data/lib/transferzero-sdk/models/payout_method_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +19 -14
- data/lib/transferzero-sdk/models/payout_method_request.rb +59 -60
- data/lib/transferzero-sdk/models/payout_method_response.rb +59 -60
- data/lib/transferzero-sdk/models/payout_method_webhook.rb +95 -96
- data/lib/transferzero-sdk/models/politically_exposed_person.rb +123 -123
- data/lib/transferzero-sdk/models/recipient.rb +229 -230
- data/lib/transferzero-sdk/models/recipient_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/recipient_request.rb +59 -60
- data/lib/transferzero-sdk/models/recipient_response.rb +59 -60
- data/lib/transferzero-sdk/models/recipient_state.rb +27 -22
- data/lib/transferzero-sdk/models/recipient_webhook.rb +95 -96
- data/lib/transferzero-sdk/models/sender.rb +358 -521
- data/lib/transferzero-sdk/models/sender_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/sender_request.rb +59 -60
- data/lib/transferzero-sdk/models/sender_response.rb +65 -66
- data/lib/transferzero-sdk/models/sender_response_existing.rb +59 -60
- data/lib/transferzero-sdk/models/sender_response_meta.rb +59 -60
- data/lib/transferzero-sdk/models/sender_state.rb +24 -19
- data/lib/transferzero-sdk/models/sender_webhook.rb +95 -96
- data/lib/transferzero-sdk/models/transaction.rb +191 -192
- data/lib/transferzero-sdk/models/transaction_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/transaction_request.rb +59 -60
- data/lib/transferzero-sdk/models/transaction_response.rb +65 -66
- data/lib/transferzero-sdk/models/transaction_response_existing.rb +65 -66
- data/lib/transferzero-sdk/models/transaction_response_meta.rb +59 -60
- data/lib/transferzero-sdk/models/transaction_state.rb +28 -23
- data/lib/transferzero-sdk/models/transaction_traits.rb +70 -71
- data/lib/transferzero-sdk/models/transaction_webhook.rb +95 -96
- data/lib/transferzero-sdk/models/validation_error_description.rb +61 -62
- data/lib/transferzero-sdk/models/webhook.rb +91 -92
- data/lib/transferzero-sdk/models/webhook_definition.rb +106 -107
- data/lib/transferzero-sdk/models/webhook_definition_event_list_response.rb +60 -61
- data/lib/transferzero-sdk/models/webhook_definition_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/webhook_definition_request.rb +59 -60
- data/lib/transferzero-sdk/models/webhook_definition_response.rb +59 -60
- data/lib/transferzero-sdk/models/webhook_log.rb +96 -97
- data/lib/transferzero-sdk/models/webhook_log_list_response.rb +69 -70
- data/lib/transferzero-sdk/models/webhook_log_metadata.rb +128 -129
- data/lib/transferzero-sdk/models/webhook_log_metadata_request.rb +79 -80
- data/lib/transferzero-sdk/models/webhook_log_metadata_response.rb +80 -81
- data/lib/transferzero-sdk/models/webhook_log_response.rb +59 -60
- data/lib/transferzero-sdk/version.rb +1 -1
- metadata +3 -15
- data/docs/PayinMethodDetailsBTC.md +0 -17
- data/docs/PayoutMethodDetailsBTC.md +0 -23
- data/docs/PayoutMethodDetailsGBPBank.md +0 -29
- data/lib/transferzero-sdk/models/payin_method_details_btc.rb +0 -204
- data/lib/transferzero-sdk/models/payout_method_details_btc.rb +0 -250
- data/lib/transferzero-sdk/models/payout_method_details_gbp_bank.rb +0 -267
- data/spec/models/payin_method_details_btc_spec.rb +0 -41
- data/spec/models/payout_method_details_btc_spec.rb +0 -59
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c274d3c1799100cc96b0948c818a02e02ade91172cd7b4525c75a9242852d687
|
4
|
+
data.tar.gz: 7746ed2b6081cf788d8a3894ba3f0ccb4b4bfde981ecc9bfeecc8e11f229cc19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
34
|
+
gem install ./transferzero-sdk-1.8.0.gem
|
35
35
|
```
|
36
|
-
(for development, run `gem install --dev ./transferzero-sdk-1.
|
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.
|
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)
|
data/docs/AccountMeta.md
CHANGED
data/docs/Currency.md
CHANGED
data/docs/CurrencyExchange.md
CHANGED
data/docs/CurrencyOpposite.md
CHANGED
data/docs/Document.md
CHANGED
@@ -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(
|
26
|
-
|
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,
|
data/docs/DocumentsApi.md
CHANGED
@@ -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(
|
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(
|
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: `/v1/documents/bf9ff782-e182-45ac-abea-5bce83ad6670` |
|
116
|
+
**sender_id** | **String**| Allows filtering results by `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7` | [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 `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7` | [optional]
|
113
185
|
|
114
186
|
### Return type
|
115
187
|
|
data/docs/FieldValidation.md
CHANGED
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
|
|
13
13
|
```ruby
|
14
14
|
require 'TransferZero'
|
15
15
|
|
16
|
-
instance = TransferZero::FieldValidation.new(presence:
|
16
|
+
instance = TransferZero::FieldValidation.new(presence: null,
|
17
17
|
inclusion: null,
|
18
18
|
format: {"with":"(?-mix:\\A\\d+\\z)"})
|
19
19
|
```
|
data/docs/PayinMethodDetails.md
CHANGED
@@ -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:
|
22
|
-
refund_address: null)
|
20
|
+
send_instructions: null)
|
23
21
|
```
|
24
22
|
|
25
23
|
|
data/docs/PaymentMethod.md
CHANGED
@@ -18,9 +18,9 @@ require 'TransferZero'
|
|
18
18
|
|
19
19
|
instance = TransferZero::PaymentMethod.new(type: NGN::Bank,
|
20
20
|
provider: Interswitch,
|
21
|
-
otc_permitted:
|
21
|
+
otc_permitted: null,
|
22
22
|
details: ["email","first_name","last_name","address"],
|
23
|
-
default:
|
23
|
+
default: null,
|
24
24
|
fields: {"email":{"type":"input","validations":{"inclusion":{"in":{"NI":"National Id","PP":"Passport"},"allow_blank":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:
|
22
|
+
otc_permitted: null,
|
23
23
|
details: ["email","first_name","last_name","address"],
|
24
|
-
default:
|
24
|
+
default: null,
|
25
25
|
fields: {"email":{"type":"input","validations":{"inclusion":{"in":{"NI":"National Id","PP":"Passport"},"allow_blank":true}}}},
|
26
26
|
opposites: null)
|
27
27
|
```
|
data/docs/PayoutMethodDetails.md
CHANGED
@@ -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** | |
|
9
|
+
**bank_name** | **String** | |
|
10
10
|
**iban** | **String** | |
|
11
11
|
**bic** | **String** | | [optional]
|
12
12
|
|
data/docs/Recipient.md
CHANGED
@@ -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** |
|
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:
|
40
|
-
retriable:
|
39
|
+
editable: null,
|
40
|
+
retriable: null,
|
41
41
|
input_usd_amount: 10,
|
42
|
-
may_cancel:
|
42
|
+
may_cancel: null,
|
43
43
|
state_reason: null,
|
44
44
|
state: null,
|
45
45
|
transaction_id: 97e79719-06e4-4794-aeeb-d2d9415d983a,
|
data/docs/RecipientsApi.md
CHANGED
@@ -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
|
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
|
data/docs/Sender.md
CHANGED
@@ -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's street |
|
12
|
-
**postal_code** | **String** | Zip code of sender |
|
13
|
-
**city** | **String** | Sender'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: - `DL`: Driving License - `PP`: International Passport - `ID`: National ID - `OT`: 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
|
-
**
|
29
|
-
**
|
30
|
-
**
|
31
|
-
**
|
32
|
-
**
|
33
|
-
**
|
34
|
-
**
|
35
|
-
**
|
36
|
-
**
|
37
|
-
**
|
38
|
-
**
|
39
|
-
**
|
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's city |
|
22
|
+
**street** | **String** | Sender'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: - `DL`: Driving License - `PP`: International Passport - `ID`: National ID - `OT`: Other | [optional]
|
44
29
|
**documents** | [**Array<Document>**](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: `\"documents\": [ ]` in the request if KYC has been waived. If the documents already exist, please send the Document ID eg. ```JSON \"documents\": [ { \"id\": \"b6648ba3-1c7b-4f59-8580-684899c84a07\" } ] ``` |
|
30
|
+
**politically_exposed_people** | [**Array<PoliticallyExposedPerson>**](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: ```json { \"name\": \"Ronald Reagan\", \"position\": \"President of the United States\", \"started_date\": \"1981-01-20T00:00:00.000Z\", \"ended_date\": \"1989-01-20T00:00:00.000Z\" } ``` | [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
|
-
**
|
47
|
-
**
|
48
|
-
**politically_exposed_people** | [**Array<PoliticallyExposedPerson>**](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: ```json { \"politically_exposed_person\": { \"name\": \"Ronald Reagan\", \"position\": \"President of the United States\", \"started_date\": \"1981-01-20T00:00:00.000Z\", \"ended_date\": \"1989-01-20T00:00:00.000Z\", \"sender_id\": \"344fb668-196d-43db-9d94-b34b7e6c7e0b\" } } ``` | [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's own Sender ID. Note: if present we will validate whether the sent ID is a duplicate in our system or not. | [optional]
|
50
|
-
**
|
35
|
+
**errors** | **Hash<String, Array<ValidationErrorDescription>>** | The fields that have some problems and don'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(
|
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: [{"id":"b6648ba3-1c7b-4f59-8580-684899c84a07"}],
|
95
|
-
metadata: {},
|
96
|
-
errors: {"phone_number":[{"error":"invalid"}],"documents":[{"error":"blank"}]},
|
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: [{"id":"b6648ba3-1c7b-4f59-8580-684899c84a07"}],
|
98
65
|
politically_exposed_people: [{"id":"40","name":"Ronald Reagan","position":"President of the United States","started_date":"1981-01-20T00:00:00.000Z","ended_date":"1989-01-20T00:00:00.000Z","sender_id":"f9dc79ca-0c39-4add-9f4d-5ad7e6f187fb"}],
|
66
|
+
metadata: {},
|
67
|
+
state: null,
|
68
|
+
id: bf9ff782-e182-45ac-abea-5bce83ad6670,
|
99
69
|
external_id: 806ec63a-a5a7-43cc-9d75-1ee74fbcc026,
|
100
|
-
|
70
|
+
errors: {"phone_number":[{"error":"invalid"}],"documents":[{"error":"blank"}]})
|
101
71
|
```
|
102
72
|
|
103
73
|
|