transferzero-sdk 1.3.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -18
  3. data/docs/AccountMeta.md +1 -1
  4. data/docs/AccountValidationApi.md +4 -4
  5. data/docs/AccountValidationRequest.md +6 -4
  6. data/docs/Currency.md +1 -1
  7. data/docs/CurrencyExchange.md +1 -1
  8. data/docs/CurrencyOpposite.md +1 -1
  9. data/docs/Document.md +5 -1
  10. data/docs/DocumentsApi.md +74 -2
  11. data/docs/FieldSelectValidation.md +1 -1
  12. data/docs/FieldValidation.md +1 -1
  13. data/docs/PayinMethod.md +4 -4
  14. data/docs/PayinMethodDetails.md +5 -3
  15. data/docs/PayinMethodDetailsMobile.md +1 -1
  16. data/docs/PayinMethodDetailsNGNBank.md +4 -2
  17. data/docs/PaymentMethod.md +2 -2
  18. data/docs/PaymentMethodOpposite.md +2 -2
  19. data/docs/PayoutMethod.md +1 -1
  20. data/docs/PayoutMethodDetails.md +5 -3
  21. data/docs/PayoutMethodDetailsNGNBank.md +1 -1
  22. data/docs/PayoutMethodDetailsXOFBank.md +25 -0
  23. data/docs/PoliticallyExposedPerson.md +31 -0
  24. data/docs/Recipient.md +3 -3
  25. data/docs/RecipientsApi.md +2 -2
  26. data/docs/Sender.md +2 -0
  27. data/docs/Transaction.md +5 -5
  28. data/docs/TransactionTraits.md +2 -2
  29. data/docs/TransactionsApi.md +64 -0
  30. data/example/client.rb +14 -14
  31. data/git_push.sh +1 -1
  32. data/lib/transferzero-sdk.rb +2 -7
  33. data/lib/transferzero-sdk/api/account_validation_api.rb +4 -4
  34. data/lib/transferzero-sdk/api/documents_api.rb +63 -0
  35. data/lib/transferzero-sdk/api/recipients_api.rb +2 -2
  36. data/lib/transferzero-sdk/api/transactions_api.rb +59 -0
  37. data/lib/transferzero-sdk/api_client.rb +1 -1
  38. data/lib/transferzero-sdk/models/account_validation_request.rb +15 -15
  39. data/lib/transferzero-sdk/models/currency_exchange.rb +1 -2
  40. data/lib/transferzero-sdk/models/currency_opposite.rb +1 -2
  41. data/lib/transferzero-sdk/models/document.rb +20 -1
  42. data/lib/transferzero-sdk/models/document_webhook.rb +0 -1
  43. data/lib/transferzero-sdk/models/payin_method.rb +4 -4
  44. data/lib/transferzero-sdk/models/payin_method_details.rb +12 -7
  45. data/lib/transferzero-sdk/models/payin_method_details_ngn_bank.rb +11 -6
  46. data/lib/transferzero-sdk/models/payout_method.rb +1 -1
  47. data/lib/transferzero-sdk/models/payout_method_details.rb +25 -15
  48. data/lib/transferzero-sdk/models/payout_method_details_ngn_bank.rb +0 -5
  49. data/lib/transferzero-sdk/models/{currency_opposite_all_of.rb → payout_method_details_xof_bank.rb} +69 -18
  50. data/lib/transferzero-sdk/models/payout_method_webhook.rb +0 -1
  51. data/lib/transferzero-sdk/models/{payout_method_webhook_all_of.rb → politically_exposed_person.rb} +81 -10
  52. data/lib/transferzero-sdk/models/recipient_webhook.rb +0 -1
  53. data/lib/transferzero-sdk/models/sender.rb +14 -2
  54. data/lib/transferzero-sdk/models/sender_state.rb +1 -0
  55. data/lib/transferzero-sdk/models/sender_webhook.rb +0 -1
  56. data/lib/transferzero-sdk/models/transaction.rb +2 -2
  57. data/lib/transferzero-sdk/models/transaction_state.rb +1 -0
  58. data/lib/transferzero-sdk/models/transaction_traits.rb +3 -3
  59. data/lib/transferzero-sdk/models/transaction_webhook.rb +0 -1
  60. data/lib/transferzero-sdk/models/webhook.rb +1 -1
  61. data/lib/transferzero-sdk/version.rb +1 -1
  62. data/spec/api/account_validation_api_spec.rb +2 -2
  63. data/spec/api/currency_info_api_spec.rb +2 -0
  64. data/spec/api/documents_api_spec.rb +15 -0
  65. data/spec/api/recipients_api_spec.rb +1 -1
  66. data/spec/api/transactions_api_spec.rb +13 -0
  67. data/spec/models/account_validation_request_spec.rb +7 -1
  68. data/spec/models/currency_opposite_spec.rb +6 -0
  69. data/spec/models/document_spec.rb +12 -0
  70. data/spec/models/payin_method_details_ngn_bank_spec.rb +6 -0
  71. data/spec/models/payin_method_details_spec.rb +6 -0
  72. data/spec/models/payout_method_details_spec.rb +7 -1
  73. data/spec/models/payout_method_details_xof_bank_spec.rb +65 -0
  74. data/spec/models/politically_exposed_person_spec.rb +83 -0
  75. data/spec/models/recipient_spec.rb +6 -0
  76. data/spec/models/sender_spec.rb +16 -0
  77. data/transferzero-sdk.gemspec +2 -2
  78. metadata +17 -46
  79. data/Gemfile.lock +0 -93
  80. data/docs/CurrencyExchangeAllOf.md +0 -17
  81. data/docs/CurrencyOppositeAllOf.md +0 -19
  82. data/docs/DocumentWebhookAllOf.md +0 -17
  83. data/docs/PayoutMethodWebhookAllOf.md +0 -17
  84. data/docs/RecipientWebhookAllOf.md +0 -17
  85. data/docs/SenderWebhookAllOf.md +0 -17
  86. data/docs/TransactionWebhookAllOf.md +0 -17
  87. data/lib/transferzero-sdk/models/currency_exchange_all_of.rb +0 -204
  88. data/lib/transferzero-sdk/models/document_webhook_all_of.rb +0 -201
  89. data/lib/transferzero-sdk/models/recipient_webhook_all_of.rb +0 -201
  90. data/lib/transferzero-sdk/models/sender_webhook_all_of.rb +0 -201
  91. data/lib/transferzero-sdk/models/transaction_webhook_all_of.rb +0 -201
  92. data/spec/api_client_spec.rb +0 -189
  93. data/spec/models/currency_exchange_all_of_spec.rb +0 -41
  94. data/spec/models/currency_opposite_all_of_spec.rb +0 -41
  95. data/spec/models/document_webhook_all_of_spec.rb +0 -41
  96. data/spec/models/payout_method_webhook_all_of_spec.rb +0 -41
  97. data/spec/models/recipient_webhook_all_of_spec.rb +0 -41
  98. data/spec/models/sender_webhook_all_of_spec.rb +0 -41
  99. data/spec/models/transaction_webhook_all_of_spec.rb +0 -41
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec7ad9295e642f964d1fd79f4dc572929b15e8a09611c5b3b427ca018c45cd38
4
- data.tar.gz: ce7e8272987b6b48cf9374784cfec071df90f71b2db7daccb1526d90179f46c2
3
+ metadata.gz: c274d3c1799100cc96b0948c818a02e02ade91172cd7b4525c75a9242852d687
4
+ data.tar.gz: 7746ed2b6081cf788d8a3894ba3f0ccb4b4bfde981ecc9bfeecc8e11f229cc19
5
5
  SHA512:
