Class: Peddler::APIs::VendorDirectFulfillmentSandboxTestData20211028
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::VendorDirectFulfillmentSandboxTestData20211028
- Defined in:
- lib/peddler/apis/vendor_direct_fulfillment_sandbox_test_data_2021_10_28.rb
Overview
Selling Partner API for Vendor Direct Fulfillment Sandbox Test Data
The Selling Partner API for Vendor Direct Fulfillment Sandbox Test Data provides programmatic access to vendor direct fulfillment sandbox test data.
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #parser, #retries
Instance Method Summary collapse
-
#generate_order_scenarios(body) ⇒ Peddler::Response
Submits a request to generate test order data for Vendor Direct Fulfillment API entities.
-
#get_order_scenarios(transaction_id) ⇒ Peddler::Response
Returns the status of the transaction indicated by the specified transactionId.
Methods inherited from Peddler::API
#endpoint_uri, #http, #initialize, #meter, #retriable, #sandbox, #sandbox?, #use, #via
Constructor Details
This class inherits a constructor from Peddler::API
Instance Method Details
#generate_order_scenarios(body) ⇒ Peddler::Response
This operation can make a dynamic sandbox call.
Submits a request to generate test order data for Vendor Direct Fulfillment API entities.
23 24 25 26 27 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_sandbox_test_data_2021_10_28.rb', line 23 def generate_order_scenarios(body) path = "/vendor/directFulfillment/sandbox/2021-10-28/orders" post(path, body:) end |
#get_order_scenarios(transaction_id) ⇒ Peddler::Response
This operation can make a dynamic sandbox call.
Returns the status of the transaction indicated by the specified transactionId. If the transaction was successful, also returns the requested test order data.
36 37 38 39 40 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_sandbox_test_data_2021_10_28.rb', line 36 def get_order_scenarios(transaction_id) path = "/vendor/directFulfillment/sandbox/2021-10-28/transactions/#{transaction_id}" get(path) end |