velopayments 2.35.58 → 2.37.150.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/Gemfile.lock +3 -3
- data/README.md +50 -11
- data/docs/{PayorAddress.md → AddressV4.md} +3 -3
- data/docs/CommonLinkObject.md +20 -0
- data/docs/CommonPageObject.md +26 -0
- data/docs/CreateFundingAccountRequestV2.md +2 -2
- data/docs/CreatePaymentChannelRequestV4.md +30 -0
- data/docs/CreateTransactionRequest.md +24 -0
- data/docs/CreateTransactionResponse.md +20 -0
- data/docs/FundingAccountResponseV2.md +3 -3
- data/docs/FundingApi.md +2 -2
- data/docs/FundingAudit.md +8 -2
- data/docs/FundingEvent.md +6 -8
- data/docs/FundingEvent2.md +24 -0
- data/docs/FundingManagerPrivateApi.md +1 -1
- data/docs/FundingResponse.md +7 -3
- data/docs/GetPayeeListResponseV4.md +2 -0
- data/docs/InstructPayoutRequestV3.md +4 -2
- data/docs/ListFundingAccountsResponseV2.md +1 -1
- data/docs/NotificationSource.md +3 -0
- data/docs/PageResourceTransactions.md +22 -0
- data/docs/PayeeDetailResponseV4.md +4 -0
- data/docs/PayeePaymentChannelsApi.md +522 -0
- data/docs/PayeesApi.md +2 -2
- data/docs/PaymentAuditServiceApi.md +7 -1
- data/docs/PaymentChannelOrderRequestV4.md +18 -0
- data/docs/PaymentChannelResponseV4.md +56 -0
- data/docs/PaymentChannelSummaryV4.md +32 -0
- data/docs/PaymentChannelsResponseV4.md +20 -0
- data/docs/PaymentInstructionV3.md +4 -2
- data/docs/PaymentResponseV4.md +10 -0
- data/docs/PaymentV3.md +4 -2
- data/docs/PayorCreateApiKeyRequest.md +3 -3
- data/docs/PayorFundingDetected.md +46 -0
- data/docs/PayorFundingDetectedAllOf.md +40 -0
- data/docs/PayorToPaymentChannelMappingV4.md +20 -0
- data/docs/PayorV2.md +19 -19
- data/docs/PayorsApi.md +14 -84
- data/docs/PayoutsApi.md +2 -2
- data/docs/SourceAccountResponseV3.md +3 -1
- data/docs/TransactionResponse.md +36 -0
- data/docs/TransactionsApi.md +229 -0
- data/docs/UpdatePayeeDetailsRequestV3.md +3 -1
- data/docs/UpdatePaymentChannelRequestV4.md +30 -0
- data/docs/WebhooksResponse.md +2 -2
- data/lib/velopayments/api/countries_api.rb +2 -2
- data/lib/velopayments/api/currencies_api.rb +2 -2
- data/lib/velopayments/api/funding_api.rb +5 -5
- data/lib/velopayments/api/funding_manager_private_api.rb +2 -2
- data/lib/velopayments/api/login_api.rb +2 -2
- data/lib/velopayments/api/payee_invitation_api.rb +2 -2
- data/lib/velopayments/api/payee_payment_channels_api.rb +538 -0
- data/lib/velopayments/api/payees_api.rb +6 -2
- data/lib/velopayments/api/payment_audit_service_api.rb +12 -3
- data/lib/velopayments/api/payment_audit_service_deprecated_api.rb +2 -2
- data/lib/velopayments/api/payor_hierarchy_api.rb +2 -2
- data/lib/velopayments/api/payors_api.rb +16 -79
- data/lib/velopayments/api/payors_private_api.rb +2 -2
- data/lib/velopayments/api/payouts_api.rb +2 -6
- data/lib/velopayments/api/source_accounts_api.rb +2 -2
- data/lib/velopayments/api/tokens_api.rb +2 -2
- data/lib/velopayments/api/transactions_api.rb +229 -0
- data/lib/velopayments/api/users_api.rb +2 -2
- data/lib/velopayments/api/webhooks_api.rb +2 -2
- data/lib/velopayments/api_client.rb +2 -2
- data/lib/velopayments/api_error.rb +2 -2
- data/lib/velopayments/configuration.rb +2 -2
- data/lib/velopayments/models/accepted_payment_v3.rb +2 -2
- data/lib/velopayments/models/access_token_response.rb +2 -2
- data/lib/velopayments/models/access_token_validation_request.rb +2 -2
- data/lib/velopayments/models/{payor_address.rb → address_v4.rb} +92 -80
- data/lib/velopayments/models/auth_response.rb +2 -2
- data/lib/velopayments/models/auto_top_up_config_v2.rb +2 -2
- data/lib/velopayments/models/auto_top_up_config_v3.rb +2 -2
- data/lib/velopayments/models/category.rb +4 -3
- data/lib/velopayments/models/challenge_v3.rb +2 -2
- data/lib/velopayments/models/challenge_v4.rb +2 -2
- data/lib/velopayments/models/{list_funding_accounts_response_v2_links.rb → common_link_object.rb} +7 -5
- data/lib/velopayments/models/common_page_object.rb +250 -0
- data/lib/velopayments/models/company_v3.rb +2 -2
- data/lib/velopayments/models/company_v4.rb +2 -2
- data/lib/velopayments/models/create_funding_account_request_v2.rb +34 -27
- data/lib/velopayments/models/create_individual_v3.rb +2 -2
- data/lib/velopayments/models/create_individual_v3_name.rb +2 -2
- data/lib/velopayments/models/create_individual_v4.rb +2 -2
- data/lib/velopayments/models/create_payee_address_v3.rb +2 -2
- data/lib/velopayments/models/create_payee_address_v4.rb +2 -2
- data/lib/velopayments/models/create_payee_v3.rb +2 -2
- data/lib/velopayments/models/create_payee_v4.rb +2 -2
- data/lib/velopayments/models/create_payees_csv_request_v3.rb +2 -2
- data/lib/velopayments/models/create_payees_csv_request_v4.rb +2 -2
- data/lib/velopayments/models/create_payees_csv_response_v3.rb +2 -2
- data/lib/velopayments/models/create_payees_csv_response_v3_rejected_csv_rows.rb +2 -2
- data/lib/velopayments/models/create_payees_csv_response_v4.rb +2 -2
- data/lib/velopayments/models/create_payees_request_v3.rb +2 -2
- data/lib/velopayments/models/create_payees_request_v4.rb +2 -2
- data/lib/velopayments/models/create_payment_channel_request_v4.rb +472 -0
- data/lib/velopayments/models/create_payment_channel_v3.rb +2 -2
- data/lib/velopayments/models/create_payment_channel_v4.rb +2 -2
- data/lib/velopayments/models/create_payor_link_request.rb +2 -2
- data/lib/velopayments/models/create_payout_request_v3.rb +2 -2
- data/lib/velopayments/models/create_transaction_request.rb +324 -0
- data/lib/velopayments/models/create_transaction_response.rb +239 -0
- data/lib/velopayments/models/create_webhook_request.rb +2 -2
- data/lib/velopayments/models/debit_event.rb +2 -2
- data/lib/velopayments/models/debit_event_all_of.rb +2 -2
- data/lib/velopayments/models/debit_status_changed.rb +2 -2
- data/lib/velopayments/models/debit_status_changed_all_of.rb +2 -2
- data/lib/velopayments/models/error.rb +2 -2
- data/lib/velopayments/models/error_data.rb +2 -2
- data/lib/velopayments/models/error_response.rb +2 -2
- data/lib/velopayments/models/failed_payee_v3.rb +2 -2
- data/lib/velopayments/models/failed_payee_v4.rb +2 -2
- data/lib/velopayments/models/failed_submission_v3.rb +2 -2
- data/lib/velopayments/models/failed_submission_v4.rb +2 -2
- data/lib/velopayments/models/funding_account_response_v2.rb +25 -25
- data/lib/velopayments/models/funding_audit.rb +37 -7
- data/lib/velopayments/models/funding_event.rb +50 -28
- data/lib/velopayments/models/funding_event2.rb +242 -0
- data/lib/velopayments/models/funding_payor_status_audit_response.rb +2 -2
- data/lib/velopayments/models/funding_request_v2.rb +2 -2
- data/lib/velopayments/models/funding_request_v3.rb +2 -2
- data/lib/velopayments/models/funding_response.rb +35 -14
- data/lib/velopayments/models/fx_summary.rb +2 -2
- data/lib/velopayments/models/fx_summary_v3.rb +2 -2
- data/lib/velopayments/models/get_fundings_response.rb +2 -2
- data/lib/velopayments/models/get_fundings_response_links.rb +2 -2
- data/lib/velopayments/models/get_payee_list_response_company_v3.rb +2 -2
- data/lib/velopayments/models/get_payee_list_response_company_v4.rb +2 -2
- data/lib/velopayments/models/get_payee_list_response_individual_v3.rb +2 -2
- data/lib/velopayments/models/get_payee_list_response_individual_v4.rb +2 -2
- data/lib/velopayments/models/get_payee_list_response_v3.rb +2 -2
- data/lib/velopayments/models/get_payee_list_response_v4.rb +13 -3
- data/lib/velopayments/models/get_payments_for_payout_response_v3.rb +2 -2
- data/lib/velopayments/models/get_payments_for_payout_response_v3_page.rb +2 -2
- data/lib/velopayments/models/get_payments_for_payout_response_v3_summary.rb +2 -2
- data/lib/velopayments/models/get_payments_for_payout_response_v4.rb +2 -2
- data/lib/velopayments/models/get_payments_for_payout_response_v4_summary.rb +2 -2
- data/lib/velopayments/models/get_payout_statistics.rb +2 -2
- data/lib/velopayments/models/get_payouts_response.rb +2 -2
- data/lib/velopayments/models/get_payouts_response_v3.rb +2 -2
- data/lib/velopayments/models/get_payouts_response_v3_links.rb +2 -2
- data/lib/velopayments/models/get_payouts_response_v3_page.rb +2 -2
- data/lib/velopayments/models/individual_v3.rb +2 -2
- data/lib/velopayments/models/individual_v3_name.rb +2 -2
- data/lib/velopayments/models/individual_v4.rb +2 -2
- data/lib/velopayments/models/inline_response400.rb +2 -2
- data/lib/velopayments/models/inline_response401.rb +2 -2
- data/lib/velopayments/models/inline_response403.rb +2 -2
- data/lib/velopayments/models/inline_response404.rb +2 -2
- data/lib/velopayments/models/inline_response409.rb +2 -2
- data/lib/velopayments/models/inline_response412.rb +2 -2
- data/lib/velopayments/models/instruct_payout_request_v3.rb +19 -7
- data/lib/velopayments/models/invite_payee_request_v3.rb +2 -2
- data/lib/velopayments/models/invite_payee_request_v4.rb +2 -2
- data/lib/velopayments/models/invite_user_request.rb +2 -2
- data/lib/velopayments/models/link_for_response.rb +2 -2
- data/lib/velopayments/models/list_funding_accounts_response_v2.rb +3 -3
- data/lib/velopayments/models/list_funding_accounts_response_v2_page.rb +2 -2
- data/lib/velopayments/models/list_payments_response_v3.rb +2 -2
- data/lib/velopayments/models/list_payments_response_v3_page.rb +2 -2
- data/lib/velopayments/models/list_payments_response_v4.rb +2 -2
- data/lib/velopayments/models/list_source_account_response_v2.rb +2 -2
- data/lib/velopayments/models/list_source_account_response_v2_links.rb +2 -2
- data/lib/velopayments/models/list_source_account_response_v3.rb +2 -2
- data/lib/velopayments/models/list_source_account_response_v3_links.rb +2 -2
- data/lib/velopayments/models/localisation_details.rb +2 -2
- data/lib/velopayments/models/mfa_details.rb +2 -2
- data/lib/velopayments/models/mfa_type.rb +2 -2
- data/lib/velopayments/models/name_v3.rb +2 -2
- data/lib/velopayments/models/name_v4.rb +2 -2
- data/lib/velopayments/models/notification.rb +2 -2
- data/lib/velopayments/models/notification_source.rb +4 -2
- data/lib/velopayments/models/notifications_v2.rb +2 -2
- data/lib/velopayments/models/notifications_v3.rb +2 -2
- data/lib/velopayments/models/onboarding_status_changed.rb +2 -2
- data/lib/velopayments/models/page_for_response.rb +2 -2
- data/lib/velopayments/models/page_resource_funding_payor_status_audit_response_funding_payor_status_audit_response.rb +2 -2
- data/lib/velopayments/models/page_resource_transactions.rb +236 -0
- data/lib/velopayments/models/paged_payee_invitation_status_response_v3.rb +2 -2
- data/lib/velopayments/models/paged_payee_invitation_status_response_v3_page.rb +2 -2
- data/lib/velopayments/models/paged_payee_invitation_status_response_v4.rb +2 -2
- data/lib/velopayments/models/paged_payee_response_v3.rb +2 -2
- data/lib/velopayments/models/paged_payee_response_v3_links.rb +2 -2
- data/lib/velopayments/models/paged_payee_response_v3_page.rb +2 -2
- data/lib/velopayments/models/paged_payee_response_v3_summary.rb +2 -2
- data/lib/velopayments/models/paged_payee_response_v4.rb +2 -2
- data/lib/velopayments/models/paged_payments_response_v3.rb +2 -2
- data/lib/velopayments/models/paged_user_response.rb +2 -2
- data/lib/velopayments/models/paged_user_response_links.rb +2 -2
- data/lib/velopayments/models/paged_user_response_page.rb +2 -2
- data/lib/velopayments/models/password_request.rb +12 -12
- data/lib/velopayments/models/payable_issue_v3.rb +2 -2
- data/lib/velopayments/models/payable_issue_v4.rb +2 -2
- data/lib/velopayments/models/payable_status_changed.rb +2 -2
- data/lib/velopayments/models/payee_address_v3.rb +2 -2
- data/lib/velopayments/models/payee_address_v4.rb +2 -2
- data/lib/velopayments/models/payee_delta_response_v3.rb +2 -2
- data/lib/velopayments/models/payee_delta_response_v3_links.rb +2 -2
- data/lib/velopayments/models/payee_delta_response_v3_page.rb +2 -2
- data/lib/velopayments/models/payee_delta_response_v4.rb +2 -2
- data/lib/velopayments/models/payee_delta_response_v4_links.rb +2 -2
- data/lib/velopayments/models/payee_delta_v3.rb +2 -2
- data/lib/velopayments/models/payee_delta_v4.rb +2 -2
- data/lib/velopayments/models/payee_detail_response_v3.rb +2 -2
- data/lib/velopayments/models/payee_detail_response_v4.rb +26 -3
- data/lib/velopayments/models/payee_details_changed.rb +2 -2
- data/lib/velopayments/models/payee_event.rb +2 -2
- data/lib/velopayments/models/payee_event_all_of.rb +2 -2
- data/lib/velopayments/models/payee_event_all_of_reasons.rb +2 -2
- data/lib/velopayments/models/payee_invitation_status_response_v3.rb +2 -2
- data/lib/velopayments/models/payee_invitation_status_response_v4.rb +2 -2
- data/lib/velopayments/models/payee_payor_ref_v3.rb +2 -2
- data/lib/velopayments/models/payee_payor_ref_v4.rb +2 -2
- data/lib/velopayments/models/payee_type.rb +2 -2
- data/lib/velopayments/models/payee_type_enum.rb +2 -2
- data/lib/velopayments/models/payee_user_self_update_request.rb +2 -2
- data/lib/velopayments/models/payment_channel_country.rb +2 -2
- data/lib/velopayments/models/{transmission_types.rb → payment_channel_order_request_v4.rb} +19 -51
- data/lib/velopayments/models/payment_channel_response_v4.rb +607 -0
- data/lib/velopayments/models/payment_channel_rule.rb +2 -2
- data/lib/velopayments/models/payment_channel_rules_response.rb +2 -2
- data/lib/velopayments/models/payment_channel_summary_v4.rb +396 -0
- data/lib/velopayments/models/payment_channels_response_v4.rb +227 -0
- data/lib/velopayments/models/payment_delta.rb +2 -2
- data/lib/velopayments/models/payment_delta_response.rb +2 -2
- data/lib/velopayments/models/payment_delta_response_v1.rb +2 -2
- data/lib/velopayments/models/payment_delta_v1.rb +2 -2
- data/lib/velopayments/models/payment_event.rb +2 -2
- data/lib/velopayments/models/payment_event_all_of.rb +2 -2
- data/lib/velopayments/models/payment_event_response.rb +2 -2
- data/lib/velopayments/models/payment_event_response_v3.rb +2 -2
- data/lib/velopayments/models/payment_instruction_v3.rb +19 -50
- data/lib/velopayments/models/payment_rejected_or_returned.rb +2 -2
- data/lib/velopayments/models/payment_rejected_or_returned_all_of.rb +2 -2
- data/lib/velopayments/models/payment_response_v3.rb +2 -2
- data/lib/velopayments/models/payment_response_v4.rb +50 -3
- data/lib/velopayments/models/payment_response_v4_payout.rb +2 -2
- data/lib/velopayments/models/payment_status_changed.rb +2 -2
- data/lib/velopayments/models/payment_status_changed_all_of.rb +2 -2
- data/lib/velopayments/models/payment_v3.rb +17 -7
- data/lib/velopayments/models/payor_address_v2.rb +32 -17
- data/lib/velopayments/models/payor_aml_transaction.rb +2 -2
- data/lib/velopayments/models/payor_aml_transaction_v3.rb +2 -2
- data/lib/velopayments/models/payor_branding_response.rb +2 -5
- data/lib/velopayments/models/payor_create_api_key_request.rb +2 -2
- data/lib/velopayments/models/payor_create_api_key_response.rb +2 -2
- data/lib/velopayments/models/payor_create_application_request.rb +2 -2
- data/lib/velopayments/models/payor_email_opt_out_request.rb +2 -2
- data/lib/velopayments/models/payor_funding_detected.rb +399 -0
- data/lib/velopayments/models/payor_funding_detected_all_of.rb +339 -0
- data/lib/velopayments/models/payor_links_response.rb +2 -2
- data/lib/velopayments/models/payor_links_response_links.rb +2 -2
- data/lib/velopayments/models/payor_links_response_payors.rb +2 -2
- data/lib/velopayments/models/{transmission_types2.rb → payor_to_payment_channel_mapping_v4.rb} +18 -51
- data/lib/velopayments/models/payor_v2.rb +26 -20
- data/lib/velopayments/models/payout_company_v3.rb +2 -2
- data/lib/velopayments/models/payout_individual_v3.rb +2 -2
- data/lib/velopayments/models/payout_name_v3.rb +2 -2
- data/lib/velopayments/models/payout_payee_v3.rb +2 -2
- data/lib/velopayments/models/payout_payor.rb +2 -2
- data/lib/velopayments/models/payout_payor_ids.rb +2 -2
- data/lib/velopayments/models/payout_principal.rb +2 -2
- data/lib/velopayments/models/payout_schedule.rb +2 -2
- data/lib/velopayments/models/payout_schedule_v3.rb +2 -2
- data/lib/velopayments/models/payout_summary_audit.rb +2 -2
- data/lib/velopayments/models/payout_summary_audit_v3.rb +2 -2
- data/lib/velopayments/models/payout_summary_response_v3.rb +2 -2
- data/lib/velopayments/models/ping.rb +2 -2
- data/lib/velopayments/models/ping_response.rb +2 -2
- data/lib/velopayments/models/post_instruct_fx_info.rb +2 -2
- data/lib/velopayments/models/query_batch_response_v3.rb +2 -2
- data/lib/velopayments/models/query_batch_response_v4.rb +2 -2
- data/lib/velopayments/models/quote_fx_summary_v3.rb +2 -2
- data/lib/velopayments/models/quote_response_v3.rb +2 -2
- data/lib/velopayments/models/region_v2.rb +2 -2
- data/lib/velopayments/models/register_sms_request.rb +2 -2
- data/lib/velopayments/models/rejected_payment_v3.rb +2 -2
- data/lib/velopayments/models/resend_token_request.rb +2 -2
- data/lib/velopayments/models/reset_password_request.rb +2 -2
- data/lib/velopayments/models/role.rb +2 -2
- data/lib/velopayments/models/role_update_request.rb +2 -2
- data/lib/velopayments/models/schedule_payout_request_v3.rb +2 -2
- data/lib/velopayments/models/self_mfa_type_unregister_request.rb +2 -2
- data/lib/velopayments/models/self_update_password_request.rb +22 -22
- data/lib/velopayments/models/set_notifications_request.rb +2 -2
- data/lib/velopayments/models/set_notifications_request2.rb +2 -2
- data/lib/velopayments/models/source_account_response_v2.rb +2 -2
- data/lib/velopayments/models/source_account_response_v3.rb +18 -6
- data/lib/velopayments/models/source_account_summary.rb +2 -2
- data/lib/velopayments/models/source_account_summary_v3.rb +2 -2
- data/lib/velopayments/models/source_account_v3.rb +2 -2
- data/lib/velopayments/models/source_event.rb +2 -2
- data/lib/velopayments/models/supported_countries_response.rb +2 -2
- data/lib/velopayments/models/supported_countries_response_v2.rb +2 -2
- data/lib/velopayments/models/supported_country.rb +2 -2
- data/lib/velopayments/models/supported_country_v2.rb +2 -2
- data/lib/velopayments/models/supported_currency_response_v2.rb +2 -2
- data/lib/velopayments/models/supported_currency_v2.rb +2 -2
- data/lib/velopayments/models/{payor_v1.rb → transaction_response.rb} +143 -181
- data/lib/velopayments/models/transfer_request_v2.rb +2 -2
- data/lib/velopayments/models/transfer_request_v3.rb +2 -2
- data/lib/velopayments/models/unregister_mfa_request.rb +2 -2
- data/lib/velopayments/models/update_payee_details_request_v3.rb +38 -7
- data/lib/velopayments/models/update_payee_details_request_v4.rb +2 -2
- data/lib/velopayments/models/update_payment_channel_request_v4.rb +472 -0
- data/lib/velopayments/models/update_remote_id_request_v3.rb +2 -2
- data/lib/velopayments/models/update_remote_id_request_v4.rb +2 -2
- data/lib/velopayments/models/update_webhook_request.rb +2 -2
- data/lib/velopayments/models/user_details_update_request.rb +2 -2
- data/lib/velopayments/models/user_info.rb +2 -2
- data/lib/velopayments/models/user_response.rb +4 -4
- data/lib/velopayments/models/user_status.rb +2 -2
- data/lib/velopayments/models/user_type.rb +2 -2
- data/lib/velopayments/models/user_type2.rb +2 -2
- data/lib/velopayments/models/validate_password_response.rb +2 -2
- data/lib/velopayments/models/webhook_response.rb +2 -2
- data/lib/velopayments/models/webhooks_response.rb +4 -4
- data/lib/velopayments/models/withdraw_payment_request.rb +2 -2
- data/lib/velopayments/version.rb +3 -3
- data/lib/velopayments.rb +21 -7
- data/oa3-config.json +1 -1
- data/spec/api/payee_payment_channels_api_spec.rb +132 -0
- data/spec/api/transactions_api_spec.rb +75 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- data/specs/api/payee_payment_channels_api_spec.rb +132 -0
- data/specs/api/transactions_api_spec.rb +75 -0
- data/velopayments.gemspec +2 -2
- metadata +48 -14
- data/docs/ListFundingAccountsResponseV2Links.md +0 -20
- data/docs/PayorV1.md +0 -60
- data/docs/TransmissionTypes.md +0 -22
- data/docs/TransmissionTypes2.md +0 -22
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Velo Payments APIs
|
3
3
|
|
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.
|
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. ## Http Status Codes Following is a list of Http Status codes that could be returned by the platform | Status Code | Description | | -----------------------| -------------------------------------------------------------------------------------| | 200 OK | The request was successfully processed and usually returns a json response | | 201 Created | A resource was created and a Location header is returned linking to the new resource | | 202 Accepted | The request has been accepted for processing | | 204 No Content | The request has been processed and there is no response (usually deletes and updates)| | 400 Bad Request | The request is invalid and should be fixed before retrying | | 401 Unauthorized | Authentication has failed, usually means the token has expired | | 403 Forbidden | The user does not have permissions for the request | | 404 Not Found | The resource was not found | | 409 Conflict | The resource already exists and there is a conflict | | 429 Too Many Requests | The user has submitted too many requests in a given amount of time | | 5xx Server Error | Platform internal error (should rarely happen) |
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.37.150
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module VeloPayments
|
17
|
-
class
|
17
|
+
class AddressV4
|
18
18
|
attr_accessor :line1
|
19
19
|
|
20
20
|
attr_accessor :line2
|
@@ -29,6 +29,7 @@ module VeloPayments
|
|
29
29
|
|
30
30
|
attr_accessor :zip_or_postcode
|
31
31
|
|
32
|
+
# Valid ISO 3166 2 character country code. See the <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\" a>ISO specification</a> for details.
|
32
33
|
attr_accessor :country
|
33
34
|
|
34
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -79,13 +80,13 @@ module VeloPayments
|
|
79
80
|
# @param [Hash] attributes Model attributes in the form of hash
|
80
81
|
def initialize(attributes = {})
|
81
82
|
if (!attributes.is_a?(Hash))
|
82
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `VeloPayments::
|
83
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VeloPayments::AddressV4` initialize method"
|
83
84
|
end
|
84
85
|
|
85
86
|
# check to see if the attribute exists and convert string to symbol for hash key
|
86
87
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
87
88
|
if (!self.class.attribute_map.key?(k.to_sym))
|
88
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `VeloPayments::
|
89
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VeloPayments::AddressV4`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
89
90
|
end
|
90
91
|
h[k.to_sym] = v
|
91
92
|
}
|
@@ -138,78 +139,83 @@ module VeloPayments
|
|
138
139
|
invalid_properties.push('invalid value for "line1", line1 cannot be nil.')
|
139
140
|
end
|
140
141
|
|
141
|
-
if @line1.to_s.length >
|
142
|
-
invalid_properties.push('invalid value for "line1", the character length must be smaller than or equal to
|
142
|
+
if @line1.to_s.length > 100
|
143
|
+
invalid_properties.push('invalid value for "line1", the character length must be smaller than or equal to 100.')
|
143
144
|
end
|
144
145
|
|
145
|
-
if @line1.to_s.length <
|
146
|
-
invalid_properties.push('invalid value for "line1", the character length must be great than or equal to
|
146
|
+
if @line1.to_s.length < 1
|
147
|
+
invalid_properties.push('invalid value for "line1", the character length must be great than or equal to 1.')
|
147
148
|
end
|
148
149
|
|
149
|
-
if !@line2.nil? && @line2.to_s.length >
|
150
|
-
invalid_properties.push('invalid value for "line2", the character length must be smaller than or equal to
|
150
|
+
if !@line2.nil? && @line2.to_s.length > 100
|
151
|
+
invalid_properties.push('invalid value for "line2", the character length must be smaller than or equal to 100.')
|
151
152
|
end
|
152
153
|
|
153
|
-
if !@line2.nil? && @line2.to_s.length <
|
154
|
-
invalid_properties.push('invalid value for "line2", the character length must be great than or equal to
|
154
|
+
if !@line2.nil? && @line2.to_s.length < 1
|
155
|
+
invalid_properties.push('invalid value for "line2", the character length must be great than or equal to 1.')
|
155
156
|
end
|
156
157
|
|
157
|
-
if !@line3.nil? && @line3.to_s.length >
|
158
|
-
invalid_properties.push('invalid value for "line3", the character length must be smaller than or equal to
|
158
|
+
if !@line3.nil? && @line3.to_s.length > 100
|
159
|
+
invalid_properties.push('invalid value for "line3", the character length must be smaller than or equal to 100.')
|
159
160
|
end
|
160
161
|
|
161
|
-
if !@line3.nil? && @line3.to_s.length <
|
162
|
-
invalid_properties.push('invalid value for "line3", the character length must be great than or equal to
|
162
|
+
if !@line3.nil? && @line3.to_s.length < 1
|
163
|
+
invalid_properties.push('invalid value for "line3", the character length must be great than or equal to 1.')
|
163
164
|
end
|
164
165
|
|
165
|
-
if !@line4.nil? && @line4.to_s.length >
|
166
|
-
invalid_properties.push('invalid value for "line4", the character length must be smaller than or equal to
|
166
|
+
if !@line4.nil? && @line4.to_s.length > 100
|
167
|
+
invalid_properties.push('invalid value for "line4", the character length must be smaller than or equal to 100.')
|
167
168
|
end
|
168
169
|
|
169
|
-
if !@line4.nil? && @line4.to_s.length <
|
170
|
-
invalid_properties.push('invalid value for "line4", the character length must be great than or equal to
|
170
|
+
if !@line4.nil? && @line4.to_s.length < 1
|
171
|
+
invalid_properties.push('invalid value for "line4", the character length must be great than or equal to 1.')
|
171
172
|
end
|
172
173
|
|
173
174
|
if @city.nil?
|
174
175
|
invalid_properties.push('invalid value for "city", city cannot be nil.')
|
175
176
|
end
|
176
177
|
|
177
|
-
if @city.to_s.length >
|
178
|
-
invalid_properties.push('invalid value for "city", the character length must be smaller than or equal to
|
178
|
+
if @city.to_s.length > 50
|
179
|
+
invalid_properties.push('invalid value for "city", the character length must be smaller than or equal to 50.')
|
179
180
|
end
|
180
181
|
|
181
|
-
if @city.to_s.length <
|
182
|
-
invalid_properties.push('invalid value for "city", the character length must be great than or equal to
|
182
|
+
if @city.to_s.length < 1
|
183
|
+
invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
|
183
184
|
end
|
184
185
|
|
185
|
-
if !@county_or_province.nil? && @county_or_province.to_s.length >
|
186
|
-
invalid_properties.push('invalid value for "county_or_province", the character length must be smaller than or equal to
|
186
|
+
if !@county_or_province.nil? && @county_or_province.to_s.length > 50
|
187
|
+
invalid_properties.push('invalid value for "county_or_province", the character length must be smaller than or equal to 50.')
|
187
188
|
end
|
188
189
|
|
189
|
-
if !@county_or_province.nil? && @county_or_province.to_s.length <
|
190
|
-
invalid_properties.push('invalid value for "county_or_province", the character length must be great than or equal to
|
190
|
+
if !@county_or_province.nil? && @county_or_province.to_s.length < 1
|
191
|
+
invalid_properties.push('invalid value for "county_or_province", the character length must be great than or equal to 1.')
|
191
192
|
end
|
192
193
|
|
193
|
-
if !@zip_or_postcode.nil? && @zip_or_postcode.to_s.length >
|
194
|
-
invalid_properties.push('invalid value for "zip_or_postcode", the character length must be smaller than or equal to
|
194
|
+
if !@zip_or_postcode.nil? && @zip_or_postcode.to_s.length > 15
|
195
|
+
invalid_properties.push('invalid value for "zip_or_postcode", the character length must be smaller than or equal to 15.')
|
195
196
|
end
|
196
197
|
|
197
|
-
if !@zip_or_postcode.nil? && @zip_or_postcode.to_s.length <
|
198
|
-
invalid_properties.push('invalid value for "zip_or_postcode", the character length must be great than or equal to
|
198
|
+
if !@zip_or_postcode.nil? && @zip_or_postcode.to_s.length < 3
|
199
|
+
invalid_properties.push('invalid value for "zip_or_postcode", the character length must be great than or equal to 3.')
|
199
200
|
end
|
200
201
|
|
201
202
|
if @country.nil?
|
202
203
|
invalid_properties.push('invalid value for "country", country cannot be nil.')
|
203
204
|
end
|
204
205
|
|
205
|
-
if @country.to_s.length >
|
206
|
-
invalid_properties.push('invalid value for "country", the character length must be smaller than or equal to
|
206
|
+
if @country.to_s.length > 2
|
207
|
+
invalid_properties.push('invalid value for "country", the character length must be smaller than or equal to 2.')
|
207
208
|
end
|
208
209
|
|
209
210
|
if @country.to_s.length < 2
|
210
211
|
invalid_properties.push('invalid value for "country", the character length must be great than or equal to 2.')
|
211
212
|
end
|
212
213
|
|
214
|
+
pattern = Regexp.new(/^[A-Z]{2}$/)
|
215
|
+
if @country !~ pattern
|
216
|
+
invalid_properties.push("invalid value for \"country\", must conform to the pattern #{pattern}.")
|
217
|
+
end
|
218
|
+
|
213
219
|
invalid_properties
|
214
220
|
end
|
215
221
|
|
@@ -218,24 +224,25 @@ module VeloPayments
|
|
218
224
|
def valid?
|
219
225
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
220
226
|
return false if @line1.nil?
|
221
|
-
return false if @line1.to_s.length >
|
222
|
-
return false if @line1.to_s.length <
|
223
|
-
return false if !@line2.nil? && @line2.to_s.length >
|
224
|
-
return false if !@line2.nil? && @line2.to_s.length <
|
225
|
-
return false if !@line3.nil? && @line3.to_s.length >
|
226
|
-
return false if !@line3.nil? && @line3.to_s.length <
|
227
|
-
return false if !@line4.nil? && @line4.to_s.length >
|
228
|
-
return false if !@line4.nil? && @line4.to_s.length <
|
227
|
+
return false if @line1.to_s.length > 100
|
228
|
+
return false if @line1.to_s.length < 1
|
229
|
+
return false if !@line2.nil? && @line2.to_s.length > 100
|
230
|
+
return false if !@line2.nil? && @line2.to_s.length < 1
|
231
|
+
return false if !@line3.nil? && @line3.to_s.length > 100
|
232
|
+
return false if !@line3.nil? && @line3.to_s.length < 1
|
233
|
+
return false if !@line4.nil? && @line4.to_s.length > 100
|
234
|
+
return false if !@line4.nil? && @line4.to_s.length < 1
|
229
235
|
return false if @city.nil?
|
230
|
-
return false if @city.to_s.length >
|
231
|
-
return false if @city.to_s.length <
|
232
|
-
return false if !@county_or_province.nil? && @county_or_province.to_s.length >
|
233
|
-
return false if !@county_or_province.nil? && @county_or_province.to_s.length <
|
234
|
-
return false if !@zip_or_postcode.nil? && @zip_or_postcode.to_s.length >
|
235
|
-
return false if !@zip_or_postcode.nil? && @zip_or_postcode.to_s.length <
|
236
|
+
return false if @city.to_s.length > 50
|
237
|
+
return false if @city.to_s.length < 1
|
238
|
+
return false if !@county_or_province.nil? && @county_or_province.to_s.length > 50
|
239
|
+
return false if !@county_or_province.nil? && @county_or_province.to_s.length < 1
|
240
|
+
return false if !@zip_or_postcode.nil? && @zip_or_postcode.to_s.length > 15
|
241
|
+
return false if !@zip_or_postcode.nil? && @zip_or_postcode.to_s.length < 3
|
236
242
|
return false if @country.nil?
|
237
|
-
return false if @country.to_s.length >
|
243
|
+
return false if @country.to_s.length > 2
|
238
244
|
return false if @country.to_s.length < 2
|
245
|
+
return false if @country !~ Regexp.new(/^[A-Z]{2}$/)
|
239
246
|
true
|
240
247
|
end
|
241
248
|
|
@@ -246,12 +253,12 @@ module VeloPayments
|
|
246
253
|
fail ArgumentError, 'line1 cannot be nil'
|
247
254
|
end
|
248
255
|
|
249
|
-
if line1.to_s.length >
|
250
|
-
fail ArgumentError, 'invalid value for "line1", the character length must be smaller than or equal to
|
256
|
+
if line1.to_s.length > 100
|
257
|
+
fail ArgumentError, 'invalid value for "line1", the character length must be smaller than or equal to 100.'
|
251
258
|
end
|
252
259
|
|
253
|
-
if line1.to_s.length <
|
254
|
-
fail ArgumentError, 'invalid value for "line1", the character length must be great than or equal to
|
260
|
+
if line1.to_s.length < 1
|
261
|
+
fail ArgumentError, 'invalid value for "line1", the character length must be great than or equal to 1.'
|
255
262
|
end
|
256
263
|
|
257
264
|
@line1 = line1
|
@@ -260,12 +267,12 @@ module VeloPayments
|
|
260
267
|
# Custom attribute writer method with validation
|
261
268
|
# @param [Object] line2 Value to be assigned
|
262
269
|
def line2=(line2)
|
263
|
-
if !line2.nil? && line2.to_s.length >
|
264
|
-
fail ArgumentError, 'invalid value for "line2", the character length must be smaller than or equal to
|
270
|
+
if !line2.nil? && line2.to_s.length > 100
|
271
|
+
fail ArgumentError, 'invalid value for "line2", the character length must be smaller than or equal to 100.'
|
265
272
|
end
|
266
273
|
|
267
|
-
if !line2.nil? && line2.to_s.length <
|
268
|
-
fail ArgumentError, 'invalid value for "line2", the character length must be great than or equal to
|
274
|
+
if !line2.nil? && line2.to_s.length < 1
|
275
|
+
fail ArgumentError, 'invalid value for "line2", the character length must be great than or equal to 1.'
|
269
276
|
end
|
270
277
|
|
271
278
|
@line2 = line2
|
@@ -274,12 +281,12 @@ module VeloPayments
|
|
274
281
|
# Custom attribute writer method with validation
|
275
282
|
# @param [Object] line3 Value to be assigned
|
276
283
|
def line3=(line3)
|
277
|
-
if !line3.nil? && line3.to_s.length >
|
278
|
-
fail ArgumentError, 'invalid value for "line3", the character length must be smaller than or equal to
|
284
|
+
if !line3.nil? && line3.to_s.length > 100
|
285
|
+
fail ArgumentError, 'invalid value for "line3", the character length must be smaller than or equal to 100.'
|
279
286
|
end
|
280
287
|
|
281
|
-
if !line3.nil? && line3.to_s.length <
|
282
|
-
fail ArgumentError, 'invalid value for "line3", the character length must be great than or equal to
|
288
|
+
if !line3.nil? && line3.to_s.length < 1
|
289
|
+
fail ArgumentError, 'invalid value for "line3", the character length must be great than or equal to 1.'
|
283
290
|
end
|
284
291
|
|
285
292
|
@line3 = line3
|
@@ -288,12 +295,12 @@ module VeloPayments
|
|
288
295
|
# Custom attribute writer method with validation
|
289
296
|
# @param [Object] line4 Value to be assigned
|
290
297
|
def line4=(line4)
|
291
|
-
if !line4.nil? && line4.to_s.length >
|
292
|
-
fail ArgumentError, 'invalid value for "line4", the character length must be smaller than or equal to
|
298
|
+
if !line4.nil? && line4.to_s.length > 100
|
299
|
+
fail ArgumentError, 'invalid value for "line4", the character length must be smaller than or equal to 100.'
|
293
300
|
end
|
294
301
|
|
295
|
-
if !line4.nil? && line4.to_s.length <
|
296
|
-
fail ArgumentError, 'invalid value for "line4", the character length must be great than or equal to
|
302
|
+
if !line4.nil? && line4.to_s.length < 1
|
303
|
+
fail ArgumentError, 'invalid value for "line4", the character length must be great than or equal to 1.'
|
297
304
|
end
|
298
305
|
|
299
306
|
@line4 = line4
|
@@ -306,12 +313,12 @@ module VeloPayments
|
|
306
313
|
fail ArgumentError, 'city cannot be nil'
|
307
314
|
end
|
308
315
|
|
309
|
-
if city.to_s.length >
|
310
|
-
fail ArgumentError, 'invalid value for "city", the character length must be smaller than or equal to
|
316
|
+
if city.to_s.length > 50
|
317
|
+
fail ArgumentError, 'invalid value for "city", the character length must be smaller than or equal to 50.'
|
311
318
|
end
|
312
319
|
|
313
|
-
if city.to_s.length <
|
314
|
-
fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to
|
320
|
+
if city.to_s.length < 1
|
321
|
+
fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
|
315
322
|
end
|
316
323
|
|
317
324
|
@city = city
|
@@ -320,12 +327,12 @@ module VeloPayments
|
|
320
327
|
# Custom attribute writer method with validation
|
321
328
|
# @param [Object] county_or_province Value to be assigned
|
322
329
|
def county_or_province=(county_or_province)
|
323
|
-
if !county_or_province.nil? && county_or_province.to_s.length >
|
324
|
-
fail ArgumentError, 'invalid value for "county_or_province", the character length must be smaller than or equal to
|
330
|
+
if !county_or_province.nil? && county_or_province.to_s.length > 50
|
331
|
+
fail ArgumentError, 'invalid value for "county_or_province", the character length must be smaller than or equal to 50.'
|
325
332
|
end
|
326
333
|
|
327
|
-
if !county_or_province.nil? && county_or_province.to_s.length <
|
328
|
-
fail ArgumentError, 'invalid value for "county_or_province", the character length must be great than or equal to
|
334
|
+
if !county_or_province.nil? && county_or_province.to_s.length < 1
|
335
|
+
fail ArgumentError, 'invalid value for "county_or_province", the character length must be great than or equal to 1.'
|
329
336
|
end
|
330
337
|
|
331
338
|
@county_or_province = county_or_province
|
@@ -334,12 +341,12 @@ module VeloPayments
|
|
334
341
|
# Custom attribute writer method with validation
|
335
342
|
# @param [Object] zip_or_postcode Value to be assigned
|
336
343
|
def zip_or_postcode=(zip_or_postcode)
|
337
|
-
if !zip_or_postcode.nil? && zip_or_postcode.to_s.length >
|
338
|
-
fail ArgumentError, 'invalid value for "zip_or_postcode", the character length must be smaller than or equal to
|
344
|
+
if !zip_or_postcode.nil? && zip_or_postcode.to_s.length > 15
|
345
|
+
fail ArgumentError, 'invalid value for "zip_or_postcode", the character length must be smaller than or equal to 15.'
|
339
346
|
end
|
340
347
|
|
341
|
-
if !zip_or_postcode.nil? && zip_or_postcode.to_s.length <
|
342
|
-
fail ArgumentError, 'invalid value for "zip_or_postcode", the character length must be great than or equal to
|
348
|
+
if !zip_or_postcode.nil? && zip_or_postcode.to_s.length < 3
|
349
|
+
fail ArgumentError, 'invalid value for "zip_or_postcode", the character length must be great than or equal to 3.'
|
343
350
|
end
|
344
351
|
|
345
352
|
@zip_or_postcode = zip_or_postcode
|
@@ -352,14 +359,19 @@ module VeloPayments
|
|
352
359
|
fail ArgumentError, 'country cannot be nil'
|
353
360
|
end
|
354
361
|
|
355
|
-
if country.to_s.length >
|
356
|
-
fail ArgumentError, 'invalid value for "country", the character length must be smaller than or equal to
|
362
|
+
if country.to_s.length > 2
|
363
|
+
fail ArgumentError, 'invalid value for "country", the character length must be smaller than or equal to 2.'
|
357
364
|
end
|
358
365
|
|
359
366
|
if country.to_s.length < 2
|
360
367
|
fail ArgumentError, 'invalid value for "country", the character length must be great than or equal to 2.'
|
361
368
|
end
|
362
369
|
|
370
|
+
pattern = Regexp.new(/^[A-Z]{2}$/)
|
371
|
+
if country !~ pattern
|
372
|
+
fail ArgumentError, "invalid value for \"country\", must conform to the pattern #{pattern}."
|
373
|
+
end
|
374
|
+
|
363
375
|
@country = country
|
364
376
|
end
|
365
377
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Velo Payments APIs
|
3
3
|
|
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.
|
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. ## Http Status Codes Following is a list of Http Status codes that could be returned by the platform | Status Code | Description | | -----------------------| -------------------------------------------------------------------------------------| | 200 OK | The request was successfully processed and usually returns a json response | | 201 Created | A resource was created and a Location header is returned linking to the new resource | | 202 Accepted | The request has been accepted for processing | | 204 No Content | The request has been processed and there is no response (usually deletes and updates)| | 400 Bad Request | The request is invalid and should be fixed before retrying | | 401 Unauthorized | Authentication has failed, usually means the token has expired | | 403 Forbidden | The user does not have permissions for the request | | 404 Not Found | The resource was not found | | 409 Conflict | The resource already exists and there is a conflict | | 429 Too Many Requests | The user has submitted too many requests in a given amount of time | | 5xx Server Error | Platform internal error (should rarely happen) |
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.37.150
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Velo Payments APIs
|
3
3
|
|
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.
|
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. ## Http Status Codes Following is a list of Http Status codes that could be returned by the platform | Status Code | Description | | -----------------------| -------------------------------------------------------------------------------------| | 200 OK | The request was successfully processed and usually returns a json response | | 201 Created | A resource was created and a Location header is returned linking to the new resource | | 202 Accepted | The request has been accepted for processing | | 204 No Content | The request has been processed and there is no response (usually deletes and updates)| | 400 Bad Request | The request is invalid and should be fixed before retrying | | 401 Unauthorized | Authentication has failed, usually means the token has expired | | 403 Forbidden | The user does not have permissions for the request | | 404 Not Found | The resource was not found | | 409 Conflict | The resource already exists and there is a conflict | | 429 Too Many Requests | The user has submitted too many requests in a given amount of time | | 5xx Server Error | Platform internal error (should rarely happen) |
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.37.150
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Velo Payments APIs
|
3
3
|
|
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.
|
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. ## Http Status Codes Following is a list of Http Status codes that could be returned by the platform | Status Code | Description | | -----------------------| -------------------------------------------------------------------------------------| | 200 OK | The request was successfully processed and usually returns a json response | | 201 Created | A resource was created and a Location header is returned linking to the new resource | | 202 Accepted | The request has been accepted for processing | | 204 No Content | The request has been processed and there is no response (usually deletes and updates)| | 400 Bad Request | The request is invalid and should be fixed before retrying | | 401 Unauthorized | Authentication has failed, usually means the token has expired | | 403 Forbidden | The user does not have permissions for the request | | 404 Not Found | The resource was not found | | 409 Conflict | The resource already exists and there is a conflict | | 429 Too Many Requests | The user has submitted too many requests in a given amount of time | | 5xx Server Error | Platform internal error (should rarely happen) |
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.37.150
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Velo Payments APIs
|
3
3
|
|
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.
|
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. ## Http Status Codes Following is a list of Http Status codes that could be returned by the platform | Status Code | Description | | -----------------------| -------------------------------------------------------------------------------------| | 200 OK | The request was successfully processed and usually returns a json response | | 201 Created | A resource was created and a Location header is returned linking to the new resource | | 202 Accepted | The request has been accepted for processing | | 204 No Content | The request has been processed and there is no response (usually deletes and updates)| | 400 Bad Request | The request is invalid and should be fixed before retrying | | 401 Unauthorized | Authentication has failed, usually means the token has expired | | 403 Forbidden | The user does not have permissions for the request | | 404 Not Found | The resource was not found | | 409 Conflict | The resource already exists and there is a conflict | | 429 Too Many Requests | The user has submitted too many requests in a given amount of time | | 5xx Server Error | Platform internal error (should rarely happen) |
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.37.150
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -18,9 +18,10 @@ module VeloPayments
|
|
18
18
|
PAYMENT = "payment".freeze
|
19
19
|
PAYEE = "payee".freeze
|
20
20
|
DEBIT = "debit".freeze
|
21
|
+
FUNDING = "funding".freeze
|
21
22
|
|
22
23
|
def self.all_vars
|
23
|
-
@all_vars ||= [PAYMENT, PAYEE, DEBIT].freeze
|
24
|
+
@all_vars ||= [PAYMENT, PAYEE, DEBIT, FUNDING].freeze
|
24
25
|
end
|
25
26
|
|
26
27
|
# Builds the enum from string
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Velo Payments APIs
|
3
3
|
|
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.
|
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. ## Http Status Codes Following is a list of Http Status codes that could be returned by the platform | Status Code | Description | | -----------------------| -------------------------------------------------------------------------------------| | 200 OK | The request was successfully processed and usually returns a json response | | 201 Created | A resource was created and a Location header is returned linking to the new resource | | 202 Accepted | The request has been accepted for processing | | 204 No Content | The request has been processed and there is no response (usually deletes and updates)| | 400 Bad Request | The request is invalid and should be fixed before retrying | | 401 Unauthorized | Authentication has failed, usually means the token has expired | | 403 Forbidden | The user does not have permissions for the request | | 404 Not Found | The resource was not found | | 409 Conflict | The resource already exists and there is a conflict | | 429 Too Many Requests | The user has submitted too many requests in a given amount of time | | 5xx Server Error | Platform internal error (should rarely happen) |
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.37.150
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Velo Payments APIs
|
3
3
|
|
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.
|
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. ## Http Status Codes Following is a list of Http Status codes that could be returned by the platform | Status Code | Description | | -----------------------| -------------------------------------------------------------------------------------| | 200 OK | The request was successfully processed and usually returns a json response | | 201 Created | A resource was created and a Location header is returned linking to the new resource | | 202 Accepted | The request has been accepted for processing | | 204 No Content | The request has been processed and there is no response (usually deletes and updates)| | 400 Bad Request | The request is invalid and should be fixed before retrying | | 401 Unauthorized | Authentication has failed, usually means the token has expired | | 403 Forbidden | The user does not have permissions for the request | | 404 Not Found | The resource was not found | | 409 Conflict | The resource already exists and there is a conflict | | 429 Too Many Requests | The user has submitted too many requests in a given amount of time | | 5xx Server Error | Platform internal error (should rarely happen) |
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.37.150
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|