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.
Files changed (273) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +79 -0
  4. data/LICENSE +201 -0
  5. data/Makefile +39 -0
  6. data/README.md +279 -0
  7. data/Rakefile +10 -0
  8. data/docs/Address.md +31 -0
  9. data/docs/Challenge.md +19 -0
  10. data/docs/Company.md +19 -0
  11. data/docs/CountriesApi.md +106 -0
  12. data/docs/CreatePayee.md +59 -0
  13. data/docs/CreatePayeesCSVRequest.md +71 -0
  14. data/docs/CreatePayeesCSVResponse.md +19 -0
  15. data/docs/CreatePayeesRequest.md +19 -0
  16. data/docs/CreatePaymentChannel.md +29 -0
  17. data/docs/CreatePayoutRequest.md +21 -0
  18. data/docs/CurrenciesApi.md +57 -0
  19. data/docs/FailedSubmission.md +19 -0
  20. data/docs/FundingAudit.md +31 -0
  21. data/docs/FundingEvent.md +21 -0
  22. data/docs/FundingEventType.md +16 -0
  23. data/docs/FundingManagerApi.md +347 -0
  24. data/docs/FundingRequest.md +17 -0
  25. data/docs/FundingRequest2.md +17 -0
  26. data/docs/FxSummary.md +35 -0
  27. data/docs/GetFundingsResponse.md +21 -0
  28. data/docs/GetPaymentsForPayoutResponse.md +23 -0
  29. data/docs/GetPaymentsForPayoutResponseLinks.md +19 -0
  30. data/docs/GetPaymentsForPayoutResponsePage.md +25 -0
  31. data/docs/GetPaymentsForPayoutResponseSummary.md +25 -0
  32. data/docs/GetPayoutApi.md +61 -0
  33. data/docs/GetPayoutStatistics.md +19 -0
  34. data/docs/GetPayoutsResponse.md +23 -0
  35. data/docs/Individual.md +21 -0
  36. data/docs/IndividualName.md +23 -0
  37. data/docs/InstructPayoutApi.md +60 -0
  38. data/docs/InvitationStatusResponse.md +17 -0
  39. data/docs/InvitePayeeRequest.md +17 -0
  40. data/docs/Language.md +16 -0
  41. data/docs/ListPaymentsResponse.md +23 -0
  42. data/docs/ListSourceAccountResponse.md +21 -0
  43. data/docs/MarketingOptIn.md +19 -0
  44. data/docs/OfacStatus.md +16 -0
  45. data/docs/OnboardedStatus.md +16 -0
  46. data/docs/PagedResponse.md +19 -0
  47. data/docs/PagedResponsePage.md +25 -0
  48. data/docs/Payee.md +57 -0
  49. data/docs/PayeeInvitationApi.md +222 -0
  50. data/docs/PayeeInvitationStatus.md +21 -0
  51. data/docs/PayeeResponse.md +23 -0
  52. data/docs/PayeeType.md +16 -0
  53. data/docs/PayeesApi.md +192 -0
  54. data/docs/PaymentAuditCurrency.md +16 -0
  55. data/docs/PaymentAuditServiceApi.md +424 -0
  56. data/docs/PaymentChannel.md +29 -0
  57. data/docs/PaymentChannelCountry.md +19 -0
  58. data/docs/PaymentChannelRule.md +29 -0
  59. data/docs/PaymentChannelRulesResponse.md +17 -0
  60. data/docs/PaymentEventResponse.md +39 -0
  61. data/docs/PaymentInstruction.md +27 -0
  62. data/docs/PaymentResponse.md +81 -0
  63. data/docs/Payor.md +55 -0
  64. data/docs/PayorApplicationsApi.md +119 -0
  65. data/docs/PayorBrandingResponse.md +25 -0
  66. data/docs/PayorCreateApiKeyRequest.md +21 -0
  67. data/docs/PayorCreateApiKeyResponse.md +19 -0
  68. data/docs/PayorCreateApplicationRequest.md +19 -0
  69. data/docs/PayorEmailOptOutRequest.md +17 -0
  70. data/docs/PayorFundingBankDetailsUpdate.md +21 -0
  71. data/docs/PayorLogoRequest.md +17 -0
  72. data/docs/PayorRef.md +21 -0
  73. data/docs/PayorsApi.md +224 -0
  74. data/docs/PayoutHistoryApi.md +142 -0
  75. data/docs/PayoutStatus.md +16 -0
  76. data/docs/PayoutSummaryAudit.md +39 -0
  77. data/docs/PayoutSummaryResponse.md +31 -0
  78. data/docs/QueryBatchResponse.md +23 -0
  79. data/docs/QuoteFxSummary.md +37 -0
  80. data/docs/QuotePayoutApi.md +61 -0
  81. data/docs/QuoteResponse.md +17 -0
  82. data/docs/RejectedPayment.md +31 -0
  83. data/docs/Social.md +21 -0
  84. data/docs/SourceAccount.md +23 -0
  85. data/docs/SourceAccountResponse.md +39 -0
  86. data/docs/SourceAccountSummary.md +21 -0
  87. data/docs/SubmitPayoutApi.md +60 -0
  88. data/docs/SupportedCountriesResponse.md +17 -0
  89. data/docs/SupportedCountry.md +19 -0
  90. data/docs/SupportedCurrency.md +19 -0
  91. data/docs/SupportedCurrencyResponse.md +17 -0
  92. data/docs/WithdrawPayoutApi.md +60 -0
  93. data/lib/velopayments.rb +124 -0
  94. data/lib/velopayments/api/countries_api.rb +116 -0
  95. data/lib/velopayments/api/currencies_api.rb +69 -0
  96. data/lib/velopayments/api/funding_manager_api.rb +374 -0
  97. data/lib/velopayments/api/get_payout_api.rb +75 -0
  98. data/lib/velopayments/api/instruct_payout_api.rb +72 -0
  99. data/lib/velopayments/api/payee_invitation_api.rb +244 -0
  100. data/lib/velopayments/api/payees_api.rb +217 -0
  101. data/lib/velopayments/api/payment_audit_service_api.rb +473 -0
  102. data/lib/velopayments/api/payor_applications_api.rb +147 -0
  103. data/lib/velopayments/api/payors_api.rb +241 -0
  104. data/lib/velopayments/api/payout_history_api.rb +165 -0
  105. data/lib/velopayments/api/quote_payout_api.rb +75 -0
  106. data/lib/velopayments/api/submit_payout_api.rb +74 -0
  107. data/lib/velopayments/api/withdraw_payout_api.rb +72 -0
  108. data/lib/velopayments/api_client.rb +387 -0
  109. data/lib/velopayments/api_error.rb +57 -0
  110. data/lib/velopayments/configuration.rb +251 -0
  111. data/lib/velopayments/models/address.rb +478 -0
  112. data/lib/velopayments/models/challenge.rb +271 -0
  113. data/lib/velopayments/models/company.rb +256 -0
  114. data/lib/velopayments/models/create_payee.rb +466 -0
  115. data/lib/velopayments/models/create_payees_csv_request.rb +1052 -0
  116. data/lib/velopayments/models/create_payees_csv_response.rb +207 -0
  117. data/lib/velopayments/models/create_payees_request.rb +217 -0
  118. data/lib/velopayments/models/create_payment_channel.rb +414 -0
  119. data/lib/velopayments/models/create_payout_request.rb +226 -0
  120. data/lib/velopayments/models/failed_submission.rb +205 -0
  121. data/lib/velopayments/models/funding_audit.rb +295 -0
  122. data/lib/velopayments/models/funding_event.rb +214 -0
  123. data/lib/velopayments/models/funding_event_type.rb +41 -0
  124. data/lib/velopayments/models/funding_request.rb +230 -0
  125. data/lib/velopayments/models/funding_request2.rb +230 -0
  126. data/lib/velopayments/models/fx_summary.rb +363 -0
  127. data/lib/velopayments/models/get_fundings_response.rb +223 -0
  128. data/lib/velopayments/models/get_payments_for_payout_response.rb +228 -0
  129. data/lib/velopayments/models/get_payments_for_payout_response_links.rb +205 -0
  130. data/lib/velopayments/models/get_payments_for_payout_response_page.rb +232 -0
  131. data/lib/velopayments/models/get_payments_for_payout_response_summary.rb +232 -0
  132. data/lib/velopayments/models/get_payout_statistics.rb +215 -0
  133. data/lib/velopayments/models/get_payouts_response.rb +228 -0
  134. data/lib/velopayments/models/individual.rb +224 -0
  135. data/lib/velopayments/models/individual_name.rb +337 -0
  136. data/lib/velopayments/models/invitation_status_response.rb +203 -0
  137. data/lib/velopayments/models/invite_payee_request.rb +201 -0
  138. data/lib/velopayments/models/language.rb +45 -0
  139. data/lib/velopayments/models/list_payments_response.rb +228 -0
  140. data/lib/velopayments/models/list_source_account_response.rb +219 -0
  141. data/lib/velopayments/models/marketing_opt_in.rb +205 -0
  142. data/lib/velopayments/models/ofac_status.rb +37 -0
  143. data/lib/velopayments/models/onboarded_status.rb +38 -0
  144. data/lib/velopayments/models/paged_response.rb +207 -0
  145. data/lib/velopayments/models/paged_response_page.rb +232 -0
  146. data/lib/velopayments/models/payee.rb +381 -0
  147. data/lib/velopayments/models/payee_invitation_status.rb +258 -0
  148. data/lib/velopayments/models/payee_response.rb +228 -0
  149. data/lib/velopayments/models/payee_type.rb +36 -0
  150. data/lib/velopayments/models/payment_audit_currency.rb +37 -0
  151. data/lib/velopayments/models/payment_channel.rb +430 -0
  152. data/lib/velopayments/models/payment_channel_country.rb +207 -0
  153. data/lib/velopayments/models/payment_channel_rule.rb +250 -0
  154. data/lib/velopayments/models/payment_channel_rules_response.rb +198 -0
  155. data/lib/velopayments/models/payment_event_response.rb +351 -0
  156. data/lib/velopayments/models/payment_instruction.rb +430 -0
  157. data/lib/velopayments/models/payment_response.rb +587 -0
  158. data/lib/velopayments/models/payor.rb +435 -0
  159. data/lib/velopayments/models/payor_branding_response.rb +247 -0
  160. data/lib/velopayments/models/payor_create_api_key_request.rb +303 -0
  161. data/lib/velopayments/models/payor_create_api_key_response.rb +207 -0
  162. data/lib/velopayments/models/payor_create_application_request.rb +264 -0
  163. data/lib/velopayments/models/payor_email_opt_out_request.rb +196 -0
  164. data/lib/velopayments/models/payor_funding_bank_details_update.rb +316 -0
  165. data/lib/velopayments/models/payor_logo_request.rb +196 -0
  166. data/lib/velopayments/models/payor_ref.rb +214 -0
  167. data/lib/velopayments/models/payout_status.rb +43 -0
  168. data/lib/velopayments/models/payout_summary_audit.rb +314 -0
  169. data/lib/velopayments/models/payout_summary_response.rb +280 -0
  170. data/lib/velopayments/models/query_batch_response.rb +260 -0
  171. data/lib/velopayments/models/quote_fx_summary.rb +377 -0
  172. data/lib/velopayments/models/quote_response.rb +198 -0
  173. data/lib/velopayments/models/rejected_payment.rb +323 -0
  174. data/lib/velopayments/models/social.rb +214 -0
  175. data/lib/velopayments/models/source_account.rb +243 -0
  176. data/lib/velopayments/models/source_account_response.rb +341 -0
  177. data/lib/velopayments/models/source_account_summary.rb +224 -0
  178. data/lib/velopayments/models/supported_countries_response.rb +198 -0
  179. data/lib/velopayments/models/supported_country.rb +207 -0
  180. data/lib/velopayments/models/supported_currency.rb +206 -0
  181. data/lib/velopayments/models/supported_currency_response.rb +198 -0
  182. data/lib/velopayments/version.rb +15 -0
  183. data/oa3-config.json +8 -0
  184. data/spec/api/countries_api_spec.rb +57 -0
  185. data/spec/api/currencies_api_spec.rb +46 -0
  186. data/spec/api/funding_manager_api_spec.rb +117 -0
  187. data/spec/api/get_payout_api_spec.rb +47 -0
  188. data/spec/api/instruct_payout_api_spec.rb +47 -0
  189. data/spec/api/payee_invitation_api_spec.rb +84 -0
  190. data/spec/api/payees_api_spec.rb +82 -0
  191. data/spec/api/payment_audit_service_api_spec.rb +150 -0
  192. data/spec/api/payor_applications_api_spec.rb +62 -0
  193. data/spec/api/payors_api_spec.rb +85 -0
  194. data/spec/api/payout_history_api_spec.rb +71 -0
  195. data/spec/api/quote_payout_api_spec.rb +47 -0
  196. data/spec/api/submit_payout_api_spec.rb +47 -0
  197. data/spec/api/withdraw_payout_api_spec.rb +47 -0
  198. data/spec/api_client_spec.rb +226 -0
  199. data/spec/configuration_spec.rb +42 -0
  200. data/spec/models/address_spec.rb +83 -0
  201. data/spec/models/challenge_spec.rb +47 -0
  202. data/spec/models/company_spec.rb +47 -0
  203. data/spec/models/create_payee_spec.rb +167 -0
  204. data/spec/models/create_payees_csv_request_spec.rb +211 -0
  205. data/spec/models/create_payees_csv_response_spec.rb +47 -0
  206. data/spec/models/create_payees_request_spec.rb +47 -0
  207. data/spec/models/create_payment_channel_spec.rb +81 -0
  208. data/spec/models/create_payout_request_spec.rb +53 -0
  209. data/spec/models/failed_submission_spec.rb +47 -0
  210. data/spec/models/funding_audit_spec.rb +87 -0
  211. data/spec/models/funding_event_spec.rb +53 -0
  212. data/spec/models/funding_event_type_spec.rb +35 -0
  213. data/spec/models/funding_request2_spec.rb +41 -0
  214. data/spec/models/funding_request_spec.rb +41 -0
  215. data/spec/models/fx_summary_spec.rb +103 -0
  216. data/spec/models/get_fundings_response_spec.rb +53 -0
  217. data/spec/models/get_payments_for_payout_response_links_spec.rb +47 -0
  218. data/spec/models/get_payments_for_payout_response_page_spec.rb +65 -0
  219. data/spec/models/get_payments_for_payout_response_spec.rb +59 -0
  220. data/spec/models/get_payments_for_payout_response_summary_spec.rb +65 -0
  221. data/spec/models/get_payout_statistics_spec.rb +47 -0
  222. data/spec/models/get_payouts_response_spec.rb +59 -0
  223. data/spec/models/individual_name_spec.rb +59 -0
  224. data/spec/models/individual_spec.rb +53 -0
  225. data/spec/models/invitation_status_response_spec.rb +41 -0
  226. data/spec/models/invite_payee_request_spec.rb +41 -0
  227. data/spec/models/language_spec.rb +35 -0
  228. data/spec/models/list_payments_response_spec.rb +59 -0
  229. data/spec/models/list_source_account_response_spec.rb +53 -0
  230. data/spec/models/marketing_opt_in_spec.rb +47 -0
  231. data/spec/models/ofac_status_spec.rb +35 -0
  232. data/spec/models/onboarded_status_spec.rb +35 -0
  233. data/spec/models/paged_response_page_spec.rb +65 -0
  234. data/spec/models/paged_response_spec.rb +47 -0
  235. data/spec/models/payee_invitation_status_spec.rb +57 -0
  236. data/spec/models/payee_response_spec.rb +59 -0
  237. data/spec/models/payee_spec.rb +161 -0
  238. data/spec/models/payee_type_spec.rb +35 -0
  239. data/spec/models/payment_audit_currency_spec.rb +35 -0
  240. data/spec/models/payment_channel_country_spec.rb +47 -0
  241. data/spec/models/payment_channel_rule_spec.rb +77 -0
  242. data/spec/models/payment_channel_rules_response_spec.rb +41 -0
  243. data/spec/models/payment_channel_spec.rb +81 -0
  244. data/spec/models/payment_event_response_spec.rb +111 -0
  245. data/spec/models/payment_instruction_spec.rb +75 -0
  246. data/spec/models/payment_response_spec.rb +241 -0
  247. data/spec/models/payor_branding_response_spec.rb +65 -0
  248. data/spec/models/payor_create_api_key_request_spec.rb +57 -0
  249. data/spec/models/payor_create_api_key_response_spec.rb +47 -0
  250. data/spec/models/payor_create_application_request_spec.rb +47 -0
  251. data/spec/models/payor_email_opt_out_request_spec.rb +41 -0
  252. data/spec/models/payor_funding_bank_details_update_spec.rb +53 -0
  253. data/spec/models/payor_logo_request_spec.rb +41 -0
  254. data/spec/models/payor_ref_spec.rb +53 -0
  255. data/spec/models/payor_spec.rb +163 -0
  256. data/spec/models/payout_status_spec.rb +35 -0
  257. data/spec/models/payout_summary_audit_spec.rb +107 -0
  258. data/spec/models/payout_summary_response_spec.rb +83 -0
  259. data/spec/models/query_batch_response_spec.rb +63 -0
  260. data/spec/models/quote_fx_summary_spec.rb +101 -0
  261. data/spec/models/quote_response_spec.rb +41 -0
  262. data/spec/models/rejected_payment_spec.rb +87 -0
  263. data/spec/models/social_spec.rb +53 -0
  264. data/spec/models/source_account_response_spec.rb +111 -0
  265. data/spec/models/source_account_spec.rb +59 -0
  266. data/spec/models/source_account_summary_spec.rb +53 -0
  267. data/spec/models/supported_countries_response_spec.rb +41 -0
  268. data/spec/models/supported_country_spec.rb +47 -0
  269. data/spec/models/supported_currency_response_spec.rb +41 -0
  270. data/spec/models/supported_currency_spec.rb +47 -0
  271. data/spec/spec_helper.rb +111 -0
  272. data/velopayments.gemspec +45 -0
  273. metadata +586 -0
