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
9438 9439 9440 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9438 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
9385 9386 9387 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9385 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
9392 9393 9394 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9392 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
9397 9398 9399 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9397 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
9403 9404 9405 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9403 def notification_mode @notification_mode end |
#predefined_billing_address ⇒ String
The billing address.
Corresponds to the JSON property predefinedBillingAddress
9408 9409 9410 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9408 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
9413 9414 9415 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9413 def predefined_delivery_address @predefined_delivery_address end |
#predefined_email ⇒ String
Email address of the customer.
Corresponds to the JSON property predefinedEmail
9418 9419 9420 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9418 def predefined_email @predefined_email end |
#promotions ⇒ Array<Google::Apis::ContentV2_1::OrderPromotion>
Promotions associated with the order.
Corresponds to the JSON property promotions
9423 9424 9425 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9423 def promotions @promotions end |
#shipping_cost ⇒ Google::Apis::ContentV2_1::Price
The price of shipping for all items. Shipping tax is automatically calculated
for orders where marketplace facilitator tax laws are applicable. Otherwise,
tax settings from Merchant Center are applied. Note that shipping is not taxed
in certain states.
Corresponds to the JSON property shippingCost
9431 9432 9433 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9431 def shipping_cost @shipping_cost end |
#shipping_option ⇒ String
The requested shipping option.
Corresponds to the JSON property shippingOption
9436 9437 9438 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9436 def shipping_option @shipping_option end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9443 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 |