Class: Google::Apis::MerchantapiAccountsV1beta::WarehouseBasedDeliveryTime
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::WarehouseBasedDeliveryTime
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_accounts_v1beta/classes.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb
Overview
Indicates that the delivery time should be calculated per warehouse (shipping
origin location) based on the settings of the selected carrier. When set, no
other transit time related field in delivery_time
should be set.
Instance Attribute Summary collapse
-
#carrier ⇒ String
Required.
-
#carrier_service ⇒ String
Required.
-
#warehouse ⇒ String
Required.
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.
3061 3062 3063 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3061 def initialize(**args) update!(**args) end |
Instance Attribute Details
#carrier ⇒ String
Required. Carrier, such as "UPS"
or "Fedex"
.
Corresponds to the JSON property carrier
3048 3049 3050 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3048 def carrier @carrier end |
#carrier_service ⇒ String
Required. Carrier service, such as "ground"
or "2 days"
. The name of the
service must be in the eddSupportedServices list.
Corresponds to the JSON property carrierService
3054 3055 3056 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3054 def carrier_service @carrier_service end |
#warehouse ⇒ String
Required. Warehouse name. This should match warehouse
Corresponds to the JSON property warehouse
3059 3060 3061 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3059 def warehouse @warehouse end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3066 3067 3068 3069 3070 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3066 def update!(**args) @carrier = args[:carrier] if args.key?(:carrier) @carrier_service = args[:carrier_service] if args.key?(:carrier_service) @warehouse = args[:warehouse] if args.key?(:warehouse) end |