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
|
@@ -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
|
@@ -14,93 +14,50 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module VeloPayments
|
17
|
-
class
|
18
|
-
|
19
|
-
|
20
|
-
# The name of the payor.
|
21
|
-
attr_accessor :payor_name
|
22
|
-
|
23
|
-
attr_accessor :address
|
24
|
-
|
25
|
-
# Name of primary contact for the payor.
|
26
|
-
attr_accessor :primary_contact_name
|
27
|
-
|
28
|
-
# Primary contact phone number for the payor.
|
29
|
-
attr_accessor :primary_contact_phone
|
30
|
-
|
31
|
-
# Primary contact email for the payor.
|
32
|
-
attr_accessor :primary_contact_email
|
33
|
-
|
34
|
-
# The funding account routing number to be used for the payor.
|
35
|
-
attr_accessor :funding_account_routing_number
|
36
|
-
|
37
|
-
# The funding account number to be used for the payor.
|
38
|
-
attr_accessor :funding_account_account_number
|
39
|
-
|
40
|
-
# The funding account name to be used for the payor.
|
41
|
-
attr_accessor :funding_account_account_name
|
42
|
-
|
43
|
-
# The kyc state of the payor. One of the following values: FAILED_KYC, PASSED_KYC, REQUIRES_KYC
|
44
|
-
attr_accessor :kyc_state
|
45
|
-
|
46
|
-
# Whether or not the payor has been manually locked by the backoffice.
|
47
|
-
attr_accessor :manual_lockout
|
48
|
-
|
49
|
-
# Whether grace period processing is enabled.
|
50
|
-
attr_accessor :payee_grace_period_processing_enabled
|
51
|
-
|
52
|
-
# The grace period for paying payees in days.
|
53
|
-
attr_accessor :payee_grace_period_days
|
17
|
+
class TransactionResponse
|
18
|
+
# The Id of the transaction
|
19
|
+
attr_accessor :transaction_id
|
54
20
|
|
55
|
-
#
|
56
|
-
attr_accessor :
|
21
|
+
# The short code for the transaction that can be used when sending funds into the platform
|
22
|
+
attr_accessor :transaction_short_code
|
57
23
|
|
58
|
-
#
|
59
|
-
attr_accessor :
|
24
|
+
# Indicates the Payor of the Transaction and which matches the payorId on the provided source account
|
25
|
+
attr_accessor :payor_id
|
60
26
|
|
61
|
-
# The
|
62
|
-
attr_accessor :
|
27
|
+
# The name of the source account associated with the Transaction
|
28
|
+
attr_accessor :source_account_name
|
63
29
|
|
64
|
-
#
|
65
|
-
attr_accessor :
|
30
|
+
# The Id of the source account associated with the Transaction
|
31
|
+
attr_accessor :source_account_id
|
66
32
|
|
67
|
-
#
|
68
|
-
attr_accessor :
|
33
|
+
# The payors own reference for the transaction
|
34
|
+
attr_accessor :transaction_reference
|
69
35
|
|
70
|
-
#
|
71
|
-
attr_accessor :
|
36
|
+
# Optional metadata attached to the transaction at creation time.
|
37
|
+
attr_accessor :transaction_metadata
|
72
38
|
|
73
|
-
|
39
|
+
# The total amount of transaction in minor units
|
40
|
+
attr_accessor :balance
|
74
41
|
|
75
|
-
|
42
|
+
# Valid ISO 4217 3 letter currency code. See the <a href=\"https://www.iso.org/iso-4217-currency-codes.html\" target=\"_blank\" a>ISO specification</a> for details.
|
43
|
+
attr_accessor :currency
|
76
44
|
|
77
|
-
|
45
|
+
# A timestamp when the transaction has been created.
|
46
|
+
attr_accessor :created_at
|
78
47
|
|
79
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
80
49
|
def self.attribute_map
|
81
50
|
{
|
51
|
+
:'transaction_id' => :'transactionId',
|
52
|
+
:'transaction_short_code' => :'transactionShortCode',
|
82
53
|
:'payor_id' => :'payorId',
|
83
|
-
:'
|
84
|
-
:'
|
85
|
-
:'
|
86
|
-
:'
|
87
|
-
:'
|
88
|
-
:'
|
89
|
-
:'
|
90
|
-
:'funding_account_account_name' => :'fundingAccountAccountName',
|
91
|
-
:'kyc_state' => :'kycState',
|
92
|
-
:'manual_lockout' => :'manualLockout',
|
93
|
-
:'payee_grace_period_processing_enabled' => :'payeeGracePeriodProcessingEnabled',
|
94
|
-
:'payee_grace_period_days' => :'payeeGracePeriodDays',
|
95
|
-
:'collective_alias' => :'collectiveAlias',
|
96
|
-
:'support_contact' => :'supportContact',
|
97
|
-
:'dba_name' => :'dbaName',
|
98
|
-
:'allows_language_choice' => :'allowsLanguageChoice',
|
99
|
-
:'reminder_emails_opt_out' => :'reminderEmailsOptOut',
|
100
|
-
:'language' => :'language',
|
101
|
-
:'includes_reports' => :'includesReports',
|
102
|
-
:'max_master_payor_admins' => :'maxMasterPayorAdmins',
|
103
|
-
:'transmission_types' => :'transmissionTypes'
|
54
|
+
:'source_account_name' => :'sourceAccountName',
|
55
|
+
:'source_account_id' => :'sourceAccountId',
|
56
|
+
:'transaction_reference' => :'transactionReference',
|
57
|
+
:'transaction_metadata' => :'transactionMetadata',
|
58
|
+
:'balance' => :'balance',
|
59
|
+
:'currency' => :'currency',
|
60
|
+
:'created_at' => :'createdAt'
|
104
61
|
}
|
105
62
|
end
|
106
63
|
|
@@ -112,34 +69,23 @@ module VeloPayments
|
|
112
69
|
# Attribute type mapping.
|
113
70
|
def self.openapi_types
|
114
71
|
{
|
72
|
+
:'transaction_id' => :'String',
|
73
|
+
:'transaction_short_code' => :'String',
|
115
74
|
:'payor_id' => :'String',
|
116
|
-
:'
|
117
|
-
:'
|
118
|
-
:'
|
119
|
-
:'
|
120
|
-
:'
|
121
|
-
:'
|
122
|
-
:'
|
123
|
-
:'funding_account_account_name' => :'String',
|
124
|
-
:'kyc_state' => :'String',
|
125
|
-
:'manual_lockout' => :'Boolean',
|
126
|
-
:'payee_grace_period_processing_enabled' => :'Boolean',
|
127
|
-
:'payee_grace_period_days' => :'Integer',
|
128
|
-
:'collective_alias' => :'String',
|
129
|
-
:'support_contact' => :'String',
|
130
|
-
:'dba_name' => :'String',
|
131
|
-
:'allows_language_choice' => :'Boolean',
|
132
|
-
:'reminder_emails_opt_out' => :'Boolean',
|
133
|
-
:'language' => :'String',
|
134
|
-
:'includes_reports' => :'Boolean',
|
135
|
-
:'max_master_payor_admins' => :'Integer',
|
136
|
-
:'transmission_types' => :'TransmissionTypes'
|
75
|
+
:'source_account_name' => :'String',
|
76
|
+
:'source_account_id' => :'String',
|
77
|
+
:'transaction_reference' => :'String',
|
78
|
+
:'transaction_metadata' => :'Hash<String, String>',
|
79
|
+
:'balance' => :'Integer',
|
80
|
+
:'currency' => :'String',
|
81
|
+
:'created_at' => :'Time'
|
137
82
|
}
|
138
83
|
end
|
139
84
|
|
140
85
|
# List of attributes with nullable: true
|
141
86
|
def self.openapi_nullable
|
142
87
|
Set.new([
|
88
|
+
:'transaction_metadata',
|
143
89
|
])
|
144
90
|
end
|
145
91
|
|
@@ -147,126 +93,154 @@ module VeloPayments
|
|
147
93
|
# @param [Hash] attributes Model attributes in the form of hash
|
148
94
|
def initialize(attributes = {})
|
149
95
|
if (!attributes.is_a?(Hash))
|
150
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `VeloPayments::
|
96
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VeloPayments::TransactionResponse` initialize method"
|
151
97
|
end
|
152
98
|
|
153
99
|
# check to see if the attribute exists and convert string to symbol for hash key
|
154
100
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
155
101
|
if (!self.class.attribute_map.key?(k.to_sym))
|
156
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `VeloPayments::
|
102
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VeloPayments::TransactionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
157
103
|
end
|
158
104
|
h[k.to_sym] = v
|
159
105
|
}
|
160
106
|
|
161
|
-
if attributes.key?(:'
|
162
|
-
self.
|
107
|
+
if attributes.key?(:'transaction_id')
|
108
|
+
self.transaction_id = attributes[:'transaction_id']
|
109
|
+
else
|
110
|
+
self.transaction_id = nil
|
163
111
|
end
|
164
112
|
|
165
|
-
if attributes.key?(:'
|
166
|
-
self.
|
113
|
+
if attributes.key?(:'transaction_short_code')
|
114
|
+
self.transaction_short_code = attributes[:'transaction_short_code']
|
167
115
|
else
|
168
|
-
self.
|
116
|
+
self.transaction_short_code = nil
|
169
117
|
end
|
170
118
|
|
171
|
-
if attributes.key?(:'
|
172
|
-
self.
|
119
|
+
if attributes.key?(:'payor_id')
|
120
|
+
self.payor_id = attributes[:'payor_id']
|
173
121
|
end
|
174
122
|
|
175
|
-
if attributes.key?(:'
|
176
|
-
self.
|
123
|
+
if attributes.key?(:'source_account_name')
|
124
|
+
self.source_account_name = attributes[:'source_account_name']
|
177
125
|
end
|
178
126
|
|
179
|
-
if attributes.key?(:'
|
180
|
-
self.
|
127
|
+
if attributes.key?(:'source_account_id')
|
128
|
+
self.source_account_id = attributes[:'source_account_id']
|
181
129
|
end
|
182
130
|
|
183
|
-
if attributes.key?(:'
|
184
|
-
self.
|
131
|
+
if attributes.key?(:'transaction_reference')
|
132
|
+
self.transaction_reference = attributes[:'transaction_reference']
|
185
133
|
end
|
186
134
|
|
187
|
-
if attributes.key?(:'
|
188
|
-
|
135
|
+
if attributes.key?(:'transaction_metadata')
|
136
|
+
if (value = attributes[:'transaction_metadata']).is_a?(Hash)
|
137
|
+
self.transaction_metadata = value
|
138
|
+
end
|
189
139
|
end
|
190
140
|
|
191
|
-
if attributes.key?(:'
|
192
|
-
self.
|
141
|
+
if attributes.key?(:'balance')
|
142
|
+
self.balance = attributes[:'balance']
|
193
143
|
end
|
194
144
|
|
195
|
-
if attributes.key?(:'
|
196
|
-
self.
|
145
|
+
if attributes.key?(:'currency')
|
146
|
+
self.currency = attributes[:'currency']
|
197
147
|
end
|
198
148
|
|
199
|
-
if attributes.key?(:'
|
200
|
-
self.
|
149
|
+
if attributes.key?(:'created_at')
|
150
|
+
self.created_at = attributes[:'created_at']
|
201
151
|
end
|
152
|
+
end
|
202
153
|
|
203
|
-
|
204
|
-
|
154
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
155
|
+
# @return Array for valid properties with the reasons
|
156
|
+
def list_invalid_properties
|
157
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
158
|
+
invalid_properties = Array.new
|
159
|
+
if @transaction_id.nil?
|
160
|
+
invalid_properties.push('invalid value for "transaction_id", transaction_id cannot be nil.')
|
205
161
|
end
|
206
162
|
|
207
|
-
if
|
208
|
-
|
163
|
+
if @transaction_short_code.nil?
|
164
|
+
invalid_properties.push('invalid value for "transaction_short_code", transaction_short_code cannot be nil.')
|
209
165
|
end
|
210
166
|
|
211
|
-
if
|
212
|
-
|
167
|
+
if !@balance.nil? && @balance > 9999999999
|
168
|
+
invalid_properties.push('invalid value for "balance", must be smaller than or equal to 9999999999.')
|
213
169
|
end
|
214
170
|
|
215
|
-
if
|
216
|
-
|
171
|
+
if !@balance.nil? && @balance < 0
|
172
|
+
invalid_properties.push('invalid value for "balance", must be greater than or equal to 0.')
|
217
173
|
end
|
218
174
|
|
219
|
-
if
|
220
|
-
|
175
|
+
if !@currency.nil? && @currency.to_s.length > 3
|
176
|
+
invalid_properties.push('invalid value for "currency", the character length must be smaller than or equal to 3.')
|
221
177
|
end
|
222
178
|
|
223
|
-
if
|
224
|
-
|
179
|
+
if !@currency.nil? && @currency.to_s.length < 3
|
180
|
+
invalid_properties.push('invalid value for "currency", the character length must be great than or equal to 3.')
|
225
181
|
end
|
226
182
|
|
227
|
-
|
228
|
-
|
183
|
+
pattern = Regexp.new(/^[A-Z]{3}$/)
|
184
|
+
if !@currency.nil? && @currency !~ pattern
|
185
|
+
invalid_properties.push("invalid value for \"currency\", must conform to the pattern #{pattern}.")
|
229
186
|
end
|
230
187
|
|
231
|
-
|
232
|
-
|
188
|
+
invalid_properties
|
189
|
+
end
|
190
|
+
|
191
|
+
# Check to see if the all the properties in the model are valid
|
192
|
+
# @return true if the model is valid
|
193
|
+
def valid?
|
194
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
195
|
+
return false if @transaction_id.nil?
|
196
|
+
return false if @transaction_short_code.nil?
|
197
|
+
return false if !@balance.nil? && @balance > 9999999999
|
198
|
+
return false if !@balance.nil? && @balance < 0
|
199
|
+
return false if !@currency.nil? && @currency.to_s.length > 3
|
200
|
+
return false if !@currency.nil? && @currency.to_s.length < 3
|
201
|
+
return false if !@currency.nil? && @currency !~ Regexp.new(/^[A-Z]{3}$/)
|
202
|
+
true
|
203
|
+
end
|
204
|
+
|
205
|
+
# Custom attribute writer method with validation
|
206
|
+
# @param [Object] balance Value to be assigned
|
207
|
+
def balance=(balance)
|
208
|
+
if balance.nil?
|
209
|
+
fail ArgumentError, 'balance cannot be nil'
|
233
210
|
end
|
234
211
|
|
235
|
-
if
|
236
|
-
|
212
|
+
if balance > 9999999999
|
213
|
+
fail ArgumentError, 'invalid value for "balance", must be smaller than or equal to 9999999999.'
|
237
214
|
end
|
238
215
|
|
239
|
-
if
|
240
|
-
|
216
|
+
if balance < 0
|
217
|
+
fail ArgumentError, 'invalid value for "balance", must be greater than or equal to 0.'
|
241
218
|
end
|
242
219
|
|
243
|
-
|
244
|
-
|
220
|
+
@balance = balance
|
221
|
+
end
|
222
|
+
|
223
|
+
# Custom attribute writer method with validation
|
224
|
+
# @param [Object] currency Value to be assigned
|
225
|
+
def currency=(currency)
|
226
|
+
if currency.nil?
|
227
|
+
fail ArgumentError, 'currency cannot be nil'
|
245
228
|
end
|
246
229
|
|
247
|
-
if
|
248
|
-
|
230
|
+
if currency.to_s.length > 3
|
231
|
+
fail ArgumentError, 'invalid value for "currency", the character length must be smaller than or equal to 3.'
|
249
232
|
end
|
250
|
-
end
|
251
233
|
|
252
|
-
|
253
|
-
|
254
|
-
def list_invalid_properties
|
255
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
256
|
-
invalid_properties = Array.new
|
257
|
-
if @payor_name.nil?
|
258
|
-
invalid_properties.push('invalid value for "payor_name", payor_name cannot be nil.')
|
234
|
+
if currency.to_s.length < 3
|
235
|
+
fail ArgumentError, 'invalid value for "currency", the character length must be great than or equal to 3.'
|
259
236
|
end
|
260
237
|
|
261
|
-
|
262
|
-
|
238
|
+
pattern = Regexp.new(/^[A-Z]{3}$/)
|
239
|
+
if currency !~ pattern
|
240
|
+
fail ArgumentError, "invalid value for \"currency\", must conform to the pattern #{pattern}."
|
241
|
+
end
|
263
242
|
|
264
|
-
|
265
|
-
# @return true if the model is valid
|
266
|
-
def valid?
|
267
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
268
|
-
return false if @payor_name.nil?
|
269
|
-
true
|
243
|
+
@currency = currency
|
270
244
|
end
|
271
245
|
|
272
246
|
# Checks equality by comparing each attribute.
|
@@ -274,28 +248,16 @@ module VeloPayments
|
|
274
248
|
def ==(o)
|
275
249
|
return true if self.equal?(o)
|
276
250
|
self.class == o.class &&
|
251
|
+
transaction_id == o.transaction_id &&
|
252
|
+
transaction_short_code == o.transaction_short_code &&
|
277
253
|
payor_id == o.payor_id &&
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
funding_account_account_name == o.funding_account_account_name &&
|
286
|
-
kyc_state == o.kyc_state &&
|
287
|
-
manual_lockout == o.manual_lockout &&
|
288
|
-
payee_grace_period_processing_enabled == o.payee_grace_period_processing_enabled &&
|
289
|
-
payee_grace_period_days == o.payee_grace_period_days &&
|
290
|
-
collective_alias == o.collective_alias &&
|
291
|
-
support_contact == o.support_contact &&
|
292
|
-
dba_name == o.dba_name &&
|
293
|
-
allows_language_choice == o.allows_language_choice &&
|
294
|
-
reminder_emails_opt_out == o.reminder_emails_opt_out &&
|
295
|
-
language == o.language &&
|
296
|
-
includes_reports == o.includes_reports &&
|
297
|
-
max_master_payor_admins == o.max_master_payor_admins &&
|
298
|
-
transmission_types == o.transmission_types
|
254
|
+
source_account_name == o.source_account_name &&
|
255
|
+
source_account_id == o.source_account_id &&
|
256
|
+
transaction_reference == o.transaction_reference &&
|
257
|
+
transaction_metadata == o.transaction_metadata &&
|
258
|
+
balance == o.balance &&
|
259
|
+
currency == o.currency &&
|
260
|
+
created_at == o.created_at
|
299
261
|
end
|
300
262
|
|
301
263
|
# @see the `==` method
|
@@ -307,7 +269,7 @@ module VeloPayments
|
|
307
269
|
# Calculates hash code according to all attributes.
|
308
270
|
# @return [Integer] Hash code
|
309
271
|
def hash
|
310
|
-
[
|
272
|
+
[transaction_id, transaction_short_code, payor_id, source_account_name, source_account_id, transaction_reference, transaction_metadata, balance, currency, created_at].hash
|
311
273
|
end
|
312
274
|
|
313
275
|
# Builds the object from hash
|