generated/google/apis/content_v2/classes.rb in google-api-client-0.30.9 vs generated/google/apis/content_v2/classes.rb in google-api-client-0.30.10

- old
+ new

@@ -4051,11 +4051,11 @@ # The details of the customer who placed the order. # Corresponds to the JSON property `customer` # @return [Google::Apis::ContentV2::OrderCustomer] attr_accessor :customer - # Delivery details for shipments. + # Delivery details for shipments of type delivery. # Corresponds to the JSON property `deliveryDetails` # @return [Google::Apis::ContentV2::OrderDeliveryDetails] attr_accessor :delivery_details # The REST ID of the order. Globally unique. @@ -4099,10 +4099,15 @@ # The status of the payment. # Corresponds to the JSON property `paymentStatus` # @return [String] attr_accessor :payment_status + # Pickup details for shipments of type pickup. + # Corresponds to the JSON property `pickupDetails` + # @return [Google::Apis::ContentV2::OrderPickupDetails] + attr_accessor :pickup_details + # The date when the order was placed, in ISO 8601 format. # Corresponds to the JSON property `placedDate` # @return [String] attr_accessor :placed_date @@ -4163,10 +4168,11 @@ @merchant_id = args[:merchant_id] if args.key?(:merchant_id) @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id) @net_amount = args[:net_amount] if args.key?(:net_amount) @payment_method = args[:payment_method] if args.key?(:payment_method) @payment_status = args[:payment_status] if args.key?(:payment_status) + @pickup_details = args[:pickup_details] if args.key?(:pickup_details) @placed_date = args[:placed_date] if args.key?(:placed_date) @promotions = args[:promotions] if args.key?(:promotions) @refunds = args[:refunds] if args.key?(:refunds) @shipments = args[:shipments] if args.key?(:shipments) @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost) @@ -4309,10 +4315,16 @@ # Full name of the customer. # Corresponds to the JSON property `fullName` # @return [String] attr_accessor :full_name + # Email address for receiving merchant issued value-added tax or invoice + # documentation of this order. + # Corresponds to the JSON property `invoiceReceivingEmail` + # @return [String] + attr_accessor :invoice_receiving_email + # Customer's marketing preferences. Contains the marketing opt-in information # that is current at the time that the merchant call. User preference selections # can change from one order to the next so preferences must be checked with # every order. # Corresponds to the JSON property `marketingRightsInfo` @@ -4326,10 +4338,11 @@ # Update properties of this object def update!(**args) @email = args[:email] if args.key?(:email) @explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference) @full_name = args[:full_name] if args.key?(:full_name) + @invoice_receiving_email = args[:invoice_receiving_email] if args.key?(:invoice_receiving_email) @marketing_rights_info = args[:marketing_rights_info] if args.key?(:marketing_rights_info) end end # @@ -4553,10 +4566,15 @@ # Number of items pending. # Corresponds to the JSON property `quantityPending` # @return [Fixnum] attr_accessor :quantity_pending + # Number of items ready for pickup. + # Corresponds to the JSON property `quantityReadyForPickup` + # @return [Fixnum] + attr_accessor :quantity_ready_for_pickup + # Number of items returned. # Corresponds to the JSON property `quantityReturned` # @return [Fixnum] attr_accessor :quantity_returned @@ -4599,10 +4617,11 @@ @product = args[:product] if args.key?(:product) @quantity_canceled = args[:quantity_canceled] if args.key?(:quantity_canceled) @quantity_delivered = args[:quantity_delivered] if args.key?(:quantity_delivered) @quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered) @quantity_pending = args[:quantity_pending] if args.key?(:quantity_pending) + @quantity_ready_for_pickup = args[:quantity_ready_for_pickup] if args.key?(:quantity_ready_for_pickup) @quantity_returned = args[:quantity_returned] if args.key?(:quantity_returned) @quantity_shipped = args[:quantity_shipped] if args.key?(:quantity_shipped) @return_info = args[:return_info] if args.key?(:return_info) @returns = args[:returns] if args.key?(:returns) @shipping_details = args[:shipping_details] if args.key?(:shipping_details) @@ -4820,19 +4839,26 @@ # The ship by date, in ISO 8601 format. # Corresponds to the JSON property `shipByDate` # @return [String] attr_accessor :ship_by_date + # Type of shipment. Indicates whether deliveryDetails or pickupDetails is + # applicable for this shipment. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date) @method_prop = args[:method_prop] if args.key?(:method_prop) @ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date) + @type = args[:type] if args.key?(:type) end end # class OrderLineItemShippingDetailsMethod @@ -4955,10 +4981,68 @@ @type = args[:type] if args.key?(:type) end end # + class OrderPickupDetails + include Google::Apis::Core::Hashable + + # Address of the pickup location where the shipment should be sent. Note that + # recipientName in the address is the name of the business at the pickup + # location. + # Corresponds to the JSON property `address` + # @return [Google::Apis::ContentV2::OrderAddress] + attr_accessor :address + + # Collectors authorized to pick up shipment from the pickup location. + # Corresponds to the JSON property `collectors` + # @return [Array<Google::Apis::ContentV2::OrderPickupDetailsCollector>] + attr_accessor :collectors + + # ID of the pickup location. + # Corresponds to the JSON property `locationId` + # @return [String] + attr_accessor :location_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address = args[:address] if args.key?(:address) + @collectors = args[:collectors] if args.key?(:collectors) + @location_id = args[:location_id] if args.key?(:location_id) + end + end + + # + class OrderPickupDetailsCollector + include Google::Apis::Core::Hashable + + # Name of the person picking up the shipment. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Phone number of the person picking up the shipment. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @phone_number = args[:phone_number] if args.key?(:phone_number) + end + end + + # class OrderRefund include Google::Apis::Core::Hashable # The actor that created the refund. # Corresponds to the JSON property `actor` @@ -5185,11 +5269,11 @@ # - "colissimo" # - "chronopost" # - "gls" # - "dpd" # - "bpost" - # - "colis priv�" + # - "colis prive" # - "boxtal" # - "geodis" # Corresponds to the JSON property `carrier` # @return [String] attr_accessor :carrier @@ -10607,10 +10691,16 @@ # Identifier of one of the predefined delivery addresses for the delivery. # Corresponds to the JSON property `predefinedDeliveryAddress` # @return [String] attr_accessor :predefined_delivery_address + # Identifier of one of the predefined pickup details. Required for orders + # containing line items with shipping type pickup. + # Corresponds to the JSON property `predefinedPickupDetails` + # @return [String] + attr_accessor :predefined_pickup_details + # Deprecated. Ignored if provided. # Corresponds to the JSON property `promotions` # @return [Array<Google::Apis::ContentV2::OrderLegacyPromotion>] attr_accessor :promotions @@ -10643,9 +10733,10 @@ @kind = args[:kind] if args.key?(:kind) @line_items = args[:line_items] if args.key?(:line_items) @notification_mode = args[:notification_mode] if args.key?(:notification_mode) @payment_method = args[:payment_method] if args.key?(:payment_method) @predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address) + @predefined_pickup_details = args[:predefined_pickup_details] if args.key?(:predefined_pickup_details) @promotions = args[:promotions] if args.key?(:promotions) @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost) @shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax) @shipping_option = args[:shipping_option] if args.key?(:shipping_option) end