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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b8d9904973609ad808daf0839b2377f19c450b3c76c91ab742fa6319eed7cfb2
|
4
|
+
data.tar.gz: 16da91c0839cd77702cc4d431ea81f99f51f82a0e0305b7af6daa4d008d2ba22
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b5c2404d0a0519019fe0ac04346af18848ba85d6c5e4c09dd6a4387d47dd98ce9f463d0f69dad42bb7e4715fb4e69e1ce4b5a694aeff2802c0d7784f8f11adcd
|
7
|
+
data.tar.gz: 8e035a1c28620b1601f07fc603a84b62930aa61ad894f7580d594de427245dadc00c51a26d5aa7eb3ea2210282f32e51ef40404abd91a3cf39b9b0f954d8bd37
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
# Melio Platform API Ruby Client Library
|
2
|
+
|
3
|
+
Melio Platform API enables partners to perform partner-related operations in Melio's system, for themselves, and on behalf of their system's users.
|
4
|
+
|
5
|
+
Developers can use this OpenAPI based client library in order to send API requests to Melio Platform API.
|
6
|
+
|
7
|
+
Refer to our [API Reference](https://docs.melio.com/docs/api-ref/YXBpOjM0ODE4MDA4-platform-api) for further information.
|
8
|
+
|
9
|
+
## Getting started
|
10
|
+
|
11
|
+
### Installation
|
12
|
+
|
13
|
+
Add the following in the Gemfile:
|
14
|
+
|
15
|
+
```
|
16
|
+
gem 'melio-platform-api-client', :git => 'https://github.com/melio/melio-platform-api-client-ruby.git', :tag => 'v1.0.1'
|
17
|
+
```
|
18
|
+
|
19
|
+
Change `:tag => 'v1.0.1` to the version you need.
|
20
|
+
|
21
|
+
### Setup
|
22
|
+
|
23
|
+
Before using the library, you need to load and configure it with the relevant parameters:
|
24
|
+
|
25
|
+
1. The host and base URL, which represent the environment you want to work with.
|
26
|
+
2. Your credentials, which are usually the Partner secret provided during onboarding, set as a `API-Key` header.
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
# Load the gem
|
30
|
+
require 'melio-platform-api-client'
|
31
|
+
|
32
|
+
# Setup
|
33
|
+
MelioPlatformApiClient.configure do |config|
|
34
|
+
# Configure host
|
35
|
+
config.host = 'api-sandbox.melio.com'
|
36
|
+
|
37
|
+
# Optionally toggle debugging
|
38
|
+
# config.debugging = true
|
39
|
+
|
40
|
+
# Configure API key authorization: API-Key
|
41
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Send an API request
|
46
|
+
|
47
|
+
Once everything is configured properly, initialize one of the `*Api` modules in you application, and invoke one of the available functions.
|
48
|
+
The functions in each module represent the API operations, as they appear in our [API Reference](https://docs.melio.com/docs/api-ref/YXBpOjM0ODE4MDA4-platform-api).
|
49
|
+
|
50
|
+
```ruby
|
51
|
+
api_instance = MelioPlatformApiClient::AccountsApi.new
|
52
|
+
|
53
|
+
begin
|
54
|
+
#Retrieve all Accounts
|
55
|
+
result = api_instance.get_accounts
|
56
|
+
p result
|
57
|
+
rescue MelioPlatformApiClient::ApiError => e
|
58
|
+
puts "Exception when calling AccountsApi->get_accounts: #{e}"
|
59
|
+
end
|
60
|
+
|
61
|
+
```
|
62
|
+
|
63
|
+
## Documentation for API Endpoints
|
64
|
+
|
65
|
+
All URIs are relative to *https://api.melio.com/v1*
|
66
|
+
|
67
|
+
Class | Method | HTTP request | Description
|
68
|
+
------------ | ------------- | ------------- | -------------
|
69
|
+
*MelioPlatformApiClient::AccountsApi* | [**get_accounts**](docs/AccountsApi.md#get_accounts) | **GET** /accounts | Retrieve all Accounts
|
70
|
+
*MelioPlatformApiClient::AccountsApi* | [**get_accounts_account_id**](docs/AccountsApi.md#get_accounts_account_id) | **GET** /accounts/{accountId} | Retrieve an Account
|
71
|
+
*MelioPlatformApiClient::AccountsApi* | [**post_accounts**](docs/AccountsApi.md#post_accounts) | **POST** /accounts | Create an Account
|
72
|
+
*MelioPlatformApiClient::AuthApi* | [**post_auth_token**](docs/AuthApi.md#post_auth_token) | **POST** /auth/token | Create an access token
|
73
|
+
*MelioPlatformApiClient::ChargesApi* | [**delete_charges_charge_id**](docs/ChargesApi.md#delete_charges_charge_id) | **DELETE** /charges/{chargeId} | Delete a Charge
|
74
|
+
*MelioPlatformApiClient::ChargesApi* | [**get_charges_charge_id**](docs/ChargesApi.md#get_charges_charge_id) | **GET** /charges/{chargeId} | Retrieve a Charge
|
75
|
+
*MelioPlatformApiClient::ChargesApi* | [**get_merchants_merchant_id_charges**](docs/ChargesApi.md#get_merchants_merchant_id_charges) | **GET** /merchants/{merchantId}/charges | Retrieve all Charges
|
76
|
+
*MelioPlatformApiClient::ChargesApi* | [**patch_charges_charge_id**](docs/ChargesApi.md#patch_charges_charge_id) | **PATCH** /charges/{chargeId} | Update a Charge
|
77
|
+
*MelioPlatformApiClient::CheckoutsApi* | [**get_checkouts_checkout_id**](docs/CheckoutsApi.md#get_checkouts_checkout_id) | **GET** /checkouts/{checkoutId} | Retrieve a Checkout
|
78
|
+
*MelioPlatformApiClient::CheckoutsApi* | [**post_checkouts**](docs/CheckoutsApi.md#post_checkouts) | **POST** /merchants/{merchantId}/checkouts | Create a Checkout
|
79
|
+
*MelioPlatformApiClient::CheckoutsApi* | [**post_checkouts_checkout_id_capture**](docs/CheckoutsApi.md#post_checkouts_checkout_id_capture) | **POST** /checkouts/{checkoutId}/capture | Capture a Checkout
|
80
|
+
*MelioPlatformApiClient::CheckoutsApi* | [**post_checkouts_checkout_id_complete**](docs/CheckoutsApi.md#post_checkouts_checkout_id_complete) | **POST** /checkouts/{checkoutId}/complete | Complete a Checkout
|
81
|
+
*MelioPlatformApiClient::DeliveryMethodsApi* | [**delete_delivery_methods_delivery_method_id**](docs/DeliveryMethodsApi.md#delete_delivery_methods_delivery_method_id) | **DELETE** /delivery-methods/{deliveryMethodId} | Delete a Delivery Method
|
82
|
+
*MelioPlatformApiClient::DeliveryMethodsApi* | [**get_delivery_methods**](docs/DeliveryMethodsApi.md#get_delivery_methods) | **GET** /delivery-methods | Retrieve all Delivery Methods
|
83
|
+
*MelioPlatformApiClient::DeliveryMethodsApi* | [**get_delivery_methods_delivery_method_id**](docs/DeliveryMethodsApi.md#get_delivery_methods_delivery_method_id) | **GET** /delivery-methods/{deliveryMethodId} | Retrieve a Delivery Method
|
84
|
+
*MelioPlatformApiClient::DeliveryMethodsApi* | [**get_vendors_vendor_id_delivery_methods**](docs/DeliveryMethodsApi.md#get_vendors_vendor_id_delivery_methods) | **GET** /vendors/{vendorId}/delivery-methods | Retrieve a Vendor's Delivery Methods
|
85
|
+
*MelioPlatformApiClient::DeliveryMethodsApi* | [**post_delivery_methods**](docs/DeliveryMethodsApi.md#post_delivery_methods) | **POST** /delivery-methods | Create a Delivery Method
|
86
|
+
*MelioPlatformApiClient::DeliveryMethodsApi* | [**post_vendors_vendor_id_delivery_methods**](docs/DeliveryMethodsApi.md#post_vendors_vendor_id_delivery_methods) | **POST** /vendors/{vendorId}/delivery-methods | Create a Vendor's Delivery Method
|
87
|
+
*MelioPlatformApiClient::FilesApi* | [**get_files**](docs/FilesApi.md#get_files) | **GET** /files | Retrieve files
|
88
|
+
*MelioPlatformApiClient::FilesApi* | [**get_files_file_id**](docs/FilesApi.md#get_files_file_id) | **GET** /files/{fileId} | Retrieve a File
|
89
|
+
*MelioPlatformApiClient::FilesApi* | [**get_files_file_id_data**](docs/FilesApi.md#get_files_file_id_data) | **GET** /files/{fileId}/data | Retrieve data from a File using OCR
|
90
|
+
*MelioPlatformApiClient::FilesApi* | [**post_files**](docs/FilesApi.md#post_files) | **POST** /files | Create / upload a File
|
91
|
+
*MelioPlatformApiClient::FinancingApi* | [**get_financing_status**](docs/FinancingApi.md#get_financing_status) | **GET** /financing | Retrieve an Account's financing status
|
92
|
+
*MelioPlatformApiClient::FinancingApi* | [**post_financing**](docs/FinancingApi.md#post_financing) | **POST** /financing | Apply for financing for an Account
|
93
|
+
*MelioPlatformApiClient::FinancingApi* | [**post_financing_transaction**](docs/FinancingApi.md#post_financing_transaction) | **POST** /financing/transaction | Request Transactional Financing
|
94
|
+
*MelioPlatformApiClient::FundingSourcesApi* | [**delete_funding_sources_funding_source_id**](docs/FundingSourcesApi.md#delete_funding_sources_funding_source_id) | **DELETE** /funding-sources/{fundingSourceId} | Delete a Funding Source
|
95
|
+
*MelioPlatformApiClient::FundingSourcesApi* | [**get_funding_sources**](docs/FundingSourcesApi.md#get_funding_sources) | **GET** /funding-sources | Get all Funding Sources
|
96
|
+
*MelioPlatformApiClient::FundingSourcesApi* | [**get_funding_sources_funding_source_id**](docs/FundingSourcesApi.md#get_funding_sources_funding_source_id) | **GET** /funding-sources/{fundingSourceId} | Retrieve a Funding Source
|
97
|
+
*MelioPlatformApiClient::FundingSourcesApi* | [**post_funding_sources**](docs/FundingSourcesApi.md#post_funding_sources) | **POST** /funding-sources | Create a Funding Source
|
98
|
+
*MelioPlatformApiClient::MerchantsApi* | [**post_merchants**](docs/MerchantsApi.md#post_merchants) | **POST** /merchants | Create a Merchant
|
99
|
+
*MelioPlatformApiClient::PaymentIntentsApi* | [**get_payment_intents**](docs/PaymentIntentsApi.md#get_payment_intents) | **GET** /payment-intents | Retrieve all Payment Intents
|
100
|
+
*MelioPlatformApiClient::PaymentIntentsApi* | [**get_payment_intents_payment_intent_id**](docs/PaymentIntentsApi.md#get_payment_intents_payment_intent_id) | **GET** /payment-intents/{paymentIntentId} | Retrieve a Payment Intent
|
101
|
+
*MelioPlatformApiClient::PaymentIntentsApi* | [**patch_payment_intents_payment_intent_id**](docs/PaymentIntentsApi.md#patch_payment_intents_payment_intent_id) | **PATCH** /payment-intents/{paymentIntentId} | Update a Payment Intent
|
102
|
+
*MelioPlatformApiClient::PaymentIntentsApi* | [**post_payment_intents**](docs/PaymentIntentsApi.md#post_payment_intents) | **POST** /payment-intents | Create a Payment Intent
|
103
|
+
*MelioPlatformApiClient::PaymentIntentsApi* | [**post_payment_intents_bulk**](docs/PaymentIntentsApi.md#post_payment_intents_bulk) | **POST** /payment-intents/bulk | Create multiple Payment Intents
|
104
|
+
*MelioPlatformApiClient::PaymentIntentsApi* | [**post_payment_intents_payment_intent_id_confirm**](docs/PaymentIntentsApi.md#post_payment_intents_payment_intent_id_confirm) | **POST** /payment-intents/{paymentIntentId}/confirm | Confirm a Payment Intent
|
105
|
+
*MelioPlatformApiClient::PaymentsApi* | [**delete_payments_payment_id**](docs/PaymentsApi.md#delete_payments_payment_id) | **DELETE** /payments/{paymentId} | Delete a Payment
|
106
|
+
*MelioPlatformApiClient::PaymentsApi* | [**get_payments**](docs/PaymentsApi.md#get_payments) | **GET** /payments | Retrieve all Payments of a PaymentIntent
|
107
|
+
*MelioPlatformApiClient::PaymentsApi* | [**get_payments_payment_id**](docs/PaymentsApi.md#get_payments_payment_id) | **GET** /payments/{paymentId} | Retrieve a Payment
|
108
|
+
*MelioPlatformApiClient::PaymentsApi* | [**recover_payment_payment_id**](docs/PaymentsApi.md#recover_payment_payment_id) | **POST** /payments/{paymentId}/recover | Recover a Payment
|
109
|
+
*MelioPlatformApiClient::VendorDirectoryApi* | [**get_vendor_directory**](docs/VendorDirectoryApi.md#get_vendor_directory) | **GET** /vendor-directory | Retrieve all filtered Vendors in the Vendor Directory
|
110
|
+
*MelioPlatformApiClient::VendorDirectoryApi* | [**post_vendors_from_vendor_directory**](docs/VendorDirectoryApi.md#post_vendors_from_vendor_directory) | **POST** /vendors/from-vendor-directory | Create a Vendor from Vendor Directory
|
111
|
+
*MelioPlatformApiClient::VendorsApi* | [**delete_vendors_vendor_id**](docs/VendorsApi.md#delete_vendors_vendor_id) | **DELETE** /vendors/{vendorId} | Delete a Vendor
|
112
|
+
*MelioPlatformApiClient::VendorsApi* | [**get_vendor_directory**](docs/VendorsApi.md#get_vendor_directory) | **GET** /vendor-directory | Retrieve all filtered Vendors in the Vendor Directory
|
113
|
+
*MelioPlatformApiClient::VendorsApi* | [**get_vendors**](docs/VendorsApi.md#get_vendors) | **GET** /vendors | Retrieve all Vendors
|
114
|
+
*MelioPlatformApiClient::VendorsApi* | [**get_vendors_vendor_id**](docs/VendorsApi.md#get_vendors_vendor_id) | **GET** /vendors/{vendorId} | Retrieve a Vendor
|
115
|
+
*MelioPlatformApiClient::VendorsApi* | [**get_vendors_vendor_id_delivery_methods**](docs/VendorsApi.md#get_vendors_vendor_id_delivery_methods) | **GET** /vendors/{vendorId}/delivery-methods | Retrieve a Vendor's Delivery Methods
|
116
|
+
*MelioPlatformApiClient::VendorsApi* | [**patch_vendors_vendor_id**](docs/VendorsApi.md#patch_vendors_vendor_id) | **PATCH** /vendors/{vendorId} | Update a Vendor
|
117
|
+
*MelioPlatformApiClient::VendorsApi* | [**post_vendors**](docs/VendorsApi.md#post_vendors) | **POST** /vendors | Create a Vendor
|
118
|
+
*MelioPlatformApiClient::VendorsApi* | [**post_vendors_bulk**](docs/VendorsApi.md#post_vendors_bulk) | **POST** /vendors/bulk | Create multiple Vendors
|
119
|
+
*MelioPlatformApiClient::VendorsApi* | [**post_vendors_from_vendor_directory**](docs/VendorsApi.md#post_vendors_from_vendor_directory) | **POST** /vendors/from-vendor-directory | Create a Vendor from Vendor Directory
|
120
|
+
*MelioPlatformApiClient::VendorsApi* | [**post_vendors_vendor_id_delivery_methods**](docs/VendorsApi.md#post_vendors_vendor_id_delivery_methods) | **POST** /vendors/{vendorId}/delivery-methods | Create a Vendor's Delivery Method
|
121
|
+
*MelioPlatformApiClient::WebhooksApi* | [**delete_webhooks_checkouts**](docs/WebhooksApi.md#delete_webhooks_checkouts) | **DELETE** /webhooks/checkouts | Delete the Webhook for Checkouts
|
122
|
+
*MelioPlatformApiClient::WebhooksApi* | [**delete_webhooks_payments**](docs/WebhooksApi.md#delete_webhooks_payments) | **DELETE** /webhooks/payments | Delete the Webhook for Payments
|
123
|
+
*MelioPlatformApiClient::WebhooksApi* | [**get_webhooks**](docs/WebhooksApi.md#get_webhooks) | **GET** /webhooks | Retrieve all Webhooks
|
124
|
+
*MelioPlatformApiClient::WebhooksApi* | [**get_webhooks_checkouts**](docs/WebhooksApi.md#get_webhooks_checkouts) | **GET** /webhooks/checkouts | Retrieve Status of Webhook for Checkouts
|
125
|
+
*MelioPlatformApiClient::WebhooksApi* | [**get_webhooks_payments**](docs/WebhooksApi.md#get_webhooks_payments) | **GET** /webhooks/payments | Retrieve Status of Webhook for Payments
|
126
|
+
*MelioPlatformApiClient::WebhooksApi* | [**post_webhooks_checkouts**](docs/WebhooksApi.md#post_webhooks_checkouts) | **POST** /webhooks/checkouts | Register a Webhook for Checkouts
|
127
|
+
*MelioPlatformApiClient::WebhooksApi* | [**post_webhooks_payments**](docs/WebhooksApi.md#post_webhooks_payments) | **POST** /webhooks/payments | Register a Webhook for Payments
|
128
|
+
|
129
|
+
|
130
|
+
## Support
|
131
|
+
|
132
|
+
For more information, please contact [api-support@melio.com](mailto:api-support@melio.com).
|
data/Rakefile
ADDED
data/docs/Account.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# MelioPlatformApiClient::Account
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | Identifier of the entity. | |
|
8
|
+
| **history** | [**ShortHistory**](ShortHistory.md) | | |
|
9
|
+
| **company** | [**Company**](Company.md) | | |
|
10
|
+
| **user** | [**Person**](Person.md) | | |
|
11
|
+
| **status** | **String** | Holds the eligibility of the account to make payments | |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'melio-platform-api-client'
|
17
|
+
|
18
|
+
instance = MelioPlatformApiClient::Account.new(
|
19
|
+
id: null,
|
20
|
+
history: null,
|
21
|
+
company: null,
|
22
|
+
user: null,
|
23
|
+
status: pending
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# MelioPlatformApiClient::AccountAllOf
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **company** | [**Company**](Company.md) | | |
|
8
|
+
| **user** | [**Person**](Person.md) | | |
|
9
|
+
| **status** | **String** | Holds the eligibility of the account to make payments | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'melio-platform-api-client'
|
15
|
+
|
16
|
+
instance = MelioPlatformApiClient::AccountAllOf.new(
|
17
|
+
company: null,
|
18
|
+
user: null,
|
19
|
+
status: pending
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/AccountsApi.md
ADDED
@@ -0,0 +1,224 @@
|
|
1
|
+
# MelioPlatformApiClient::AccountsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.melio.com/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**get_accounts**](AccountsApi.md#get_accounts) | **GET** /accounts | Retrieve all Accounts |
|
8
|
+
| [**get_accounts_account_id**](AccountsApi.md#get_accounts_account_id) | **GET** /accounts/{accountId} | Retrieve an Account |
|
9
|
+
| [**post_accounts**](AccountsApi.md#post_accounts) | **POST** /accounts | Create an Account |
|
10
|
+
|
11
|
+
|
12
|
+
## get_accounts
|
13
|
+
|
14
|
+
> <GetAccountsResponse> get_accounts
|
15
|
+
|
16
|
+
Retrieve all Accounts
|
17
|
+
|
18
|
+
Retrieve a list of all Accounts the current Partner manages
|
19
|
+
|
20
|
+
### Examples
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'time'
|
24
|
+
require 'melio-platform-api-client'
|
25
|
+
# setup authorization
|
26
|
+
MelioPlatformApiClient.configure do |config|
|
27
|
+
# Configure API key authorization: ApiKey
|
28
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
29
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
30
|
+
# config.api_key_prefix['ApiKey'] = 'Bearer'
|
31
|
+
end
|
32
|
+
|
33
|
+
api_instance = MelioPlatformApiClient::AccountsApi.new
|
34
|
+
|
35
|
+
begin
|
36
|
+
# Retrieve all Accounts
|
37
|
+
result = api_instance.get_accounts
|
38
|
+
p result
|
39
|
+
rescue MelioPlatformApiClient::ApiError => e
|
40
|
+
puts "Error when calling AccountsApi->get_accounts: #{e}"
|
41
|
+
end
|
42
|
+
```
|
43
|
+
|
44
|
+
#### Using the get_accounts_with_http_info variant
|
45
|
+
|
46
|
+
This returns an Array which contains the response data, status code and headers.
|
47
|
+
|
48
|
+
> <Array(<GetAccountsResponse>, Integer, Hash)> get_accounts_with_http_info
|
49
|
+
|
50
|
+
```ruby
|
51
|
+
begin
|
52
|
+
# Retrieve all Accounts
|
53
|
+
data, status_code, headers = api_instance.get_accounts_with_http_info
|
54
|
+
p status_code # => 2xx
|
55
|
+
p headers # => { ... }
|
56
|
+
p data # => <GetAccountsResponse>
|
57
|
+
rescue MelioPlatformApiClient::ApiError => e
|
58
|
+
puts "Error when calling AccountsApi->get_accounts_with_http_info: #{e}"
|
59
|
+
end
|
60
|
+
```
|
61
|
+
|
62
|
+
### Parameters
|
63
|
+
|
64
|
+
This endpoint does not need any parameter.
|
65
|
+
|
66
|
+
### Return type
|
67
|
+
|
68
|
+
[**GetAccountsResponse**](GetAccountsResponse.md)
|
69
|
+
|
70
|
+
### Authorization
|
71
|
+
|
72
|
+
[ApiKey](../README.md#ApiKey)
|
73
|
+
|
74
|
+
### HTTP request headers
|
75
|
+
|
76
|
+
- **Content-Type**: Not defined
|
77
|
+
- **Accept**: application/json
|
78
|
+
|
79
|
+
|
80
|
+
## get_accounts_account_id
|
81
|
+
|
82
|
+
> <GetAccountsAccountIdResponse> get_accounts_account_id(account_id)
|
83
|
+
|
84
|
+
Retrieve an Account
|
85
|
+
|
86
|
+
Retrieve an Account using its ID
|
87
|
+
|
88
|
+
### Examples
|
89
|
+
|
90
|
+
```ruby
|
91
|
+
require 'time'
|
92
|
+
require 'melio-platform-api-client'
|
93
|
+
# setup authorization
|
94
|
+
MelioPlatformApiClient.configure do |config|
|
95
|
+
# Configure API key authorization: ApiKey
|
96
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
97
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
98
|
+
# config.api_key_prefix['ApiKey'] = 'Bearer'
|
99
|
+
end
|
100
|
+
|
101
|
+
api_instance = MelioPlatformApiClient::AccountsApi.new
|
102
|
+
account_id = 'account_id_example' # String |
|
103
|
+
|
104
|
+
begin
|
105
|
+
# Retrieve an Account
|
106
|
+
result = api_instance.get_accounts_account_id(account_id)
|
107
|
+
p result
|
108
|
+
rescue MelioPlatformApiClient::ApiError => e
|
109
|
+
puts "Error when calling AccountsApi->get_accounts_account_id: #{e}"
|
110
|
+
end
|
111
|
+
```
|
112
|
+
|
113
|
+
#### Using the get_accounts_account_id_with_http_info variant
|
114
|
+
|
115
|
+
This returns an Array which contains the response data, status code and headers.
|
116
|
+
|
117
|
+
> <Array(<GetAccountsAccountIdResponse>, Integer, Hash)> get_accounts_account_id_with_http_info(account_id)
|
118
|
+
|
119
|
+
```ruby
|
120
|
+
begin
|
121
|
+
# Retrieve an Account
|
122
|
+
data, status_code, headers = api_instance.get_accounts_account_id_with_http_info(account_id)
|
123
|
+
p status_code # => 2xx
|
124
|
+
p headers # => { ... }
|
125
|
+
p data # => <GetAccountsAccountIdResponse>
|
126
|
+
rescue MelioPlatformApiClient::ApiError => e
|
127
|
+
puts "Error when calling AccountsApi->get_accounts_account_id_with_http_info: #{e}"
|
128
|
+
end
|
129
|
+
```
|
130
|
+
|
131
|
+
### Parameters
|
132
|
+
|
133
|
+
| Name | Type | Description | Notes |
|
134
|
+
| ---- | ---- | ----------- | ----- |
|
135
|
+
| **account_id** | **String** | | |
|
136
|
+
|
137
|
+
### Return type
|
138
|
+
|
139
|
+
[**GetAccountsAccountIdResponse**](GetAccountsAccountIdResponse.md)
|
140
|
+
|
141
|
+
### Authorization
|
142
|
+
|
143
|
+
[ApiKey](../README.md#ApiKey)
|
144
|
+
|
145
|
+
### HTTP request headers
|
146
|
+
|
147
|
+
- **Content-Type**: Not defined
|
148
|
+
- **Accept**: application/json
|
149
|
+
|
150
|
+
|
151
|
+
## post_accounts
|
152
|
+
|
153
|
+
> <PostAccountsResponse> post_accounts(idempotency_key, opts)
|
154
|
+
|
155
|
+
Create an Account
|
156
|
+
|
157
|
+
Create an Account with a company and a user. Note that you can submit a Partern internal ID in the ID `id` field, in order to set it in Melio system as well. If not supplied, a random ID will be generated.
|
158
|
+
|
159
|
+
### Examples
|
160
|
+
|
161
|
+
```ruby
|
162
|
+
require 'time'
|
163
|
+
require 'melio-platform-api-client'
|
164
|
+
# setup authorization
|
165
|
+
MelioPlatformApiClient.configure do |config|
|
166
|
+
# Configure API key authorization: ApiKey
|
167
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
168
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
169
|
+
# config.api_key_prefix['ApiKey'] = 'Bearer'
|
170
|
+
end
|
171
|
+
|
172
|
+
api_instance = MelioPlatformApiClient::AccountsApi.new
|
173
|
+
idempotency_key = 'idempotency_key_example' # String | Unique idempotency key
|
174
|
+
opts = {
|
175
|
+
post_accounts_request: MelioPlatformApiClient::PostAccountsRequest.new({company: MelioPlatformApiClient::Company.new({name: 'name_example', phone_number: 'phone_number_example', address: MelioPlatformApiClient::Address.new({line1: 'line1_example', city: 'city_example', state: 'state_example', postal_code: 'postal_code_example'}), legal_name: 'legal_name_example', tax_info: MelioPlatformApiClient::TaxInfo.new({identifier: 'identifier_example', type: 'SSN'}), legal_address: MelioPlatformApiClient::Address.new({line1: 'line1_example', city: 'city_example', state: 'state_example', postal_code: 'postal_code_example'})}), user: MelioPlatformApiClient::Person.new({first_name: 'first_name_example', last_name: 'last_name_example', email: 'email_example'})}) # PostAccountsRequest |
|
176
|
+
}
|
177
|
+
|
178
|
+
begin
|
179
|
+
# Create an Account
|
180
|
+
result = api_instance.post_accounts(idempotency_key, opts)
|
181
|
+
p result
|
182
|
+
rescue MelioPlatformApiClient::ApiError => e
|
183
|
+
puts "Error when calling AccountsApi->post_accounts: #{e}"
|
184
|
+
end
|
185
|
+
```
|
186
|
+
|
187
|
+
#### Using the post_accounts_with_http_info variant
|
188
|
+
|
189
|
+
This returns an Array which contains the response data, status code and headers.
|
190
|
+
|
191
|
+
> <Array(<PostAccountsResponse>, Integer, Hash)> post_accounts_with_http_info(idempotency_key, opts)
|
192
|
+
|
193
|
+
```ruby
|
194
|
+
begin
|
195
|
+
# Create an Account
|
196
|
+
data, status_code, headers = api_instance.post_accounts_with_http_info(idempotency_key, opts)
|
197
|
+
p status_code # => 2xx
|
198
|
+
p headers # => { ... }
|
199
|
+
p data # => <PostAccountsResponse>
|
200
|
+
rescue MelioPlatformApiClient::ApiError => e
|
201
|
+
puts "Error when calling AccountsApi->post_accounts_with_http_info: #{e}"
|
202
|
+
end
|
203
|
+
```
|
204
|
+
|
205
|
+
### Parameters
|
206
|
+
|
207
|
+
| Name | Type | Description | Notes |
|
208
|
+
| ---- | ---- | ----------- | ----- |
|
209
|
+
| **idempotency_key** | **String** | Unique idempotency key | |
|
210
|
+
| **post_accounts_request** | [**PostAccountsRequest**](PostAccountsRequest.md) | | [optional] |
|
211
|
+
|
212
|
+
### Return type
|
213
|
+
|
214
|
+
[**PostAccountsResponse**](PostAccountsResponse.md)
|
215
|
+
|
216
|
+
### Authorization
|
217
|
+
|
218
|
+
[ApiKey](../README.md#ApiKey)
|
219
|
+
|
220
|
+
### HTTP request headers
|
221
|
+
|
222
|
+
- **Content-Type**: application/json
|
223
|
+
- **Accept**: application/json
|
224
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# MelioPlatformApiClient::AddToMyVendorParameters
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **delivery_method** | [**AddToMyVendorParametersDeliveryMethod**](AddToMyVendorParametersDeliveryMethod.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'melio-platform-api-client'
|
13
|
+
|
14
|
+
instance = MelioPlatformApiClient::AddToMyVendorParameters.new(
|
15
|
+
delivery_method: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# MelioPlatformApiClient::AddToMyVendorParametersDeliveryMethod
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **delivery_type** | [**DeliveryMethodType**](DeliveryMethodType.md) | | |
|
8
|
+
| **biller_account** | [**AddToMyVendorParametersDeliveryMethodBillerAccount**](AddToMyVendorParametersDeliveryMethodBillerAccount.md) | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'melio-platform-api-client'
|
14
|
+
|
15
|
+
instance = MelioPlatformApiClient::AddToMyVendorParametersDeliveryMethod.new(
|
16
|
+
delivery_type: null,
|
17
|
+
biller_account: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# MelioPlatformApiClient::AddToMyVendorParametersDeliveryMethodBillerAccount
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **account_identifier** | **String** | This is your biller account identifier that the DM will be created | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'melio-platform-api-client'
|
13
|
+
|
14
|
+
instance = MelioPlatformApiClient::AddToMyVendorParametersDeliveryMethodBillerAccount.new(
|
15
|
+
account_identifier: 0003000666
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/Address.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# MelioPlatformApiClient::Address
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **line1** | **String** | Note that this field must be authentic (e.g. `Q Calle 11`). | |
|
8
|
+
| **line2** | **String** | | [optional] |
|
9
|
+
| **city** | **String** | | |
|
10
|
+
| **state** | **String** | State two-letter symbol. | |
|
11
|
+
| **postal_code** | **String** | 5 digits postal (ZIP) code. | |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'melio-platform-api-client'
|
17
|
+
|
18
|
+
instance = MelioPlatformApiClient::Address.new(
|
19
|
+
line1: null,
|
20
|
+
line2: null,
|
21
|
+
city: null,
|
22
|
+
state: null,
|
23
|
+
postal_code: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
data/docs/Adjustment.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# MelioPlatformApiClient::Adjustment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **description** | **String** | Description | |
|
8
|
+
| **amount** | **Integer** | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'melio-platform-api-client'
|
14
|
+
|
15
|
+
instance = MelioPlatformApiClient::Adjustment.new(
|
16
|
+
description: null,
|
17
|
+
amount: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/AuthApi.md
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
# MelioPlatformApiClient::AuthApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.melio.com/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**post_auth_token**](AuthApi.md#post_auth_token) | **POST** /auth/token | Create an access token |
|
8
|
+
|
9
|
+
|
10
|
+
## post_auth_token
|
11
|
+
|
12
|
+
> <PostAuthResponse> post_auth_token(idempotency_key, opts)
|
13
|
+
|
14
|
+
Create an access token
|
15
|
+
|
16
|
+
Create an access token that is scoped to a specific Account, and that can be used for client-side API calls. This is used to perform operations that require the user's involvment, without exposing the Partner's secret API key.
|
17
|
+
|
18
|
+
### Examples
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'time'
|
22
|
+
require 'melio-platform-api-client'
|
23
|
+
# setup authorization
|
24
|
+
MelioPlatformApiClient.configure do |config|
|
25
|
+
# Configure API key authorization: ApiKey
|
26
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
27
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
28
|
+
# config.api_key_prefix['ApiKey'] = 'Bearer'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = MelioPlatformApiClient::AuthApi.new
|
32
|
+
idempotency_key = 'idempotency_key_example' # String | Unique idempotency key
|
33
|
+
opts = {
|
34
|
+
melio_account: 'melio_account_example' # String | 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.
|
35
|
+
}
|
36
|
+
|
37
|
+
begin
|
38
|
+
# Create an access token
|
39
|
+
result = api_instance.post_auth_token(idempotency_key, opts)
|
40
|
+
p result
|
41
|
+
rescue MelioPlatformApiClient::ApiError => e
|
42
|
+
puts "Error when calling AuthApi->post_auth_token: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
#### Using the post_auth_token_with_http_info variant
|
47
|
+
|
48
|
+
This returns an Array which contains the response data, status code and headers.
|
49
|
+
|
50
|
+
> <Array(<PostAuthResponse>, Integer, Hash)> post_auth_token_with_http_info(idempotency_key, opts)
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
begin
|
54
|
+
# Create an access token
|
55
|
+
data, status_code, headers = api_instance.post_auth_token_with_http_info(idempotency_key, opts)
|
56
|
+
p status_code # => 2xx
|
57
|
+
p headers # => { ... }
|
58
|
+
p data # => <PostAuthResponse>
|
59
|
+
rescue MelioPlatformApiClient::ApiError => e
|
60
|
+
puts "Error when calling AuthApi->post_auth_token_with_http_info: #{e}"
|
61
|
+
end
|
62
|
+
```
|
63
|
+
|
64
|
+
### Parameters
|
65
|
+
|
66
|
+
| Name | Type | Description | Notes |
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
68
|
+
| **idempotency_key** | **String** | Unique idempotency key | |
|
69
|
+
| **melio_account** | **String** | 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. | [optional] |
|
70
|
+
|
71
|
+
### Return type
|
72
|
+
|
73
|
+
[**PostAuthResponse**](PostAuthResponse.md)
|
74
|
+
|
75
|
+
### Authorization
|
76
|
+
|
77
|
+
[ApiKey](../README.md#ApiKey)
|
78
|
+
|
79
|
+
### HTTP request headers
|
80
|
+
|
81
|
+
- **Content-Type**: Not defined
|
82
|
+
- **Accept**: application/json
|
83
|
+
|
data/docs/BankAccount.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# MelioPlatformApiClient::BankAccount
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **routing_number** | **String** | Routing numbers are 9 digits long. | |
|
8
|
+
| **account_type** | [**BankAccountType**](BankAccountType.md) | | |
|
9
|
+
| **account_number** | **String** | Account numbers are 4-17 digits long | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'melio-platform-api-client'
|
15
|
+
|
16
|
+
instance = MelioPlatformApiClient::BankAccount.new(
|
17
|
+
routing_number: null,
|
18
|
+
account_type: null,
|
19
|
+
account_number: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# MelioPlatformApiClient::BankAccountType
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'melio-platform-api-client'
|
12
|
+
|
13
|
+
instance = MelioPlatformApiClient::BankAccountType.new()
|
14
|
+
```
|
15
|
+
|