melio-platform-api-client 3.1.4
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/lib/melio-platform-api-client.rb +33 -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 +424 -0
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::GetFilesResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::GetFilesResponse do
|
21
|
+
let(:instance) { MelioPlatformApiClient::GetFilesResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetFilesResponse' do
|
24
|
+
it 'should create an instance of GetFilesResponse' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::GetFilesResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::GetFinancingResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::GetFinancingResponse do
|
21
|
+
let(:instance) { MelioPlatformApiClient::GetFinancingResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetFinancingResponse' do
|
24
|
+
it 'should create an instance of GetFinancingResponse' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::GetFinancingResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::GetFundingSourcesFundingSourceIdResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::GetFundingSourcesFundingSourceIdResponse do
|
21
|
+
let(:instance) { MelioPlatformApiClient::GetFundingSourcesFundingSourceIdResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetFundingSourcesFundingSourceIdResponse' do
|
24
|
+
it 'should create an instance of GetFundingSourcesFundingSourceIdResponse' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::GetFundingSourcesFundingSourceIdResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::GetFundingSourcesResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::GetFundingSourcesResponse do
|
21
|
+
let(:instance) { MelioPlatformApiClient::GetFundingSourcesResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetFundingSourcesResponse' do
|
24
|
+
it 'should create an instance of GetFundingSourcesResponse' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::GetFundingSourcesResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::GetPaymentIntentsPaymentIntentIdResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::GetPaymentIntentsPaymentIntentIdResponse do
|
21
|
+
let(:instance) { MelioPlatformApiClient::GetPaymentIntentsPaymentIntentIdResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetPaymentIntentsPaymentIntentIdResponse' do
|
24
|
+
it 'should create an instance of GetPaymentIntentsPaymentIntentIdResponse' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::GetPaymentIntentsPaymentIntentIdResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::GetPaymentIntentsResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::GetPaymentIntentsResponse do
|
21
|
+
let(:instance) { MelioPlatformApiClient::GetPaymentIntentsResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetPaymentIntentsResponse' do
|
24
|
+
it 'should create an instance of GetPaymentIntentsResponse' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::GetPaymentIntentsResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::GetPaymentsPaymentIdResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::GetPaymentsPaymentIdResponse do
|
21
|
+
let(:instance) { MelioPlatformApiClient::GetPaymentsPaymentIdResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetPaymentsPaymentIdResponse' do
|
24
|
+
it 'should create an instance of GetPaymentsPaymentIdResponse' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::GetPaymentsPaymentIdResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::GetPaymentsResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::GetPaymentsResponse do
|
21
|
+
let(:instance) { MelioPlatformApiClient::GetPaymentsResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetPaymentsResponse' do
|
24
|
+
it 'should create an instance of GetPaymentsResponse' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::GetPaymentsResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::GetVendorDirectoryResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::GetVendorDirectoryResponse do
|
21
|
+
let(:instance) { MelioPlatformApiClient::GetVendorDirectoryResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetVendorDirectoryResponse' do
|
24
|
+
it 'should create an instance of GetVendorDirectoryResponse' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::GetVendorDirectoryResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::GetVendorsResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::GetVendorsResponse do
|
21
|
+
let(:instance) { MelioPlatformApiClient::GetVendorsResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetVendorsResponse' do
|
24
|
+
it 'should create an instance of GetVendorsResponse' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::GetVendorsResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::GetVendorsVendorIdDeliveryMethodsResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::GetVendorsVendorIdDeliveryMethodsResponse do
|
21
|
+
let(:instance) { MelioPlatformApiClient::GetVendorsVendorIdDeliveryMethodsResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetVendorsVendorIdDeliveryMethodsResponse' do
|
24
|
+
it 'should create an instance of GetVendorsVendorIdDeliveryMethodsResponse' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::GetVendorsVendorIdDeliveryMethodsResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::GetVendorsVendorIdResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::GetVendorsVendorIdResponse do
|
21
|
+
let(:instance) { MelioPlatformApiClient::GetVendorsVendorIdResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetVendorsVendorIdResponse' do
|
24
|
+
it 'should create an instance of GetVendorsVendorIdResponse' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::GetVendorsVendorIdResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::GetWebhooksCheckoutsResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::GetWebhooksCheckoutsResponse do
|
21
|
+
let(:instance) { MelioPlatformApiClient::GetWebhooksCheckoutsResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetWebhooksCheckoutsResponse' do
|
24
|
+
it 'should create an instance of GetWebhooksCheckoutsResponse' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::GetWebhooksCheckoutsResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::GetWebhooksPaymentsResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::GetWebhooksPaymentsResponse do
|
21
|
+
let(:instance) { MelioPlatformApiClient::GetWebhooksPaymentsResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetWebhooksPaymentsResponse' do
|
24
|
+
it 'should create an instance of GetWebhooksPaymentsResponse' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::GetWebhooksPaymentsResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::GetWebhooksResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::GetWebhooksResponse do
|
21
|
+
let(:instance) { MelioPlatformApiClient::GetWebhooksResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GetWebhooksResponse' do
|
24
|
+
it 'should create an instance of GetWebhooksResponse' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::GetWebhooksResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,40 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MelioPlatformApiClient::Invoice
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MelioPlatformApiClient::Invoice do
|
21
|
+
let(:instance) { MelioPlatformApiClient::Invoice.new }
|
22
|
+
|
23
|
+
describe 'test an instance of Invoice' do
|
24
|
+
it 'should create an instance of Invoice' do
|
25
|
+
expect(instance).to be_instance_of(MelioPlatformApiClient::Invoice)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "number"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "file_id"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|