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,206 @@
|
|
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
|
+
# Common files
|
14
|
+
require 'melio-platform-api-client/api_client'
|
15
|
+
require 'melio-platform-api-client/api_error'
|
16
|
+
require 'melio-platform-api-client/version'
|
17
|
+
require 'melio-platform-api-client/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'melio-platform-api-client/models/account'
|
21
|
+
require 'melio-platform-api-client/models/account_all_of'
|
22
|
+
require 'melio-platform-api-client/models/add_to_my_vendor_parameters'
|
23
|
+
require 'melio-platform-api-client/models/add_to_my_vendor_parameters_delivery_method'
|
24
|
+
require 'melio-platform-api-client/models/add_to_my_vendor_parameters_delivery_method_biller_account'
|
25
|
+
require 'melio-platform-api-client/models/address'
|
26
|
+
require 'melio-platform-api-client/models/adjustment'
|
27
|
+
require 'melio-platform-api-client/models/bank_account'
|
28
|
+
require 'melio-platform-api-client/models/bank_account_type'
|
29
|
+
require 'melio-platform-api-client/models/biller_account'
|
30
|
+
require 'melio-platform-api-client/models/card'
|
31
|
+
require 'melio-platform-api-client/models/charge'
|
32
|
+
require 'melio-platform-api-client/models/charge_all_of'
|
33
|
+
require 'melio-platform-api-client/models/checkout'
|
34
|
+
require 'melio-platform-api-client/models/checkout_all_of'
|
35
|
+
require 'melio-platform-api-client/models/checkout_all_of_buyer'
|
36
|
+
require 'melio-platform-api-client/models/company'
|
37
|
+
require 'melio-platform-api-client/models/confirm_payment_intents_response'
|
38
|
+
require 'melio-platform-api-client/models/currency'
|
39
|
+
require 'melio-platform-api-client/models/deleted_response'
|
40
|
+
require 'melio-platform-api-client/models/delivery_method'
|
41
|
+
require 'melio-platform-api-client/models/delivery_method_all_of'
|
42
|
+
require 'melio-platform-api-client/models/delivery_method_details'
|
43
|
+
require 'melio-platform-api-client/models/delivery_method_type'
|
44
|
+
require 'melio-platform-api-client/models/delivery_preference'
|
45
|
+
require 'melio-platform-api-client/models/delivery_preference_type'
|
46
|
+
require 'melio-platform-api-client/models/domestic_wire_account'
|
47
|
+
require 'melio-platform-api-client/models/domestic_wire_account_address'
|
48
|
+
require 'melio-platform-api-client/models/error_response'
|
49
|
+
require 'melio-platform-api-client/models/file_info'
|
50
|
+
require 'melio-platform-api-client/models/file_info_all_of'
|
51
|
+
require 'melio-platform-api-client/models/financing'
|
52
|
+
require 'melio-platform-api-client/models/financing_dropdown_options'
|
53
|
+
require 'melio-platform-api-client/models/financing_fields'
|
54
|
+
require 'melio-platform-api-client/models/funding_source'
|
55
|
+
require 'melio-platform-api-client/models/funding_source_all_of'
|
56
|
+
require 'melio-platform-api-client/models/funding_source_details'
|
57
|
+
require 'melio-platform-api-client/models/funding_source_type'
|
58
|
+
require 'melio-platform-api-client/models/get_accounts_account_id_response'
|
59
|
+
require 'melio-platform-api-client/models/get_accounts_response'
|
60
|
+
require 'melio-platform-api-client/models/get_charges_charge_id_response'
|
61
|
+
require 'melio-platform-api-client/models/get_charges_response'
|
62
|
+
require 'melio-platform-api-client/models/get_checkouts_checkout_id_response'
|
63
|
+
require 'melio-platform-api-client/models/get_delivery_methods_delivery_method_id_response'
|
64
|
+
require 'melio-platform-api-client/models/get_delivery_methods_response'
|
65
|
+
require 'melio-platform-api-client/models/get_files_file_id_data_response'
|
66
|
+
require 'melio-platform-api-client/models/get_files_file_id_data_response_data'
|
67
|
+
require 'melio-platform-api-client/models/get_files_file_id_data_response_data_customer_info'
|
68
|
+
require 'melio-platform-api-client/models/get_files_file_id_data_response_data_invoice_info'
|
69
|
+
require 'melio-platform-api-client/models/get_files_file_id_data_response_data_vendor_info'
|
70
|
+
require 'melio-platform-api-client/models/get_files_file_id_response'
|
71
|
+
require 'melio-platform-api-client/models/get_files_response'
|
72
|
+
require 'melio-platform-api-client/models/get_financing_response'
|
73
|
+
require 'melio-platform-api-client/models/get_funding_sources_funding_source_id_response'
|
74
|
+
require 'melio-platform-api-client/models/get_funding_sources_response'
|
75
|
+
require 'melio-platform-api-client/models/get_payment_intents_payment_intent_id_response'
|
76
|
+
require 'melio-platform-api-client/models/get_payment_intents_response'
|
77
|
+
require 'melio-platform-api-client/models/get_payments_payment_id_response'
|
78
|
+
require 'melio-platform-api-client/models/get_payments_response'
|
79
|
+
require 'melio-platform-api-client/models/get_vendor_directory_response'
|
80
|
+
require 'melio-platform-api-client/models/get_vendors_response'
|
81
|
+
require 'melio-platform-api-client/models/get_vendors_vendor_id_delivery_methods_response'
|
82
|
+
require 'melio-platform-api-client/models/get_vendors_vendor_id_response'
|
83
|
+
require 'melio-platform-api-client/models/get_webhooks_checkouts_response'
|
84
|
+
require 'melio-platform-api-client/models/get_webhooks_payments_response'
|
85
|
+
require 'melio-platform-api-client/models/get_webhooks_response'
|
86
|
+
require 'melio-platform-api-client/models/invoice'
|
87
|
+
require 'melio-platform-api-client/models/line_item'
|
88
|
+
require 'melio-platform-api-client/models/merchant'
|
89
|
+
require 'melio-platform-api-client/models/merchant_all_of'
|
90
|
+
require 'melio-platform-api-client/models/model_error'
|
91
|
+
require 'melio-platform-api-client/models/model_error_all_of'
|
92
|
+
require 'melio-platform-api-client/models/object'
|
93
|
+
require 'melio-platform-api-client/models/paper_check'
|
94
|
+
require 'melio-platform-api-client/models/partial_address'
|
95
|
+
require 'melio-platform-api-client/models/patch_charges_charge_id_request'
|
96
|
+
require 'melio-platform-api-client/models/patch_charges_charge_id_response'
|
97
|
+
require 'melio-platform-api-client/models/patch_payment_intents_payment_intent_id_request'
|
98
|
+
require 'melio-platform-api-client/models/patch_payment_intents_payment_intent_id_request_bill_info'
|
99
|
+
require 'melio-platform-api-client/models/patch_payment_intents_payment_intent_id_response'
|
100
|
+
require 'melio-platform-api-client/models/patch_vendors_vendor_id_request'
|
101
|
+
require 'melio-platform-api-client/models/patch_vendors_vendor_id_request_contact'
|
102
|
+
require 'melio-platform-api-client/models/patch_vendors_vendor_id_response'
|
103
|
+
require 'melio-platform-api-client/models/payment'
|
104
|
+
require 'melio-platform-api-client/models/payment_all_of'
|
105
|
+
require 'melio-platform-api-client/models/payment_fee'
|
106
|
+
require 'melio-platform-api-client/models/payment_intent'
|
107
|
+
require 'melio-platform-api-client/models/payment_intent_all_of'
|
108
|
+
require 'melio-platform-api-client/models/payment_intent_all_of_bill_info'
|
109
|
+
require 'melio-platform-api-client/models/person'
|
110
|
+
require 'melio-platform-api-client/models/plaid_details'
|
111
|
+
require 'melio-platform-api-client/models/post_accounts_request'
|
112
|
+
require 'melio-platform-api-client/models/post_accounts_response'
|
113
|
+
require 'melio-platform-api-client/models/post_auth_response'
|
114
|
+
require 'melio-platform-api-client/models/post_auth_response_data'
|
115
|
+
require 'melio-platform-api-client/models/post_checkouts_checkout_id_capture_request'
|
116
|
+
require 'melio-platform-api-client/models/post_checkouts_checkout_id_capture_request_invoice'
|
117
|
+
require 'melio-platform-api-client/models/post_checkouts_checkout_id_complete_request'
|
118
|
+
require 'melio-platform-api-client/models/post_checkouts_request'
|
119
|
+
require 'melio-platform-api-client/models/post_checkouts_response'
|
120
|
+
require 'melio-platform-api-client/models/post_delivery_methods_request'
|
121
|
+
require 'melio-platform-api-client/models/post_delivery_methods_request_details'
|
122
|
+
require 'melio-platform-api-client/models/post_delivery_methods_response'
|
123
|
+
require 'melio-platform-api-client/models/post_files_response'
|
124
|
+
require 'melio-platform-api-client/models/post_financing_request'
|
125
|
+
require 'melio-platform-api-client/models/post_financing_request_fields'
|
126
|
+
require 'melio-platform-api-client/models/post_financing_response'
|
127
|
+
require 'melio-platform-api-client/models/post_financing_transactional_request'
|
128
|
+
require 'melio-platform-api-client/models/post_financing_transactional_response'
|
129
|
+
require 'melio-platform-api-client/models/post_financing_transactional_response_data'
|
130
|
+
require 'melio-platform-api-client/models/post_funding_sources_request'
|
131
|
+
require 'melio-platform-api-client/models/post_funding_sources_request_details'
|
132
|
+
require 'melio-platform-api-client/models/post_funding_sources_response'
|
133
|
+
require 'melio-platform-api-client/models/post_merchants_request'
|
134
|
+
require 'melio-platform-api-client/models/post_merchants_response'
|
135
|
+
require 'melio-platform-api-client/models/post_payment_intents_bulk_request'
|
136
|
+
require 'melio-platform-api-client/models/post_payment_intents_bulk_response'
|
137
|
+
require 'melio-platform-api-client/models/post_payment_intents_payment_intent_id_payment_response'
|
138
|
+
require 'melio-platform-api-client/models/post_payment_intents_request'
|
139
|
+
require 'melio-platform-api-client/models/post_payment_intents_request_bill_info'
|
140
|
+
require 'melio-platform-api-client/models/post_payment_intents_response'
|
141
|
+
require 'melio-platform-api-client/models/post_payments_payment_id_recover_request'
|
142
|
+
require 'melio-platform-api-client/models/post_payments_payment_id_recover_response'
|
143
|
+
require 'melio-platform-api-client/models/post_vendors_bulk_request'
|
144
|
+
require 'melio-platform-api-client/models/post_vendors_bulk_response'
|
145
|
+
require 'melio-platform-api-client/models/post_vendors_from_vendor_directory_request'
|
146
|
+
require 'melio-platform-api-client/models/post_vendors_from_vendor_directory_request_delivery_method'
|
147
|
+
require 'melio-platform-api-client/models/post_vendors_from_vendor_directory_response'
|
148
|
+
require 'melio-platform-api-client/models/post_vendors_request'
|
149
|
+
require 'melio-platform-api-client/models/post_vendors_response'
|
150
|
+
require 'melio-platform-api-client/models/post_vendors_vendor_id_delivery_methods_response'
|
151
|
+
require 'melio-platform-api-client/models/post_webhooks_checkouts_request'
|
152
|
+
require 'melio-platform-api-client/models/post_webhooks_checkouts_response'
|
153
|
+
require 'melio-platform-api-client/models/post_webhooks_payments_request'
|
154
|
+
require 'melio-platform-api-client/models/post_webhooks_payments_response'
|
155
|
+
require 'melio-platform-api-client/models/put_payment_intents_request'
|
156
|
+
require 'melio-platform-api-client/models/put_payment_intents_response'
|
157
|
+
require 'melio-platform-api-client/models/recover_payment_request'
|
158
|
+
require 'melio-platform-api-client/models/recover_payment_response'
|
159
|
+
require 'melio-platform-api-client/models/short_history'
|
160
|
+
require 'melio-platform-api-client/models/taba_pay_details'
|
161
|
+
require 'melio-platform-api-client/models/taba_pay_details_card_owner'
|
162
|
+
require 'melio-platform-api-client/models/tax_info'
|
163
|
+
require 'melio-platform-api-client/models/vendor'
|
164
|
+
require 'melio-platform-api-client/models/vendor_all_of'
|
165
|
+
require 'melio-platform-api-client/models/vendor_all_of_contact'
|
166
|
+
require 'melio-platform-api-client/models/vendor_directory'
|
167
|
+
require 'melio-platform-api-client/models/vendor_directory_contact'
|
168
|
+
require 'melio-platform-api-client/models/vendor_directory_delivery_method'
|
169
|
+
require 'melio-platform-api-client/models/vendor_directory_not_found_response'
|
170
|
+
require 'melio-platform-api-client/models/virtual_account'
|
171
|
+
require 'melio-platform-api-client/models/webhook'
|
172
|
+
require 'melio-platform-api-client/models/with_unknown_data'
|
173
|
+
|
174
|
+
# APIs
|
175
|
+
require 'melio-platform-api-client/api/accounts_api'
|
176
|
+
require 'melio-platform-api-client/api/auth_api'
|
177
|
+
require 'melio-platform-api-client/api/charges_api'
|
178
|
+
require 'melio-platform-api-client/api/checkouts_api'
|
179
|
+
require 'melio-platform-api-client/api/delivery_methods_api'
|
180
|
+
require 'melio-platform-api-client/api/files_api'
|
181
|
+
require 'melio-platform-api-client/api/financing_api'
|
182
|
+
require 'melio-platform-api-client/api/funding_sources_api'
|
183
|
+
require 'melio-platform-api-client/api/merchants_api'
|
184
|
+
require 'melio-platform-api-client/api/payment_intents_api'
|
185
|
+
require 'melio-platform-api-client/api/payments_api'
|
186
|
+
require 'melio-platform-api-client/api/vendor_directory_api'
|
187
|
+
require 'melio-platform-api-client/api/vendors_api'
|
188
|
+
require 'melio-platform-api-client/api/webhooks_api'
|
189
|
+
|
190
|
+
module MelioPlatformApiClient
|
191
|
+
class << self
|
192
|
+
# Customize default settings for the SDK using block.
|
193
|
+
# MelioPlatformApiClient.configure do |config|
|
194
|
+
# config.username = "xxx"
|
195
|
+
# config.password = "xxx"
|
196
|
+
# end
|
197
|
+
# If no block given, return the default Configuration object.
|
198
|
+
def configure
|
199
|
+
if block_given?
|
200
|
+
yield(Configuration.default)
|
201
|
+
else
|
202
|
+
Configuration.default
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#Platform API
|
5
|
+
|
6
|
+
#Melio Platform API enables partners to perform partner-related operations in Melio's system, for themselves, and on behalf of their system's users. ## Definitions & entities #### Partner Represents a party that has high-level access level and can manage Accounts and performing action on them. Partners authenticate using a Partner secret API key, and are permitted to perform only on Accounts that belong to them. #### Account Represents a business / company that is connected to the Partners system. Partners can have multiple Accounts. #### Delivery Method A payment destination that is used to receive funds. Accounts can have multiple Delivery Methods. #### Funding Source A payment source that is used to send funds. Accounts can have multiple Funding Sources. #### Vendor A business entity that can receive funds from an Account. Vendors are Account-specific. #### Payment Intent This main entity holds the general bill information (e.g. amount to pay, Vendor to pay to, due date, etc.), and acts as a utility / factory for creating Payments with selected configuration. #### Payment This core entity facilitates Melio's main use case of transferring funds *from* an Account's Delivery Method *to* a Vendor / Account's Delivery Method on a certain date, along with additional relevant information. #### Merchant Represents an Account's configuration as a seller, along with its additional data and options. #### Checkout Represents a checkout session that is performed by the buyer, along with the cart and additional required details. #### Charge Represnets a charging order for a Checkout, created when a Checkout is captured. #### FileInfo Wraps around a file in the platform - generic and can be uplaoded and associated with other objects per request. ## `Melio-Account` header 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.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0
|
9
|
+
Contact: platform@melio.com
|
10
|
+
Generated by: https://openapi-generator.tech
|
11
|
+
OpenAPI Generator version: 5.3.1
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "melio-platform-api-client/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "melio-platform-api-client"
|
20
|
+
s.version = MelioPlatformApiClient::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["Melio"]
|
23
|
+
s.email = ["platform@melio.com"]
|
24
|
+
s.homepage = "https://docs.melio.com"
|
25
|
+
s.summary = "Melio Platform API Ruby Client Library"
|
26
|
+
s.description = "Melio Platform API Ruby Client Library"
|
27
|
+
s.license = "Unlicense"
|
28
|
+
s.required_ruby_version = ">= 2.4"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
|
32
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
33
|
+
|
34
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
35
|
+
s.test_files = `find spec/*`.split("\n")
|
36
|
+
s.executables = []
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
end
|
@@ -0,0 +1,71 @@
|
|
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. ## Definitions & entities #### Partner Represents a party that has high-level access level and can manage Accounts and performing action on them. Partners authenticate using a Partner secret API key, and are permitted to perform only on Accounts that belong to them. #### Account Represents a business / company that is connected to the Partners system. Partners can have multiple Accounts. #### Delivery Method A payment destination that is used to receive funds. Accounts can have multiple Delivery Methods. #### Funding Source A payment source that is used to send funds. Accounts can have multiple Funding Sources. #### Vendor A business entity that can receive funds from an Account. Vendors are Account-specific. #### Payment Intent This main entity holds the general bill information (e.g. amount to pay, Vendor to pay to, due date, etc.), and acts as a utility / factory for creating Payments with selected configuration. #### Payment This core entity facilitates Melio's main use case of transferring funds *from* an Account's Delivery Method *to* a Vendor / Account's Delivery Method on a certain date, along with additional relevant information. #### Merchant Represents an Account's configuration as a seller, along with its additional data and options. #### Checkout Represents a checkout session that is performed by the buyer, along with the cart and additional required details. #### Charge Represnets a charging order for a Checkout, created when a Checkout is captured. #### FileInfo Wraps around a file in the platform - generic and can be uplaoded and associated with other objects per request. ## `Melio-Account` header The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It conains the Account'd 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.
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for MelioPlatformApiClient::AccountsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'AccountsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = MelioPlatformApiClient::AccountsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of AccountsApi' do
|
30
|
+
it 'should create an instance of AccountsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(MelioPlatformApiClient::AccountsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_accounts
|
36
|
+
# Retrieve all Accounts
|
37
|
+
# Retrieve a list of all Accounts the current Partner manages
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [GetAccountsResponse]
|
40
|
+
describe 'get_accounts test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for get_accounts_account_id
|
47
|
+
# Retrieve an Account
|
48
|
+
# Retrieve an Account using its ID
|
49
|
+
# @param account_id
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @return [GetAccountsAccountIdResponse]
|
52
|
+
describe 'get_accounts_account_id test' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for post_accounts
|
59
|
+
# Create an Account
|
60
|
+
# 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.
|
61
|
+
# @param idempotency_key Unique idempotency key
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [PostAccountsRequest] :post_accounts_request
|
64
|
+
# @return [PostAccountsResponse]
|
65
|
+
describe 'post_accounts test' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
@@ -0,0 +1,48 @@
|
|
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. ## Definitions & entities #### Partner Represents a party that has high-level access level and can manage Accounts and performing action on them. Partners authenticate using a Partner secret API key, and are permitted to perform only on Accounts that belong to them. #### Account Represents a business / company that is connected to the Partners system. Partners can have multiple Accounts. #### Delivery Method A payment destination that is used to receive funds. Accounts can have multiple Delivery Methods. #### Funding Source A payment source that is used to send funds. Accounts can have multiple Funding Sources. #### Vendor A business entity that can receive funds from an Account. Vendors are Account-specific. #### Payment Intent This main entity holds the general bill information (e.g. amount to pay, Vendor to pay to, due date, etc.), and acts as a utility / factory for creating Payments with selected configuration. #### Payment This core entity facilitates Melio's main use case of transferring funds *from* an Account's Delivery Method *to* a Vendor / Account's Delivery Method on a certain date, along with additional relevant information. #### Merchant Represents an Account's configuration as a seller, along with its additional data and options. #### Checkout Represents a checkout session that is performed by the buyer, along with the cart and additional required details. #### Charge Represnets a charging order for a Checkout, created when a Checkout is captured. #### FileInfo Wraps around a file in the platform - generic and can be uplaoded and associated with other objects per request. ## `Melio-Account` header The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It conains the Account'd 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.
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for MelioPlatformApiClient::AuthApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'AuthApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = MelioPlatformApiClient::AuthApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of AuthApi' do
|
30
|
+
it 'should create an instance of AuthApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(MelioPlatformApiClient::AuthApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for post_auth_token
|
36
|
+
# Create an access token
|
37
|
+
# 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.
|
38
|
+
# @param idempotency_key Unique idempotency key
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @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.
|
41
|
+
# @return [PostAuthResponse]
|
42
|
+
describe 'post_auth_token test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
@@ -0,0 +1,90 @@
|
|
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. ## Definitions & entities #### Partner Represents a party that has high-level access level and can manage Accounts and performing action on them. Partners authenticate using a Partner secret API key, and are permitted to perform only on Accounts that belong to them. #### Account Represents a business / company that is connected to the Partners system. Partners can have multiple Accounts. #### Delivery Method A payment destination that is used to receive funds. Accounts can have multiple Delivery Methods. #### Funding Source A payment source that is used to send funds. Accounts can have multiple Funding Sources. #### Vendor A business entity that can receive funds from an Account. Vendors are Account-specific. #### Payment Intent This main entity holds the general bill information (e.g. amount to pay, Vendor to pay to, due date, etc.), and acts as a utility / factory for creating Payments with selected configuration. #### Payment This core entity facilitates Melio's main use case of transferring funds *from* an Account's Delivery Method *to* a Vendor / Account's Delivery Method on a certain date, along with additional relevant information. #### Merchant Represents an Account's configuration as a seller, along with its additional data and options. #### Checkout Represents a checkout session that is performed by the buyer, along with the cart and additional required details. #### Charge Represnets a charging order for a Checkout, created when a Checkout is captured. #### FileInfo Wraps around a file in the platform - generic and can be uplaoded and associated with other objects per request. ## `Melio-Account` header The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It conains the Account'd 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.
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for MelioPlatformApiClient::ChargesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ChargesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = MelioPlatformApiClient::ChargesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ChargesApi' do
|
30
|
+
it 'should create an instance of ChargesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(MelioPlatformApiClient::ChargesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for delete_charges_charge_id
|
36
|
+
# Delete a Charge
|
37
|
+
# Cancel a Charge (Refund)
|
38
|
+
# @param charge_id
|
39
|
+
# @param idempotency_key Unique idempotency key
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @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.
|
42
|
+
# @return [DeletedResponse]
|
43
|
+
describe 'delete_charges_charge_id test' do
|
44
|
+
it 'should work' do
|
45
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# unit tests for get_charges_charge_id
|
50
|
+
# Retrieve a Charge
|
51
|
+
# Retrieve the status of a Charge made by the Account
|
52
|
+
# @param charge_id
|
53
|
+
# @param [Hash] opts the optional parameters
|
54
|
+
# @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.
|
55
|
+
# @return [GetChargesChargeIdResponse]
|
56
|
+
describe 'get_charges_charge_id test' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# unit tests for get_merchants_merchant_id_charges
|
63
|
+
# Retrieve all Charges
|
64
|
+
# Retrieve all the Charges for the merchant
|
65
|
+
# @param merchant_id
|
66
|
+
# @param [Hash] opts the optional parameters
|
67
|
+
# @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.
|
68
|
+
# @return [GetChargesResponse]
|
69
|
+
describe 'get_merchants_merchant_id_charges test' do
|
70
|
+
it 'should work' do
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# unit tests for patch_charges_charge_id
|
76
|
+
# Update a Charge
|
77
|
+
# Update a Charge (effectively a partial refund). Send a new amount to refund the difference between original charge's amount and the new one. The new amount cannot be more than the original.
|
78
|
+
# @param charge_id
|
79
|
+
# @param idempotency_key Unique idempotency key
|
80
|
+
# @param [Hash] opts the optional parameters
|
81
|
+
# @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.
|
82
|
+
# @option opts [PatchChargesChargeIdRequest] :patch_charges_charge_id_request
|
83
|
+
# @return [PatchChargesChargeIdResponse]
|
84
|
+
describe 'patch_charges_charge_id test' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
end
|
@@ -0,0 +1,93 @@
|
|
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. ## Definitions & entities #### Partner Represents a party that has high-level access level and can manage Accounts and performing action on them. Partners authenticate using a Partner secret API key, and are permitted to perform only on Accounts that belong to them. #### Account Represents a business / company that is connected to the Partners system. Partners can have multiple Accounts. #### Delivery Method A payment destination that is used to receive funds. Accounts can have multiple Delivery Methods. #### Funding Source A payment source that is used to send funds. Accounts can have multiple Funding Sources. #### Vendor A business entity that can receive funds from an Account. Vendors are Account-specific. #### Payment Intent This main entity holds the general bill information (e.g. amount to pay, Vendor to pay to, due date, etc.), and acts as a utility / factory for creating Payments with selected configuration. #### Payment This core entity facilitates Melio's main use case of transferring funds *from* an Account's Delivery Method *to* a Vendor / Account's Delivery Method on a certain date, along with additional relevant information. #### Merchant Represents an Account's configuration as a seller, along with its additional data and options. #### Checkout Represents a checkout session that is performed by the buyer, along with the cart and additional required details. #### Charge Represnets a charging order for a Checkout, created when a Checkout is captured. #### FileInfo Wraps around a file in the platform - generic and can be uplaoded and associated with other objects per request. ## `Melio-Account` header The `Melio-Account` header is used when a Partner wants to perform an operation on behalf of one of its Accounts. It conains the Account'd 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.
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for MelioPlatformApiClient::CheckoutsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'CheckoutsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = MelioPlatformApiClient::CheckoutsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of CheckoutsApi' do
|
30
|
+
it 'should create an instance of CheckoutsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(MelioPlatformApiClient::CheckoutsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_checkouts_checkout_id
|
36
|
+
# Retrieve a Checkout
|
37
|
+
# Get the status of a Checkout session
|
38
|
+
# @param checkout_id
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @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.
|
41
|
+
# @return [GetCheckoutsCheckoutIdResponse]
|
42
|
+
describe 'get_checkouts_checkout_id test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for post_checkouts
|
49
|
+
# Create a Checkout
|
50
|
+
# Start a new Checkout session. It is recommended to make use of all the different amount fields on the `Checkout` object: * `subtotal` - The total price of the list items, after applying item level discounts. * `grandTotal` - Equals `subtotal` minus coupons and plus taxes and shipping cost. * `outstandingBalance` - Actual amount to charge the buyer using Melio, equals `grandTotal` minus store credit used and gift certificates applied.
|
51
|
+
# @param merchant_id
|
52
|
+
# @param idempotency_key Unique idempotency key
|
53
|
+
# @param [Hash] opts the optional parameters
|
54
|
+
# @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.
|
55
|
+
# @option opts [PostCheckoutsRequest] :post_checkouts_request
|
56
|
+
# @return [PostCheckoutsResponse]
|
57
|
+
describe 'post_checkouts test' do
|
58
|
+
it 'should work' do
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# unit tests for post_checkouts_checkout_id_capture
|
64
|
+
# Capture a Checkout
|
65
|
+
# Mark that a Checkout session is finalized by the seller and the payment can be captured
|
66
|
+
# @param checkout_id
|
67
|
+
# @param idempotency_key Unique idempotency key
|
68
|
+
# @param [Hash] opts the optional parameters
|
69
|
+
# @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.
|
70
|
+
# @option opts [PostCheckoutsCheckoutIdCaptureRequest] :post_checkouts_checkout_id_capture_request
|
71
|
+
# @return [nil]
|
72
|
+
describe 'post_checkouts_checkout_id_capture test' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# unit tests for post_checkouts_checkout_id_complete
|
79
|
+
# Complete a Checkout
|
80
|
+
# Complete a Checkout session for the buyer by providing payment details
|
81
|
+
# @param checkout_id
|
82
|
+
# @param idempotency_key Unique idempotency key
|
83
|
+
# @param [Hash] opts the optional parameters
|
84
|
+
# @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.
|
85
|
+
# @option opts [PostCheckoutsCheckoutIdCompleteRequest] :post_checkouts_checkout_id_complete_request
|
86
|
+
# @return [nil]
|
87
|
+
describe 'post_checkouts_checkout_id_complete test' do
|
88
|
+
it 'should work' do
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
end
|