velopayments 2.14.90.pre.1 → 2.17.8.beta1
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 +4 -4
- data/LICENSE +1 -1
- data/Makefile +41 -9
- data/README.md +61 -23
- data/docs/AuthApi.md +8 -9
- data/docs/AuthResponse.md +3 -1
- data/docs/CompanyResponse.md +19 -0
- data/docs/{Company.md → CompanyV1.md} +2 -2
- data/docs/CreateIndividual.md +1 -1
- data/docs/CreateIndividual2.md +21 -0
- data/docs/CreatePayee.md +3 -3
- data/docs/CreatePayee2.md +37 -0
- data/docs/CreatePayeeAddress.md +1 -1
- data/docs/CreatePayeeAddress2.md +31 -0
- data/docs/CreatePayeesCSVRequest.md +1 -1
- data/docs/CreatePayeesCSVRequest2.md +73 -0
- data/docs/CreatePayeesCSVResponse2.md +19 -0
- data/docs/CreatePayeesRequest2.md +19 -0
- data/docs/CreatePaymentChannel2.md +29 -0
- data/docs/CreatePayoutRequest.md +6 -2
- data/docs/Error.md +23 -0
- data/docs/ErrorResponse.md +19 -0
- data/docs/FundingAudit.md +3 -1
- data/docs/FundingDelta.md +23 -0
- data/docs/FundingDeltaResponse.md +21 -0
- data/docs/FundingDeltaResponseLinks.md +19 -0
- data/docs/FundingEvent.md +3 -1
- data/docs/FundingManagerApi.md +33 -26
- data/docs/GetFundingsResponse.md +1 -1
- data/docs/GetFundingsResponseAllOf.md +1 -1
- data/docs/GetPaymentsForPayoutResponseV4.md +2 -2
- data/docs/GetPaymentsForPayoutResponseV4Summary.md +16 -0
- data/docs/GetPayoutsResponseV4.md +3 -3
- data/docs/IndividualResponse.md +17 -0
- data/docs/{Individual.md → IndividualV1.md} +5 -5
- data/docs/{IndividualName.md → IndividualV1Name.md} +2 -2
- data/docs/PagedPayeeInvitationStatusResponse.md +2 -2
- data/docs/PagedPayeeResponse.md +23 -0
- data/docs/PagedPayeeResponse2.md +23 -0
- data/docs/PagedPayeeResponse2Summary.md +25 -0
- data/docs/{PayeeResponseLinks.md → PagedPayeeResponseLinks.md} +2 -2
- data/docs/{PayeeResponsePage.md → PagedPayeeResponsePage.md} +2 -2
- data/docs/{PayeeResponseSummary.md → PagedPayeeResponseSummary.md} +2 -2
- data/docs/Payee.md +9 -9
- data/docs/{Address.md → PayeeAddress.md} +2 -2
- data/docs/PayeeDelta.md +1 -1
- data/docs/PayeeInvitationApi.md +109 -3
- data/docs/{PaymentChannel.md → PayeePaymentChannel.md} +2 -2
- data/docs/{PayorRef.md → PayeePayorRef.md} +2 -2
- data/docs/PayeePayorRef2.md +21 -0
- data/docs/PayeeResponse.md +40 -8
- data/docs/PayeeResponse2.md +55 -0
- data/docs/PayeesApi.md +133 -4
- data/docs/PaymentAuditServiceApi.md +70 -7
- data/docs/PaymentDelta.md +31 -0
- data/docs/PaymentDeltaResponse.md +21 -0
- data/docs/PaymentResponseV4.md +4 -2
- data/docs/PaymentResponseV4Payout.md +19 -0
- data/docs/PaymentStatus.md +16 -0
- data/docs/PayorAddress.md +31 -0
- data/docs/PayorAddressV2.md +31 -0
- data/docs/PayorV1.md +9 -7
- data/docs/PayorV2.md +9 -7
- data/docs/PayorsApi.md +8 -6
- data/docs/PayoutPayorV4.md +25 -0
- data/docs/PayoutPrincipalV4.md +19 -0
- data/docs/PayoutSummaryAuditV4.md +5 -3
- data/docs/PayoutTypeV4.md +16 -0
- data/docs/QuoteFxSummary.md +2 -2
- data/docs/UpdateRemoteIdRequest.md +19 -0
- data/docs/WatchlistStatus.md +16 -0
- data/lib/velopayments.rb +41 -12
- data/lib/velopayments/api/auth_api.rb +9 -16
- data/lib/velopayments/api/countries_api.rb +2 -2
- data/lib/velopayments/api/currencies_api.rb +2 -2
- data/lib/velopayments/api/funding_manager_api.rb +63 -55
- data/lib/velopayments/api/get_payout_api.rb +3 -3
- data/lib/velopayments/api/instruct_payout_api.rb +3 -3
- data/lib/velopayments/api/payee_invitation_api.rb +134 -8
- data/lib/velopayments/api/payees_api.rb +177 -9
- data/lib/velopayments/api/payment_audit_service_api.rb +95 -12
- data/lib/velopayments/api/payor_applications_api.rb +4 -4
- data/lib/velopayments/api/payors_api.rb +18 -19
- data/lib/velopayments/api/payout_history_api.rb +4 -4
- data/lib/velopayments/api/quote_payout_api.rb +3 -3
- data/lib/velopayments/api/submit_payout_api.rb +2 -2
- data/lib/velopayments/api/withdraw_payout_api.rb +3 -3
- data/lib/velopayments/api_client.rb +30 -30
- data/lib/velopayments/api_error.rb +2 -2
- data/lib/velopayments/configuration.rb +9 -2
- data/lib/velopayments/models/auth_response.rb +28 -7
- data/lib/velopayments/models/auto_top_up_config.rb +15 -3
- data/lib/velopayments/models/challenge.rb +13 -3
- data/lib/velopayments/models/company_response.rb +273 -0
- data/lib/velopayments/models/{company.rb → company_v1.rb} +18 -6
- data/lib/velopayments/models/create_individual.rb +14 -4
- data/lib/velopayments/models/create_individual2.rb +259 -0
- data/lib/velopayments/models/create_payee.rb +17 -5
- data/lib/velopayments/models/{payor_funding_bank_details_update.rb → create_payee2.rb} +153 -93
- data/lib/velopayments/models/create_payee_address.rb +19 -3
- data/lib/velopayments/models/create_payee_address2.rb +510 -0
- data/lib/velopayments/models/create_payees_csv_request.rb +14 -3
- data/lib/velopayments/models/create_payees_csv_request2.rb +1142 -0
- data/lib/velopayments/models/create_payees_csv_response.rb +13 -3
- data/lib/velopayments/models/create_payees_csv_response2.rb +217 -0
- data/lib/velopayments/models/create_payees_request.rb +13 -3
- data/lib/velopayments/models/create_payees_request2.rb +227 -0
- data/lib/velopayments/models/create_payment_channel.rb +13 -3
- data/lib/velopayments/models/create_payment_channel2.rb +418 -0
- data/lib/velopayments/models/create_payout_request.rb +36 -9
- data/lib/velopayments/models/error.rb +271 -0
- data/lib/velopayments/models/error_response.rb +222 -0
- data/lib/velopayments/models/failed_submission.rb +13 -3
- data/lib/velopayments/models/funding_audit.rb +38 -7
- data/lib/velopayments/models/funding_delta.rb +298 -0
- data/lib/velopayments/models/funding_delta_response.rb +229 -0
- data/lib/velopayments/models/funding_delta_response_links.rb +215 -0
- data/lib/velopayments/models/funding_event.rb +26 -7
- data/lib/velopayments/models/funding_event_type.rb +2 -2
- data/lib/velopayments/models/funding_request_v1.rb +13 -3
- data/lib/velopayments/models/funding_request_v2.rb +13 -3
- data/lib/velopayments/models/fx_summary_v3.rb +13 -3
- data/lib/velopayments/models/fx_summary_v4.rb +13 -3
- data/lib/velopayments/models/get_fundings_response.rb +17 -5
- data/lib/velopayments/models/get_fundings_response_all_of.rb +17 -5
- data/lib/velopayments/models/get_payments_for_payout_response_v3.rb +13 -3
- data/lib/velopayments/models/get_payments_for_payout_response_v3_page.rb +13 -3
- data/lib/velopayments/models/get_payments_for_payout_response_v3_summary.rb +13 -3
- data/lib/velopayments/models/get_payments_for_payout_response_v4.rb +15 -5
- data/lib/velopayments/models/get_payments_for_payout_response_v4_summary.rb +87 -4
- data/lib/velopayments/models/get_payout_statistics.rb +13 -3
- data/lib/velopayments/models/get_payouts_response_v3.rb +13 -3
- data/lib/velopayments/models/get_payouts_response_v3_links.rb +13 -3
- data/lib/velopayments/models/get_payouts_response_v3_page.rb +13 -3
- data/lib/velopayments/models/get_payouts_response_v3_summary.rb +13 -3
- data/lib/velopayments/models/get_payouts_response_v4.rb +16 -6
- data/lib/velopayments/models/individual_response.rb +211 -0
- data/lib/velopayments/models/{individual.rb → individual_v1.rb} +17 -7
- data/lib/velopayments/models/{individual_name.rb → individual_v1_name.rb} +16 -6
- data/lib/velopayments/models/invitation_status.rb +2 -2
- data/lib/velopayments/models/invitation_status_response.rb +13 -3
- data/lib/velopayments/models/invite_payee_request.rb +13 -3
- data/lib/velopayments/models/language.rb +2 -2
- data/lib/velopayments/models/list_payments_response.rb +13 -3
- data/lib/velopayments/models/list_payments_response_page.rb +13 -3
- data/lib/velopayments/models/list_payments_response_summary.rb +13 -3
- data/lib/velopayments/models/list_source_account_response.rb +13 -3
- data/lib/velopayments/models/list_source_account_response_links.rb +13 -3
- data/lib/velopayments/models/list_source_account_response_page.rb +13 -3
- data/lib/velopayments/models/list_source_account_response_v2.rb +13 -3
- data/lib/velopayments/models/list_source_account_response_v2_page.rb +13 -3
- data/lib/velopayments/models/marketing_opt_in.rb +13 -3
- data/lib/velopayments/models/notifications.rb +13 -3
- data/lib/velopayments/models/ofac_status.rb +2 -2
- data/lib/velopayments/models/onboarded_status.rb +2 -2
- data/lib/velopayments/models/paged_payee_invitation_status_response.rb +15 -5
- data/lib/velopayments/models/paged_payee_response.rb +238 -0
- data/lib/velopayments/models/paged_payee_response2.rb +238 -0
- data/lib/velopayments/models/paged_payee_response2_summary.rb +242 -0
- data/lib/velopayments/models/{payee_response_links.rb → paged_payee_response_links.rb} +16 -6
- data/lib/velopayments/models/{payee_response_page.rb → paged_payee_response_page.rb} +16 -6
- data/lib/velopayments/models/{payee_response_summary.rb → paged_payee_response_summary.rb} +16 -6
- data/lib/velopayments/models/paged_response.rb +13 -3
- data/lib/velopayments/models/paged_response_page.rb +13 -3
- data/lib/velopayments/models/payee.rb +24 -8
- data/lib/velopayments/models/{address.rb → payee_address.rb} +21 -6
- data/lib/velopayments/models/payee_delta.rb +14 -3
- data/lib/velopayments/models/payee_delta_response.rb +13 -3
- data/lib/velopayments/models/payee_delta_response_links.rb +13 -3
- data/lib/velopayments/models/payee_delta_response_page.rb +13 -3
- data/lib/velopayments/models/payee_invitation_status.rb +13 -3
- data/lib/velopayments/models/payee_invitation_status_response.rb +13 -3
- data/lib/velopayments/models/{payment_channel.rb → payee_payment_channel.rb} +16 -6
- data/lib/velopayments/models/{payor_ref.rb → payee_payor_ref.rb} +16 -6
- data/lib/velopayments/models/payee_payor_ref2.rb +224 -0
- data/lib/velopayments/models/payee_response.rb +192 -32
- data/lib/velopayments/models/payee_response2.rb +388 -0
- data/lib/velopayments/models/payee_type.rb +2 -2
- data/lib/velopayments/models/payment_audit_currency_v3.rb +2 -2
- data/lib/velopayments/models/payment_audit_currency_v4.rb +2 -2
- data/lib/velopayments/models/payment_channel_country.rb +13 -3
- data/lib/velopayments/models/payment_channel_rule.rb +13 -3
- data/lib/velopayments/models/payment_channel_rules_response.rb +13 -3
- data/lib/velopayments/models/payment_delta.rb +285 -0
- data/lib/velopayments/models/payment_delta_response.rb +229 -0
- data/lib/velopayments/models/payment_event_response_v3.rb +13 -3
- data/lib/velopayments/models/payment_event_response_v4.rb +13 -3
- data/lib/velopayments/models/payment_instruction.rb +13 -3
- data/lib/velopayments/models/payment_response_v3.rb +13 -3
- data/lib/velopayments/models/payment_response_v4.rb +27 -7
- data/lib/velopayments/models/payment_response_v4_payout.rb +215 -0
- data/lib/velopayments/models/payment_status.rb +42 -0
- data/lib/velopayments/models/payor_address.rb +493 -0
- data/lib/velopayments/models/payor_address_v2.rb +493 -0
- data/lib/velopayments/models/payor_branding_response.rb +16 -3
- data/lib/velopayments/models/payor_create_api_key_request.rb +14 -3
- data/lib/velopayments/models/payor_create_api_key_response.rb +13 -3
- data/lib/velopayments/models/payor_create_application_request.rb +14 -3
- data/lib/velopayments/models/payor_email_opt_out_request.rb +13 -3
- data/lib/velopayments/models/payor_links_response.rb +13 -3
- data/lib/velopayments/models/payor_links_response_links.rb +13 -3
- data/lib/velopayments/models/payor_links_response_payors.rb +13 -3
- data/lib/velopayments/models/payor_logo_request.rb +13 -3
- data/lib/velopayments/models/payor_v1.rb +27 -8
- data/lib/velopayments/models/payor_v2.rb +27 -8
- data/lib/velopayments/models/payout_payor_v4.rb +273 -0
- data/lib/velopayments/models/payout_principal_v4.rb +228 -0
- data/lib/velopayments/models/payout_status_v3.rb +2 -2
- data/lib/velopayments/models/payout_status_v4.rb +2 -2
- data/lib/velopayments/models/payout_summary_audit_v3.rb +13 -3
- data/lib/velopayments/models/payout_summary_audit_v4.rb +33 -8
- data/lib/velopayments/models/payout_summary_response.rb +13 -3
- data/lib/velopayments/models/payout_type_v4.rb +37 -0
- data/lib/velopayments/models/query_batch_response.rb +13 -3
- data/lib/velopayments/models/quote_fx_summary.rb +69 -3
- data/lib/velopayments/models/quote_response.rb +13 -3
- data/lib/velopayments/models/rejected_payment.rb +13 -3
- data/lib/velopayments/models/set_notifications_request.rb +13 -3
- data/lib/velopayments/models/source_account.rb +13 -3
- data/lib/velopayments/models/source_account_response.rb +15 -3
- data/lib/velopayments/models/source_account_response_v2.rb +15 -3
- data/lib/velopayments/models/source_account_summary_v3.rb +13 -3
- data/lib/velopayments/models/source_account_summary_v4.rb +13 -3
- data/lib/velopayments/models/supported_countries_response.rb +13 -3
- data/lib/velopayments/models/supported_country.rb +13 -3
- data/lib/velopayments/models/supported_currency.rb +13 -3
- data/lib/velopayments/models/supported_currency_response.rb +13 -3
- data/lib/velopayments/models/update_remote_id_request.rb +253 -0
- data/lib/velopayments/models/watchlist_status.rb +39 -0
- data/lib/velopayments/version.rb +3 -3
- data/oa3-config.json +2 -2
- data/spec/api/auth_api_spec.rb +3 -4
- data/spec/api/countries_api_spec.rb +2 -2
- data/spec/api/currencies_api_spec.rb +2 -2
- data/spec/api/funding_manager_api_spec.rb +17 -15
- data/spec/api/get_payout_api_spec.rb +2 -2
- data/spec/api/instruct_payout_api_spec.rb +2 -2
- data/spec/api/payee_invitation_api_spec.rb +27 -3
- data/spec/api/payees_api_spec.rb +39 -4
- data/spec/api/payment_audit_service_api_spec.rb +21 -5
- data/spec/api/payor_applications_api_spec.rb +2 -2
- data/spec/api/payors_api_spec.rb +5 -4
- data/spec/api/payout_history_api_spec.rb +2 -2
- data/spec/api/quote_payout_api_spec.rb +2 -2
- data/spec/api/submit_payout_api_spec.rb +2 -2
- data/spec/api/withdraw_payout_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/auth_response_spec.rb +8 -2
- data/spec/models/auto_top_up_config_spec.rb +2 -2
- data/spec/models/challenge_spec.rb +2 -2
- data/spec/models/company_response_spec.rb +47 -0
- data/spec/models/{company_spec.rb → company_v1_spec.rb} +8 -8
- data/spec/models/{payor_funding_bank_details_update_spec.rb → create_individual2_spec.rb} +11 -11
- data/spec/models/create_individual_spec.rb +2 -2
- data/spec/models/create_payee2_spec.rb +101 -0
- data/spec/models/create_payee_address2_spec.rb +87 -0
- data/spec/models/create_payee_address_spec.rb +2 -2
- data/spec/models/create_payee_spec.rb +2 -2
- data/spec/models/create_payees_csv_request2_spec.rb +225 -0
- data/spec/models/create_payees_csv_request_spec.rb +2 -2
- data/spec/models/create_payees_csv_response2_spec.rb +47 -0
- data/spec/models/create_payees_csv_response_spec.rb +2 -2
- data/spec/models/create_payees_request2_spec.rb +47 -0
- data/spec/models/create_payees_request_spec.rb +2 -2
- data/spec/models/create_payment_channel2_spec.rb +85 -0
- data/spec/models/create_payment_channel_spec.rb +2 -2
- data/spec/models/create_payout_request_spec.rb +14 -2
- data/spec/models/error_response_spec.rb +47 -0
- data/spec/models/error_spec.rb +63 -0
- data/spec/models/failed_submission_spec.rb +2 -2
- data/spec/models/funding_audit_spec.rb +12 -2
- data/spec/models/funding_delta_response_links_spec.rb +47 -0
- data/spec/models/funding_delta_response_spec.rb +53 -0
- data/spec/models/funding_delta_spec.rb +59 -0
- data/spec/models/funding_event_spec.rb +8 -2
- data/spec/models/funding_event_type_spec.rb +2 -2
- data/spec/models/funding_request_v1_spec.rb +2 -2
- data/spec/models/funding_request_v2_spec.rb +2 -2
- data/spec/models/fx_summary_v3_spec.rb +2 -2
- data/spec/models/fx_summary_v4_spec.rb +2 -2
- data/spec/models/get_fundings_response_all_of_spec.rb +2 -2
- data/spec/models/get_fundings_response_spec.rb +2 -2
- data/spec/models/get_payments_for_payout_response_v3_page_spec.rb +2 -2
- data/spec/models/get_payments_for_payout_response_v3_spec.rb +2 -2
- data/spec/models/get_payments_for_payout_response_v3_summary_spec.rb +2 -2
- data/spec/models/get_payments_for_payout_response_v4_spec.rb +2 -2
- data/spec/models/get_payments_for_payout_response_v4_summary_spec.rb +50 -2
- data/spec/models/get_payout_statistics_spec.rb +2 -2
- data/spec/models/get_payouts_response_v3_links_spec.rb +2 -2
- data/spec/models/get_payouts_response_v3_page_spec.rb +2 -2
- data/spec/models/get_payouts_response_v3_spec.rb +2 -2
- data/spec/models/get_payouts_response_v3_summary_spec.rb +2 -2
- data/spec/models/get_payouts_response_v4_spec.rb +2 -2
- data/spec/models/individual_response_spec.rb +41 -0
- data/spec/models/{individual_name_spec.rb → individual_v1_name_spec.rb} +8 -8
- data/spec/models/{individual_spec.rb → individual_v1_spec.rb} +8 -8
- data/spec/models/invitation_status_response_spec.rb +2 -2
- data/spec/models/invitation_status_spec.rb +2 -2
- data/spec/models/invite_payee_request_spec.rb +2 -2
- data/spec/models/language_spec.rb +2 -2
- data/spec/models/list_payments_response_page_spec.rb +2 -2
- data/spec/models/list_payments_response_spec.rb +2 -2
- data/spec/models/list_payments_response_summary_spec.rb +2 -2
- data/spec/models/list_source_account_response_links_spec.rb +2 -2
- data/spec/models/list_source_account_response_page_spec.rb +2 -2
- data/spec/models/list_source_account_response_spec.rb +2 -2
- data/spec/models/list_source_account_response_v2_page_spec.rb +2 -2
- data/spec/models/list_source_account_response_v2_spec.rb +2 -2
- data/spec/models/marketing_opt_in_spec.rb +2 -2
- data/spec/models/notifications_spec.rb +2 -2
- data/spec/models/ofac_status_spec.rb +2 -2
- data/spec/models/onboarded_status_spec.rb +2 -2
- data/spec/models/paged_payee_invitation_status_response_spec.rb +2 -2
- data/spec/models/paged_payee_response2_spec.rb +59 -0
- data/spec/models/paged_payee_response2_summary_spec.rb +65 -0
- data/spec/models/{payee_response_links_spec.rb → paged_payee_response_links_spec.rb} +8 -8
- data/spec/models/{payee_response_page_spec.rb → paged_payee_response_page_spec.rb} +8 -8
- data/spec/models/paged_payee_response_spec.rb +59 -0
- data/spec/models/{payee_response_summary_spec.rb → paged_payee_response_summary_spec.rb} +8 -8
- data/spec/models/paged_response_page_spec.rb +2 -2
- data/spec/models/paged_response_spec.rb +2 -2
- data/spec/models/{address_spec.rb → payee_address_spec.rb} +8 -8
- data/spec/models/payee_delta_response_links_spec.rb +2 -2
- data/spec/models/payee_delta_response_page_spec.rb +2 -2
- data/spec/models/payee_delta_response_spec.rb +2 -2
- data/spec/models/payee_delta_spec.rb +2 -2
- data/spec/models/payee_invitation_status_response_spec.rb +2 -2
- data/spec/models/payee_invitation_status_spec.rb +2 -2
- data/spec/models/{payment_channel_spec.rb → payee_payment_channel_spec.rb} +8 -8
- data/spec/models/payee_payor_ref2_spec.rb +53 -0
- data/spec/models/{payor_ref_spec.rb → payee_payor_ref_spec.rb} +8 -8
- data/spec/models/payee_response2_spec.rb +155 -0
- data/spec/models/payee_response_spec.rb +102 -6
- data/spec/models/payee_spec.rb +2 -2
- data/spec/models/payee_type_spec.rb +2 -2
- data/spec/models/payment_audit_currency_v3_spec.rb +2 -2
- data/spec/models/payment_audit_currency_v4_spec.rb +2 -2
- data/spec/models/payment_channel_country_spec.rb +2 -2
- data/spec/models/payment_channel_rule_spec.rb +2 -2
- data/spec/models/payment_channel_rules_response_spec.rb +2 -2
- data/spec/models/payment_delta_response_spec.rb +53 -0
- data/spec/models/payment_delta_spec.rb +83 -0
- data/spec/models/payment_event_response_v3_spec.rb +2 -2
- data/spec/models/payment_event_response_v4_spec.rb +2 -2
- data/spec/models/payment_instruction_spec.rb +2 -2
- data/spec/models/payment_response_v3_spec.rb +2 -2
- data/spec/models/payment_response_v4_payout_spec.rb +47 -0
- data/spec/models/payment_response_v4_spec.rb +8 -2
- data/spec/models/payment_status_spec.rb +35 -0
- data/spec/models/payor_address_spec.rb +83 -0
- data/spec/models/payor_address_v2_spec.rb +83 -0
- data/spec/models/payor_branding_response_spec.rb +2 -2
- data/spec/models/payor_create_api_key_request_spec.rb +2 -2
- data/spec/models/payor_create_api_key_response_spec.rb +2 -2
- data/spec/models/payor_create_application_request_spec.rb +2 -2
- data/spec/models/payor_email_opt_out_request_spec.rb +2 -2
- data/spec/models/payor_links_response_links_spec.rb +2 -2
- data/spec/models/payor_links_response_payors_spec.rb +2 -2
- data/spec/models/payor_links_response_spec.rb +2 -2
- data/spec/models/payor_logo_request_spec.rb +2 -2
- data/spec/models/payor_v1_spec.rb +8 -2
- data/spec/models/payor_v2_spec.rb +8 -2
- data/spec/models/payout_payor_v4_spec.rb +65 -0
- data/spec/models/payout_principal_v4_spec.rb +47 -0
- data/spec/models/payout_status_v3_spec.rb +2 -2
- data/spec/models/payout_status_v4_spec.rb +2 -2
- data/spec/models/payout_summary_audit_v3_spec.rb +2 -2
- data/spec/models/payout_summary_audit_v4_spec.rb +8 -2
- data/spec/models/payout_summary_response_spec.rb +2 -2
- data/spec/models/payout_type_v4_spec.rb +35 -0
- data/spec/models/query_batch_response_spec.rb +2 -2
- data/spec/models/quote_fx_summary_spec.rb +10 -2
- data/spec/models/quote_response_spec.rb +2 -2
- data/spec/models/rejected_payment_spec.rb +2 -2
- data/spec/models/set_notifications_request_spec.rb +2 -2
- data/spec/models/source_account_response_spec.rb +2 -2
- data/spec/models/source_account_response_v2_spec.rb +2 -2
- data/spec/models/source_account_spec.rb +2 -2
- data/spec/models/source_account_summary_v3_spec.rb +2 -2
- data/spec/models/source_account_summary_v4_spec.rb +2 -2
- data/spec/models/supported_countries_response_spec.rb +2 -2
- data/spec/models/supported_country_spec.rb +2 -2
- data/spec/models/supported_currency_response_spec.rb +2 -2
- data/spec/models/supported_currency_spec.rb +2 -2
- data/spec/models/update_remote_id_request_spec.rb +47 -0
- data/spec/models/watchlist_status_spec.rb +35 -0
- data/spec/spec_helper.rb +2 -2
- data/velopayments.gemspec +2 -8
- metadata +252 -259
- data/Gemfile.lock +0 -79
- data/docs/PayorFundingBankDetailsUpdate.md +0 -21
- data/velopayments-2.11.73.gem +0 -0
- data/velopayments-2.14.90.gem +0 -0
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
### Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor. * **Payment.** A single transfer of funds from a payor to a payee. * **Payout.** A batch of Payments, typically used by a payor to logically group payments (e.g. by business day). Technically there need be no relationship between the payments in a payout - a single payout can contain payments to multiple payees and/or multiple payments to a single payee. * **Sandbox.** An integration environment provided by Velo Payments which offers a similar API experience to the production environment, but all funding and payment events are simulated, along with many other services such as OFAC sanctions list checking. ## Overview The Velo Payments API allows a payor to perform a number of operations. The following is a list of the main capabilities in a natural order of execution: * Authenticate with the Velo platform * Maintain a collection of payees * Query the payor’s current balance of funds within the platform and perform additional funding * Issue payments to payees * Query the platform for a history of those payments This document describes the main concepts and APIs required to get up and running with the Velo Payments platform. It is not an exhaustive API reference. For that, please see the separate Velo Payments API Reference. ## API Considerations The Velo Payments API is REST based and uses the JSON format for requests and responses. Most calls are secured using OAuth 2 security and require a valid authentication access token for successful operation. See the Authentication section for details. Where a dynamic value is required in the examples below, the {token} format is used, suggesting that the caller needs to supply the appropriate value of the token in question (without including the { or } characters). Where curl examples are given, the –d @filename.json approach is used, indicating that the request body should be placed into a file named filename.json in the current directory. Each of the curl examples in this document should be considered a single line on the command-line, regardless of how they appear in print. ## Authenticating with the Velo Platform Once Velo backoffice staff have added your organization as a payor within the Velo platform sandbox, they will create you a payor Id, an API key and an API secret and share these with you in a secure manner. You will need to use these values to authenticate with the Velo platform in order to gain access to the APIs. The steps to take are explained in the following: create a string comprising the API key (e.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8) and API secret (e.g. c396b26b-137a-44fd-87f5-34631f8fd529) with a colon between them. E.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8:c396b26b-137a-44fd-87f5-34631f8fd529 base64 encode this string. E.g.: NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== create an HTTP **Authorization** header with the value set to e.g. Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== perform the Velo authentication REST call using the HTTP header created above e.g. via curl: ``` curl -X POST \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ==\" \\ 'https://api.sandbox.velopayments.com/v1/authenticate?grant_type=client_credentials' ``` If successful, this call will result in a **200** HTTP status code and a response body such as: ``` { \"access_token\":\"19f6bafd-93fd-4747-b229-00507bbc991f\", \"token_type\":\"bearer\", \"expires_in\":1799, \"scope\":\"...\" } ``` ## API access following authentication Following successful authentication, the value of the access_token field in the response (indicated in green above) should then be presented with all subsequent API calls to allow the Velo platform to validate that the caller is authenticated. This is achieved by setting the HTTP Authorization header with the value set to e.g. Bearer 19f6bafd-93fd-4747-b229-00507bbc991f such as the curl example below: ``` -H \"Authorization: Bearer 19f6bafd-93fd-4747-b229-00507bbc991f \" ``` If you make other Velo API calls which require authorization but the Authorization header is missing or invalid then you will get a **401** HTTP status response.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.17.8
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,9 +22,10 @@ module VeloPayments
|
|
22
22
|
# Export Transactions
|
23
23
|
# Download a CSV file containing payments in a date range. Uses Transfer-Encoding - chunked to stream to the client. Date range is inclusive of both the start and end dates.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [String] :payor_id The
|
25
|
+
# @option opts [String] :payor_id The Payor ID for whom you wish to run the report. For a Payor requesting the report, this could be their exact Payor, or it could be a child/descendant Payor.
|
26
26
|
# @option opts [Date] :start_date Start date, inclusive. Format is YYYY-MM-DD
|
27
27
|
# @option opts [Date] :submitted_date_from Start date, inclusive. Format is YYYY-MM-DD
|
28
|
+
# @option opts [String] :include Mode to determine whether to include other Payor's data in the results. May only be used if payorId is specified. Can be omitted or set to 'payorOnly' or 'payorAndDescendants'. payorOnly: Only include results for the specified Payor. This is the default if 'include' is omitted. payorAndDescendants: Aggregate results for all descendant Payors of the specified Payor. Should only be used if the Payor with the specified payorId has at least one child Payor. Note when a Payor requests the report and include=payorAndDescendants is used, the following additional columns are included in the CSV: Payor Name, Payor Id
|
28
29
|
# @return [String]
|
29
30
|
def export_transactions_csv(opts = {})
|
30
31
|
data, _status_code, _headers = export_transactions_csv_with_http_info(opts)
|
@@ -34,14 +35,19 @@ module VeloPayments
|
|
34
35
|
# Export Transactions
|
35
36
|
# Download a CSV file containing payments in a date range. Uses Transfer-Encoding - chunked to stream to the client. Date range is inclusive of both the start and end dates.
|
36
37
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @option opts [String] :payor_id The
|
38
|
+
# @option opts [String] :payor_id The Payor ID for whom you wish to run the report. For a Payor requesting the report, this could be their exact Payor, or it could be a child/descendant Payor.
|
38
39
|
# @option opts [Date] :start_date Start date, inclusive. Format is YYYY-MM-DD
|
39
40
|
# @option opts [Date] :submitted_date_from Start date, inclusive. Format is YYYY-MM-DD
|
41
|
+
# @option opts [String] :include Mode to determine whether to include other Payor's data in the results. May only be used if payorId is specified. Can be omitted or set to 'payorOnly' or 'payorAndDescendants'. payorOnly: Only include results for the specified Payor. This is the default if 'include' is omitted. payorAndDescendants: Aggregate results for all descendant Payors of the specified Payor. Should only be used if the Payor with the specified payorId has at least one child Payor. Note when a Payor requests the report and include=payorAndDescendants is used, the following additional columns are included in the CSV: Payor Name, Payor Id
|
40
42
|
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
41
43
|
def export_transactions_csv_with_http_info(opts = {})
|
42
44
|
if @api_client.config.debugging
|
43
45
|
@api_client.config.logger.debug 'Calling API: PaymentAuditServiceApi.export_transactions_csv ...'
|
44
46
|
end
|
47
|
+
allowable_values = ["payorOnly", "payorAndDescendants"]
|
48
|
+
if @api_client.config.client_side_validation && opts[:'include'] && !allowable_values.include?(opts[:'include'])
|
49
|
+
fail ArgumentError, "invalid value for \"include\", must be one of #{allowable_values}"
|
50
|
+
end
|
45
51
|
# resource path
|
46
52
|
local_var_path = '/v4/paymentaudit/transactions'
|
47
53
|
|
@@ -50,6 +56,7 @@ module VeloPayments
|
|
50
56
|
query_params[:'payorId'] = opts[:'payor_id'] if !opts[:'payor_id'].nil?
|
51
57
|
query_params[:'startDate'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
52
58
|
query_params[:'submittedDateFrom'] = opts[:'submitted_date_from'] if !opts[:'submitted_date_from'].nil?
|
59
|
+
query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
|
53
60
|
|
54
61
|
# header parameters
|
55
62
|
header_params = opts[:header_params] || {}
|
@@ -178,7 +185,7 @@ module VeloPayments
|
|
178
185
|
fail ArgumentError, "Missing the required parameter 'payment_id' when calling PaymentAuditServiceApi.get_payment_details"
|
179
186
|
end
|
180
187
|
# resource path
|
181
|
-
local_var_path = '/v3/paymentaudit/payments/{paymentId}'.sub('{' + 'paymentId' + '}', CGI.escape(payment_id.to_s)
|
188
|
+
local_var_path = '/v3/paymentaudit/payments/{paymentId}'.sub('{' + 'paymentId' + '}', CGI.escape(payment_id.to_s))
|
182
189
|
|
183
190
|
# query parameters
|
184
191
|
query_params = opts[:query_params] || {}
|
@@ -243,7 +250,7 @@ module VeloPayments
|
|
243
250
|
fail ArgumentError, "Missing the required parameter 'payment_id' when calling PaymentAuditServiceApi.get_payment_details_v4"
|
244
251
|
end
|
245
252
|
# resource path
|
246
|
-
local_var_path = '/v4/paymentaudit/payments/{paymentId}'.sub('{' + 'paymentId' + '}', CGI.escape(payment_id.to_s)
|
253
|
+
local_var_path = '/v4/paymentaudit/payments/{paymentId}'.sub('{' + 'paymentId' + '}', CGI.escape(payment_id.to_s))
|
247
254
|
|
248
255
|
# query parameters
|
249
256
|
query_params = opts[:query_params] || {}
|
@@ -334,7 +341,7 @@ module VeloPayments
|
|
334
341
|
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
335
342
|
end
|
336
343
|
# resource path
|
337
|
-
local_var_path = '/v3/paymentaudit/payouts/{payoutId}'.sub('{' + 'payoutId' + '}', CGI.escape(payout_id.to_s)
|
344
|
+
local_var_path = '/v3/paymentaudit/payouts/{payoutId}'.sub('{' + 'payoutId' + '}', CGI.escape(payout_id.to_s))
|
338
345
|
|
339
346
|
# query parameters
|
340
347
|
query_params = opts[:query_params] || {}
|
@@ -436,7 +443,7 @@ module VeloPayments
|
|
436
443
|
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
437
444
|
end
|
438
445
|
# resource path
|
439
|
-
local_var_path = '/v4/paymentaudit/payouts/{payoutId}'.sub('{' + 'payoutId' + '}', CGI.escape(payout_id.to_s)
|
446
|
+
local_var_path = '/v4/paymentaudit/payouts/{payoutId}'.sub('{' + 'payoutId' + '}', CGI.escape(payout_id.to_s))
|
440
447
|
|
441
448
|
# query parameters
|
442
449
|
query_params = opts[:query_params] || {}
|
@@ -662,6 +669,82 @@ module VeloPayments
|
|
662
669
|
return data, status_code, headers
|
663
670
|
end
|
664
671
|
|
672
|
+
# List Payment Changes
|
673
|
+
# Get a paginated response listing payment changes.
|
674
|
+
# @param payor_id [String] The Payor ID to find associated Payments
|
675
|
+
# @param updated_since [DateTime] The updatedSince filter in the format YYYY-MM-DDThh:mm:ss+hh:mm
|
676
|
+
# @param [Hash] opts the optional parameters
|
677
|
+
# @option opts [Integer] :page Page number. Default is 1. (default to 1)
|
678
|
+
# @option opts [Integer] :page_size Page size. Default is 100. Max allowable is 1000. (default to 100)
|
679
|
+
# @return [PaymentDeltaResponse]
|
680
|
+
def list_payment_changes(payor_id, updated_since, opts = {})
|
681
|
+
data, _status_code, _headers = list_payment_changes_with_http_info(payor_id, updated_since, opts)
|
682
|
+
data
|
683
|
+
end
|
684
|
+
|
685
|
+
# List Payment Changes
|
686
|
+
# Get a paginated response listing payment changes.
|
687
|
+
# @param payor_id [String] The Payor ID to find associated Payments
|
688
|
+
# @param updated_since [DateTime] The updatedSince filter in the format YYYY-MM-DDThh:mm:ss+hh:mm
|
689
|
+
# @param [Hash] opts the optional parameters
|
690
|
+
# @option opts [Integer] :page Page number. Default is 1.
|
691
|
+
# @option opts [Integer] :page_size Page size. Default is 100. Max allowable is 1000.
|
692
|
+
# @return [Array<(PaymentDeltaResponse, Integer, Hash)>] PaymentDeltaResponse data, response status code and response headers
|
693
|
+
def list_payment_changes_with_http_info(payor_id, updated_since, opts = {})
|
694
|
+
if @api_client.config.debugging
|
695
|
+
@api_client.config.logger.debug 'Calling API: PaymentAuditServiceApi.list_payment_changes ...'
|
696
|
+
end
|
697
|
+
# verify the required parameter 'payor_id' is set
|
698
|
+
if @api_client.config.client_side_validation && payor_id.nil?
|
699
|
+
fail ArgumentError, "Missing the required parameter 'payor_id' when calling PaymentAuditServiceApi.list_payment_changes"
|
700
|
+
end
|
701
|
+
# verify the required parameter 'updated_since' is set
|
702
|
+
if @api_client.config.client_side_validation && updated_since.nil?
|
703
|
+
fail ArgumentError, "Missing the required parameter 'updated_since' when calling PaymentAuditServiceApi.list_payment_changes"
|
704
|
+
end
|
705
|
+
# resource path
|
706
|
+
local_var_path = '/v1/deltas/payments'
|
707
|
+
|
708
|
+
# query parameters
|
709
|
+
query_params = opts[:query_params] || {}
|
710
|
+
query_params[:'payorId'] = payor_id
|
711
|
+
query_params[:'updatedSince'] = updated_since
|
712
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
713
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
714
|
+
|
715
|
+
# header parameters
|
716
|
+
header_params = opts[:header_params] || {}
|
717
|
+
# HTTP header 'Accept' (if needed)
|
718
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
719
|
+
|
720
|
+
# form parameters
|
721
|
+
form_params = opts[:form_params] || {}
|
722
|
+
|
723
|
+
# http body (model)
|
724
|
+
post_body = opts[:body]
|
725
|
+
|
726
|
+
# return_type
|
727
|
+
return_type = opts[:return_type] || 'PaymentDeltaResponse'
|
728
|
+
|
729
|
+
# auth_names
|
730
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
731
|
+
|
732
|
+
new_options = opts.merge(
|
733
|
+
:header_params => header_params,
|
734
|
+
:query_params => query_params,
|
735
|
+
:form_params => form_params,
|
736
|
+
:body => post_body,
|
737
|
+
:auth_names => auth_names,
|
738
|
+
:return_type => return_type
|
739
|
+
)
|
740
|
+
|
741
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
742
|
+
if @api_client.config.debugging
|
743
|
+
@api_client.config.logger.debug "API called: PaymentAuditServiceApi#list_payment_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
744
|
+
end
|
745
|
+
return data, status_code, headers
|
746
|
+
end
|
747
|
+
|
665
748
|
# Get List of Payments
|
666
749
|
# Get payments for the given payor Id
|
667
750
|
# @param [Hash] opts the optional parameters
|
@@ -676,7 +759,7 @@ module VeloPayments
|
|
676
759
|
# @option opts [String] :source_currency The source currency filter. Filters based on an exact match on the currency.
|
677
760
|
# @option opts [Integer] :payment_amount_from The payment amount from range filter. Filters for paymentAmount >= paymentAmountFrom
|
678
761
|
# @option opts [Integer] :payment_amount_to The payment amount to range filter. Filters for paymentAmount ⇐ paymentAmountTo
|
679
|
-
# @option opts [String] :payment_currency The
|
762
|
+
# @option opts [String] :payment_currency The payment currency filter. Filters based on an exact match on the currency.
|
680
763
|
# @option opts [Date] :submitted_date_from The submitted date from range filter. Format is yyyy-MM-dd.
|
681
764
|
# @option opts [Date] :submitted_date_to The submitted date to range filter. Format is yyyy-MM-dd.
|
682
765
|
# @option opts [String] :payment_memo The payment memo filter. This filters via a case insensitive substring match.
|
@@ -704,7 +787,7 @@ module VeloPayments
|
|
704
787
|
# @option opts [String] :source_currency The source currency filter. Filters based on an exact match on the currency.
|
705
788
|
# @option opts [Integer] :payment_amount_from The payment amount from range filter. Filters for paymentAmount >= paymentAmountFrom
|
706
789
|
# @option opts [Integer] :payment_amount_to The payment amount to range filter. Filters for paymentAmount ⇐ paymentAmountTo
|
707
|
-
# @option opts [String] :payment_currency The
|
790
|
+
# @option opts [String] :payment_currency The payment currency filter. Filters based on an exact match on the currency.
|
708
791
|
# @option opts [Date] :submitted_date_from The submitted date from range filter. Format is yyyy-MM-dd.
|
709
792
|
# @option opts [Date] :submitted_date_to The submitted date to range filter. Format is yyyy-MM-dd.
|
710
793
|
# @option opts [String] :payment_memo The payment memo filter. This filters via a case insensitive substring match.
|
@@ -793,7 +876,7 @@ module VeloPayments
|
|
793
876
|
# @option opts [String] :source_currency The source currency filter. Filters based on an exact match on the currency.
|
794
877
|
# @option opts [Integer] :payment_amount_from The payment amount from range filter. Filters for paymentAmount >= paymentAmountFrom
|
795
878
|
# @option opts [Integer] :payment_amount_to The payment amount to range filter. Filters for paymentAmount ⇐ paymentAmountTo
|
796
|
-
# @option opts [String] :payment_currency The
|
879
|
+
# @option opts [String] :payment_currency The payment currency filter. Filters based on an exact match on the currency.
|
797
880
|
# @option opts [Date] :submitted_date_from The submitted date from range filter. Format is yyyy-MM-dd.
|
798
881
|
# @option opts [Date] :submitted_date_to The submitted date to range filter. Format is yyyy-MM-dd.
|
799
882
|
# @option opts [String] :payment_memo The payment memo filter. This filters via a case insensitive substring match.
|
@@ -821,7 +904,7 @@ module VeloPayments
|
|
821
904
|
# @option opts [String] :source_currency The source currency filter. Filters based on an exact match on the currency.
|
822
905
|
# @option opts [Integer] :payment_amount_from The payment amount from range filter. Filters for paymentAmount >= paymentAmountFrom
|
823
906
|
# @option opts [Integer] :payment_amount_to The payment amount to range filter. Filters for paymentAmount ⇐ paymentAmountTo
|
824
|
-
# @option opts [String] :payment_currency The
|
907
|
+
# @option opts [String] :payment_currency The payment currency filter. Filters based on an exact match on the currency.
|
825
908
|
# @option opts [Date] :submitted_date_from The submitted date from range filter. Format is yyyy-MM-dd.
|
826
909
|
# @option opts [Date] :submitted_date_to The submitted date to range filter. Format is yyyy-MM-dd.
|
827
910
|
# @option opts [String] :payment_memo The payment memo filter. This filters via a case insensitive substring match.
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
### Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor. * **Payment.** A single transfer of funds from a payor to a payee. * **Payout.** A batch of Payments, typically used by a payor to logically group payments (e.g. by business day). Technically there need be no relationship between the payments in a payout - a single payout can contain payments to multiple payees and/or multiple payments to a single payee. * **Sandbox.** An integration environment provided by Velo Payments which offers a similar API experience to the production environment, but all funding and payment events are simulated, along with many other services such as OFAC sanctions list checking. ## Overview The Velo Payments API allows a payor to perform a number of operations. The following is a list of the main capabilities in a natural order of execution: * Authenticate with the Velo platform * Maintain a collection of payees * Query the payor’s current balance of funds within the platform and perform additional funding * Issue payments to payees * Query the platform for a history of those payments This document describes the main concepts and APIs required to get up and running with the Velo Payments platform. It is not an exhaustive API reference. For that, please see the separate Velo Payments API Reference. ## API Considerations The Velo Payments API is REST based and uses the JSON format for requests and responses. Most calls are secured using OAuth 2 security and require a valid authentication access token for successful operation. See the Authentication section for details. Where a dynamic value is required in the examples below, the {token} format is used, suggesting that the caller needs to supply the appropriate value of the token in question (without including the { or } characters). Where curl examples are given, the –d @filename.json approach is used, indicating that the request body should be placed into a file named filename.json in the current directory. Each of the curl examples in this document should be considered a single line on the command-line, regardless of how they appear in print. ## Authenticating with the Velo Platform Once Velo backoffice staff have added your organization as a payor within the Velo platform sandbox, they will create you a payor Id, an API key and an API secret and share these with you in a secure manner. You will need to use these values to authenticate with the Velo platform in order to gain access to the APIs. The steps to take are explained in the following: create a string comprising the API key (e.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8) and API secret (e.g. c396b26b-137a-44fd-87f5-34631f8fd529) with a colon between them. E.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8:c396b26b-137a-44fd-87f5-34631f8fd529 base64 encode this string. E.g.: NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== create an HTTP **Authorization** header with the value set to e.g. Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== perform the Velo authentication REST call using the HTTP header created above e.g. via curl: ``` curl -X POST \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ==\" \\ 'https://api.sandbox.velopayments.com/v1/authenticate?grant_type=client_credentials' ``` If successful, this call will result in a **200** HTTP status code and a response body such as: ``` { \"access_token\":\"19f6bafd-93fd-4747-b229-00507bbc991f\", \"token_type\":\"bearer\", \"expires_in\":1799, \"scope\":\"...\" } ``` ## API access following authentication Following successful authentication, the value of the access_token field in the response (indicated in green above) should then be presented with all subsequent API calls to allow the Velo platform to validate that the caller is authenticated. This is achieved by setting the HTTP Authorization header with the value set to e.g. Bearer 19f6bafd-93fd-4747-b229-00507bbc991f such as the curl example below: ``` -H \"Authorization: Bearer 19f6bafd-93fd-4747-b229-00507bbc991f \" ``` If you make other Velo API calls which require authorization but the Authorization header is missing or invalid then you will get a **401** HTTP status response.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.17.8
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -55,7 +55,7 @@ module VeloPayments
|
|
55
55
|
fail ArgumentError, "Missing the required parameter 'payor_create_api_key_request' when calling PayorApplicationsApi.payor_create_api_key_request"
|
56
56
|
end
|
57
57
|
# resource path
|
58
|
-
local_var_path = '/v1/payors/{payorId}/applications/{applicationId}/keys'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s)
|
58
|
+
local_var_path = '/v1/payors/{payorId}/applications/{applicationId}/keys'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
|
59
59
|
|
60
60
|
# query parameters
|
61
61
|
query_params = opts[:query_params] || {}
|
@@ -125,7 +125,7 @@ module VeloPayments
|
|
125
125
|
fail ArgumentError, "Missing the required parameter 'payor_create_application_request' when calling PayorApplicationsApi.payor_create_application_request"
|
126
126
|
end
|
127
127
|
# resource path
|
128
|
-
local_var_path = '/v1/payors/{payorId}/applications'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s)
|
128
|
+
local_var_path = '/v1/payors/{payorId}/applications'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s))
|
129
129
|
|
130
130
|
# query parameters
|
131
131
|
query_params = opts[:query_params] || {}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
### Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor. * **Payment.** A single transfer of funds from a payor to a payee. * **Payout.** A batch of Payments, typically used by a payor to logically group payments (e.g. by business day). Technically there need be no relationship between the payments in a payout - a single payout can contain payments to multiple payees and/or multiple payments to a single payee. * **Sandbox.** An integration environment provided by Velo Payments which offers a similar API experience to the production environment, but all funding and payment events are simulated, along with many other services such as OFAC sanctions list checking. ## Overview The Velo Payments API allows a payor to perform a number of operations. The following is a list of the main capabilities in a natural order of execution: * Authenticate with the Velo platform * Maintain a collection of payees * Query the payor’s current balance of funds within the platform and perform additional funding * Issue payments to payees * Query the platform for a history of those payments This document describes the main concepts and APIs required to get up and running with the Velo Payments platform. It is not an exhaustive API reference. For that, please see the separate Velo Payments API Reference. ## API Considerations The Velo Payments API is REST based and uses the JSON format for requests and responses. Most calls are secured using OAuth 2 security and require a valid authentication access token for successful operation. See the Authentication section for details. Where a dynamic value is required in the examples below, the {token} format is used, suggesting that the caller needs to supply the appropriate value of the token in question (without including the { or } characters). Where curl examples are given, the –d @filename.json approach is used, indicating that the request body should be placed into a file named filename.json in the current directory. Each of the curl examples in this document should be considered a single line on the command-line, regardless of how they appear in print. ## Authenticating with the Velo Platform Once Velo backoffice staff have added your organization as a payor within the Velo platform sandbox, they will create you a payor Id, an API key and an API secret and share these with you in a secure manner. You will need to use these values to authenticate with the Velo platform in order to gain access to the APIs. The steps to take are explained in the following: create a string comprising the API key (e.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8) and API secret (e.g. c396b26b-137a-44fd-87f5-34631f8fd529) with a colon between them. E.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8:c396b26b-137a-44fd-87f5-34631f8fd529 base64 encode this string. E.g.: NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== create an HTTP **Authorization** header with the value set to e.g. Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== perform the Velo authentication REST call using the HTTP header created above e.g. via curl: ``` curl -X POST \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ==\" \\ 'https://api.sandbox.velopayments.com/v1/authenticate?grant_type=client_credentials' ``` If successful, this call will result in a **200** HTTP status code and a response body such as: ``` { \"access_token\":\"19f6bafd-93fd-4747-b229-00507bbc991f\", \"token_type\":\"bearer\", \"expires_in\":1799, \"scope\":\"...\" } ``` ## API access following authentication Following successful authentication, the value of the access_token field in the response (indicated in green above) should then be presented with all subsequent API calls to allow the Velo platform to validate that the caller is authenticated. This is achieved by setting the HTTP Authorization header with the value set to e.g. Bearer 19f6bafd-93fd-4747-b229-00507bbc991f such as the curl example below: ``` -H \"Authorization: Bearer 19f6bafd-93fd-4747-b229-00507bbc991f \" ``` If you make other Velo API calls which require authorization but the Authorization header is missing or invalid then you will get a **401** HTTP status response.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.17.8
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -43,7 +43,7 @@ module VeloPayments
|
|
43
43
|
fail ArgumentError, "Missing the required parameter 'payor_id' when calling PayorsApi.get_payor_by_id"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '/v1/payors/{payorId}'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s)
|
46
|
+
local_var_path = '/v1/payors/{payorId}'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s))
|
47
47
|
|
48
48
|
# query parameters
|
49
49
|
query_params = opts[:query_params] || {}
|
@@ -105,7 +105,7 @@ module VeloPayments
|
|
105
105
|
fail ArgumentError, "Missing the required parameter 'payor_id' when calling PayorsApi.get_payor_by_id_v2"
|
106
106
|
end
|
107
107
|
# resource path
|
108
|
-
local_var_path = '/v2/payors/{payorId}'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s)
|
108
|
+
local_var_path = '/v2/payors/{payorId}'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s))
|
109
109
|
|
110
110
|
# query parameters
|
111
111
|
query_params = opts[:query_params] || {}
|
@@ -169,7 +169,7 @@ module VeloPayments
|
|
169
169
|
fail ArgumentError, "Missing the required parameter 'payor_id' when calling PayorsApi.payor_add_payor_logo"
|
170
170
|
end
|
171
171
|
# resource path
|
172
|
-
local_var_path = '/v1/payors/{payorId}/branding/logos'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s)
|
172
|
+
local_var_path = '/v1/payors/{payorId}/branding/logos'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s))
|
173
173
|
|
174
174
|
# query parameters
|
175
175
|
query_params = opts[:query_params] || {}
|
@@ -238,7 +238,7 @@ module VeloPayments
|
|
238
238
|
fail ArgumentError, "Missing the required parameter 'payor_email_opt_out_request' when calling PayorsApi.payor_email_opt_out"
|
239
239
|
end
|
240
240
|
# resource path
|
241
|
-
local_var_path = '/v1/payors/{payorId}/reminderEmailsUpdate'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s)
|
241
|
+
local_var_path = '/v1/payors/{payorId}/reminderEmailsUpdate'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s))
|
242
242
|
|
243
243
|
# query parameters
|
244
244
|
query_params = opts[:query_params] || {}
|
@@ -300,7 +300,7 @@ module VeloPayments
|
|
300
300
|
fail ArgumentError, "Missing the required parameter 'payor_id' when calling PayorsApi.payor_get_branding"
|
301
301
|
end
|
302
302
|
# resource path
|
303
|
-
local_var_path = '/v1/payors/{payorId}/branding'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s)
|
303
|
+
local_var_path = '/v1/payors/{payorId}/branding'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s))
|
304
304
|
|
305
305
|
# query parameters
|
306
306
|
query_params = opts[:query_params] || {}
|
@@ -340,35 +340,34 @@ module VeloPayments
|
|
340
340
|
|
341
341
|
# List Payor Links
|
342
342
|
# This endpoint allows you to list payor links
|
343
|
-
# @param descendants_of_payor [String] The Payor ID from which to start the query to show all descendants
|
344
343
|
# @param [Hash] opts the optional parameters
|
345
|
-
# @option opts [String] :
|
344
|
+
# @option opts [String] :descendants_of_payor The Payor ID from which to start the query to show all descendants
|
345
|
+
# @option opts [String] :parent_of_payor Look for the parent payor details for this payor id
|
346
|
+
# @option opts [String] :fields List of additional Payor fields to include in the response for each Payor. The values of payorId and payorName and always included for each Payor - 'fields' allows you to add to this. Example: ```fields=primaryContactEmail,kycState``` - will include payorId+payorName+primaryContactEmail+kycState for each Payor Default if not specified is to include only payorId and payorName. The supported fields are any combination of: primaryContactEmail,kycState
|
346
347
|
# @return [PayorLinksResponse]
|
347
|
-
def payor_links(
|
348
|
-
data, _status_code, _headers = payor_links_with_http_info(
|
348
|
+
def payor_links(opts = {})
|
349
|
+
data, _status_code, _headers = payor_links_with_http_info(opts)
|
349
350
|
data
|
350
351
|
end
|
351
352
|
|
352
353
|
# List Payor Links
|
353
354
|
# This endpoint allows you to list payor links
|
354
|
-
# @param descendants_of_payor [String] The Payor ID from which to start the query to show all descendants
|
355
355
|
# @param [Hash] opts the optional parameters
|
356
|
-
# @option opts [String] :
|
356
|
+
# @option opts [String] :descendants_of_payor The Payor ID from which to start the query to show all descendants
|
357
|
+
# @option opts [String] :parent_of_payor Look for the parent payor details for this payor id
|
358
|
+
# @option opts [String] :fields List of additional Payor fields to include in the response for each Payor. The values of payorId and payorName and always included for each Payor - 'fields' allows you to add to this. Example: ```fields=primaryContactEmail,kycState``` - will include payorId+payorName+primaryContactEmail+kycState for each Payor Default if not specified is to include only payorId and payorName. The supported fields are any combination of: primaryContactEmail,kycState
|
357
359
|
# @return [Array<(PayorLinksResponse, Integer, Hash)>] PayorLinksResponse data, response status code and response headers
|
358
|
-
def payor_links_with_http_info(
|
360
|
+
def payor_links_with_http_info(opts = {})
|
359
361
|
if @api_client.config.debugging
|
360
362
|
@api_client.config.logger.debug 'Calling API: PayorsApi.payor_links ...'
|
361
363
|
end
|
362
|
-
# verify the required parameter 'descendants_of_payor' is set
|
363
|
-
if @api_client.config.client_side_validation && descendants_of_payor.nil?
|
364
|
-
fail ArgumentError, "Missing the required parameter 'descendants_of_payor' when calling PayorsApi.payor_links"
|
365
|
-
end
|
366
364
|
# resource path
|
367
365
|
local_var_path = '/v1/payorLinks'
|
368
366
|
|
369
367
|
# query parameters
|
370
368
|
query_params = opts[:query_params] || {}
|
371
|
-
query_params[:'descendantsOfPayor'] = descendants_of_payor
|
369
|
+
query_params[:'descendantsOfPayor'] = opts[:'descendants_of_payor'] if !opts[:'descendants_of_payor'].nil?
|
370
|
+
query_params[:'parentOfPayor'] = opts[:'parent_of_payor'] if !opts[:'parent_of_payor'].nil?
|
372
371
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
373
372
|
|
374
373
|
# header parameters
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
### Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor. * **Payment.** A single transfer of funds from a payor to a payee. * **Payout.** A batch of Payments, typically used by a payor to logically group payments (e.g. by business day). Technically there need be no relationship between the payments in a payout - a single payout can contain payments to multiple payees and/or multiple payments to a single payee. * **Sandbox.** An integration environment provided by Velo Payments which offers a similar API experience to the production environment, but all funding and payment events are simulated, along with many other services such as OFAC sanctions list checking. ## Overview The Velo Payments API allows a payor to perform a number of operations. The following is a list of the main capabilities in a natural order of execution: * Authenticate with the Velo platform * Maintain a collection of payees * Query the payor’s current balance of funds within the platform and perform additional funding * Issue payments to payees * Query the platform for a history of those payments This document describes the main concepts and APIs required to get up and running with the Velo Payments platform. It is not an exhaustive API reference. For that, please see the separate Velo Payments API Reference. ## API Considerations The Velo Payments API is REST based and uses the JSON format for requests and responses. Most calls are secured using OAuth 2 security and require a valid authentication access token for successful operation. See the Authentication section for details. Where a dynamic value is required in the examples below, the {token} format is used, suggesting that the caller needs to supply the appropriate value of the token in question (without including the { or } characters). Where curl examples are given, the –d @filename.json approach is used, indicating that the request body should be placed into a file named filename.json in the current directory. Each of the curl examples in this document should be considered a single line on the command-line, regardless of how they appear in print. ## Authenticating with the Velo Platform Once Velo backoffice staff have added your organization as a payor within the Velo platform sandbox, they will create you a payor Id, an API key and an API secret and share these with you in a secure manner. You will need to use these values to authenticate with the Velo platform in order to gain access to the APIs. The steps to take are explained in the following: create a string comprising the API key (e.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8) and API secret (e.g. c396b26b-137a-44fd-87f5-34631f8fd529) with a colon between them. E.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8:c396b26b-137a-44fd-87f5-34631f8fd529 base64 encode this string. E.g.: NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== create an HTTP **Authorization** header with the value set to e.g. Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== perform the Velo authentication REST call using the HTTP header created above e.g. via curl: ``` curl -X POST \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ==\" \\ 'https://api.sandbox.velopayments.com/v1/authenticate?grant_type=client_credentials' ``` If successful, this call will result in a **200** HTTP status code and a response body such as: ``` { \"access_token\":\"19f6bafd-93fd-4747-b229-00507bbc991f\", \"token_type\":\"bearer\", \"expires_in\":1799, \"scope\":\"...\" } ``` ## API access following authentication Following successful authentication, the value of the access_token field in the response (indicated in green above) should then be presented with all subsequent API calls to allow the Velo platform to validate that the caller is authenticated. This is achieved by setting the HTTP Authorization header with the value set to e.g. Bearer 19f6bafd-93fd-4747-b229-00507bbc991f such as the curl example below: ``` -H \"Authorization: Bearer 19f6bafd-93fd-4747-b229-00507bbc991f \" ``` If you make other Velo API calls which require authorization but the Authorization header is missing or invalid then you will get a **401** HTTP status response.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.17.8
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -71,7 +71,7 @@ module VeloPayments
|
|
71
71
|
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
72
72
|
end
|
73
73
|
# resource path
|
74
|
-
local_var_path = '/v3/paymentaudit/payouts/{payoutId}'.sub('{' + 'payoutId' + '}', CGI.escape(payout_id.to_s)
|
74
|
+
local_var_path = '/v3/paymentaudit/payouts/{payoutId}'.sub('{' + 'payoutId' + '}', CGI.escape(payout_id.to_s))
|
75
75
|
|
76
76
|
# query parameters
|
77
77
|
query_params = opts[:query_params] || {}
|
@@ -173,7 +173,7 @@ module VeloPayments
|
|
173
173
|
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
174
174
|
end
|
175
175
|
# resource path
|
176
|
-
local_var_path = '/v4/paymentaudit/payouts/{payoutId}'.sub('{' + 'payoutId' + '}', CGI.escape(payout_id.to_s)
|
176
|
+
local_var_path = '/v4/paymentaudit/payouts/{payoutId}'.sub('{' + 'payoutId' + '}', CGI.escape(payout_id.to_s))
|
177
177
|
|
178
178
|
# query parameters
|
179
179
|
query_params = opts[:query_params] || {}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
### Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor. * **Payment.** A single transfer of funds from a payor to a payee. * **Payout.** A batch of Payments, typically used by a payor to logically group payments (e.g. by business day). Technically there need be no relationship between the payments in a payout - a single payout can contain payments to multiple payees and/or multiple payments to a single payee. * **Sandbox.** An integration environment provided by Velo Payments which offers a similar API experience to the production environment, but all funding and payment events are simulated, along with many other services such as OFAC sanctions list checking. ## Overview The Velo Payments API allows a payor to perform a number of operations. The following is a list of the main capabilities in a natural order of execution: * Authenticate with the Velo platform * Maintain a collection of payees * Query the payor’s current balance of funds within the platform and perform additional funding * Issue payments to payees * Query the platform for a history of those payments This document describes the main concepts and APIs required to get up and running with the Velo Payments platform. It is not an exhaustive API reference. For that, please see the separate Velo Payments API Reference. ## API Considerations The Velo Payments API is REST based and uses the JSON format for requests and responses. Most calls are secured using OAuth 2 security and require a valid authentication access token for successful operation. See the Authentication section for details. Where a dynamic value is required in the examples below, the {token} format is used, suggesting that the caller needs to supply the appropriate value of the token in question (without including the { or } characters). Where curl examples are given, the –d @filename.json approach is used, indicating that the request body should be placed into a file named filename.json in the current directory. Each of the curl examples in this document should be considered a single line on the command-line, regardless of how they appear in print. ## Authenticating with the Velo Platform Once Velo backoffice staff have added your organization as a payor within the Velo platform sandbox, they will create you a payor Id, an API key and an API secret and share these with you in a secure manner. You will need to use these values to authenticate with the Velo platform in order to gain access to the APIs. The steps to take are explained in the following: create a string comprising the API key (e.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8) and API secret (e.g. c396b26b-137a-44fd-87f5-34631f8fd529) with a colon between them. E.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8:c396b26b-137a-44fd-87f5-34631f8fd529 base64 encode this string. E.g.: NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== create an HTTP **Authorization** header with the value set to e.g. Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== perform the Velo authentication REST call using the HTTP header created above e.g. via curl: ``` curl -X POST \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ==\" \\ 'https://api.sandbox.velopayments.com/v1/authenticate?grant_type=client_credentials' ``` If successful, this call will result in a **200** HTTP status code and a response body such as: ``` { \"access_token\":\"19f6bafd-93fd-4747-b229-00507bbc991f\", \"token_type\":\"bearer\", \"expires_in\":1799, \"scope\":\"...\" } ``` ## API access following authentication Following successful authentication, the value of the access_token field in the response (indicated in green above) should then be presented with all subsequent API calls to allow the Velo platform to validate that the caller is authenticated. This is achieved by setting the HTTP Authorization header with the value set to e.g. Bearer 19f6bafd-93fd-4747-b229-00507bbc991f such as the curl example below: ``` -H \"Authorization: Bearer 19f6bafd-93fd-4747-b229-00507bbc991f \" ``` If you make other Velo API calls which require authorization but the Authorization header is missing or invalid then you will get a **401** HTTP status response.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.17.8
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -43,7 +43,7 @@ module VeloPayments
|
|
43
43
|
fail ArgumentError, "Missing the required parameter 'payout_id' when calling QuotePayoutApi.v3_payouts_payout_id_quote_post"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '/v3/payouts/{payoutId}/quote'.sub('{' + 'payoutId' + '}', CGI.escape(payout_id.to_s)
|
46
|
+
local_var_path = '/v3/payouts/{payoutId}/quote'.sub('{' + 'payoutId' + '}', CGI.escape(payout_id.to_s))
|
47
47
|
|
48
48
|
# query parameters
|
49
49
|
query_params = opts[:query_params] || {}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
### Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor. * **Payment.** A single transfer of funds from a payor to a payee. * **Payout.** A batch of Payments, typically used by a payor to logically group payments (e.g. by business day). Technically there need be no relationship between the payments in a payout - a single payout can contain payments to multiple payees and/or multiple payments to a single payee. * **Sandbox.** An integration environment provided by Velo Payments which offers a similar API experience to the production environment, but all funding and payment events are simulated, along with many other services such as OFAC sanctions list checking. ## Overview The Velo Payments API allows a payor to perform a number of operations. The following is a list of the main capabilities in a natural order of execution: * Authenticate with the Velo platform * Maintain a collection of payees * Query the payor’s current balance of funds within the platform and perform additional funding * Issue payments to payees * Query the platform for a history of those payments This document describes the main concepts and APIs required to get up and running with the Velo Payments platform. It is not an exhaustive API reference. For that, please see the separate Velo Payments API Reference. ## API Considerations The Velo Payments API is REST based and uses the JSON format for requests and responses. Most calls are secured using OAuth 2 security and require a valid authentication access token for successful operation. See the Authentication section for details. Where a dynamic value is required in the examples below, the {token} format is used, suggesting that the caller needs to supply the appropriate value of the token in question (without including the { or } characters). Where curl examples are given, the –d @filename.json approach is used, indicating that the request body should be placed into a file named filename.json in the current directory. Each of the curl examples in this document should be considered a single line on the command-line, regardless of how they appear in print. ## Authenticating with the Velo Platform Once Velo backoffice staff have added your organization as a payor within the Velo platform sandbox, they will create you a payor Id, an API key and an API secret and share these with you in a secure manner. You will need to use these values to authenticate with the Velo platform in order to gain access to the APIs. The steps to take are explained in the following: create a string comprising the API key (e.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8) and API secret (e.g. c396b26b-137a-44fd-87f5-34631f8fd529) with a colon between them. E.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8:c396b26b-137a-44fd-87f5-34631f8fd529 base64 encode this string. E.g.: NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== create an HTTP **Authorization** header with the value set to e.g. Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== perform the Velo authentication REST call using the HTTP header created above e.g. via curl: ``` curl -X POST \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ==\" \\ 'https://api.sandbox.velopayments.com/v1/authenticate?grant_type=client_credentials' ``` If successful, this call will result in a **200** HTTP status code and a response body such as: ``` { \"access_token\":\"19f6bafd-93fd-4747-b229-00507bbc991f\", \"token_type\":\"bearer\", \"expires_in\":1799, \"scope\":\"...\" } ``` ## API access following authentication Following successful authentication, the value of the access_token field in the response (indicated in green above) should then be presented with all subsequent API calls to allow the Velo platform to validate that the caller is authenticated. This is achieved by setting the HTTP Authorization header with the value set to e.g. Bearer 19f6bafd-93fd-4747-b229-00507bbc991f such as the curl example below: ``` -H \"Authorization: Bearer 19f6bafd-93fd-4747-b229-00507bbc991f \" ``` If you make other Velo API calls which require authorization but the Authorization header is missing or invalid then you will get a **401** HTTP status response.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.17.8
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
### Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor. * **Payment.** A single transfer of funds from a payor to a payee. * **Payout.** A batch of Payments, typically used by a payor to logically group payments (e.g. by business day). Technically there need be no relationship between the payments in a payout - a single payout can contain payments to multiple payees and/or multiple payments to a single payee. * **Sandbox.** An integration environment provided by Velo Payments which offers a similar API experience to the production environment, but all funding and payment events are simulated, along with many other services such as OFAC sanctions list checking. ## Overview The Velo Payments API allows a payor to perform a number of operations. The following is a list of the main capabilities in a natural order of execution: * Authenticate with the Velo platform * Maintain a collection of payees * Query the payor’s current balance of funds within the platform and perform additional funding * Issue payments to payees * Query the platform for a history of those payments This document describes the main concepts and APIs required to get up and running with the Velo Payments platform. It is not an exhaustive API reference. For that, please see the separate Velo Payments API Reference. ## API Considerations The Velo Payments API is REST based and uses the JSON format for requests and responses. Most calls are secured using OAuth 2 security and require a valid authentication access token for successful operation. See the Authentication section for details. Where a dynamic value is required in the examples below, the {token} format is used, suggesting that the caller needs to supply the appropriate value of the token in question (without including the { or } characters). Where curl examples are given, the –d @filename.json approach is used, indicating that the request body should be placed into a file named filename.json in the current directory. Each of the curl examples in this document should be considered a single line on the command-line, regardless of how they appear in print. ## Authenticating with the Velo Platform Once Velo backoffice staff have added your organization as a payor within the Velo platform sandbox, they will create you a payor Id, an API key and an API secret and share these with you in a secure manner. You will need to use these values to authenticate with the Velo platform in order to gain access to the APIs. The steps to take are explained in the following: create a string comprising the API key (e.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8) and API secret (e.g. c396b26b-137a-44fd-87f5-34631f8fd529) with a colon between them. E.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8:c396b26b-137a-44fd-87f5-34631f8fd529 base64 encode this string. E.g.: NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== create an HTTP **Authorization** header with the value set to e.g. Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== perform the Velo authentication REST call using the HTTP header created above e.g. via curl: ``` curl -X POST \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ==\" \\ 'https://api.sandbox.velopayments.com/v1/authenticate?grant_type=client_credentials' ``` If successful, this call will result in a **200** HTTP status code and a response body such as: ``` { \"access_token\":\"19f6bafd-93fd-4747-b229-00507bbc991f\", \"token_type\":\"bearer\", \"expires_in\":1799, \"scope\":\"...\" } ``` ## API access following authentication Following successful authentication, the value of the access_token field in the response (indicated in green above) should then be presented with all subsequent API calls to allow the Velo platform to validate that the caller is authenticated. This is achieved by setting the HTTP Authorization header with the value set to e.g. Bearer 19f6bafd-93fd-4747-b229-00507bbc991f such as the curl example below: ``` -H \"Authorization: Bearer 19f6bafd-93fd-4747-b229-00507bbc991f \" ``` If you make other Velo API calls which require authorization but the Authorization header is missing or invalid then you will get a **401** HTTP status response.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.17.8
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -43,7 +43,7 @@ module VeloPayments
|
|
43
43
|
fail ArgumentError, "Missing the required parameter 'payout_id' when calling WithdrawPayoutApi.v3_payouts_payout_id_delete"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '/v3/payouts/{payoutId}'.sub('{' + 'payoutId' + '}', CGI.escape(payout_id.to_s)
|
46
|
+
local_var_path = '/v3/payouts/{payoutId}'.sub('{' + 'payoutId' + '}', CGI.escape(payout_id.to_s))
|
47
47
|
|
48
48
|
# query parameters
|
49
49
|
query_params = opts[:query_params] || {}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
### Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor. * **Payment.** A single transfer of funds from a payor to a payee. * **Payout.** A batch of Payments, typically used by a payor to logically group payments (e.g. by business day). Technically there need be no relationship between the payments in a payout - a single payout can contain payments to multiple payees and/or multiple payments to a single payee. * **Sandbox.** An integration environment provided by Velo Payments which offers a similar API experience to the production environment, but all funding and payment events are simulated, along with many other services such as OFAC sanctions list checking. ## Overview The Velo Payments API allows a payor to perform a number of operations. The following is a list of the main capabilities in a natural order of execution: * Authenticate with the Velo platform * Maintain a collection of payees * Query the payor’s current balance of funds within the platform and perform additional funding * Issue payments to payees * Query the platform for a history of those payments This document describes the main concepts and APIs required to get up and running with the Velo Payments platform. It is not an exhaustive API reference. For that, please see the separate Velo Payments API Reference. ## API Considerations The Velo Payments API is REST based and uses the JSON format for requests and responses. Most calls are secured using OAuth 2 security and require a valid authentication access token for successful operation. See the Authentication section for details. Where a dynamic value is required in the examples below, the {token} format is used, suggesting that the caller needs to supply the appropriate value of the token in question (without including the { or } characters). Where curl examples are given, the –d @filename.json approach is used, indicating that the request body should be placed into a file named filename.json in the current directory. Each of the curl examples in this document should be considered a single line on the command-line, regardless of how they appear in print. ## Authenticating with the Velo Platform Once Velo backoffice staff have added your organization as a payor within the Velo platform sandbox, they will create you a payor Id, an API key and an API secret and share these with you in a secure manner. You will need to use these values to authenticate with the Velo platform in order to gain access to the APIs. The steps to take are explained in the following: create a string comprising the API key (e.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8) and API secret (e.g. c396b26b-137a-44fd-87f5-34631f8fd529) with a colon between them. E.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8:c396b26b-137a-44fd-87f5-34631f8fd529 base64 encode this string. E.g.: NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== create an HTTP **Authorization** header with the value set to e.g. Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== perform the Velo authentication REST call using the HTTP header created above e.g. via curl: ``` curl -X POST \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ==\" \\ 'https://api.sandbox.velopayments.com/v1/authenticate?grant_type=client_credentials' ``` If successful, this call will result in a **200** HTTP status code and a response body such as: ``` { \"access_token\":\"19f6bafd-93fd-4747-b229-00507bbc991f\", \"token_type\":\"bearer\", \"expires_in\":1799, \"scope\":\"...\" } ``` ## API access following authentication Following successful authentication, the value of the access_token field in the response (indicated in green above) should then be presented with all subsequent API calls to allow the Velo platform to validate that the caller is authenticated. This is achieved by setting the HTTP Authorization header with the value set to e.g. Bearer 19f6bafd-93fd-4747-b229-00507bbc991f such as the curl example below: ``` -H \"Authorization: Bearer 19f6bafd-93fd-4747-b229-00507bbc991f \" ``` If you make other Velo API calls which require authorization but the Authorization header is missing or invalid then you will get a **401** HTTP status response.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.17.8
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -127,6 +127,34 @@ module VeloPayments
|
|
127
127
|
request
|
128
128
|
end
|
129
129
|
|
130
|
+
# Builds the HTTP request body
|
131
|
+
#
|
132
|
+
# @param [Hash] header_params Header parameters
|
133
|
+
# @param [Hash] form_params Query parameters
|
134
|
+
# @param [Object] body HTTP body (JSON/XML)
|
135
|
+
# @return [String] HTTP body data in the form of string
|
136
|
+
def build_request_body(header_params, form_params, body)
|
137
|
+
# http form
|
138
|
+
if header_params['Content-Type'] == 'application/x-www-form-urlencoded' ||
|
139
|
+
header_params['Content-Type'] == 'multipart/form-data'
|
140
|
+
data = {}
|
141
|
+
form_params.each do |key, value|
|
142
|
+
case value
|
143
|
+
when ::File, ::Array, nil
|
144
|
+
# let typhoeus handle File, Array and nil parameters
|
145
|
+
data[key] = value
|
146
|
+
else
|
147
|
+
data[key] = value.to_s
|
148
|
+
end
|
149
|
+
end
|
150
|
+
elsif body
|
151
|
+
data = body.is_a?(String) ? body : body.to_json
|
152
|
+
else
|
153
|
+
data = nil
|
154
|
+
end
|
155
|
+
data
|
156
|
+
end
|
157
|
+
|
130
158
|
# Check if the given MIME is a JSON MIME.
|
131
159
|
# JSON MIME examples:
|
132
160
|
# application/json
|
@@ -264,34 +292,6 @@ module VeloPayments
|
|
264
292
|
@config.base_url + path
|
265
293
|
end
|
266
294
|
|
267
|
-
# Builds the HTTP request body
|
268
|
-
#
|
269
|
-
# @param [Hash] header_params Header parameters
|
270
|
-
# @param [Hash] form_params Query parameters
|
271
|
-
# @param [Object] body HTTP body (JSON/XML)
|
272
|
-
# @return [String] HTTP body data in the form of string
|
273
|
-
def build_request_body(header_params, form_params, body)
|
274
|
-
# http form
|
275
|
-
if header_params['Content-Type'] == 'application/x-www-form-urlencoded' ||
|
276
|
-
header_params['Content-Type'] == 'multipart/form-data'
|
277
|
-
data = {}
|
278
|
-
form_params.each do |key, value|
|
279
|
-
case value
|
280
|
-
when ::File, ::Array, nil
|
281
|
-
# let typhoeus handle File, Array and nil parameters
|
282
|
-
data[key] = value
|
283
|
-
else
|
284
|
-
data[key] = value.to_s
|
285
|
-
end
|
286
|
-
end
|
287
|
-
elsif body
|
288
|
-
data = body.is_a?(String) ? body : body.to_json
|
289
|
-
else
|
290
|
-
data = nil
|
291
|
-
end
|
292
|
-
data
|
293
|
-
end
|
294
|
-
|
295
295
|
# Update hearder and query params based on authentication settings.
|
296
296
|
#
|
297
297
|
# @param [Hash] header_params Header parameters
|