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 PayorApplicationsApi
|
@@ -55,31 +55,40 @@ module VeloPayments
|
|
55
55
|
fail ArgumentError, "Missing the required parameter 'payor_create_api_key_request' when calling PayorApplicationsApi.payor_create_api_key_request"
|
56
56
|
end
|
57
57
|
# resource path
|
58
|
-
local_var_path = '/v1/payors/{payorId}/applications/{applicationId}/keys'.sub('{' + 'payorId' + '}', payor_id.to_s).sub('{' + 'applicationId' + '}', application_id.to_s)
|
58
|
+
local_var_path = '/v1/payors/{payorId}/applications/{applicationId}/keys'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s).gsub('%2F', '/')).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s).gsub('%2F', '/'))
|
59
59
|
|
60
60
|
# query parameters
|
61
|
-
query_params = {}
|
61
|
+
query_params = opts[:query_params] || {}
|
62
62
|
|
63
63
|
# header parameters
|
64
|
-
header_params = {}
|
64
|
+
header_params = opts[:header_params] || {}
|
65
65
|
# HTTP header 'Accept' (if needed)
|
66
66
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
67
67
|
# HTTP header 'Content-Type'
|
68
68
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
69
69
|
|
70
70
|
# form parameters
|
71
|
-
form_params = {}
|
71
|
+
form_params = opts[:form_params] || {}
|
72
72
|
|
73
73
|
# http body (model)
|
74
|
-
post_body = @api_client.object_to_http_body(payor_create_api_key_request)
|
75
|
-
|
76
|
-
|
74
|
+
post_body = opts[:body] || @api_client.object_to_http_body(payor_create_api_key_request)
|
75
|
+
|
76
|
+
# return_type
|
77
|
+
return_type = opts[:return_type] || 'PayorCreateApiKeyResponse'
|
78
|
+
|
79
|
+
# auth_names
|
80
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
81
|
+
|
82
|
+
new_options = opts.merge(
|
77
83
|
:header_params => header_params,
|
78
84
|
:query_params => query_params,
|
79
85
|
:form_params => form_params,
|
80
86
|
:body => post_body,
|
81
87
|
:auth_names => auth_names,
|
82
|
-
:return_type =>
|
88
|
+
:return_type => return_type
|
89
|
+
)
|
90
|
+
|
91
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
83
92
|
if @api_client.config.debugging
|
84
93
|
@api_client.config.logger.debug "API called: PayorApplicationsApi#payor_create_api_key_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
85
94
|
end
|
@@ -87,7 +96,7 @@ module VeloPayments
|
|
87
96
|
end
|
88
97
|
|
89
98
|
# Create Application
|
90
|
-
# Create an application for the given Payor ID
|
99
|
+
# Create an application for the given Payor ID. Applications are programatic users which can be assigned unique keys.
|
91
100
|
# @param payor_id [String] The account owner Payor ID
|
92
101
|
# @param payor_create_application_request [PayorCreateApplicationRequest] Details of application to create
|
93
102
|
# @param [Hash] opts the optional parameters
|
@@ -98,7 +107,7 @@ module VeloPayments
|
|
98
107
|
end
|
99
108
|
|
100
109
|
# Create Application
|
101
|
-
# Create an application for the given Payor ID
|
110
|
+
# Create an application for the given Payor ID. Applications are programatic users which can be assigned unique keys.
|
102
111
|
# @param payor_id [String] The account owner Payor ID
|
103
112
|
# @param payor_create_application_request [PayorCreateApplicationRequest] Details of application to create
|
104
113
|
# @param [Hash] opts the optional parameters
|
@@ -116,28 +125,38 @@ module VeloPayments
|
|
116
125
|
fail ArgumentError, "Missing the required parameter 'payor_create_application_request' when calling PayorApplicationsApi.payor_create_application_request"
|
117
126
|
end
|
118
127
|
# resource path
|
119
|
-
local_var_path = '/v1/payors/{payorId}/applications'.sub('{' + 'payorId' + '}', payor_id.to_s)
|
128
|
+
local_var_path = '/v1/payors/{payorId}/applications'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s).gsub('%2F', '/'))
|
120
129
|
|
121
130
|
# query parameters
|
122
|
-
query_params = {}
|
131
|
+
query_params = opts[:query_params] || {}
|
123
132
|
|
124
133
|
# header parameters
|
125
|
-
header_params = {}
|
134
|
+
header_params = opts[:header_params] || {}
|
126
135
|
# HTTP header 'Content-Type'
|
127
136
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
128
137
|
|
129
138
|
# form parameters
|
130
|
-
form_params = {}
|
139
|
+
form_params = opts[:form_params] || {}
|
131
140
|
|
132
141
|
# http body (model)
|
133
|
-
post_body = @api_client.object_to_http_body(payor_create_application_request)
|
134
|
-
|
135
|
-
|
142
|
+
post_body = opts[:body] || @api_client.object_to_http_body(payor_create_application_request)
|
143
|
+
|
144
|
+
# return_type
|
145
|
+
return_type = opts[:return_type]
|
146
|
+
|
147
|
+
# auth_names
|
148
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
149
|
+
|
150
|
+
new_options = opts.merge(
|
136
151
|
:header_params => header_params,
|
137
152
|
:query_params => query_params,
|
138
153
|
:form_params => form_params,
|
139
154
|
:body => post_body,
|
140
|
-
:auth_names => auth_names
|
155
|
+
:auth_names => auth_names,
|
156
|
+
:return_type => return_type
|
157
|
+
)
|
158
|
+
|
159
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
141
160
|
if @api_client.config.debugging
|
142
161
|
@api_client.config.logger.debug "API called: PayorApplicationsApi#payor_create_application_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
143
162
|
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 PayorsApi
|
@@ -20,20 +20,20 @@ module VeloPayments
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Get Payor
|
23
|
-
# Get a Single Payor by Id
|
23
|
+
# Get a Single Payor by Id.
|
24
24
|
# @param payor_id [String] The account owner Payor ID
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [PayorV1]
|
27
27
|
def get_payor_by_id(payor_id, opts = {})
|
28
28
|
data, _status_code, _headers = get_payor_by_id_with_http_info(payor_id, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
32
|
# Get Payor
|
33
|
-
# Get a Single Payor by Id
|
33
|
+
# Get a Single Payor by Id.
|
34
34
|
# @param payor_id [String] The account owner Payor ID
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(PayorV1, Integer, Hash)>] PayorV1 data, response status code and response headers
|
37
37
|
def get_payor_by_id_with_http_info(payor_id, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: PayorsApi.get_payor_by_id ...'
|
@@ -43,37 +43,108 @@ module VeloPayments
|
|
43
43
|
fail ArgumentError, "Missing the required parameter 'payor_id' when calling PayorsApi.get_payor_by_id"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '/v1/payors/{payorId}'.sub('{' + 'payorId' + '}', payor_id.to_s)
|
46
|
+
local_var_path = '/v1/payors/{payorId}'.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] || 'PayorV1'
|
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: PayorsApi#get_payor_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
80
|
end
|
72
81
|
return data, status_code, headers
|
73
82
|
end
|
74
83
|
|
84
|
+
# Get Payor
|
85
|
+
# Get a Single Payor by Id.
|
86
|
+
# @param payor_id [String] The account owner Payor ID
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @return [PayorV2]
|
89
|
+
def get_payor_by_id_v2(payor_id, opts = {})
|
90
|
+
data, _status_code, _headers = get_payor_by_id_v2_with_http_info(payor_id, opts)
|
91
|
+
data
|
92
|
+
end
|
93
|
+
|
94
|
+
# Get Payor
|
95
|
+
# Get a Single Payor by Id.
|
96
|
+
# @param payor_id [String] The account owner Payor ID
|
97
|
+
# @param [Hash] opts the optional parameters
|
98
|
+
# @return [Array<(PayorV2, Integer, Hash)>] PayorV2 data, response status code and response headers
|
99
|
+
def get_payor_by_id_v2_with_http_info(payor_id, opts = {})
|
100
|
+
if @api_client.config.debugging
|
101
|
+
@api_client.config.logger.debug 'Calling API: PayorsApi.get_payor_by_id_v2 ...'
|
102
|
+
end
|
103
|
+
# verify the required parameter 'payor_id' is set
|
104
|
+
if @api_client.config.client_side_validation && payor_id.nil?
|
105
|
+
fail ArgumentError, "Missing the required parameter 'payor_id' when calling PayorsApi.get_payor_by_id_v2"
|
106
|
+
end
|
107
|
+
# resource path
|
108
|
+
local_var_path = '/v2/payors/{payorId}'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s).gsub('%2F', '/'))
|
109
|
+
|
110
|
+
# query parameters
|
111
|
+
query_params = opts[:query_params] || {}
|
112
|
+
|
113
|
+
# header parameters
|
114
|
+
header_params = opts[:header_params] || {}
|
115
|
+
# HTTP header 'Accept' (if needed)
|
116
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
117
|
+
|
118
|
+
# form parameters
|
119
|
+
form_params = opts[:form_params] || {}
|
120
|
+
|
121
|
+
# http body (model)
|
122
|
+
post_body = opts[:body]
|
123
|
+
|
124
|
+
# return_type
|
125
|
+
return_type = opts[:return_type] || 'PayorV2'
|
126
|
+
|
127
|
+
# auth_names
|
128
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
129
|
+
|
130
|
+
new_options = opts.merge(
|
131
|
+
:header_params => header_params,
|
132
|
+
:query_params => query_params,
|
133
|
+
:form_params => form_params,
|
134
|
+
:body => post_body,
|
135
|
+
:auth_names => auth_names,
|
136
|
+
:return_type => return_type
|
137
|
+
)
|
138
|
+
|
139
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
140
|
+
if @api_client.config.debugging
|
141
|
+
@api_client.config.logger.debug "API called: PayorsApi#get_payor_by_id_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
|
+
end
|
143
|
+
return data, status_code, headers
|
144
|
+
end
|
145
|
+
|
75
146
|
# Add Logo
|
76
|
-
# Add Payor Logo
|
147
|
+
# Add Payor Logo. Logo file is used in your branding, and emails sent to payees.
|
77
148
|
# @param payor_id [String] The account owner Payor ID
|
78
149
|
# @param [Hash] opts the optional parameters
|
79
150
|
# @option opts [File] :logo
|
@@ -84,7 +155,7 @@ module VeloPayments
|
|
84
155
|
end
|
85
156
|
|
86
157
|
# Add Logo
|
87
|
-
# Add Payor Logo
|
158
|
+
# Add Payor Logo. Logo file is used in your branding, and emails sent to payees.
|
88
159
|
# @param payor_id [String] The account owner Payor ID
|
89
160
|
# @param [Hash] opts the optional parameters
|
90
161
|
# @option opts [File] :logo
|
@@ -98,29 +169,39 @@ module VeloPayments
|
|
98
169
|
fail ArgumentError, "Missing the required parameter 'payor_id' when calling PayorsApi.payor_add_payor_logo"
|
99
170
|
end
|
100
171
|
# resource path
|
101
|
-
local_var_path = '/v1/payors/{payorId}/branding/logos'.sub('{' + 'payorId' + '}', payor_id.to_s)
|
172
|
+
local_var_path = '/v1/payors/{payorId}/branding/logos'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s).gsub('%2F', '/'))
|
102
173
|
|
103
174
|
# query parameters
|
104
|
-
query_params = {}
|
175
|
+
query_params = opts[:query_params] || {}
|
105
176
|
|
106
177
|
# header parameters
|
107
|
-
header_params = {}
|
178
|
+
header_params = opts[:header_params] || {}
|
108
179
|
# HTTP header 'Content-Type'
|
109
180
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
110
181
|
|
111
182
|
# form parameters
|
112
|
-
form_params = {}
|
183
|
+
form_params = opts[:form_params] || {}
|
113
184
|
form_params['logo'] = opts[:'logo'] if !opts[:'logo'].nil?
|
114
185
|
|
115
186
|
# http body (model)
|
116
|
-
post_body =
|
117
|
-
|
118
|
-
|
187
|
+
post_body = opts[:body]
|
188
|
+
|
189
|
+
# return_type
|
190
|
+
return_type = opts[:return_type]
|
191
|
+
|
192
|
+
# auth_names
|
193
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
194
|
+
|
195
|
+
new_options = opts.merge(
|
119
196
|
:header_params => header_params,
|
120
197
|
:query_params => query_params,
|
121
198
|
:form_params => form_params,
|
122
199
|
:body => post_body,
|
123
|
-
:auth_names => auth_names
|
200
|
+
:auth_names => auth_names,
|
201
|
+
:return_type => return_type
|
202
|
+
)
|
203
|
+
|
204
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
124
205
|
if @api_client.config.debugging
|
125
206
|
@api_client.config.logger.debug "API called: PayorsApi#payor_add_payor_logo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
126
207
|
end
|
@@ -130,7 +211,7 @@ module VeloPayments
|
|
130
211
|
# Reminder Email Opt-Out
|
131
212
|
# Update the emailRemindersOptOut field for a Payor. This API can be used to opt out or opt into Payor Reminder emails. These emails are typically around payee events such as payees registering and onboarding.
|
132
213
|
# @param payor_id [String] The account owner Payor ID
|
133
|
-
# @param payor_email_opt_out_request [PayorEmailOptOutRequest]
|
214
|
+
# @param payor_email_opt_out_request [PayorEmailOptOutRequest] Reminder Emails Opt-Out Request
|
134
215
|
# @param [Hash] opts the optional parameters
|
135
216
|
# @return [nil]
|
136
217
|
def payor_email_opt_out(payor_id, payor_email_opt_out_request, opts = {})
|
@@ -141,7 +222,7 @@ module VeloPayments
|
|
141
222
|
# Reminder Email Opt-Out
|
142
223
|
# Update the emailRemindersOptOut field for a Payor. This API can be used to opt out or opt into Payor Reminder emails. These emails are typically around payee events such as payees registering and onboarding.
|
143
224
|
# @param payor_id [String] The account owner Payor ID
|
144
|
-
# @param payor_email_opt_out_request [PayorEmailOptOutRequest]
|
225
|
+
# @param payor_email_opt_out_request [PayorEmailOptOutRequest] Reminder Emails Opt-Out Request
|
145
226
|
# @param [Hash] opts the optional parameters
|
146
227
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
147
228
|
def payor_email_opt_out_with_http_info(payor_id, payor_email_opt_out_request, opts = {})
|
@@ -157,28 +238,38 @@ module VeloPayments
|
|
157
238
|
fail ArgumentError, "Missing the required parameter 'payor_email_opt_out_request' when calling PayorsApi.payor_email_opt_out"
|
158
239
|
end
|
159
240
|
# resource path
|
160
|
-
local_var_path = '/v1/payors/{payorId}/reminderEmailsUpdate'.sub('{' + 'payorId' + '}', payor_id.to_s)
|
241
|
+
local_var_path = '/v1/payors/{payorId}/reminderEmailsUpdate'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s).gsub('%2F', '/'))
|
161
242
|
|
162
243
|
# query parameters
|
163
|
-
query_params = {}
|
244
|
+
query_params = opts[:query_params] || {}
|
164
245
|
|
165
246
|
# header parameters
|
166
|
-
header_params = {}
|
247
|
+
header_params = opts[:header_params] || {}
|
167
248
|
# HTTP header 'Content-Type'
|
168
249
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
169
250
|
|
170
251
|
# form parameters
|
171
|
-
form_params = {}
|
252
|
+
form_params = opts[:form_params] || {}
|
172
253
|
|
173
254
|
# http body (model)
|
174
|
-
post_body = @api_client.object_to_http_body(payor_email_opt_out_request)
|
175
|
-
|
176
|
-
|
255
|
+
post_body = opts[:body] || @api_client.object_to_http_body(payor_email_opt_out_request)
|
256
|
+
|
257
|
+
# return_type
|
258
|
+
return_type = opts[:return_type]
|
259
|
+
|
260
|
+
# auth_names
|
261
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
262
|
+
|
263
|
+
new_options = opts.merge(
|
177
264
|
:header_params => header_params,
|
178
265
|
:query_params => query_params,
|
179
266
|
:form_params => form_params,
|
180
267
|
:body => post_body,
|
181
|
-
:auth_names => auth_names
|
268
|
+
:auth_names => auth_names,
|
269
|
+
:return_type => return_type
|
270
|
+
)
|
271
|
+
|
272
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
182
273
|
if @api_client.config.debugging
|
183
274
|
@api_client.config.logger.debug "API called: PayorsApi#payor_email_opt_out\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
184
275
|
end
|
@@ -209,33 +300,108 @@ module VeloPayments
|
|
209
300
|
fail ArgumentError, "Missing the required parameter 'payor_id' when calling PayorsApi.payor_get_branding"
|
210
301
|
end
|
211
302
|
# resource path
|
212
|
-
local_var_path = '/v1/payors/{payorId}/branding'.sub('{' + 'payorId' + '}', payor_id.to_s)
|
303
|
+
local_var_path = '/v1/payors/{payorId}/branding'.sub('{' + 'payorId' + '}', CGI.escape(payor_id.to_s).gsub('%2F', '/'))
|
213
304
|
|
214
305
|
# query parameters
|
215
|
-
query_params = {}
|
306
|
+
query_params = opts[:query_params] || {}
|
216
307
|
|
217
308
|
# header parameters
|
218
|
-
header_params = {}
|
309
|
+
header_params = opts[:header_params] || {}
|
219
310
|
# HTTP header 'Accept' (if needed)
|
220
311
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
221
312
|
|
222
313
|
# form parameters
|
223
|
-
form_params = {}
|
314
|
+
form_params = opts[:form_params] || {}
|
224
315
|
|
225
316
|
# http body (model)
|
226
|
-
post_body =
|
227
|
-
|
228
|
-
|
317
|
+
post_body = opts[:body]
|
318
|
+
|
319
|
+
# return_type
|
320
|
+
return_type = opts[:return_type] || 'PayorBrandingResponse'
|
321
|
+
|
322
|
+
# auth_names
|
323
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
324
|
+
|
325
|
+
new_options = opts.merge(
|
229
326
|
:header_params => header_params,
|
230
327
|
:query_params => query_params,
|
231
328
|
:form_params => form_params,
|
232
329
|
:body => post_body,
|
233
330
|
:auth_names => auth_names,
|
234
|
-
:return_type =>
|
331
|
+
:return_type => return_type
|
332
|
+
)
|
333
|
+
|
334
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
235
335
|
if @api_client.config.debugging
|
236
336
|
@api_client.config.logger.debug "API called: PayorsApi#payor_get_branding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
237
337
|
end
|
238
338
|
return data, status_code, headers
|
239
339
|
end
|
340
|
+
|
341
|
+
# List Payor Links
|
342
|
+
# This endpoint allows you to list payor links
|
343
|
+
# @param descendants_of_payor [String] The Payor ID from which to start the query to show all descendants
|
344
|
+
# @param [Hash] opts the optional parameters
|
345
|
+
# @option opts [String] :fields List of additional Payor fields to include in the response for each Payor. The values of payorId and payorName and always included for each Payor - 'fields' allows you to add to this. Example: ```fields=primaryContactEmail,kycState``` - will include payorId+payorName+primaryContactEmail+kycState for each Payor Default if not specified is to include only payorId and payorName. The supported fields are any combination of: primaryContactEmail,kycState
|
346
|
+
# @return [PayorLinksResponse]
|
347
|
+
def payor_links(descendants_of_payor, opts = {})
|
348
|
+
data, _status_code, _headers = payor_links_with_http_info(descendants_of_payor, opts)
|
349
|
+
data
|
350
|
+
end
|
351
|
+
|
352
|
+
# List Payor Links
|
353
|
+
# This endpoint allows you to list payor links
|
354
|
+
# @param descendants_of_payor [String] The Payor ID from which to start the query to show all descendants
|
355
|
+
# @param [Hash] opts the optional parameters
|
356
|
+
# @option opts [String] :fields List of additional Payor fields to include in the response for each Payor. The values of payorId and payorName and always included for each Payor - 'fields' allows you to add to this. Example: ```fields=primaryContactEmail,kycState``` - will include payorId+payorName+primaryContactEmail+kycState for each Payor Default if not specified is to include only payorId and payorName. The supported fields are any combination of: primaryContactEmail,kycState
|
357
|
+
# @return [Array<(PayorLinksResponse, Integer, Hash)>] PayorLinksResponse data, response status code and response headers
|
358
|
+
def payor_links_with_http_info(descendants_of_payor, opts = {})
|
359
|
+
if @api_client.config.debugging
|
360
|
+
@api_client.config.logger.debug 'Calling API: PayorsApi.payor_links ...'
|
361
|
+
end
|
362
|
+
# verify the required parameter 'descendants_of_payor' is set
|
363
|
+
if @api_client.config.client_side_validation && descendants_of_payor.nil?
|
364
|
+
fail ArgumentError, "Missing the required parameter 'descendants_of_payor' when calling PayorsApi.payor_links"
|
365
|
+
end
|
366
|
+
# resource path
|
367
|
+
local_var_path = '/v1/payorLinks'
|
368
|
+
|
369
|
+
# query parameters
|
370
|
+
query_params = opts[:query_params] || {}
|
371
|
+
query_params[:'descendantsOfPayor'] = descendants_of_payor
|
372
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
373
|
+
|
374
|
+
# header parameters
|
375
|
+
header_params = opts[:header_params] || {}
|
376
|
+
# HTTP header 'Accept' (if needed)
|
377
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
378
|
+
|
379
|
+
# form parameters
|
380
|
+
form_params = opts[:form_params] || {}
|
381
|
+
|
382
|
+
# http body (model)
|
383
|
+
post_body = opts[:body]
|
384
|
+
|
385
|
+
# return_type
|
386
|
+
return_type = opts[:return_type] || 'PayorLinksResponse'
|
387
|
+
|
388
|
+
# auth_names
|
389
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
390
|
+
|
391
|
+
new_options = opts.merge(
|
392
|
+
:header_params => header_params,
|
393
|
+
:query_params => query_params,
|
394
|
+
:form_params => form_params,
|
395
|
+
:body => post_body,
|
396
|
+
:auth_names => auth_names,
|
397
|
+
:return_type => return_type
|
398
|
+
)
|
399
|
+
|
400
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
401
|
+
if @api_client.config.debugging
|
402
|
+
@api_client.config.logger.debug "API called: PayorsApi#payor_links\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
403
|
+
end
|
404
|
+
return data, status_code, headers
|
405
|
+
end
|
240
406
|
end
|
241
407
|
end
|