Class: MuffinMan::RequestHelpers::OutboundFulfillment::V20200701
- Inherits:
-
Object
- Object
- MuffinMan::RequestHelpers::OutboundFulfillment::V20200701
- Defined in:
- lib/muffin_man/request_helpers/outbound_fulfillment/v20200701.rb
Class Method Summary collapse
- .address_request(name, address_line1, state_or_region, country_code, optional_params = {}) ⇒ Object
- .fulfillment_order_request(seller_fulfillment_order_id, displayable_order_id, displayable_order_date_time, displayable_order_comment, shipping_speed_category, destination_address, items, optional_params = {}) ⇒ Object
- .fulfillment_preview_request(address, items, optional_params = {}) ⇒ Object
- .item_request(seller_sku, seller_fulfillment_order_item_id, quantity, optional_params = {}) ⇒ Object
Class Method Details
.address_request(name, address_line1, state_or_region, country_code, optional_params = {}) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/muffin_man/request_helpers/outbound_fulfillment/v20200701.rb', line 7 def self.address_request(name, address_line1, state_or_region, country_code, optional_params = {}) Address.new({ "name" => name, "address_line1" => address_line1, "state_or_region" => state_or_region, "country_code" => country_code }.merge(optional_params)) end |
.fulfillment_order_request(seller_fulfillment_order_id, displayable_order_id, displayable_order_date_time, displayable_order_comment, shipping_speed_category, destination_address, items, optional_params = {}) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/muffin_man/request_helpers/outbound_fulfillment/v20200701.rb', line 24 def self.fulfillment_order_request(seller_fulfillment_order_id, displayable_order_id, displayable_order_date_time, displayable_order_comment, shipping_speed_category, destination_address, items, optional_params = {}) FulfillmentOrderRequest.new(seller_fulfillment_order_id, displayable_order_id, displayable_order_date_time, displayable_order_comment, shipping_speed_category, destination_address, items, optional_params) end |
.fulfillment_preview_request(address, items, optional_params = {}) ⇒ Object
33 34 35 |
# File 'lib/muffin_man/request_helpers/outbound_fulfillment/v20200701.rb', line 33 def self.fulfillment_preview_request(address, items, optional_params = {}) FulfillmentPreviewRequest.new(address, items, optional_params) end |
.item_request(seller_sku, seller_fulfillment_order_item_id, quantity, optional_params = {}) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/muffin_man/request_helpers/outbound_fulfillment/v20200701.rb', line 16 def self.item_request(seller_sku, seller_fulfillment_order_item_id, quantity, optional_params = {}) Item.new({ "seller_sku" => seller_sku, "seller_fulfillment_order_item_id" => seller_fulfillment_order_item_id, "quantity" => quantity }.merge(optional_params)) end |