Class: Google::Apis::ContentV2_1::TestOrder
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::TestOrder
- Defined in:
- generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#enable_orderinvoices ⇒ Boolean
(also: #enable_orderinvoices?)
Whether the orderinvoices service should support this order.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#line_items ⇒ Array<Google::Apis::ContentV2_1::TestOrderLineItem>
Line items that are ordered.
-
#notification_mode ⇒ String
Determines if test order must be pulled by merchant or pushed to merchant via push integration.
-
#predefined_billing_address ⇒ String
The billing address.
-
#predefined_delivery_address ⇒ String
Identifier of one of the predefined delivery addresses for the delivery.
-
#predefined_email ⇒ String
Email address of the customer.
-
#promotions ⇒ Array<Google::Apis::ContentV2_1::OrderPromotion>
Promotions associated with the order.
-
#shipping_cost ⇒ Google::Apis::ContentV2_1::Price
The price of shipping for all items.
-
#shipping_option ⇒ String
The requested shipping option.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TestOrder
constructor
A new instance of TestOrder.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ TestOrder
Returns a new instance of TestOrder
8827 8828 8829 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8827 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_orderinvoices ⇒ Boolean Also known as: enable_orderinvoices?
Whether the orderinvoices service should support this order.
Corresponds to the JSON property enableOrderinvoices
8775 8776 8777 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8775 def enable_orderinvoices @enable_orderinvoices end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "content#
testOrder".
Corresponds to the JSON property kind
8782 8783 8784 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8782 def kind @kind end |
#line_items ⇒ Array<Google::Apis::ContentV2_1::TestOrderLineItem>
Line items that are ordered. At least one line item must be provided.
Corresponds to the JSON property lineItems
8787 8788 8789 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8787 def line_items @line_items end |
#notification_mode ⇒ String
Determines if test order must be pulled by merchant or pushed to merchant via
push integration.
Corresponds to the JSON property notificationMode
8793 8794 8795 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8793 def notification_mode @notification_mode end |
#predefined_billing_address ⇒ String
The billing address.
Corresponds to the JSON property predefinedBillingAddress
8798 8799 8800 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8798 def predefined_billing_address @predefined_billing_address end |
#predefined_delivery_address ⇒ String
Identifier of one of the predefined delivery addresses for the delivery.
Corresponds to the JSON property predefinedDeliveryAddress
8803 8804 8805 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8803 def predefined_delivery_address @predefined_delivery_address end |
#predefined_email ⇒ String
Email address of the customer.
Corresponds to the JSON property predefinedEmail
8808 8809 8810 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8808 def predefined_email @predefined_email end |
#promotions ⇒ Array<Google::Apis::ContentV2_1::OrderPromotion>
Promotions associated with the order.
Corresponds to the JSON property promotions
8813 8814 8815 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8813 def promotions @promotions end |
#shipping_cost ⇒ Google::Apis::ContentV2_1::Price
The price of shipping for all items. Shipping tax is automatically calculated
for MFL orders. For non-MFL orders, tax settings from Merchant Center are
applied. Note that shipping is not taxed in certain states.
Corresponds to the JSON property shippingCost
8820 8821 8822 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8820 def shipping_cost @shipping_cost end |
#shipping_option ⇒ String
The requested shipping option.
Corresponds to the JSON property shippingOption
8825 8826 8827 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8825 def shipping_option @shipping_option end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8832 def update!(**args) @enable_orderinvoices = args[:enable_orderinvoices] if args.key?(:enable_orderinvoices) @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) @predefined_billing_address = args[:predefined_billing_address] if args.key?(:predefined_billing_address) @predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address) @predefined_email = args[:predefined_email] if args.key?(:predefined_email) @promotions = args[:promotions] if args.key?(:promotions) @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost) @shipping_option = args[:shipping_option] if args.key?(:shipping_option) end |