Class: Google::Apis::ContentV2::WarehouseBasedDeliveryTime

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WarehouseBasedDeliveryTime

Returns a new instance of WarehouseBasedDeliveryTime.



11572
11573
11574
# File 'lib/google/apis/content_v2/classes.rb', line 11572

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

Instance Attribute Details

#carrierString

Required. Carrier, such as "UPS" or "Fedex". The list of supported carriers can be retrieved via the listSupportedCarriers method. Corresponds to the JSON property carrier

Returns:

  • (String)


11536
11537
11538
# File 'lib/google/apis/content_v2/classes.rb', line 11536

def carrier
  @carrier
end

#carrier_serviceString

Required. Carrier service, such as "ground" or "2 days". The list of supported services for a carrier can be retrieved via the listSupportedCarriers method. The name of the service must be in the eddSupportedServices list. Corresponds to the JSON property carrierService

Returns:

  • (String)


11544
11545
11546
# File 'lib/google/apis/content_v2/classes.rb', line 11544

def carrier_service
  @carrier_service
end

#origin_administrative_areaString

Required. Shipping origin's state. Corresponds to the JSON property originAdministrativeArea

Returns:

  • (String)


11549
11550
11551
# File 'lib/google/apis/content_v2/classes.rb', line 11549

def origin_administrative_area
  @origin_administrative_area
end

#origin_cityString

Required. Shipping origin's city. Corresponds to the JSON property originCity

Returns:

  • (String)


11554
11555
11556
# File 'lib/google/apis/content_v2/classes.rb', line 11554

def origin_city
  @origin_city
end

#origin_countryString

Required. Shipping origin's country represented as a CLDR territory code. Corresponds to the JSON property originCountry

Returns:

  • (String)


11560
11561
11562
# File 'lib/google/apis/content_v2/classes.rb', line 11560

def origin_country
  @origin_country
end

#origin_postal_codeString

Required. Shipping origin. Corresponds to the JSON property originPostalCode

Returns:

  • (String)


11565
11566
11567
# File 'lib/google/apis/content_v2/classes.rb', line 11565

def origin_postal_code
  @origin_postal_code
end

#origin_street_addressString

Shipping origin's street address Corresponds to the JSON property originStreetAddress

Returns:

  • (String)


11570
11571
11572
# File 'lib/google/apis/content_v2/classes.rb', line 11570

def origin_street_address
  @origin_street_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11577
11578
11579
11580
11581
11582
11583
11584
11585
# File 'lib/google/apis/content_v2/classes.rb', line 11577

def update!(**args)
  @carrier = args[:carrier] if args.key?(:carrier)
  @carrier_service = args[:carrier_service] if args.key?(:carrier_service)
  @origin_administrative_area = args[:origin_administrative_area] if args.key?(:origin_administrative_area)
  @origin_city = args[:origin_city] if args.key?(:origin_city)
  @origin_country = args[:origin_country] if args.key?(:origin_country)
  @origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
  @origin_street_address = args[:origin_street_address] if args.key?(:origin_street_address)
end