Class: Google::Apis::ContentV2::WarehouseBasedDeliveryTime
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::WarehouseBasedDeliveryTime
- 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
-
#carrier ⇒ String
Required.
-
#carrier_service ⇒ String
Required.
-
#origin_administrative_area ⇒ String
Shipping origin's state.
-
#origin_city ⇒ String
Shipping origin's city.
-
#origin_country ⇒ String
Shipping origin's country represented as a CLDR territory code.
-
#origin_postal_code ⇒ String
Shipping origin.
-
#origin_street_address ⇒ String
Shipping origin's street address Corresponds to the JSON property
originStreetAddress. -
#warehouse_name ⇒ String
The name of the warehouse.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WarehouseBasedDeliveryTime
constructor
A new instance of WarehouseBasedDeliveryTime.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WarehouseBasedDeliveryTime
Returns a new instance of WarehouseBasedDeliveryTime.
11679 11680 11681 |
# File 'lib/google/apis/content_v2/classes.rb', line 11679 def initialize(**args) update!(**args) end |
Instance Attribute Details
#carrier ⇒ String
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
11636 11637 11638 |
# File 'lib/google/apis/content_v2/classes.rb', line 11636 def carrier @carrier end |
#carrier_service ⇒ String
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
11644 11645 11646 |
# File 'lib/google/apis/content_v2/classes.rb', line 11644 def carrier_service @carrier_service end |
#origin_administrative_area ⇒ String
Shipping origin's state.
Corresponds to the JSON property originAdministrativeArea
11649 11650 11651 |
# File 'lib/google/apis/content_v2/classes.rb', line 11649 def origin_administrative_area @origin_administrative_area end |
#origin_city ⇒ String
Shipping origin's city.
Corresponds to the JSON property originCity
11654 11655 11656 |
# File 'lib/google/apis/content_v2/classes.rb', line 11654 def origin_city @origin_city end |
#origin_country ⇒ String
Shipping origin's country represented as a CLDR territory code.
Corresponds to the JSON property originCountry
11660 11661 11662 |
# File 'lib/google/apis/content_v2/classes.rb', line 11660 def origin_country @origin_country end |
#origin_postal_code ⇒ String
Shipping origin.
Corresponds to the JSON property originPostalCode
11665 11666 11667 |
# File 'lib/google/apis/content_v2/classes.rb', line 11665 def origin_postal_code @origin_postal_code end |
#origin_street_address ⇒ String
Shipping origin's street address
Corresponds to the JSON property originStreetAddress
11670 11671 11672 |
# File 'lib/google/apis/content_v2/classes.rb', line 11670 def origin_street_address @origin_street_address end |
#warehouse_name ⇒ String
The name of the warehouse. Warehouse name need to be matched with name. If
warehouseName is set, the below fields will be ignored. The warehouse info
will be read from warehouse.
Corresponds to the JSON property warehouseName
11677 11678 11679 |
# File 'lib/google/apis/content_v2/classes.rb', line 11677 def warehouse_name @warehouse_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 |
# File 'lib/google/apis/content_v2/classes.rb', line 11684 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) @warehouse_name = args[:warehouse_name] if args.key?(:warehouse_name) end |