yapstone-payouts 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +79 -0
- data/README.md +150 -0
- data/Rakefile +10 -0
- data/docs/AuthenticationApi.md +58 -0
- data/docs/CancelDepositRequest.md +17 -0
- data/docs/CancelRequest.md +19 -0
- data/docs/Deposit.md +31 -0
- data/docs/DepositDetail.md +23 -0
- data/docs/DepositListResponse.md +19 -0
- data/docs/DepositRequest.md +19 -0
- data/docs/Disbursement.md +27 -0
- data/docs/DisbursementListResponse.md +19 -0
- data/docs/DisbursementRequest.md +19 -0
- data/docs/FundingPool.md +31 -0
- data/docs/InlineResponse200.md +25 -0
- data/docs/Meta.md +17 -0
- data/docs/Page.md +21 -0
- data/docs/PaymentTransactionDetail.md +31 -0
- data/docs/PayoutsApi.md +2065 -0
- data/docs/PoolListResponse.md +21 -0
- data/docs/Reimbursement.md +27 -0
- data/docs/ReimbursementListResponse.md +19 -0
- data/docs/ReimbursementRequest.md +19 -0
- data/docs/ReverseDisbursementRequest.md +19 -0
- data/docs/ReverseReimbursementRequest.md +19 -0
- data/docs/StatusChanges.md +19 -0
- data/git_push.sh +55 -0
- data/lib/yapstone-payouts.rb +62 -0
- data/lib/yapstone-payouts/api/authentication_api.rb +92 -0
- data/lib/yapstone-payouts/api/payouts_api.rb +2462 -0
- data/lib/yapstone-payouts/api_client.rb +386 -0
- data/lib/yapstone-payouts/api_error.rb +57 -0
- data/lib/yapstone-payouts/configuration.rb +249 -0
- data/lib/yapstone-payouts/models/cancel_deposit_request.rb +235 -0
- data/lib/yapstone-payouts/models/cancel_request.rb +244 -0
- data/lib/yapstone-payouts/models/deposit.rb +261 -0
- data/lib/yapstone-payouts/models/deposit_detail.rb +233 -0
- data/lib/yapstone-payouts/models/deposit_list_response.rb +207 -0
- data/lib/yapstone-payouts/models/deposit_request.rb +217 -0
- data/lib/yapstone-payouts/models/disbursement.rb +243 -0
- data/lib/yapstone-payouts/models/disbursement_list_response.rb +207 -0
- data/lib/yapstone-payouts/models/disbursement_request.rb +217 -0
- data/lib/yapstone-payouts/models/funding_pool.rb +259 -0
- data/lib/yapstone-payouts/models/inline_response200.rb +232 -0
- data/lib/yapstone-payouts/models/meta.rb +197 -0
- data/lib/yapstone-payouts/models/page.rb +218 -0
- data/lib/yapstone-payouts/models/payment_transaction_detail.rb +279 -0
- data/lib/yapstone-payouts/models/pool_list_response.rb +216 -0
- data/lib/yapstone-payouts/models/reimbursement.rb +243 -0
- data/lib/yapstone-payouts/models/reimbursement_list_response.rb +207 -0
- data/lib/yapstone-payouts/models/reimbursement_request.rb +217 -0
- data/lib/yapstone-payouts/models/reverse_disbursement_request.rb +215 -0
- data/lib/yapstone-payouts/models/reverse_reimbursement_request.rb +215 -0
- data/lib/yapstone-payouts/models/status_changes.rb +205 -0
- data/lib/yapstone-payouts/version.rb +15 -0
- data/spec/api/authentication_api_spec.rb +48 -0
- data/spec/api/payouts_api_spec.rb +506 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/cancel_deposit_request_spec.rb +45 -0
- data/spec/models/cancel_request_spec.rb +51 -0
- data/spec/models/deposit_detail_spec.rb +59 -0
- data/spec/models/deposit_list_response_spec.rb +47 -0
- data/spec/models/deposit_request_spec.rb +47 -0
- data/spec/models/deposit_spec.rb +83 -0
- data/spec/models/disbursement_list_response_spec.rb +47 -0
- data/spec/models/disbursement_request_spec.rb +47 -0
- data/spec/models/disbursement_spec.rb +71 -0
- data/spec/models/funding_pool_spec.rb +83 -0
- data/spec/models/inline_response200_spec.rb +65 -0
- data/spec/models/meta_spec.rb +41 -0
- data/spec/models/page_spec.rb +53 -0
- data/spec/models/payment_transaction_detail_spec.rb +83 -0
- data/spec/models/pool_list_response_spec.rb +53 -0
- data/spec/models/reimbursement_list_response_spec.rb +47 -0
- data/spec/models/reimbursement_request_spec.rb +47 -0
- data/spec/models/reimbursement_spec.rb +71 -0
- data/spec/models/reverse_disbursement_request_spec.rb +47 -0
- data/spec/models/reverse_reimbursement_request_spec.rb +47 -0
- data/spec/models/status_changes_spec.rb +47 -0
- data/spec/spec_helper.rb +111 -0
- data/yapstone-payouts.gemspec +45 -0
- metadata +333 -0
@@ -0,0 +1,27 @@
|
|
1
|
+
# Yapstone::Disbursement
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**transaction_id** | **String** | | [optional]
|
8
|
+
**currency** | **String** | | [optional]
|
9
|
+
**detail** | [**PaymentTransactionDetail**](PaymentTransactionDetail.md) | | [optional]
|
10
|
+
**posted_date** | **String** | | [optional]
|
11
|
+
**current_status** | **String** | | [optional]
|
12
|
+
**history** | [**Array<StatusChanges>**](StatusChanges.md) | | [optional]
|
13
|
+
|
14
|
+
## Code Sample
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'Yapstone'
|
18
|
+
|
19
|
+
instance = Yapstone::Disbursement.new(transaction_id: null,
|
20
|
+
currency: null,
|
21
|
+
detail: null,
|
22
|
+
posted_date: null,
|
23
|
+
current_status: null,
|
24
|
+
history: null)
|
25
|
+
```
|
26
|
+
|
27
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Yapstone::DisbursementListResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**meta** | [**Meta**](Meta.md) | | [optional]
|
8
|
+
**disbursements** | [**Array<Disbursement>**](Disbursement.md) | | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'Yapstone'
|
14
|
+
|
15
|
+
instance = Yapstone::DisbursementListResponse.new(meta: null,
|
16
|
+
disbursements: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Yapstone::DisbursementRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**currency** | **String** | |
|
8
|
+
**disbursements** | [**Array<PaymentTransactionDetail>**](PaymentTransactionDetail.md) | |
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'Yapstone'
|
14
|
+
|
15
|
+
instance = Yapstone::DisbursementRequest.new(currency: null,
|
16
|
+
disbursements: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
data/docs/FundingPool.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Yapstone::FundingPool
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**pool_id** | **String** | | [optional]
|
8
|
+
**market_place_id** | **String** | | [optional]
|
9
|
+
**currency** | **String** | | [optional]
|
10
|
+
**good_funds_balance** | **Integer** | | [optional]
|
11
|
+
**debit_hold_amount** | **Integer** | | [optional]
|
12
|
+
**credit_hold_amount** | **Integer** | | [optional]
|
13
|
+
**pending_reimbursement_amount** | **Integer** | | [optional]
|
14
|
+
**modified_date** | **String** | | [optional]
|
15
|
+
|
16
|
+
## Code Sample
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'Yapstone'
|
20
|
+
|
21
|
+
instance = Yapstone::FundingPool.new(pool_id: null,
|
22
|
+
market_place_id: null,
|
23
|
+
currency: null,
|
24
|
+
good_funds_balance: null,
|
25
|
+
debit_hold_amount: null,
|
26
|
+
credit_hold_amount: null,
|
27
|
+
pending_reimbursement_amount: null,
|
28
|
+
modified_date: null)
|
29
|
+
```
|
30
|
+
|
31
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Yapstone::InlineResponse200
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**issued_at** | **String** | | [optional]
|
8
|
+
**access_token** | **String** | | [optional]
|
9
|
+
**scope** | **String** | | [optional]
|
10
|
+
**expires_in** | **String** | | [optional]
|
11
|
+
**status** | **String** | | [optional]
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'Yapstone'
|
17
|
+
|
18
|
+
instance = Yapstone::InlineResponse200.new(issued_at: 1552575073094,
|
19
|
+
access_token: null,
|
20
|
+
scope: marketplace,
|
21
|
+
expires_in: 3599,
|
22
|
+
status: approved)
|
23
|
+
```
|
24
|
+
|
25
|
+
|
data/docs/Meta.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Yapstone::Meta
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**page** | [**Page**](Page.md) | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'Yapstone'
|
13
|
+
|
14
|
+
instance = Yapstone::Meta.new(page: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/Page.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# Yapstone::Page
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**limit** | **Integer** | Number of items to retrieve | [optional]
|
8
|
+
**offset** | **Integer** | Position in pagination | [optional]
|
9
|
+
**count** | **Integer** | Number of items available | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'Yapstone'
|
15
|
+
|
16
|
+
instance = Yapstone::Page.new(limit: null,
|
17
|
+
offset: null,
|
18
|
+
count: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Yapstone::PaymentTransactionDetail
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**client_unique_txn_id** | **String** | | [optional]
|
8
|
+
**client_correlation_id** | **String** | | [optional]
|
9
|
+
**origination_id** | **String** | | [optional]
|
10
|
+
**payer_party_id** | **String** | | [optional]
|
11
|
+
**payee_contract_id** | **String** | |
|
12
|
+
**payee_instrument_id** | **String** | |
|
13
|
+
**payee_applicant_id** | **String** | |
|
14
|
+
**amount** | **Integer** | |
|
15
|
+
|
16
|
+
## Code Sample
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'Yapstone'
|
20
|
+
|
21
|
+
instance = Yapstone::PaymentTransactionDetail.new(client_unique_txn_id: null,
|
22
|
+
client_correlation_id: null,
|
23
|
+
origination_id: null,
|
24
|
+
payer_party_id: null,
|
25
|
+
payee_contract_id: null,
|
26
|
+
payee_instrument_id: null,
|
27
|
+
payee_applicant_id: null,
|
28
|
+
amount: null)
|
29
|
+
```
|
30
|
+
|
31
|
+
|
data/docs/PayoutsApi.md
ADDED
@@ -0,0 +1,2065 @@
|
|
1
|
+
# Yapstone::PayoutsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api-prod-sandbox.yapstone.com/v1/payouts*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**cancel_deposit**](PayoutsApi.md#cancel_deposit) | **PATCH** /payouts/v1/deposits/{depositId} | Cancels the given deposit advice if it has not yet been processed. Note that a deposit advice cannot be cancelled after it has been reconciled via the corresponding bank account activity record.
|
8
|
+
[**cancel_disbursement**](PayoutsApi.md#cancel_disbursement) | **PATCH** /payouts/v1/disbursements/{transactionId} | Cancel Disbursement - Cancels the given disbursement if it has not yet been processed. Note that a disbursement cannot be cancelled after it has been submitted for payment to the downstream processor. Reverse Disbursement - Submits a full (or partial) disbursement for funds that were originally retrieved via the given transactionId recapture order. The resulting transactionId represents the linked disbursement.
|
9
|
+
[**cancel_reimbursement**](PayoutsApi.md#cancel_reimbursement) | **PATCH** /payouts/v1/reimbursements/{transactionId}/cancel | Reverse Reimbursement - Submits a full (or partial) disbursement for funds that were originally retrieved via the given transactionId recapture order. The resulting transactionId represents the linked reimbursement.
|
10
|
+
[**create_deposit**](PayoutsApi.md#create_deposit) | **POST** /payouts/v1/deposits | Notifies YapStone that a deposit has been initiated by the Marketplace to provide funds for future disbursement requests. This call will create a pending deposit record that will be cleared when the corresponding transaction is confirmed by the acquiring bank (typically 1-3 days). Disbursement requests received against pending funds will be released for processing when the deposit is cleared.
|
11
|
+
[**get_balances**](PayoutsApi.md#get_balances) | **GET** /payouts/v1/balances | Retrieves the funding position for the Marketplace for each supported currency. If the optional query parameter is provided, the response will include only the specified currency (EUR, GBP, USD).
|
12
|
+
[**get_deposit**](PayoutsApi.md#get_deposit) | **GET** /payouts/v1/deposits/{depositId} | Returns the deposit detail and status history for the given depositId.
|
13
|
+
[**get_deposits_by_bank_reference_tag**](PayoutsApi.md#get_deposits_by_bank_reference_tag) | **GET** /payouts/v1/deposits/bankReference/{bankReferenceTag} | Returns all pool activities matching given bank reference tag.
|
14
|
+
[**get_deposits_by_client_unique_txn_id**](PayoutsApi.md#get_deposits_by_client_unique_txn_id) | **GET** /payouts/v1/deposits/clientId/{clientUniqueTxnId} | Returns all pool activities matching given client unique transaction id.
|
15
|
+
[**get_deposits_by_correlation_id**](PayoutsApi.md#get_deposits_by_correlation_id) | **GET** /payouts/v1/deposits/correlation/{clientCorrelationId} | Returns all pool activities matching given client correlation id.
|
16
|
+
[**get_deposits_by_correlation_id_and_status**](PayoutsApi.md#get_deposits_by_correlation_id_and_status) | **GET** /payouts/v1/deposits/correlation/{clientCorrelationId}/status/{currentStatus} | Returns all pool activities matching given client correlation id and status.
|
17
|
+
[**get_deposits_by_currency**](PayoutsApi.md#get_deposits_by_currency) | **GET** /payouts/v1/deposits/currency/{currency} | Returns all pool activities matching given currency.
|
18
|
+
[**get_deposits_by_status**](PayoutsApi.md#get_deposits_by_status) | **GET** /payouts/v1/deposits/status/{currentStatus} | Returns all pool activities matching given current status.
|
19
|
+
[**get_disbursements_by_client_correlation_id**](PayoutsApi.md#get_disbursements_by_client_correlation_id) | **GET** /payouts/v1/disbursements/correlation/{clientCorrelationId} | Returns all disbursement transactions matching given correlation id.
|
20
|
+
[**get_disbursements_by_client_unique_txn_id**](PayoutsApi.md#get_disbursements_by_client_unique_txn_id) | **GET** /payouts/v1/disbursements/clientId/{clientUniqueTxnId} | Returns all disbursement transactions matching given unique id.
|
21
|
+
[**get_disbursements_by_contract_id**](PayoutsApi.md#get_disbursements_by_contract_id) | **GET** /payouts/v1/disbursements/contract/{contractId} | Returns all disbursement transactions matching given contract id.
|
22
|
+
[**get_disbursements_by_correlation_id_and_status**](PayoutsApi.md#get_disbursements_by_correlation_id_and_status) | **GET** /payouts/v1/disbursements/correlation/{clientCorrelationId}/status/{currentStatus} | Returns all disbursement transactions matching given correlation id and status.
|
23
|
+
[**get_disbursements_by_currency**](PayoutsApi.md#get_disbursements_by_currency) | **GET** /payouts/v1/disbursements/currency/{currency} | Returns all disbursement transactions matching given contract id.
|
24
|
+
[**get_disbursements_by_instrument_id**](PayoutsApi.md#get_disbursements_by_instrument_id) | **GET** /payouts/v1/disbursements/instrument/{payeeInstrumentId} | Returns all disbursement transactions matching given contract id.
|
25
|
+
[**get_disbursements_by_order_id**](PayoutsApi.md#get_disbursements_by_order_id) | **GET** /payouts/v1/disbursements/order/{orderId} | Returns all disbursement transactions matching given order id.
|
26
|
+
[**get_disbursements_by_party_id**](PayoutsApi.md#get_disbursements_by_party_id) | **GET** /payouts/v1/disbursements/party/{payeePartyId} | Returns all disbursement transactions matching given contract id.
|
27
|
+
[**get_disbursements_by_status**](PayoutsApi.md#get_disbursements_by_status) | **GET** /payouts/v1/disbursements/status/{currentStatus} | Returns all disbursement transactions matching given current status.
|
28
|
+
[**get_disbursements_by_txn_id**](PayoutsApi.md#get_disbursements_by_txn_id) | **GET** /payouts/v1/disbursements/{transactionId} | Returns the disbursement detail and status history for the given transactionId.
|
29
|
+
[**get_reimbursement**](PayoutsApi.md#get_reimbursement) | **GET** /payouts/v1/reimbursements/{transactionId} | Returns the disbursement detail and status history for the given transactionId.
|
30
|
+
[**get_reimbursements_by_contract_id**](PayoutsApi.md#get_reimbursements_by_contract_id) | **GET** /payouts/v1/reimbursements/contract/{contractId} | Returns all reimbursement transactions matching given contract .
|
31
|
+
[**get_reimbursements_by_correlation_id**](PayoutsApi.md#get_reimbursements_by_correlation_id) | **GET** /payouts/v1/reimbursements/correlation/{clientCorrelationId} | Returns all reimbursement transactions matching given correlation .
|
32
|
+
[**get_reimbursements_by_correlation_id_and_status**](PayoutsApi.md#get_reimbursements_by_correlation_id_and_status) | **GET** /payouts/v1/reimbursements/correlation/{clientCorrelationId}/status/{currentStatus} | Returns all pool activities matching given client correlation id and status.
|
33
|
+
[**get_reimbursements_by_currency**](PayoutsApi.md#get_reimbursements_by_currency) | **GET** /payouts/v1/reimbursements/currency/{currency} | Returns all reimbursement transactions matching given currency .
|
34
|
+
[**get_reimbursements_by_current_status**](PayoutsApi.md#get_reimbursements_by_current_status) | **GET** /payouts/v1/reimbursements/clientId/{clientUniqueTxnId} | Returns all reimbursement transactions matching given clientId .
|
35
|
+
[**get_reimbursements_by_instrument**](PayoutsApi.md#get_reimbursements_by_instrument) | **GET** /payouts/v1/reimbursements/instrument/{payeeInstrumentId} | Returns all reimbursement transactions matching given instrument .
|
36
|
+
[**get_reimbursements_by_order_id**](PayoutsApi.md#get_reimbursements_by_order_id) | **GET** /payouts/v1/reimbursements/order/{orderId} | Returns all reimbursement transactions matching given order .
|
37
|
+
[**get_reimbursements_by_party_id**](PayoutsApi.md#get_reimbursements_by_party_id) | **GET** /payouts/v1/reimbursements/party/{payeePartyId} | Returns all reimbursement transactions matching given party .
|
38
|
+
[**get_reimbursements_by_status**](PayoutsApi.md#get_reimbursements_by_status) | **GET** /payouts/v1/reimbursements/status/{currentStatus} | Returns all reimbursement transactions matching given status .
|
39
|
+
[**reverse_disbursement**](PayoutsApi.md#reverse_disbursement) | **PATCH** /payouts/v1/disbursements/{transactionId}/reverse | Reverse Disbursement - Submits a full (or partial) disbursement for funds that were originally retrieved via the given transactionId recapture order. The resulting transactionId represents the linked disbursement.
|
40
|
+
[**reverse_reimbursement**](PayoutsApi.md#reverse_reimbursement) | **PATCH** /payouts/v1/reimbursements/{transactionId}/reverse | Reverse Reimbursement - Submits a full (or partial) disbursement for funds that were originally retrieved via the given transactionId recapture order. The resulting transactionId represents the linked reimbursement.
|
41
|
+
[**submit_disbursements_for_payees**](PayoutsApi.md#submit_disbursements_for_payees) | **POST** /payouts/v1/disbursements | Provides instructions from the Marketplace for payments to be distributed to one or more Payees. Disbursement requests are grouped by currency, given that the funding pools are also segregated in this manner. If the corresponding pool was funded in advance, the disbursements will be processed on a same-day basis. Otherwise the disbursement requests will be queued for later processing as funds become available. Response is organized in two collections (accepted and rejected) to distinguish successful and failed items.
|
42
|
+
[**submit_reimbursements**](PayoutsApi.md#submit_reimbursements) | **POST** /payouts/v1/reimbursements |
|
43
|
+
[**update_deposit**](PayoutsApi.md#update_deposit) | **PUT** /payouts/v1/deposits/{depositId} | Allows a Marketplace to update the details for a pending deposit advice to correct these values relative to the original post operation. Note that the new values will overwrite the existing deposit, and all must be provided by the caller (presumably after a corresponding get operation). If the deposit has already been processed then the update request will be rejected (400 Bad request).
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
## cancel_deposit
|
48
|
+
|
49
|
+
> cancel_deposit(deposit_id, cancel_deposit_request)
|
50
|
+
|
51
|
+
Cancels the given deposit advice if it has not yet been processed. Note that a deposit advice cannot be cancelled after it has been reconciled via the corresponding bank account activity record.
|
52
|
+
|
53
|
+
### Example
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
# load the gem
|
57
|
+
require 'yapstone-payouts'
|
58
|
+
# setup authorization
|
59
|
+
Yapstone.configure do |config|
|
60
|
+
# Configure Bearer authorization (JWT): Bearer
|
61
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
62
|
+
end
|
63
|
+
|
64
|
+
api_instance = Yapstone::PayoutsApi.new
|
65
|
+
deposit_id = 'deposit_id_example' # String | Primary key for a single deposit record (assigned by YapStone)
|
66
|
+
cancel_deposit_request = Yapstone::CancelDepositRequest.new # CancelDepositRequest |
|
67
|
+
|
68
|
+
begin
|
69
|
+
# Cancels the given deposit advice if it has not yet been processed. Note that a deposit advice cannot be cancelled after it has been reconciled via the corresponding bank account activity record.
|
70
|
+
api_instance.cancel_deposit(deposit_id, cancel_deposit_request)
|
71
|
+
rescue Yapstone::ApiError => e
|
72
|
+
puts "Exception when calling PayoutsApi->cancel_deposit: #{e}"
|
73
|
+
end
|
74
|
+
```
|
75
|
+
|
76
|
+
### Parameters
|
77
|
+
|
78
|
+
|
79
|
+
Name | Type | Description | Notes
|
80
|
+
------------- | ------------- | ------------- | -------------
|
81
|
+
**deposit_id** | **String**| Primary key for a single deposit record (assigned by YapStone) |
|
82
|
+
**cancel_deposit_request** | [**CancelDepositRequest**](CancelDepositRequest.md)| |
|
83
|
+
|
84
|
+
### Return type
|
85
|
+
|
86
|
+
nil (empty response body)
|
87
|
+
|
88
|
+
### Authorization
|
89
|
+
|
90
|
+
[Bearer](../README.md#Bearer)
|
91
|
+
|
92
|
+
### HTTP request headers
|
93
|
+
|
94
|
+
- **Content-Type**: application/json
|
95
|
+
- **Accept**: Not defined
|
96
|
+
|
97
|
+
|
98
|
+
## cancel_disbursement
|
99
|
+
|
100
|
+
> cancel_disbursement(transaction_id, cancel_request)
|
101
|
+
|
102
|
+
Cancel Disbursement - Cancels the given disbursement if it has not yet been processed. Note that a disbursement cannot be cancelled after it has been submitted for payment to the downstream processor. Reverse Disbursement - Submits a full (or partial) disbursement for funds that were originally retrieved via the given transactionId recapture order. The resulting transactionId represents the linked disbursement.
|
103
|
+
|
104
|
+
### Example
|
105
|
+
|
106
|
+
```ruby
|
107
|
+
# load the gem
|
108
|
+
require 'yapstone-payouts'
|
109
|
+
# setup authorization
|
110
|
+
Yapstone.configure do |config|
|
111
|
+
# Configure Bearer authorization (JWT): Bearer
|
112
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
113
|
+
end
|
114
|
+
|
115
|
+
api_instance = Yapstone::PayoutsApi.new
|
116
|
+
transaction_id = 'transaction_id_example' # String | Primary key for a single disbursement record (assigned by YapStone)
|
117
|
+
cancel_request = Yapstone::CancelRequest.new # CancelRequest |
|
118
|
+
|
119
|
+
begin
|
120
|
+
# Cancel Disbursement - Cancels the given disbursement if it has not yet been processed. Note that a disbursement cannot be cancelled after it has been submitted for payment to the downstream processor. Reverse Disbursement - Submits a full (or partial) disbursement for funds that were originally retrieved via the given transactionId recapture order. The resulting transactionId represents the linked disbursement.
|
121
|
+
api_instance.cancel_disbursement(transaction_id, cancel_request)
|
122
|
+
rescue Yapstone::ApiError => e
|
123
|
+
puts "Exception when calling PayoutsApi->cancel_disbursement: #{e}"
|
124
|
+
end
|
125
|
+
```
|
126
|
+
|
127
|
+
### Parameters
|
128
|
+
|
129
|
+
|
130
|
+
Name | Type | Description | Notes
|
131
|
+
------------- | ------------- | ------------- | -------------
|
132
|
+
**transaction_id** | **String**| Primary key for a single disbursement record (assigned by YapStone) |
|
133
|
+
**cancel_request** | [**CancelRequest**](CancelRequest.md)| |
|
134
|
+
|
135
|
+
### Return type
|
136
|
+
|
137
|
+
nil (empty response body)
|
138
|
+
|
139
|
+
### Authorization
|
140
|
+
|
141
|
+
[Bearer](../README.md#Bearer)
|
142
|
+
|
143
|
+
### HTTP request headers
|
144
|
+
|
145
|
+
- **Content-Type**: application/json
|
146
|
+
- **Accept**: Not defined
|
147
|
+
|
148
|
+
|
149
|
+
## cancel_reimbursement
|
150
|
+
|
151
|
+
> cancel_reimbursement(transaction_id, cancel_request)
|
152
|
+
|
153
|
+
Reverse Reimbursement - Submits a full (or partial) disbursement for funds that were originally retrieved via the given transactionId recapture order. The resulting transactionId represents the linked reimbursement.
|
154
|
+
|
155
|
+
### Example
|
156
|
+
|
157
|
+
```ruby
|
158
|
+
# load the gem
|
159
|
+
require 'yapstone-payouts'
|
160
|
+
# setup authorization
|
161
|
+
Yapstone.configure do |config|
|
162
|
+
# Configure Bearer authorization (JWT): Bearer
|
163
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
164
|
+
end
|
165
|
+
|
166
|
+
api_instance = Yapstone::PayoutsApi.new
|
167
|
+
transaction_id = 'transaction_id_example' # String | Primary key for a single reimbursement record (assigned by YapStone)
|
168
|
+
cancel_request = Yapstone::CancelRequest.new # CancelRequest |
|
169
|
+
|
170
|
+
begin
|
171
|
+
# Reverse Reimbursement - Submits a full (or partial) disbursement for funds that were originally retrieved via the given transactionId recapture order. The resulting transactionId represents the linked reimbursement.
|
172
|
+
api_instance.cancel_reimbursement(transaction_id, cancel_request)
|
173
|
+
rescue Yapstone::ApiError => e
|
174
|
+
puts "Exception when calling PayoutsApi->cancel_reimbursement: #{e}"
|
175
|
+
end
|
176
|
+
```
|
177
|
+
|
178
|
+
### Parameters
|
179
|
+
|
180
|
+
|
181
|
+
Name | Type | Description | Notes
|
182
|
+
------------- | ------------- | ------------- | -------------
|
183
|
+
**transaction_id** | **String**| Primary key for a single reimbursement record (assigned by YapStone) |
|
184
|
+
**cancel_request** | [**CancelRequest**](CancelRequest.md)| |
|
185
|
+
|
186
|
+
### Return type
|
187
|
+
|
188
|
+
nil (empty response body)
|
189
|
+
|
190
|
+
### Authorization
|
191
|
+
|
192
|
+
[Bearer](../README.md#Bearer)
|
193
|
+
|
194
|
+
### HTTP request headers
|
195
|
+
|
196
|
+
- **Content-Type**: application/json
|
197
|
+
- **Accept**: Not defined
|
198
|
+
|
199
|
+
|
200
|
+
## create_deposit
|
201
|
+
|
202
|
+
> create_deposit(deposit_request)
|
203
|
+
|
204
|
+
Notifies YapStone that a deposit has been initiated by the Marketplace to provide funds for future disbursement requests. This call will create a pending deposit record that will be cleared when the corresponding transaction is confirmed by the acquiring bank (typically 1-3 days). Disbursement requests received against pending funds will be released for processing when the deposit is cleared.
|
205
|
+
|
206
|
+
### Example
|
207
|
+
|
208
|
+
```ruby
|
209
|
+
# load the gem
|
210
|
+
require 'yapstone-payouts'
|
211
|
+
# setup authorization
|
212
|
+
Yapstone.configure do |config|
|
213
|
+
# Configure Bearer authorization (JWT): Bearer
|
214
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
215
|
+
end
|
216
|
+
|
217
|
+
api_instance = Yapstone::PayoutsApi.new
|
218
|
+
deposit_request = Yapstone::DepositRequest.new # DepositRequest | Request describes one or more pending deposits for the given currency.
|
219
|
+
|
220
|
+
begin
|
221
|
+
# Notifies YapStone that a deposit has been initiated by the Marketplace to provide funds for future disbursement requests. This call will create a pending deposit record that will be cleared when the corresponding transaction is confirmed by the acquiring bank (typically 1-3 days). Disbursement requests received against pending funds will be released for processing when the deposit is cleared.
|
222
|
+
api_instance.create_deposit(deposit_request)
|
223
|
+
rescue Yapstone::ApiError => e
|
224
|
+
puts "Exception when calling PayoutsApi->create_deposit: #{e}"
|
225
|
+
end
|
226
|
+
```
|
227
|
+
|
228
|
+
### Parameters
|
229
|
+
|
230
|
+
|
231
|
+
Name | Type | Description | Notes
|
232
|
+
------------- | ------------- | ------------- | -------------
|
233
|
+
**deposit_request** | [**DepositRequest**](DepositRequest.md)| Request describes one or more pending deposits for the given currency. |
|
234
|
+
|
235
|
+
### Return type
|
236
|
+
|
237
|
+
nil (empty response body)
|
238
|
+
|
239
|
+
### Authorization
|
240
|
+
|
241
|
+
[Bearer](../README.md#Bearer)
|
242
|
+
|
243
|
+
### HTTP request headers
|
244
|
+
|
245
|
+
- **Content-Type**: application/json
|
246
|
+
- **Accept**: Not defined
|
247
|
+
|
248
|
+
|
249
|
+
## get_balances
|
250
|
+
|
251
|
+
> PoolListResponse get_balances(opts)
|
252
|
+
|
253
|
+
Retrieves the funding position for the Marketplace for each supported currency. If the optional query parameter is provided, the response will include only the specified currency (EUR, GBP, USD).
|
254
|
+
|
255
|
+
### Example
|
256
|
+
|
257
|
+
```ruby
|
258
|
+
# load the gem
|
259
|
+
require 'yapstone-payouts'
|
260
|
+
# setup authorization
|
261
|
+
Yapstone.configure do |config|
|
262
|
+
# Configure Bearer authorization (JWT): Bearer
|
263
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
264
|
+
end
|
265
|
+
|
266
|
+
api_instance = Yapstone::PayoutsApi.new
|
267
|
+
opts = {
|
268
|
+
marketplace: 'marketplace_example', # String | Optional Marketplace Id to filter the balances. If not passed default marketplace from app token will be used
|
269
|
+
currency: 'currency_example' # String | The currency for the balance inquiry (returns all by default)
|
270
|
+
}
|
271
|
+
|
272
|
+
begin
|
273
|
+
# Retrieves the funding position for the Marketplace for each supported currency. If the optional query parameter is provided, the response will include only the specified currency (EUR, GBP, USD).
|
274
|
+
result = api_instance.get_balances(opts)
|
275
|
+
p result
|
276
|
+
rescue Yapstone::ApiError => e
|
277
|
+
puts "Exception when calling PayoutsApi->get_balances: #{e}"
|
278
|
+
end
|
279
|
+
```
|
280
|
+
|
281
|
+
### Parameters
|
282
|
+
|
283
|
+
|
284
|
+
Name | Type | Description | Notes
|
285
|
+
------------- | ------------- | ------------- | -------------
|
286
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the balances. If not passed default marketplace from app token will be used | [optional]
|
287
|
+
**currency** | **String**| The currency for the balance inquiry (returns all by default) | [optional]
|
288
|
+
|
289
|
+
### Return type
|
290
|
+
|
291
|
+
[**PoolListResponse**](PoolListResponse.md)
|
292
|
+
|
293
|
+
### Authorization
|
294
|
+
|
295
|
+
[Bearer](../README.md#Bearer)
|
296
|
+
|
297
|
+
### HTTP request headers
|
298
|
+
|
299
|
+
- **Content-Type**: Not defined
|
300
|
+
- **Accept**: application/json
|
301
|
+
|
302
|
+
|
303
|
+
## get_deposit
|
304
|
+
|
305
|
+
> Deposit get_deposit(deposit_id)
|
306
|
+
|
307
|
+
Returns the deposit detail and status history for the given depositId.
|
308
|
+
|
309
|
+
### Example
|
310
|
+
|
311
|
+
```ruby
|
312
|
+
# load the gem
|
313
|
+
require 'yapstone-payouts'
|
314
|
+
# setup authorization
|
315
|
+
Yapstone.configure do |config|
|
316
|
+
# Configure Bearer authorization (JWT): Bearer
|
317
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
318
|
+
end
|
319
|
+
|
320
|
+
api_instance = Yapstone::PayoutsApi.new
|
321
|
+
deposit_id = 'deposit_id_example' # String | Primary key for a single deposit record (assigned by YapStone)
|
322
|
+
|
323
|
+
begin
|
324
|
+
#Returns the deposit detail and status history for the given depositId.
|
325
|
+
result = api_instance.get_deposit(deposit_id)
|
326
|
+
p result
|
327
|
+
rescue Yapstone::ApiError => e
|
328
|
+
puts "Exception when calling PayoutsApi->get_deposit: #{e}"
|
329
|
+
end
|
330
|
+
```
|
331
|
+
|
332
|
+
### Parameters
|
333
|
+
|
334
|
+
|
335
|
+
Name | Type | Description | Notes
|
336
|
+
------------- | ------------- | ------------- | -------------
|
337
|
+
**deposit_id** | **String**| Primary key for a single deposit record (assigned by YapStone) |
|
338
|
+
|
339
|
+
### Return type
|
340
|
+
|
341
|
+
[**Deposit**](Deposit.md)
|
342
|
+
|
343
|
+
### Authorization
|
344
|
+
|
345
|
+
[Bearer](../README.md#Bearer)
|
346
|
+
|
347
|
+
### HTTP request headers
|
348
|
+
|
349
|
+
- **Content-Type**: Not defined
|
350
|
+
- **Accept**: application/json
|
351
|
+
|
352
|
+
|
353
|
+
## get_deposits_by_bank_reference_tag
|
354
|
+
|
355
|
+
> DepositListResponse get_deposits_by_bank_reference_tag(bank_reference_tag, opts)
|
356
|
+
|
357
|
+
Returns all pool activities matching given bank reference tag.
|
358
|
+
|
359
|
+
### Example
|
360
|
+
|
361
|
+
```ruby
|
362
|
+
# load the gem
|
363
|
+
require 'yapstone-payouts'
|
364
|
+
# setup authorization
|
365
|
+
Yapstone.configure do |config|
|
366
|
+
# Configure Bearer authorization (JWT): Bearer
|
367
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
368
|
+
end
|
369
|
+
|
370
|
+
api_instance = Yapstone::PayoutsApi.new
|
371
|
+
bank_reference_tag = 'bank_reference_tag_example' # String | Partial bank reference identifier for a single deposit record
|
372
|
+
opts = {
|
373
|
+
from_date: 'from_date_example', # String | From date. Format YYYY-MM-DD
|
374
|
+
to_date: 'to_date_example', # String | To date. Format YYYY-MM-DD
|
375
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the deposits. If not passed, default marketplace from app token will be used if applicable.
|
376
|
+
}
|
377
|
+
|
378
|
+
begin
|
379
|
+
#Returns all pool activities matching given bank reference tag.
|
380
|
+
result = api_instance.get_deposits_by_bank_reference_tag(bank_reference_tag, opts)
|
381
|
+
p result
|
382
|
+
rescue Yapstone::ApiError => e
|
383
|
+
puts "Exception when calling PayoutsApi->get_deposits_by_bank_reference_tag: #{e}"
|
384
|
+
end
|
385
|
+
```
|
386
|
+
|
387
|
+
### Parameters
|
388
|
+
|
389
|
+
|
390
|
+
Name | Type | Description | Notes
|
391
|
+
------------- | ------------- | ------------- | -------------
|
392
|
+
**bank_reference_tag** | **String**| Partial bank reference identifier for a single deposit record |
|
393
|
+
**from_date** | **String**| From date. Format YYYY-MM-DD | [optional]
|
394
|
+
**to_date** | **String**| To date. Format YYYY-MM-DD | [optional]
|
395
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the deposits. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
396
|
+
|
397
|
+
### Return type
|
398
|
+
|
399
|
+
[**DepositListResponse**](DepositListResponse.md)
|
400
|
+
|
401
|
+
### Authorization
|
402
|
+
|
403
|
+
[Bearer](../README.md#Bearer)
|
404
|
+
|
405
|
+
### HTTP request headers
|
406
|
+
|
407
|
+
- **Content-Type**: Not defined
|
408
|
+
- **Accept**: application/json
|
409
|
+
|
410
|
+
|
411
|
+
## get_deposits_by_client_unique_txn_id
|
412
|
+
|
413
|
+
> DepositListResponse get_deposits_by_client_unique_txn_id(client_unique_txn_id, opts)
|
414
|
+
|
415
|
+
Returns all pool activities matching given client unique transaction id.
|
416
|
+
|
417
|
+
### Example
|
418
|
+
|
419
|
+
```ruby
|
420
|
+
# load the gem
|
421
|
+
require 'yapstone-payouts'
|
422
|
+
# setup authorization
|
423
|
+
Yapstone.configure do |config|
|
424
|
+
# Configure Bearer authorization (JWT): Bearer
|
425
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
426
|
+
end
|
427
|
+
|
428
|
+
api_instance = Yapstone::PayoutsApi.new
|
429
|
+
client_unique_txn_id = 'client_unique_txn_id_example' # String | Alternate key for a single deposit record (assigned by Marketplace)
|
430
|
+
opts = {
|
431
|
+
from_date: 'from_date_example', # String | From date. Format YYYY-MM-DD
|
432
|
+
to_date: 'to_date_example', # String | To date. Format YYYY-MM-DD
|
433
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the deposits. If not passed, default marketplace from app token will be used if applicable.
|
434
|
+
}
|
435
|
+
|
436
|
+
begin
|
437
|
+
#Returns all pool activities matching given client unique transaction id.
|
438
|
+
result = api_instance.get_deposits_by_client_unique_txn_id(client_unique_txn_id, opts)
|
439
|
+
p result
|
440
|
+
rescue Yapstone::ApiError => e
|
441
|
+
puts "Exception when calling PayoutsApi->get_deposits_by_client_unique_txn_id: #{e}"
|
442
|
+
end
|
443
|
+
```
|
444
|
+
|
445
|
+
### Parameters
|
446
|
+
|
447
|
+
|
448
|
+
Name | Type | Description | Notes
|
449
|
+
------------- | ------------- | ------------- | -------------
|
450
|
+
**client_unique_txn_id** | **String**| Alternate key for a single deposit record (assigned by Marketplace) |
|
451
|
+
**from_date** | **String**| From date. Format YYYY-MM-DD | [optional]
|
452
|
+
**to_date** | **String**| To date. Format YYYY-MM-DD | [optional]
|
453
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the deposits. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
454
|
+
|
455
|
+
### Return type
|
456
|
+
|
457
|
+
[**DepositListResponse**](DepositListResponse.md)
|
458
|
+
|
459
|
+
### Authorization
|
460
|
+
|
461
|
+
[Bearer](../README.md#Bearer)
|
462
|
+
|
463
|
+
### HTTP request headers
|
464
|
+
|
465
|
+
- **Content-Type**: Not defined
|
466
|
+
- **Accept**: application/json
|
467
|
+
|
468
|
+
|
469
|
+
## get_deposits_by_correlation_id
|
470
|
+
|
471
|
+
> DepositListResponse get_deposits_by_correlation_id(client_correlation_id, opts)
|
472
|
+
|
473
|
+
Returns all pool activities matching given client correlation id.
|
474
|
+
|
475
|
+
### Example
|
476
|
+
|
477
|
+
```ruby
|
478
|
+
# load the gem
|
479
|
+
require 'yapstone-payouts'
|
480
|
+
# setup authorization
|
481
|
+
Yapstone.configure do |config|
|
482
|
+
# Configure Bearer authorization (JWT): Bearer
|
483
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
484
|
+
end
|
485
|
+
|
486
|
+
api_instance = Yapstone::PayoutsApi.new
|
487
|
+
client_correlation_id = 'client_correlation_id_example' # String | Correlation identifier assigned to one or more deposits by the Marketplace
|
488
|
+
opts = {
|
489
|
+
from_date: 'from_date_example', # String | From date. Format YYYY-MM-DD
|
490
|
+
to_date: 'to_date_example', # String | To date. Format YYYY-MM-DD
|
491
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the deposits. If not passed, default marketplace from app token will be used if applicable.
|
492
|
+
}
|
493
|
+
|
494
|
+
begin
|
495
|
+
#Returns all pool activities matching given client correlation id.
|
496
|
+
result = api_instance.get_deposits_by_correlation_id(client_correlation_id, opts)
|
497
|
+
p result
|
498
|
+
rescue Yapstone::ApiError => e
|
499
|
+
puts "Exception when calling PayoutsApi->get_deposits_by_correlation_id: #{e}"
|
500
|
+
end
|
501
|
+
```
|
502
|
+
|
503
|
+
### Parameters
|
504
|
+
|
505
|
+
|
506
|
+
Name | Type | Description | Notes
|
507
|
+
------------- | ------------- | ------------- | -------------
|
508
|
+
**client_correlation_id** | **String**| Correlation identifier assigned to one or more deposits by the Marketplace |
|
509
|
+
**from_date** | **String**| From date. Format YYYY-MM-DD | [optional]
|
510
|
+
**to_date** | **String**| To date. Format YYYY-MM-DD | [optional]
|
511
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the deposits. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
512
|
+
|
513
|
+
### Return type
|
514
|
+
|
515
|
+
[**DepositListResponse**](DepositListResponse.md)
|
516
|
+
|
517
|
+
### Authorization
|
518
|
+
|
519
|
+
[Bearer](../README.md#Bearer)
|
520
|
+
|
521
|
+
### HTTP request headers
|
522
|
+
|
523
|
+
- **Content-Type**: Not defined
|
524
|
+
- **Accept**: application/json
|
525
|
+
|
526
|
+
|
527
|
+
## get_deposits_by_correlation_id_and_status
|
528
|
+
|
529
|
+
> DepositListResponse get_deposits_by_correlation_id_and_status(client_correlation_id, current_status, opts)
|
530
|
+
|
531
|
+
Returns all pool activities matching given client correlation id and status.
|
532
|
+
|
533
|
+
### Example
|
534
|
+
|
535
|
+
```ruby
|
536
|
+
# load the gem
|
537
|
+
require 'yapstone-payouts'
|
538
|
+
# setup authorization
|
539
|
+
Yapstone.configure do |config|
|
540
|
+
# Configure Bearer authorization (JWT): Bearer
|
541
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
542
|
+
end
|
543
|
+
|
544
|
+
api_instance = Yapstone::PayoutsApi.new
|
545
|
+
client_correlation_id = 'client_correlation_id_example' # String | Correlation identifier assigned to one or more deposits by the Marketplace
|
546
|
+
current_status = 'current_status_example' # String | Current deposit status of the pool activity
|
547
|
+
opts = {
|
548
|
+
from_date: 'from_date_example', # String | From date. Format YYYY-MM-DD
|
549
|
+
to_date: 'to_date_example', # String | To date. Format YYYY-MM-DD
|
550
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the deposits. If not passed, default marketplace from app token will be used if applicable.
|
551
|
+
}
|
552
|
+
|
553
|
+
begin
|
554
|
+
#Returns all pool activities matching given client correlation id and status.
|
555
|
+
result = api_instance.get_deposits_by_correlation_id_and_status(client_correlation_id, current_status, opts)
|
556
|
+
p result
|
557
|
+
rescue Yapstone::ApiError => e
|
558
|
+
puts "Exception when calling PayoutsApi->get_deposits_by_correlation_id_and_status: #{e}"
|
559
|
+
end
|
560
|
+
```
|
561
|
+
|
562
|
+
### Parameters
|
563
|
+
|
564
|
+
|
565
|
+
Name | Type | Description | Notes
|
566
|
+
------------- | ------------- | ------------- | -------------
|
567
|
+
**client_correlation_id** | **String**| Correlation identifier assigned to one or more deposits by the Marketplace |
|
568
|
+
**current_status** | **String**| Current deposit status of the pool activity |
|
569
|
+
**from_date** | **String**| From date. Format YYYY-MM-DD | [optional]
|
570
|
+
**to_date** | **String**| To date. Format YYYY-MM-DD | [optional]
|
571
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the deposits. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
572
|
+
|
573
|
+
### Return type
|
574
|
+
|
575
|
+
[**DepositListResponse**](DepositListResponse.md)
|
576
|
+
|
577
|
+
### Authorization
|
578
|
+
|
579
|
+
[Bearer](../README.md#Bearer)
|
580
|
+
|
581
|
+
### HTTP request headers
|
582
|
+
|
583
|
+
- **Content-Type**: Not defined
|
584
|
+
- **Accept**: application/json
|
585
|
+
|
586
|
+
|
587
|
+
## get_deposits_by_currency
|
588
|
+
|
589
|
+
> DepositListResponse get_deposits_by_currency(currency, opts)
|
590
|
+
|
591
|
+
Returns all pool activities matching given currency.
|
592
|
+
|
593
|
+
### Example
|
594
|
+
|
595
|
+
```ruby
|
596
|
+
# load the gem
|
597
|
+
require 'yapstone-payouts'
|
598
|
+
# setup authorization
|
599
|
+
Yapstone.configure do |config|
|
600
|
+
# Configure Bearer authorization (JWT): Bearer
|
601
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
602
|
+
end
|
603
|
+
|
604
|
+
api_instance = Yapstone::PayoutsApi.new
|
605
|
+
currency = 'currency_example' # String | The currency for a set of deposits (EUR, GBP, USD)
|
606
|
+
opts = {
|
607
|
+
from_date: 'from_date_example', # String | From date. Format YYYY-MM-DD
|
608
|
+
to_date: 'to_date_example', # String | To date. Format YYYY-MM-DD
|
609
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the deposits. If not passed, default marketplace from app token will be used if applicable.
|
610
|
+
}
|
611
|
+
|
612
|
+
begin
|
613
|
+
#Returns all pool activities matching given currency.
|
614
|
+
result = api_instance.get_deposits_by_currency(currency, opts)
|
615
|
+
p result
|
616
|
+
rescue Yapstone::ApiError => e
|
617
|
+
puts "Exception when calling PayoutsApi->get_deposits_by_currency: #{e}"
|
618
|
+
end
|
619
|
+
```
|
620
|
+
|
621
|
+
### Parameters
|
622
|
+
|
623
|
+
|
624
|
+
Name | Type | Description | Notes
|
625
|
+
------------- | ------------- | ------------- | -------------
|
626
|
+
**currency** | **String**| The currency for a set of deposits (EUR, GBP, USD) |
|
627
|
+
**from_date** | **String**| From date. Format YYYY-MM-DD | [optional]
|
628
|
+
**to_date** | **String**| To date. Format YYYY-MM-DD | [optional]
|
629
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the deposits. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
630
|
+
|
631
|
+
### Return type
|
632
|
+
|
633
|
+
[**DepositListResponse**](DepositListResponse.md)
|
634
|
+
|
635
|
+
### Authorization
|
636
|
+
|
637
|
+
[Bearer](../README.md#Bearer)
|
638
|
+
|
639
|
+
### HTTP request headers
|
640
|
+
|
641
|
+
- **Content-Type**: Not defined
|
642
|
+
- **Accept**: application/json
|
643
|
+
|
644
|
+
|
645
|
+
## get_deposits_by_status
|
646
|
+
|
647
|
+
> DepositListResponse get_deposits_by_status(current_status, opts)
|
648
|
+
|
649
|
+
Returns all pool activities matching given current status.
|
650
|
+
|
651
|
+
### Example
|
652
|
+
|
653
|
+
```ruby
|
654
|
+
# load the gem
|
655
|
+
require 'yapstone-payouts'
|
656
|
+
# setup authorization
|
657
|
+
Yapstone.configure do |config|
|
658
|
+
# Configure Bearer authorization (JWT): Bearer
|
659
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
660
|
+
end
|
661
|
+
|
662
|
+
api_instance = Yapstone::PayoutsApi.new
|
663
|
+
current_status = 'current_status_example' # String | Current deposit status of the pool activity
|
664
|
+
opts = {
|
665
|
+
from_date: 'from_date_example', # String | From date. Format YYYY-MM-DD
|
666
|
+
to_date: 'to_date_example', # String | To date. Format YYYY-MM-DD
|
667
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the deposits. If not passed, default marketplace from app token will be used if applicable.
|
668
|
+
}
|
669
|
+
|
670
|
+
begin
|
671
|
+
#Returns all pool activities matching given current status.
|
672
|
+
result = api_instance.get_deposits_by_status(current_status, opts)
|
673
|
+
p result
|
674
|
+
rescue Yapstone::ApiError => e
|
675
|
+
puts "Exception when calling PayoutsApi->get_deposits_by_status: #{e}"
|
676
|
+
end
|
677
|
+
```
|
678
|
+
|
679
|
+
### Parameters
|
680
|
+
|
681
|
+
|
682
|
+
Name | Type | Description | Notes
|
683
|
+
------------- | ------------- | ------------- | -------------
|
684
|
+
**current_status** | **String**| Current deposit status of the pool activity |
|
685
|
+
**from_date** | **String**| From date. Format YYYY-MM-DD | [optional]
|
686
|
+
**to_date** | **String**| To date. Format YYYY-MM-DD | [optional]
|
687
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the deposits. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
688
|
+
|
689
|
+
### Return type
|
690
|
+
|
691
|
+
[**DepositListResponse**](DepositListResponse.md)
|
692
|
+
|
693
|
+
### Authorization
|
694
|
+
|
695
|
+
[Bearer](../README.md#Bearer)
|
696
|
+
|
697
|
+
### HTTP request headers
|
698
|
+
|
699
|
+
- **Content-Type**: Not defined
|
700
|
+
- **Accept**: application/json
|
701
|
+
|
702
|
+
|
703
|
+
## get_disbursements_by_client_correlation_id
|
704
|
+
|
705
|
+
> DisbursementListResponse get_disbursements_by_client_correlation_id(client_correlation_id, opts)
|
706
|
+
|
707
|
+
Returns all disbursement transactions matching given correlation id.
|
708
|
+
|
709
|
+
### Example
|
710
|
+
|
711
|
+
```ruby
|
712
|
+
# load the gem
|
713
|
+
require 'yapstone-payouts'
|
714
|
+
# setup authorization
|
715
|
+
Yapstone.configure do |config|
|
716
|
+
# Configure Bearer authorization (JWT): Bearer
|
717
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
718
|
+
end
|
719
|
+
|
720
|
+
api_instance = Yapstone::PayoutsApi.new
|
721
|
+
client_correlation_id = 'client_correlation_id_example' # String | Correlation identifier assigned to one or more disbursements by the Marketplace
|
722
|
+
opts = {
|
723
|
+
from_date: 'from_date_example', # String | From date. Format YYYY-MM-DD
|
724
|
+
to_date: 'to_date_example', # String | To date. Format YYYY-MM-DD
|
725
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable.
|
726
|
+
}
|
727
|
+
|
728
|
+
begin
|
729
|
+
#Returns all disbursement transactions matching given correlation id.
|
730
|
+
result = api_instance.get_disbursements_by_client_correlation_id(client_correlation_id, opts)
|
731
|
+
p result
|
732
|
+
rescue Yapstone::ApiError => e
|
733
|
+
puts "Exception when calling PayoutsApi->get_disbursements_by_client_correlation_id: #{e}"
|
734
|
+
end
|
735
|
+
```
|
736
|
+
|
737
|
+
### Parameters
|
738
|
+
|
739
|
+
|
740
|
+
Name | Type | Description | Notes
|
741
|
+
------------- | ------------- | ------------- | -------------
|
742
|
+
**client_correlation_id** | **String**| Correlation identifier assigned to one or more disbursements by the Marketplace |
|
743
|
+
**from_date** | **String**| From date. Format YYYY-MM-DD | [optional]
|
744
|
+
**to_date** | **String**| To date. Format YYYY-MM-DD | [optional]
|
745
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
746
|
+
|
747
|
+
### Return type
|
748
|
+
|
749
|
+
[**DisbursementListResponse**](DisbursementListResponse.md)
|
750
|
+
|
751
|
+
### Authorization
|
752
|
+
|
753
|
+
[Bearer](../README.md#Bearer)
|
754
|
+
|
755
|
+
### HTTP request headers
|
756
|
+
|
757
|
+
- **Content-Type**: Not defined
|
758
|
+
- **Accept**: application/json
|
759
|
+
|
760
|
+
|
761
|
+
## get_disbursements_by_client_unique_txn_id
|
762
|
+
|
763
|
+
> DisbursementListResponse get_disbursements_by_client_unique_txn_id(client_unique_txn_id, opts)
|
764
|
+
|
765
|
+
Returns all disbursement transactions matching given unique id.
|
766
|
+
|
767
|
+
### Example
|
768
|
+
|
769
|
+
```ruby
|
770
|
+
# load the gem
|
771
|
+
require 'yapstone-payouts'
|
772
|
+
# setup authorization
|
773
|
+
Yapstone.configure do |config|
|
774
|
+
# Configure Bearer authorization (JWT): Bearer
|
775
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
776
|
+
end
|
777
|
+
|
778
|
+
api_instance = Yapstone::PayoutsApi.new
|
779
|
+
client_unique_txn_id = 'client_unique_txn_id_example' # String | Alternate key for a single disbursement record (assigned by Marketplace)
|
780
|
+
opts = {
|
781
|
+
from_date: 'from_date_example', # String | From date. Format YYYY-MM-DD
|
782
|
+
to_date: 'to_date_example', # String | To date. Format YYYY-MM-DD
|
783
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable.
|
784
|
+
}
|
785
|
+
|
786
|
+
begin
|
787
|
+
#Returns all disbursement transactions matching given unique id.
|
788
|
+
result = api_instance.get_disbursements_by_client_unique_txn_id(client_unique_txn_id, opts)
|
789
|
+
p result
|
790
|
+
rescue Yapstone::ApiError => e
|
791
|
+
puts "Exception when calling PayoutsApi->get_disbursements_by_client_unique_txn_id: #{e}"
|
792
|
+
end
|
793
|
+
```
|
794
|
+
|
795
|
+
### Parameters
|
796
|
+
|
797
|
+
|
798
|
+
Name | Type | Description | Notes
|
799
|
+
------------- | ------------- | ------------- | -------------
|
800
|
+
**client_unique_txn_id** | **String**| Alternate key for a single disbursement record (assigned by Marketplace) |
|
801
|
+
**from_date** | **String**| From date. Format YYYY-MM-DD | [optional]
|
802
|
+
**to_date** | **String**| To date. Format YYYY-MM-DD | [optional]
|
803
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
804
|
+
|
805
|
+
### Return type
|
806
|
+
|
807
|
+
[**DisbursementListResponse**](DisbursementListResponse.md)
|
808
|
+
|
809
|
+
### Authorization
|
810
|
+
|
811
|
+
[Bearer](../README.md#Bearer)
|
812
|
+
|
813
|
+
### HTTP request headers
|
814
|
+
|
815
|
+
- **Content-Type**: Not defined
|
816
|
+
- **Accept**: application/json
|
817
|
+
|
818
|
+
|
819
|
+
## get_disbursements_by_contract_id
|
820
|
+
|
821
|
+
> DisbursementListResponse get_disbursements_by_contract_id(contract_id, opts)
|
822
|
+
|
823
|
+
Returns all disbursement transactions matching given contract id.
|
824
|
+
|
825
|
+
### Example
|
826
|
+
|
827
|
+
```ruby
|
828
|
+
# load the gem
|
829
|
+
require 'yapstone-payouts'
|
830
|
+
# setup authorization
|
831
|
+
Yapstone.configure do |config|
|
832
|
+
# Configure Bearer authorization (JWT): Bearer
|
833
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
834
|
+
end
|
835
|
+
|
836
|
+
api_instance = Yapstone::PayoutsApi.new
|
837
|
+
contract_id = 'contract_id_example' # String | Primary identifier used to designate a payee (assigned by YapStone)
|
838
|
+
opts = {
|
839
|
+
from_date: 'from_date_example', # String | From date. Format YYYY-MM-DD
|
840
|
+
to_date: 'to_date_example', # String | To date. Format YYYY-MM-DD
|
841
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable.
|
842
|
+
}
|
843
|
+
|
844
|
+
begin
|
845
|
+
#Returns all disbursement transactions matching given contract id.
|
846
|
+
result = api_instance.get_disbursements_by_contract_id(contract_id, opts)
|
847
|
+
p result
|
848
|
+
rescue Yapstone::ApiError => e
|
849
|
+
puts "Exception when calling PayoutsApi->get_disbursements_by_contract_id: #{e}"
|
850
|
+
end
|
851
|
+
```
|
852
|
+
|
853
|
+
### Parameters
|
854
|
+
|
855
|
+
|
856
|
+
Name | Type | Description | Notes
|
857
|
+
------------- | ------------- | ------------- | -------------
|
858
|
+
**contract_id** | **String**| Primary identifier used to designate a payee (assigned by YapStone) |
|
859
|
+
**from_date** | **String**| From date. Format YYYY-MM-DD | [optional]
|
860
|
+
**to_date** | **String**| To date. Format YYYY-MM-DD | [optional]
|
861
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
862
|
+
|
863
|
+
### Return type
|
864
|
+
|
865
|
+
[**DisbursementListResponse**](DisbursementListResponse.md)
|
866
|
+
|
867
|
+
### Authorization
|
868
|
+
|
869
|
+
[Bearer](../README.md#Bearer)
|
870
|
+
|
871
|
+
### HTTP request headers
|
872
|
+
|
873
|
+
- **Content-Type**: Not defined
|
874
|
+
- **Accept**: application/json
|
875
|
+
|
876
|
+
|
877
|
+
## get_disbursements_by_correlation_id_and_status
|
878
|
+
|
879
|
+
> DisbursementListResponse get_disbursements_by_correlation_id_and_status(client_correlation_id, current_status, opts)
|
880
|
+
|
881
|
+
Returns all disbursement transactions matching given correlation id and status.
|
882
|
+
|
883
|
+
### Example
|
884
|
+
|
885
|
+
```ruby
|
886
|
+
# load the gem
|
887
|
+
require 'yapstone-payouts'
|
888
|
+
# setup authorization
|
889
|
+
Yapstone.configure do |config|
|
890
|
+
# Configure Bearer authorization (JWT): Bearer
|
891
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
892
|
+
end
|
893
|
+
|
894
|
+
api_instance = Yapstone::PayoutsApi.new
|
895
|
+
client_correlation_id = 'client_correlation_id_example' # String | Correlation identifier assigned to one or more disbursements by the Marketplace
|
896
|
+
current_status = 'current_status_example' # String | Current disbursement status
|
897
|
+
opts = {
|
898
|
+
from_date: 'from_date_example', # String | From date. Format YYYY-MM-DD
|
899
|
+
to_date: 'to_date_example', # String | To date. Format YYYY-MM-DD
|
900
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable.
|
901
|
+
}
|
902
|
+
|
903
|
+
begin
|
904
|
+
#Returns all disbursement transactions matching given correlation id and status.
|
905
|
+
result = api_instance.get_disbursements_by_correlation_id_and_status(client_correlation_id, current_status, opts)
|
906
|
+
p result
|
907
|
+
rescue Yapstone::ApiError => e
|
908
|
+
puts "Exception when calling PayoutsApi->get_disbursements_by_correlation_id_and_status: #{e}"
|
909
|
+
end
|
910
|
+
```
|
911
|
+
|
912
|
+
### Parameters
|
913
|
+
|
914
|
+
|
915
|
+
Name | Type | Description | Notes
|
916
|
+
------------- | ------------- | ------------- | -------------
|
917
|
+
**client_correlation_id** | **String**| Correlation identifier assigned to one or more disbursements by the Marketplace |
|
918
|
+
**current_status** | **String**| Current disbursement status |
|
919
|
+
**from_date** | **String**| From date. Format YYYY-MM-DD | [optional]
|
920
|
+
**to_date** | **String**| To date. Format YYYY-MM-DD | [optional]
|
921
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
922
|
+
|
923
|
+
### Return type
|
924
|
+
|
925
|
+
[**DisbursementListResponse**](DisbursementListResponse.md)
|
926
|
+
|
927
|
+
### Authorization
|
928
|
+
|
929
|
+
[Bearer](../README.md#Bearer)
|
930
|
+
|
931
|
+
### HTTP request headers
|
932
|
+
|
933
|
+
- **Content-Type**: Not defined
|
934
|
+
- **Accept**: application/json
|
935
|
+
|
936
|
+
|
937
|
+
## get_disbursements_by_currency
|
938
|
+
|
939
|
+
> DisbursementListResponse get_disbursements_by_currency(currency, opts)
|
940
|
+
|
941
|
+
Returns all disbursement transactions matching given contract id.
|
942
|
+
|
943
|
+
### Example
|
944
|
+
|
945
|
+
```ruby
|
946
|
+
# load the gem
|
947
|
+
require 'yapstone-payouts'
|
948
|
+
# setup authorization
|
949
|
+
Yapstone.configure do |config|
|
950
|
+
# Configure Bearer authorization (JWT): Bearer
|
951
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
952
|
+
end
|
953
|
+
|
954
|
+
api_instance = Yapstone::PayoutsApi.new
|
955
|
+
currency = 'currency_example' # String | The currency for a set of disbursements (EUR, GBP, USD)
|
956
|
+
opts = {
|
957
|
+
from_date: 'from_date_example', # String | From date. Format YYYY-MM-DD
|
958
|
+
to_date: 'to_date_example', # String | To date. Format YYYY-MM-DD
|
959
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable.
|
960
|
+
}
|
961
|
+
|
962
|
+
begin
|
963
|
+
#Returns all disbursement transactions matching given contract id.
|
964
|
+
result = api_instance.get_disbursements_by_currency(currency, opts)
|
965
|
+
p result
|
966
|
+
rescue Yapstone::ApiError => e
|
967
|
+
puts "Exception when calling PayoutsApi->get_disbursements_by_currency: #{e}"
|
968
|
+
end
|
969
|
+
```
|
970
|
+
|
971
|
+
### Parameters
|
972
|
+
|
973
|
+
|
974
|
+
Name | Type | Description | Notes
|
975
|
+
------------- | ------------- | ------------- | -------------
|
976
|
+
**currency** | **String**| The currency for a set of disbursements (EUR, GBP, USD) |
|
977
|
+
**from_date** | **String**| From date. Format YYYY-MM-DD | [optional]
|
978
|
+
**to_date** | **String**| To date. Format YYYY-MM-DD | [optional]
|
979
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
980
|
+
|
981
|
+
### Return type
|
982
|
+
|
983
|
+
[**DisbursementListResponse**](DisbursementListResponse.md)
|
984
|
+
|
985
|
+
### Authorization
|
986
|
+
|
987
|
+
[Bearer](../README.md#Bearer)
|
988
|
+
|
989
|
+
### HTTP request headers
|
990
|
+
|
991
|
+
- **Content-Type**: Not defined
|
992
|
+
- **Accept**: application/json
|
993
|
+
|
994
|
+
|
995
|
+
## get_disbursements_by_instrument_id
|
996
|
+
|
997
|
+
> DisbursementListResponse get_disbursements_by_instrument_id(payee_instrument_id, opts)
|
998
|
+
|
999
|
+
Returns all disbursement transactions matching given contract id.
|
1000
|
+
|
1001
|
+
### Example
|
1002
|
+
|
1003
|
+
```ruby
|
1004
|
+
# load the gem
|
1005
|
+
require 'yapstone-payouts'
|
1006
|
+
# setup authorization
|
1007
|
+
Yapstone.configure do |config|
|
1008
|
+
# Configure Bearer authorization (JWT): Bearer
|
1009
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
api_instance = Yapstone::PayoutsApi.new
|
1013
|
+
payee_instrument_id = 'payee_instrument_id_example' # String | Primary identifier used to designate a payment instrument (assigned by YapStone)
|
1014
|
+
opts = {
|
1015
|
+
from_date: 'from_date_example', # String | From date. Format YYYY-MM-DD
|
1016
|
+
to_date: 'to_date_example', # String | To date. Format YYYY-MM-DD
|
1017
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable.
|
1018
|
+
}
|
1019
|
+
|
1020
|
+
begin
|
1021
|
+
#Returns all disbursement transactions matching given contract id.
|
1022
|
+
result = api_instance.get_disbursements_by_instrument_id(payee_instrument_id, opts)
|
1023
|
+
p result
|
1024
|
+
rescue Yapstone::ApiError => e
|
1025
|
+
puts "Exception when calling PayoutsApi->get_disbursements_by_instrument_id: #{e}"
|
1026
|
+
end
|
1027
|
+
```
|
1028
|
+
|
1029
|
+
### Parameters
|
1030
|
+
|
1031
|
+
|
1032
|
+
Name | Type | Description | Notes
|
1033
|
+
------------- | ------------- | ------------- | -------------
|
1034
|
+
**payee_instrument_id** | **String**| Primary identifier used to designate a payment instrument (assigned by YapStone) |
|
1035
|
+
**from_date** | **String**| From date. Format YYYY-MM-DD | [optional]
|
1036
|
+
**to_date** | **String**| To date. Format YYYY-MM-DD | [optional]
|
1037
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
1038
|
+
|
1039
|
+
### Return type
|
1040
|
+
|
1041
|
+
[**DisbursementListResponse**](DisbursementListResponse.md)
|
1042
|
+
|
1043
|
+
### Authorization
|
1044
|
+
|
1045
|
+
[Bearer](../README.md#Bearer)
|
1046
|
+
|
1047
|
+
### HTTP request headers
|
1048
|
+
|
1049
|
+
- **Content-Type**: Not defined
|
1050
|
+
- **Accept**: application/json
|
1051
|
+
|
1052
|
+
|
1053
|
+
## get_disbursements_by_order_id
|
1054
|
+
|
1055
|
+
> DisbursementListResponse get_disbursements_by_order_id(order_id, opts)
|
1056
|
+
|
1057
|
+
Returns all disbursement transactions matching given order id.
|
1058
|
+
|
1059
|
+
### Example
|
1060
|
+
|
1061
|
+
```ruby
|
1062
|
+
# load the gem
|
1063
|
+
require 'yapstone-payouts'
|
1064
|
+
# setup authorization
|
1065
|
+
Yapstone.configure do |config|
|
1066
|
+
# Configure Bearer authorization (JWT): Bearer
|
1067
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
api_instance = Yapstone::PayoutsApi.new
|
1071
|
+
order_id = 'order_id_example' # String | Group identifer for a set of disbursements created via a single API request (assigned by YapStone)
|
1072
|
+
opts = {
|
1073
|
+
from_date: 'from_date_example', # String | From date. Format YYYY-MM-DD
|
1074
|
+
to_date: 'to_date_example', # String | To date. Format YYYY-MM-DD
|
1075
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable.
|
1076
|
+
}
|
1077
|
+
|
1078
|
+
begin
|
1079
|
+
#Returns all disbursement transactions matching given order id.
|
1080
|
+
result = api_instance.get_disbursements_by_order_id(order_id, opts)
|
1081
|
+
p result
|
1082
|
+
rescue Yapstone::ApiError => e
|
1083
|
+
puts "Exception when calling PayoutsApi->get_disbursements_by_order_id: #{e}"
|
1084
|
+
end
|
1085
|
+
```
|
1086
|
+
|
1087
|
+
### Parameters
|
1088
|
+
|
1089
|
+
|
1090
|
+
Name | Type | Description | Notes
|
1091
|
+
------------- | ------------- | ------------- | -------------
|
1092
|
+
**order_id** | **String**| Group identifer for a set of disbursements created via a single API request (assigned by YapStone) |
|
1093
|
+
**from_date** | **String**| From date. Format YYYY-MM-DD | [optional]
|
1094
|
+
**to_date** | **String**| To date. Format YYYY-MM-DD | [optional]
|
1095
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
1096
|
+
|
1097
|
+
### Return type
|
1098
|
+
|
1099
|
+
[**DisbursementListResponse**](DisbursementListResponse.md)
|
1100
|
+
|
1101
|
+
### Authorization
|
1102
|
+
|
1103
|
+
[Bearer](../README.md#Bearer)
|
1104
|
+
|
1105
|
+
### HTTP request headers
|
1106
|
+
|
1107
|
+
- **Content-Type**: Not defined
|
1108
|
+
- **Accept**: application/json
|
1109
|
+
|
1110
|
+
|
1111
|
+
## get_disbursements_by_party_id
|
1112
|
+
|
1113
|
+
> DisbursementListResponse get_disbursements_by_party_id(payee_party_id, opts)
|
1114
|
+
|
1115
|
+
Returns all disbursement transactions matching given contract id.
|
1116
|
+
|
1117
|
+
### Example
|
1118
|
+
|
1119
|
+
```ruby
|
1120
|
+
# load the gem
|
1121
|
+
require 'yapstone-payouts'
|
1122
|
+
# setup authorization
|
1123
|
+
Yapstone.configure do |config|
|
1124
|
+
# Configure Bearer authorization (JWT): Bearer
|
1125
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1126
|
+
end
|
1127
|
+
|
1128
|
+
api_instance = Yapstone::PayoutsApi.new
|
1129
|
+
payee_party_id = 'payee_party_id_example' # String | Primary identifier used to designate a payment recipient (assigned by YapStone)
|
1130
|
+
opts = {
|
1131
|
+
from_date: 'from_date_example', # String | From date. Format YYYY-MM-DD
|
1132
|
+
to_date: 'to_date_example', # String | To date. Format YYYY-MM-DD
|
1133
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable.
|
1134
|
+
}
|
1135
|
+
|
1136
|
+
begin
|
1137
|
+
#Returns all disbursement transactions matching given contract id.
|
1138
|
+
result = api_instance.get_disbursements_by_party_id(payee_party_id, opts)
|
1139
|
+
p result
|
1140
|
+
rescue Yapstone::ApiError => e
|
1141
|
+
puts "Exception when calling PayoutsApi->get_disbursements_by_party_id: #{e}"
|
1142
|
+
end
|
1143
|
+
```
|
1144
|
+
|
1145
|
+
### Parameters
|
1146
|
+
|
1147
|
+
|
1148
|
+
Name | Type | Description | Notes
|
1149
|
+
------------- | ------------- | ------------- | -------------
|
1150
|
+
**payee_party_id** | **String**| Primary identifier used to designate a payment recipient (assigned by YapStone) |
|
1151
|
+
**from_date** | **String**| From date. Format YYYY-MM-DD | [optional]
|
1152
|
+
**to_date** | **String**| To date. Format YYYY-MM-DD | [optional]
|
1153
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
1154
|
+
|
1155
|
+
### Return type
|
1156
|
+
|
1157
|
+
[**DisbursementListResponse**](DisbursementListResponse.md)
|
1158
|
+
|
1159
|
+
### Authorization
|
1160
|
+
|
1161
|
+
[Bearer](../README.md#Bearer)
|
1162
|
+
|
1163
|
+
### HTTP request headers
|
1164
|
+
|
1165
|
+
- **Content-Type**: Not defined
|
1166
|
+
- **Accept**: application/json
|
1167
|
+
|
1168
|
+
|
1169
|
+
## get_disbursements_by_status
|
1170
|
+
|
1171
|
+
> DisbursementListResponse get_disbursements_by_status(current_status, opts)
|
1172
|
+
|
1173
|
+
Returns all disbursement transactions matching given current status.
|
1174
|
+
|
1175
|
+
### Example
|
1176
|
+
|
1177
|
+
```ruby
|
1178
|
+
# load the gem
|
1179
|
+
require 'yapstone-payouts'
|
1180
|
+
# setup authorization
|
1181
|
+
Yapstone.configure do |config|
|
1182
|
+
# Configure Bearer authorization (JWT): Bearer
|
1183
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1184
|
+
end
|
1185
|
+
|
1186
|
+
api_instance = Yapstone::PayoutsApi.new
|
1187
|
+
current_status = 'current_status_example' # String | Current disbursement status
|
1188
|
+
opts = {
|
1189
|
+
from_date: 'from_date_example', # String | From date. Format YYYY-MM-DD
|
1190
|
+
to_date: 'to_date_example', # String | To date. Format YYYY-MM-DD
|
1191
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable.
|
1192
|
+
}
|
1193
|
+
|
1194
|
+
begin
|
1195
|
+
#Returns all disbursement transactions matching given current status.
|
1196
|
+
result = api_instance.get_disbursements_by_status(current_status, opts)
|
1197
|
+
p result
|
1198
|
+
rescue Yapstone::ApiError => e
|
1199
|
+
puts "Exception when calling PayoutsApi->get_disbursements_by_status: #{e}"
|
1200
|
+
end
|
1201
|
+
```
|
1202
|
+
|
1203
|
+
### Parameters
|
1204
|
+
|
1205
|
+
|
1206
|
+
Name | Type | Description | Notes
|
1207
|
+
------------- | ------------- | ------------- | -------------
|
1208
|
+
**current_status** | **String**| Current disbursement status |
|
1209
|
+
**from_date** | **String**| From date. Format YYYY-MM-DD | [optional]
|
1210
|
+
**to_date** | **String**| To date. Format YYYY-MM-DD | [optional]
|
1211
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the disbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
1212
|
+
|
1213
|
+
### Return type
|
1214
|
+
|
1215
|
+
[**DisbursementListResponse**](DisbursementListResponse.md)
|
1216
|
+
|
1217
|
+
### Authorization
|
1218
|
+
|
1219
|
+
[Bearer](../README.md#Bearer)
|
1220
|
+
|
1221
|
+
### HTTP request headers
|
1222
|
+
|
1223
|
+
- **Content-Type**: Not defined
|
1224
|
+
- **Accept**: application/json
|
1225
|
+
|
1226
|
+
|
1227
|
+
## get_disbursements_by_txn_id
|
1228
|
+
|
1229
|
+
> Disbursement get_disbursements_by_txn_id(transaction_id)
|
1230
|
+
|
1231
|
+
Returns the disbursement detail and status history for the given transactionId.
|
1232
|
+
|
1233
|
+
### Example
|
1234
|
+
|
1235
|
+
```ruby
|
1236
|
+
# load the gem
|
1237
|
+
require 'yapstone-payouts'
|
1238
|
+
# setup authorization
|
1239
|
+
Yapstone.configure do |config|
|
1240
|
+
# Configure Bearer authorization (JWT): Bearer
|
1241
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1242
|
+
end
|
1243
|
+
|
1244
|
+
api_instance = Yapstone::PayoutsApi.new
|
1245
|
+
transaction_id = 'transaction_id_example' # String | Primary key for a single disbursement record (assigned by YapStone)
|
1246
|
+
|
1247
|
+
begin
|
1248
|
+
# Returns the disbursement detail and status history for the given transactionId.
|
1249
|
+
result = api_instance.get_disbursements_by_txn_id(transaction_id)
|
1250
|
+
p result
|
1251
|
+
rescue Yapstone::ApiError => e
|
1252
|
+
puts "Exception when calling PayoutsApi->get_disbursements_by_txn_id: #{e}"
|
1253
|
+
end
|
1254
|
+
```
|
1255
|
+
|
1256
|
+
### Parameters
|
1257
|
+
|
1258
|
+
|
1259
|
+
Name | Type | Description | Notes
|
1260
|
+
------------- | ------------- | ------------- | -------------
|
1261
|
+
**transaction_id** | **String**| Primary key for a single disbursement record (assigned by YapStone) |
|
1262
|
+
|
1263
|
+
### Return type
|
1264
|
+
|
1265
|
+
[**Disbursement**](Disbursement.md)
|
1266
|
+
|
1267
|
+
### Authorization
|
1268
|
+
|
1269
|
+
[Bearer](../README.md#Bearer)
|
1270
|
+
|
1271
|
+
### HTTP request headers
|
1272
|
+
|
1273
|
+
- **Content-Type**: Not defined
|
1274
|
+
- **Accept**: application/json
|
1275
|
+
|
1276
|
+
|
1277
|
+
## get_reimbursement
|
1278
|
+
|
1279
|
+
> Reimbursement get_reimbursement(transaction_id)
|
1280
|
+
|
1281
|
+
Returns the disbursement detail and status history for the given transactionId.
|
1282
|
+
|
1283
|
+
### Example
|
1284
|
+
|
1285
|
+
```ruby
|
1286
|
+
# load the gem
|
1287
|
+
require 'yapstone-payouts'
|
1288
|
+
# setup authorization
|
1289
|
+
Yapstone.configure do |config|
|
1290
|
+
# Configure Bearer authorization (JWT): Bearer
|
1291
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1292
|
+
end
|
1293
|
+
|
1294
|
+
api_instance = Yapstone::PayoutsApi.new
|
1295
|
+
transaction_id = 'transaction_id_example' # String | Primary key for a single disbursement record (assigned by YapStone)
|
1296
|
+
|
1297
|
+
begin
|
1298
|
+
# Returns the disbursement detail and status history for the given transactionId.
|
1299
|
+
result = api_instance.get_reimbursement(transaction_id)
|
1300
|
+
p result
|
1301
|
+
rescue Yapstone::ApiError => e
|
1302
|
+
puts "Exception when calling PayoutsApi->get_reimbursement: #{e}"
|
1303
|
+
end
|
1304
|
+
```
|
1305
|
+
|
1306
|
+
### Parameters
|
1307
|
+
|
1308
|
+
|
1309
|
+
Name | Type | Description | Notes
|
1310
|
+
------------- | ------------- | ------------- | -------------
|
1311
|
+
**transaction_id** | **String**| Primary key for a single disbursement record (assigned by YapStone) |
|
1312
|
+
|
1313
|
+
### Return type
|
1314
|
+
|
1315
|
+
[**Reimbursement**](Reimbursement.md)
|
1316
|
+
|
1317
|
+
### Authorization
|
1318
|
+
|
1319
|
+
[Bearer](../README.md#Bearer)
|
1320
|
+
|
1321
|
+
### HTTP request headers
|
1322
|
+
|
1323
|
+
- **Content-Type**: Not defined
|
1324
|
+
- **Accept**: application/json
|
1325
|
+
|
1326
|
+
|
1327
|
+
## get_reimbursements_by_contract_id
|
1328
|
+
|
1329
|
+
> ReimbursementListResponse get_reimbursements_by_contract_id(current_status, contract_id, opts)
|
1330
|
+
|
1331
|
+
Returns all reimbursement transactions matching given contract .
|
1332
|
+
|
1333
|
+
### Example
|
1334
|
+
|
1335
|
+
```ruby
|
1336
|
+
# load the gem
|
1337
|
+
require 'yapstone-payouts'
|
1338
|
+
# setup authorization
|
1339
|
+
Yapstone.configure do |config|
|
1340
|
+
# Configure Bearer authorization (JWT): Bearer
|
1341
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1342
|
+
end
|
1343
|
+
|
1344
|
+
api_instance = Yapstone::PayoutsApi.new
|
1345
|
+
current_status = 'current_status_example' # String | Group identifer for a set of reimbursements created via a single API request (assigned by YapStone)
|
1346
|
+
contract_id = 'contract_id_example' # String |
|
1347
|
+
opts = {
|
1348
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable.
|
1349
|
+
}
|
1350
|
+
|
1351
|
+
begin
|
1352
|
+
#Returns all reimbursement transactions matching given contract .
|
1353
|
+
result = api_instance.get_reimbursements_by_contract_id(current_status, contract_id, opts)
|
1354
|
+
p result
|
1355
|
+
rescue Yapstone::ApiError => e
|
1356
|
+
puts "Exception when calling PayoutsApi->get_reimbursements_by_contract_id: #{e}"
|
1357
|
+
end
|
1358
|
+
```
|
1359
|
+
|
1360
|
+
### Parameters
|
1361
|
+
|
1362
|
+
|
1363
|
+
Name | Type | Description | Notes
|
1364
|
+
------------- | ------------- | ------------- | -------------
|
1365
|
+
**current_status** | **String**| Group identifer for a set of reimbursements created via a single API request (assigned by YapStone) |
|
1366
|
+
**contract_id** | **String**| |
|
1367
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
1368
|
+
|
1369
|
+
### Return type
|
1370
|
+
|
1371
|
+
[**ReimbursementListResponse**](ReimbursementListResponse.md)
|
1372
|
+
|
1373
|
+
### Authorization
|
1374
|
+
|
1375
|
+
[Bearer](../README.md#Bearer)
|
1376
|
+
|
1377
|
+
### HTTP request headers
|
1378
|
+
|
1379
|
+
- **Content-Type**: Not defined
|
1380
|
+
- **Accept**: application/json
|
1381
|
+
|
1382
|
+
|
1383
|
+
## get_reimbursements_by_correlation_id
|
1384
|
+
|
1385
|
+
> ReimbursementListResponse get_reimbursements_by_correlation_id(client_correlation_id, opts)
|
1386
|
+
|
1387
|
+
Returns all reimbursement transactions matching given correlation .
|
1388
|
+
|
1389
|
+
### Example
|
1390
|
+
|
1391
|
+
```ruby
|
1392
|
+
# load the gem
|
1393
|
+
require 'yapstone-payouts'
|
1394
|
+
# setup authorization
|
1395
|
+
Yapstone.configure do |config|
|
1396
|
+
# Configure Bearer authorization (JWT): Bearer
|
1397
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
api_instance = Yapstone::PayoutsApi.new
|
1401
|
+
client_correlation_id = 'client_correlation_id_example' # String | Group identifer for a set of reimbursements created via a single API request (assigned by YapStone)
|
1402
|
+
opts = {
|
1403
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable.
|
1404
|
+
}
|
1405
|
+
|
1406
|
+
begin
|
1407
|
+
#Returns all reimbursement transactions matching given correlation .
|
1408
|
+
result = api_instance.get_reimbursements_by_correlation_id(client_correlation_id, opts)
|
1409
|
+
p result
|
1410
|
+
rescue Yapstone::ApiError => e
|
1411
|
+
puts "Exception when calling PayoutsApi->get_reimbursements_by_correlation_id: #{e}"
|
1412
|
+
end
|
1413
|
+
```
|
1414
|
+
|
1415
|
+
### Parameters
|
1416
|
+
|
1417
|
+
|
1418
|
+
Name | Type | Description | Notes
|
1419
|
+
------------- | ------------- | ------------- | -------------
|
1420
|
+
**client_correlation_id** | **String**| Group identifer for a set of reimbursements created via a single API request (assigned by YapStone) |
|
1421
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
1422
|
+
|
1423
|
+
### Return type
|
1424
|
+
|
1425
|
+
[**ReimbursementListResponse**](ReimbursementListResponse.md)
|
1426
|
+
|
1427
|
+
### Authorization
|
1428
|
+
|
1429
|
+
[Bearer](../README.md#Bearer)
|
1430
|
+
|
1431
|
+
### HTTP request headers
|
1432
|
+
|
1433
|
+
- **Content-Type**: Not defined
|
1434
|
+
- **Accept**: application/json
|
1435
|
+
|
1436
|
+
|
1437
|
+
## get_reimbursements_by_correlation_id_and_status
|
1438
|
+
|
1439
|
+
> ReimbursementListResponse get_reimbursements_by_correlation_id_and_status(client_correlation_id, current_status, opts)
|
1440
|
+
|
1441
|
+
Returns all pool activities matching given client correlation id and status.
|
1442
|
+
|
1443
|
+
### Example
|
1444
|
+
|
1445
|
+
```ruby
|
1446
|
+
# load the gem
|
1447
|
+
require 'yapstone-payouts'
|
1448
|
+
# setup authorization
|
1449
|
+
Yapstone.configure do |config|
|
1450
|
+
# Configure Bearer authorization (JWT): Bearer
|
1451
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1452
|
+
end
|
1453
|
+
|
1454
|
+
api_instance = Yapstone::PayoutsApi.new
|
1455
|
+
client_correlation_id = 'client_correlation_id_example' # String | Correlation identifier assigned to one or more reimbursements by the Marketplace
|
1456
|
+
current_status = 'current_status_example' # String | Current reimbursement status of the pool activity
|
1457
|
+
opts = {
|
1458
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable.
|
1459
|
+
}
|
1460
|
+
|
1461
|
+
begin
|
1462
|
+
#Returns all pool activities matching given client correlation id and status.
|
1463
|
+
result = api_instance.get_reimbursements_by_correlation_id_and_status(client_correlation_id, current_status, opts)
|
1464
|
+
p result
|
1465
|
+
rescue Yapstone::ApiError => e
|
1466
|
+
puts "Exception when calling PayoutsApi->get_reimbursements_by_correlation_id_and_status: #{e}"
|
1467
|
+
end
|
1468
|
+
```
|
1469
|
+
|
1470
|
+
### Parameters
|
1471
|
+
|
1472
|
+
|
1473
|
+
Name | Type | Description | Notes
|
1474
|
+
------------- | ------------- | ------------- | -------------
|
1475
|
+
**client_correlation_id** | **String**| Correlation identifier assigned to one or more reimbursements by the Marketplace |
|
1476
|
+
**current_status** | **String**| Current reimbursement status of the pool activity |
|
1477
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
1478
|
+
|
1479
|
+
### Return type
|
1480
|
+
|
1481
|
+
[**ReimbursementListResponse**](ReimbursementListResponse.md)
|
1482
|
+
|
1483
|
+
### Authorization
|
1484
|
+
|
1485
|
+
[Bearer](../README.md#Bearer)
|
1486
|
+
|
1487
|
+
### HTTP request headers
|
1488
|
+
|
1489
|
+
- **Content-Type**: Not defined
|
1490
|
+
- **Accept**: application/json
|
1491
|
+
|
1492
|
+
|
1493
|
+
## get_reimbursements_by_currency
|
1494
|
+
|
1495
|
+
> ReimbursementListResponse get_reimbursements_by_currency(currency, opts)
|
1496
|
+
|
1497
|
+
Returns all reimbursement transactions matching given currency .
|
1498
|
+
|
1499
|
+
### Example
|
1500
|
+
|
1501
|
+
```ruby
|
1502
|
+
# load the gem
|
1503
|
+
require 'yapstone-payouts'
|
1504
|
+
# setup authorization
|
1505
|
+
Yapstone.configure do |config|
|
1506
|
+
# Configure Bearer authorization (JWT): Bearer
|
1507
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1508
|
+
end
|
1509
|
+
|
1510
|
+
api_instance = Yapstone::PayoutsApi.new
|
1511
|
+
currency = 'currency_example' # String | Group identifer for a set of reimbursements created via a single API request (assigned by YapStone)
|
1512
|
+
opts = {
|
1513
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable.
|
1514
|
+
}
|
1515
|
+
|
1516
|
+
begin
|
1517
|
+
#Returns all reimbursement transactions matching given currency .
|
1518
|
+
result = api_instance.get_reimbursements_by_currency(currency, opts)
|
1519
|
+
p result
|
1520
|
+
rescue Yapstone::ApiError => e
|
1521
|
+
puts "Exception when calling PayoutsApi->get_reimbursements_by_currency: #{e}"
|
1522
|
+
end
|
1523
|
+
```
|
1524
|
+
|
1525
|
+
### Parameters
|
1526
|
+
|
1527
|
+
|
1528
|
+
Name | Type | Description | Notes
|
1529
|
+
------------- | ------------- | ------------- | -------------
|
1530
|
+
**currency** | **String**| Group identifer for a set of reimbursements created via a single API request (assigned by YapStone) |
|
1531
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
1532
|
+
|
1533
|
+
### Return type
|
1534
|
+
|
1535
|
+
[**ReimbursementListResponse**](ReimbursementListResponse.md)
|
1536
|
+
|
1537
|
+
### Authorization
|
1538
|
+
|
1539
|
+
[Bearer](../README.md#Bearer)
|
1540
|
+
|
1541
|
+
### HTTP request headers
|
1542
|
+
|
1543
|
+
- **Content-Type**: Not defined
|
1544
|
+
- **Accept**: application/json
|
1545
|
+
|
1546
|
+
|
1547
|
+
## get_reimbursements_by_current_status
|
1548
|
+
|
1549
|
+
> ReimbursementListResponse get_reimbursements_by_current_status(client_unique_txn_id, opts)
|
1550
|
+
|
1551
|
+
Returns all reimbursement transactions matching given clientId .
|
1552
|
+
|
1553
|
+
### Example
|
1554
|
+
|
1555
|
+
```ruby
|
1556
|
+
# load the gem
|
1557
|
+
require 'yapstone-payouts'
|
1558
|
+
# setup authorization
|
1559
|
+
Yapstone.configure do |config|
|
1560
|
+
# Configure Bearer authorization (JWT): Bearer
|
1561
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1562
|
+
end
|
1563
|
+
|
1564
|
+
api_instance = Yapstone::PayoutsApi.new
|
1565
|
+
client_unique_txn_id = 'client_unique_txn_id_example' # String | Group identifer for a set of reimbursements created via a single API request (assigned by YapStone)
|
1566
|
+
opts = {
|
1567
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable.
|
1568
|
+
}
|
1569
|
+
|
1570
|
+
begin
|
1571
|
+
#Returns all reimbursement transactions matching given clientId .
|
1572
|
+
result = api_instance.get_reimbursements_by_current_status(client_unique_txn_id, opts)
|
1573
|
+
p result
|
1574
|
+
rescue Yapstone::ApiError => e
|
1575
|
+
puts "Exception when calling PayoutsApi->get_reimbursements_by_current_status: #{e}"
|
1576
|
+
end
|
1577
|
+
```
|
1578
|
+
|
1579
|
+
### Parameters
|
1580
|
+
|
1581
|
+
|
1582
|
+
Name | Type | Description | Notes
|
1583
|
+
------------- | ------------- | ------------- | -------------
|
1584
|
+
**client_unique_txn_id** | **String**| Group identifer for a set of reimbursements created via a single API request (assigned by YapStone) |
|
1585
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
1586
|
+
|
1587
|
+
### Return type
|
1588
|
+
|
1589
|
+
[**ReimbursementListResponse**](ReimbursementListResponse.md)
|
1590
|
+
|
1591
|
+
### Authorization
|
1592
|
+
|
1593
|
+
[Bearer](../README.md#Bearer)
|
1594
|
+
|
1595
|
+
### HTTP request headers
|
1596
|
+
|
1597
|
+
- **Content-Type**: Not defined
|
1598
|
+
- **Accept**: application/json
|
1599
|
+
|
1600
|
+
|
1601
|
+
## get_reimbursements_by_instrument
|
1602
|
+
|
1603
|
+
> ReimbursementListResponse get_reimbursements_by_instrument(payee_instrument_id, opts)
|
1604
|
+
|
1605
|
+
Returns all reimbursement transactions matching given instrument .
|
1606
|
+
|
1607
|
+
### Example
|
1608
|
+
|
1609
|
+
```ruby
|
1610
|
+
# load the gem
|
1611
|
+
require 'yapstone-payouts'
|
1612
|
+
# setup authorization
|
1613
|
+
Yapstone.configure do |config|
|
1614
|
+
# Configure Bearer authorization (JWT): Bearer
|
1615
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1616
|
+
end
|
1617
|
+
|
1618
|
+
api_instance = Yapstone::PayoutsApi.new
|
1619
|
+
payee_instrument_id = 'payee_instrument_id_example' # String | Group identifer for a set of reimbursements created via a single API request (assigned by YapStone)
|
1620
|
+
opts = {
|
1621
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable.
|
1622
|
+
}
|
1623
|
+
|
1624
|
+
begin
|
1625
|
+
#Returns all reimbursement transactions matching given instrument .
|
1626
|
+
result = api_instance.get_reimbursements_by_instrument(payee_instrument_id, opts)
|
1627
|
+
p result
|
1628
|
+
rescue Yapstone::ApiError => e
|
1629
|
+
puts "Exception when calling PayoutsApi->get_reimbursements_by_instrument: #{e}"
|
1630
|
+
end
|
1631
|
+
```
|
1632
|
+
|
1633
|
+
### Parameters
|
1634
|
+
|
1635
|
+
|
1636
|
+
Name | Type | Description | Notes
|
1637
|
+
------------- | ------------- | ------------- | -------------
|
1638
|
+
**payee_instrument_id** | **String**| Group identifer for a set of reimbursements created via a single API request (assigned by YapStone) |
|
1639
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
1640
|
+
|
1641
|
+
### Return type
|
1642
|
+
|
1643
|
+
[**ReimbursementListResponse**](ReimbursementListResponse.md)
|
1644
|
+
|
1645
|
+
### Authorization
|
1646
|
+
|
1647
|
+
[Bearer](../README.md#Bearer)
|
1648
|
+
|
1649
|
+
### HTTP request headers
|
1650
|
+
|
1651
|
+
- **Content-Type**: Not defined
|
1652
|
+
- **Accept**: application/json
|
1653
|
+
|
1654
|
+
|
1655
|
+
## get_reimbursements_by_order_id
|
1656
|
+
|
1657
|
+
> ReimbursementListResponse get_reimbursements_by_order_id(order_id, opts)
|
1658
|
+
|
1659
|
+
Returns all reimbursement transactions matching given order .
|
1660
|
+
|
1661
|
+
### Example
|
1662
|
+
|
1663
|
+
```ruby
|
1664
|
+
# load the gem
|
1665
|
+
require 'yapstone-payouts'
|
1666
|
+
# setup authorization
|
1667
|
+
Yapstone.configure do |config|
|
1668
|
+
# Configure Bearer authorization (JWT): Bearer
|
1669
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1670
|
+
end
|
1671
|
+
|
1672
|
+
api_instance = Yapstone::PayoutsApi.new
|
1673
|
+
order_id = 'order_id_example' # String | Group identifer for a set of reimbursements created via a single API request (assigned by YapStone)
|
1674
|
+
opts = {
|
1675
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable.
|
1676
|
+
}
|
1677
|
+
|
1678
|
+
begin
|
1679
|
+
#Returns all reimbursement transactions matching given order .
|
1680
|
+
result = api_instance.get_reimbursements_by_order_id(order_id, opts)
|
1681
|
+
p result
|
1682
|
+
rescue Yapstone::ApiError => e
|
1683
|
+
puts "Exception when calling PayoutsApi->get_reimbursements_by_order_id: #{e}"
|
1684
|
+
end
|
1685
|
+
```
|
1686
|
+
|
1687
|
+
### Parameters
|
1688
|
+
|
1689
|
+
|
1690
|
+
Name | Type | Description | Notes
|
1691
|
+
------------- | ------------- | ------------- | -------------
|
1692
|
+
**order_id** | **String**| Group identifer for a set of reimbursements created via a single API request (assigned by YapStone) |
|
1693
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
1694
|
+
|
1695
|
+
### Return type
|
1696
|
+
|
1697
|
+
[**ReimbursementListResponse**](ReimbursementListResponse.md)
|
1698
|
+
|
1699
|
+
### Authorization
|
1700
|
+
|
1701
|
+
[Bearer](../README.md#Bearer)
|
1702
|
+
|
1703
|
+
### HTTP request headers
|
1704
|
+
|
1705
|
+
- **Content-Type**: Not defined
|
1706
|
+
- **Accept**: application/json
|
1707
|
+
|
1708
|
+
|
1709
|
+
## get_reimbursements_by_party_id
|
1710
|
+
|
1711
|
+
> ReimbursementListResponse get_reimbursements_by_party_id(payee_party_id, opts)
|
1712
|
+
|
1713
|
+
Returns all reimbursement transactions matching given party .
|
1714
|
+
|
1715
|
+
### Example
|
1716
|
+
|
1717
|
+
```ruby
|
1718
|
+
# load the gem
|
1719
|
+
require 'yapstone-payouts'
|
1720
|
+
# setup authorization
|
1721
|
+
Yapstone.configure do |config|
|
1722
|
+
# Configure Bearer authorization (JWT): Bearer
|
1723
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1724
|
+
end
|
1725
|
+
|
1726
|
+
api_instance = Yapstone::PayoutsApi.new
|
1727
|
+
payee_party_id = 'payee_party_id_example' # String | Group identifer for a set of reimbursements created via a single API request (assigned by YapStone)
|
1728
|
+
opts = {
|
1729
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable.
|
1730
|
+
}
|
1731
|
+
|
1732
|
+
begin
|
1733
|
+
#Returns all reimbursement transactions matching given party .
|
1734
|
+
result = api_instance.get_reimbursements_by_party_id(payee_party_id, opts)
|
1735
|
+
p result
|
1736
|
+
rescue Yapstone::ApiError => e
|
1737
|
+
puts "Exception when calling PayoutsApi->get_reimbursements_by_party_id: #{e}"
|
1738
|
+
end
|
1739
|
+
```
|
1740
|
+
|
1741
|
+
### Parameters
|
1742
|
+
|
1743
|
+
|
1744
|
+
Name | Type | Description | Notes
|
1745
|
+
------------- | ------------- | ------------- | -------------
|
1746
|
+
**payee_party_id** | **String**| Group identifer for a set of reimbursements created via a single API request (assigned by YapStone) |
|
1747
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
1748
|
+
|
1749
|
+
### Return type
|
1750
|
+
|
1751
|
+
[**ReimbursementListResponse**](ReimbursementListResponse.md)
|
1752
|
+
|
1753
|
+
### Authorization
|
1754
|
+
|
1755
|
+
[Bearer](../README.md#Bearer)
|
1756
|
+
|
1757
|
+
### HTTP request headers
|
1758
|
+
|
1759
|
+
- **Content-Type**: Not defined
|
1760
|
+
- **Accept**: application/json
|
1761
|
+
|
1762
|
+
|
1763
|
+
## get_reimbursements_by_status
|
1764
|
+
|
1765
|
+
> ReimbursementListResponse get_reimbursements_by_status(current_status, opts)
|
1766
|
+
|
1767
|
+
Returns all reimbursement transactions matching given status .
|
1768
|
+
|
1769
|
+
### Example
|
1770
|
+
|
1771
|
+
```ruby
|
1772
|
+
# load the gem
|
1773
|
+
require 'yapstone-payouts'
|
1774
|
+
# setup authorization
|
1775
|
+
Yapstone.configure do |config|
|
1776
|
+
# Configure Bearer authorization (JWT): Bearer
|
1777
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1778
|
+
end
|
1779
|
+
|
1780
|
+
api_instance = Yapstone::PayoutsApi.new
|
1781
|
+
current_status = 'current_status_example' # String | Group identifer for a set of reimbursements created via a single API request (assigned by YapStone)
|
1782
|
+
opts = {
|
1783
|
+
marketplace: 'marketplace_example' # String | Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable.
|
1784
|
+
}
|
1785
|
+
|
1786
|
+
begin
|
1787
|
+
#Returns all reimbursement transactions matching given status .
|
1788
|
+
result = api_instance.get_reimbursements_by_status(current_status, opts)
|
1789
|
+
p result
|
1790
|
+
rescue Yapstone::ApiError => e
|
1791
|
+
puts "Exception when calling PayoutsApi->get_reimbursements_by_status: #{e}"
|
1792
|
+
end
|
1793
|
+
```
|
1794
|
+
|
1795
|
+
### Parameters
|
1796
|
+
|
1797
|
+
|
1798
|
+
Name | Type | Description | Notes
|
1799
|
+
------------- | ------------- | ------------- | -------------
|
1800
|
+
**current_status** | **String**| Group identifer for a set of reimbursements created via a single API request (assigned by YapStone) |
|
1801
|
+
**marketplace** | **String**| Optional Marketplace Id to filter the reimbursements. If not passed, default marketplace from app token will be used if applicable. | [optional]
|
1802
|
+
|
1803
|
+
### Return type
|
1804
|
+
|
1805
|
+
[**ReimbursementListResponse**](ReimbursementListResponse.md)
|
1806
|
+
|
1807
|
+
### Authorization
|
1808
|
+
|
1809
|
+
[Bearer](../README.md#Bearer)
|
1810
|
+
|
1811
|
+
### HTTP request headers
|
1812
|
+
|
1813
|
+
- **Content-Type**: Not defined
|
1814
|
+
- **Accept**: application/json
|
1815
|
+
|
1816
|
+
|
1817
|
+
## reverse_disbursement
|
1818
|
+
|
1819
|
+
> reverse_disbursement(transaction_id, reverse_disbursement_request)
|
1820
|
+
|
1821
|
+
Reverse Disbursement - Submits a full (or partial) disbursement for funds that were originally retrieved via the given transactionId recapture order. The resulting transactionId represents the linked disbursement.
|
1822
|
+
|
1823
|
+
### Example
|
1824
|
+
|
1825
|
+
```ruby
|
1826
|
+
# load the gem
|
1827
|
+
require 'yapstone-payouts'
|
1828
|
+
# setup authorization
|
1829
|
+
Yapstone.configure do |config|
|
1830
|
+
# Configure Bearer authorization (JWT): Bearer
|
1831
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1832
|
+
end
|
1833
|
+
|
1834
|
+
api_instance = Yapstone::PayoutsApi.new
|
1835
|
+
transaction_id = 'transaction_id_example' # String | Primary key for a single disbursement record (assigned by YapStone)
|
1836
|
+
reverse_disbursement_request = Yapstone::ReverseDisbursementRequest.new # ReverseDisbursementRequest |
|
1837
|
+
|
1838
|
+
begin
|
1839
|
+
# Reverse Disbursement - Submits a full (or partial) disbursement for funds that were originally retrieved via the given transactionId recapture order. The resulting transactionId represents the linked disbursement.
|
1840
|
+
api_instance.reverse_disbursement(transaction_id, reverse_disbursement_request)
|
1841
|
+
rescue Yapstone::ApiError => e
|
1842
|
+
puts "Exception when calling PayoutsApi->reverse_disbursement: #{e}"
|
1843
|
+
end
|
1844
|
+
```
|
1845
|
+
|
1846
|
+
### Parameters
|
1847
|
+
|
1848
|
+
|
1849
|
+
Name | Type | Description | Notes
|
1850
|
+
------------- | ------------- | ------------- | -------------
|
1851
|
+
**transaction_id** | **String**| Primary key for a single disbursement record (assigned by YapStone) |
|
1852
|
+
**reverse_disbursement_request** | [**ReverseDisbursementRequest**](ReverseDisbursementRequest.md)| |
|
1853
|
+
|
1854
|
+
### Return type
|
1855
|
+
|
1856
|
+
nil (empty response body)
|
1857
|
+
|
1858
|
+
### Authorization
|
1859
|
+
|
1860
|
+
[Bearer](../README.md#Bearer)
|
1861
|
+
|
1862
|
+
### HTTP request headers
|
1863
|
+
|
1864
|
+
- **Content-Type**: application/json
|
1865
|
+
- **Accept**: Not defined
|
1866
|
+
|
1867
|
+
|
1868
|
+
## reverse_reimbursement
|
1869
|
+
|
1870
|
+
> reverse_reimbursement(transaction_id, reverse_reimbursement_request)
|
1871
|
+
|
1872
|
+
Reverse Reimbursement - Submits a full (or partial) disbursement for funds that were originally retrieved via the given transactionId recapture order. The resulting transactionId represents the linked reimbursement.
|
1873
|
+
|
1874
|
+
### Example
|
1875
|
+
|
1876
|
+
```ruby
|
1877
|
+
# load the gem
|
1878
|
+
require 'yapstone-payouts'
|
1879
|
+
# setup authorization
|
1880
|
+
Yapstone.configure do |config|
|
1881
|
+
# Configure Bearer authorization (JWT): Bearer
|
1882
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1883
|
+
end
|
1884
|
+
|
1885
|
+
api_instance = Yapstone::PayoutsApi.new
|
1886
|
+
transaction_id = 'transaction_id_example' # String | Primary key for a single reimbursement record (assigned by YapStone)
|
1887
|
+
reverse_reimbursement_request = Yapstone::ReverseReimbursementRequest.new # ReverseReimbursementRequest |
|
1888
|
+
|
1889
|
+
begin
|
1890
|
+
# Reverse Reimbursement - Submits a full (or partial) disbursement for funds that were originally retrieved via the given transactionId recapture order. The resulting transactionId represents the linked reimbursement.
|
1891
|
+
api_instance.reverse_reimbursement(transaction_id, reverse_reimbursement_request)
|
1892
|
+
rescue Yapstone::ApiError => e
|
1893
|
+
puts "Exception when calling PayoutsApi->reverse_reimbursement: #{e}"
|
1894
|
+
end
|
1895
|
+
```
|
1896
|
+
|
1897
|
+
### Parameters
|
1898
|
+
|
1899
|
+
|
1900
|
+
Name | Type | Description | Notes
|
1901
|
+
------------- | ------------- | ------------- | -------------
|
1902
|
+
**transaction_id** | **String**| Primary key for a single reimbursement record (assigned by YapStone) |
|
1903
|
+
**reverse_reimbursement_request** | [**ReverseReimbursementRequest**](ReverseReimbursementRequest.md)| |
|
1904
|
+
|
1905
|
+
### Return type
|
1906
|
+
|
1907
|
+
nil (empty response body)
|
1908
|
+
|
1909
|
+
### Authorization
|
1910
|
+
|
1911
|
+
[Bearer](../README.md#Bearer)
|
1912
|
+
|
1913
|
+
### HTTP request headers
|
1914
|
+
|
1915
|
+
- **Content-Type**: application/json
|
1916
|
+
- **Accept**: Not defined
|
1917
|
+
|
1918
|
+
|
1919
|
+
## submit_disbursements_for_payees
|
1920
|
+
|
1921
|
+
> submit_disbursements_for_payees(disbursement_request)
|
1922
|
+
|
1923
|
+
Provides instructions from the Marketplace for payments to be distributed to one or more Payees. Disbursement requests are grouped by currency, given that the funding pools are also segregated in this manner. If the corresponding pool was funded in advance, the disbursements will be processed on a same-day basis. Otherwise the disbursement requests will be queued for later processing as funds become available. Response is organized in two collections (accepted and rejected) to distinguish successful and failed items.
|
1924
|
+
|
1925
|
+
### Example
|
1926
|
+
|
1927
|
+
```ruby
|
1928
|
+
# load the gem
|
1929
|
+
require 'yapstone-payouts'
|
1930
|
+
# setup authorization
|
1931
|
+
Yapstone.configure do |config|
|
1932
|
+
# Configure Bearer authorization (JWT): Bearer
|
1933
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1934
|
+
end
|
1935
|
+
|
1936
|
+
api_instance = Yapstone::PayoutsApi.new
|
1937
|
+
disbursement_request = Yapstone::DisbursementRequest.new # DisbursementRequest | Provides instructions from the Marketplace for payments to be distributed to one or more Payees. Disbursement requests are grouped by currency, given that the funding pools are also segregated in this manner. If the corresponding pool was funded in advance, the disbursements will be processed on a same-day basis. Otherwise the disbursement requests will be queued for later processing as funds become available. Response is organized in two collections (`accepted` and `rejected`) to distinguish successful and failed items.
|
1938
|
+
|
1939
|
+
begin
|
1940
|
+
# Provides instructions from the Marketplace for payments to be distributed to one or more Payees. Disbursement requests are grouped by currency, given that the funding pools are also segregated in this manner. If the corresponding pool was funded in advance, the disbursements will be processed on a same-day basis. Otherwise the disbursement requests will be queued for later processing as funds become available. Response is organized in two collections (accepted and rejected) to distinguish successful and failed items.
|
1941
|
+
api_instance.submit_disbursements_for_payees(disbursement_request)
|
1942
|
+
rescue Yapstone::ApiError => e
|
1943
|
+
puts "Exception when calling PayoutsApi->submit_disbursements_for_payees: #{e}"
|
1944
|
+
end
|
1945
|
+
```
|
1946
|
+
|
1947
|
+
### Parameters
|
1948
|
+
|
1949
|
+
|
1950
|
+
Name | Type | Description | Notes
|
1951
|
+
------------- | ------------- | ------------- | -------------
|
1952
|
+
**disbursement_request** | [**DisbursementRequest**](DisbursementRequest.md)| Provides instructions from the Marketplace for payments to be distributed to one or more Payees. Disbursement requests are grouped by currency, given that the funding pools are also segregated in this manner. If the corresponding pool was funded in advance, the disbursements will be processed on a same-day basis. Otherwise the disbursement requests will be queued for later processing as funds become available. Response is organized in two collections (`accepted` and `rejected`) to distinguish successful and failed items. |
|
1953
|
+
|
1954
|
+
### Return type
|
1955
|
+
|
1956
|
+
nil (empty response body)
|
1957
|
+
|
1958
|
+
### Authorization
|
1959
|
+
|
1960
|
+
[Bearer](../README.md#Bearer)
|
1961
|
+
|
1962
|
+
### HTTP request headers
|
1963
|
+
|
1964
|
+
- **Content-Type**: application/json
|
1965
|
+
- **Accept**: Not defined
|
1966
|
+
|
1967
|
+
|
1968
|
+
## submit_reimbursements
|
1969
|
+
|
1970
|
+
> submit_reimbursements(reimbursement_request)
|
1971
|
+
|
1972
|
+
|
1973
|
+
|
1974
|
+
### Example
|
1975
|
+
|
1976
|
+
```ruby
|
1977
|
+
# load the gem
|
1978
|
+
require 'yapstone-payouts'
|
1979
|
+
# setup authorization
|
1980
|
+
Yapstone.configure do |config|
|
1981
|
+
# Configure Bearer authorization (JWT): Bearer
|
1982
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1983
|
+
end
|
1984
|
+
|
1985
|
+
api_instance = Yapstone::PayoutsApi.new
|
1986
|
+
reimbursement_request = Yapstone::ReimbursementRequest.new # ReimbursementRequest |
|
1987
|
+
|
1988
|
+
begin
|
1989
|
+
api_instance.submit_reimbursements(reimbursement_request)
|
1990
|
+
rescue Yapstone::ApiError => e
|
1991
|
+
puts "Exception when calling PayoutsApi->submit_reimbursements: #{e}"
|
1992
|
+
end
|
1993
|
+
```
|
1994
|
+
|
1995
|
+
### Parameters
|
1996
|
+
|
1997
|
+
|
1998
|
+
Name | Type | Description | Notes
|
1999
|
+
------------- | ------------- | ------------- | -------------
|
2000
|
+
**reimbursement_request** | [**ReimbursementRequest**](ReimbursementRequest.md)| |
|
2001
|
+
|
2002
|
+
### Return type
|
2003
|
+
|
2004
|
+
nil (empty response body)
|
2005
|
+
|
2006
|
+
### Authorization
|
2007
|
+
|
2008
|
+
[Bearer](../README.md#Bearer)
|
2009
|
+
|
2010
|
+
### HTTP request headers
|
2011
|
+
|
2012
|
+
- **Content-Type**: application/json
|
2013
|
+
- **Accept**: Not defined
|
2014
|
+
|
2015
|
+
|
2016
|
+
## update_deposit
|
2017
|
+
|
2018
|
+
> update_deposit(deposit_id, deposit_detail)
|
2019
|
+
|
2020
|
+
Allows a Marketplace to update the details for a pending deposit advice to correct these values relative to the original post operation. Note that the new values will overwrite the existing deposit, and all must be provided by the caller (presumably after a corresponding get operation). If the deposit has already been processed then the update request will be rejected (400 Bad request).
|
2021
|
+
|
2022
|
+
### Example
|
2023
|
+
|
2024
|
+
```ruby
|
2025
|
+
# load the gem
|
2026
|
+
require 'yapstone-payouts'
|
2027
|
+
# setup authorization
|
2028
|
+
Yapstone.configure do |config|
|
2029
|
+
# Configure Bearer authorization (JWT): Bearer
|
2030
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
2031
|
+
end
|
2032
|
+
|
2033
|
+
api_instance = Yapstone::PayoutsApi.new
|
2034
|
+
deposit_id = 'deposit_id_example' # String | Primary key for a single deposit record (assigned by YapStone)
|
2035
|
+
deposit_detail = Yapstone::DepositDetail.new # DepositDetail |
|
2036
|
+
|
2037
|
+
begin
|
2038
|
+
# Allows a Marketplace to update the details for a pending deposit advice to correct these values relative to the original post operation. Note that the new values will overwrite the existing deposit, and all must be provided by the caller (presumably after a corresponding get operation). If the deposit has already been processed then the update request will be rejected (400 Bad request).
|
2039
|
+
api_instance.update_deposit(deposit_id, deposit_detail)
|
2040
|
+
rescue Yapstone::ApiError => e
|
2041
|
+
puts "Exception when calling PayoutsApi->update_deposit: #{e}"
|
2042
|
+
end
|
2043
|
+
```
|
2044
|
+
|
2045
|
+
### Parameters
|
2046
|
+
|
2047
|
+
|
2048
|
+
Name | Type | Description | Notes
|
2049
|
+
------------- | ------------- | ------------- | -------------
|
2050
|
+
**deposit_id** | **String**| Primary key for a single deposit record (assigned by YapStone) |
|
2051
|
+
**deposit_detail** | [**DepositDetail**](DepositDetail.md)| |
|
2052
|
+
|
2053
|
+
### Return type
|
2054
|
+
|
2055
|
+
nil (empty response body)
|
2056
|
+
|
2057
|
+
### Authorization
|
2058
|
+
|
2059
|
+
[Bearer](../README.md#Bearer)
|
2060
|
+
|
2061
|
+
### HTTP request headers
|
2062
|
+
|
2063
|
+
- **Content-Type**: application/json
|
2064
|
+
- **Accept**: Not defined
|
2065
|
+
|