Class: Google::Apis::ContentV2::OrderLineItemShippingDetailsMethod

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderLineItemShippingDetailsMethod

Returns a new instance of OrderLineItemShippingDetailsMethod.



5038
5039
5040
# File 'generated/google/apis/content_v2/classes.rb', line 5038

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#carrierString

The carrier for the shipping. Optional. See shipments[].carrier for a list of acceptable values. Corresponds to the JSON property carrier

Returns:

  • (String)


5021
5022
5023
# File 'generated/google/apis/content_v2/classes.rb', line 5021

def carrier
  @carrier
end

#max_days_in_transitFixnum

Required. Maximum transit time. Corresponds to the JSON property maxDaysInTransit

Returns:

  • (Fixnum)


5026
5027
5028
# File 'generated/google/apis/content_v2/classes.rb', line 5026

def max_days_in_transit
  @max_days_in_transit
end

#method_nameString

Required. The name of the shipping method. Corresponds to the JSON property methodName

Returns:

  • (String)


5031
5032
5033
# File 'generated/google/apis/content_v2/classes.rb', line 5031

def method_name
  @method_name
end

#min_days_in_transitFixnum

Required. Minimum transit time. Corresponds to the JSON property minDaysInTransit

Returns:

  • (Fixnum)


5036
5037
5038
# File 'generated/google/apis/content_v2/classes.rb', line 5036

def min_days_in_transit
  @min_days_in_transit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5043
5044
5045
5046
5047
5048
# File 'generated/google/apis/content_v2/classes.rb', line 5043

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