lib/peddler/apis/vendor_shipments_v1.rb in peddler-4.1.0 vs lib/peddler/apis/vendor_shipments_v1.rb in peddler-4.1.1

- old
+ new

@@ -18,30 +18,28 @@ # Submits one or more shipment confirmations for vendor orders. # # @note This operation can make a static sandbox call. # @param body [Hash] A request to submit shipment confirmation. # @param rate_limit [Float] Requests per second - # @param tries [Integer] Total request attempts, including retries # @return [Peddler::Response] The API response - def submit_shipment_confirmations(body, rate_limit: 10.0, tries: 2) + def submit_shipment_confirmations(body, rate_limit: 10.0) path = "/vendor/shipping/v1/shipmentConfirmations" - meter(rate_limit, tries:).post(path, body:) + meter(rate_limit).post(path, body:) end # Submits one or more shipment request for vendor Orders. # # @param body [Hash] A request to submit shipment request. # @param rate_limit [Float] Requests per second - # @param tries [Integer] Total request attempts, including retries # @return [Peddler::Response] The API response - def submit_shipments(body, rate_limit: 10.0, tries: 2) + def submit_shipments(body, rate_limit: 10.0) cannot_sandbox! path = "/vendor/shipping/v1/shipments" - meter(rate_limit, tries:).post(path, body:) + meter(rate_limit).post(path, body:) end # 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. # @@ -87,19 +85,18 @@ # @param buyer_warehouse_code [String] Get Shipping Details based on buyer warehouse code. This value should be # same as 'shipToParty.partyId' in the Shipment. # @param seller_warehouse_code [String] Get Shipping Details based on vendor warehouse code. This value should be # same as 'sellingParty.partyId' in the Shipment. # @param rate_limit [Float] Requests per second - # @param tries [Integer] Total request attempts, including retries # @return [Peddler::Response] The API response 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, tries: 2) + 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, @@ -126,10 +123,10 @@ "buyerReferenceNumber" => buyer_reference_number, "buyerWarehouseCode" => buyer_warehouse_code, "sellerWarehouseCode" => seller_warehouse_code, }.compact - meter(rate_limit, tries:).get(path, params:) + meter(rate_limit).get(path, params:) end end end end