@@ -0,0 +1,16 @@
1
+ # VeloPayments::PayoutStatus
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'VeloPayments'
12
+
13
+ instance = VeloPayments::PayoutStatus.new()
14
+ ```
15
+
16
+
@@ -0,0 +1,39 @@
1
+ # VeloPayments::PayoutSummaryAudit
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **payout_id** | **String** | |
8
+ **payor_id** | **String** | | [optional]
9
+ **status** | [**PayoutStatus**](PayoutStatus.md) | |
10
+ **date_time** | **DateTime** | | [optional]
11
+ **submitted_date_time** | **String** | |
12
+ **instructed_date_time** | **String** | | [optional]
13
+ **total_payments** | **Integer** | | [optional]
14
+ **total_incomplete_payments** | **Integer** | | [optional]
15
+ **total_failed_payments** | **Integer** | | [optional]
16
+ **source_account_summary** | [**Array<SourceAccountSummary>**](SourceAccountSummary.md) | | [optional]
17
+ **fx_summaries** | [**Array<FxSummary>**](FxSummary.md) | | [optional]
18
+ **payout_memo** | **String** | | [optional]
19
+
20
+ ## Code Sample
21
+
22
+ ```ruby
23
+ require 'VeloPayments'
24
+
25
+ instance = VeloPayments::PayoutSummaryAudit.new(payout_id: null,
26
+ payor_id: null,
27
+ status: null,
28
+ date_time: null,
29
+ submitted_date_time: null,
30
+ instructed_date_time: null,
31
+ total_payments: null,
32
+ total_incomplete_payments: null,
33
+ total_failed_payments: null,
34
+ source_account_summary: null,
35
+ fx_summaries: null,
36
+ payout_memo: null)
37
+ ```
38
+
39
+
@@ -0,0 +1,31 @@
1
+ # VeloPayments::PayoutSummaryResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **payout_id** | **String** | | [optional]
8
+ **status** | **String** | | [optional]
9
+ **payments_submitted** | **Integer** | | [optional]
10
+ **payments_accepted** | **Integer** | | [optional]
11
+ **payments_rejected** | **Integer** | | [optional]
12
+ **fx_summaries** | [**Array<QuoteFxSummary>**](QuoteFxSummary.md) | |
13
+ **accounts** | [**Array<SourceAccount>**](SourceAccount.md) | |
14
+ **rejected_payments** | [**Array<RejectedPayment>**](RejectedPayment.md) | |
15
+
16
+ ## Code Sample
17
+
18
+ ```ruby
19
+ require 'VeloPayments'
20
+
21
+ instance = VeloPayments::PayoutSummaryResponse.new(payout_id: null,
22
+ status: null,
23
+ payments_submitted: null,
24
+ payments_accepted: null,
25
+ payments_rejected: null,
26
+ fx_summaries: null,
27
+ accounts: null,
28
+ rejected_payments: null)
29
+ ```
30
+
31
+
@@ -0,0 +1,23 @@
1
+ # VeloPayments::QueryBatchResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **status** | **String** | Batch Status | [optional]
8
+ **failure_count** | **Integer** | | [optional]
9
+ **pending_count** | **Integer** | | [optional]
10
+ **failures** | [**Array<FailedSubmission>**](FailedSubmission.md) | | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'VeloPayments'
16
+
17
+ instance = VeloPayments::QueryBatchResponse.new(status: null,
18
+ failure_count: null,
19
+ pending_count: null,
20
+ failures: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,37 @@
1
+ # VeloPayments::QuoteFxSummary
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **rate** | **Object** | |
8
+ **inverted_rate** | **Object** | | [optional]
9
+ **creation_time** | **DateTime** | |
10
+ **expiry_time** | **DateTime** | | [optional]
11
+ **quote_id** | **String** | |
12
+ **total_source_amount** | **Integer** | |
13
+ **total_payment_amount** | **Integer** | |
14
+ **source_currency** | **String** | |
15
+ **payment_currency** | **String** | |
16
+ **funding_status** | **String** | | [optional]
17
+ **status** | **String** | | [optional]
18
+
19
+ ## Code Sample
20
+
21
+ ```ruby
22
+ require 'VeloPayments'
23
+
24
+ instance = VeloPayments::QuoteFxSummary.new(rate: null,
25
+ inverted_rate: null,
26
+ creation_time: null,
27
+ expiry_time: null,
28
+ quote_id: null,
29
+ total_source_amount: null,
30
+ total_payment_amount: null,
31
+ source_currency: null,
32
+ payment_currency: null,
33
+ funding_status: null,
34
+ status: null)
35
+ ```
36
+
37
+
@@ -0,0 +1,61 @@
1
+ # VeloPayments::QuotePayoutApi
2
+
3
+ All URIs are relative to *https://api.sandbox.velopayments.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**v3_payouts_payout_id_quote_post**](QuotePayoutApi.md#v3_payouts_payout_id_quote_post) | **POST** /v3/payouts/{payoutId}/quote | Create a quote for the payout
8
+
9
+
10
+
11
+ ## v3_payouts_payout_id_quote_post
12
+
13
+ > QuoteResponse v3_payouts_payout_id_quote_post(payout_id)
14
+
15
+ Create a quote for the payout
16
+
17
+ Create quote for a payout
18
+
19
+ ### Example
20
+
21
+ ```ruby
22
+ # load the gem
23
+ require 'velopayments'
24
+ # setup authorization
25
+ VeloPayments.configure do |config|
26
+ # Configure OAuth2 access token for authorization: OAuth2
27
+ config.access_token = 'YOUR ACCESS TOKEN'
28
+ end
29
+
30
+ api_instance = VeloPayments::QuotePayoutApi.new
31
+ payout_id = 'payout_id_example' # String | Id of the payout
32
+
33
+ begin
34
+ #Create a quote for the payout
35
+ result = api_instance.v3_payouts_payout_id_quote_post(payout_id)
36
+ p result
37
+ rescue VeloPayments::ApiError => e
38
+ puts "Exception when calling QuotePayoutApi->v3_payouts_payout_id_quote_post: #{e}"
39
+ end
40
+ ```
41
+
42
+ ### Parameters
43
+
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **payout_id** | [**String**](.md)| Id of the payout |
48
+
49
+ ### Return type
50
+
51
+ [**QuoteResponse**](QuoteResponse.md)
52
+
53
+ ### Authorization
54
+
55
+ [OAuth2](../README.md#OAuth2)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: Not defined
60
+ - **Accept**: application/json
61
+
@@ -0,0 +1,17 @@
1
+ # VeloPayments::QuoteResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **fx_summaries** | [**Array<QuoteFxSummary>**](QuoteFxSummary.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'VeloPayments'
13
+
14
+ instance = VeloPayments::QuoteResponse.new(fx_summaries: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,31 @@
1
+ # VeloPayments::RejectedPayment
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **remote_id** | **String** | |
8
+ **currency_type** | **String** | |
9
+ **amount** | **Integer** | |
10
+ **source_account_name** | **String** | |
11
+ **payor_payment_id** | **String** | |
12
+ **reason** | **String** | |
13
+ **line_number** | **Integer** | | [optional]
14
+ **message** | **String** | | [optional]
15
+
16
+ ## Code Sample
17
+
18
+ ```ruby
19
+ require 'VeloPayments'
20
+
21
+ instance = VeloPayments::RejectedPayment.new(remote_id: null,
22
+ currency_type: null,
23
+ amount: null,
24
+ source_account_name: null,
25
+ payor_payment_id: null,
26
+ reason: null,
27
+ line_number: null,
28
+ message: null)
29
+ ```
30
+
31
+
data/docs/Social.md ADDED
@@ -0,0 +1,21 @@
1
+ # VeloPayments::Social
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **twitter_id** | **String** | | [optional]
8
+ **facebook_id** | **String** | | [optional]
9
+ **linked_in_id** | **String** | | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'VeloPayments'
15
+
16
+ instance = VeloPayments::Social.new(twitter_id: null,
17
+ facebook_id: null,
18
+ linked_in_id: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,23 @@
1
+ # VeloPayments::SourceAccount
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **source_account_name** | **String** | |
8
+ **source_account_id** | **String** | |
9
+ **currency** | **String** | |
10
+ **total_payout_cost** | **Integer** | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'VeloPayments'
16
+
17
+ instance = VeloPayments::SourceAccount.new(source_account_name: null,
18
+ source_account_id: null,
19
+ currency: null,
20
+ total_payout_cost: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,39 @@
1
+ # VeloPayments::SourceAccountResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | Source Account Id | [optional]
8
+ **balance** | **Object** | Decimal implied | [optional]
9
+ **currency** | **String** | | [optional]
10
+ **funding_ref** | **String** | | [optional]
11
+ **physical_account_name** | **String** | | [optional]
12
+ **rails_id** | **String** | | [optional]
13
+ **payor_id** | **String** | | [optional]
14
+ **name** | **String** | | [optional]
15
+ **pooled** | **Boolean** | | [optional]
16
+ **balance_visible** | **Boolean** | | [optional]
17
+ **customer_id** | **String** | | [optional]
18
+ **physical_account_id** | **String** | | [optional]
19
+
20
+ ## Code Sample
21
+
22
+ ```ruby
23
+ require 'VeloPayments'
24
+
25
+ instance = VeloPayments::SourceAccountResponse.new(id: null,
26
+ balance: null,
27
+ currency: null,
28
+ funding_ref: null,
29
+ physical_account_name: null,
30
+ rails_id: null,
31
+ payor_id: null,
32
+ name: null,
33
+ pooled: null,
34
+ balance_visible: null,
35
+ customer_id: null,
36
+ physical_account_id: null)
37
+ ```
38
+
39
+
@@ -0,0 +1,21 @@
1
+ # VeloPayments::SourceAccountSummary
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **source_account_id** | **String** | |
8
+ **total_cost** | **Object** | |
9
+ **currency** | [**PaymentAuditCurrency**](PaymentAuditCurrency.md) | | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'VeloPayments'
15
+
16
+ instance = VeloPayments::SourceAccountSummary.new(source_account_id: null,
17
+ total_cost: null,
18
+ currency: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,60 @@
1
+ # VeloPayments::SubmitPayoutApi
2
+
3
+ All URIs are relative to *https://api.sandbox.velopayments.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**submit_payout**](SubmitPayoutApi.md#submit_payout) | **POST** /v3/payouts | Submit Payout
8
+
9
+
10
+
11
+ ## submit_payout
12
+
13
+ > submit_payout(create_payout_request)
14
+
15
+ Submit Payout
16
+
17
+ Create a new payout and return a location header with a link to get the payout. Basic validation of the payout is performed before returning but more comprehensive validation is done asynchronously, the results of which can be obtained by issuing a HTTP GET to the URL returned in the location header. **NOTE:** amount values in payments must be in 'minor units' format. E.g. cents for USD, pence for GBP etc. with no decimal places.
18
+
19
+ ### Example
20
+
21
+ ```ruby
22
+ # load the gem
23
+ require 'velopayments'
24
+ # setup authorization
25
+ VeloPayments.configure do |config|
26
+ # Configure OAuth2 access token for authorization: OAuth2
27
+ config.access_token = 'YOUR ACCESS TOKEN'
28
+ end
29
+
30
+ api_instance = VeloPayments::SubmitPayoutApi.new
31
+ create_payout_request = VeloPayments::CreatePayoutRequest.new # CreatePayoutRequest | Post ammount to transfer via ACH using stored funding account details.
32
+
33
+ begin
34
+ #Submit Payout
35
+ api_instance.submit_payout(create_payout_request)
36
+ rescue VeloPayments::ApiError => e
37
+ puts "Exception when calling SubmitPayoutApi->submit_payout: #{e}"
38
+ end
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+
44
+ Name | Type | Description | Notes
45
+ ------------- | ------------- | ------------- | -------------
46
+ **create_payout_request** | [**CreatePayoutRequest**](CreatePayoutRequest.md)| Post ammount to transfer via ACH using stored funding account details. |
47
+
48
+ ### Return type
49
+
50
+ nil (empty response body)
51
+
52
+ ### Authorization
53
+
54
+ [OAuth2](../README.md#OAuth2)
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: application/json, multipart/form-data
59
+ - **Accept**: Not defined
60
+
@@ -0,0 +1,17 @@
1
+ # VeloPayments::SupportedCountriesResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **countries** | [**Array<SupportedCountry>**](SupportedCountry.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'VeloPayments'
13
+
14
+ instance = VeloPayments::SupportedCountriesResponse.new(countries: null)
15
+ ```
16
+
17
+