6
- metadata.gz: 20e6b03b1ed61397bed75c3a7de9a887fb3dc9a40a594c8ba22bad1a9c6728ac68abfb0e12eccb6b09089047a44e859b212a4dbf8e477d4ab33180cc4e7578a6
7
- data.tar.gz: 27a877b021b92d6e45eec0bb90ac34ed37a7bbae0a08d19d984108bd60163a6fc39ed1cff9daf524cb096af6789334e52717f4f6b0d743ebaba2633a943105cd
6
+ metadata.gz: 7506bb914ebae11b793ac2d3a3e57b08c40d8559bf8d51a49cce4b9a281766a29b92a85be9edf8b1fbad2ff5e62e9e9ae2dde355587d9b4d1a4e1d43017dc417
7
+ data.tar.gz: 85e630486a5f4aa75d1b19de7ba6f57555ddc56947a6a6f178d11a157aee16138b3967df352b91a6d67b6d4fbc7cbd4d499a04221cd00d16145e47569dc629e2
data/README.md CHANGED
@@ -7,15 +7,15 @@ 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.3.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:
14
14
 
15
- * [API Documentation](https://github.com/transferzero/api-documentation)
16
- * [Onboarding guide](https://github.com/transferzero/api-documentation/blob/master/quick-integration.md)
17
- * [Transaction flow](https://github.com/transferzero/api-documentation/blob/master/transaction-flow.md)
18
- * [Additional features](https://github.com/transferzero/api-documentation/blob/master/additional-features.md)
15
+ * [API Documentation](https://docs.transferzero.com)
16
+ * [Onboarding guide](https://docs.transferzero.com/docs/quick-integration/)
17
+ * [Transaction flow](https://docs.transferzero.com/docs/transaction-flow/)
18
+ * [Additional features](https://docs.transferzero.com/docs/additional-features/)
19
19
  * [API Specification](https://api.transferzero.com/documentation)
20
20
 
21
21
  ## Installation
@@ -31,21 +31,21 @@ gem build transferzero-sdk.gemspec
31
31
  Then either install the gem locally:
32
32
 
33
33
  ```shell
34
- gem install ./transferzero-sdk-1.3.0.gem
34
+ gem install ./transferzero-sdk-1.8.0.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.3.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.3.0'
42
+ gem 'transferzero-sdk', '~> 1.8.0'
43
43
 
44
44
  ### Install from Git
45
45
 
46
- If the Ruby gem is hosted at a git repository: https://github.com/transferzero/transferzero-ruby-sdk, then add the following in the Gemfile:
46
+ If the Ruby gem is hosted at a git repository: https://github.com/transferzero/transferzero-sdk-ruby, then add the following in the Gemfile:
47
47
 
48
- gem 'transferzero-sdk', :git => 'https://github.com/transferzero/transferzero-ruby-sdk.git'
48
+ gem 'transferzero-sdk', :git => 'https://github.com/transferzero/transferzero-sdk-ruby.git'
49
49
 
50
50
  ### Include the Ruby code directly
51
51
 
@@ -109,12 +109,13 @@ Class | Method | HTTP request | Description
109
109
  *TransferZero::AccountDebitsApi* | [**get_accounts_debit**](docs/AccountDebitsApi.md#get_accounts_debit) | **GET** /accounts/debits/{Account Debit ID} | Fetching an account debit
110
110
  *TransferZero::AccountDebitsApi* | [**get_accounts_debits**](docs/AccountDebitsApi.md#get_accounts_debits) | **GET** /accounts/debits | Listing Accounts debits
111
111
  *TransferZero::AccountDebitsApi* | [**post_accounts_debits**](docs/AccountDebitsApi.md#post_accounts_debits) | **POST** /accounts/debits | Creating an account debit
112
- *TransferZero::AccountValidationApi* | [**post_account_validations**](docs/AccountValidationApi.md#post_account_validations) | **POST** /account_validations | Validates the existence of a bank account
112
+ *TransferZero::AccountValidationApi* | [**post_account_validations**](docs/AccountValidationApi.md#post_account_validations) | **POST** /account_validations | Validates the existence of a bank account or a mobile phone number
113
113
  *TransferZero::AccountsApi* | [**get_account**](docs/AccountsApi.md#get_account) | **GET** /accounts/{Currency} | Fetches account balance for specified currrency
114
114
  *TransferZero::AccountsApi* | [**get_accounts**](docs/AccountsApi.md#get_accounts) | **GET** /accounts | Fetches account balances for all currencies
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
@@ -136,6 +137,7 @@ Class | Method | HTTP request | Description
136
137
  *TransferZero::SendersApi* | [**patch_sender**](docs/SendersApi.md#patch_sender) | **PATCH** /senders/{Sender ID} | Updating a sender
137
138
  *TransferZero::SendersApi* | [**post_senders**](docs/SendersApi.md#post_senders) | **POST** /senders | Creating a sender
138
139
  *TransferZero::TransactionsApi* | [**calculate_transactions**](docs/TransactionsApi.md#calculate_transactions) | **POST** /transactions/calculate | Calculates transaction amounts for a transaction payload
140
+ *TransferZero::TransactionsApi* | [**create_and_fund_transaction**](docs/TransactionsApi.md#create_and_fund_transaction) | **POST** /transactions/create_and_fund | Creates a new transaction and funds it from account balance
139
141
  *TransferZero::TransactionsApi* | [**get_transaction**](docs/TransactionsApi.md#get_transaction) | **GET** /transactions/{Transaction ID} | Fetch a single transaction
140
142
  *TransferZero::TransactionsApi* | [**get_transactions**](docs/TransactionsApi.md#get_transactions) | **GET** /transactions | Get a list of transactions
141
143
  *TransferZero::TransactionsApi* | [**payin_transaction**](docs/TransactionsApi.md#payin_transaction) | **POST** /transactions/{Transaction ID}/payin | Creates a fake payin for transaction
@@ -164,11 +166,9 @@ Class | Method | HTTP request | Description
164
166
  - [TransferZero::ApiLogResponse](docs/ApiLogResponse.md)
165
167
  - [TransferZero::Currency](docs/Currency.md)
166
168
  - [TransferZero::CurrencyExchange](docs/CurrencyExchange.md)
167
- - [TransferZero::CurrencyExchangeAllOf](docs/CurrencyExchangeAllOf.md)
168
169
  - [TransferZero::CurrencyExchangeListResponse](docs/CurrencyExchangeListResponse.md)
169
170
  - [TransferZero::CurrencyListResponse](docs/CurrencyListResponse.md)
170
171
  - [TransferZero::CurrencyOpposite](docs/CurrencyOpposite.md)
171
- - [TransferZero::CurrencyOppositeAllOf](docs/CurrencyOppositeAllOf.md)
172
172
  - [TransferZero::Debit](docs/Debit.md)
173
173
  - [TransferZero::DebitListRequest](docs/DebitListRequest.md)
174
174
  - [TransferZero::DebitListResponse](docs/DebitListResponse.md)
@@ -180,7 +180,6 @@ Class | Method | HTTP request | Description
180
180
  - [TransferZero::DocumentRequest](docs/DocumentRequest.md)
181
181
  - [TransferZero::DocumentResponse](docs/DocumentResponse.md)
182
182
  - [TransferZero::DocumentWebhook](docs/DocumentWebhook.md)
183
- - [TransferZero::DocumentWebhookAllOf](docs/DocumentWebhookAllOf.md)
184
183
  - [TransferZero::ErrorStatus](docs/ErrorStatus.md)
185
184
  - [TransferZero::FieldDescription](docs/FieldDescription.md)
186
185
  - [TransferZero::FieldSelectValidation](docs/FieldSelectValidation.md)
@@ -204,6 +203,7 @@ Class | Method | HTTP request | Description
204
203
  - [TransferZero::PayoutMethodDetailsMADCash](docs/PayoutMethodDetailsMADCash.md)
205
204
  - [TransferZero::PayoutMethodDetailsMobile](docs/PayoutMethodDetailsMobile.md)
206
205
  - [TransferZero::PayoutMethodDetailsNGNBank](docs/PayoutMethodDetailsNGNBank.md)
206
+ - [TransferZero::PayoutMethodDetailsXOFBank](docs/PayoutMethodDetailsXOFBank.md)
207
207
  - [TransferZero::PayoutMethodDetailsXOFMobile](docs/PayoutMethodDetailsXOFMobile.md)
208
208
  - [TransferZero::PayoutMethodGenderEnum](docs/PayoutMethodGenderEnum.md)
209
209
  - [TransferZero::PayoutMethodIdentityCardTypeEnum](docs/PayoutMethodIdentityCardTypeEnum.md)
@@ -212,14 +212,13 @@ Class | Method | HTTP request | Description
212
212
  - [TransferZero::PayoutMethodRequest](docs/PayoutMethodRequest.md)
213
213
  - [TransferZero::PayoutMethodResponse](docs/PayoutMethodResponse.md)
214
214
  - [TransferZero::PayoutMethodWebhook](docs/PayoutMethodWebhook.md)
215
- - [TransferZero::PayoutMethodWebhookAllOf](docs/PayoutMethodWebhookAllOf.md)
215
+ - [TransferZero::PoliticallyExposedPerson](docs/PoliticallyExposedPerson.md)
216
216
  - [TransferZero::Recipient](docs/Recipient.md)
217
217
  - [TransferZero::RecipientListResponse](docs/RecipientListResponse.md)
218
218
  - [TransferZero::RecipientRequest](docs/RecipientRequest.md)
219
219
  - [TransferZero::RecipientResponse](docs/RecipientResponse.md)
220
220
  - [TransferZero::RecipientState](docs/RecipientState.md)
221
221
  - [TransferZero::RecipientWebhook](docs/RecipientWebhook.md)
222
- - [TransferZero::RecipientWebhookAllOf](docs/RecipientWebhookAllOf.md)
223
222
  - [TransferZero::Sender](docs/Sender.md)
224
223
  - [TransferZero::SenderListResponse](docs/SenderListResponse.md)
225
224
  - [TransferZero::SenderRequest](docs/SenderRequest.md)
@@ -228,7 +227,6 @@ Class | Method | HTTP request | Description
228
227
  - [TransferZero::SenderResponseMeta](docs/SenderResponseMeta.md)
229
228
  - [TransferZero::SenderState](docs/SenderState.md)
230
229
  - [TransferZero::SenderWebhook](docs/SenderWebhook.md)
231
- - [TransferZero::SenderWebhookAllOf](docs/SenderWebhookAllOf.md)
232
230
  - [TransferZero::Transaction](docs/Transaction.md)
233
231
  - [TransferZero::TransactionListResponse](docs/TransactionListResponse.md)
234
232
  - [TransferZero::TransactionRequest](docs/TransactionRequest.md)
@@ -238,7 +236,6 @@ Class | Method | HTTP request | Description
238
236
  - [TransferZero::TransactionState](docs/TransactionState.md)
239
237
  - [TransferZero::TransactionTraits](docs/TransactionTraits.md)
240
238
  - [TransferZero::TransactionWebhook](docs/TransactionWebhook.md)
241
- - [TransferZero::TransactionWebhookAllOf](docs/TransactionWebhookAllOf.md)
242
239
  - [TransferZero::ValidationErrorDescription](docs/ValidationErrorDescription.md)
243
240
  - [TransferZero::Webhook](docs/Webhook.md)
244
241
  - [TransferZero::WebhookDefinition](docs/WebhookDefinition.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
 
@@ -4,15 +4,15 @@ All URIs are relative to *https://api-sandbox.transferzero.com/v1*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**post_account_validations**](AccountValidationApi.md#post_account_validations) | **POST** /account_validations | Validates the existence of a bank account
7
+ [**post_account_validations**](AccountValidationApi.md#post_account_validations) | **POST** /account_validations | Validates the existence of a bank account or a mobile phone number
8
8
 
9
9
 
10
10
  # **post_account_validations**
11
11
  > AccountValidationResponse post_account_validations(account_validation_request)
12
12
 
13
- Validates the existence of a bank account
13
+ Validates the existence of a bank account or a mobile phone number
14
14
 
15
- Validates the existence of a bank account and returns the associated customer name
15
+ Validates the existence of a bank account or mobile phone number and returns the associated customer name
16
16
 
17
17
  ### Example
18
18
  ```ruby
@@ -23,7 +23,7 @@ api_instance = TransferZero::AccountValidationApi.new
23
23
 
24
24
 
25
25
  begin
26
- #Validates the existence of a bank account
26
+ #Validates the existence of a bank account or a mobile phone number
27
27
  result = api_instance.post_account_validations(account_validation_request)
28
28
  p result
29
29
  rescue TransferZero::ApiError => e
@@ -4,11 +4,12 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **bank_account** | **String** | Account Number to query |
8
- **bank_code** | **String** | Bank Code to query - same codes are used as for creating the transactions |
9
- **country** | **String** | Country of account in 2-character alpha ISO 3166-2 country format (only NG is currently supported) |
7
+ **bank_account** | **String** | Account Number to query | [optional]
8
+ **bank_code** | **String** | Bank Code to query - same codes are used as for creating the transactions | [optional]
9
+ **phone_number** | **String** | Phone number to query | [optional]
10
+ **country** | **String** | Country of account in 2-character alpha ISO 3166-2 country format |
10
11
  **currency** | **String** | The currency the bank account is in |
11
- **method** | **String** | The method of the payment. Currently only bank is supported |
12
+ **method** | **String** | The method of the payment. Currently bank and mobile are supported |
12
13
 
13
14
  ## Code Sample
14
15
 
@@ -17,6 +18,7 @@ require 'TransferZero'
17
18
 
18
19
  instance = TransferZero::AccountValidationRequest.new(bank_account: null,
19
20
  bank_code: null,
21
+ phone_number: +233000000000,
20
22
  country: null,
21
23
  currency: null,
22
24
  method: null)
@@ -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,6 +4,7 @@
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
9
  **upload_file_name** | **String** | Name of the upload |
9
10
  **metadata** | [**Object**](.md) | Metadata of document | [optional]
@@ -11,6 +12,7 @@ Name | Type | Description | Notes
11
12
  **upload_file_size** | **Integer** | | [optional]
12
13
  **category** | **String** | uncategorised | [optional]
13
14
  **side** | **String** | The side of the KYC ID. One of 'front' or 'back' | [optional]
15
+ **document_type** | **String** | This is a brief description of the document type | [optional]
14
16
  **issuing_country** | **String** | Issuing country of ID in 2-character alpha ISO 3166-2 country format | [optional]
15
17
  **id** | **String** | | [optional]
16
18
  **errors** | **Hash<String, Array<ValidationErrorDescription>>** | The fields that have some problems and don't pass validation | [optional]
@@ -20,13 +22,15 @@ Name | Type | Description | Notes
20
22
  ```ruby
21
23
  require 'TransferZero'
22
24
 
23
- instance = TransferZero::Document.new(upload: data:image/png;base64,iVBORw0KGg...lFTkSuQmCC,
25
+ instance = TransferZero::Document.new(sender_id: ebe9bc0b-f2f6-4ce8-802a-8b79912d041e,
26
+ upload: data:image/png;base64,iVBORw0KGg...lFTkSuQmCC,
24
27
  upload_file_name: example.png,
25
28
  metadata: {},
26
29
  upload_content_type: image/png,
27
30
  upload_file_size: 30255,
28
31
  category: null,
29
32
  side: null,
33
+ document_type: certificate_of_business_name_registration,
30
34
  issuing_country: NG,
31
35
  id: ebe9bc0b-f2f6-4ce8-802a-8b79912d041e,
32
36
  errors: {"phone_number":[{"error":"invalid"}],"documents":[{"error":"blank"}]})
@@ -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
  ```
@@ -4,11 +4,11 @@
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: - &#x60;NGN::Bank&#x60;: NGN card collection requests - &#x60;GHS::Mobile&#x60;: GHS mobile collections - &#x60;TZS::Mobile&#x60;: TZS mobile collections - &#x60;UGX::Mobile&#x60;: UGX mobile collections | [optional]
7
+ **type** | **String** | Describes how the payment should be requested from the user. Possible values: - &#x60;NGN::Bank&#x60;: NGN bank and card collection requests - &#x60;NGN::Mobile&#x60;: NGN mobile collections - &#x60;GHS::Mobile&#x60;: GHS mobile collections - &#x60;TZS::Mobile&#x60;: TZS mobile collections - &#x60;UGX::Mobile&#x60;: UGX mobile collections - &#x60;EUR::Bank&#x60;: EUR IBAN collections - &#x60;GBP::Bank&#x60;: GBP IBAN collections | [optional]
8
8
  **in_details** | [**PayinMethodDetails**](PayinMethodDetails.md) | | [optional]
9
- **out_details** | [**Object**](.md) | This will contain the description on where to pay the funds. Please see the [Collections from Senders](https://github.com/transferzero/api-documentation/blob/master/additional-features.md#collections-from-senders) in the API documentation on what to expect here. | [optional]
10
- **instructions** | [**Object**](.md) | This will contain the instructions on how to pay the funds. Please see the [Collections from Senders](https://github.com/transferzero/api-documentation/blob/master/additional-features.md#collections-from-senders) in the API documentation on what to expect here. | [optional]
11
- **provider** | **String** | Describes which provider to use for collection. Please see the [Collections from Senders](https://github.com/transferzero/api-documentation/blob/master/additional-features.md#collections-from-senders) in the API documentation on the valid values | [optional]
9
+ **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
+ **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]
12
12
 
13
13
  ## Code Sample
14
14
 
@@ -4,7 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **redirect_url** | **String** | This is where the user should be redirected back when the payment has been finished |
7
+ **payment_method** | **String** | The payment method which the user will use to make the payments. Options are &#x60;bank&#x60;, &#x60;card&#x60; 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]
8
9
  **phone_number** | **String** | The phone number where the funds should be collected from |
9
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]
10
11
 
@@ -13,9 +14,10 @@ Name | Type | Description | Notes
13
14
  ```ruby
14
15
  require 'TransferZero'
15
16
 
16
- instance = TransferZero::PayinMethodDetails.new(redirect_url: null,
17
+ instance = TransferZero::PayinMethodDetails.new(payment_method: null,
18
+ redirect_url: null,
17
19
  phone_number: +2569999999,
18
- send_instructions: true)
20
+ send_instructions: null)
19
21
  ```
20
22
 
21
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