Class: Peddler::APIs::VendorShipmentsV1
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::VendorShipmentsV1
- Defined in:
- lib/peddler/apis/vendor_shipments_v1.rb
Overview
Selling Partner API for Retail Procurement Shipments
The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #parser
Instance Method Summary collapse
-
#get_shipment_details(limit: nil, sort_order: nil, next_token: nil, created_after: nil, created_before: nil, shipment_confirmed_before: nil, shipment_confirmed_after: nil, package_label_created_before: nil, package_label_created_after: nil, shipped_before: nil, shipped_after: nil, estimated_delivery_before: nil, estimated_delivery_after: nil, shipment_delivery_before: nil, shipment_delivery_after: nil, requested_pick_up_before: nil, requested_pick_up_after: nil, scheduled_pick_up_before: nil, scheduled_pick_up_after: nil, current_shipment_status: nil, vendor_shipment_identifier: nil, buyer_reference_number: nil, buyer_warehouse_code: nil, seller_warehouse_code: nil, rate_limit: 10.0) ⇒ Peddler::Response
Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify.
-
#submit_shipment_confirmations(body, rate_limit: 10.0) ⇒ Peddler::Response
Submits one or more shipment confirmations for vendor orders.
-
#submit_shipments(body, rate_limit: 10.0) ⇒ Peddler::Response
Submits one or more shipment request for vendor Orders.
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
#get_shipment_details(limit: nil, sort_order: nil, next_token: nil, created_after: nil, created_before: nil, shipment_confirmed_before: nil, shipment_confirmed_after: nil, package_label_created_before: nil, package_label_created_after: nil, shipped_before: nil, shipped_after: nil, estimated_delivery_before: nil, estimated_delivery_after: nil, shipment_delivery_before: nil, shipment_delivery_after: nil, requested_pick_up_before: nil, requested_pick_up_after: nil, scheduled_pick_up_before: nil, scheduled_pick_up_after: nil, current_shipment_status: nil, vendor_shipment_identifier: nil, buyer_reference_number: nil, buyer_warehouse_code: nil, seller_warehouse_code: nil, rate_limit: 10.0) ⇒ Peddler::Response
Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify.
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/peddler/apis/vendor_shipments_v1.rb', line 91 def get_shipment_details(limit: nil, sort_order: nil, next_token: nil, created_after: nil, created_before: nil, shipment_confirmed_before: nil, shipment_confirmed_after: nil, package_label_created_before: nil, package_label_created_after: nil, shipped_before: nil, shipped_after: nil, estimated_delivery_before: nil, estimated_delivery_after: nil, shipment_delivery_before: nil, shipment_delivery_after: nil, requested_pick_up_before: nil, requested_pick_up_after: nil, scheduled_pick_up_before: nil, scheduled_pick_up_after: nil, current_shipment_status: nil, vendor_shipment_identifier: nil, buyer_reference_number: nil, buyer_warehouse_code: nil, seller_warehouse_code: nil, rate_limit: 10.0) cannot_sandbox! path = "/vendor/shipping/v1/shipments" params = { "limit" => limit, "sortOrder" => sort_order, "nextToken" => next_token, "createdAfter" => created_after, "createdBefore" => created_before, "shipmentConfirmedBefore" => shipment_confirmed_before, "shipmentConfirmedAfter" => shipment_confirmed_after, "packageLabelCreatedBefore" => package_label_created_before, "packageLabelCreatedAfter" => package_label_created_after, "shippedBefore" => shipped_before, "shippedAfter" => shipped_after, "estimatedDeliveryBefore" => estimated_delivery_before, "estimatedDeliveryAfter" => estimated_delivery_after, "shipmentDeliveryBefore" => shipment_delivery_before, "shipmentDeliveryAfter" => shipment_delivery_after, "requestedPickUpBefore" => requested_pick_up_before, "requestedPickUpAfter" => requested_pick_up_after, "scheduledPickUpBefore" => scheduled_pick_up_before, "scheduledPickUpAfter" => scheduled_pick_up_after, "currentShipmentStatus" => current_shipment_status, "vendorShipmentIdentifier" => vendor_shipment_identifier, "buyerReferenceNumber" => buyer_reference_number, "buyerWarehouseCode" => buyer_warehouse_code, "sellerWarehouseCode" => seller_warehouse_code, }.compact meter(rate_limit).get(path, params:) end |
#submit_shipment_confirmations(body, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Submits one or more shipment confirmations for vendor orders.
24 25 26 27 28 |
# File 'lib/peddler/apis/vendor_shipments_v1.rb', line 24 def submit_shipment_confirmations(body, rate_limit: 10.0) path = "/vendor/shipping/v1/shipmentConfirmations" meter(rate_limit).post(path, body:) end |
#submit_shipments(body, rate_limit: 10.0) ⇒ Peddler::Response
Submits one or more shipment request for vendor Orders.
35 36 37 38 39 40 41 |
# File 'lib/peddler/apis/vendor_shipments_v1.rb', line 35 def submit_shipments(body, rate_limit: 10.0) cannot_sandbox! path = "/vendor/shipping/v1/shipments" meter(rate_limit).post(path, body:) end |