transferzero-sdk 1.8.0 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +93 -0
  3. data/README.md +15 -5
  4. data/docs/AccountMeta.md +1 -1
  5. data/docs/AccountValidationRequest.md +2 -0
  6. data/docs/Currency.md +1 -3
  7. data/docs/CurrencyExchange.md +1 -3
  8. data/docs/CurrencyOpposite.md +4 -4
  9. data/docs/Document.md +7 -3
  10. data/docs/DocumentsApi.md +2 -74
  11. data/docs/FieldSelectValidation.md +1 -1
  12. data/docs/FieldValidation.md +1 -1
  13. data/docs/PayinMethodDetails.md +3 -1
  14. data/docs/PayinMethodDetailsBTC.md +17 -0
  15. data/docs/PayinMethodDetailsMobile.md +1 -1
  16. data/docs/PaymentMethod.md +2 -2
  17. data/docs/PaymentMethodOpposite.md +2 -2
  18. data/docs/PayoutMethod.md +1 -1
  19. data/docs/PayoutMethodCashProviderEnum.md +16 -0
  20. data/docs/PayoutMethodCountryEnum.md +16 -0
  21. data/docs/PayoutMethodDetails.md +21 -1
  22. data/docs/PayoutMethodDetailsBTC.md +23 -0
  23. data/docs/PayoutMethodDetailsGBPBank.md +29 -0
  24. data/docs/PayoutMethodDetailsIBAN.md +1 -1
  25. data/docs/PayoutMethodDetailsMobile.md +3 -1
  26. data/docs/PayoutMethodDetailsXOFCash.md +25 -0
  27. data/docs/PayoutMethodDetailsZARBank.md +35 -0
  28. data/docs/ProofOfPayment.md +23 -0
  29. data/docs/ProofOfPaymentListResponse.md +17 -0
  30. data/docs/Recipient.md +8 -4
  31. data/docs/RecipientStateReasonDetails.md +23 -0
  32. data/docs/RecipientsApi.md +63 -1
  33. data/docs/Sender.md +74 -34
  34. data/lib/transferzero-sdk.rb +10 -0
  35. data/lib/transferzero-sdk/api/documents_api.rb +0 -63
  36. data/lib/transferzero-sdk/api/recipients_api.rb +56 -2
  37. data/lib/transferzero-sdk/api_client.rb +5 -3
  38. data/lib/transferzero-sdk/models/account.rb +70 -69
  39. data/lib/transferzero-sdk/models/account_list_response.rb +67 -66
  40. data/lib/transferzero-sdk/models/account_meta.rb +61 -60
  41. data/lib/transferzero-sdk/models/account_response.rb +66 -65
  42. data/lib/transferzero-sdk/models/account_validation_error.rb +61 -60
  43. data/lib/transferzero-sdk/models/account_validation_request.rb +171 -161
  44. data/lib/transferzero-sdk/models/account_validation_response.rb +66 -65
  45. data/lib/transferzero-sdk/models/account_validation_result.rb +61 -60
  46. data/lib/transferzero-sdk/models/api_log.rb +136 -135
  47. data/lib/transferzero-sdk/models/api_log_list_response.rb +70 -69
  48. data/lib/transferzero-sdk/models/api_log_response.rb +60 -59
  49. data/lib/transferzero-sdk/models/currency.rb +133 -142
  50. data/lib/transferzero-sdk/models/currency_exchange.rb +149 -158
  51. data/lib/transferzero-sdk/models/currency_exchange_list_response.rb +62 -61
  52. data/lib/transferzero-sdk/models/currency_list_response.rb +62 -61
  53. data/lib/transferzero-sdk/models/currency_opposite.rb +166 -165
  54. data/lib/transferzero-sdk/models/debit.rb +151 -150
  55. data/lib/transferzero-sdk/models/debit_list_request.rb +61 -60
  56. data/lib/transferzero-sdk/models/debit_list_response.rb +67 -66
  57. data/lib/transferzero-sdk/models/debit_request.rb +60 -59
  58. data/lib/transferzero-sdk/models/debit_request_wrapper.rb +80 -79
  59. data/lib/transferzero-sdk/models/debit_response.rb +60 -59
  60. data/lib/transferzero-sdk/models/document.rb +197 -175
  61. data/lib/transferzero-sdk/models/document_list_response.rb +67 -66
  62. data/lib/transferzero-sdk/models/document_request.rb +60 -59
  63. data/lib/transferzero-sdk/models/document_response.rb +60 -59
  64. data/lib/transferzero-sdk/models/document_webhook.rb +96 -95
  65. data/lib/transferzero-sdk/models/error_status.rb +66 -65
  66. data/lib/transferzero-sdk/models/field_description.rb +95 -94
  67. data/lib/transferzero-sdk/models/field_select_validation.rb +70 -69
  68. data/lib/transferzero-sdk/models/field_validation.rb +78 -77
  69. data/lib/transferzero-sdk/models/pagination.rb +97 -96
  70. data/lib/transferzero-sdk/models/pagination_meta.rb +60 -59
  71. data/lib/transferzero-sdk/models/payin_method.rb +97 -96
  72. data/lib/transferzero-sdk/models/payin_method_details.rb +122 -110
  73. data/lib/transferzero-sdk/models/payin_method_details_btc.rb +204 -0
  74. data/lib/transferzero-sdk/models/payin_method_details_mobile.rb +75 -74
  75. data/lib/transferzero-sdk/models/payin_method_details_ngn_bank.rb +71 -70
  76. data/lib/transferzero-sdk/models/payin_method_request.rb +60 -59
  77. data/lib/transferzero-sdk/models/payment_method.rb +109 -108
  78. data/lib/transferzero-sdk/models/payment_method_list_response.rb +61 -60
  79. data/lib/transferzero-sdk/models/payment_method_opposite.rb +124 -123
  80. data/lib/transferzero-sdk/models/payout_method.rb +107 -106
  81. data/lib/transferzero-sdk/models/payout_method_bank_account_type_enum.rb +14 -19
  82. data/lib/transferzero-sdk/models/payout_method_cash_provider_enum.rb +31 -0
  83. data/lib/transferzero-sdk/models/payout_method_country_enum.rb +32 -0
  84. data/lib/transferzero-sdk/models/payout_method_details.rb +417 -297
  85. data/lib/transferzero-sdk/models/payout_method_details_balance.rb +61 -60
  86. data/lib/transferzero-sdk/models/payout_method_details_btc.rb +250 -0
  87. data/lib/transferzero-sdk/models/payout_method_details_gbp_bank.rb +267 -0
  88. data/lib/transferzero-sdk/models/payout_method_details_ghs_bank.rb +97 -96
  89. data/lib/transferzero-sdk/models/payout_method_details_iban.rb +100 -104
  90. data/lib/transferzero-sdk/models/payout_method_details_mad_cash.rb +162 -161
  91. data/lib/transferzero-sdk/models/payout_method_details_mobile.rb +93 -83
  92. data/lib/transferzero-sdk/models/payout_method_details_ngn_bank.rb +104 -103
  93. data/lib/transferzero-sdk/models/payout_method_details_xof_bank.rb +108 -107
  94. data/lib/transferzero-sdk/models/payout_method_details_xof_cash.rb +254 -0
  95. data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +97 -96
  96. data/lib/transferzero-sdk/models/payout_method_details_zar_bank.rb +324 -0
  97. data/lib/transferzero-sdk/models/payout_method_gender_enum.rb +14 -19
  98. data/lib/transferzero-sdk/models/payout_method_identity_card_type_enum.rb +15 -20
  99. data/lib/transferzero-sdk/models/payout_method_list_response.rb +67 -66
  100. data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +17 -19
  101. data/lib/transferzero-sdk/models/payout_method_request.rb +60 -59
  102. data/lib/transferzero-sdk/models/payout_method_response.rb +60 -59
  103. data/lib/transferzero-sdk/models/payout_method_webhook.rb +96 -95
  104. data/lib/transferzero-sdk/models/politically_exposed_person.rb +123 -123
  105. data/lib/transferzero-sdk/models/proof_of_payment.rb +233 -0
  106. data/lib/transferzero-sdk/models/proof_of_payment_list_response.rb +204 -0
  107. data/lib/transferzero-sdk/models/recipient.rb +246 -226
  108. data/lib/transferzero-sdk/models/recipient_list_response.rb +67 -66
  109. data/lib/transferzero-sdk/models/recipient_request.rb +60 -59
  110. data/lib/transferzero-sdk/models/recipient_response.rb +60 -59
  111. data/lib/transferzero-sdk/models/recipient_state.rb +22 -27
  112. data/lib/transferzero-sdk/models/recipient_state_reason_details.rb +235 -0
  113. data/lib/transferzero-sdk/models/recipient_webhook.rb +96 -95
  114. data/lib/transferzero-sdk/models/sender.rb +595 -358
  115. data/lib/transferzero-sdk/models/sender_list_response.rb +67 -66
  116. data/lib/transferzero-sdk/models/sender_request.rb +60 -59
  117. data/lib/transferzero-sdk/models/sender_response.rb +66 -65
  118. data/lib/transferzero-sdk/models/sender_response_existing.rb +60 -59
  119. data/lib/transferzero-sdk/models/sender_response_meta.rb +60 -59
  120. data/lib/transferzero-sdk/models/sender_state.rb +19 -24
  121. data/lib/transferzero-sdk/models/sender_webhook.rb +96 -95
  122. data/lib/transferzero-sdk/models/transaction.rb +192 -191
  123. data/lib/transferzero-sdk/models/transaction_list_response.rb +67 -66
  124. data/lib/transferzero-sdk/models/transaction_request.rb +60 -59
  125. data/lib/transferzero-sdk/models/transaction_response.rb +66 -65
  126. data/lib/transferzero-sdk/models/transaction_response_existing.rb +66 -65
  127. data/lib/transferzero-sdk/models/transaction_response_meta.rb +60 -59
  128. data/lib/transferzero-sdk/models/transaction_state.rb +23 -28
  129. data/lib/transferzero-sdk/models/transaction_traits.rb +71 -70
  130. data/lib/transferzero-sdk/models/transaction_webhook.rb +96 -95
  131. data/lib/transferzero-sdk/models/validation_error_description.rb +62 -61
  132. data/lib/transferzero-sdk/models/webhook.rb +92 -91
  133. data/lib/transferzero-sdk/models/webhook_definition.rb +107 -106
  134. data/lib/transferzero-sdk/models/webhook_definition_event_list_response.rb +61 -60
  135. data/lib/transferzero-sdk/models/webhook_definition_list_response.rb +67 -66
  136. data/lib/transferzero-sdk/models/webhook_definition_request.rb +60 -59
  137. data/lib/transferzero-sdk/models/webhook_definition_response.rb +60 -59
  138. data/lib/transferzero-sdk/models/webhook_log.rb +97 -96
  139. data/lib/transferzero-sdk/models/webhook_log_list_response.rb +70 -69
  140. data/lib/transferzero-sdk/models/webhook_log_metadata.rb +129 -128
  141. data/lib/transferzero-sdk/models/webhook_log_metadata_request.rb +80 -79
  142. data/lib/transferzero-sdk/models/webhook_log_metadata_response.rb +81 -80
  143. data/lib/transferzero-sdk/models/webhook_log_response.rb +60 -59
  144. data/lib/transferzero-sdk/version.rb +1 -1
  145. data/spec/models/payin_method_details_btc_spec.rb +41 -0
  146. data/spec/models/payout_method_cash_provider_enum_spec.rb +35 -0
  147. data/spec/models/payout_method_country_enum_spec.rb +35 -0
  148. data/spec/models/payout_method_details_btc_spec.rb +59 -0
  149. data/spec/models/payout_method_details_gbp_bank_spec.rb +77 -0
  150. data/spec/models/payout_method_details_xof_cash_spec.rb +71 -0
  151. data/spec/models/payout_method_details_zar_bank_spec.rb +89 -0
  152. data/spec/models/proof_of_payment_list_response_spec.rb +41 -0
  153. data/spec/models/proof_of_payment_spec.rb +59 -0
  154. data/spec/models/recipient_state_reason_details_spec.rb +59 -0
  155. data/transferzero-sdk-1.10.0.gem +0 -0
  156. data/transferzero-sdk-1.11.0.gem +0 -0
  157. metadata +46 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c274d3c1799100cc96b0948c818a02e02ade91172cd7b4525c75a9242852d687
