velopayments 2.11.73 → 2.14.90.pre.1
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 +1 -1
- data/Makefile +7 -1
- data/README.md +82 -26
- data/docs/Address.md +5 -5
- data/docs/AuthApi.md +65 -0
- data/docs/AuthResponse.md +25 -0
- data/docs/AutoTopUpConfig.md +21 -0
- data/docs/Company.md +3 -1
- data/docs/CreateIndividual.md +21 -0
- data/docs/CreatePayee.md +3 -25
- data/docs/CreatePayeeAddress.md +31 -0
- data/docs/CreatePayeesCSVRequest.md +17 -15
- data/docs/CreatePayoutRequest.md +1 -1
- data/docs/FundingManagerApi.md +180 -10
- data/docs/{FundingRequest.md → FundingRequestV1.md} +2 -2
- data/docs/{FundingRequest2.md → FundingRequestV2.md} +2 -2
- data/docs/FxSummaryV3.md +35 -0
- data/docs/{FxSummary.md → FxSummaryV4.md} +7 -7
- data/docs/GetFundingsResponseAllOf.md +17 -0
- data/docs/GetPaymentsForPayoutResponseV3.md +23 -0
- data/docs/GetPaymentsForPayoutResponseV3Page.md +25 -0
- data/docs/GetPaymentsForPayoutResponseV3Summary.md +33 -0
- data/docs/GetPaymentsForPayoutResponseV4.md +23 -0
- data/docs/GetPaymentsForPayoutResponseV4Summary.md +33 -0
- data/docs/GetPayoutsResponseV3.md +23 -0
- data/docs/GetPayoutsResponseV3Links.md +19 -0
- data/docs/GetPayoutsResponseV3Page.md +25 -0
- data/docs/GetPayoutsResponseV3Summary.md +25 -0
- data/docs/GetPayoutsResponseV4.md +23 -0
- data/docs/Individual.md +2 -2
- data/docs/{PaymentAuditCurrency.md → InvitationStatus.md} +2 -2
- data/docs/ListPaymentsResponse.md +4 -4
- data/docs/ListPaymentsResponsePage.md +25 -0
- data/docs/ListPaymentsResponseSummary.md +25 -0
- data/docs/ListSourceAccountResponse.md +2 -2
- data/docs/ListSourceAccountResponseLinks.md +19 -0
- data/docs/ListSourceAccountResponsePage.md +25 -0
- data/docs/ListSourceAccountResponseV2.md +21 -0
- data/docs/ListSourceAccountResponseV2Page.md +25 -0
- data/docs/Notifications.md +17 -0
- data/docs/PagedPayeeInvitationStatusResponse.md +21 -0
- data/docs/Payee.md +1 -3
- data/docs/PayeeDelta.md +29 -0
- data/docs/PayeeDeltaResponse.md +21 -0
- data/docs/PayeeDeltaResponseLinks.md +19 -0
- data/docs/PayeeDeltaResponsePage.md +25 -0
- data/docs/PayeeInvitationApi.md +68 -5
- data/docs/PayeeInvitationStatus.md +1 -1
- data/docs/PayeeInvitationStatusResponse.md +21 -0
- data/docs/PayeeResponse.md +3 -3
- data/docs/{GetPaymentsForPayoutResponseLinks.md → PayeeResponseLinks.md} +2 -2
- data/docs/{GetPaymentsForPayoutResponsePage.md → PayeeResponsePage.md} +2 -2
- data/docs/{GetPaymentsForPayoutResponseSummary.md → PayeeResponseSummary.md} +2 -2
- data/docs/PayeesApi.md +61 -0
- data/docs/PaymentAuditCurrencyV3.md +16 -0
- data/docs/PaymentAuditCurrencyV4.md +16 -0
- data/docs/PaymentAuditServiceApi.md +302 -6
- data/docs/PaymentEventResponseV3.md +39 -0
- data/docs/{PaymentEventResponse.md → PaymentEventResponseV4.md} +8 -8
- data/docs/PaymentInstruction.md +6 -6
- data/docs/PaymentResponseV3.md +81 -0
- data/docs/{PaymentResponse.md → PaymentResponseV4.md} +5 -5
- data/docs/PayorApplicationsApi.md +1 -1
- data/docs/PayorBrandingResponse.md +5 -5
- data/docs/PayorCreateApiKeyRequest.md +3 -3
- data/docs/PayorCreateApiKeyResponse.md +2 -2
- data/docs/PayorCreateApplicationRequest.md +2 -2
- data/docs/PayorEmailOptOutRequest.md +1 -1
- data/docs/PayorFundingBankDetailsUpdate.md +3 -3
- data/docs/PayorLinksResponse.md +19 -0
- data/docs/PayorLinksResponseLinks.md +23 -0
- data/docs/PayorLinksResponsePayors.md +23 -0
- data/docs/PayorRef.md +2 -2
- data/docs/{Payor.md → PayorV1.md} +15 -15
- data/docs/PayorV2.md +49 -0
- data/docs/PayorsApi.md +116 -6
- data/docs/PayoutHistoryApi.md +81 -2
- data/docs/{PayoutStatus.md → PayoutStatusV3.md} +2 -2
- data/docs/PayoutStatusV4.md +16 -0
- data/docs/PayoutSummaryAuditV3.md +41 -0
- data/docs/{PayoutSummaryAudit.md → PayoutSummaryAuditV4.md} +9 -7
- data/docs/PayoutSummaryResponse.md +4 -4
- data/docs/QuoteFxSummary.md +10 -10
- data/docs/RejectedPayment.md +10 -8
- data/docs/SetNotificationsRequest.md +17 -0
- data/docs/SourceAccount.md +3 -3
- data/docs/SourceAccountResponse.md +11 -9
- data/docs/SourceAccountResponseV2.md +45 -0
- data/docs/SourceAccountSummaryV3.md +21 -0
- data/docs/SourceAccountSummaryV4.md +21 -0
- data/docs/SubmitPayoutApi.md +2 -2
- data/docs/SupportedCountry.md +2 -2
- data/lib/velopayments.rb +58 -18
- data/lib/velopayments/api/auth_api.rb +88 -0
- data/lib/velopayments/api/countries_api.rb +35 -17
- data/lib/velopayments/api/currencies_api.rb +19 -10
- data/lib/velopayments/api/funding_manager_api.rb +323 -69
- data/lib/velopayments/api/get_payout_api.rb +20 -11
- data/lib/velopayments/api/instruct_payout_api.rb +21 -11
- data/lib/velopayments/api/payee_invitation_api.rb +150 -40
- data/lib/velopayments/api/payees_api.rb +130 -26
- data/lib/velopayments/api/payment_audit_service_api.rb +481 -55
- data/lib/velopayments/api/payor_applications_api.rb +40 -21
- data/lib/velopayments/api/payors_api.rb +209 -43
- data/lib/velopayments/api/payout_history_api.rb +141 -21
- data/lib/velopayments/api/quote_payout_api.rb +20 -11
- data/lib/velopayments/api/submit_payout_api.rb +22 -12
- data/lib/velopayments/api/withdraw_payout_api.rb +21 -11
- data/lib/velopayments/api_client.rb +3 -4
- data/lib/velopayments/api_error.rb +2 -2
- data/lib/velopayments/configuration.rb +7 -6
- data/lib/velopayments/models/address.rb +2 -2
- data/lib/velopayments/models/auth_response.rb +242 -0
- data/lib/velopayments/models/auto_top_up_config.rb +222 -0
- data/lib/velopayments/models/challenge.rb +2 -2
- data/lib/velopayments/models/company.rb +39 -6
- data/lib/velopayments/models/create_individual.rb +249 -0
- data/lib/velopayments/models/create_payee.rb +7 -109
- data/lib/velopayments/models/create_payee_address.rb +478 -0
- data/lib/velopayments/models/create_payees_csv_request.rb +268 -183
- data/lib/velopayments/models/create_payees_csv_response.rb +2 -2
- data/lib/velopayments/models/create_payees_request.rb +2 -2
- data/lib/velopayments/models/create_payment_channel.rb +9 -15
- data/lib/velopayments/models/create_payout_request.rb +2 -2
- data/lib/velopayments/models/failed_submission.rb +2 -2
- data/lib/velopayments/models/funding_audit.rb +2 -2
- data/lib/velopayments/models/funding_event.rb +2 -2
- data/lib/velopayments/models/funding_event_type.rb +2 -2
- data/lib/velopayments/models/{funding_request.rb → funding_request_v1.rb} +5 -5
- data/lib/velopayments/models/{funding_request2.rb → funding_request_v2.rb} +5 -5
- data/lib/velopayments/models/{fx_summary.rb → fx_summary_v3.rb} +7 -7
- data/lib/velopayments/models/fx_summary_v4.rb +363 -0
- data/lib/velopayments/models/get_fundings_response.rb +3 -2
- data/lib/velopayments/models/get_fundings_response_all_of.rb +196 -0
- data/lib/velopayments/models/get_payments_for_payout_response_v3.rb +228 -0
- data/lib/velopayments/models/get_payments_for_payout_response_v3_page.rb +232 -0
- data/lib/velopayments/models/get_payments_for_payout_response_v3_summary.rb +311 -0
- data/lib/velopayments/models/{get_payments_for_payout_response.rb → get_payments_for_payout_response_v4.rb} +9 -9
- data/lib/velopayments/models/get_payments_for_payout_response_v4_summary.rb +311 -0
- data/lib/velopayments/models/get_payout_statistics.rb +2 -2
- data/lib/velopayments/models/{get_payouts_response.rb → get_payouts_response_v3.rb} +9 -9
- data/lib/velopayments/models/{get_payments_for_payout_response_links.rb → get_payouts_response_v3_links.rb} +5 -5
- data/lib/velopayments/models/{get_payments_for_payout_response_page.rb → get_payouts_response_v3_page.rb} +5 -5
- data/lib/velopayments/models/{get_payments_for_payout_response_summary.rb → get_payouts_response_v3_summary.rb} +5 -5
- data/lib/velopayments/models/get_payouts_response_v4.rb +228 -0
- data/lib/velopayments/models/individual.rb +6 -4
- data/lib/velopayments/models/individual_name.rb +2 -2
- data/lib/velopayments/models/invitation_status.rb +37 -0
- data/lib/velopayments/models/invitation_status_response.rb +2 -2
- data/lib/velopayments/models/invite_payee_request.rb +2 -2
- data/lib/velopayments/models/language.rb +2 -2
- data/lib/velopayments/models/list_payments_response.rb +6 -6
- data/lib/velopayments/models/list_payments_response_page.rb +232 -0
- data/lib/velopayments/models/list_payments_response_summary.rb +232 -0
- data/lib/velopayments/models/list_source_account_response.rb +4 -4
- data/lib/velopayments/models/{social.rb → list_source_account_response_links.rb} +18 -27
- data/lib/velopayments/models/list_source_account_response_page.rb +232 -0
- data/lib/velopayments/models/list_source_account_response_v2.rb +219 -0
- data/lib/velopayments/models/list_source_account_response_v2_page.rb +232 -0
- data/lib/velopayments/models/marketing_opt_in.rb +2 -2
- data/lib/velopayments/models/notifications.rb +196 -0
- data/lib/velopayments/models/ofac_status.rb +2 -2
- data/lib/velopayments/models/onboarded_status.rb +2 -2
- data/lib/velopayments/models/paged_payee_invitation_status_response.rb +219 -0
- data/lib/velopayments/models/paged_response.rb +2 -2
- data/lib/velopayments/models/paged_response_page.rb +2 -2
- data/lib/velopayments/models/payee.rb +6 -15
- data/lib/velopayments/models/payee_delta.rb +288 -0
- data/lib/velopayments/models/payee_delta_response.rb +219 -0
- data/lib/velopayments/models/payee_delta_response_links.rb +205 -0
- data/lib/velopayments/models/payee_delta_response_page.rb +232 -0
- data/lib/velopayments/models/payee_invitation_status.rb +2 -2
- data/lib/velopayments/models/payee_invitation_status_response.rb +224 -0
- data/lib/velopayments/models/payee_response.rb +5 -5
- data/lib/velopayments/models/payee_response_links.rb +205 -0
- data/lib/velopayments/models/payee_response_page.rb +232 -0
- data/lib/velopayments/models/payee_response_summary.rb +232 -0
- data/lib/velopayments/models/payee_type.rb +2 -2
- data/lib/velopayments/models/{payment_audit_currency.rb → payment_audit_currency_v3.rb} +5 -5
- data/lib/velopayments/models/payment_audit_currency_v4.rb +37 -0
- data/lib/velopayments/models/payment_channel.rb +2 -2
- data/lib/velopayments/models/payment_channel_country.rb +2 -2
- 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_event_response.rb → payment_event_response_v3.rb} +9 -9
- data/lib/velopayments/models/payment_event_response_v4.rb +351 -0
- data/lib/velopayments/models/payment_instruction.rb +2 -2
- data/lib/velopayments/models/{payment_response.rb → payment_response_v3.rb} +8 -8
- data/lib/velopayments/models/payment_response_v4.rb +587 -0
- data/lib/velopayments/models/payor_branding_response.rb +2 -2
- 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 +7 -2
- data/lib/velopayments/models/payor_funding_bank_details_update.rb +2 -2
- data/lib/velopayments/models/payor_links_response.rb +210 -0
- data/lib/velopayments/models/payor_links_response_links.rb +277 -0
- data/lib/velopayments/models/payor_links_response_payors.rb +267 -0
- data/lib/velopayments/models/payor_logo_request.rb +2 -2
- data/lib/velopayments/models/payor_ref.rb +2 -2
- data/lib/velopayments/models/{payor.rb → payor_v1.rb} +6 -6
- data/lib/velopayments/models/payor_v2.rb +405 -0
- data/lib/velopayments/models/{payout_status.rb → payout_status_v3.rb} +5 -5
- data/lib/velopayments/models/payout_status_v4.rb +43 -0
- data/lib/velopayments/models/{payout_summary_audit.rb → payout_summary_audit_v3.rb} +18 -9
- data/lib/velopayments/models/payout_summary_audit_v4.rb +323 -0
- data/lib/velopayments/models/payout_summary_response.rb +2 -2
- data/lib/velopayments/models/query_batch_response.rb +2 -2
- data/lib/velopayments/models/quote_fx_summary.rb +4 -4
- data/lib/velopayments/models/quote_response.rb +2 -2
- data/lib/velopayments/models/rejected_payment.rb +37 -34
- data/lib/velopayments/models/set_notifications_request.rb +230 -0
- data/lib/velopayments/models/source_account.rb +2 -2
- data/lib/velopayments/models/source_account_response.rb +16 -7
- data/lib/velopayments/models/source_account_response_v2.rb +403 -0
- data/lib/velopayments/models/{source_account_summary.rb → source_account_summary_v3.rb} +7 -7
- data/lib/velopayments/models/source_account_summary_v4.rb +224 -0
- data/lib/velopayments/models/supported_countries_response.rb +2 -2
- data/lib/velopayments/models/supported_country.rb +36 -2
- data/lib/velopayments/models/supported_currency.rb +2 -2
- data/lib/velopayments/models/supported_currency_response.rb +2 -2
- data/lib/velopayments/version.rb +3 -3
- data/oa3-config.json +1 -1
- data/spec/api/auth_api_spec.rb +48 -0
- data/spec/api/countries_api_spec.rb +2 -2
- data/spec/api/currencies_api_spec.rb +2 -2
- data/spec/api/funding_manager_api_spec.rb +45 -4
- data/spec/api/get_payout_api_spec.rb +2 -2
- data/spec/api/instruct_payout_api_spec.rb +2 -2
- data/spec/api/payee_invitation_api_spec.rb +20 -4
- data/spec/api/payees_api_spec.rb +17 -2
- data/spec/api/payment_audit_service_api_spec.rb +91 -5
- data/spec/api/payor_applications_api_spec.rb +3 -3
- data/spec/api/payors_api_spec.rb +31 -6
- data/spec/api/payout_history_api_spec.rb +27 -3
- data/spec/api/quote_payout_api_spec.rb +2 -2
- data/spec/api/submit_payout_api_spec.rb +3 -3
- data/spec/api/withdraw_payout_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/address_spec.rb +2 -2
- data/spec/models/auth_response_spec.rb +65 -0
- data/spec/models/{social_spec.rb → auto_top_up_config_spec.rb} +11 -11
- data/spec/models/challenge_spec.rb +2 -2
- data/spec/models/company_spec.rb +8 -2
- data/spec/models/create_individual_spec.rb +53 -0
- data/spec/models/create_payee_address_spec.rb +83 -0
- data/spec/models/create_payee_spec.rb +2 -68
- data/spec/models/create_payees_csv_request_spec.rb +26 -16
- data/spec/models/create_payees_csv_response_spec.rb +2 -2
- data/spec/models/create_payees_request_spec.rb +2 -2
- data/spec/models/create_payment_channel_spec.rb +6 -2
- data/spec/models/create_payout_request_spec.rb +2 -2
- data/spec/models/failed_submission_spec.rb +2 -2
- data/spec/models/funding_audit_spec.rb +2 -2
- data/spec/models/funding_event_spec.rb +2 -2
- data/spec/models/funding_event_type_spec.rb +2 -2
- data/spec/models/{funding_request2_spec.rb → funding_request_v1_spec.rb} +8 -8
- data/spec/models/{funding_request_spec.rb → funding_request_v2_spec.rb} +8 -8
- data/spec/models/{fx_summary_spec.rb → fx_summary_v3_spec.rb} +8 -8
- data/spec/models/fx_summary_v4_spec.rb +103 -0
- data/spec/models/get_fundings_response_all_of_spec.rb +41 -0
- data/spec/models/get_fundings_response_spec.rb +2 -2
- data/spec/models/{get_payments_for_payout_response_page_spec.rb → get_payments_for_payout_response_v3_page_spec.rb} +8 -8
- data/spec/models/{get_payments_for_payout_response_spec.rb → get_payments_for_payout_response_v3_spec.rb} +8 -8
- data/spec/models/get_payments_for_payout_response_v3_summary_spec.rb +93 -0
- data/spec/models/get_payments_for_payout_response_v4_spec.rb +59 -0
- data/spec/models/get_payments_for_payout_response_v4_summary_spec.rb +93 -0
- data/spec/models/get_payout_statistics_spec.rb +2 -2
- data/spec/models/get_payouts_response_v3_links_spec.rb +47 -0
- data/spec/models/get_payouts_response_v3_page_spec.rb +65 -0
- data/spec/models/{get_payouts_response_spec.rb → get_payouts_response_v3_spec.rb} +8 -8
- data/spec/models/{get_payments_for_payout_response_summary_spec.rb → get_payouts_response_v3_summary_spec.rb} +8 -8
- data/spec/models/get_payouts_response_v4_spec.rb +59 -0
- data/spec/models/individual_name_spec.rb +2 -2
- data/spec/models/individual_spec.rb +2 -2
- data/spec/models/invitation_status_response_spec.rb +2 -2
- data/spec/models/invitation_status_spec.rb +35 -0
- data/spec/models/invite_payee_request_spec.rb +2 -2
- data/spec/models/language_spec.rb +2 -2
- data/spec/models/list_payments_response_page_spec.rb +65 -0
- data/spec/models/list_payments_response_spec.rb +2 -2
- data/spec/models/list_payments_response_summary_spec.rb +65 -0
- data/spec/models/{get_payments_for_payout_response_links_spec.rb → list_source_account_response_links_spec.rb} +8 -8
- data/spec/models/list_source_account_response_page_spec.rb +65 -0
- data/spec/models/list_source_account_response_spec.rb +2 -2
- data/spec/models/list_source_account_response_v2_page_spec.rb +65 -0
- data/spec/models/list_source_account_response_v2_spec.rb +53 -0
- data/spec/models/marketing_opt_in_spec.rb +2 -2
- data/spec/models/notifications_spec.rb +41 -0
- data/spec/models/ofac_status_spec.rb +2 -2
- data/spec/models/onboarded_status_spec.rb +2 -2
- data/spec/models/paged_payee_invitation_status_response_spec.rb +53 -0
- data/spec/models/paged_response_page_spec.rb +2 -2
- data/spec/models/paged_response_spec.rb +2 -2
- data/spec/models/payee_delta_response_links_spec.rb +47 -0
- data/spec/models/payee_delta_response_page_spec.rb +65 -0
- data/spec/models/payee_delta_response_spec.rb +53 -0
- data/spec/models/payee_delta_spec.rb +77 -0
- data/spec/models/payee_invitation_status_response_spec.rb +53 -0
- data/spec/models/payee_invitation_status_spec.rb +2 -2
- data/spec/models/payee_response_links_spec.rb +47 -0
- data/spec/models/payee_response_page_spec.rb +65 -0
- data/spec/models/payee_response_spec.rb +2 -2
- data/spec/models/payee_response_summary_spec.rb +65 -0
- data/spec/models/payee_spec.rb +2 -8
- data/spec/models/payee_type_spec.rb +2 -2
- data/spec/models/{payment_audit_currency_spec.rb → payment_audit_currency_v3_spec.rb} +8 -8
- data/spec/models/payment_audit_currency_v4_spec.rb +35 -0
- data/spec/models/payment_channel_country_spec.rb +2 -2
- data/spec/models/payment_channel_rule_spec.rb +2 -2
- data/spec/models/payment_channel_rules_response_spec.rb +2 -2
- data/spec/models/payment_channel_spec.rb +2 -2
- data/spec/models/{payment_event_response_spec.rb → payment_event_response_v3_spec.rb} +8 -8
- data/spec/models/payment_event_response_v4_spec.rb +111 -0
- data/spec/models/payment_instruction_spec.rb +2 -2
- data/spec/models/{payment_response_spec.rb → payment_response_v3_spec.rb} +8 -8
- data/spec/models/payment_response_v4_spec.rb +241 -0
- data/spec/models/payor_branding_response_spec.rb +2 -2
- data/spec/models/payor_create_api_key_request_spec.rb +2 -2
- data/spec/models/payor_create_api_key_response_spec.rb +2 -2
- data/spec/models/payor_create_application_request_spec.rb +2 -2
- data/spec/models/payor_email_opt_out_request_spec.rb +2 -2
- data/spec/models/payor_funding_bank_details_update_spec.rb +2 -2
- data/spec/models/payor_links_response_links_spec.rb +63 -0
- data/spec/models/payor_links_response_payors_spec.rb +63 -0
- data/spec/models/payor_links_response_spec.rb +47 -0
- data/spec/models/payor_logo_request_spec.rb +2 -2
- data/spec/models/payor_ref_spec.rb +2 -2
- data/spec/models/{payor_spec.rb → payor_v1_spec.rb} +8 -8
- data/spec/models/payor_v2_spec.rb +145 -0
- data/spec/models/{payout_status_spec.rb → payout_status_v3_spec.rb} +8 -8
- data/spec/models/payout_status_v4_spec.rb +35 -0
- data/spec/models/{payout_summary_audit_spec.rb → payout_summary_audit_v3_spec.rb} +14 -8
- data/spec/models/payout_summary_audit_v4_spec.rb +113 -0
- data/spec/models/payout_summary_response_spec.rb +2 -2
- data/spec/models/query_batch_response_spec.rb +2 -2
- data/spec/models/quote_fx_summary_spec.rb +2 -2
- data/spec/models/quote_response_spec.rb +2 -2
- data/spec/models/rejected_payment_spec.rb +8 -6
- data/spec/models/set_notifications_request_spec.rb +41 -0
- data/spec/models/source_account_response_spec.rb +8 -2
- data/spec/models/source_account_response_v2_spec.rb +129 -0
- data/spec/models/source_account_spec.rb +2 -2
- data/spec/models/{source_account_summary_spec.rb → source_account_summary_v3_spec.rb} +8 -8
- data/spec/models/source_account_summary_v4_spec.rb +53 -0
- data/spec/models/supported_countries_response_spec.rb +2 -2
- data/spec/models/supported_country_spec.rb +10 -2
- data/spec/models/supported_currency_response_spec.rb +2 -2
- data/spec/models/supported_currency_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- data/velopayments-2.11.73.gem +0 -0
- data/velopayments-2.14.90.gem +0 -0
- data/velopayments.gemspec +2 -2
- metadata +230 -68
- data/docs/GetPaymentsForPayoutResponse.md +0 -23
- data/docs/GetPayoutsResponse.md +0 -23
- data/docs/Social.md +0 -21
- data/docs/SourceAccountSummary.md +0 -21
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
### Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor. * **Payment.** A single transfer of funds from a payor to a payee. * **Payout.** A batch of Payments, typically used by a payor to logically group payments (e.g. by business day). Technically there need be no relationship between the payments in a payout - a single payout can contain payments to multiple payees and/or multiple payments to a single payee. * **Sandbox.** An integration environment provided by Velo Payments which offers a similar API experience to the production environment, but all funding and payment events are simulated, along with many other services such as OFAC sanctions list checking. ## Overview The Velo Payments API allows a payor to perform a number of operations. The following is a list of the main capabilities in a natural order of execution: * Authenticate with the Velo platform * Maintain a collection of payees * Query the payor’s current balance of funds within the platform and perform additional funding * Issue payments to payees * Query the platform for a history of those payments This document describes the main concepts and APIs required to get up and running with the Velo Payments platform. It is not an exhaustive API reference. For that, please see the separate Velo Payments API Reference. ## API Considerations The Velo Payments API is REST based and uses the JSON format for requests and responses. Most calls are secured using OAuth 2 security and require a valid authentication access token for successful operation. See the Authentication section for details. Where a dynamic value is required in the examples below, the {token} format is used, suggesting that the caller needs to supply the appropriate value of the token in question (without including the { or } characters). Where curl examples are given, the –d @filename.json approach is used, indicating that the request body should be placed into a file named filename.json in the current directory. Each of the curl examples in this document should be considered a single line on the command-line, regardless of how they appear in print. ## Authenticating with the Velo Platform Once Velo backoffice staff have added your organization as a payor within the Velo platform sandbox, they will create you a payor Id, an API key and an API secret and share these with you in a secure manner. You will need to use these values to authenticate with the Velo platform in order to gain access to the APIs. The steps to take are explained in the following: create a string comprising the API key (e.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8) and API secret (e.g. c396b26b-137a-44fd-87f5-34631f8fd529) with a colon between them. E.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8:c396b26b-137a-44fd-87f5-34631f8fd529 base64 encode this string. E.g.: NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== create an HTTP **Authorization** header with the value set to e.g. Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== perform the Velo authentication REST call using the HTTP header created above e.g. via curl: ``` curl -X POST \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ==\" \\ 'https://api.sandbox.velopayments.com/v1/authenticate?grant_type=client_credentials' ``` If successful, this call will result in a **200** HTTP status code and a response body such as: ``` { \"access_token\":\"19f6bafd-93fd-4747-b229-00507bbc991f\", \"token_type\":\"bearer\", \"expires_in\":1799, \"scope\":\"...\" } ``` ## API access following authentication Following successful authentication, the value of the access_token field in the response (indicated in green above) should then be presented with all subsequent API calls to allow the Velo platform to validate that the caller is authenticated. This is achieved by setting the HTTP Authorization header with the value set to e.g. Bearer 19f6bafd-93fd-4747-b229-00507bbc991f such as the curl example below: ``` -H \"Authorization: Bearer 19f6bafd-93fd-4747-b229-00507bbc991f \" ``` If you make other Velo API calls which require authorization but the Authorization header is missing or invalid then you will get a **401** HTTP status response.
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 2.14.92
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module VeloPayments
|
16
16
|
class GetPayoutApi
|
@@ -43,29 +43,38 @@ module VeloPayments
|
|
43
43
|
fail ArgumentError, "Missing the required parameter 'payout_id' when calling GetPayoutApi.v3_payouts_payout_id_get"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '/v3/payouts/{payoutId}'.sub('{' + 'payoutId' + '}', payout_id.to_s)
|
46
|
+
local_var_path = '/v3/payouts/{payoutId}'.sub('{' + 'payoutId' + '}', CGI.escape(payout_id.to_s).gsub('%2F', '/'))
|
47
47
|
|
48
48
|
# query parameters
|
49
|
-
query_params = {}
|
49
|
+
query_params = opts[:query_params] || {}
|
50
50
|
|
51
51
|
# header parameters
|
52
|
-
header_params = {}
|
52
|
+
header_params = opts[:header_params] || {}
|
53
53
|
# HTTP header 'Accept' (if needed)
|
54
54
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
55
|
|
56
56
|
# form parameters
|
57
|
-
form_params = {}
|
57
|
+
form_params = opts[:form_params] || {}
|
58
58
|
|
59
59
|
# http body (model)
|
60
|
-
post_body =
|
61
|
-
|
62
|
-
|
60
|
+
post_body = opts[:body]
|
61
|
+
|
62
|
+
# return_type
|
63
|
+
return_type = opts[:return_type] || 'PayoutSummaryResponse'
|
64
|
+
|
65
|
+
# auth_names
|
66
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
67
|
+
|
68
|
+
new_options = opts.merge(
|
63
69
|
:header_params => header_params,
|
64
70
|
:query_params => query_params,
|
65
71
|
:form_params => form_params,
|
66
72
|
:body => post_body,
|
67
73
|
:auth_names => auth_names,
|
68
|
-
:return_type =>
|
74
|
+
:return_type => return_type
|
75
|
+
)
|
76
|
+
|
77
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
69
78
|
if @api_client.config.debugging
|
70
79
|
@api_client.config.logger.debug "API called: GetPayoutApi#v3_payouts_payout_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
80
|
end
|
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
### Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor. * **Payment.** A single transfer of funds from a payor to a payee. * **Payout.** A batch of Payments, typically used by a payor to logically group payments (e.g. by business day). Technically there need be no relationship between the payments in a payout - a single payout can contain payments to multiple payees and/or multiple payments to a single payee. * **Sandbox.** An integration environment provided by Velo Payments which offers a similar API experience to the production environment, but all funding and payment events are simulated, along with many other services such as OFAC sanctions list checking. ## Overview The Velo Payments API allows a payor to perform a number of operations. The following is a list of the main capabilities in a natural order of execution: * Authenticate with the Velo platform * Maintain a collection of payees * Query the payor’s current balance of funds within the platform and perform additional funding * Issue payments to payees * Query the platform for a history of those payments This document describes the main concepts and APIs required to get up and running with the Velo Payments platform. It is not an exhaustive API reference. For that, please see the separate Velo Payments API Reference. ## API Considerations The Velo Payments API is REST based and uses the JSON format for requests and responses. Most calls are secured using OAuth 2 security and require a valid authentication access token for successful operation. See the Authentication section for details. Where a dynamic value is required in the examples below, the {token} format is used, suggesting that the caller needs to supply the appropriate value of the token in question (without including the { or } characters). Where curl examples are given, the –d @filename.json approach is used, indicating that the request body should be placed into a file named filename.json in the current directory. Each of the curl examples in this document should be considered a single line on the command-line, regardless of how they appear in print. ## Authenticating with the Velo Platform Once Velo backoffice staff have added your organization as a payor within the Velo platform sandbox, they will create you a payor Id, an API key and an API secret and share these with you in a secure manner. You will need to use these values to authenticate with the Velo platform in order to gain access to the APIs. The steps to take are explained in the following: create a string comprising the API key (e.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8) and API secret (e.g. c396b26b-137a-44fd-87f5-34631f8fd529) with a colon between them. E.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8:c396b26b-137a-44fd-87f5-34631f8fd529 base64 encode this string. E.g.: NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== create an HTTP **Authorization** header with the value set to e.g. Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== perform the Velo authentication REST call using the HTTP header created above e.g. via curl: ``` curl -X POST \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ==\" \\ 'https://api.sandbox.velopayments.com/v1/authenticate?grant_type=client_credentials' ``` If successful, this call will result in a **200** HTTP status code and a response body such as: ``` { \"access_token\":\"19f6bafd-93fd-4747-b229-00507bbc991f\", \"token_type\":\"bearer\", \"expires_in\":1799, \"scope\":\"...\" } ``` ## API access following authentication Following successful authentication, the value of the access_token field in the response (indicated in green above) should then be presented with all subsequent API calls to allow the Velo platform to validate that the caller is authenticated. This is achieved by setting the HTTP Authorization header with the value set to e.g. Bearer 19f6bafd-93fd-4747-b229-00507bbc991f such as the curl example below: ``` -H \"Authorization: Bearer 19f6bafd-93fd-4747-b229-00507bbc991f \" ``` If you make other Velo API calls which require authorization but the Authorization header is missing or invalid then you will get a **401** HTTP status response.
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 2.14.92
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module VeloPayments
|
16
16
|
class InstructPayoutApi
|
@@ -43,26 +43,36 @@ module VeloPayments
|
|
43
43
|
fail ArgumentError, "Missing the required parameter 'payout_id' when calling InstructPayoutApi.v3_payouts_payout_id_post"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '/v3/payouts/{payoutId}'.sub('{' + 'payoutId' + '}', payout_id.to_s)
|
46
|
+
local_var_path = '/v3/payouts/{payoutId}'.sub('{' + 'payoutId' + '}', CGI.escape(payout_id.to_s).gsub('%2F', '/'))
|
47
47
|
|
48
48
|
# query parameters
|
49
|
-
query_params = {}
|
49
|
+
query_params = opts[:query_params] || {}
|
50
50
|
|
51
51
|
# header parameters
|
52
|
-
header_params = {}
|
52
|
+
header_params = opts[:header_params] || {}
|
53
53
|
|
54
54
|
# form parameters
|
55
|
-
form_params = {}
|
55
|
+
form_params = opts[:form_params] || {}
|
56
56
|
|
57
57
|
# http body (model)
|
58
|
-
post_body =
|
59
|
-
|
60
|
-
|
58
|
+
post_body = opts[:body]
|
59
|
+
|
60
|
+
# return_type
|
61
|
+
return_type = opts[:return_type]
|
62
|
+
|
63
|
+
# auth_names
|
64
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
65
|
+
|
66
|
+
new_options = opts.merge(
|
61
67
|
:header_params => header_params,
|
62
68
|
:query_params => query_params,
|
63
69
|
:form_params => form_params,
|
64
70
|
:body => post_body,
|
65
|
-
:auth_names => auth_names
|
71
|
+
:auth_names => auth_names,
|
72
|
+
:return_type => return_type
|
73
|
+
)
|
74
|
+
|
75
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
66
76
|
if @api_client.config.debugging
|
67
77
|
@api_client.config.logger.debug "API called: InstructPayoutApi#v3_payouts_payout_id_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
68
78
|
end
|
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
### Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor. * **Payment.** A single transfer of funds from a payor to a payee. * **Payout.** A batch of Payments, typically used by a payor to logically group payments (e.g. by business day). Technically there need be no relationship between the payments in a payout - a single payout can contain payments to multiple payees and/or multiple payments to a single payee. * **Sandbox.** An integration environment provided by Velo Payments which offers a similar API experience to the production environment, but all funding and payment events are simulated, along with many other services such as OFAC sanctions list checking. ## Overview The Velo Payments API allows a payor to perform a number of operations. The following is a list of the main capabilities in a natural order of execution: * Authenticate with the Velo platform * Maintain a collection of payees * Query the payor’s current balance of funds within the platform and perform additional funding * Issue payments to payees * Query the platform for a history of those payments This document describes the main concepts and APIs required to get up and running with the Velo Payments platform. It is not an exhaustive API reference. For that, please see the separate Velo Payments API Reference. ## API Considerations The Velo Payments API is REST based and uses the JSON format for requests and responses. Most calls are secured using OAuth 2 security and require a valid authentication access token for successful operation. See the Authentication section for details. Where a dynamic value is required in the examples below, the {token} format is used, suggesting that the caller needs to supply the appropriate value of the token in question (without including the { or } characters). Where curl examples are given, the –d @filename.json approach is used, indicating that the request body should be placed into a file named filename.json in the current directory. Each of the curl examples in this document should be considered a single line on the command-line, regardless of how they appear in print. ## Authenticating with the Velo Platform Once Velo backoffice staff have added your organization as a payor within the Velo platform sandbox, they will create you a payor Id, an API key and an API secret and share these with you in a secure manner. You will need to use these values to authenticate with the Velo platform in order to gain access to the APIs. The steps to take are explained in the following: create a string comprising the API key (e.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8) and API secret (e.g. c396b26b-137a-44fd-87f5-34631f8fd529) with a colon between them. E.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8:c396b26b-137a-44fd-87f5-34631f8fd529 base64 encode this string. E.g.: NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== create an HTTP **Authorization** header with the value set to e.g. Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== perform the Velo authentication REST call using the HTTP header created above e.g. via curl: ``` curl -X POST \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ==\" \\ 'https://api.sandbox.velopayments.com/v1/authenticate?grant_type=client_credentials' ``` If successful, this call will result in a **200** HTTP status code and a response body such as: ``` { \"access_token\":\"19f6bafd-93fd-4747-b229-00507bbc991f\", \"token_type\":\"bearer\", \"expires_in\":1799, \"scope\":\"...\" } ``` ## API access following authentication Following successful authentication, the value of the access_token field in the response (indicated in green above) should then be presented with all subsequent API calls to allow the Velo platform to validate that the caller is authenticated. This is achieved by setting the HTTP Authorization header with the value set to e.g. Bearer 19f6bafd-93fd-4747-b229-00507bbc991f such as the curl example below: ``` -H \"Authorization: Bearer 19f6bafd-93fd-4747-b229-00507bbc991f \" ``` If you make other Velo API calls which require authorization but the Authorization header is missing or invalid then you will get a **401** HTTP status response.
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 2.14.92
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module VeloPayments
|
16
16
|
class PayeeInvitationApi
|
@@ -24,8 +24,8 @@ module VeloPayments
|
|
24
24
|
# @param payor_id [String] The account owner Payor ID
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [InvitationStatusResponse]
|
27
|
-
def
|
28
|
-
data, _status_code, _headers =
|
27
|
+
def get_payees_invitation_status(payor_id, opts = {})
|
28
|
+
data, _status_code, _headers = get_payees_invitation_status_with_http_info(payor_id, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
@@ -34,40 +34,123 @@ module VeloPayments
|
|
34
34
|
# @param payor_id [String] The account owner Payor ID
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(InvitationStatusResponse, Integer, Hash)>] InvitationStatusResponse data, response status code and response headers
|
37
|
-
def
|
37
|
+
def get_payees_invitation_status_with_http_info(payor_id, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: PayeeInvitationApi.
|
39
|
+
@api_client.config.logger.debug 'Calling API: PayeeInvitationApi.get_payees_invitation_status ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'payor_id' is set
|
42
42
|
if @api_client.config.client_side_validation && payor_id.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'payor_id' when calling PayeeInvitationApi.
|
43
|
+
fail ArgumentError, "Missing the required parameter 'payor_id' when calling PayeeInvitationApi.get_payees_invitation_status"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '/v1/payees/payors/{payorId}/invitationStatus'.sub('{' + 'payorId' + '}', payor_id.to_s)
|
46
|
+
local_var_path = '/v1/payees/payors/{payorId}/invitationStatus'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s).gsub('%2F', '/'))
|
47
47
|
|
48
48
|
# query parameters
|
49
|
-
query_params = {}
|
49
|
+
query_params = opts[:query_params] || {}
|
50
50
|
|
51
51
|
# header parameters
|
52
|
-
header_params = {}
|
52
|
+
header_params = opts[:header_params] || {}
|
53
53
|
# HTTP header 'Accept' (if needed)
|
54
54
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
55
|
|
56
56
|
# form parameters
|
57
|
-
form_params = {}
|
57
|
+
form_params = opts[:form_params] || {}
|
58
58
|
|
59
59
|
# http body (model)
|
60
|
-
post_body =
|
61
|
-
|
62
|
-
|
60
|
+
post_body = opts[:body]
|
61
|
+
|
62
|
+
# return_type
|
63
|
+
return_type = opts[:return_type] || 'InvitationStatusResponse'
|
64
|
+
|
65
|
+
# auth_names
|
66
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
67
|
+
|
68
|
+
new_options = opts.merge(
|
63
69
|
:header_params => header_params,
|
64
70
|
:query_params => query_params,
|
65
71
|
:form_params => form_params,
|
66
72
|
:body => post_body,
|
67
73
|
:auth_names => auth_names,
|
68
|
-
:return_type =>
|
74
|
+
:return_type => return_type
|
75
|
+
)
|
76
|
+
|
77
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
69
78
|
if @api_client.config.debugging
|
70
|
-
@api_client.config.logger.debug "API called: PayeeInvitationApi#
|
79
|
+
@api_client.config.logger.debug "API called: PayeeInvitationApi#get_payees_invitation_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
|
+
end
|
81
|
+
return data, status_code, headers
|
82
|
+
end
|
83
|
+
|
84
|
+
# Get Payee Invitation Status
|
85
|
+
# Returns a filtered, paginated list of payees associated with a payor, along with invitation status and grace period end date.
|
86
|
+
# @param payor_id [String] The account owner Payor ID
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @option opts [String] :payee_id The UUID of the payee.
|
89
|
+
# @option opts [InvitationStatus] :invitation_status The invitation status of the payees.
|
90
|
+
# @option opts [Integer] :page Page number. Default is 1. (default to 1)
|
91
|
+
# @option opts [Integer] :page_size Page size. Default is 25. Max allowable is 100. (default to 25)
|
92
|
+
# @return [PagedPayeeInvitationStatusResponse]
|
93
|
+
def get_payees_invitation_status_v2(payor_id, opts = {})
|
94
|
+
data, _status_code, _headers = get_payees_invitation_status_v2_with_http_info(payor_id, opts)
|
95
|
+
data
|
96
|
+
end
|
97
|
+
|
98
|
+
# Get Payee Invitation Status
|
99
|
+
# Returns a filtered, paginated list of payees associated with a payor, along with invitation status and grace period end date.
|
100
|
+
# @param payor_id [String] The account owner Payor ID
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @option opts [String] :payee_id The UUID of the payee.
|
103
|
+
# @option opts [InvitationStatus] :invitation_status The invitation status of the payees.
|
104
|
+
# @option opts [Integer] :page Page number. Default is 1.
|
105
|
+
# @option opts [Integer] :page_size Page size. Default is 25. Max allowable is 100.
|
106
|
+
# @return [Array<(PagedPayeeInvitationStatusResponse, Integer, Hash)>] PagedPayeeInvitationStatusResponse data, response status code and response headers
|
107
|
+
def get_payees_invitation_status_v2_with_http_info(payor_id, opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug 'Calling API: PayeeInvitationApi.get_payees_invitation_status_v2 ...'
|
110
|
+
end
|
111
|
+
# verify the required parameter 'payor_id' is set
|
112
|
+
if @api_client.config.client_side_validation && payor_id.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'payor_id' when calling PayeeInvitationApi.get_payees_invitation_status_v2"
|
114
|
+
end
|
115
|
+
# resource path
|
116
|
+
local_var_path = '/v2/payees/payors/{payorId}/invitationStatus'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s).gsub('%2F', '/'))
|
117
|
+
|
118
|
+
# query parameters
|
119
|
+
query_params = opts[:query_params] || {}
|
120
|
+
query_params[:'payeeId'] = opts[:'payee_id'] if !opts[:'payee_id'].nil?
|
121
|
+
query_params[:'invitationStatus'] = opts[:'invitation_status'] if !opts[:'invitation_status'].nil?
|
122
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
123
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
124
|
+
|
125
|
+
# header parameters
|
126
|
+
header_params = opts[:header_params] || {}
|
127
|
+
# HTTP header 'Accept' (if needed)
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
129
|
+
|
130
|
+
# form parameters
|
131
|
+
form_params = opts[:form_params] || {}
|
132
|
+
|
133
|
+
# http body (model)
|
134
|
+
post_body = opts[:body]
|
135
|
+
|
136
|
+
# return_type
|
137
|
+
return_type = opts[:return_type] || 'PagedPayeeInvitationStatusResponse'
|
138
|
+
|
139
|
+
# auth_names
|
140
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
141
|
+
|
142
|
+
new_options = opts.merge(
|
143
|
+
:header_params => header_params,
|
144
|
+
:query_params => query_params,
|
145
|
+
:form_params => form_params,
|
146
|
+
:body => post_body,
|
147
|
+
:auth_names => auth_names,
|
148
|
+
:return_type => return_type
|
149
|
+
)
|
150
|
+
|
151
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
152
|
+
if @api_client.config.debugging
|
153
|
+
@api_client.config.logger.debug "API called: PayeeInvitationApi#get_payees_invitation_status_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
154
|
end
|
72
155
|
return data, status_code, headers
|
73
156
|
end
|
@@ -102,31 +185,40 @@ module VeloPayments
|
|
102
185
|
fail ArgumentError, "Missing the required parameter 'invite_payee_request' when calling PayeeInvitationApi.resend_payee_invite"
|
103
186
|
end
|
104
187
|
# resource path
|
105
|
-
local_var_path = '/v1/payees/{payeeId}/invite'.sub('{' + 'payeeId' + '}', payee_id.to_s)
|
188
|
+
local_var_path = '/v1/payees/{payeeId}/invite'.sub('{' + 'payeeId' + '}', CGI.escape(payee_id.to_s).gsub('%2F', '/'))
|
106
189
|
|
107
190
|
# query parameters
|
108
|
-
query_params = {}
|
191
|
+
query_params = opts[:query_params] || {}
|
109
192
|
|
110
193
|
# header parameters
|
111
|
-
header_params = {}
|
194
|
+
header_params = opts[:header_params] || {}
|
112
195
|
# HTTP header 'Accept' (if needed)
|
113
196
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
114
197
|
# HTTP header 'Content-Type'
|
115
198
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
116
199
|
|
117
200
|
# form parameters
|
118
|
-
form_params = {}
|
201
|
+
form_params = opts[:form_params] || {}
|
119
202
|
|
120
203
|
# http body (model)
|
121
|
-
post_body = @api_client.object_to_http_body(invite_payee_request)
|
122
|
-
|
123
|
-
|
204
|
+
post_body = opts[:body] || @api_client.object_to_http_body(invite_payee_request)
|
205
|
+
|
206
|
+
# return_type
|
207
|
+
return_type = opts[:return_type] || 'InvitationStatusResponse'
|
208
|
+
|
209
|
+
# auth_names
|
210
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
211
|
+
|
212
|
+
new_options = opts.merge(
|
124
213
|
:header_params => header_params,
|
125
214
|
:query_params => query_params,
|
126
215
|
:form_params => form_params,
|
127
216
|
:body => post_body,
|
128
217
|
:auth_names => auth_names,
|
129
|
-
:return_type =>
|
218
|
+
:return_type => return_type
|
219
|
+
)
|
220
|
+
|
221
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
130
222
|
if @api_client.config.debugging
|
131
223
|
@api_client.config.logger.debug "API called: PayeeInvitationApi#resend_payee_invite\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
132
224
|
end
|
@@ -160,28 +252,37 @@ module VeloPayments
|
|
160
252
|
local_var_path = '/v2/payees'
|
161
253
|
|
162
254
|
# query parameters
|
163
|
-
query_params = {}
|
255
|
+
query_params = opts[:query_params] || {}
|
164
256
|
|
165
257
|
# header parameters
|
166
|
-
header_params = {}
|
258
|
+
header_params = opts[:header_params] || {}
|
167
259
|
# HTTP header 'Accept' (if needed)
|
168
260
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
169
261
|
# HTTP header 'Content-Type'
|
170
262
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
171
263
|
|
172
264
|
# form parameters
|
173
|
-
form_params = {}
|
265
|
+
form_params = opts[:form_params] || {}
|
174
266
|
|
175
267
|
# http body (model)
|
176
|
-
post_body = @api_client.object_to_http_body(create_payees_request)
|
177
|
-
|
178
|
-
|
268
|
+
post_body = opts[:body] || @api_client.object_to_http_body(create_payees_request)
|
269
|
+
|
270
|
+
# return_type
|
271
|
+
return_type = opts[:return_type] || 'CreatePayeesCSVResponse'
|
272
|
+
|
273
|
+
# auth_names
|
274
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
275
|
+
|
276
|
+
new_options = opts.merge(
|
179
277
|
:header_params => header_params,
|
180
278
|
:query_params => query_params,
|
181
279
|
:form_params => form_params,
|
182
280
|
:body => post_body,
|
183
281
|
:auth_names => auth_names,
|
184
|
-
:return_type =>
|
282
|
+
:return_type => return_type
|
283
|
+
)
|
284
|
+
|
285
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
185
286
|
if @api_client.config.debugging
|
186
287
|
@api_client.config.logger.debug "API called: PayeeInvitationApi#v2_create_payee\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
187
288
|
end
|
@@ -212,29 +313,38 @@ module VeloPayments
|
|
212
313
|
fail ArgumentError, "Missing the required parameter 'batch_id' when calling PayeeInvitationApi.v2_query_batch_status"
|
213
314
|
end
|
214
315
|
# resource path
|
215
|
-
local_var_path = '/v2/payees/batch/{batchId}'.sub('{' + 'batchId' + '}', batch_id.to_s)
|
316
|
+
local_var_path = '/v2/payees/batch/{batchId}'.sub('{' + 'batchId' + '}', CGI.escape(batch_id.to_s).gsub('%2F', '/'))
|
216
317
|
|
217
318
|
# query parameters
|
218
|
-
query_params = {}
|
319
|
+
query_params = opts[:query_params] || {}
|
219
320
|
|
220
321
|
# header parameters
|
221
|
-
header_params = {}
|
322
|
+
header_params = opts[:header_params] || {}
|
222
323
|
# HTTP header 'Accept' (if needed)
|
223
324
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
224
325
|
|
225
326
|
# form parameters
|
226
|
-
form_params = {}
|
327
|
+
form_params = opts[:form_params] || {}
|
227
328
|
|
228
329
|
# http body (model)
|
229
|
-
post_body =
|
230
|
-
|
231
|
-
|
330
|
+
post_body = opts[:body]
|
331
|
+
|
332
|
+
# return_type
|
333
|
+
return_type = opts[:return_type] || 'QueryBatchResponse'
|
334
|
+
|
335
|
+
# auth_names
|
336
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
337
|
+
|
338
|
+
new_options = opts.merge(
|
232
339
|
:header_params => header_params,
|
233
340
|
:query_params => query_params,
|
234
341
|
:form_params => form_params,
|
235
342
|
:body => post_body,
|
236
343
|
:auth_names => auth_names,
|
237
|
-
:return_type =>
|
344
|
+
:return_type => return_type
|
345
|
+
)
|
346
|
+
|
347
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
238
348
|
if @api_client.config.debugging
|
239
349
|
@api_client.config.logger.debug "API called: PayeeInvitationApi#v2_query_batch_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
240
350
|
end
|
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
### Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor. * **Payment.** A single transfer of funds from a payor to a payee. * **Payout.** A batch of Payments, typically used by a payor to logically group payments (e.g. by business day). Technically there need be no relationship between the payments in a payout - a single payout can contain payments to multiple payees and/or multiple payments to a single payee. * **Sandbox.** An integration environment provided by Velo Payments which offers a similar API experience to the production environment, but all funding and payment events are simulated, along with many other services such as OFAC sanctions list checking. ## Overview The Velo Payments API allows a payor to perform a number of operations. The following is a list of the main capabilities in a natural order of execution: * Authenticate with the Velo platform * Maintain a collection of payees * Query the payor’s current balance of funds within the platform and perform additional funding * Issue payments to payees * Query the platform for a history of those payments This document describes the main concepts and APIs required to get up and running with the Velo Payments platform. It is not an exhaustive API reference. For that, please see the separate Velo Payments API Reference. ## API Considerations The Velo Payments API is REST based and uses the JSON format for requests and responses. Most calls are secured using OAuth 2 security and require a valid authentication access token for successful operation. See the Authentication section for details. Where a dynamic value is required in the examples below, the {token} format is used, suggesting that the caller needs to supply the appropriate value of the token in question (without including the { or } characters). Where curl examples are given, the –d @filename.json approach is used, indicating that the request body should be placed into a file named filename.json in the current directory. Each of the curl examples in this document should be considered a single line on the command-line, regardless of how they appear in print. ## Authenticating with the Velo Platform Once Velo backoffice staff have added your organization as a payor within the Velo platform sandbox, they will create you a payor Id, an API key and an API secret and share these with you in a secure manner. You will need to use these values to authenticate with the Velo platform in order to gain access to the APIs. The steps to take are explained in the following: create a string comprising the API key (e.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8) and API secret (e.g. c396b26b-137a-44fd-87f5-34631f8fd529) with a colon between them. E.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8:c396b26b-137a-44fd-87f5-34631f8fd529 base64 encode this string. E.g.: NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== create an HTTP **Authorization** header with the value set to e.g. Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== perform the Velo authentication REST call using the HTTP header created above e.g. via curl: ``` curl -X POST \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ==\" \\ 'https://api.sandbox.velopayments.com/v1/authenticate?grant_type=client_credentials' ``` If successful, this call will result in a **200** HTTP status code and a response body such as: ``` { \"access_token\":\"19f6bafd-93fd-4747-b229-00507bbc991f\", \"token_type\":\"bearer\", \"expires_in\":1799, \"scope\":\"...\" } ``` ## API access following authentication Following successful authentication, the value of the access_token field in the response (indicated in green above) should then be presented with all subsequent API calls to allow the Velo platform to validate that the caller is authenticated. This is achieved by setting the HTTP Authorization header with the value set to e.g. Bearer 19f6bafd-93fd-4747-b229-00507bbc991f such as the curl example below: ``` -H \"Authorization: Bearer 19f6bafd-93fd-4747-b229-00507bbc991f \" ``` If you make other Velo API calls which require authorization but the Authorization header is missing or invalid then you will get a **401** HTTP status response.
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 2.14.92
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module VeloPayments
|
16
16
|
class PayeesApi
|
@@ -43,26 +43,36 @@ module VeloPayments
|
|
43
43
|
fail ArgumentError, "Missing the required parameter 'payee_id' when calling PayeesApi.delete_payee_by_id"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '/v1/payees/{payeeId}'.sub('{' + 'payeeId' + '}', payee_id.to_s)
|
46
|
+
local_var_path = '/v1/payees/{payeeId}'.sub('{' + 'payeeId' + '}', CGI.escape(payee_id.to_s).gsub('%2F', '/'))
|
47
47
|
|
48
48
|
# query parameters
|
49
|
-
query_params = {}
|
49
|
+
query_params = opts[:query_params] || {}
|
50
50
|
|
51
51
|
# header parameters
|
52
|
-
header_params = {}
|
52
|
+
header_params = opts[:header_params] || {}
|
53
53
|
|
54
54
|
# form parameters
|
55
|
-
form_params = {}
|
55
|
+
form_params = opts[:form_params] || {}
|
56
56
|
|
57
57
|
# http body (model)
|
58
|
-
post_body =
|
59
|
-
|
60
|
-
|
58
|
+
post_body = opts[:body]
|
59
|
+
|
60
|
+
# return_type
|
61
|
+
return_type = opts[:return_type]
|
62
|
+
|
63
|
+
# auth_names
|
64
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
65
|
+
|
66
|
+
new_options = opts.merge(
|
61
67
|
:header_params => header_params,
|
62
68
|
:query_params => query_params,
|
63
69
|
:form_params => form_params,
|
64
70
|
:body => post_body,
|
65
|
-
:auth_names => auth_names
|
71
|
+
:auth_names => auth_names,
|
72
|
+
:return_type => return_type
|
73
|
+
)
|
74
|
+
|
75
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
66
76
|
if @api_client.config.debugging
|
67
77
|
@api_client.config.logger.debug "API called: PayeesApi#delete_payee_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
68
78
|
end
|
@@ -95,36 +105,121 @@ module VeloPayments
|
|
95
105
|
fail ArgumentError, "Missing the required parameter 'payee_id' when calling PayeesApi.get_payee_by_id"
|
96
106
|
end
|
97
107
|
# resource path
|
98
|
-
local_var_path = '/v1/payees/{payeeId}'.sub('{' + 'payeeId' + '}', payee_id.to_s)
|
108
|
+
local_var_path = '/v1/payees/{payeeId}'.sub('{' + 'payeeId' + '}', CGI.escape(payee_id.to_s).gsub('%2F', '/'))
|
99
109
|
|
100
110
|
# query parameters
|
101
|
-
query_params = {}
|
111
|
+
query_params = opts[:query_params] || {}
|
102
112
|
query_params[:'sensitive'] = opts[:'sensitive'] if !opts[:'sensitive'].nil?
|
103
113
|
|
104
114
|
# header parameters
|
105
|
-
header_params = {}
|
115
|
+
header_params = opts[:header_params] || {}
|
106
116
|
# HTTP header 'Accept' (if needed)
|
107
117
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
108
118
|
|
109
119
|
# form parameters
|
110
|
-
form_params = {}
|
120
|
+
form_params = opts[:form_params] || {}
|
111
121
|
|
112
122
|
# http body (model)
|
113
|
-
post_body =
|
114
|
-
|
115
|
-
|
123
|
+
post_body = opts[:body]
|
124
|
+
|
125
|
+
# return_type
|
126
|
+
return_type = opts[:return_type] || 'Payee'
|
127
|
+
|
128
|
+
# auth_names
|
129
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
130
|
+
|
131
|
+
new_options = opts.merge(
|
116
132
|
:header_params => header_params,
|
117
133
|
:query_params => query_params,
|
118
134
|
:form_params => form_params,
|
119
135
|
:body => post_body,
|
120
136
|
:auth_names => auth_names,
|
121
|
-
:return_type =>
|
137
|
+
:return_type => return_type
|
138
|
+
)
|
139
|
+
|
140
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
122
141
|
if @api_client.config.debugging
|
123
142
|
@api_client.config.logger.debug "API called: PayeesApi#get_payee_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
124
143
|
end
|
125
144
|
return data, status_code, headers
|
126
145
|
end
|
127
146
|
|
147
|
+
# List Payee Changes
|
148
|
+
# Get a paginated response listing payee changes.
|
149
|
+
# @param payor_id [String] The Payor ID to find associated Payees
|
150
|
+
# @param updated_since [DateTime] The updatedSince filter in the format YYYY-MM-DDThh:mm:ss+hh:mm
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @option opts [Integer] :page Page number. Default is 1. (default to 1)
|
153
|
+
# @option opts [Integer] :page_size Page size. Default is 100. Max allowable is 1000. (default to 100)
|
154
|
+
# @return [PayeeDeltaResponse]
|
155
|
+
def list_payee_changes(payor_id, updated_since, opts = {})
|
156
|
+
data, _status_code, _headers = list_payee_changes_with_http_info(payor_id, updated_since, opts)
|
157
|
+
data
|
158
|
+
end
|
159
|
+
|
160
|
+
# List Payee Changes
|
161
|
+
# Get a paginated response listing payee changes.
|
162
|
+
# @param payor_id [String] The Payor ID to find associated Payees
|
163
|
+
# @param updated_since [DateTime] The updatedSince filter in the format YYYY-MM-DDThh:mm:ss+hh:mm
|
164
|
+
# @param [Hash] opts the optional parameters
|
165
|
+
# @option opts [Integer] :page Page number. Default is 1.
|
166
|
+
# @option opts [Integer] :page_size Page size. Default is 100. Max allowable is 1000.
|
167
|
+
# @return [Array<(PayeeDeltaResponse, Integer, Hash)>] PayeeDeltaResponse data, response status code and response headers
|
168
|
+
def list_payee_changes_with_http_info(payor_id, updated_since, opts = {})
|
169
|
+
if @api_client.config.debugging
|
170
|
+
@api_client.config.logger.debug 'Calling API: PayeesApi.list_payee_changes ...'
|
171
|
+
end
|
172
|
+
# verify the required parameter 'payor_id' is set
|
173
|
+
if @api_client.config.client_side_validation && payor_id.nil?
|
174
|
+
fail ArgumentError, "Missing the required parameter 'payor_id' when calling PayeesApi.list_payee_changes"
|
175
|
+
end
|
176
|
+
# verify the required parameter 'updated_since' is set
|
177
|
+
if @api_client.config.client_side_validation && updated_since.nil?
|
178
|
+
fail ArgumentError, "Missing the required parameter 'updated_since' when calling PayeesApi.list_payee_changes"
|
179
|
+
end
|
180
|
+
# resource path
|
181
|
+
local_var_path = '/v1/deltas/payees'
|
182
|
+
|
183
|
+
# query parameters
|
184
|
+
query_params = opts[:query_params] || {}
|
185
|
+
query_params[:'payorId'] = payor_id
|
186
|
+
query_params[:'updatedSince'] = updated_since
|
187
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
188
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
189
|
+
|
190
|
+
# header parameters
|
191
|
+
header_params = opts[:header_params] || {}
|
192
|
+
# HTTP header 'Accept' (if needed)
|
193
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
194
|
+
|
195
|
+
# form parameters
|
196
|
+
form_params = opts[:form_params] || {}
|
197
|
+
|
198
|
+
# http body (model)
|
199
|
+
post_body = opts[:body]
|
200
|
+
|
201
|
+
# return_type
|
202
|
+
return_type = opts[:return_type] || 'PayeeDeltaResponse'
|
203
|
+
|
204
|
+
# auth_names
|
205
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
206
|
+
|
207
|
+
new_options = opts.merge(
|
208
|
+
:header_params => header_params,
|
209
|
+
:query_params => query_params,
|
210
|
+
:form_params => form_params,
|
211
|
+
:body => post_body,
|
212
|
+
:auth_names => auth_names,
|
213
|
+
:return_type => return_type
|
214
|
+
)
|
215
|
+
|
216
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
217
|
+
if @api_client.config.debugging
|
218
|
+
@api_client.config.logger.debug "API called: PayeesApi#list_payee_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
219
|
+
end
|
220
|
+
return data, status_code, headers
|
221
|
+
end
|
222
|
+
|
128
223
|
# List Payees
|
129
224
|
# Get a paginated response listing the payees for a payor.
|
130
225
|
# @param payor_id [String] The account owner Payor ID
|
@@ -177,7 +272,7 @@ module VeloPayments
|
|
177
272
|
local_var_path = '/v1/payees'
|
178
273
|
|
179
274
|
# query parameters
|
180
|
-
query_params = {}
|
275
|
+
query_params = opts[:query_params] || {}
|
181
276
|
query_params[:'payorId'] = payor_id
|
182
277
|
query_params[:'ofacStatus'] = opts[:'ofac_status'] if !opts[:'ofac_status'].nil?
|
183
278
|
query_params[:'onboardedStatus'] = opts[:'onboarded_status'] if !opts[:'onboarded_status'].nil?
|
@@ -191,23 +286,32 @@ module VeloPayments
|
|
191
286
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
192
287
|
|
193
288
|
# header parameters
|
194
|
-
header_params = {}
|
289
|
+
header_params = opts[:header_params] || {}
|
195
290
|
# HTTP header 'Accept' (if needed)
|
196
291
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
197
292
|
|
198
293
|
# form parameters
|
199
|
-
form_params = {}
|
294
|
+
form_params = opts[:form_params] || {}
|
200
295
|
|
201
296
|
# http body (model)
|
202
|
-
post_body =
|
203
|
-
|
204
|
-
|
297
|
+
post_body = opts[:body]
|
298
|
+
|
299
|
+
# return_type
|
300
|
+
return_type = opts[:return_type] || 'PayeeResponse'
|
301
|
+
|
302
|
+
# auth_names
|
303
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
304
|
+
|
305
|
+
new_options = opts.merge(
|
205
306
|
:header_params => header_params,
|
206
307
|
:query_params => query_params,
|
207
308
|
:form_params => form_params,
|
208
309
|
:body => post_body,
|
209
310
|
:auth_names => auth_names,
|
210
|
-
:return_type =>
|
311
|
+
:return_type => return_type
|
312
|
+
)
|
313
|
+
|
314
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
211
315
|
if @api_client.config.debugging
|
212
316
|
@api_client.config.logger.debug "API called: PayeesApi#list_payees\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
213
317
|
end
|