transferzero-sdk 1.9.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +94 -0
  3. data/README.md +12 -4
  4. data/docs/AccountValidationRequest.md +2 -0
  5. data/docs/Document.md +4 -0
  6. data/docs/PayoutMethod.md +1 -1
  7. data/docs/PayoutMethodCashProviderEnum.md +16 -0
  8. data/docs/PayoutMethodCountryEnum.md +16 -0
  9. data/docs/PayoutMethodDetails.md +4 -0
  10. data/docs/PayoutMethodDetailsGHSCash.md +21 -0
  11. data/docs/PayoutMethodDetailsXOFCash.md +25 -0
  12. data/docs/PayoutMethodDetailsXOFMobile.md +3 -1
  13. data/docs/ProofOfPayment.md +23 -0
  14. data/docs/ProofOfPaymentListResponse.md +17 -0
  15. data/docs/Recipient.md +4 -0
  16. data/docs/RecipientStateReasonDetails.md +23 -0
  17. data/docs/RecipientsApi.md +62 -0
  18. data/docs/Sender.md +3 -1
  19. data/lib/transferzero-sdk.rb +7 -0
  20. data/lib/transferzero-sdk/api/recipients_api.rb +54 -0
  21. data/lib/transferzero-sdk/api_client.rb +1 -1
  22. data/lib/transferzero-sdk/models/account_validation_request.rb +10 -1
  23. data/lib/transferzero-sdk/models/document.rb +21 -1
  24. data/lib/transferzero-sdk/models/payout_method.rb +1 -1
  25. data/lib/transferzero-sdk/models/payout_method_cash_provider_enum.rb +31 -0
  26. data/lib/transferzero-sdk/models/payout_method_country_enum.rb +43 -0
  27. data/lib/transferzero-sdk/models/payout_method_details.rb +21 -1
  28. data/lib/transferzero-sdk/models/payout_method_details_ghs_cash.rb +236 -0
  29. data/lib/transferzero-sdk/models/payout_method_details_mad_cash.rb +1 -1
  30. data/lib/transferzero-sdk/models/payout_method_details_xof_bank.rb +1 -1
  31. data/lib/transferzero-sdk/models/payout_method_details_xof_cash.rb +254 -0
  32. data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +14 -5
  33. data/lib/transferzero-sdk/models/payout_method_identity_card_type_enum.rb +1 -1
  34. data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +1 -0
  35. data/lib/transferzero-sdk/models/proof_of_payment.rb +233 -0
  36. data/lib/transferzero-sdk/models/proof_of_payment_list_response.rb +204 -0
  37. data/lib/transferzero-sdk/models/recipient.rb +20 -1
  38. data/lib/transferzero-sdk/models/recipient_state_reason_details.rb +235 -0
  39. data/lib/transferzero-sdk/models/sender.rb +12 -2
  40. data/lib/transferzero-sdk/version.rb +1 -1
  41. data/spec/models/payout_method_cash_provider_enum_spec.rb +35 -0
  42. data/spec/models/payout_method_country_enum_spec.rb +35 -0
  43. data/spec/models/payout_method_details_ghs_cash_spec.rb +53 -0
  44. data/spec/models/payout_method_details_xof_cash_spec.rb +71 -0
  45. data/spec/models/proof_of_payment_list_response_spec.rb +41 -0
  46. data/spec/models/proof_of_payment_spec.rb +59 -0
  47. data/spec/models/recipient_state_reason_details_spec.rb +59 -0
  48. metadata +32 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65abf7df38463761e657c72743e2d3906ca55b9933ecb0fec06e0213bc965efe
4
- data.tar.gz: 71e6bfa8a8ec907e24f2abec488fea17a54512b7d74bd4aac6e10af62d5f985c
3
+ metadata.gz: '098d647f781cc5eb0d7a5c3ff7be86ed615ab3aea94a154cf2897b3fefebd7c6'
4
+ data.tar.gz: 56fdced0faebdbdd9e9ef70765e944272d52db9beb60fc780b1181c8bdf0e4c3
5
5
  SHA512:
6
- metadata.gz: 1d14e138f2cfb1ebebdc156ca10c845f8586ec1784b5b80beef15fe8a7e0b9921dc0b46fcf3072e201e01bd6a1f82d9bfc1a329c82847cd86f3c2c90002d5c94
7
- data.tar.gz: a06e60260498ef33c734de0023286ed7363a2c0af064526aef9f92fdfaf83b2bd0c11ed3186e47c572f83675e0d1a8bc5b645e1b4601f22dfe565a890b034a6d
6
+ metadata.gz: 81fab8828444155af24970fb9cf6a57666c241814685689f145a6d77c31d2eb61cc45f15287465f889ef60cdd5a69213057e0dd0d62d2ac0fb6508136dfc1a86
7
+ data.tar.gz: 14674bc6e5620af322b800f8263b7a1804f73f03004ba9775f331010a94df9aac58d92577b77dccf9e779adf02445e3a5abc02ef88634b2ba8d41df5a83a3aef
data/Gemfile.lock ADDED
@@ -0,0 +1,94 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ transferzero-sdk (1.13.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.1.3)
14
+ concurrent-ruby (~> 1.0, >= 1.0.2)
15
+ i18n (>= 1.6, < 2)
16
+ minitest (>= 5.1)
17
+ tzinfo (~> 2.0)
18
+ zeitwerk (~> 2.3)
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.8)
30
+ crack (0.4.5)
31
+ rexml
32
+ diff-lcs (1.4.4)
33
+ ethon (0.12.0)
34
+ ffi (>= 1.3.0)
35
+ ffi (1.14.2)
36
+ hashdiff (1.0.1)
37
+ i18n (1.8.9)
38
+ concurrent-ruby (~> 1.0)
39
+ json (2.5.1)
40
+ method_source (1.0.0)
41
+ minitest (5.14.4)
42
+ pry (0.13.1)
43
+ coderay (~> 1.1)
44
+ method_source (~> 1.0)
45
+ pry-byebug (3.9.0)
46
+ byebug (~> 11.0)
47
+ pry (~> 0.13.0)
48
+ public_suffix (4.0.6)
49
+ rake (12.0.0)
50
+ rexml (3.2.4)
51
+ rspec (3.10.0)
52
+ rspec-core (~> 3.10.0)
53
+ rspec-expectations (~> 3.10.0)
54
+ rspec-mocks (~> 3.10.0)
55
+ rspec-core (3.10.1)
56
+ rspec-support (~> 3.10.0)
57
+ rspec-expectations (3.10.1)
58
+ diff-lcs (>= 1.2.0, < 2.0)
59
+ rspec-support (~> 3.10.0)
60
+ rspec-mocks (3.10.2)
61
+ diff-lcs (>= 1.2.0, < 2.0)
62
+ rspec-support (~> 3.10.0)
63
+ rspec-support (3.10.2)
64
+ sys-uname (1.2.2)
65
+ ffi (~> 1.1)
66
+ typhoeus (1.4.0)
67
+ ethon (>= 0.9.0)
68
+ tzinfo (2.0.4)
69
+ concurrent-ruby (~> 1.0)
70
+ vcr (3.0.3)
71
+ webmock (1.24.6)
72
+ addressable (>= 2.3.6)
73
+ crack (>= 0.3.2)
74
+ hashdiff
75
+ zeitwerk (2.4.2)
76
+
77
+ PLATFORMS
78
+ x86_64-darwin-18
79
+
80
+ DEPENDENCIES
81
+ ZenTest (~> 4.11, >= 4.11.2)
82
+ autotest (~> 4.4, >= 4.4.6)
83
+ autotest-fsevent (~> 0.2, >= 0.2.12)
84
+ autotest-growl (~> 0.2, >= 0.2.16)
85
+ autotest-rails-pure (~> 4.1, >= 4.1.2)
86
+ pry-byebug
87
+ rake (~> 12.0.0)
88
+ rspec (~> 3.6, >= 3.6.0)
89
+ transferzero-sdk!
90
+ vcr (~> 3.0, >= 3.0.1)
91
+ webmock (~> 1.24, >= 1.24.3)
92
+
93
+ BUNDLED WITH
94
+ 2.2.13
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.9.0
10
+ - Package version: 1.13.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.9.0.gem
34
+ gem install ./transferzero-sdk-1.13.0.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.9.0.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.13.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.9.0'
42
+ gem 'transferzero-sdk', '~> 1.13.0'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -130,6 +130,7 @@ Class | Method | HTTP request | Description
130
130
  *TransferZero::RecipientsApi* | [**delete_recipient**](docs/RecipientsApi.md#delete_recipient) | **DELETE** /recipients/{Recipient ID} | Cancelling a recipient
131
131
  *TransferZero::RecipientsApi* | [**get_recipients**](docs/RecipientsApi.md#get_recipients) | **GET** /recipients | Getting a list of recipients with filtering
132
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
133
134
  *TransferZero::SendersApi* | [**delete_sender**](docs/SendersApi.md#delete_sender) | **DELETE** /senders/{Sender ID} | Deleting a sender
134
135
  *TransferZero::SendersApi* | [**get_sender**](docs/SendersApi.md#get_sender) | **GET** /senders/{Sender ID} | Fetching a sender
135
136
  *TransferZero::SendersApi* | [**get_senders**](docs/SendersApi.md#get_senders) | **GET** /senders | Listing senders
@@ -196,16 +197,20 @@ 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)
200
203
  - [TransferZero::PayoutMethodDetailsBTC](docs/PayoutMethodDetailsBTC.md)
201
204
  - [TransferZero::PayoutMethodDetailsBalance](docs/PayoutMethodDetailsBalance.md)
202
205
  - [TransferZero::PayoutMethodDetailsGBPBank](docs/PayoutMethodDetailsGBPBank.md)
203
206
  - [TransferZero::PayoutMethodDetailsGHSBank](docs/PayoutMethodDetailsGHSBank.md)
207
+ - [TransferZero::PayoutMethodDetailsGHSCash](docs/PayoutMethodDetailsGHSCash.md)
204
208
  - [TransferZero::PayoutMethodDetailsIBAN](docs/PayoutMethodDetailsIBAN.md)
205
209
  - [TransferZero::PayoutMethodDetailsMADCash](docs/PayoutMethodDetailsMADCash.md)
206
210
  - [TransferZero::PayoutMethodDetailsMobile](docs/PayoutMethodDetailsMobile.md)
207
211
  - [TransferZero::PayoutMethodDetailsNGNBank](docs/PayoutMethodDetailsNGNBank.md)
208
212
  - [TransferZero::PayoutMethodDetailsXOFBank](docs/PayoutMethodDetailsXOFBank.md)
213
+ - [TransferZero::PayoutMethodDetailsXOFCash](docs/PayoutMethodDetailsXOFCash.md)
209
214
  - [TransferZero::PayoutMethodDetailsXOFMobile](docs/PayoutMethodDetailsXOFMobile.md)
210
215
  - [TransferZero::PayoutMethodDetailsZARBank](docs/PayoutMethodDetailsZARBank.md)
211
216
  - [TransferZero::PayoutMethodGenderEnum](docs/PayoutMethodGenderEnum.md)
@@ -216,11 +221,14 @@ Class | Method | HTTP request | Description
216
221
  - [TransferZero::PayoutMethodResponse](docs/PayoutMethodResponse.md)
217
222
  - [TransferZero::PayoutMethodWebhook](docs/PayoutMethodWebhook.md)
218
223
  - [TransferZero::PoliticallyExposedPerson](docs/PoliticallyExposedPerson.md)
224
+ - [TransferZero::ProofOfPayment](docs/ProofOfPayment.md)
225
+ - [TransferZero::ProofOfPaymentListResponse](docs/ProofOfPaymentListResponse.md)
219
226
  - [TransferZero::Recipient](docs/Recipient.md)
220
227
  - [TransferZero::RecipientListResponse](docs/RecipientListResponse.md)
221
228
  - [TransferZero::RecipientRequest](docs/RecipientRequest.md)
222
229
  - [TransferZero::RecipientResponse](docs/RecipientResponse.md)
223
230
  - [TransferZero::RecipientState](docs/RecipientState.md)
231
+ - [TransferZero::RecipientStateReasonDetails](docs/RecipientStateReasonDetails.md)
224
232
  - [TransferZero::RecipientWebhook](docs/RecipientWebhook.md)
225
233
  - [TransferZero::Sender](docs/Sender.md)
226
234
  - [TransferZero::SenderListResponse](docs/SenderListResponse.md)
@@ -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/Document.md CHANGED
@@ -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
@@ -33,6 +35,8 @@ instance = TransferZero::Document.new(upload: data:image/png;base64,iVBORw0KGg..
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/PayoutMethod.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **type** | **String** | Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - &#x60;NGN::Bank&#x60; - for Nigerian bank account payments. - &#x60;NGN::Mobile&#x60; - for Nigerian mobile money payments. - &#x60;GHS::Bank&#x60; - for Ghanaian bank account payments. - &#x60;GHS::Mobile&#x60; - for Ghanaian mobile money payments. - &#x60;UGX::Mobile&#x60; - for Ugandan mobile money payments. - &#x60;TZS::Mobile&#x60; - for Tanzanian mobile money payments. - &#x60;XOF::Mobile&#x60; - for Senegalese mobile money payments. - &#x60;XOF::Bank&#x60; - for Senegalese bank account payments. - &#x60;XOF::Cash&#x60; - for Senegalese cash remittance payments. - &#x60;MAD::Cash&#x60; - for Moroccan cash remittance payments. - &#x60;EUR::Bank&#x60; - for IBAN bank transfers in EUR. - &#x60;GBP::Bank&#x60; - for IBAN bank and FP accounts transfers in GBP. - &#x60;ZAR::Bank&#x60; - for South Africa bank account payments. You can also send funds to the internal balance using &#x60;CCY::Balance&#x60;, where &#x60;CCY&#x60; is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance | [optional]
7
+ **type** | **String** | Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - &#x60;NGN::Bank&#x60; - for Nigerian bank account payments. - &#x60;NGN::Mobile&#x60; - for Nigerian mobile money payments. - &#x60;GHS::Bank&#x60; - for Ghanaian bank account payments. - &#x60;GHS::Mobile&#x60; - for Ghanaian mobile money payments. - &#x60;GHS::Cash&#x60; - for Ghanaian cash remittance payments. - &#x60;UGX::Mobile&#x60; - for Ugandan mobile money payments. - &#x60;TZS::Mobile&#x60; - for Tanzanian mobile money payments. - &#x60;XOF::Mobile&#x60; - for mobile money payments to West-Africa. - &#x60;XOF::Bank&#x60; - for Senegalese bank account payments. - &#x60;XOF::Cash&#x60; - for Senegalese cash remittance payments. - &#x60;MAD::Cash&#x60; - for Moroccan cash remittance payments. - &#x60;EUR::Bank&#x60; - for IBAN bank transfers in EUR. - &#x60;GBP::Bank&#x60; - for IBAN bank and FP accounts transfers in GBP. - &#x60;ZAR::Bank&#x60; - for South Africa bank account payments. You can also send funds to the internal balance using &#x60;CCY::Balance&#x60;, where &#x60;CCY&#x60; is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance | [optional]
8
8
  **details** | [**PayoutMethodDetails**](PayoutMethodDetails.md) | | [optional]
9
9
  **metadata** | [**Object**](.md) | Metadata of payout method. You can store any kind of information in this field. | [optional]
10
10
  **id** | **String** | | [optional]
@@ -0,0 +1,16 @@
1
+ # TransferZero::PayoutMethodCashProviderEnum
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'TransferZero'
12
+
13
+ instance = TransferZero::PayoutMethodCashProviderEnum.new()
14
+ ```
15
+
16
+
@@ -0,0 +1,16 @@
1
+ # TransferZero::PayoutMethodCountryEnum
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'TransferZero'
12
+
13
+ instance = TransferZero::PayoutMethodCountryEnum.new()
14
+ ```
15
+
16
+
@@ -11,9 +11,11 @@ Name | Type | Description | Notes
11
11
  **bank_account_type** | [**PayoutMethodBankAccountTypeEnum**](PayoutMethodBankAccountTypeEnum.md) | | [optional]
12
12
  **phone_number** | **String** | |
13
13
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
14
+ **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | | [optional]
14
15
  **iban** | **String** | |
15
16
  **bank_name** | **String** | |
16
17
  **bank_country** | **String** | |
18
+ **cash_provider** | [**PayoutMethodCashProviderEnum**](PayoutMethodCashProviderEnum.md) | | [optional]
17
19
  **sort_code** | **String** | | [optional]
18
20
  **bic** | **String** | | [optional]
19
21
  **sender_identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
@@ -45,9 +47,11 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
45
47
  bank_account_type: null,
46
48
  phone_number: null,
47
49
  mobile_provider: null,
50
+ country: null,
48
51
  iban: null,
49
52
  bank_name: null,
50
53
  bank_country: null,
54
+ cash_provider: null,
51
55
  sort_code: null,
52
56
  bic: null,
53
57
  sender_identity_card_type: null,
@@ -0,0 +1,21 @@
1
+ # TransferZero::PayoutMethodDetailsGHSCash
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **phone_number** | **String** | |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'TransferZero'
15
+
16
+ instance = TransferZero::PayoutMethodDetailsGHSCash.new(first_name: null,
17
+ last_name: null,
18
+ phone_number: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,25 @@
1
+ # TransferZero::PayoutMethodDetailsXOFCash
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **phone_number** | **String** | |
10
+ **cash_provider** | [**PayoutMethodCashProviderEnum**](PayoutMethodCashProviderEnum.md) | | [optional]
11
+ **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'TransferZero'
17
+
18
+ instance = TransferZero::PayoutMethodDetailsXOFCash.new(first_name: null,
19
+ last_name: null,
20
+ phone_number: null,
21
+ cash_provider: null,
22
+ country: null)
23
+ ```
24
+
25
+
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **last_name** | **String** | |
9
9
  **phone_number** | **String** | |
10
10
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
11
+ **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | | [optional]
11
12
 
12
13
  ## Code Sample
13
14
 
@@ -17,7 +18,8 @@ require 'TransferZero'
17
18
  instance = TransferZero::PayoutMethodDetailsXOFMobile.new(first_name: null,
18
19
  last_name: null,
19
20
  phone_number: null,
20
- mobile_provider: null)
21
+ mobile_provider: null,
22
+ country: null)
21
23
  ```
22
24
 
23
25
 
@@ -0,0 +1,23 @@
1
+ # TransferZero::ProofOfPayment
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | UUID of the uploaded document | [optional]
8
+ **file_name** | **String** | Name of the uploaded file | [optional]
9
+ **thumbnail** | **String** | URL to thumbnail image of the uploaded file | [optional]
10
+ **url** | **String** | URL to uploaded file | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'TransferZero'
16
+
17
+ instance = TransferZero::ProofOfPayment.new(id: null,
18
+ file_name: my_file.jpg,
19
+ thumbnail: https://bitpesa-development.s3.eu-west-1.amazonaws.com/my_file_thumb.jpg,
20
+ url: https://bitpesa-development.s3.eu-west-1.amazonaws.com/my_file.jpg)
21
+ ```
22
+
23
+
@@ -0,0 +1,17 @@
1
+ # TransferZero::ProofOfPaymentListResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **object** | [**Array&lt;ProofOfPayment&gt;**](ProofOfPayment.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'TransferZero'
13
+
14
+ instance = TransferZero::ProofOfPaymentListResponse.new(object: null)
15
+ ```
16
+
17
+
data/docs/Recipient.md CHANGED
@@ -14,8 +14,10 @@ Name | Type | Description | Notes
14
14
  **input_usd_amount** | **Float** | Shows how much this payment is worth in USD | [optional]
15
15
  **may_cancel** | **Boolean** | If true it shows that the payment can be cancelled immediately using the DELETE /v1/recipients/{id} endpoint. If false you can still try to cancel it, however it will only gets cancelled once we have confirmation from our partner that the payment has failed. | [optional]
16
16
  **state_reason** | **String** | In case the payment is unsuccessful it holds the error message associated with the last unsuccessful payout. | [optional]
17
+ **state_reason_details** | [**RecipientStateReasonDetails**](RecipientStateReasonDetails.md) | | [optional]
17
18
  **state** | [**RecipientState**](RecipientState.md) | | [optional]
18
19
  **transaction_id** | **String** | The ID of the transaction that is related to this recipient | [optional]
20
+ **transaction_external_id** | **String** | Optional ID that is supplied by partner linking it to the partner&#39;s own Transaction ID. | [optional]
19
21
  **transaction_state** | [**TransactionState**](TransactionState.md) | | [optional]
20
22
  **exchange_rate** | **Float** | The exchange rate used in this payment | [optional]
21
23
  **fee_fractional** | **Float** | The fee for this payment in fractional units (for example cents for USD transactions) | [optional]
@@ -41,8 +43,10 @@ instance = TransferZero::Recipient.new(requested_amount: 750.0,
41
43
  input_usd_amount: 10,
42
44
  may_cancel: true,
43
45
  state_reason: null,
46
+ state_reason_details: null,
44
47
  state: null,
45
48
  transaction_id: 97e79719-06e4-4794-aeeb-d2d9415d983a,
49
+ transaction_external_id: 806ec63a-a5a7-43cc-9d75-1ee74fbcc026,
46
50
  transaction_state: null,
47
51
  exchange_rate: 1000,
48
52
  fee_fractional: 100,
@@ -0,0 +1,23 @@
1
+ # TransferZero::RecipientStateReasonDetails
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **code** | **String** | Status code of failed transaction | [optional]
8
+ **category** | **String** | Main category of error, it could be paid, unknown, pickupable, temporary_error, recipient_error, sender_error | [optional]
9
+ **messages** | **Array&lt;String&gt;** | Tiered messages | [optional]
10
+ **description** | **String** | Public, human readable, detailed error message | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'TransferZero'
16
+
17
+ instance = TransferZero::RecipientStateReasonDetails.new(code: 311,
18
+ category: temporary_error,
19
+ messages: [&quot;Temporary error&quot;,&quot;Switch Error&quot;,&quot;Issuer/Switch inoperative&quot;],
20
+ description: The central switch is not accepting transfers at the moment. We will retry the transaction. You can also edit or cancel this transaction.)
21
+ ```
22
+
23
+
@@ -7,6 +7,7 @@ Method | HTTP request | Description
7
7
  [**delete_recipient**](RecipientsApi.md#delete_recipient) | **DELETE** /recipients/{Recipient ID} | Cancelling a recipient
8
8
  [**get_recipients**](RecipientsApi.md#get_recipients) | **GET** /recipients | Getting a list of recipients with filtering
9
9
  [**patch_recipient**](RecipientsApi.md#patch_recipient) | **PATCH** /recipients/{Recipient ID} | Updating a recipient
10
+ [**proof_of_payments**](RecipientsApi.md#proof_of_payments) | **GET** /recipients/{Recipient ID}/proof_of_payments | Returns list of proof of payments
10
11
 
11
12
 
12
13
  # **delete_recipient**
@@ -210,3 +211,64 @@ end
210
211
 
211
212
 
212
213
 
214
+ # **proof_of_payments**
215
+ > ProofOfPaymentListResponse proof_of_payments(recipient_id)
216
+
217
+ Returns list of proof of payments
218
+
219
+ Returns a list of uploaded proof of payment files for a transaction recipient
220
+
221
+ ### Example
222
+ ```ruby
223
+ # load the gem
224
+ require 'transferzero-sdk'
225
+
226
+ api_instance = TransferZero::RecipientsApi.new
227
+
228
+
229
+ begin
230
+ #Returns list of proof of payments
231
+ result = api_instance.proof_of_payments(recipient_id)
232
+ p result
233
+ rescue TransferZero::ApiError => e
234
+ if e.validation_error
235
+ puts "WARN: Validation error occured when calling the endpoint"
236
+ result = e.response_object("ProofOfPaymentListResponse")
237
+ p result
238
+ else
239
+ puts "Exception when calling RecipientsApi->proof_of_payments: #{e}"
240
+ end
241
+ end
242
+ ```
243
+
244
+ ### Parameters
245
+
246
+ Name | Type | Description | Notes
247
+ ------------- | ------------- | ------------- | -------------
248
+ **recipient_id** | [**String**](.md)| ID of the recipient for whom the proof of payments will be returned. Example: &#x60;/v1/recipients/9d4d7b73-a94c-4979-ab57-09074fd55d33/proof_of_payments&#x60; |
249
+
250
+ ### Return type
251
+
252
+ [**ProofOfPaymentListResponse**](ProofOfPaymentListResponse.md)
253
+
254
+ ### Authorization
255
+
256
+ You can set the API Key and Secret on the TransferZero object when setting it up:
257
+
258
+ ```ruby
259
+
260
+ TransferZero.configure do |config|
261
+ config.api_key = '<key'
262
+ config.api_secret = '<secret>'
263
+ config.host = 'https://api-sandbox.transferzero.com/v1'
264
+ end
265
+
266
+ ```
267
+
268
+ ### HTTP request headers
269
+
270
+ - **Content-Type**: Not defined
271
+ - **Accept**: application/json
272
+
273
+
274
+