Class: Google::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrderLineItemShippingDetailsMethod

Returns a new instance of OrderLineItemShippingDetailsMethod



4079
4080
4081
# File 'generated/google/apis/content_v2_1/classes.rb', line 4079

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)


4062
4063
4064
# File 'generated/google/apis/content_v2_1/classes.rb', line 4062

def carrier
  @carrier
end

#max_days_in_transitFixnum

Maximum transit time. Corresponds to the JSON property maxDaysInTransit

Returns:

  • (Fixnum)


4067
4068
4069
# File 'generated/google/apis/content_v2_1/classes.rb', line 4067

def max_days_in_transit
  @max_days_in_transit
end

#method_nameString

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

Returns:

  • (String)


4072
4073
4074
# File 'generated/google/apis/content_v2_1/classes.rb', line 4072

def method_name
  @method_name
end

#min_days_in_transitFixnum

Minimum transit time. Corresponds to the JSON property minDaysInTransit

Returns:

  • (Fixnum)


4077
4078
4079
# File 'generated/google/apis/content_v2_1/classes.rb', line 4077

def min_days_in_transit
  @min_days_in_transit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4084
4085
4086
4087
4088
4089
# File 'generated/google/apis/content_v2_1/classes.rb', line 4084

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