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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c6a5a3c38fbedd7f2f6f375f000808141a8ce08fa0b190d34e7bd91ab134cc84
|
4
|
+
data.tar.gz: 4c553733bfcd22550d16c16b4d4499430d41cfc1ce6ed3e15df4c1d5641788b2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0e3db7f803305a4b4274a57eaca32d36c7209d7b7a7c49dfb7438a52cc7bc7773c86287ce9ee8e1490e453e61a6e599da9303bd6930db364f9f5ad74afb23891
|
7
|
+
data.tar.gz: 90a2872d9d504f2343dae45a3d5199f3539c0faf5812050122d69083652552781902ad86450a72e7f264577283a644c1d69f084c117b57d5ee0266d8b122e61d
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
yapstone-payouts (1.0.0)
|
5
|
+
json (~> 2.1, >= 2.1.0)
|
6
|
+
typhoeus (~> 1.0, >= 1.0.1)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
ZenTest (4.11.2)
|
12
|
+
addressable (2.5.2)
|
13
|
+
public_suffix (>= 2.0.2, < 4.0)
|
14
|
+
autotest (4.4.6)
|
15
|
+
ZenTest (>= 4.4.1)
|
16
|
+
autotest-fsevent (0.2.14)
|
17
|
+
sys-uname
|
18
|
+
autotest-growl (0.2.16)
|
19
|
+
autotest-rails-pure (4.1.2)
|
20
|
+
byebug (10.0.2)
|
21
|
+
coderay (1.1.2)
|
22
|
+
crack (0.4.3)
|
23
|
+
safe_yaml (~> 1.0.0)
|
24
|
+
diff-lcs (1.3)
|
25
|
+
ethon (0.11.0)
|
26
|
+
ffi (>= 1.3.0)
|
27
|
+
ffi (1.9.25)
|
28
|
+
hashdiff (0.3.7)
|
29
|
+
json (2.1.0)
|
30
|
+
method_source (0.9.0)
|
31
|
+
pry (0.11.3)
|
32
|
+
coderay (~> 1.1.0)
|
33
|
+
method_source (~> 0.9.0)
|
34
|
+
pry-byebug (3.6.0)
|
35
|
+
byebug (~> 10.0)
|
36
|
+
pry (~> 0.10)
|
37
|
+
public_suffix (3.0.3)
|
38
|
+
rake (12.0.0)
|
39
|
+
rspec (3.8.0)
|
40
|
+
rspec-core (~> 3.8.0)
|
41
|
+
rspec-expectations (~> 3.8.0)
|
42
|
+
rspec-mocks (~> 3.8.0)
|
43
|
+
rspec-core (3.8.0)
|
44
|
+
rspec-support (~> 3.8.0)
|
45
|
+
rspec-expectations (3.8.1)
|
46
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
+
rspec-support (~> 3.8.0)
|
48
|
+
rspec-mocks (3.8.0)
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
+
rspec-support (~> 3.8.0)
|
51
|
+
rspec-support (3.8.0)
|
52
|
+
safe_yaml (1.0.4)
|
53
|
+
sys-uname (1.0.3)
|
54
|
+
ffi (>= 1.0.0)
|
55
|
+
typhoeus (1.3.0)
|
56
|
+
ethon (>= 0.9.0)
|
57
|
+
vcr (3.0.3)
|
58
|
+
webmock (1.24.6)
|
59
|
+
addressable (>= 2.3.6)
|
60
|
+
crack (>= 0.3.2)
|
61
|
+
hashdiff
|
62
|
+
|
63
|
+
PLATFORMS
|
64
|
+
ruby
|
65
|
+
|
66
|
+
DEPENDENCIES
|
67
|
+
autotest (~> 4.4, >= 4.4.6)
|
68
|
+
autotest-fsevent (~> 0.2, >= 0.2.12)
|
69
|
+
autotest-growl (~> 0.2, >= 0.2.16)
|
70
|
+
autotest-rails-pure (~> 4.1, >= 4.1.2)
|
71
|
+
yapstone-payouts!
|
72
|
+
pry-byebug
|
73
|
+
rake (~> 12.0.0)
|
74
|
+
rspec (~> 3.6, >= 3.6.0)
|
75
|
+
vcr (~> 3.0, >= 3.0.1)
|
76
|
+
webmock (~> 1.24, >= 1.24.3)
|
77
|
+
|
78
|
+
BUNDLED WITH
|
79
|
+
1.16.1
|
data/README.md
ADDED
@@ -0,0 +1,150 @@
|
|
1
|
+
# yapstone-payouts
|
2
|
+
|
3
|
+
Yapstone - the Ruby gem for the Payout Orchestrator API
|
4
|
+
|
5
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
6
|
+
|
7
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
|
+
|
9
|
+
- API version: 1.0.3
|
10
|
+
- Package version: 1.0.0
|
11
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
### Build a gem
|
16
|
+
|
17
|
+
To build the Ruby code into a gem:
|
18
|
+
|
19
|
+
```shell
|
20
|
+
gem build yapstone-payouts.gemspec
|
21
|
+
```
|
22
|
+
|
23
|
+
Then either install the gem locally:
|
24
|
+
|
25
|
+
```shell
|
26
|
+
gem install ./yapstone-payouts-1.0.0.gem
|
27
|
+
```
|
28
|
+
|
29
|
+
(for development, run `gem install --dev ./yapstone-payouts-1.0.0.gem` to install the development dependencies)
|
30
|
+
|
31
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
|
+
|
33
|
+
Finally add this to the Gemfile:
|
34
|
+
|
35
|
+
gem 'yapstone-payouts', '~> 1.0.0'
|
36
|
+
|
37
|
+
### Install from Git
|
38
|
+
|
39
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
40
|
+
|
41
|
+
gem 'yapstone-payouts', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
42
|
+
|
43
|
+
### Include the Ruby code directly
|
44
|
+
|
45
|
+
Include the Ruby code directly using `-I` as follows:
|
46
|
+
|
47
|
+
```shell
|
48
|
+
ruby -Ilib script.rb
|
49
|
+
```
|
50
|
+
|
51
|
+
## Getting Started
|
52
|
+
|
53
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
# Load the gem
|
57
|
+
require 'yapstone-payouts'
|
58
|
+
|
59
|
+
api_instance = Yapstone::AuthenticationApi.new
|
60
|
+
grant_type = 'client_credentials' # String | To do OAuth2 authentication, you must indicate the grant type, then adhere to it structurally. Yapstone API endpoints authenticate with OAuth2 and the grant type client credentials. This type of authentication is used to access resources on your own system rather than access a user's resources.
|
61
|
+
authorization = 'Basic SGxkdU5OcU1xMzBUZ0djYUpDWVpIWVRsejJjQUJlSHo6YkdIeWNpWXVibzNVTXZLRA==' # String | Provide client_id:client_secret as base64 encoded basic auth.
|
62
|
+
|
63
|
+
begin
|
64
|
+
#Authenticate Partner
|
65
|
+
result = api_instance.authenticate_partner(grant_type, authorization)
|
66
|
+
p result
|
67
|
+
rescue Yapstone::ApiError => e
|
68
|
+
puts "Exception when calling AuthenticationApi->authenticate_partner: #{e}"
|
69
|
+
end
|
70
|
+
|
71
|
+
```
|
72
|
+
|
73
|
+
## Documentation for API Endpoints
|
74
|
+
|
75
|
+
All URIs are relative to *https://api-prod-sandbox.yapstone.com/v1/payouts*
|
76
|
+
|
77
|
+
Class | Method | HTTP request | Description
|
78
|
+
------------ | ------------- | ------------- | -------------
|
79
|
+
*Yapstone::AuthenticationApi* | [**authenticate_partner**](docs/AuthenticationApi.md#authenticate_partner) | **POST** /v1/oauth2/client_credential/accesstoken | Authenticate Partner
|
80
|
+
*Yapstone::PayoutsApi* | [**cancel_deposit**](docs/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.
|
81
|
+
*Yapstone::PayoutsApi* | [**cancel_disbursement**](docs/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.
|
82
|
+
*Yapstone::PayoutsApi* | [**cancel_reimbursement**](docs/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.
|
83
|
+
*Yapstone::PayoutsApi* | [**create_deposit**](docs/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.
|
84
|
+
*Yapstone::PayoutsApi* | [**get_balances**](docs/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).
|
85
|
+
*Yapstone::PayoutsApi* | [**get_deposit**](docs/PayoutsApi.md#get_deposit) | **GET** /payouts/v1/deposits/{depositId} | Returns the deposit detail and status history for the given depositId.
|
86
|
+
*Yapstone::PayoutsApi* | [**get_deposits_by_bank_reference_tag**](docs/PayoutsApi.md#get_deposits_by_bank_reference_tag) | **GET** /payouts/v1/deposits/bankReference/{bankReferenceTag} | Returns all pool activities matching given bank reference tag.
|
87
|
+
*Yapstone::PayoutsApi* | [**get_deposits_by_client_unique_txn_id**](docs/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.
|
88
|
+
*Yapstone::PayoutsApi* | [**get_deposits_by_correlation_id**](docs/PayoutsApi.md#get_deposits_by_correlation_id) | **GET** /payouts/v1/deposits/correlation/{clientCorrelationId} | Returns all pool activities matching given client correlation id.
|
89
|
+
*Yapstone::PayoutsApi* | [**get_deposits_by_correlation_id_and_status**](docs/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.
|
90
|
+
*Yapstone::PayoutsApi* | [**get_deposits_by_currency**](docs/PayoutsApi.md#get_deposits_by_currency) | **GET** /payouts/v1/deposits/currency/{currency} | Returns all pool activities matching given currency.
|
91
|
+
*Yapstone::PayoutsApi* | [**get_deposits_by_status**](docs/PayoutsApi.md#get_deposits_by_status) | **GET** /payouts/v1/deposits/status/{currentStatus} | Returns all pool activities matching given current status.
|
92
|
+
*Yapstone::PayoutsApi* | [**get_disbursements_by_client_correlation_id**](docs/PayoutsApi.md#get_disbursements_by_client_correlation_id) | **GET** /payouts/v1/disbursements/correlation/{clientCorrelationId} | Returns all disbursement transactions matching given correlation id.
|
93
|
+
*Yapstone::PayoutsApi* | [**get_disbursements_by_client_unique_txn_id**](docs/PayoutsApi.md#get_disbursements_by_client_unique_txn_id) | **GET** /payouts/v1/disbursements/clientId/{clientUniqueTxnId} | Returns all disbursement transactions matching given unique id.
|
94
|
+
*Yapstone::PayoutsApi* | [**get_disbursements_by_contract_id**](docs/PayoutsApi.md#get_disbursements_by_contract_id) | **GET** /payouts/v1/disbursements/contract/{contractId} | Returns all disbursement transactions matching given contract id.
|
95
|
+
*Yapstone::PayoutsApi* | [**get_disbursements_by_correlation_id_and_status**](docs/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.
|
96
|
+
*Yapstone::PayoutsApi* | [**get_disbursements_by_currency**](docs/PayoutsApi.md#get_disbursements_by_currency) | **GET** /payouts/v1/disbursements/currency/{currency} | Returns all disbursement transactions matching given contract id.
|
97
|
+
*Yapstone::PayoutsApi* | [**get_disbursements_by_instrument_id**](docs/PayoutsApi.md#get_disbursements_by_instrument_id) | **GET** /payouts/v1/disbursements/instrument/{payeeInstrumentId} | Returns all disbursement transactions matching given contract id.
|
98
|
+
*Yapstone::PayoutsApi* | [**get_disbursements_by_order_id**](docs/PayoutsApi.md#get_disbursements_by_order_id) | **GET** /payouts/v1/disbursements/order/{orderId} | Returns all disbursement transactions matching given order id.
|
99
|
+
*Yapstone::PayoutsApi* | [**get_disbursements_by_party_id**](docs/PayoutsApi.md#get_disbursements_by_party_id) | **GET** /payouts/v1/disbursements/party/{payeePartyId} | Returns all disbursement transactions matching given contract id.
|
100
|
+
*Yapstone::PayoutsApi* | [**get_disbursements_by_status**](docs/PayoutsApi.md#get_disbursements_by_status) | **GET** /payouts/v1/disbursements/status/{currentStatus} | Returns all disbursement transactions matching given current status.
|
101
|
+
*Yapstone::PayoutsApi* | [**get_disbursements_by_txn_id**](docs/PayoutsApi.md#get_disbursements_by_txn_id) | **GET** /payouts/v1/disbursements/{transactionId} | Returns the disbursement detail and status history for the given transactionId.
|
102
|
+
*Yapstone::PayoutsApi* | [**get_reimbursement**](docs/PayoutsApi.md#get_reimbursement) | **GET** /payouts/v1/reimbursements/{transactionId} | Returns the disbursement detail and status history for the given transactionId.
|
103
|
+
*Yapstone::PayoutsApi* | [**get_reimbursements_by_contract_id**](docs/PayoutsApi.md#get_reimbursements_by_contract_id) | **GET** /payouts/v1/reimbursements/contract/{contractId} | Returns all reimbursement transactions matching given contract .
|
104
|
+
*Yapstone::PayoutsApi* | [**get_reimbursements_by_correlation_id**](docs/PayoutsApi.md#get_reimbursements_by_correlation_id) | **GET** /payouts/v1/reimbursements/correlation/{clientCorrelationId} | Returns all reimbursement transactions matching given correlation .
|
105
|
+
*Yapstone::PayoutsApi* | [**get_reimbursements_by_correlation_id_and_status**](docs/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.
|
106
|
+
*Yapstone::PayoutsApi* | [**get_reimbursements_by_currency**](docs/PayoutsApi.md#get_reimbursements_by_currency) | **GET** /payouts/v1/reimbursements/currency/{currency} | Returns all reimbursement transactions matching given currency .
|
107
|
+
*Yapstone::PayoutsApi* | [**get_reimbursements_by_current_status**](docs/PayoutsApi.md#get_reimbursements_by_current_status) | **GET** /payouts/v1/reimbursements/clientId/{clientUniqueTxnId} | Returns all reimbursement transactions matching given clientId .
|
108
|
+
*Yapstone::PayoutsApi* | [**get_reimbursements_by_instrument**](docs/PayoutsApi.md#get_reimbursements_by_instrument) | **GET** /payouts/v1/reimbursements/instrument/{payeeInstrumentId} | Returns all reimbursement transactions matching given instrument .
|
109
|
+
*Yapstone::PayoutsApi* | [**get_reimbursements_by_order_id**](docs/PayoutsApi.md#get_reimbursements_by_order_id) | **GET** /payouts/v1/reimbursements/order/{orderId} | Returns all reimbursement transactions matching given order .
|
110
|
+
*Yapstone::PayoutsApi* | [**get_reimbursements_by_party_id**](docs/PayoutsApi.md#get_reimbursements_by_party_id) | **GET** /payouts/v1/reimbursements/party/{payeePartyId} | Returns all reimbursement transactions matching given party .
|
111
|
+
*Yapstone::PayoutsApi* | [**get_reimbursements_by_status**](docs/PayoutsApi.md#get_reimbursements_by_status) | **GET** /payouts/v1/reimbursements/status/{currentStatus} | Returns all reimbursement transactions matching given status .
|
112
|
+
*Yapstone::PayoutsApi* | [**reverse_disbursement**](docs/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.
|
113
|
+
*Yapstone::PayoutsApi* | [**reverse_reimbursement**](docs/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.
|
114
|
+
*Yapstone::PayoutsApi* | [**submit_disbursements_for_payees**](docs/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.
|
115
|
+
*Yapstone::PayoutsApi* | [**submit_reimbursements**](docs/PayoutsApi.md#submit_reimbursements) | **POST** /payouts/v1/reimbursements |
|
116
|
+
*Yapstone::PayoutsApi* | [**update_deposit**](docs/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).
|
117
|
+
|
118
|
+
|
119
|
+
## Documentation for Models
|
120
|
+
|
121
|
+
- [Yapstone::CancelDepositRequest](docs/CancelDepositRequest.md)
|
122
|
+
- [Yapstone::CancelRequest](docs/CancelRequest.md)
|
123
|
+
- [Yapstone::Deposit](docs/Deposit.md)
|
124
|
+
- [Yapstone::DepositDetail](docs/DepositDetail.md)
|
125
|
+
- [Yapstone::DepositListResponse](docs/DepositListResponse.md)
|
126
|
+
- [Yapstone::DepositRequest](docs/DepositRequest.md)
|
127
|
+
- [Yapstone::Disbursement](docs/Disbursement.md)
|
128
|
+
- [Yapstone::DisbursementListResponse](docs/DisbursementListResponse.md)
|
129
|
+
- [Yapstone::DisbursementRequest](docs/DisbursementRequest.md)
|
130
|
+
- [Yapstone::FundingPool](docs/FundingPool.md)
|
131
|
+
- [Yapstone::InlineResponse200](docs/InlineResponse200.md)
|
132
|
+
- [Yapstone::Meta](docs/Meta.md)
|
133
|
+
- [Yapstone::Page](docs/Page.md)
|
134
|
+
- [Yapstone::PaymentTransactionDetail](docs/PaymentTransactionDetail.md)
|
135
|
+
- [Yapstone::PoolListResponse](docs/PoolListResponse.md)
|
136
|
+
- [Yapstone::Reimbursement](docs/Reimbursement.md)
|
137
|
+
- [Yapstone::ReimbursementListResponse](docs/ReimbursementListResponse.md)
|
138
|
+
- [Yapstone::ReimbursementRequest](docs/ReimbursementRequest.md)
|
139
|
+
- [Yapstone::ReverseDisbursementRequest](docs/ReverseDisbursementRequest.md)
|
140
|
+
- [Yapstone::ReverseReimbursementRequest](docs/ReverseReimbursementRequest.md)
|
141
|
+
- [Yapstone::StatusChanges](docs/StatusChanges.md)
|
142
|
+
|
143
|
+
|
144
|
+
## Documentation for Authorization
|
145
|
+
|
146
|
+
|
147
|
+
### Bearer
|
148
|
+
|
149
|
+
- **Type**: Bearer authentication (JWT)
|
150
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
# Yapstone::AuthenticationApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api-prod-sandbox.yapstone.com/v1/payouts*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**authenticate_partner**](AuthenticationApi.md#authenticate_partner) | **POST** /v1/oauth2/client_credential/accesstoken | Authenticate Partner
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## authenticate_partner
|
12
|
+
|
13
|
+
> InlineResponse200 authenticate_partner(grant_type, authorization)
|
14
|
+
|
15
|
+
Authenticate Partner
|
16
|
+
|
17
|
+
Get an access token. It is OAuth2, and you must use the client credentials grant type. The token will allow you to authenticate with the other internal payments API endpoints.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'yapstone-payouts'
|
24
|
+
|
25
|
+
api_instance = Yapstone::AuthenticationApi.new
|
26
|
+
grant_type = 'client_credentials' # String | To do OAuth2 authentication, you must indicate the grant type, then adhere to it structurally. Yapstone API endpoints authenticate with OAuth2 and the grant type client credentials. This type of authentication is used to access resources on your own system rather than access a user's resources.
|
27
|
+
authorization = 'Basic SGxkdU5OcU1xMzBUZ0djYUpDWVpIWVRsejJjQUJlSHo6YkdIeWNpWXVibzNVTXZLRA==' # String | Provide client_id:client_secret as base64 encoded basic auth.
|
28
|
+
|
29
|
+
begin
|
30
|
+
#Authenticate Partner
|
31
|
+
result = api_instance.authenticate_partner(grant_type, authorization)
|
32
|
+
p result
|
33
|
+
rescue Yapstone::ApiError => e
|
34
|
+
puts "Exception when calling AuthenticationApi->authenticate_partner: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
### Parameters
|
39
|
+
|
40
|
+
|
41
|
+
Name | Type | Description | Notes
|
42
|
+
------------- | ------------- | ------------- | -------------
|
43
|
+
**grant_type** | **String**| To do OAuth2 authentication, you must indicate the grant type, then adhere to it structurally. Yapstone API endpoints authenticate with OAuth2 and the grant type client credentials. This type of authentication is used to access resources on your own system rather than access a user's resources. |
|
44
|
+
**authorization** | **String**| Provide client_id:client_secret as base64 encoded basic auth. |
|
45
|
+
|
46
|
+
### Return type
|
47
|
+
|
48
|
+
[**InlineResponse200**](InlineResponse200.md)
|
49
|
+
|
50
|
+
### Authorization
|
51
|
+
|
52
|
+
No authorization required
|
53
|
+
|
54
|
+
### HTTP request headers
|
55
|
+
|
56
|
+
- **Content-Type**: Not defined
|
57
|
+
- **Accept**: application/json
|
58
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Yapstone::CancelDepositRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**action** | **String** | |
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'Yapstone'
|
13
|
+
|
14
|
+
instance = Yapstone::CancelDepositRequest.new(action: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Yapstone::CancelRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**amount** | **Integer** | | [optional]
|
8
|
+
**action** | **String** | |
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'Yapstone'
|
14
|
+
|
15
|
+
instance = Yapstone::CancelRequest.new(amount: null,
|
16
|
+
action: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
data/docs/Deposit.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Yapstone::Deposit
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**deposit_id** | **String** | | [optional]
|
8
|
+
**currency** | **String** | | [optional]
|
9
|
+
**detail** | [**DepositDetail**](DepositDetail.md) | | [optional]
|
10
|
+
**posted_date** | **String** | | [optional]
|
11
|
+
**expiration_date** | **String** | | [optional]
|
12
|
+
**current_status** | **String** | | [optional]
|
13
|
+
**status_date** | **String** | | [optional]
|
14
|
+
**history** | [**Array<StatusChanges>**](StatusChanges.md) | | [optional]
|
15
|
+
|
16
|
+
## Code Sample
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'Yapstone'
|
20
|
+
|
21
|
+
instance = Yapstone::Deposit.new(deposit_id: null,
|
22
|
+
currency: null,
|
23
|
+
detail: null,
|
24
|
+
posted_date: null,
|
25
|
+
expiration_date: null,
|
26
|
+
current_status: null,
|
27
|
+
status_date: null,
|
28
|
+
history: null)
|
29
|
+
```
|
30
|
+
|
31
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Yapstone::DepositDetail
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**client_unique_txn_id** | **String** | | [optional]
|
8
|
+
**client_correlation_id** | **String** | | [optional]
|
9
|
+
**bank_reference_tag** | **String** | |
|
10
|
+
**amount** | **Integer** | |
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'Yapstone'
|
16
|
+
|
17
|
+
instance = Yapstone::DepositDetail.new(client_unique_txn_id: null,
|
18
|
+
client_correlation_id: null,
|
19
|
+
bank_reference_tag: null,
|
20
|
+
amount: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Yapstone::DepositListResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**meta** | [**Meta**](Meta.md) | | [optional]
|
8
|
+
**deposits** | [**Array<Deposit>**](Deposit.md) | | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'Yapstone'
|
14
|
+
|
15
|
+
instance = Yapstone::DepositListResponse.new(meta: null,
|
16
|
+
deposits: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Yapstone::DepositRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**currency** | **String** | |
|
8
|
+
**deposits** | [**Array<DepositDetail>**](DepositDetail.md) | |
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'Yapstone'
|
14
|
+
|
15
|
+
instance = Yapstone::DepositRequest.new(currency: null,
|
16
|
+
deposits: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|