transferzero-sdk 1.9.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +93 -0
- data/README.md +10 -4
- data/docs/PayoutMethodCashProviderEnum.md +16 -0
- data/docs/PayoutMethodDetails.md +6 -4
- data/docs/PayoutMethodDetailsXOFCash.md +27 -0
- data/docs/ProofOfPayment.md +23 -0
- data/docs/ProofOfPaymentListResponse.md +17 -0
- data/docs/Recipient.md +2 -0
- data/docs/RecipientStateReasonDetails.md +23 -0
- data/docs/RecipientsApi.md +62 -0
- data/docs/Sender.md +2 -0
- data/lib/transferzero-sdk.rb +5 -0
- data/lib/transferzero-sdk/api/recipients_api.rb +54 -0
- data/lib/transferzero-sdk/api_client.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method_cash_provider_enum.rb +31 -0
- data/lib/transferzero-sdk/models/payout_method_details.rb +29 -19
- data/lib/transferzero-sdk/models/payout_method_details_xof_bank.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method_details_xof_cash.rb +263 -0
- data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +1 -1
- data/lib/transferzero-sdk/models/proof_of_payment.rb +233 -0
- data/lib/transferzero-sdk/models/proof_of_payment_list_response.rb +204 -0
- data/lib/transferzero-sdk/models/recipient.rb +10 -1
- data/lib/transferzero-sdk/models/recipient_state_reason_details.rb +235 -0
- data/lib/transferzero-sdk/models/sender.rb +11 -1
- data/lib/transferzero-sdk/version.rb +1 -1
- data/spec/models/payout_method_cash_provider_enum_spec.rb +35 -0
- data/spec/models/payout_method_details_xof_cash_spec.rb +71 -0
- data/spec/models/proof_of_payment_list_response_spec.rb +41 -0
- data/spec/models/proof_of_payment_spec.rb +59 -0
- data/spec/models/recipient_state_reason_details_spec.rb +59 -0
- metadata +33 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4a72e7a74c3d604cad3367f8f255719bedcb3333f4f41ba40be5eb6a1c8d7ad
|
4
|
+
data.tar.gz: 809532b1efe02d86a2fdac1f09f9f35d56c0895a807c5f5f18fd36d93f0cacf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0078963697208ef7df9e73fec33e087daeb64aa58c3ef709bc1b5c39a1412024053f309778ea8f1c9757d8428f076fc068f25c9e5bf46204b2e4f6918cb35f10'
|
7
|
+
data.tar.gz: 4fbe577cf10a4a77cc27329e44847365d6bd8fe5320dd3b6b70790400c7859f8243ab2241af7cf6c135ee2205ea7b8a0331355ca62417a0c3adb5788f966a58b
|
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.
|
10
|
+
- Package version: 1.10.0
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
For more information, please visit:
|
@@ -31,15 +31,15 @@ gem build transferzero-sdk.gemspec
|
|
31
31
|
Then either install the gem locally:
|
32
32
|
|
33
33
|
```shell
|
34
|
-
gem install ./transferzero-sdk-1.
|
34
|
+
gem install ./transferzero-sdk-1.10.0.gem
|
35
35
|
```
|
36
|
-
(for development, run `gem install --dev ./transferzero-sdk-1.
|
36
|
+
(for development, run `gem install --dev ./transferzero-sdk-1.10.0.gem` to install the development dependencies)
|
37
37
|
|
38
38
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
39
39
|
|
40
40
|
Finally add this to the Gemfile:
|
41
41
|
|
42
|
-
gem 'transferzero-sdk', '~> 1.
|
42
|
+
gem 'transferzero-sdk', '~> 1.10.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,6 +197,7 @@ 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)
|
199
201
|
- [TransferZero::PayoutMethodDetails](docs/PayoutMethodDetails.md)
|
200
202
|
- [TransferZero::PayoutMethodDetailsBTC](docs/PayoutMethodDetailsBTC.md)
|
201
203
|
- [TransferZero::PayoutMethodDetailsBalance](docs/PayoutMethodDetailsBalance.md)
|
@@ -206,6 +208,7 @@ Class | Method | HTTP request | Description
|
|
206
208
|
- [TransferZero::PayoutMethodDetailsMobile](docs/PayoutMethodDetailsMobile.md)
|
207
209
|
- [TransferZero::PayoutMethodDetailsNGNBank](docs/PayoutMethodDetailsNGNBank.md)
|
208
210
|
- [TransferZero::PayoutMethodDetailsXOFBank](docs/PayoutMethodDetailsXOFBank.md)
|
211
|
+
- [TransferZero::PayoutMethodDetailsXOFCash](docs/PayoutMethodDetailsXOFCash.md)
|
209
212
|
- [TransferZero::PayoutMethodDetailsXOFMobile](docs/PayoutMethodDetailsXOFMobile.md)
|
210
213
|
- [TransferZero::PayoutMethodDetailsZARBank](docs/PayoutMethodDetailsZARBank.md)
|
211
214
|
- [TransferZero::PayoutMethodGenderEnum](docs/PayoutMethodGenderEnum.md)
|
@@ -216,11 +219,14 @@ Class | Method | HTTP request | Description
|
|
216
219
|
- [TransferZero::PayoutMethodResponse](docs/PayoutMethodResponse.md)
|
217
220
|
- [TransferZero::PayoutMethodWebhook](docs/PayoutMethodWebhook.md)
|
218
221
|
- [TransferZero::PoliticallyExposedPerson](docs/PoliticallyExposedPerson.md)
|
222
|
+
- [TransferZero::ProofOfPayment](docs/ProofOfPayment.md)
|
223
|
+
- [TransferZero::ProofOfPaymentListResponse](docs/ProofOfPaymentListResponse.md)
|
219
224
|
- [TransferZero::Recipient](docs/Recipient.md)
|
220
225
|
- [TransferZero::RecipientListResponse](docs/RecipientListResponse.md)
|
221
226
|
- [TransferZero::RecipientRequest](docs/RecipientRequest.md)
|
222
227
|
- [TransferZero::RecipientResponse](docs/RecipientResponse.md)
|
223
228
|
- [TransferZero::RecipientState](docs/RecipientState.md)
|
229
|
+
- [TransferZero::RecipientStateReasonDetails](docs/RecipientStateReasonDetails.md)
|
224
230
|
- [TransferZero::RecipientWebhook](docs/RecipientWebhook.md)
|
225
231
|
- [TransferZero::Sender](docs/Sender.md)
|
226
232
|
- [TransferZero::SenderListResponse](docs/SenderListResponse.md)
|
@@ -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
|
+
|
data/docs/PayoutMethodDetails.md
CHANGED
@@ -14,6 +14,9 @@ Name | Type | Description | Notes
|
|
14
14
|
**iban** | **String** | |
|
15
15
|
**bank_name** | **String** | |
|
16
16
|
**bank_country** | **String** | |
|
17
|
+
**identity_card_id** | **String** | | [optional]
|
18
|
+
**identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | | [optional]
|
19
|
+
**cash_provider** | [**PayoutMethodCashProviderEnum**](PayoutMethodCashProviderEnum.md) | | [optional]
|
17
20
|
**sort_code** | **String** | | [optional]
|
18
21
|
**bic** | **String** | | [optional]
|
19
22
|
**sender_identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
|
@@ -22,8 +25,6 @@ Name | Type | Description | Notes
|
|
22
25
|
**sender_country_of_birth** | **String** | |
|
23
26
|
**sender_gender** | [**PayoutMethodGenderEnum**](PayoutMethodGenderEnum.md) | |
|
24
27
|
**reason** | **String** | | [optional]
|
25
|
-
**identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | | [optional]
|
26
|
-
**identity_card_id** | **String** | | [optional]
|
27
28
|
**reference** | **String** | | [optional]
|
28
29
|
**name** | **String** | |
|
29
30
|
**address** | **String** | |
|
@@ -48,6 +49,9 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
|
|
48
49
|
iban: null,
|
49
50
|
bank_name: null,
|
50
51
|
bank_country: null,
|
52
|
+
identity_card_id: null,
|
53
|
+
identity_card_type: null,
|
54
|
+
cash_provider: null,
|
51
55
|
sort_code: null,
|
52
56
|
bic: null,
|
53
57
|
sender_identity_card_type: null,
|
@@ -56,8 +60,6 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
|
|
56
60
|
sender_country_of_birth: null,
|
57
61
|
sender_gender: null,
|
58
62
|
reason: null,
|
59
|
-
identity_card_type: null,
|
60
|
-
identity_card_id: null,
|
61
63
|
reference: null,
|
62
64
|
name: null,
|
63
65
|
address: null,
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# TransferZero::PayoutMethodDetailsXOFCash
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**first_name** | **String** | |
|
8
|
+
**last_name** | **String** | |
|
9
|
+
**identity_card_id** | **String** | | [optional]
|
10
|
+
**identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | | [optional]
|
11
|
+
**phone_number** | **String** | |
|
12
|
+
**cash_provider** | [**PayoutMethodCashProviderEnum**](PayoutMethodCashProviderEnum.md) | | [optional]
|
13
|
+
|
14
|
+
## Code Sample
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'TransferZero'
|
18
|
+
|
19
|
+
instance = TransferZero::PayoutMethodDetailsXOFCash.new(first_name: null,
|
20
|
+
last_name: null,
|
21
|
+
identity_card_id: null,
|
22
|
+
identity_card_type: null,
|
23
|
+
phone_number: null,
|
24
|
+
cash_provider: null)
|
25
|
+
```
|
26
|
+
|
27
|
+
|
@@ -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<ProofOfPayment>**](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,6 +14,7 @@ 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]
|
19
20
|
**transaction_state** | [**TransactionState**](TransactionState.md) | | [optional]
|
@@ -41,6 +42,7 @@ instance = TransferZero::Recipient.new(requested_amount: 750.0,
|
|
41
42
|
input_usd_amount: 10,
|
42
43
|
may_cancel: true,
|
43
44
|
state_reason: null,
|
45
|
+
state_reason_details: null,
|
44
46
|
state: null,
|
45
47
|
transaction_id: 97e79719-06e4-4794-aeeb-d2d9415d983a,
|
46
48
|
transaction_state: null,
|
@@ -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<String>** | 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: ["Temporary error","Switch Error","Issuer/Switch inoperative"],
|
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
|
+
|
data/docs/RecipientsApi.md
CHANGED
@@ -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: `/v1/recipients/9d4d7b73-a94c-4979-ab57-09074fd55d33/proof_of_payments` |
|
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
|
+
|
data/docs/Sender.md
CHANGED
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
|
|
18
18
|
**address_description** | **String** | Description of address | [optional]
|
19
19
|
**identification_number** | **String** | Identification number of document used | [optional]
|
20
20
|
**identification_type** | **String** | Document to be identified. The identification type can be one of the following: - `DL`: Driving License - `PP`: International Passport - `ID`: National ID - `OT`: Other | [optional]
|
21
|
+
**lang** | **String** | Determines language of the served content. Defaults to English | [optional]
|
21
22
|
**name** | **String** | Name of sender (used only with a Business sender) | [optional]
|
22
23
|
**first_name** | **String** | First name of sender (used only with a Personal sender) | [optional]
|
23
24
|
**middle_name** | **String** | Middle name of sender (used only with a Personal sender) | [optional]
|
@@ -72,6 +73,7 @@ instance = TransferZero::Sender.new(id: bf9ff782-e182-45ac-abea-5bce83ad6670,
|
|
72
73
|
address_description: null,
|
73
74
|
identification_number: AB123456,
|
74
75
|
identification_type: ID,
|
76
|
+
lang: en,
|
75
77
|
name: null,
|
76
78
|
first_name: Johnny,
|
77
79
|
middle_name: Johnny,
|
data/lib/transferzero-sdk.rb
CHANGED
@@ -61,6 +61,7 @@ require 'transferzero-sdk/models/payment_method_list_response'
|
|
61
61
|
require 'transferzero-sdk/models/payment_method_opposite'
|
62
62
|
require 'transferzero-sdk/models/payout_method'
|
63
63
|
require 'transferzero-sdk/models/payout_method_bank_account_type_enum'
|
64
|
+
require 'transferzero-sdk/models/payout_method_cash_provider_enum'
|
64
65
|
require 'transferzero-sdk/models/payout_method_details'
|
65
66
|
require 'transferzero-sdk/models/payout_method_details_btc'
|
66
67
|
require 'transferzero-sdk/models/payout_method_details_balance'
|
@@ -71,6 +72,7 @@ require 'transferzero-sdk/models/payout_method_details_mad_cash'
|
|
71
72
|
require 'transferzero-sdk/models/payout_method_details_mobile'
|
72
73
|
require 'transferzero-sdk/models/payout_method_details_ngn_bank'
|
73
74
|
require 'transferzero-sdk/models/payout_method_details_xof_bank'
|
75
|
+
require 'transferzero-sdk/models/payout_method_details_xof_cash'
|
74
76
|
require 'transferzero-sdk/models/payout_method_details_xof_mobile'
|
75
77
|
require 'transferzero-sdk/models/payout_method_details_zar_bank'
|
76
78
|
require 'transferzero-sdk/models/payout_method_gender_enum'
|
@@ -81,11 +83,14 @@ require 'transferzero-sdk/models/payout_method_request'
|
|
81
83
|
require 'transferzero-sdk/models/payout_method_response'
|
82
84
|
require 'transferzero-sdk/models/payout_method_webhook'
|
83
85
|
require 'transferzero-sdk/models/politically_exposed_person'
|
86
|
+
require 'transferzero-sdk/models/proof_of_payment'
|
87
|
+
require 'transferzero-sdk/models/proof_of_payment_list_response'
|
84
88
|
require 'transferzero-sdk/models/recipient'
|
85
89
|
require 'transferzero-sdk/models/recipient_list_response'
|
86
90
|
require 'transferzero-sdk/models/recipient_request'
|
87
91
|
require 'transferzero-sdk/models/recipient_response'
|
88
92
|
require 'transferzero-sdk/models/recipient_state'
|
93
|
+
require 'transferzero-sdk/models/recipient_state_reason_details'
|
89
94
|
require 'transferzero-sdk/models/recipient_webhook'
|
90
95
|
require 'transferzero-sdk/models/sender'
|
91
96
|
require 'transferzero-sdk/models/sender_list_response'
|