Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions lib/peddler/apis/orders_v0.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,9 @@ class OrdersV0 < API
# @param payment_methods [Array<String>] A list of payment method values. Use this field to select orders that
# were paid with the specified payment methods. **Possible values**: `COD` (cash on delivery), `CVS`
# (convenience store), `Other` (Any payment method other than COD or CVS).
# @param buyer_email [String] The email address of a buyer. Used to select orders that contain the specified email
# address.
# @param seller_order_id [String] An order identifier that is specified by the seller. Used to select only the
# orders that match the order identifier. If `SellerOrderId` is specified, then `FulfillmentChannels`,
# `OrderStatuses`, `PaymentMethod`, `LastUpdatedAfter`, LastUpdatedBefore, and `BuyerEmail` cannot be specified.
# `OrderStatuses`, `PaymentMethod`, `LastUpdatedAfter`, and `LastUpdatedBefore` cannot be specified.
# @param max_results_per_page [Integer] A number that indicates the maximum number of orders that can be returned
# per page. Value must be 1 - 100. Default 100.
# @param easy_ship_shipment_statuses [Array<String>] A list of `EasyShipShipmentStatus` values. Used to select
Expand Down Expand Up @@ -111,7 +109,7 @@ class OrdersV0 < API
# @return [Peddler::Response] The API response
def get_orders(marketplace_ids, created_after: nil, created_before: nil, last_updated_after: nil,
last_updated_before: nil, order_statuses: nil, fulfillment_channels: nil, payment_methods: nil,
buyer_email: nil, seller_order_id: nil, max_results_per_page: nil, easy_ship_shipment_statuses: nil,
seller_order_id: nil, max_results_per_page: nil, easy_ship_shipment_statuses: nil,
electronic_invoice_statuses: nil, next_token: nil, amazon_order_ids: nil,
actual_fulfillment_supply_source_id: nil, is_ispu: nil, store_chain_store_id: nil,
earliest_delivery_date_before: nil, earliest_delivery_date_after: nil, latest_delivery_date_before: nil,
Expand All @@ -126,7 +124,6 @@ def get_orders(marketplace_ids, created_after: nil, created_before: nil, last_up
"MarketplaceIds" => stringify_array(marketplace_ids),
"FulfillmentChannels" => stringify_array(fulfillment_channels),
"PaymentMethods" => stringify_array(payment_methods),
"BuyerEmail" => buyer_email,
"SellerOrderId" => seller_order_id,
"MaxResultsPerPage" => max_results_per_page,
"EasyShipShipmentStatuses" => stringify_array(easy_ship_shipment_statuses),
Expand Down
3 changes: 0 additions & 3 deletions lib/peddler/apis/orders_v0/buyer_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ class OrdersV0
# **Note**: This attribute is only available in the Brazil marketplace.
attribute?(:buyer_county, String, from: "BuyerCounty")

# @return [String] The anonymized email address of the buyer.
attribute?(:buyer_email, String, from: "BuyerEmail")

# @return [String] The buyer name or the recipient name.
attribute?(:buyer_name, String, from: "BuyerName")

Expand Down
3 changes: 0 additions & 3 deletions lib/peddler/apis/orders_v0/order_buyer_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ class OrdersV0
# **Note**: This attribute is only available in the Brazil marketplace.
attribute?(:buyer_county, String, from: "BuyerCounty")

# @return [String] The anonymized email address of the buyer.
attribute?(:buyer_email, String, from: "BuyerEmail")

# @return [String] The buyer name or the recipient name.
attribute?(:buyer_name, String, from: "BuyerName")

Expand Down
32 changes: 15 additions & 17 deletions sig/peddler/apis/orders_v0.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -137,23 +137,22 @@ module Peddler
end

class BuyerInfo < Data
def self.new: (?buyer_county: String?, ?buyer_email: String?, ?buyer_name: String?, ?buyer_tax_info: Peddler::APIs::OrdersV0::BuyerTaxInfo?, ?purchase_order_number: String?) -> Peddler::APIs::OrdersV0::BuyerInfo
| (String?, String?, String?, Peddler::APIs::OrdersV0::BuyerTaxInfo?, String?) -> Peddler::APIs::OrdersV0::BuyerInfo
def self.[]: (?buyer_county: String?, ?buyer_email: String?, ?buyer_name: String?, ?buyer_tax_info: Peddler::APIs::OrdersV0::BuyerTaxInfo?, ?purchase_order_number: String?) -> Peddler::APIs::OrdersV0::BuyerInfo
| (String?, String?, String?, Peddler::APIs::OrdersV0::BuyerTaxInfo?, String?) -> Peddler::APIs::OrdersV0::BuyerInfo
def self.new: (?buyer_county: String?, ?buyer_name: String?, ?buyer_tax_info: Peddler::APIs::OrdersV0::BuyerTaxInfo?, ?purchase_order_number: String?) -> Peddler::APIs::OrdersV0::BuyerInfo
| (String?, String?, Peddler::APIs::OrdersV0::BuyerTaxInfo?, String?) -> Peddler::APIs::OrdersV0::BuyerInfo
def self.[]: (?buyer_county: String?, ?buyer_name: String?, ?buyer_tax_info: Peddler::APIs::OrdersV0::BuyerTaxInfo?, ?purchase_order_number: String?) -> Peddler::APIs::OrdersV0::BuyerInfo
| (String?, String?, Peddler::APIs::OrdersV0::BuyerTaxInfo?, String?) -> Peddler::APIs::OrdersV0::BuyerInfo

def self.members: () -> [ :buyer_county, :buyer_email, :buyer_name, :buyer_tax_info, :purchase_order_number ]
def self.members: () -> [ :buyer_county, :buyer_name, :buyer_tax_info, :purchase_order_number ]

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::OrdersV0::BuyerInfo

attr_reader buyer_county: String?
attr_reader buyer_email: String?
attr_reader buyer_name: String?
attr_reader buyer_tax_info: Peddler::APIs::OrdersV0::BuyerTaxInfo?
attr_reader purchase_order_number: String?

def members: () -> [ :buyer_county, :buyer_email, :buyer_name, :buyer_tax_info, :purchase_order_number ]
def to_h: () -> { buyer_county: String?, buyer_email: String?, buyer_name: String?, buyer_tax_info: Peddler::APIs::OrdersV0::BuyerTaxInfo?, purchase_order_number: String? }
def members: () -> [ :buyer_county, :buyer_name, :buyer_tax_info, :purchase_order_number ]
def to_h: () -> { buyer_county: String?, buyer_name: String?, buyer_tax_info: Peddler::APIs::OrdersV0::BuyerTaxInfo?, purchase_order_number: String? }
end

class BuyerRequestedCancel < Data
Expand Down Expand Up @@ -641,24 +640,23 @@ module Peddler
end

class OrderBuyerInfo < Data
def self.new: (amazon_order_id: String?, ?buyer_county: String?, ?buyer_email: String?, ?buyer_name: String?, ?buyer_tax_info: Peddler::APIs::OrdersV0::BuyerTaxInfo?, ?purchase_order_number: String?) -> Peddler::APIs::OrdersV0::OrderBuyerInfo
| (String?, String?, String?, String?, Peddler::APIs::OrdersV0::BuyerTaxInfo?, String?) -> Peddler::APIs::OrdersV0::OrderBuyerInfo
def self.[]: (amazon_order_id: String?, ?buyer_county: String?, ?buyer_email: String?, ?buyer_name: String?, ?buyer_tax_info: Peddler::APIs::OrdersV0::BuyerTaxInfo?, ?purchase_order_number: String?) -> Peddler::APIs::OrdersV0::OrderBuyerInfo
| (String?, String?, String?, String?, Peddler::APIs::OrdersV0::BuyerTaxInfo?, String?) -> Peddler::APIs::OrdersV0::OrderBuyerInfo
def self.new: (amazon_order_id: String?, ?buyer_county: String?, ?buyer_name: String?, ?buyer_tax_info: Peddler::APIs::OrdersV0::BuyerTaxInfo?, ?purchase_order_number: String?) -> Peddler::APIs::OrdersV0::OrderBuyerInfo
| (String?, String?, String?, Peddler::APIs::OrdersV0::BuyerTaxInfo?, String?) -> Peddler::APIs::OrdersV0::OrderBuyerInfo
def self.[]: (amazon_order_id: String?, ?buyer_county: String?, ?buyer_name: String?, ?buyer_tax_info: Peddler::APIs::OrdersV0::BuyerTaxInfo?, ?purchase_order_number: String?) -> Peddler::APIs::OrdersV0::OrderBuyerInfo
| (String?, String?, String?, Peddler::APIs::OrdersV0::BuyerTaxInfo?, String?) -> Peddler::APIs::OrdersV0::OrderBuyerInfo

def self.members: () -> [ :amazon_order_id, :buyer_county, :buyer_email, :buyer_name, :buyer_tax_info, :purchase_order_number ]
def self.members: () -> [ :amazon_order_id, :buyer_county, :buyer_name, :buyer_tax_info, :purchase_order_number ]

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::OrdersV0::OrderBuyerInfo

attr_reader amazon_order_id: String?
attr_reader buyer_county: String?
attr_reader buyer_email: String?
attr_reader buyer_name: String?
attr_reader buyer_tax_info: Peddler::APIs::OrdersV0::BuyerTaxInfo?
attr_reader purchase_order_number: String?

def members: () -> [ :amazon_order_id, :buyer_county, :buyer_email, :buyer_name, :buyer_tax_info, :purchase_order_number ]
def to_h: () -> { amazon_order_id: String?, buyer_county: String?, buyer_email: String?, buyer_name: String?, buyer_tax_info: Peddler::APIs::OrdersV0::BuyerTaxInfo?, purchase_order_number: String? }
def members: () -> [ :amazon_order_id, :buyer_county, :buyer_name, :buyer_tax_info, :purchase_order_number ]
def to_h: () -> { amazon_order_id: String?, buyer_county: String?, buyer_name: String?, buyer_tax_info: Peddler::APIs::OrdersV0::BuyerTaxInfo?, purchase_order_number: String? }
end

class OrderItem < Data
Expand Down Expand Up @@ -1258,7 +1256,7 @@ module Peddler
def get_order_items_buyer_info: (String, ?next_token: String?, ?rate_limit: Float) -> Peddler::Response

def get_order_regulated_info: (String, ?rate_limit: Float) -> Peddler::Response
def get_orders: (Array[String], ?created_after: String?, ?created_before: String?, ?last_updated_after: String?, ?last_updated_before: String?, ?order_statuses: Array[String]?, ?fulfillment_channels: Array[String]?, ?payment_methods: Array[String]?, ?buyer_email: String?, ?seller_order_id: String?, ?max_results_per_page: Integer?, ?easy_ship_shipment_statuses: Array[String]?, ?electronic_invoice_statuses: Array[String]?, ?next_token: String?, ?amazon_order_ids: Array[String]?, ?actual_fulfillment_supply_source_id: String?, ?is_ispu: bool?, ?store_chain_store_id: String?, ?earliest_delivery_date_before: String?, ?earliest_delivery_date_after: String?, ?latest_delivery_date_before: String?, ?latest_delivery_date_after: String?, ?rate_limit: Float) -> Peddler::Response
def get_orders: (Array[String], ?created_after: String?, ?created_before: String?, ?last_updated_after: String?, ?last_updated_before: String?, ?order_statuses: Array[String]?, ?fulfillment_channels: Array[String]?, ?payment_methods: Array[String]?, ?seller_order_id: String?, ?max_results_per_page: Integer?, ?easy_ship_shipment_statuses: Array[String]?, ?electronic_invoice_statuses: Array[String]?, ?next_token: String?, ?amazon_order_ids: Array[String]?, ?actual_fulfillment_supply_source_id: String?, ?is_ispu: bool?, ?store_chain_store_id: String?, ?earliest_delivery_date_before: String?, ?earliest_delivery_date_after: String?, ?latest_delivery_date_before: String?, ?latest_delivery_date_after: String?, ?rate_limit: Float) -> Peddler::Response

def update_shipment_status: (String, Hash[untyped, untyped], ?rate_limit: Float) -> Peddler::Response

Expand Down