4
- data.tar.gz: 7746ed2b6081cf788d8a3894ba3f0ccb4b4bfde981ecc9bfeecc8e11f229cc19
3
+ metadata.gz: 8243fc779fa0e32c85ae76a72f7ae931b1ada6c2e0521175390f751c4d490d57
4
+ data.tar.gz: 744f9b8ff5334986682842f1342e7f097c5c98704e6ff39980cc11a0c04e11b2
5
5
  SHA512:
6
- metadata.gz: 7506bb914ebae11b793ac2d3a3e57b08c40d8559bf8d51a49cce4b9a281766a29b92a85be9edf8b1fbad2ff5e62e9e9ae2dde355587d9b4d1a4e1d43017dc417
7
- data.tar.gz: 85e630486a5f4aa75d1b19de7ba6f57555ddc56947a6a6f178d11a157aee16138b3967df352b91a6d67b6d4fbc7cbd4d499a04221cd00d16145e47569dc629e2
6
+ metadata.gz: c2f49836c10fb0f61a6d3959632b8297ec62e28fec15be4e9c729425e8a4cab13b3a3c36654b5ba77c2b1872c745fc0bee4d4b31bb18a4998644cc81c1af1ee9
7
+ data.tar.gz: 15aeffc40d082ba65714136ec4f6c8da7b1856d1eb5c08d7fa1e58db230c67615402cff03126fefd7b5d948e758825d05c183a9cb3518601250b5cc7844f721f
data/Gemfile.lock ADDED
@@ -0,0 +1,93 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ transferzero-sdk (1.9.0)
5
+ activesupport (>= 4)
6
+ json (>= 1.4)
7
+ typhoeus (~> 1.0, >= 1.0.1)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ ZenTest (4.12.0)
13
+ activesupport (6.0.3.4)
14
+ concurrent-ruby (~> 1.0, >= 1.0.2)
15
+ i18n (>= 0.7, < 2)
16
+ minitest (~> 5.1)
17
+ tzinfo (~> 1.1)
18
+ zeitwerk (~> 2.2, >= 2.2.2)
19
+ addressable (2.7.0)
20
+ public_suffix (>= 2.0.2, < 5.0)
21
+ autotest (4.4.6)
22
+ ZenTest (>= 4.4.1)
23
+ autotest-fsevent (0.2.17)
24
+ sys-uname
25
+ autotest-growl (0.2.16)
26
+ autotest-rails-pure (4.1.2)
27
+ byebug (11.1.3)
28
+ coderay (1.1.3)
29
+ concurrent-ruby (1.1.7)
30
+ crack (0.4.4)
31
+ diff-lcs (1.4.4)
32
+ ethon (0.12.0)
33
+ ffi (>= 1.3.0)
34
+ ffi (1.13.1)
35
+ hashdiff (1.0.1)
36
+ i18n (1.8.5)
37
+ concurrent-ruby (~> 1.0)
38
+ json (2.3.1)
39
+ method_source (1.0.0)
40
+ minitest (5.14.2)
41
+ pry (0.13.1)
42
+ coderay (~> 1.1)
43
+ method_source (~> 1.0)
44
+ pry-byebug (3.9.0)
45
+ byebug (~> 11.0)
46
+ pry (~> 0.13.0)
47
+ public_suffix (4.0.6)
48
+ rake (12.0.0)
49
+ rspec (3.10.0)
50
+ rspec-core (~> 3.10.0)
51
+ rspec-expectations (~> 3.10.0)
52
+ rspec-mocks (~> 3.10.0)
53
+ rspec-core (3.10.0)
54
+ rspec-support (~> 3.10.0)
55
+ rspec-expectations (3.10.0)
56
+ diff-lcs (>= 1.2.0, < 2.0)
57
+ rspec-support (~> 3.10.0)
58
+ rspec-mocks (3.10.0)
59
+ diff-lcs (>= 1.2.0, < 2.0)
60
+ rspec-support (~> 3.10.0)
61
+ rspec-support (3.10.0)
62
+ sys-uname (1.2.2)
63
+ ffi (~> 1.1)
64
+ thread_safe (0.3.6)
65
+ typhoeus (1.4.0)
66
+ ethon (>= 0.9.0)
67
+ tzinfo (1.2.8)
68
+ thread_safe (~> 0.1)
69
+ vcr (3.0.3)
70
+ webmock (1.24.6)
71
+ addressable (>= 2.3.6)
72
+ crack (>= 0.3.2)
73
+ hashdiff
74
+ zeitwerk (2.4.2)
75
+
76
+ PLATFORMS
77
+ ruby
78
+
79
+ DEPENDENCIES
80
+ ZenTest (~> 4.11, >= 4.11.2)
81
+ autotest (~> 4.4, >= 4.4.6)
82
+ autotest-fsevent (~> 0.2, >= 0.2.12)
83
+ autotest-growl (~> 0.2, >= 0.2.16)
84
+ autotest-rails-pure (~> 4.1, >= 4.1.2)
85
+ pry-byebug
86
+ rake (~> 12.0.0)
87
+ rspec (~> 3.6, >= 3.6.0)
88
+ transferzero-sdk!
89
+ vcr (~> 3.0, >= 3.0.1)
90
+ webmock (~> 1.24, >= 1.24.3)
91
+
92
+ BUNDLED WITH
93
+ 2.1.4
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.8.0
10
+ - Package version: 1.12.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.8.0.gem
34
+ gem install ./transferzero-sdk-1.12.0.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.8.0.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.12.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.8.0'
42
+ gem 'transferzero-sdk', '~> 1.12.0'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -115,7 +115,6 @@ 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
119
118
  *TransferZero::DocumentsApi* | [**get_document**](docs/DocumentsApi.md#get_document) | **GET** /documents/{Document ID} | Fetching a document
120
119
  *TransferZero::DocumentsApi* | [**get_documents**](docs/DocumentsApi.md#get_documents) | **GET** /documents | Getting a list of documents
121
120
  *TransferZero::DocumentsApi* | [**post_documents**](docs/DocumentsApi.md#post_documents) | **POST** /documents | Creating a document
@@ -131,6 +130,7 @@ Class | Method | HTTP request | Description
131
130
  *TransferZero::RecipientsApi* | [**delete_recipient**](docs/RecipientsApi.md#delete_recipient) | **DELETE** /recipients/{Recipient ID} | Cancelling a recipient
132
131
  *TransferZero::RecipientsApi* | [**get_recipients**](docs/RecipientsApi.md#get_recipients) | **GET** /recipients | Getting a list of recipients with filtering
133
132
  *TransferZero::RecipientsApi* | [**patch_recipient**](docs/RecipientsApi.md#patch_recipient) | **PATCH** /recipients/{Recipient ID} | Updating a recipient
133
+ *TransferZero::RecipientsApi* | [**proof_of_payments**](docs/RecipientsApi.md#proof_of_payments) | **GET** /recipients/{Recipient ID}/proof_of_payments | Returns list of proof of payments
134
134
  *TransferZero::SendersApi* | [**delete_sender**](docs/SendersApi.md#delete_sender) | **DELETE** /senders/{Sender ID} | Deleting a sender
135
135
  *TransferZero::SendersApi* | [**get_sender**](docs/SendersApi.md#get_sender) | **GET** /senders/{Sender ID} | Fetching a sender
136
136
  *TransferZero::SendersApi* | [**get_senders**](docs/SendersApi.md#get_senders) | **GET** /senders | Listing senders
@@ -188,6 +188,7 @@ Class | Method | HTTP request | Description
188
188
  - [TransferZero::PaginationMeta](docs/PaginationMeta.md)
189
189
  - [TransferZero::PayinMethod](docs/PayinMethod.md)
190
190
  - [TransferZero::PayinMethodDetails](docs/PayinMethodDetails.md)
191
+ - [TransferZero::PayinMethodDetailsBTC](docs/PayinMethodDetailsBTC.md)
191
192
  - [TransferZero::PayinMethodDetailsMobile](docs/PayinMethodDetailsMobile.md)
192
193
  - [TransferZero::PayinMethodDetailsNGNBank](docs/PayinMethodDetailsNGNBank.md)
193
194
  - [TransferZero::PayinMethodRequest](docs/PayinMethodRequest.md)
@@ -196,15 +197,21 @@ Class | Method | HTTP request | Description
196
197
  - [TransferZero::PaymentMethodOpposite](docs/PaymentMethodOpposite.md)
197
198
  - [TransferZero::PayoutMethod](docs/PayoutMethod.md)
198
199
  - [TransferZero::PayoutMethodBankAccountTypeEnum](docs/PayoutMethodBankAccountTypeEnum.md)
200
+ - [TransferZero::PayoutMethodCashProviderEnum](docs/PayoutMethodCashProviderEnum.md)
201
+ - [TransferZero::PayoutMethodCountryEnum](docs/PayoutMethodCountryEnum.md)
199
202
  - [TransferZero::PayoutMethodDetails](docs/PayoutMethodDetails.md)
203
+ - [TransferZero::PayoutMethodDetailsBTC](docs/PayoutMethodDetailsBTC.md)
200
204
  - [TransferZero::PayoutMethodDetailsBalance](docs/PayoutMethodDetailsBalance.md)
205
+ - [TransferZero::PayoutMethodDetailsGBPBank](docs/PayoutMethodDetailsGBPBank.md)
201
206
  - [TransferZero::PayoutMethodDetailsGHSBank](docs/PayoutMethodDetailsGHSBank.md)
202
207
  - [TransferZero::PayoutMethodDetailsIBAN](docs/PayoutMethodDetailsIBAN.md)
203
208
  - [TransferZero::PayoutMethodDetailsMADCash](docs/PayoutMethodDetailsMADCash.md)
204
209
  - [TransferZero::PayoutMethodDetailsMobile](docs/PayoutMethodDetailsMobile.md)
205
210
  - [TransferZero::PayoutMethodDetailsNGNBank](docs/PayoutMethodDetailsNGNBank.md)
206
211
  - [TransferZero::PayoutMethodDetailsXOFBank](docs/PayoutMethodDetailsXOFBank.md)
212
+ - [TransferZero::PayoutMethodDetailsXOFCash](docs/PayoutMethodDetailsXOFCash.md)
207
213
  - [TransferZero::PayoutMethodDetailsXOFMobile](docs/PayoutMethodDetailsXOFMobile.md)
214
+ - [TransferZero::PayoutMethodDetailsZARBank](docs/PayoutMethodDetailsZARBank.md)
208
215
  - [TransferZero::PayoutMethodGenderEnum](docs/PayoutMethodGenderEnum.md)
209
216
  - [TransferZero::PayoutMethodIdentityCardTypeEnum](docs/PayoutMethodIdentityCardTypeEnum.md)
210
217
  - [TransferZero::PayoutMethodListResponse](docs/PayoutMethodListResponse.md)
@@ -213,11 +220,14 @@ Class | Method | HTTP request | Description
213
220
  - [TransferZero::PayoutMethodResponse](docs/PayoutMethodResponse.md)
214
221
  - [TransferZero::PayoutMethodWebhook](docs/PayoutMethodWebhook.md)
215
222
  - [TransferZero::PoliticallyExposedPerson](docs/PoliticallyExposedPerson.md)
223
+ - [TransferZero::ProofOfPayment](docs/ProofOfPayment.md)
224
+ - [TransferZero::ProofOfPaymentListResponse](docs/ProofOfPaymentListResponse.md)
216
225
  - [TransferZero::Recipient](docs/Recipient.md)
217
226
  - [TransferZero::RecipientListResponse](docs/RecipientListResponse.md)
218
227
  - [TransferZero::RecipientRequest](docs/RecipientRequest.md)
219
228
  - [TransferZero::RecipientResponse](docs/RecipientResponse.md)
220
229
  - [TransferZero::RecipientState](docs/RecipientState.md)
230
+ - [TransferZero::RecipientStateReasonDetails](docs/RecipientStateReasonDetails.md)
221
231
  - [TransferZero::RecipientWebhook](docs/RecipientWebhook.md)
222
232
  - [TransferZero::Sender](docs/Sender.md)
223
233
  - [TransferZero::SenderListResponse](docs/SenderListResponse.md)
data/docs/AccountMeta.md CHANGED
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ```ruby
12
12
  require 'TransferZero'
13
13
 
14
- instance = TransferZero::AccountMeta.new(negative_balance: null)
14
+ instance = TransferZero::AccountMeta.new(negative_balance: false)
15
15
  ```
16
16
 
17
17
 
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **bank_account** | **String** | Account Number to query | [optional]
8
8
  **bank_code** | **String** | Bank Code to query - same codes are used as for creating the transactions | [optional]
9
9
  **phone_number** | **String** | Phone number to query | [optional]
10
+ **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | | [optional]
10
11
  **country** | **String** | Country of account in 2-character alpha ISO 3166-2 country format |
11
12
  **currency** | **String** | The currency the bank account is in |
12
13
  **method** | **String** | The method of the payment. Currently bank and mobile are supported |
@@ -19,6 +20,7 @@ require 'TransferZero'
19
20
  instance = TransferZero::AccountValidationRequest.new(bank_account: null,
20
21
  bank_code: null,
21
22
  phone_number: +233000000000,
23
+ mobile_provider: null,
22
24
  country: null,
23
25
  currency: null,
24
26
  method: null)
data/docs/Currency.md CHANGED
@@ -12,7 +12,6 @@ Name | Type | Description | Notes
12
12
  **primary** | **Boolean** | Is this a primary currency? | [optional]
13
13
  **min** | **String** | The minimum amount allowed in a transaction | [optional]
14
14
  **max** | **String** | The maximum amount allowed in a transaction | [optional]
15
- **margin** | **String** | The margin set for transactions in this currency | [optional]
16
15
  **usd_equivalent** | **String** | The equivalent of the currency to 1 USD | [optional]
17
16
 
18
17
  ## Code Sample
@@ -25,10 +24,9 @@ instance = TransferZero::Currency.new(code: NGN,
25
24
  symbol: ₦,
26
25
  decimals: 2,
27
26
  subunit_to_unit: 100,
28
- primary: null,
27
+ primary: true,
29
28
  min: 100,
30
29
  max: 50000000,
31
- margin: null,
32
30
  usd_equivalent: null)
33
31
  ```
34
32
 
@@ -12,7 +12,6 @@ Name | Type | Description | Notes
12
12
  **primary** | **Boolean** | Is this a primary currency? | [optional]
13
13
  **min** | **String** | The minimum amount allowed in a transaction | [optional]
14
14
  **max** | **String** | The maximum amount allowed in a transaction | [optional]
15
- **margin** | **String** | The margin set for transactions in this currency | [optional]
16
15
  **usd_equivalent** | **String** | The equivalent of the currency to 1 USD | [optional]
17
16
  **opposites** | [**Array&lt;CurrencyOpposite&gt;**](CurrencyOpposite.md) | Lists the currencies where you can exchange from this one | [optional]
18
17
 
@@ -26,10 +25,9 @@ instance = TransferZero::CurrencyExchange.new(code: NGN,
26
25
  symbol: ₦,
27
26
  decimals: 2,
28
27
  subunit_to_unit: 100,
29
- primary: null,
28
+ primary: true,
30
29
  min: 100,
31
30
  max: 50000000,
32
- margin: null,
33
31
  usd_equivalent: null,
34
32
  opposites: null)
35
33
  ```
@@ -12,10 +12,10 @@ Name | Type | Description | Notes
12
12
  **primary** | **Boolean** | Is this a primary currency? | [optional]
13
13
  **min** | **String** | The minimum amount allowed in a transaction | [optional]
14
14
  **max** | **String** | The maximum amount allowed in a transaction | [optional]
15
- **margin** | **String** | The margin set for transactions in this currency | [optional]
16
15
  **usd_equivalent** | **String** | The equivalent of the currency to 1 USD | [optional]
17
16
  **rate** | **Float** | The rate of this particular currency with the base one | [optional]
18
17
  **mtm_rate** | **Float** | Mark to market rate of this particular currency against the base one with the margin factored in | [optional]
18
+ **margin** | **String** | The margin set for transactions of this particular currency with the base one | [optional]
19
19
 
20
20
  ## Code Sample
21
21
 
@@ -27,13 +27,13 @@ instance = TransferZero::CurrencyOpposite.new(code: NGN,
27
27
  symbol: ₦,
28
28
  decimals: 2,
29
29
  subunit_to_unit: 100,
30
- primary: null,
30
+ primary: true,
31
31
  min: 100,
32
32
  max: 50000000,
33
- margin: null,
34
33
  usd_equivalent: null,
35
34
  rate: null,
36
- mtm_rate: null)
35
+ mtm_rate: null,
36
+ margin: null)
37
37
  ```
38
38
 
39
39
 
data/docs/Document.md CHANGED
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **sender_id** | **String** | | [optional]
8
7
  **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]
@@ -15,6 +15,8 @@ Name | Type | Description | Notes
15
15
  **document_type** | **String** | This is a brief description of the document type | [optional]
16
16
  **issuing_country** | **String** | Issuing country of ID in 2-character alpha ISO 3166-2 country format | [optional]
17
17
  **id** | **String** | | [optional]
18
+ **document_id** | **String** | Document ID issued by government | [optional]
19
+ **expiry_date** | **Date** | Document expiry date issued by government | [optional]
18
20
  **errors** | **Hash&lt;String, Array&lt;ValidationErrorDescription&gt;&gt;** | The fields that have some problems and don&#39;t pass validation | [optional]
19
21
 
20
22
  ## Code Sample
@@ -22,8 +24,8 @@ Name | Type | Description | Notes
22
24
  ```ruby
23
25
  require 'TransferZero'
24
26
 
25
- instance = TransferZero::Document.new(sender_id: ebe9bc0b-f2f6-4ce8-802a-8b79912d041e,
26
- upload: data:image/png;base64,iVBORw0KGg...lFTkSuQmCC,
27
+ instance = TransferZero::Document.new(upload: data:image/png;base64,iVBORw0KGg...lFTkSuQmCC,
28
+ url: https://bitpesa-documents.amazonaws.com/document.pdf,
27
29
  upload_file_name: example.png,
28
30
  metadata: {},
29
31
  upload_content_type: image/png,
@@ -33,6 +35,8 @@ instance = TransferZero::Document.new(sender_id: ebe9bc0b-f2f6-4ce8-802a-8b79912
33
35
  document_type: certificate_of_business_name_registration,
34
36
  issuing_country: NG,
35
37
  id: ebe9bc0b-f2f6-4ce8-802a-8b79912d041e,
38
+ document_id: XYZ12345,
39
+ expiry_date: null,
36
40
  errors: {&quot;phone_number&quot;:[{&quot;error&quot;:&quot;invalid&quot;}],&quot;documents&quot;:[{&quot;error&quot;:&quot;blank&quot;}]})
37
41
  ```
38
42
 
data/docs/DocumentsApi.md CHANGED
@@ -4,79 +4,13 @@ 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
8
7
  [**get_document**](DocumentsApi.md#get_document) | **GET** /documents/{Document ID} | Fetching a document
9
8
  [**get_documents**](DocumentsApi.md#get_documents) | **GET** /documents | Getting a list of documents
10
9
  [**post_documents**](DocumentsApi.md#post_documents) | **POST** /documents | Creating a document
11
10
 
12
11
 
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: &#x60;/v1/document/bf9ff782-e182-45ac-abea-5bce83ad6670&#x60; |
51
- **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]
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
-
78
12
  # **get_document**
79
- > DocumentResponse get_document(document_idopts)
13
+ > DocumentResponse get_document(document_id)
80
14
 
81
15
  Fetching a document
82
16
 
@@ -89,13 +23,10 @@ require 'transferzero-sdk'
89
23
 
90
24
  api_instance = TransferZero::DocumentsApi.new
91
25
 
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
- }
95
26
 
96
27
  begin
97
28
  #Fetching a document
98
- result = api_instance.get_document(document_idopts)
29
+ result = api_instance.get_document(document_id)
99
30
  p result
100
31
  rescue TransferZero::ApiError => e
101
32
  if e.validation_error
@@ -113,7 +44,6 @@ end
113
44
  Name | Type | Description | Notes
114
45
  ------------- | ------------- | ------------- | -------------
115
46
  **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]
117
47
 
118
48
  ### Return type
119
49
 
@@ -157,7 +87,6 @@ api_instance = TransferZero::DocumentsApi.new
157
87
  opts = {
158
88
  page: 1 # Integer | The page number to request (defaults to 1)
159
89
  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`
161
90
  }
162
91
 
163
92
  begin
@@ -181,7 +110,6 @@ Name | Type | Description | Notes
181
110
  ------------- | ------------- | ------------- | -------------
182
111
  **page** | **Integer**| The page number to request (defaults to 1) | [optional]
183
112
  **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]
185
113
 
186
114
  ### Return type
187
115