Class: Google::Apis::ContentV2sandbox::OrderLineItemShippingDetailsMethod

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/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



722
723
724
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 722

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)


705
706
707
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 705

def carrier
  @carrier
end

#max_days_in_transitFixnum

Maximum transit time. Corresponds to the JSON property maxDaysInTransit

Returns:

  • (Fixnum)


710
711
712
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 710

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)


715
716
717
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 715

def method_name
  @method_name
end

#min_days_in_transitFixnum

Minimum transit time. Corresponds to the JSON property minDaysInTransit

Returns:

  • (Fixnum)


720
721
722
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 720

def min_days_in_transit
  @min_days_in_transit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



727
728
729
730
731
732
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 727

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