melio-platform-api-client 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of melio-platform-api-client might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +132 -0
- data/Rakefile +10 -0
- data/docs/Account.md +26 -0
- data/docs/AccountAllOf.md +22 -0
- data/docs/AccountsApi.md +224 -0
- data/docs/AddToMyVendorParameters.md +18 -0
- data/docs/AddToMyVendorParametersDeliveryMethod.md +20 -0
- data/docs/AddToMyVendorParametersDeliveryMethodBillerAccount.md +18 -0
- data/docs/Address.md +26 -0
- data/docs/Adjustment.md +20 -0
- data/docs/AuthApi.md +83 -0
- data/docs/BankAccount.md +22 -0
- data/docs/BankAccountType.md +15 -0
- data/docs/BillerAccount.md +18 -0
- data/docs/Card.md +24 -0
- data/docs/Charge.md +32 -0
- data/docs/ChargeAllOf.md +28 -0
- data/docs/ChargesApi.md +317 -0
- data/docs/Checkout.md +66 -0
- data/docs/CheckoutAllOf.md +62 -0
- data/docs/CheckoutAllOfBuyer.md +26 -0
- data/docs/CheckoutsApi.md +327 -0
- data/docs/Company.md +28 -0
- data/docs/ConfirmPaymentIntentsResponse.md +18 -0
- data/docs/Currency.md +15 -0
- data/docs/DeletedResponse.md +18 -0
- data/docs/DeliveryMethod.md +24 -0
- data/docs/DeliveryMethodAllOf.md +20 -0
- data/docs/DeliveryMethodDetails.md +55 -0
- data/docs/DeliveryMethodType.md +15 -0
- data/docs/DeliveryMethodsApi.md +485 -0
- data/docs/DeliveryPreference.md +28 -0
- data/docs/DeliveryPreferenceType.md +15 -0
- data/docs/DomesticWireAccount.md +22 -0
- data/docs/DomesticWireAccountAddress.md +22 -0
- data/docs/ErrorResponse.md +18 -0
- data/docs/FileInfo.md +22 -0
- data/docs/FileInfoAllOf.md +18 -0
- data/docs/FilesApi.md +317 -0
- data/docs/Financing.md +24 -0
- data/docs/FinancingApi.md +246 -0
- data/docs/FinancingDropdownOptions.md +20 -0
- data/docs/FinancingFields.md +28 -0
- data/docs/FundingSource.md +26 -0
- data/docs/FundingSourceAllOf.md +22 -0
- data/docs/FundingSourceDetails.md +49 -0
- data/docs/FundingSourceType.md +15 -0
- data/docs/FundingSourcesApi.md +325 -0
- data/docs/GetAccountsAccountIdResponse.md +18 -0
- data/docs/GetAccountsResponse.md +18 -0
- data/docs/GetChargesChargeIdResponse.md +18 -0
- data/docs/GetChargesResponse.md +18 -0
- data/docs/GetCheckoutsCheckoutIdResponse.md +18 -0
- data/docs/GetDeliveryMethodsDeliveryMethodIdResponse.md +18 -0
- data/docs/GetDeliveryMethodsResponse.md +18 -0
- data/docs/GetFilesFileIdDataResponse.md +18 -0
- data/docs/GetFilesFileIdDataResponseData.md +26 -0
- data/docs/GetFilesFileIdDataResponseDataCustomerInfo.md +18 -0
- data/docs/GetFilesFileIdDataResponseDataInvoiceInfo.md +20 -0
- data/docs/GetFilesFileIdDataResponseDataVendorInfo.md +20 -0
- data/docs/GetFilesFileIdResponse.md +18 -0
- data/docs/GetFilesResponse.md +18 -0
- data/docs/GetFinancingResponse.md +18 -0
- data/docs/GetFundingSourcesFundingSourceIdResponse.md +18 -0
- data/docs/GetFundingSourcesResponse.md +18 -0
- data/docs/GetPaymentIntentsPaymentIntentIdResponse.md +18 -0
- data/docs/GetPaymentIntentsResponse.md +18 -0
- data/docs/GetPaymentsPaymentIdResponse.md +18 -0
- data/docs/GetPaymentsResponse.md +18 -0
- data/docs/GetVendorDirectoryResponse.md +18 -0
- data/docs/GetVendorsResponse.md +18 -0
- data/docs/GetVendorsVendorIdDeliveryMethodsResponse.md +18 -0
- data/docs/GetVendorsVendorIdResponse.md +18 -0
- data/docs/GetWebhooksCheckoutsResponse.md +18 -0
- data/docs/GetWebhooksPaymentsResponse.md +18 -0
- data/docs/GetWebhooksResponse.md +18 -0
- data/docs/Invoice.md +20 -0
- data/docs/LineItem.md +30 -0
- data/docs/Merchant.md +38 -0
- data/docs/MerchantAllOf.md +34 -0
- data/docs/MerchantsApi.md +85 -0
- data/docs/ModelError.md +22 -0
- data/docs/ModelErrorAllOf.md +20 -0
- data/docs/Object.md +20 -0
- data/docs/PaperCheck.md +20 -0
- data/docs/PartialAddress.md +26 -0
- data/docs/PatchChargesChargeIdRequest.md +18 -0
- data/docs/PatchChargesChargeIdResponse.md +18 -0
- data/docs/PatchPaymentIntentsPaymentIntentIdRequest.md +30 -0
- data/docs/PatchPaymentIntentsPaymentIntentIdRequestBillInfo.md +26 -0
- data/docs/PatchPaymentIntentsPaymentIntentIdResponse.md +18 -0
- data/docs/PatchVendorsVendorIdRequest.md +20 -0
- data/docs/PatchVendorsVendorIdRequestContact.md +22 -0
- data/docs/PatchVendorsVendorIdResponse.md +18 -0
- data/docs/Payment.md +48 -0
- data/docs/PaymentAllOf.md +44 -0
- data/docs/PaymentFee.md +20 -0
- data/docs/PaymentIntent.md +46 -0
- data/docs/PaymentIntentAllOf.md +42 -0
- data/docs/PaymentIntentAllOfBillInfo.md +30 -0
- data/docs/PaymentIntentsApi.md +483 -0
- data/docs/PaymentsApi.md +325 -0
- data/docs/Person.md +22 -0
- data/docs/PlaidDetails.md +20 -0
- data/docs/PostAccountsRequest.md +22 -0
- data/docs/PostAccountsResponse.md +18 -0
- data/docs/PostAuthResponse.md +18 -0
- data/docs/PostAuthResponseData.md +22 -0
- data/docs/PostCheckoutsCheckoutIdCaptureRequest.md +22 -0
- data/docs/PostCheckoutsCheckoutIdCaptureRequestInvoice.md +20 -0
- data/docs/PostCheckoutsCheckoutIdCompleteRequest.md +24 -0
- data/docs/PostCheckoutsRequest.md +48 -0
- data/docs/PostCheckoutsResponse.md +18 -0
- data/docs/PostDeliveryMethodsRequest.md +20 -0
- data/docs/PostDeliveryMethodsRequestDetails.md +53 -0
- data/docs/PostDeliveryMethodsResponse.md +18 -0
- data/docs/PostFilesResponse.md +18 -0
- data/docs/PostFinancingRequest.md +18 -0
- data/docs/PostFinancingRequestFields.md +20 -0
- data/docs/PostFinancingResponse.md +18 -0
- data/docs/PostFinancingTransactionalRequest.md +20 -0
- data/docs/PostFinancingTransactionalResponse.md +18 -0
- data/docs/PostFinancingTransactionalResponseData.md +20 -0
- data/docs/PostFundingSourcesRequest.md +22 -0
- data/docs/PostFundingSourcesRequestDetails.md +51 -0
- data/docs/PostFundingSourcesResponse.md +18 -0
- data/docs/PostMerchantsRequest.md +32 -0
- data/docs/PostMerchantsResponse.md +18 -0
- data/docs/PostPaymentIntentsBulkRequest.md +18 -0
- data/docs/PostPaymentIntentsBulkResponse.md +18 -0
- data/docs/PostPaymentIntentsPaymentIntentIdPaymentResponse.md +18 -0
- data/docs/PostPaymentIntentsRequest.md +30 -0
- data/docs/PostPaymentIntentsRequestBillInfo.md +26 -0
- data/docs/PostPaymentIntentsResponse.md +18 -0
- data/docs/PostPaymentsPaymentIdRecoverRequest.md +26 -0
- data/docs/PostPaymentsPaymentIdRecoverResponse.md +18 -0
- data/docs/PostVendorsBulkRequest.md +18 -0
- data/docs/PostVendorsBulkResponse.md +18 -0
- data/docs/PostVendorsFromVendorDirectoryRequest.md +20 -0
- data/docs/PostVendorsFromVendorDirectoryRequestDeliveryMethod.md +20 -0
- data/docs/PostVendorsFromVendorDirectoryResponse.md +18 -0
- data/docs/PostVendorsRequest.md +20 -0
- data/docs/PostVendorsResponse.md +18 -0
- data/docs/PostVendorsVendorIdDeliveryMethodsResponse.md +18 -0
- data/docs/PostWebhooksCheckoutsRequest.md +18 -0
- data/docs/PostWebhooksCheckoutsResponse.md +18 -0
- data/docs/PostWebhooksPaymentsRequest.md +18 -0
- data/docs/PostWebhooksPaymentsResponse.md +18 -0
- data/docs/PutPaymentIntentsRequest.md +36 -0
- data/docs/PutPaymentIntentsResponse.md +18 -0
- data/docs/RecoverPaymentRequest.md +36 -0
- data/docs/RecoverPaymentResponse.md +18 -0
- data/docs/ShortHistory.md +22 -0
- data/docs/TabaPayDetails.md +30 -0
- data/docs/TabaPayDetailsCardOwner.md +20 -0
- data/docs/TaxInfo.md +20 -0
- data/docs/Vendor.md +26 -0
- data/docs/VendorAllOf.md +22 -0
- data/docs/VendorAllOfContact.md +22 -0
- data/docs/VendorDirectory.md +26 -0
- data/docs/VendorDirectoryApi.md +169 -0
- data/docs/VendorDirectoryContact.md +24 -0
- data/docs/VendorDirectoryDeliveryMethod.md +18 -0
- data/docs/VendorDirectoryNotFoundResponse.md +18 -0
- data/docs/VendorsApi.md +806 -0
- data/docs/VirtualAccount.md +22 -0
- data/docs/Webhook.md +20 -0
- data/docs/WebhooksApi.md +510 -0
- data/docs/WithUnknownData.md +18 -0
- data/lib/melio-platform-api-client/api/accounts_api.rb +213 -0
- data/lib/melio-platform-api-client/api/auth_api.rb +89 -0
- data/lib/melio-platform-api-client/api/charges_api.rb +307 -0
- data/lib/melio-platform-api-client/api/checkouts_api.rb +328 -0
- data/lib/melio-platform-api-client/api/delivery_methods_api.rb +439 -0
- data/lib/melio-platform-api-client/api/files_api.rb +284 -0
- data/lib/melio-platform-api-client/api/financing_api.rb +230 -0
- data/lib/melio-platform-api-client/api/funding_sources_api.rb +295 -0
- data/lib/melio-platform-api-client/api/merchants_api.rb +96 -0
- data/lib/melio-platform-api-client/api/payment_intents_api.rb +443 -0
- data/lib/melio-platform-api-client/api/payments_api.rb +294 -0
- data/lib/melio-platform-api-client/api/vendor_directory_api.rb +170 -0
- data/lib/melio-platform-api-client/api/vendors_api.rb +738 -0
- data/lib/melio-platform-api-client/api/webhooks_api.rb +463 -0
- data/lib/melio-platform-api-client/api_client.rb +419 -0
- data/lib/melio-platform-api-client/api_error.rb +57 -0
- data/lib/melio-platform-api-client/configuration.rb +289 -0
- data/lib/melio-platform-api-client/models/account.rb +324 -0
- data/lib/melio-platform-api-client/models/account_all_of.rb +286 -0
- data/lib/melio-platform-api-client/models/add_to_my_vendor_parameters.rb +218 -0
- data/lib/melio-platform-api-client/models/add_to_my_vendor_parameters_delivery_method.rb +232 -0
- data/lib/melio-platform-api-client/models/add_to_my_vendor_parameters_delivery_method_biller_account.rb +224 -0
- data/lib/melio-platform-api-client/models/address.rb +277 -0
- data/lib/melio-platform-api-client/models/adjustment.rb +239 -0
- data/lib/melio-platform-api-client/models/bank_account.rb +254 -0
- data/lib/melio-platform-api-client/models/bank_account_type.rb +37 -0
- data/lib/melio-platform-api-client/models/biller_account.rb +223 -0
- data/lib/melio-platform-api-client/models/card.rb +339 -0
- data/lib/melio-platform-api-client/models/charge.rb +368 -0
- data/lib/melio-platform-api-client/models/charge_all_of.rb +330 -0
- data/lib/melio-platform-api-client/models/checkout.rb +588 -0
- data/lib/melio-platform-api-client/models/checkout_all_of.rb +550 -0
- data/lib/melio-platform-api-client/models/checkout_all_of_buyer.rb +265 -0
- data/lib/melio-platform-api-client/models/company.rb +295 -0
- data/lib/melio-platform-api-client/models/confirm_payment_intents_response.rb +223 -0
- data/lib/melio-platform-api-client/models/currency.rb +36 -0
- data/lib/melio-platform-api-client/models/deleted_response.rb +224 -0
- data/lib/melio-platform-api-client/models/delivery_method.rb +275 -0
- data/lib/melio-platform-api-client/models/delivery_method_all_of.rb +237 -0
- data/lib/melio-platform-api-client/models/delivery_method_details.rb +108 -0
- data/lib/melio-platform-api-client/models/delivery_method_type.rb +40 -0
- data/lib/melio-platform-api-client/models/delivery_preference.rb +283 -0
- data/lib/melio-platform-api-client/models/delivery_preference_type.rb +42 -0
- data/lib/melio-platform-api-client/models/domestic_wire_account.rb +252 -0
- data/lib/melio-platform-api-client/models/domestic_wire_account_address.rb +253 -0
- data/lib/melio-platform-api-client/models/error_response.rb +224 -0
- data/lib/melio-platform-api-client/models/file_info.rb +261 -0
- data/lib/melio-platform-api-client/models/file_info_all_of.rb +223 -0
- data/lib/melio-platform-api-client/models/financing.rb +293 -0
- data/lib/melio-platform-api-client/models/financing_dropdown_options.rb +227 -0
- data/lib/melio-platform-api-client/models/financing_fields.rb +265 -0
- data/lib/melio-platform-api-client/models/funding_source.rb +280 -0
- data/lib/melio-platform-api-client/models/funding_source_all_of.rb +242 -0
- data/lib/melio-platform-api-client/models/funding_source_details.rb +105 -0
- data/lib/melio-platform-api-client/models/funding_source_type.rb +37 -0
- data/lib/melio-platform-api-client/models/get_accounts_account_id_response.rb +223 -0
- data/lib/melio-platform-api-client/models/get_accounts_response.rb +225 -0
- data/lib/melio-platform-api-client/models/get_charges_charge_id_response.rb +223 -0
- data/lib/melio-platform-api-client/models/get_charges_response.rb +225 -0
- data/lib/melio-platform-api-client/models/get_checkouts_checkout_id_response.rb +223 -0
- data/lib/melio-platform-api-client/models/get_delivery_methods_delivery_method_id_response.rb +223 -0
- data/lib/melio-platform-api-client/models/get_delivery_methods_response.rb +225 -0
- data/lib/melio-platform-api-client/models/get_files_file_id_data_response.rb +218 -0
- data/lib/melio-platform-api-client/models/get_files_file_id_data_response_data.rb +254 -0
- data/lib/melio-platform-api-client/models/get_files_file_id_data_response_data_customer_info.rb +218 -0
- data/lib/melio-platform-api-client/models/get_files_file_id_data_response_data_invoice_info.rb +227 -0
- data/lib/melio-platform-api-client/models/get_files_file_id_data_response_data_vendor_info.rb +227 -0
- data/lib/melio-platform-api-client/models/get_files_file_id_response.rb +223 -0
- data/lib/melio-platform-api-client/models/get_files_response.rb +225 -0
- data/lib/melio-platform-api-client/models/get_financing_response.rb +223 -0
- data/lib/melio-platform-api-client/models/get_funding_sources_funding_source_id_response.rb +223 -0
- data/lib/melio-platform-api-client/models/get_funding_sources_response.rb +225 -0
- data/lib/melio-platform-api-client/models/get_payment_intents_payment_intent_id_response.rb +223 -0
- data/lib/melio-platform-api-client/models/get_payment_intents_response.rb +225 -0
- data/lib/melio-platform-api-client/models/get_payments_payment_id_response.rb +223 -0
- data/lib/melio-platform-api-client/models/get_payments_response.rb +225 -0
- data/lib/melio-platform-api-client/models/get_vendor_directory_response.rb +225 -0
- data/lib/melio-platform-api-client/models/get_vendors_response.rb +225 -0
- data/lib/melio-platform-api-client/models/get_vendors_vendor_id_delivery_methods_response.rb +225 -0
- data/lib/melio-platform-api-client/models/get_vendors_vendor_id_response.rb +223 -0
- data/lib/melio-platform-api-client/models/get_webhooks_checkouts_response.rb +223 -0
- data/lib/melio-platform-api-client/models/get_webhooks_payments_response.rb +223 -0
- data/lib/melio-platform-api-client/models/get_webhooks_response.rb +225 -0
- data/lib/melio-platform-api-client/models/invoice.rb +234 -0
- data/lib/melio-platform-api-client/models/line_item.rb +316 -0
- data/lib/melio-platform-api-client/models/merchant.rb +335 -0
- data/lib/melio-platform-api-client/models/merchant_all_of.rb +297 -0
- data/lib/melio-platform-api-client/models/model_error.rb +256 -0
- data/lib/melio-platform-api-client/models/model_error_all_of.rb +237 -0
- data/lib/melio-platform-api-client/models/object.rb +238 -0
- data/lib/melio-platform-api-client/models/paper_check.rb +239 -0
- data/lib/melio-platform-api-client/models/partial_address.rb +258 -0
- data/lib/melio-platform-api-client/models/patch_charges_charge_id_request.rb +218 -0
- data/lib/melio-platform-api-client/models/patch_charges_charge_id_response.rb +223 -0
- data/lib/melio-platform-api-client/models/patch_payment_intents_payment_intent_id_request.rb +275 -0
- data/lib/melio-platform-api-client/models/patch_payment_intents_payment_intent_id_request_bill_info.rb +257 -0
- data/lib/melio-platform-api-client/models/patch_payment_intents_payment_intent_id_response.rb +223 -0
- data/lib/melio-platform-api-client/models/patch_vendors_vendor_id_request.rb +227 -0
- data/lib/melio-platform-api-client/models/patch_vendors_vendor_id_request_contact.rb +237 -0
- data/lib/melio-platform-api-client/models/patch_vendors_vendor_id_response.rb +223 -0
- data/lib/melio-platform-api-client/models/payment.rb +469 -0
- data/lib/melio-platform-api-client/models/payment_all_of.rb +431 -0
- data/lib/melio-platform-api-client/models/payment_fee.rb +237 -0
- data/lib/melio-platform-api-client/models/payment_intent.rb +450 -0
- data/lib/melio-platform-api-client/models/payment_intent_all_of.rb +412 -0
- data/lib/melio-platform-api-client/models/payment_intent_all_of_bill_info.rb +301 -0
- data/lib/melio-platform-api-client/models/person.rb +252 -0
- data/lib/melio-platform-api-client/models/plaid_details.rb +239 -0
- data/lib/melio-platform-api-client/models/post_accounts_request.rb +248 -0
- data/lib/melio-platform-api-client/models/post_accounts_response.rb +223 -0
- data/lib/melio-platform-api-client/models/post_auth_response.rb +223 -0
- data/lib/melio-platform-api-client/models/post_auth_response_data.rb +251 -0
- data/lib/melio-platform-api-client/models/post_checkouts_checkout_id_capture_request.rb +271 -0
- data/lib/melio-platform-api-client/models/post_checkouts_checkout_id_capture_request_invoice.rb +234 -0
- data/lib/melio-platform-api-client/models/post_checkouts_checkout_id_complete_request.rb +253 -0
- data/lib/melio-platform-api-client/models/post_checkouts_request.rb +438 -0
- data/lib/melio-platform-api-client/models/post_checkouts_response.rb +223 -0
- data/lib/melio-platform-api-client/models/post_delivery_methods_request.rb +237 -0
- data/lib/melio-platform-api-client/models/post_delivery_methods_request_details.rb +107 -0
- data/lib/melio-platform-api-client/models/post_delivery_methods_response.rb +223 -0
- data/lib/melio-platform-api-client/models/post_files_response.rb +223 -0
- data/lib/melio-platform-api-client/models/post_financing_request.rb +220 -0
- data/lib/melio-platform-api-client/models/post_financing_request_fields.rb +237 -0
- data/lib/melio-platform-api-client/models/post_financing_response.rb +223 -0
- data/lib/melio-platform-api-client/models/post_financing_transactional_request.rb +239 -0
- data/lib/melio-platform-api-client/models/post_financing_transactional_response.rb +224 -0
- data/lib/melio-platform-api-client/models/post_financing_transactional_response_data.rb +271 -0
- data/lib/melio-platform-api-client/models/post_funding_sources_request.rb +280 -0
- data/lib/melio-platform-api-client/models/post_funding_sources_request_details.rb +106 -0
- data/lib/melio-platform-api-client/models/post_funding_sources_response.rb +223 -0
- data/lib/melio-platform-api-client/models/post_merchants_request.rb +283 -0
- data/lib/melio-platform-api-client/models/post_merchants_response.rb +223 -0
- data/lib/melio-platform-api-client/models/post_payment_intents_bulk_request.rb +225 -0
- data/lib/melio-platform-api-client/models/post_payment_intents_bulk_response.rb +225 -0
- data/lib/melio-platform-api-client/models/post_payment_intents_payment_intent_id_payment_response.rb +223 -0
- data/lib/melio-platform-api-client/models/post_payment_intents_request.rb +285 -0
- data/lib/melio-platform-api-client/models/post_payment_intents_request_bill_info.rb +277 -0
- data/lib/melio-platform-api-client/models/post_payment_intents_response.rb +223 -0
- data/lib/melio-platform-api-client/models/post_payments_payment_id_recover_request.rb +276 -0
- data/lib/melio-platform-api-client/models/post_payments_payment_id_recover_response.rb +223 -0
- data/lib/melio-platform-api-client/models/post_vendors_bulk_request.rb +225 -0
- data/lib/melio-platform-api-client/models/post_vendors_bulk_response.rb +225 -0
- data/lib/melio-platform-api-client/models/post_vendors_from_vendor_directory_request.rb +232 -0
- data/lib/melio-platform-api-client/models/post_vendors_from_vendor_directory_request_delivery_method.rb +233 -0
- data/lib/melio-platform-api-client/models/post_vendors_from_vendor_directory_response.rb +223 -0
- data/lib/melio-platform-api-client/models/post_vendors_request.rb +238 -0
- data/lib/melio-platform-api-client/models/post_vendors_response.rb +223 -0
- data/lib/melio-platform-api-client/models/post_vendors_vendor_id_delivery_methods_response.rb +223 -0
- data/lib/melio-platform-api-client/models/post_webhooks_checkouts_request.rb +223 -0
- data/lib/melio-platform-api-client/models/post_webhooks_checkouts_response.rb +223 -0
- data/lib/melio-platform-api-client/models/post_webhooks_payments_request.rb +223 -0
- data/lib/melio-platform-api-client/models/post_webhooks_payments_response.rb +223 -0
- data/lib/melio-platform-api-client/models/put_payment_intents_request.rb +305 -0
- data/lib/melio-platform-api-client/models/put_payment_intents_response.rb +223 -0
- data/lib/melio-platform-api-client/models/recover_payment_request.rb +304 -0
- data/lib/melio-platform-api-client/models/recover_payment_response.rb +223 -0
- data/lib/melio-platform-api-client/models/short_history.rb +247 -0
- data/lib/melio-platform-api-client/models/taba_pay_details.rb +380 -0
- data/lib/melio-platform-api-client/models/taba_pay_details_card_owner.rb +237 -0
- data/lib/melio-platform-api-client/models/tax_info.rb +273 -0
- data/lib/melio-platform-api-client/models/vendor.rb +292 -0
- data/lib/melio-platform-api-client/models/vendor_all_of.rb +254 -0
- data/lib/melio-platform-api-client/models/vendor_all_of_contact.rb +254 -0
- data/lib/melio-platform-api-client/models/vendor_directory.rb +283 -0
- data/lib/melio-platform-api-client/models/vendor_directory_contact.rb +261 -0
- data/lib/melio-platform-api-client/models/vendor_directory_delivery_method.rb +223 -0
- data/lib/melio-platform-api-client/models/vendor_directory_not_found_response.rb +219 -0
- data/lib/melio-platform-api-client/models/virtual_account.rb +243 -0
- data/lib/melio-platform-api-client/models/webhook.rb +227 -0
- data/lib/melio-platform-api-client/models/with_unknown_data.rb +219 -0
- data/lib/melio-platform-api-client/version.rb +15 -0
- data/lib/melio-platform-api-client.rb +206 -0
- data/melio-platform-api-client.gemspec +38 -0
- data/spec/api/accounts_api_spec.rb +71 -0
- data/spec/api/auth_api_spec.rb +48 -0
- data/spec/api/charges_api_spec.rb +90 -0
- data/spec/api/checkouts_api_spec.rb +93 -0
- data/spec/api/delivery_methods_api_spec.rb +115 -0
- data/spec/api/files_api_spec.rb +85 -0
- data/spec/api/financing_api_spec.rb +75 -0
- data/spec/api/funding_sources_api_spec.rb +88 -0
- data/spec/api/merchants_api_spec.rb +49 -0
- data/spec/api/payment_intents_api_spec.rb +114 -0
- data/spec/api/payments_api_spec.rb +88 -0
- data/spec/api/vendor_directory_api_spec.rb +62 -0
- data/spec/api/vendors_api_spec.rb +170 -0
- data/spec/api/webhooks_api_spec.rb +118 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_all_of_spec.rb +50 -0
- data/spec/models/account_spec.rb +62 -0
- data/spec/models/add_to_my_vendor_parameters_delivery_method_biller_account_spec.rb +34 -0
- data/spec/models/add_to_my_vendor_parameters_delivery_method_spec.rb +40 -0
- data/spec/models/add_to_my_vendor_parameters_spec.rb +34 -0
- data/spec/models/address_spec.rb +58 -0
- data/spec/models/adjustment_spec.rb +40 -0
- data/spec/models/bank_account_spec.rb +46 -0
- data/spec/models/bank_account_type_spec.rb +28 -0
- data/spec/models/biller_account_spec.rb +34 -0
- data/spec/models/card_spec.rb +52 -0
- data/spec/models/charge_all_of_spec.rb +68 -0
- data/spec/models/charge_spec.rb +80 -0
- data/spec/models/checkout_all_of_buyer_spec.rb +58 -0
- data/spec/models/checkout_all_of_spec.rb +170 -0
- data/spec/models/checkout_spec.rb +182 -0
- data/spec/models/company_spec.rb +64 -0
- data/spec/models/confirm_payment_intents_response_spec.rb +34 -0
- data/spec/models/currency_spec.rb +28 -0
- data/spec/models/deleted_response_spec.rb +34 -0
- data/spec/models/delivery_method_all_of_spec.rb +40 -0
- data/spec/models/delivery_method_details_spec.rb +31 -0
- data/spec/models/delivery_method_spec.rb +52 -0
- data/spec/models/delivery_method_type_spec.rb +28 -0
- data/spec/models/delivery_preference_spec.rb +64 -0
- data/spec/models/delivery_preference_type_spec.rb +28 -0
- data/spec/models/domestic_wire_account_address_spec.rb +46 -0
- data/spec/models/domestic_wire_account_spec.rb +46 -0
- data/spec/models/error_response_spec.rb +34 -0
- data/spec/models/file_info_all_of_spec.rb +34 -0
- data/spec/models/file_info_spec.rb +46 -0
- data/spec/models/financing_dropdown_options_spec.rb +40 -0
- data/spec/models/financing_fields_spec.rb +64 -0
- data/spec/models/financing_spec.rb +56 -0
- data/spec/models/funding_source_all_of_spec.rb +46 -0
- data/spec/models/funding_source_details_spec.rb +31 -0
- data/spec/models/funding_source_spec.rb +58 -0
- data/spec/models/funding_source_type_spec.rb +28 -0
- data/spec/models/get_accounts_account_id_response_spec.rb +34 -0
- data/spec/models/get_accounts_response_spec.rb +34 -0
- data/spec/models/get_charges_charge_id_response_spec.rb +34 -0
- data/spec/models/get_charges_response_spec.rb +34 -0
- data/spec/models/get_checkouts_checkout_id_response_spec.rb +34 -0
- data/spec/models/get_delivery_methods_delivery_method_id_response_spec.rb +34 -0
- data/spec/models/get_delivery_methods_response_spec.rb +34 -0
- data/spec/models/get_files_file_id_data_response_data_customer_info_spec.rb +34 -0
- data/spec/models/get_files_file_id_data_response_data_invoice_info_spec.rb +40 -0
- data/spec/models/get_files_file_id_data_response_data_spec.rb +58 -0
- data/spec/models/get_files_file_id_data_response_data_vendor_info_spec.rb +40 -0
- data/spec/models/get_files_file_id_data_response_spec.rb +34 -0
- data/spec/models/get_files_file_id_response_spec.rb +34 -0
- data/spec/models/get_files_response_spec.rb +34 -0
- data/spec/models/get_financing_response_spec.rb +34 -0
- data/spec/models/get_funding_sources_funding_source_id_response_spec.rb +34 -0
- data/spec/models/get_funding_sources_response_spec.rb +34 -0
- data/spec/models/get_payment_intents_payment_intent_id_response_spec.rb +34 -0
- data/spec/models/get_payment_intents_response_spec.rb +34 -0
- data/spec/models/get_payments_payment_id_response_spec.rb +34 -0
- data/spec/models/get_payments_response_spec.rb +34 -0
- data/spec/models/get_vendor_directory_response_spec.rb +34 -0
- data/spec/models/get_vendors_response_spec.rb +34 -0
- data/spec/models/get_vendors_vendor_id_delivery_methods_response_spec.rb +34 -0
- data/spec/models/get_vendors_vendor_id_response_spec.rb +34 -0
- data/spec/models/get_webhooks_checkouts_response_spec.rb +34 -0
- data/spec/models/get_webhooks_payments_response_spec.rb +34 -0
- data/spec/models/get_webhooks_response_spec.rb +34 -0
- data/spec/models/invoice_spec.rb +40 -0
- data/spec/models/line_item_spec.rb +70 -0
- data/spec/models/merchant_all_of_spec.rb +82 -0
- data/spec/models/merchant_spec.rb +94 -0
- data/spec/models/model_error_all_of_spec.rb +40 -0
- data/spec/models/model_error_spec.rb +46 -0
- data/spec/models/object_spec.rb +40 -0
- data/spec/models/paper_check_spec.rb +40 -0
- data/spec/models/partial_address_spec.rb +58 -0
- data/spec/models/patch_charges_charge_id_request_spec.rb +34 -0
- data/spec/models/patch_charges_charge_id_response_spec.rb +34 -0
- data/spec/models/patch_payment_intents_payment_intent_id_request_bill_info_spec.rb +58 -0
- data/spec/models/patch_payment_intents_payment_intent_id_request_spec.rb +70 -0
- data/spec/models/patch_payment_intents_payment_intent_id_response_spec.rb +34 -0
- data/spec/models/patch_vendors_vendor_id_request_contact_spec.rb +46 -0
- data/spec/models/patch_vendors_vendor_id_request_spec.rb +40 -0
- data/spec/models/patch_vendors_vendor_id_response_spec.rb +34 -0
- data/spec/models/payment_all_of_spec.rb +116 -0
- data/spec/models/payment_fee_spec.rb +40 -0
- data/spec/models/payment_intent_all_of_bill_info_spec.rb +70 -0
- data/spec/models/payment_intent_all_of_spec.rb +110 -0
- data/spec/models/payment_intent_spec.rb +122 -0
- data/spec/models/payment_spec.rb +128 -0
- data/spec/models/person_spec.rb +46 -0
- data/spec/models/plaid_details_spec.rb +40 -0
- data/spec/models/post_accounts_request_spec.rb +46 -0
- data/spec/models/post_accounts_response_spec.rb +34 -0
- data/spec/models/post_auth_response_data_spec.rb +46 -0
- data/spec/models/post_auth_response_spec.rb +34 -0
- data/spec/models/post_checkouts_checkout_id_capture_request_invoice_spec.rb +40 -0
- data/spec/models/post_checkouts_checkout_id_capture_request_spec.rb +46 -0
- data/spec/models/post_checkouts_checkout_id_complete_request_spec.rb +52 -0
- data/spec/models/post_checkouts_request_spec.rb +124 -0
- data/spec/models/post_checkouts_response_spec.rb +34 -0
- data/spec/models/post_delivery_methods_request_details_spec.rb +31 -0
- data/spec/models/post_delivery_methods_request_spec.rb +40 -0
- data/spec/models/post_delivery_methods_response_spec.rb +34 -0
- data/spec/models/post_files_response_spec.rb +34 -0
- data/spec/models/post_financing_request_fields_spec.rb +40 -0
- data/spec/models/post_financing_request_spec.rb +34 -0
- data/spec/models/post_financing_response_spec.rb +34 -0
- data/spec/models/post_financing_transactional_request_spec.rb +40 -0
- data/spec/models/post_financing_transactional_response_data_spec.rb +44 -0
- data/spec/models/post_financing_transactional_response_spec.rb +34 -0
- data/spec/models/post_funding_sources_request_details_spec.rb +31 -0
- data/spec/models/post_funding_sources_request_spec.rb +50 -0
- data/spec/models/post_funding_sources_response_spec.rb +34 -0
- data/spec/models/post_merchants_request_spec.rb +76 -0
- data/spec/models/post_merchants_response_spec.rb +34 -0
- data/spec/models/post_payment_intents_bulk_request_spec.rb +34 -0
- data/spec/models/post_payment_intents_bulk_response_spec.rb +34 -0
- data/spec/models/post_payment_intents_payment_intent_id_payment_response_spec.rb +34 -0
- data/spec/models/post_payment_intents_request_bill_info_spec.rb +58 -0
- data/spec/models/post_payment_intents_request_spec.rb +70 -0
- data/spec/models/post_payment_intents_response_spec.rb +34 -0
- data/spec/models/post_payments_payment_id_recover_request_spec.rb +58 -0
- data/spec/models/post_payments_payment_id_recover_response_spec.rb +34 -0
- data/spec/models/post_vendors_bulk_request_spec.rb +34 -0
- data/spec/models/post_vendors_bulk_response_spec.rb +34 -0
- data/spec/models/post_vendors_from_vendor_directory_request_delivery_method_spec.rb +40 -0
- data/spec/models/post_vendors_from_vendor_directory_request_spec.rb +40 -0
- data/spec/models/post_vendors_from_vendor_directory_response_spec.rb +34 -0
- data/spec/models/post_vendors_request_spec.rb +40 -0
- data/spec/models/post_vendors_response_spec.rb +34 -0
- data/spec/models/post_vendors_vendor_id_delivery_methods_response_spec.rb +34 -0
- data/spec/models/post_webhooks_checkouts_request_spec.rb +34 -0
- data/spec/models/post_webhooks_checkouts_response_spec.rb +34 -0
- data/spec/models/post_webhooks_payments_request_spec.rb +34 -0
- data/spec/models/post_webhooks_payments_response_spec.rb +34 -0
- data/spec/models/put_payment_intents_request_spec.rb +88 -0
- data/spec/models/put_payment_intents_response_spec.rb +34 -0
- data/spec/models/recover_payment_request_spec.rb +88 -0
- data/spec/models/recover_payment_response_spec.rb +34 -0
- data/spec/models/short_history_spec.rb +46 -0
- data/spec/models/taba_pay_details_card_owner_spec.rb +40 -0
- data/spec/models/taba_pay_details_spec.rb +70 -0
- data/spec/models/tax_info_spec.rb +44 -0
- data/spec/models/vendor_all_of_contact_spec.rb +46 -0
- data/spec/models/vendor_all_of_spec.rb +46 -0
- data/spec/models/vendor_directory_contact_spec.rb +52 -0
- data/spec/models/vendor_directory_delivery_method_spec.rb +34 -0
- data/spec/models/vendor_directory_not_found_response_spec.rb +34 -0
- data/spec/models/vendor_directory_spec.rb +58 -0
- data/spec/models/vendor_spec.rb +58 -0
- data/spec/models/virtual_account_spec.rb +46 -0
- data/spec/models/webhook_spec.rb +40 -0
- data/spec/models/with_unknown_data_spec.rb +34 -0
- data/spec/spec_helper.rb +111 -0
- metadata +766 -0
@@ -0,0 +1,738 @@
|
|
1
|
+
=begin
|
2
|
+
#Platform API
|
3
|
+
|
4
|
+
#Melio Platform API enables partners to perform partner-related operations in Melio's system, for themselves, and on behalf of their system's users.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: platform@melio.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MelioPlatformApiClient
|
16
|
+
class VendorsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Delete a Vendor
|
23
|
+
# Removing a Vendor from an Account.
|
24
|
+
# @param vendor_id [String]
|
25
|
+
# @param idempotency_key [String] Unique idempotency key
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
28
|
+
# @return [DeletedResponse]
|
29
|
+
def delete_vendors_vendor_id(vendor_id, idempotency_key, opts = {})
|
30
|
+
data, _status_code, _headers = delete_vendors_vendor_id_with_http_info(vendor_id, idempotency_key, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Delete a Vendor
|
35
|
+
# Removing a Vendor from an Account.
|
36
|
+
# @param vendor_id [String]
|
37
|
+
# @param idempotency_key [String] Unique idempotency key
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
40
|
+
# @return [Array<(DeletedResponse, Integer, Hash)>] DeletedResponse data, response status code and response headers
|
41
|
+
def delete_vendors_vendor_id_with_http_info(vendor_id, idempotency_key, opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: VendorsApi.delete_vendors_vendor_id ...'
|
44
|
+
end
|
45
|
+
# verify the required parameter 'vendor_id' is set
|
46
|
+
if @api_client.config.client_side_validation && vendor_id.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'vendor_id' when calling VendorsApi.delete_vendors_vendor_id"
|
48
|
+
end
|
49
|
+
# verify the required parameter 'idempotency_key' is set
|
50
|
+
if @api_client.config.client_side_validation && idempotency_key.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling VendorsApi.delete_vendors_vendor_id"
|
52
|
+
end
|
53
|
+
# resource path
|
54
|
+
local_var_path = '/vendors/{vendorId}'.sub('{' + 'vendorId' + '}', CGI.escape(vendor_id.to_s))
|
55
|
+
|
56
|
+
# query parameters
|
57
|
+
query_params = opts[:query_params] || {}
|
58
|
+
|
59
|
+
# header parameters
|
60
|
+
header_params = opts[:header_params] || {}
|
61
|
+
# HTTP header 'Accept' (if needed)
|
62
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
63
|
+
header_params[:'Idempotency-Key'] = idempotency_key
|
64
|
+
header_params[:'Melio-Account'] = opts[:'melio_account'] if !opts[:'melio_account'].nil?
|
65
|
+
|
66
|
+
# form parameters
|
67
|
+
form_params = opts[:form_params] || {}
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = opts[:debug_body]
|
71
|
+
|
72
|
+
# return_type
|
73
|
+
return_type = opts[:debug_return_type] || 'DeletedResponse'
|
74
|
+
|
75
|
+
# auth_names
|
76
|
+
auth_names = opts[:debug_auth_names] || ['AccessToken', 'ApiKey']
|
77
|
+
|
78
|
+
new_options = opts.merge(
|
79
|
+
:operation => :"VendorsApi.delete_vendors_vendor_id",
|
80
|
+
:header_params => header_params,
|
81
|
+
:query_params => query_params,
|
82
|
+
:form_params => form_params,
|
83
|
+
:body => post_body,
|
84
|
+
:auth_names => auth_names,
|
85
|
+
:return_type => return_type
|
86
|
+
)
|
87
|
+
|
88
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
89
|
+
if @api_client.config.debugging
|
90
|
+
@api_client.config.logger.debug "API called: VendorsApi#delete_vendors_vendor_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
91
|
+
end
|
92
|
+
return data, status_code, headers
|
93
|
+
end
|
94
|
+
|
95
|
+
# Retrieve all filtered Vendors in the Vendor Directory
|
96
|
+
# List of all Vendors in the Vendor Directory, filtered by the name parameter and with provided query limit (default 20).
|
97
|
+
# @param name [String] The name of the Vendor to query
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [Integer] :limit The number of items to include in the returned list (default to 20)
|
100
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
101
|
+
# @return [GetVendorDirectoryResponse]
|
102
|
+
def get_vendor_directory(name, opts = {})
|
103
|
+
data, _status_code, _headers = get_vendor_directory_with_http_info(name, opts)
|
104
|
+
data
|
105
|
+
end
|
106
|
+
|
107
|
+
# Retrieve all filtered Vendors in the Vendor Directory
|
108
|
+
# List of all Vendors in the Vendor Directory, filtered by the name parameter and with provided query limit (default 20).
|
109
|
+
# @param name [String] The name of the Vendor to query
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @option opts [Integer] :limit The number of items to include in the returned list
|
112
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
113
|
+
# @return [Array<(GetVendorDirectoryResponse, Integer, Hash)>] GetVendorDirectoryResponse data, response status code and response headers
|
114
|
+
def get_vendor_directory_with_http_info(name, opts = {})
|
115
|
+
if @api_client.config.debugging
|
116
|
+
@api_client.config.logger.debug 'Calling API: VendorsApi.get_vendor_directory ...'
|
117
|
+
end
|
118
|
+
# verify the required parameter 'name' is set
|
119
|
+
if @api_client.config.client_side_validation && name.nil?
|
120
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling VendorsApi.get_vendor_directory"
|
121
|
+
end
|
122
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
|
123
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling VendorsApi.get_vendor_directory, must be greater than or equal to 0.'
|
124
|
+
end
|
125
|
+
|
126
|
+
# resource path
|
127
|
+
local_var_path = '/vendor-directory'
|
128
|
+
|
129
|
+
# query parameters
|
130
|
+
query_params = opts[:query_params] || {}
|
131
|
+
query_params[:'name'] = name
|
132
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
133
|
+
|
134
|
+
# header parameters
|
135
|
+
header_params = opts[:header_params] || {}
|
136
|
+
# HTTP header 'Accept' (if needed)
|
137
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
138
|
+
header_params[:'Melio-Account'] = opts[:'melio_account'] if !opts[:'melio_account'].nil?
|
139
|
+
|
140
|
+
# form parameters
|
141
|
+
form_params = opts[:form_params] || {}
|
142
|
+
|
143
|
+
# http body (model)
|
144
|
+
post_body = opts[:debug_body]
|
145
|
+
|
146
|
+
# return_type
|
147
|
+
return_type = opts[:debug_return_type] || 'GetVendorDirectoryResponse'
|
148
|
+
|
149
|
+
# auth_names
|
150
|
+
auth_names = opts[:debug_auth_names] || ['AccessToken', 'ApiKey']
|
151
|
+
|
152
|
+
new_options = opts.merge(
|
153
|
+
:operation => :"VendorsApi.get_vendor_directory",
|
154
|
+
:header_params => header_params,
|
155
|
+
:query_params => query_params,
|
156
|
+
:form_params => form_params,
|
157
|
+
:body => post_body,
|
158
|
+
:auth_names => auth_names,
|
159
|
+
:return_type => return_type
|
160
|
+
)
|
161
|
+
|
162
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
163
|
+
if @api_client.config.debugging
|
164
|
+
@api_client.config.logger.debug "API called: VendorsApi#get_vendor_directory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
165
|
+
end
|
166
|
+
return data, status_code, headers
|
167
|
+
end
|
168
|
+
|
169
|
+
# Retrieve all Vendors
|
170
|
+
# Retrieve a list of Vendors that are attached to an Account
|
171
|
+
# @param [Hash] opts the optional parameters
|
172
|
+
# @return [GetVendorsResponse]
|
173
|
+
def get_vendors(opts = {})
|
174
|
+
data, _status_code, _headers = get_vendors_with_http_info(opts)
|
175
|
+
data
|
176
|
+
end
|
177
|
+
|
178
|
+
# Retrieve all Vendors
|
179
|
+
# Retrieve a list of Vendors that are attached to an Account
|
180
|
+
# @param [Hash] opts the optional parameters
|
181
|
+
# @return [Array<(GetVendorsResponse, Integer, Hash)>] GetVendorsResponse data, response status code and response headers
|
182
|
+
def get_vendors_with_http_info(opts = {})
|
183
|
+
if @api_client.config.debugging
|
184
|
+
@api_client.config.logger.debug 'Calling API: VendorsApi.get_vendors ...'
|
185
|
+
end
|
186
|
+
# resource path
|
187
|
+
local_var_path = '/vendors'
|
188
|
+
|
189
|
+
# query parameters
|
190
|
+
query_params = opts[:query_params] || {}
|
191
|
+
|
192
|
+
# header parameters
|
193
|
+
header_params = opts[:header_params] || {}
|
194
|
+
# HTTP header 'Accept' (if needed)
|
195
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
196
|
+
|
197
|
+
# form parameters
|
198
|
+
form_params = opts[:form_params] || {}
|
199
|
+
|
200
|
+
# http body (model)
|
201
|
+
post_body = opts[:debug_body]
|
202
|
+
|
203
|
+
# return_type
|
204
|
+
return_type = opts[:debug_return_type] || 'GetVendorsResponse'
|
205
|
+
|
206
|
+
# auth_names
|
207
|
+
auth_names = opts[:debug_auth_names] || ['AccessToken', 'ApiKey']
|
208
|
+
|
209
|
+
new_options = opts.merge(
|
210
|
+
:operation => :"VendorsApi.get_vendors",
|
211
|
+
:header_params => header_params,
|
212
|
+
:query_params => query_params,
|
213
|
+
:form_params => form_params,
|
214
|
+
:body => post_body,
|
215
|
+
:auth_names => auth_names,
|
216
|
+
:return_type => return_type
|
217
|
+
)
|
218
|
+
|
219
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
220
|
+
if @api_client.config.debugging
|
221
|
+
@api_client.config.logger.debug "API called: VendorsApi#get_vendors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
222
|
+
end
|
223
|
+
return data, status_code, headers
|
224
|
+
end
|
225
|
+
|
226
|
+
# Retrieve a Vendor
|
227
|
+
# Retrieve a single Vendor using its ID.
|
228
|
+
# @param vendor_id [String]
|
229
|
+
# @param [Hash] opts the optional parameters
|
230
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
231
|
+
# @return [GetVendorsVendorIdResponse]
|
232
|
+
def get_vendors_vendor_id(vendor_id, opts = {})
|
233
|
+
data, _status_code, _headers = get_vendors_vendor_id_with_http_info(vendor_id, opts)
|
234
|
+
data
|
235
|
+
end
|
236
|
+
|
237
|
+
# Retrieve a Vendor
|
238
|
+
# Retrieve a single Vendor using its ID.
|
239
|
+
# @param vendor_id [String]
|
240
|
+
# @param [Hash] opts the optional parameters
|
241
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
242
|
+
# @return [Array<(GetVendorsVendorIdResponse, Integer, Hash)>] GetVendorsVendorIdResponse data, response status code and response headers
|
243
|
+
def get_vendors_vendor_id_with_http_info(vendor_id, opts = {})
|
244
|
+
if @api_client.config.debugging
|
245
|
+
@api_client.config.logger.debug 'Calling API: VendorsApi.get_vendors_vendor_id ...'
|
246
|
+
end
|
247
|
+
# verify the required parameter 'vendor_id' is set
|
248
|
+
if @api_client.config.client_side_validation && vendor_id.nil?
|
249
|
+
fail ArgumentError, "Missing the required parameter 'vendor_id' when calling VendorsApi.get_vendors_vendor_id"
|
250
|
+
end
|
251
|
+
# resource path
|
252
|
+
local_var_path = '/vendors/{vendorId}'.sub('{' + 'vendorId' + '}', CGI.escape(vendor_id.to_s))
|
253
|
+
|
254
|
+
# query parameters
|
255
|
+
query_params = opts[:query_params] || {}
|
256
|
+
|
257
|
+
# header parameters
|
258
|
+
header_params = opts[:header_params] || {}
|
259
|
+
# HTTP header 'Accept' (if needed)
|
260
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
261
|
+
header_params[:'Melio-Account'] = opts[:'melio_account'] if !opts[:'melio_account'].nil?
|
262
|
+
|
263
|
+
# form parameters
|
264
|
+
form_params = opts[:form_params] || {}
|
265
|
+
|
266
|
+
# http body (model)
|
267
|
+
post_body = opts[:debug_body]
|
268
|
+
|
269
|
+
# return_type
|
270
|
+
return_type = opts[:debug_return_type] || 'GetVendorsVendorIdResponse'
|
271
|
+
|
272
|
+
# auth_names
|
273
|
+
auth_names = opts[:debug_auth_names] || ['AccessToken', 'ApiKey']
|
274
|
+
|
275
|
+
new_options = opts.merge(
|
276
|
+
:operation => :"VendorsApi.get_vendors_vendor_id",
|
277
|
+
:header_params => header_params,
|
278
|
+
:query_params => query_params,
|
279
|
+
:form_params => form_params,
|
280
|
+
:body => post_body,
|
281
|
+
:auth_names => auth_names,
|
282
|
+
:return_type => return_type
|
283
|
+
)
|
284
|
+
|
285
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
286
|
+
if @api_client.config.debugging
|
287
|
+
@api_client.config.logger.debug "API called: VendorsApi#get_vendors_vendor_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
288
|
+
end
|
289
|
+
return data, status_code, headers
|
290
|
+
end
|
291
|
+
|
292
|
+
# Retrieve a Vendor's Delivery Methods
|
293
|
+
# Get a list of a Vendor's Delivery Methods, that can be used to sent funds to.
|
294
|
+
# @param vendor_id [String]
|
295
|
+
# @param [Hash] opts the optional parameters
|
296
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
297
|
+
# @return [GetVendorsVendorIdDeliveryMethodsResponse]
|
298
|
+
def get_vendors_vendor_id_delivery_methods(vendor_id, opts = {})
|
299
|
+
data, _status_code, _headers = get_vendors_vendor_id_delivery_methods_with_http_info(vendor_id, opts)
|
300
|
+
data
|
301
|
+
end
|
302
|
+
|
303
|
+
# Retrieve a Vendor's Delivery Methods
|
304
|
+
# Get a list of a Vendor's Delivery Methods, that can be used to sent funds to.
|
305
|
+
# @param vendor_id [String]
|
306
|
+
# @param [Hash] opts the optional parameters
|
307
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
308
|
+
# @return [Array<(GetVendorsVendorIdDeliveryMethodsResponse, Integer, Hash)>] GetVendorsVendorIdDeliveryMethodsResponse data, response status code and response headers
|
309
|
+
def get_vendors_vendor_id_delivery_methods_with_http_info(vendor_id, opts = {})
|
310
|
+
if @api_client.config.debugging
|
311
|
+
@api_client.config.logger.debug 'Calling API: VendorsApi.get_vendors_vendor_id_delivery_methods ...'
|
312
|
+
end
|
313
|
+
# verify the required parameter 'vendor_id' is set
|
314
|
+
if @api_client.config.client_side_validation && vendor_id.nil?
|
315
|
+
fail ArgumentError, "Missing the required parameter 'vendor_id' when calling VendorsApi.get_vendors_vendor_id_delivery_methods"
|
316
|
+
end
|
317
|
+
# resource path
|
318
|
+
local_var_path = '/vendors/{vendorId}/delivery-methods'.sub('{' + 'vendorId' + '}', CGI.escape(vendor_id.to_s))
|
319
|
+
|
320
|
+
# query parameters
|
321
|
+
query_params = opts[:query_params] || {}
|
322
|
+
|
323
|
+
# header parameters
|
324
|
+
header_params = opts[:header_params] || {}
|
325
|
+
# HTTP header 'Accept' (if needed)
|
326
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
327
|
+
header_params[:'Melio-Account'] = opts[:'melio_account'] if !opts[:'melio_account'].nil?
|
328
|
+
|
329
|
+
# form parameters
|
330
|
+
form_params = opts[:form_params] || {}
|
331
|
+
|
332
|
+
# http body (model)
|
333
|
+
post_body = opts[:debug_body]
|
334
|
+
|
335
|
+
# return_type
|
336
|
+
return_type = opts[:debug_return_type] || 'GetVendorsVendorIdDeliveryMethodsResponse'
|
337
|
+
|
338
|
+
# auth_names
|
339
|
+
auth_names = opts[:debug_auth_names] || ['AccessToken', 'ApiKey']
|
340
|
+
|
341
|
+
new_options = opts.merge(
|
342
|
+
:operation => :"VendorsApi.get_vendors_vendor_id_delivery_methods",
|
343
|
+
:header_params => header_params,
|
344
|
+
:query_params => query_params,
|
345
|
+
:form_params => form_params,
|
346
|
+
:body => post_body,
|
347
|
+
:auth_names => auth_names,
|
348
|
+
:return_type => return_type
|
349
|
+
)
|
350
|
+
|
351
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
352
|
+
if @api_client.config.debugging
|
353
|
+
@api_client.config.logger.debug "API called: VendorsApi#get_vendors_vendor_id_delivery_methods\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
354
|
+
end
|
355
|
+
return data, status_code, headers
|
356
|
+
end
|
357
|
+
|
358
|
+
# Update a Vendor
|
359
|
+
# Update an existing Vendor. The request's body can be partial, and only provided fields will be overwritten. Set a field to `null` in order to remove its contents.
|
360
|
+
# @param vendor_id [String]
|
361
|
+
# @param idempotency_key [String] Unique idempotency key
|
362
|
+
# @param [Hash] opts the optional parameters
|
363
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
364
|
+
# @option opts [PatchVendorsVendorIdRequest] :patch_vendors_vendor_id_request
|
365
|
+
# @return [PatchVendorsVendorIdResponse]
|
366
|
+
def patch_vendors_vendor_id(vendor_id, idempotency_key, opts = {})
|
367
|
+
data, _status_code, _headers = patch_vendors_vendor_id_with_http_info(vendor_id, idempotency_key, opts)
|
368
|
+
data
|
369
|
+
end
|
370
|
+
|
371
|
+
# Update a Vendor
|
372
|
+
# Update an existing Vendor. The request's body can be partial, and only provided fields will be overwritten. Set a field to `null` in order to remove its contents.
|
373
|
+
# @param vendor_id [String]
|
374
|
+
# @param idempotency_key [String] Unique idempotency key
|
375
|
+
# @param [Hash] opts the optional parameters
|
376
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
377
|
+
# @option opts [PatchVendorsVendorIdRequest] :patch_vendors_vendor_id_request
|
378
|
+
# @return [Array<(PatchVendorsVendorIdResponse, Integer, Hash)>] PatchVendorsVendorIdResponse data, response status code and response headers
|
379
|
+
def patch_vendors_vendor_id_with_http_info(vendor_id, idempotency_key, opts = {})
|
380
|
+
if @api_client.config.debugging
|
381
|
+
@api_client.config.logger.debug 'Calling API: VendorsApi.patch_vendors_vendor_id ...'
|
382
|
+
end
|
383
|
+
# verify the required parameter 'vendor_id' is set
|
384
|
+
if @api_client.config.client_side_validation && vendor_id.nil?
|
385
|
+
fail ArgumentError, "Missing the required parameter 'vendor_id' when calling VendorsApi.patch_vendors_vendor_id"
|
386
|
+
end
|
387
|
+
# verify the required parameter 'idempotency_key' is set
|
388
|
+
if @api_client.config.client_side_validation && idempotency_key.nil?
|
389
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling VendorsApi.patch_vendors_vendor_id"
|
390
|
+
end
|
391
|
+
# resource path
|
392
|
+
local_var_path = '/vendors/{vendorId}'.sub('{' + 'vendorId' + '}', CGI.escape(vendor_id.to_s))
|
393
|
+
|
394
|
+
# query parameters
|
395
|
+
query_params = opts[:query_params] || {}
|
396
|
+
|
397
|
+
# header parameters
|
398
|
+
header_params = opts[:header_params] || {}
|
399
|
+
# HTTP header 'Accept' (if needed)
|
400
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
401
|
+
# HTTP header 'Content-Type'
|
402
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
403
|
+
if !content_type.nil?
|
404
|
+
header_params['Content-Type'] = content_type
|
405
|
+
end
|
406
|
+
header_params[:'Idempotency-Key'] = idempotency_key
|
407
|
+
header_params[:'Melio-Account'] = opts[:'melio_account'] if !opts[:'melio_account'].nil?
|
408
|
+
|
409
|
+
# form parameters
|
410
|
+
form_params = opts[:form_params] || {}
|
411
|
+
|
412
|
+
# http body (model)
|
413
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patch_vendors_vendor_id_request'])
|
414
|
+
|
415
|
+
# return_type
|
416
|
+
return_type = opts[:debug_return_type] || 'PatchVendorsVendorIdResponse'
|
417
|
+
|
418
|
+
# auth_names
|
419
|
+
auth_names = opts[:debug_auth_names] || ['AccessToken', 'ApiKey']
|
420
|
+
|
421
|
+
new_options = opts.merge(
|
422
|
+
:operation => :"VendorsApi.patch_vendors_vendor_id",
|
423
|
+
:header_params => header_params,
|
424
|
+
:query_params => query_params,
|
425
|
+
:form_params => form_params,
|
426
|
+
:body => post_body,
|
427
|
+
:auth_names => auth_names,
|
428
|
+
:return_type => return_type
|
429
|
+
)
|
430
|
+
|
431
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
432
|
+
if @api_client.config.debugging
|
433
|
+
@api_client.config.logger.debug "API called: VendorsApi#patch_vendors_vendor_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
434
|
+
end
|
435
|
+
return data, status_code, headers
|
436
|
+
end
|
437
|
+
|
438
|
+
# Create a Vendor
|
439
|
+
# Create (attach) a Vendor to an Account.
|
440
|
+
# @param idempotency_key [String] Unique idempotency key
|
441
|
+
# @param [Hash] opts the optional parameters
|
442
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
443
|
+
# @option opts [PostVendorsRequest] :post_vendors_request
|
444
|
+
# @return [PostVendorsResponse]
|
445
|
+
def post_vendors(idempotency_key, opts = {})
|
446
|
+
data, _status_code, _headers = post_vendors_with_http_info(idempotency_key, opts)
|
447
|
+
data
|
448
|
+
end
|
449
|
+
|
450
|
+
# Create a Vendor
|
451
|
+
# Create (attach) a Vendor to an Account.
|
452
|
+
# @param idempotency_key [String] Unique idempotency key
|
453
|
+
# @param [Hash] opts the optional parameters
|
454
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
455
|
+
# @option opts [PostVendorsRequest] :post_vendors_request
|
456
|
+
# @return [Array<(PostVendorsResponse, Integer, Hash)>] PostVendorsResponse data, response status code and response headers
|
457
|
+
def post_vendors_with_http_info(idempotency_key, opts = {})
|
458
|
+
if @api_client.config.debugging
|
459
|
+
@api_client.config.logger.debug 'Calling API: VendorsApi.post_vendors ...'
|
460
|
+
end
|
461
|
+
# verify the required parameter 'idempotency_key' is set
|
462
|
+
if @api_client.config.client_side_validation && idempotency_key.nil?
|
463
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling VendorsApi.post_vendors"
|
464
|
+
end
|
465
|
+
# resource path
|
466
|
+
local_var_path = '/vendors'
|
467
|
+
|
468
|
+
# query parameters
|
469
|
+
query_params = opts[:query_params] || {}
|
470
|
+
|
471
|
+
# header parameters
|
472
|
+
header_params = opts[:header_params] || {}
|
473
|
+
# HTTP header 'Accept' (if needed)
|
474
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
475
|
+
# HTTP header 'Content-Type'
|
476
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
477
|
+
if !content_type.nil?
|
478
|
+
header_params['Content-Type'] = content_type
|
479
|
+
end
|
480
|
+
header_params[:'Idempotency-Key'] = idempotency_key
|
481
|
+
header_params[:'Melio-Account'] = opts[:'melio_account'] if !opts[:'melio_account'].nil?
|
482
|
+
|
483
|
+
# form parameters
|
484
|
+
form_params = opts[:form_params] || {}
|
485
|
+
|
486
|
+
# http body (model)
|
487
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'post_vendors_request'])
|
488
|
+
|
489
|
+
# return_type
|
490
|
+
return_type = opts[:debug_return_type] || 'PostVendorsResponse'
|
491
|
+
|
492
|
+
# auth_names
|
493
|
+
auth_names = opts[:debug_auth_names] || ['AccessToken', 'ApiKey']
|
494
|
+
|
495
|
+
new_options = opts.merge(
|
496
|
+
:operation => :"VendorsApi.post_vendors",
|
497
|
+
:header_params => header_params,
|
498
|
+
:query_params => query_params,
|
499
|
+
:form_params => form_params,
|
500
|
+
:body => post_body,
|
501
|
+
:auth_names => auth_names,
|
502
|
+
:return_type => return_type
|
503
|
+
)
|
504
|
+
|
505
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
506
|
+
if @api_client.config.debugging
|
507
|
+
@api_client.config.logger.debug "API called: VendorsApi#post_vendors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
508
|
+
end
|
509
|
+
return data, status_code, headers
|
510
|
+
end
|
511
|
+
|
512
|
+
# Create multiple Vendors
|
513
|
+
# Create (attach) multiple Vendors to an Account, based on a provided list of business entities.
|
514
|
+
# @param idempotency_key [String] Unique idempotency key
|
515
|
+
# @param [Hash] opts the optional parameters
|
516
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
517
|
+
# @option opts [PostVendorsBulkRequest] :post_vendors_bulk_request
|
518
|
+
# @return [PostVendorsBulkResponse]
|
519
|
+
def post_vendors_bulk(idempotency_key, opts = {})
|
520
|
+
data, _status_code, _headers = post_vendors_bulk_with_http_info(idempotency_key, opts)
|
521
|
+
data
|
522
|
+
end
|
523
|
+
|
524
|
+
# Create multiple Vendors
|
525
|
+
# Create (attach) multiple Vendors to an Account, based on a provided list of business entities.
|
526
|
+
# @param idempotency_key [String] Unique idempotency key
|
527
|
+
# @param [Hash] opts the optional parameters
|
528
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
529
|
+
# @option opts [PostVendorsBulkRequest] :post_vendors_bulk_request
|
530
|
+
# @return [Array<(PostVendorsBulkResponse, Integer, Hash)>] PostVendorsBulkResponse data, response status code and response headers
|
531
|
+
def post_vendors_bulk_with_http_info(idempotency_key, opts = {})
|
532
|
+
if @api_client.config.debugging
|
533
|
+
@api_client.config.logger.debug 'Calling API: VendorsApi.post_vendors_bulk ...'
|
534
|
+
end
|
535
|
+
# verify the required parameter 'idempotency_key' is set
|
536
|
+
if @api_client.config.client_side_validation && idempotency_key.nil?
|
537
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling VendorsApi.post_vendors_bulk"
|
538
|
+
end
|
539
|
+
# resource path
|
540
|
+
local_var_path = '/vendors/bulk'
|
541
|
+
|
542
|
+
# query parameters
|
543
|
+
query_params = opts[:query_params] || {}
|
544
|
+
|
545
|
+
# header parameters
|
546
|
+
header_params = opts[:header_params] || {}
|
547
|
+
# HTTP header 'Accept' (if needed)
|
548
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
549
|
+
# HTTP header 'Content-Type'
|
550
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
551
|
+
if !content_type.nil?
|
552
|
+
header_params['Content-Type'] = content_type
|
553
|
+
end
|
554
|
+
header_params[:'Idempotency-Key'] = idempotency_key
|
555
|
+
header_params[:'Melio-Account'] = opts[:'melio_account'] if !opts[:'melio_account'].nil?
|
556
|
+
|
557
|
+
# form parameters
|
558
|
+
form_params = opts[:form_params] || {}
|
559
|
+
|
560
|
+
# http body (model)
|
561
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'post_vendors_bulk_request'])
|
562
|
+
|
563
|
+
# return_type
|
564
|
+
return_type = opts[:debug_return_type] || 'PostVendorsBulkResponse'
|
565
|
+
|
566
|
+
# auth_names
|
567
|
+
auth_names = opts[:debug_auth_names] || ['AccessToken', 'ApiKey']
|
568
|
+
|
569
|
+
new_options = opts.merge(
|
570
|
+
:operation => :"VendorsApi.post_vendors_bulk",
|
571
|
+
:header_params => header_params,
|
572
|
+
:query_params => query_params,
|
573
|
+
:form_params => form_params,
|
574
|
+
:body => post_body,
|
575
|
+
:auth_names => auth_names,
|
576
|
+
:return_type => return_type
|
577
|
+
)
|
578
|
+
|
579
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
580
|
+
if @api_client.config.debugging
|
581
|
+
@api_client.config.logger.debug "API called: VendorsApi#post_vendors_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
582
|
+
end
|
583
|
+
return data, status_code, headers
|
584
|
+
end
|
585
|
+
|
586
|
+
# Create a Vendor from Vendor Directory
|
587
|
+
# Add a specific Vendor from Vendor Directory by its ID to an Account, and clone its Delivery Method in case of biller account.
|
588
|
+
# @param idempotency_key [String] Unique idempotency key
|
589
|
+
# @param [Hash] opts the optional parameters
|
590
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
591
|
+
# @option opts [PostVendorsFromVendorDirectoryRequest] :post_vendors_from_vendor_directory_request
|
592
|
+
# @return [PostVendorsFromVendorDirectoryResponse]
|
593
|
+
def post_vendors_from_vendor_directory(idempotency_key, opts = {})
|
594
|
+
data, _status_code, _headers = post_vendors_from_vendor_directory_with_http_info(idempotency_key, opts)
|
595
|
+
data
|
596
|
+
end
|
597
|
+
|
598
|
+
# Create a Vendor from Vendor Directory
|
599
|
+
# Add a specific Vendor from Vendor Directory by its ID to an Account, and clone its Delivery Method in case of biller account.
|
600
|
+
# @param idempotency_key [String] Unique idempotency key
|
601
|
+
# @param [Hash] opts the optional parameters
|
602
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
603
|
+
# @option opts [PostVendorsFromVendorDirectoryRequest] :post_vendors_from_vendor_directory_request
|
604
|
+
# @return [Array<(PostVendorsFromVendorDirectoryResponse, Integer, Hash)>] PostVendorsFromVendorDirectoryResponse data, response status code and response headers
|
605
|
+
def post_vendors_from_vendor_directory_with_http_info(idempotency_key, opts = {})
|
606
|
+
if @api_client.config.debugging
|
607
|
+
@api_client.config.logger.debug 'Calling API: VendorsApi.post_vendors_from_vendor_directory ...'
|
608
|
+
end
|
609
|
+
# verify the required parameter 'idempotency_key' is set
|
610
|
+
if @api_client.config.client_side_validation && idempotency_key.nil?
|
611
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling VendorsApi.post_vendors_from_vendor_directory"
|
612
|
+
end
|
613
|
+
# resource path
|
614
|
+
local_var_path = '/vendors/from-vendor-directory'
|
615
|
+
|
616
|
+
# query parameters
|
617
|
+
query_params = opts[:query_params] || {}
|
618
|
+
|
619
|
+
# header parameters
|
620
|
+
header_params = opts[:header_params] || {}
|
621
|
+
# HTTP header 'Accept' (if needed)
|
622
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
623
|
+
# HTTP header 'Content-Type'
|
624
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
625
|
+
if !content_type.nil?
|
626
|
+
header_params['Content-Type'] = content_type
|
627
|
+
end
|
628
|
+
header_params[:'Idempotency-Key'] = idempotency_key
|
629
|
+
header_params[:'Melio-Account'] = opts[:'melio_account'] if !opts[:'melio_account'].nil?
|
630
|
+
|
631
|
+
# form parameters
|
632
|
+
form_params = opts[:form_params] || {}
|
633
|
+
|
634
|
+
# http body (model)
|
635
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'post_vendors_from_vendor_directory_request'])
|
636
|
+
|
637
|
+
# return_type
|
638
|
+
return_type = opts[:debug_return_type] || 'PostVendorsFromVendorDirectoryResponse'
|
639
|
+
|
640
|
+
# auth_names
|
641
|
+
auth_names = opts[:debug_auth_names] || ['AccessToken', 'ApiKey']
|
642
|
+
|
643
|
+
new_options = opts.merge(
|
644
|
+
:operation => :"VendorsApi.post_vendors_from_vendor_directory",
|
645
|
+
:header_params => header_params,
|
646
|
+
:query_params => query_params,
|
647
|
+
:form_params => form_params,
|
648
|
+
:body => post_body,
|
649
|
+
:auth_names => auth_names,
|
650
|
+
:return_type => return_type
|
651
|
+
)
|
652
|
+
|
653
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
654
|
+
if @api_client.config.debugging
|
655
|
+
@api_client.config.logger.debug "API called: VendorsApi#post_vendors_from_vendor_directory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
656
|
+
end
|
657
|
+
return data, status_code, headers
|
658
|
+
end
|
659
|
+
|
660
|
+
# Create a Vendor's Delivery Method
|
661
|
+
# @param vendor_id [String]
|
662
|
+
# @param idempotency_key [String] Unique idempotency key
|
663
|
+
# @param [Hash] opts the optional parameters
|
664
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
665
|
+
# @option opts [PostDeliveryMethodsRequest] :body
|
666
|
+
# @return [PostVendorsVendorIdDeliveryMethodsResponse]
|
667
|
+
def post_vendors_vendor_id_delivery_methods(vendor_id, idempotency_key, opts = {})
|
668
|
+
data, _status_code, _headers = post_vendors_vendor_id_delivery_methods_with_http_info(vendor_id, idempotency_key, opts)
|
669
|
+
data
|
670
|
+
end
|
671
|
+
|
672
|
+
# Create a Vendor's Delivery Method
|
673
|
+
# @param vendor_id [String]
|
674
|
+
# @param idempotency_key [String] Unique idempotency key
|
675
|
+
# @param [Hash] opts the optional parameters
|
676
|
+
# @option opts [String] :melio_account The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It contains the Account's ID which returned when creating the Account, or when retrieving all of the Partner's Accounts. Note that most operations are not permitted without the presence of this header.
|
677
|
+
# @option opts [PostDeliveryMethodsRequest] :body
|
678
|
+
# @return [Array<(PostVendorsVendorIdDeliveryMethodsResponse, Integer, Hash)>] PostVendorsVendorIdDeliveryMethodsResponse data, response status code and response headers
|
679
|
+
def post_vendors_vendor_id_delivery_methods_with_http_info(vendor_id, idempotency_key, opts = {})
|
680
|
+
if @api_client.config.debugging
|
681
|
+
@api_client.config.logger.debug 'Calling API: VendorsApi.post_vendors_vendor_id_delivery_methods ...'
|
682
|
+
end
|
683
|
+
# verify the required parameter 'vendor_id' is set
|
684
|
+
if @api_client.config.client_side_validation && vendor_id.nil?
|
685
|
+
fail ArgumentError, "Missing the required parameter 'vendor_id' when calling VendorsApi.post_vendors_vendor_id_delivery_methods"
|
686
|
+
end
|
687
|
+
# verify the required parameter 'idempotency_key' is set
|
688
|
+
if @api_client.config.client_side_validation && idempotency_key.nil?
|
689
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling VendorsApi.post_vendors_vendor_id_delivery_methods"
|
690
|
+
end
|
691
|
+
# resource path
|
692
|
+
local_var_path = '/vendors/{vendorId}/delivery-methods'.sub('{' + 'vendorId' + '}', CGI.escape(vendor_id.to_s))
|
693
|
+
|
694
|
+
# query parameters
|
695
|
+
query_params = opts[:query_params] || {}
|
696
|
+
|
697
|
+
# header parameters
|
698
|
+
header_params = opts[:header_params] || {}
|
699
|
+
# HTTP header 'Accept' (if needed)
|
700
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
701
|
+
# HTTP header 'Content-Type'
|
702
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
703
|
+
if !content_type.nil?
|
704
|
+
header_params['Content-Type'] = content_type
|
705
|
+
end
|
706
|
+
header_params[:'Idempotency-Key'] = idempotency_key
|
707
|
+
header_params[:'Melio-Account'] = opts[:'melio_account'] if !opts[:'melio_account'].nil?
|
708
|
+
|
709
|
+
# form parameters
|
710
|
+
form_params = opts[:form_params] || {}
|
711
|
+
|
712
|
+
# http body (model)
|
713
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
714
|
+
|
715
|
+
# return_type
|
716
|
+
return_type = opts[:debug_return_type] || 'PostVendorsVendorIdDeliveryMethodsResponse'
|
717
|
+
|
718
|
+
# auth_names
|
719
|
+
auth_names = opts[:debug_auth_names] || ['AccessToken', 'ApiKey']
|
720
|
+
|
721
|
+
new_options = opts.merge(
|
722
|
+
:operation => :"VendorsApi.post_vendors_vendor_id_delivery_methods",
|
723
|
+
:header_params => header_params,
|
724
|
+
:query_params => query_params,
|
725
|
+
:form_params => form_params,
|
726
|
+
:body => post_body,
|
727
|
+
:auth_names => auth_names,
|
728
|
+
:return_type => return_type
|
729
|
+
)
|
730
|
+
|
731
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
732
|
+
if @api_client.config.debugging
|
733
|
+
@api_client.config.logger.debug "API called: VendorsApi#post_vendors_vendor_id_delivery_methods\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
734
|
+
end
|
735
|
+
return data, status_code, headers
|
736
|
+
end
|
737
|
+
end
|
738
|
+
end
|