Class: Google::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- 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
-
#carrier ⇒ String
The carrier for the shipping.
-
#max_days_in_transit ⇒ Fixnum
Required.
-
#method_name ⇒ String
Required.
-
#min_days_in_transit ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderLineItemShippingDetailsMethod
constructor
A new instance of OrderLineItemShippingDetailsMethod.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrderLineItemShippingDetailsMethod
Returns a new instance of OrderLineItemShippingDetailsMethod.
5222 5223 5224 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 5222 def initialize(**args) update!(**args) end |
Instance Attribute Details
#carrier ⇒ String
The carrier for the shipping. Optional. See shipments[].carrier
for a list
of acceptable values.
Corresponds to the JSON property carrier
5205 5206 5207 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 5205 def carrier @carrier end |
#max_days_in_transit ⇒ Fixnum
Required. Maximum transit time.
Corresponds to the JSON property maxDaysInTransit
5210 5211 5212 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 5210 def max_days_in_transit @max_days_in_transit end |
#method_name ⇒ String
Required. The name of the shipping method.
Corresponds to the JSON property methodName
5215 5216 5217 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 5215 def method_name @method_name end |
#min_days_in_transit ⇒ Fixnum
Required. Minimum transit time.
Corresponds to the JSON property minDaysInTransit
5220 5221 5222 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 5220 def min_days_in_transit @min_days_in_transit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5227 5228 5229 5230 5231 5232 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 5227 def update!(**args) @carrier = args[:carrier] if args.key?(:carrier) @max_days_in_transit = args[:max_days_in_transit] if args.key?(:max_days_in_transit) @method_name = args[:method_name] if args.key?(:method_name) @min_days_in_transit = args[:min_days_in_transit] if args.key?(:min_days_in_transit) end |