velopayments 2.11.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +79 -0
- data/LICENSE +201 -0
- data/Makefile +39 -0
- data/README.md +279 -0
- data/Rakefile +10 -0
- data/docs/Address.md +31 -0
- data/docs/Challenge.md +19 -0
- data/docs/Company.md +19 -0
- data/docs/CountriesApi.md +106 -0
- data/docs/CreatePayee.md +59 -0
- data/docs/CreatePayeesCSVRequest.md +71 -0
- data/docs/CreatePayeesCSVResponse.md +19 -0
- data/docs/CreatePayeesRequest.md +19 -0
- data/docs/CreatePaymentChannel.md +29 -0
- data/docs/CreatePayoutRequest.md +21 -0
- data/docs/CurrenciesApi.md +57 -0
- data/docs/FailedSubmission.md +19 -0
- data/docs/FundingAudit.md +31 -0
- data/docs/FundingEvent.md +21 -0
- data/docs/FundingEventType.md +16 -0
- data/docs/FundingManagerApi.md +347 -0
- data/docs/FundingRequest.md +17 -0
- data/docs/FundingRequest2.md +17 -0
- data/docs/FxSummary.md +35 -0
- data/docs/GetFundingsResponse.md +21 -0
- data/docs/GetPaymentsForPayoutResponse.md +23 -0
- data/docs/GetPaymentsForPayoutResponseLinks.md +19 -0
- data/docs/GetPaymentsForPayoutResponsePage.md +25 -0
- data/docs/GetPaymentsForPayoutResponseSummary.md +25 -0
- data/docs/GetPayoutApi.md +61 -0
- data/docs/GetPayoutStatistics.md +19 -0
- data/docs/GetPayoutsResponse.md +23 -0
- data/docs/Individual.md +21 -0
- data/docs/IndividualName.md +23 -0
- data/docs/InstructPayoutApi.md +60 -0
- data/docs/InvitationStatusResponse.md +17 -0
- data/docs/InvitePayeeRequest.md +17 -0
- data/docs/Language.md +16 -0
- data/docs/ListPaymentsResponse.md +23 -0
- data/docs/ListSourceAccountResponse.md +21 -0
- data/docs/MarketingOptIn.md +19 -0
- data/docs/OfacStatus.md +16 -0
- data/docs/OnboardedStatus.md +16 -0
- data/docs/PagedResponse.md +19 -0
- data/docs/PagedResponsePage.md +25 -0
- data/docs/Payee.md +57 -0
- data/docs/PayeeInvitationApi.md +222 -0
- data/docs/PayeeInvitationStatus.md +21 -0
- data/docs/PayeeResponse.md +23 -0
- data/docs/PayeeType.md +16 -0
- data/docs/PayeesApi.md +192 -0
- data/docs/PaymentAuditCurrency.md +16 -0
- data/docs/PaymentAuditServiceApi.md +424 -0
- data/docs/PaymentChannel.md +29 -0
- data/docs/PaymentChannelCountry.md +19 -0
- data/docs/PaymentChannelRule.md +29 -0
- data/docs/PaymentChannelRulesResponse.md +17 -0
- data/docs/PaymentEventResponse.md +39 -0
- data/docs/PaymentInstruction.md +27 -0
- data/docs/PaymentResponse.md +81 -0
- data/docs/Payor.md +55 -0
- data/docs/PayorApplicationsApi.md +119 -0
- data/docs/PayorBrandingResponse.md +25 -0
- data/docs/PayorCreateApiKeyRequest.md +21 -0
- data/docs/PayorCreateApiKeyResponse.md +19 -0
- data/docs/PayorCreateApplicationRequest.md +19 -0
- data/docs/PayorEmailOptOutRequest.md +17 -0
- data/docs/PayorFundingBankDetailsUpdate.md +21 -0
- data/docs/PayorLogoRequest.md +17 -0
- data/docs/PayorRef.md +21 -0
- data/docs/PayorsApi.md +224 -0
- data/docs/PayoutHistoryApi.md +142 -0
- data/docs/PayoutStatus.md +16 -0
- data/docs/PayoutSummaryAudit.md +39 -0
- data/docs/PayoutSummaryResponse.md +31 -0
- data/docs/QueryBatchResponse.md +23 -0
- data/docs/QuoteFxSummary.md +37 -0
- data/docs/QuotePayoutApi.md +61 -0
- data/docs/QuoteResponse.md +17 -0
- data/docs/RejectedPayment.md +31 -0
- data/docs/Social.md +21 -0
- data/docs/SourceAccount.md +23 -0
- data/docs/SourceAccountResponse.md +39 -0
- data/docs/SourceAccountSummary.md +21 -0
- data/docs/SubmitPayoutApi.md +60 -0
- data/docs/SupportedCountriesResponse.md +17 -0
- data/docs/SupportedCountry.md +19 -0
- data/docs/SupportedCurrency.md +19 -0
- data/docs/SupportedCurrencyResponse.md +17 -0
- data/docs/WithdrawPayoutApi.md +60 -0
- data/lib/velopayments.rb +124 -0
- data/lib/velopayments/api/countries_api.rb +116 -0
- data/lib/velopayments/api/currencies_api.rb +69 -0
- data/lib/velopayments/api/funding_manager_api.rb +374 -0
- data/lib/velopayments/api/get_payout_api.rb +75 -0
- data/lib/velopayments/api/instruct_payout_api.rb +72 -0
- data/lib/velopayments/api/payee_invitation_api.rb +244 -0
- data/lib/velopayments/api/payees_api.rb +217 -0
- data/lib/velopayments/api/payment_audit_service_api.rb +473 -0
- data/lib/velopayments/api/payor_applications_api.rb +147 -0
- data/lib/velopayments/api/payors_api.rb +241 -0
- data/lib/velopayments/api/payout_history_api.rb +165 -0
- data/lib/velopayments/api/quote_payout_api.rb +75 -0
- data/lib/velopayments/api/submit_payout_api.rb +74 -0
- data/lib/velopayments/api/withdraw_payout_api.rb +72 -0
- data/lib/velopayments/api_client.rb +387 -0
- data/lib/velopayments/api_error.rb +57 -0
- data/lib/velopayments/configuration.rb +251 -0
- data/lib/velopayments/models/address.rb +478 -0
- data/lib/velopayments/models/challenge.rb +271 -0
- data/lib/velopayments/models/company.rb +256 -0
- data/lib/velopayments/models/create_payee.rb +466 -0
- data/lib/velopayments/models/create_payees_csv_request.rb +1052 -0
- data/lib/velopayments/models/create_payees_csv_response.rb +207 -0
- data/lib/velopayments/models/create_payees_request.rb +217 -0
- data/lib/velopayments/models/create_payment_channel.rb +414 -0
- data/lib/velopayments/models/create_payout_request.rb +226 -0
- data/lib/velopayments/models/failed_submission.rb +205 -0
- data/lib/velopayments/models/funding_audit.rb +295 -0
- data/lib/velopayments/models/funding_event.rb +214 -0
- data/lib/velopayments/models/funding_event_type.rb +41 -0
- data/lib/velopayments/models/funding_request.rb +230 -0
- data/lib/velopayments/models/funding_request2.rb +230 -0
- data/lib/velopayments/models/fx_summary.rb +363 -0
- data/lib/velopayments/models/get_fundings_response.rb +223 -0
- data/lib/velopayments/models/get_payments_for_payout_response.rb +228 -0
- data/lib/velopayments/models/get_payments_for_payout_response_links.rb +205 -0
- data/lib/velopayments/models/get_payments_for_payout_response_page.rb +232 -0
- data/lib/velopayments/models/get_payments_for_payout_response_summary.rb +232 -0
- data/lib/velopayments/models/get_payout_statistics.rb +215 -0
- data/lib/velopayments/models/get_payouts_response.rb +228 -0
- data/lib/velopayments/models/individual.rb +224 -0
- data/lib/velopayments/models/individual_name.rb +337 -0
- data/lib/velopayments/models/invitation_status_response.rb +203 -0
- data/lib/velopayments/models/invite_payee_request.rb +201 -0
- data/lib/velopayments/models/language.rb +45 -0
- data/lib/velopayments/models/list_payments_response.rb +228 -0
- data/lib/velopayments/models/list_source_account_response.rb +219 -0
- data/lib/velopayments/models/marketing_opt_in.rb +205 -0
- data/lib/velopayments/models/ofac_status.rb +37 -0
- data/lib/velopayments/models/onboarded_status.rb +38 -0
- data/lib/velopayments/models/paged_response.rb +207 -0
- data/lib/velopayments/models/paged_response_page.rb +232 -0
- data/lib/velopayments/models/payee.rb +381 -0
- data/lib/velopayments/models/payee_invitation_status.rb +258 -0
- data/lib/velopayments/models/payee_response.rb +228 -0
- data/lib/velopayments/models/payee_type.rb +36 -0
- data/lib/velopayments/models/payment_audit_currency.rb +37 -0
- data/lib/velopayments/models/payment_channel.rb +430 -0
- data/lib/velopayments/models/payment_channel_country.rb +207 -0
- data/lib/velopayments/models/payment_channel_rule.rb +250 -0
- data/lib/velopayments/models/payment_channel_rules_response.rb +198 -0
- data/lib/velopayments/models/payment_event_response.rb +351 -0
- data/lib/velopayments/models/payment_instruction.rb +430 -0
- data/lib/velopayments/models/payment_response.rb +587 -0
- data/lib/velopayments/models/payor.rb +435 -0
- data/lib/velopayments/models/payor_branding_response.rb +247 -0
- data/lib/velopayments/models/payor_create_api_key_request.rb +303 -0
- data/lib/velopayments/models/payor_create_api_key_response.rb +207 -0
- data/lib/velopayments/models/payor_create_application_request.rb +264 -0
- data/lib/velopayments/models/payor_email_opt_out_request.rb +196 -0
- data/lib/velopayments/models/payor_funding_bank_details_update.rb +316 -0
- data/lib/velopayments/models/payor_logo_request.rb +196 -0
- data/lib/velopayments/models/payor_ref.rb +214 -0
- data/lib/velopayments/models/payout_status.rb +43 -0
- data/lib/velopayments/models/payout_summary_audit.rb +314 -0
- data/lib/velopayments/models/payout_summary_response.rb +280 -0
- data/lib/velopayments/models/query_batch_response.rb +260 -0
- data/lib/velopayments/models/quote_fx_summary.rb +377 -0
- data/lib/velopayments/models/quote_response.rb +198 -0
- data/lib/velopayments/models/rejected_payment.rb +323 -0
- data/lib/velopayments/models/social.rb +214 -0
- data/lib/velopayments/models/source_account.rb +243 -0
- data/lib/velopayments/models/source_account_response.rb +341 -0
- data/lib/velopayments/models/source_account_summary.rb +224 -0
- data/lib/velopayments/models/supported_countries_response.rb +198 -0
- data/lib/velopayments/models/supported_country.rb +207 -0
- data/lib/velopayments/models/supported_currency.rb +206 -0
- data/lib/velopayments/models/supported_currency_response.rb +198 -0
- data/lib/velopayments/version.rb +15 -0
- data/oa3-config.json +8 -0
- data/spec/api/countries_api_spec.rb +57 -0
- data/spec/api/currencies_api_spec.rb +46 -0
- data/spec/api/funding_manager_api_spec.rb +117 -0
- data/spec/api/get_payout_api_spec.rb +47 -0
- data/spec/api/instruct_payout_api_spec.rb +47 -0
- data/spec/api/payee_invitation_api_spec.rb +84 -0
- data/spec/api/payees_api_spec.rb +82 -0
- data/spec/api/payment_audit_service_api_spec.rb +150 -0
- data/spec/api/payor_applications_api_spec.rb +62 -0
- data/spec/api/payors_api_spec.rb +85 -0
- data/spec/api/payout_history_api_spec.rb +71 -0
- data/spec/api/quote_payout_api_spec.rb +47 -0
- data/spec/api/submit_payout_api_spec.rb +47 -0
- data/spec/api/withdraw_payout_api_spec.rb +47 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/address_spec.rb +83 -0
- data/spec/models/challenge_spec.rb +47 -0
- data/spec/models/company_spec.rb +47 -0
- data/spec/models/create_payee_spec.rb +167 -0
- data/spec/models/create_payees_csv_request_spec.rb +211 -0
- data/spec/models/create_payees_csv_response_spec.rb +47 -0
- data/spec/models/create_payees_request_spec.rb +47 -0
- data/spec/models/create_payment_channel_spec.rb +81 -0
- data/spec/models/create_payout_request_spec.rb +53 -0
- data/spec/models/failed_submission_spec.rb +47 -0
- data/spec/models/funding_audit_spec.rb +87 -0
- data/spec/models/funding_event_spec.rb +53 -0
- data/spec/models/funding_event_type_spec.rb +35 -0
- data/spec/models/funding_request2_spec.rb +41 -0
- data/spec/models/funding_request_spec.rb +41 -0
- data/spec/models/fx_summary_spec.rb +103 -0
- data/spec/models/get_fundings_response_spec.rb +53 -0
- data/spec/models/get_payments_for_payout_response_links_spec.rb +47 -0
- data/spec/models/get_payments_for_payout_response_page_spec.rb +65 -0
- data/spec/models/get_payments_for_payout_response_spec.rb +59 -0
- data/spec/models/get_payments_for_payout_response_summary_spec.rb +65 -0
- data/spec/models/get_payout_statistics_spec.rb +47 -0
- data/spec/models/get_payouts_response_spec.rb +59 -0
- data/spec/models/individual_name_spec.rb +59 -0
- data/spec/models/individual_spec.rb +53 -0
- data/spec/models/invitation_status_response_spec.rb +41 -0
- data/spec/models/invite_payee_request_spec.rb +41 -0
- data/spec/models/language_spec.rb +35 -0
- data/spec/models/list_payments_response_spec.rb +59 -0
- data/spec/models/list_source_account_response_spec.rb +53 -0
- data/spec/models/marketing_opt_in_spec.rb +47 -0
- data/spec/models/ofac_status_spec.rb +35 -0
- data/spec/models/onboarded_status_spec.rb +35 -0
- data/spec/models/paged_response_page_spec.rb +65 -0
- data/spec/models/paged_response_spec.rb +47 -0
- data/spec/models/payee_invitation_status_spec.rb +57 -0
- data/spec/models/payee_response_spec.rb +59 -0
- data/spec/models/payee_spec.rb +161 -0
- data/spec/models/payee_type_spec.rb +35 -0
- data/spec/models/payment_audit_currency_spec.rb +35 -0
- data/spec/models/payment_channel_country_spec.rb +47 -0
- data/spec/models/payment_channel_rule_spec.rb +77 -0
- data/spec/models/payment_channel_rules_response_spec.rb +41 -0
- data/spec/models/payment_channel_spec.rb +81 -0
- data/spec/models/payment_event_response_spec.rb +111 -0
- data/spec/models/payment_instruction_spec.rb +75 -0
- data/spec/models/payment_response_spec.rb +241 -0
- data/spec/models/payor_branding_response_spec.rb +65 -0
- data/spec/models/payor_create_api_key_request_spec.rb +57 -0
- data/spec/models/payor_create_api_key_response_spec.rb +47 -0
- data/spec/models/payor_create_application_request_spec.rb +47 -0
- data/spec/models/payor_email_opt_out_request_spec.rb +41 -0
- data/spec/models/payor_funding_bank_details_update_spec.rb +53 -0
- data/spec/models/payor_logo_request_spec.rb +41 -0
- data/spec/models/payor_ref_spec.rb +53 -0
- data/spec/models/payor_spec.rb +163 -0
- data/spec/models/payout_status_spec.rb +35 -0
- data/spec/models/payout_summary_audit_spec.rb +107 -0
- data/spec/models/payout_summary_response_spec.rb +83 -0
- data/spec/models/query_batch_response_spec.rb +63 -0
- data/spec/models/quote_fx_summary_spec.rb +101 -0
- data/spec/models/quote_response_spec.rb +41 -0
- data/spec/models/rejected_payment_spec.rb +87 -0
- data/spec/models/social_spec.rb +53 -0
- data/spec/models/source_account_response_spec.rb +111 -0
- data/spec/models/source_account_spec.rb +59 -0
- data/spec/models/source_account_summary_spec.rb +53 -0
- data/spec/models/supported_countries_response_spec.rb +41 -0
- data/spec/models/supported_country_spec.rb +47 -0
- data/spec/models/supported_currency_response_spec.rb +41 -0
- data/spec/models/supported_currency_spec.rb +47 -0
- data/spec/spec_helper.rb +111 -0
- data/velopayments.gemspec +45 -0
- metadata +586 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
# VeloPayments::FailedSubmission
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**failed_submission** | [**Payee**](Payee.md) | | [optional]
|
8
|
+
**failure_message** | **String** | | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'VeloPayments'
|
14
|
+
|
15
|
+
instance = VeloPayments::FailedSubmission.new(failed_submission: null,
|
16
|
+
failure_message: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# VeloPayments::FundingAudit
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**amount** | **Float** | | [optional]
|
8
|
+
**date_time** | **DateTime** | | [optional]
|
9
|
+
**status** | **String** | | [optional]
|
10
|
+
**currency** | **String** | | [optional]
|
11
|
+
**source_account_name** | **String** | | [optional]
|
12
|
+
**funding_account_name** | **String** | | [optional]
|
13
|
+
**funding_type** | **String** | | [optional]
|
14
|
+
**events** | [**Array<FundingEvent>**](FundingEvent.md) | | [optional]
|
15
|
+
|
16
|
+
## Code Sample
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'VeloPayments'
|
20
|
+
|
21
|
+
instance = VeloPayments::FundingAudit.new(amount: null,
|
22
|
+
date_time: null,
|
23
|
+
status: null,
|
24
|
+
currency: null,
|
25
|
+
source_account_name: null,
|
26
|
+
funding_account_name: null,
|
27
|
+
funding_type: null,
|
28
|
+
events: null)
|
29
|
+
```
|
30
|
+
|
31
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# VeloPayments::FundingEvent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**event_id** | **String** | | [optional]
|
8
|
+
**event_date_time** | **DateTime** | | [optional]
|
9
|
+
**funding_event_type** | [**FundingEventType**](FundingEventType.md) | | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'VeloPayments'
|
15
|
+
|
16
|
+
instance = VeloPayments::FundingEvent.new(event_id: null,
|
17
|
+
event_date_time: null,
|
18
|
+
funding_event_type: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# VeloPayments::FundingEventType
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
|
8
|
+
## Code Sample
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'VeloPayments'
|
12
|
+
|
13
|
+
instance = VeloPayments::FundingEventType.new()
|
14
|
+
```
|
15
|
+
|
16
|
+
|
@@ -0,0 +1,347 @@
|
|
1
|
+
# VeloPayments::FundingManagerApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.sandbox.velopayments.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_ach_funding_request**](FundingManagerApi.md#create_ach_funding_request) | **POST** /v1/sourceAccounts/{sourceAccountId}/achFundingRequest | Create Funding Request
|
8
|
+
[**create_funding_request**](FundingManagerApi.md#create_funding_request) | **POST** /v2/sourceAccounts/{sourceAccountId}/fundingRequest | Create Funding Request
|
9
|
+
[**get_fundings**](FundingManagerApi.md#get_fundings) | **GET** /v1/paymentaudit/fundings | Get Fundings for Payor
|
10
|
+
[**get_source_account**](FundingManagerApi.md#get_source_account) | **GET** /v1/sourceAccounts/{sourceAccountId} | Get details about given source account.
|
11
|
+
[**get_source_accounts**](FundingManagerApi.md#get_source_accounts) | **GET** /v1/sourceAccounts | Get list of source accounts
|
12
|
+
[**set_payor_funding_bank_details**](FundingManagerApi.md#set_payor_funding_bank_details) | **POST** /v1/payors/{payorId}/payorFundingBankDetailsUpdate | Set Funding Bank Details
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
## create_ach_funding_request
|
17
|
+
|
18
|
+
> create_ach_funding_request(source_account_id, funding_request)
|
19
|
+
|
20
|
+
Create Funding Request
|
21
|
+
|
22
|
+
Instruct a funding request to transfer funds from the payor’s funding bank to the payor’s balance held within Velo (202 - accepted, 400 - invalid request body, 404 - source account not found).
|
23
|
+
|
24
|
+
### Example
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
# load the gem
|
28
|
+
require 'velopayments'
|
29
|
+
# setup authorization
|
30
|
+
VeloPayments.configure do |config|
|
31
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
32
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
33
|
+
end
|
34
|
+
|
35
|
+
api_instance = VeloPayments::FundingManagerApi.new
|
36
|
+
source_account_id = 'source_account_id_example' # String | Source account id
|
37
|
+
funding_request = VeloPayments::FundingRequest.new # FundingRequest | Body to included ammount to be funded
|
38
|
+
|
39
|
+
begin
|
40
|
+
#Create Funding Request
|
41
|
+
api_instance.create_ach_funding_request(source_account_id, funding_request)
|
42
|
+
rescue VeloPayments::ApiError => e
|
43
|
+
puts "Exception when calling FundingManagerApi->create_ach_funding_request: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
|
50
|
+
Name | Type | Description | Notes
|
51
|
+
------------- | ------------- | ------------- | -------------
|
52
|
+
**source_account_id** | [**String**](.md)| Source account id |
|
53
|
+
**funding_request** | [**FundingRequest**](FundingRequest.md)| Body to included ammount to be funded |
|
54
|
+
|
55
|
+
### Return type
|
56
|
+
|
57
|
+
nil (empty response body)
|
58
|
+
|
59
|
+
### Authorization
|
60
|
+
|
61
|
+
[OAuth2](../README.md#OAuth2)
|
62
|
+
|
63
|
+
### HTTP request headers
|
64
|
+
|
65
|
+
- **Content-Type**: application/json
|
66
|
+
- **Accept**: application/json
|
67
|
+
|
68
|
+
|
69
|
+
## create_funding_request
|
70
|
+
|
71
|
+
> create_funding_request(source_account_id, funding_request2)
|
72
|
+
|
73
|
+
Create Funding Request
|
74
|
+
|
75
|
+
Instruct a funding request to transfer funds from the payor’s funding bank to the payor’s balance held within Velo (202 - accepted, 400 - invalid request body, 404 - source account not found).
|
76
|
+
|
77
|
+
### Example
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
# load the gem
|
81
|
+
require 'velopayments'
|
82
|
+
# setup authorization
|
83
|
+
VeloPayments.configure do |config|
|
84
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
85
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
86
|
+
end
|
87
|
+
|
88
|
+
api_instance = VeloPayments::FundingManagerApi.new
|
89
|
+
source_account_id = 'source_account_id_example' # String | Source account id
|
90
|
+
funding_request2 = VeloPayments::FundingRequest2.new # FundingRequest2 | Body to included ammount to be funded
|
91
|
+
|
92
|
+
begin
|
93
|
+
#Create Funding Request
|
94
|
+
api_instance.create_funding_request(source_account_id, funding_request2)
|
95
|
+
rescue VeloPayments::ApiError => e
|
96
|
+
puts "Exception when calling FundingManagerApi->create_funding_request: #{e}"
|
97
|
+
end
|
98
|
+
```
|
99
|
+
|
100
|
+
### Parameters
|
101
|
+
|
102
|
+
|
103
|
+
Name | Type | Description | Notes
|
104
|
+
------------- | ------------- | ------------- | -------------
|
105
|
+
**source_account_id** | [**String**](.md)| Source account id |
|
106
|
+
**funding_request2** | [**FundingRequest2**](FundingRequest2.md)| Body to included ammount to be funded |
|
107
|
+
|
108
|
+
### Return type
|
109
|
+
|
110
|
+
nil (empty response body)
|
111
|
+
|
112
|
+
### Authorization
|
113
|
+
|
114
|
+
[OAuth2](../README.md#OAuth2)
|
115
|
+
|
116
|
+
### HTTP request headers
|
117
|
+
|
118
|
+
- **Content-Type**: application/json
|
119
|
+
- **Accept**: application/json
|
120
|
+
|
121
|
+
|
122
|
+
## get_fundings
|
123
|
+
|
124
|
+
> GetFundingsResponse get_fundings(opts)
|
125
|
+
|
126
|
+
Get Fundings for Payor
|
127
|
+
|
128
|
+
Get a list of Fundings for a payor.
|
129
|
+
|
130
|
+
### Example
|
131
|
+
|
132
|
+
```ruby
|
133
|
+
# load the gem
|
134
|
+
require 'velopayments'
|
135
|
+
# setup authorization
|
136
|
+
VeloPayments.configure do |config|
|
137
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
138
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
139
|
+
end
|
140
|
+
|
141
|
+
api_instance = VeloPayments::FundingManagerApi.new
|
142
|
+
opts = {
|
143
|
+
payor_id: 'payor_id_example', # String | The account owner Payor ID
|
144
|
+
page: 1, # Integer | Page number. Default is 1.
|
145
|
+
page_size: 25, # Integer | Page size. Default is 25. Max allowable is 100.
|
146
|
+
sort: 'sort_example' # String | List of sort fields. Example: ```?sort=destinationCurrency:asc,destinationAmount:asc``` Default is no sort. The supported sort fields are: dateTime and amount.
|
147
|
+
}
|
148
|
+
|
149
|
+
begin
|
150
|
+
#Get Fundings for Payor
|
151
|
+
result = api_instance.get_fundings(opts)
|
152
|
+
p result
|
153
|
+
rescue VeloPayments::ApiError => e
|
154
|
+
puts "Exception when calling FundingManagerApi->get_fundings: #{e}"
|
155
|
+
end
|
156
|
+
```
|
157
|
+
|
158
|
+
### Parameters
|
159
|
+
|
160
|
+
|
161
|
+
Name | Type | Description | Notes
|
162
|
+
------------- | ------------- | ------------- | -------------
|
163
|
+
**payor_id** | [**String**](.md)| The account owner Payor ID | [optional]
|
164
|
+
**page** | **Integer**| Page number. Default is 1. | [optional] [default to 1]
|
165
|
+
**page_size** | **Integer**| Page size. Default is 25. Max allowable is 100. | [optional] [default to 25]
|
166
|
+
**sort** | **String**| List of sort fields. Example: ```?sort=destinationCurrency:asc,destinationAmount:asc``` Default is no sort. The supported sort fields are: dateTime and amount. | [optional]
|
167
|
+
|
168
|
+
### Return type
|
169
|
+
|
170
|
+
[**GetFundingsResponse**](GetFundingsResponse.md)
|
171
|
+
|
172
|
+
### Authorization
|
173
|
+
|
174
|
+
[OAuth2](../README.md#OAuth2)
|
175
|
+
|
176
|
+
### HTTP request headers
|
177
|
+
|
178
|
+
- **Content-Type**: Not defined
|
179
|
+
- **Accept**: application/json
|
180
|
+
|
181
|
+
|
182
|
+
## get_source_account
|
183
|
+
|
184
|
+
> SourceAccountResponse get_source_account(source_account_id)
|
185
|
+
|
186
|
+
Get details about given source account.
|
187
|
+
|
188
|
+
Get details about given source account.
|
189
|
+
|
190
|
+
### Example
|
191
|
+
|
192
|
+
```ruby
|
193
|
+
# load the gem
|
194
|
+
require 'velopayments'
|
195
|
+
# setup authorization
|
196
|
+
VeloPayments.configure do |config|
|
197
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
198
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
199
|
+
end
|
200
|
+
|
201
|
+
api_instance = VeloPayments::FundingManagerApi.new
|
202
|
+
source_account_id = 'source_account_id_example' # String | Source account id
|
203
|
+
|
204
|
+
begin
|
205
|
+
#Get details about given source account.
|
206
|
+
result = api_instance.get_source_account(source_account_id)
|
207
|
+
p result
|
208
|
+
rescue VeloPayments::ApiError => e
|
209
|
+
puts "Exception when calling FundingManagerApi->get_source_account: #{e}"
|
210
|
+
end
|
211
|
+
```
|
212
|
+
|
213
|
+
### Parameters
|
214
|
+
|
215
|
+
|
216
|
+
Name | Type | Description | Notes
|
217
|
+
------------- | ------------- | ------------- | -------------
|
218
|
+
**source_account_id** | [**String**](.md)| Source account id |
|
219
|
+
|
220
|
+
### Return type
|
221
|
+
|
222
|
+
[**SourceAccountResponse**](SourceAccountResponse.md)
|
223
|
+
|
224
|
+
### Authorization
|
225
|
+
|
226
|
+
[OAuth2](../README.md#OAuth2)
|
227
|
+
|
228
|
+
### HTTP request headers
|
229
|
+
|
230
|
+
- **Content-Type**: Not defined
|
231
|
+
- **Accept**: application/json
|
232
|
+
|
233
|
+
|
234
|
+
## get_source_accounts
|
235
|
+
|
236
|
+
> ListSourceAccountResponse get_source_accounts(opts)
|
237
|
+
|
238
|
+
Get list of source accounts
|
239
|
+
|
240
|
+
List source accounts.
|
241
|
+
|
242
|
+
### Example
|
243
|
+
|
244
|
+
```ruby
|
245
|
+
# load the gem
|
246
|
+
require 'velopayments'
|
247
|
+
# setup authorization
|
248
|
+
VeloPayments.configure do |config|
|
249
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
250
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
251
|
+
end
|
252
|
+
|
253
|
+
api_instance = VeloPayments::FundingManagerApi.new
|
254
|
+
opts = {
|
255
|
+
physical_account_name: 'physical_account_name_example', # String | Physical Account Name
|
256
|
+
payor_id: 'payor_id_example', # String | The account owner Payor ID
|
257
|
+
page: 1, # Integer | Page number. Default is 1.
|
258
|
+
page_size: 25, # Integer | Page size. Default is 25. Max allowable is 100.
|
259
|
+
sort: 'sort_example' # String | Sort String
|
260
|
+
}
|
261
|
+
|
262
|
+
begin
|
263
|
+
#Get list of source accounts
|
264
|
+
result = api_instance.get_source_accounts(opts)
|
265
|
+
p result
|
266
|
+
rescue VeloPayments::ApiError => e
|
267
|
+
puts "Exception when calling FundingManagerApi->get_source_accounts: #{e}"
|
268
|
+
end
|
269
|
+
```
|
270
|
+
|
271
|
+
### Parameters
|
272
|
+
|
273
|
+
|
274
|
+
Name | Type | Description | Notes
|
275
|
+
------------- | ------------- | ------------- | -------------
|
276
|
+
**physical_account_name** | **String**| Physical Account Name | [optional]
|
277
|
+
**payor_id** | [**String**](.md)| The account owner Payor ID | [optional]
|
278
|
+
**page** | **Integer**| Page number. Default is 1. | [optional] [default to 1]
|
279
|
+
**page_size** | **Integer**| Page size. Default is 25. Max allowable is 100. | [optional] [default to 25]
|
280
|
+
**sort** | **String**| Sort String | [optional]
|
281
|
+
|
282
|
+
### Return type
|
283
|
+
|
284
|
+
[**ListSourceAccountResponse**](ListSourceAccountResponse.md)
|
285
|
+
|
286
|
+
### Authorization
|
287
|
+
|
288
|
+
[OAuth2](../README.md#OAuth2)
|
289
|
+
|
290
|
+
### HTTP request headers
|
291
|
+
|
292
|
+
- **Content-Type**: Not defined
|
293
|
+
- **Accept**: application/json
|
294
|
+
|
295
|
+
|
296
|
+
## set_payor_funding_bank_details
|
297
|
+
|
298
|
+
> set_payor_funding_bank_details(payor_id, payor_funding_bank_details_update)
|
299
|
+
|
300
|
+
Set Funding Bank Details
|
301
|
+
|
302
|
+
This API allows you to set or update the funding details for the given Payor ID.
|
303
|
+
|
304
|
+
### Example
|
305
|
+
|
306
|
+
```ruby
|
307
|
+
# load the gem
|
308
|
+
require 'velopayments'
|
309
|
+
# setup authorization
|
310
|
+
VeloPayments.configure do |config|
|
311
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
312
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
313
|
+
end
|
314
|
+
|
315
|
+
api_instance = VeloPayments::FundingManagerApi.new
|
316
|
+
payor_id = 'payor_id_example' # String | The account owner Payor ID
|
317
|
+
payor_funding_bank_details_update = VeloPayments::PayorFundingBankDetailsUpdate.new # PayorFundingBankDetailsUpdate | Update Funding bank details of given Payor Id
|
318
|
+
|
319
|
+
begin
|
320
|
+
#Set Funding Bank Details
|
321
|
+
api_instance.set_payor_funding_bank_details(payor_id, payor_funding_bank_details_update)
|
322
|
+
rescue VeloPayments::ApiError => e
|
323
|
+
puts "Exception when calling FundingManagerApi->set_payor_funding_bank_details: #{e}"
|
324
|
+
end
|
325
|
+
```
|
326
|
+
|
327
|
+
### Parameters
|
328
|
+
|
329
|
+
|
330
|
+
Name | Type | Description | Notes
|
331
|
+
------------- | ------------- | ------------- | -------------
|
332
|
+
**payor_id** | [**String**](.md)| The account owner Payor ID |
|
333
|
+
**payor_funding_bank_details_update** | [**PayorFundingBankDetailsUpdate**](PayorFundingBankDetailsUpdate.md)| Update Funding bank details of given Payor Id |
|
334
|
+
|
335
|
+
### Return type
|
336
|
+
|
337
|
+
nil (empty response body)
|
338
|
+
|
339
|
+
### Authorization
|
340
|
+
|
341
|
+
[OAuth2](../README.md#OAuth2)
|
342
|
+
|
343
|
+
### HTTP request headers
|
344
|
+
|
345
|
+
- **Content-Type**: application/json
|
346
|
+
- **Accept**: Not defined
|
347
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# VeloPayments::FundingRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**amount** | **Integer** | Amount to fund, decimal implied |
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'VeloPayments'
|
13
|
+
|
14
|
+
instance = VeloPayments::FundingRequest.new(amount: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|