Class: Google::Shopping::Merchant::Accounts::V1::CarrierRate
- Inherits:
-
Object
- Object
- Google::Shopping::Merchant::Accounts::V1::CarrierRate
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/shopping/merchant/accounts/v1/shippingsettings.rb
Overview
A list of carrier rates that can be referred to by
main_table or single_value.
Supported carrier services are defined in
https://support.google.com/merchants/answer/12577710?ref_topic=12570808&sjid=10662598224319463032-NC#zippy=%2Cdelivery-cost-rate-type%2Ccarrier-rate-au-de-uk-and-us-only.
Instance Attribute Summary collapse
-
#carrier ⇒ ::String
Required.
-
#carrier_service ⇒ ::String
Required.
-
#flat_adjustment ⇒ ::Google::Shopping::Type::Price
Optional.
-
#name ⇒ ::String
Required.
-
#origin_postal_code ⇒ ::String
Required.
-
#percentage_adjustment ⇒ ::String
Optional.
Instance Attribute Details
#carrier ⇒ ::String
Returns Required. Carrier service, such as "UPS" or "Fedex".
724 725 726 727 |
# File 'proto_docs/google/shopping/merchant/accounts/v1/shippingsettings.rb', line 724 class CarrierRate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#carrier_service ⇒ ::String
Returns Required. Carrier service, such as "ground" or "2 days".
724 725 726 727 |
# File 'proto_docs/google/shopping/merchant/accounts/v1/shippingsettings.rb', line 724 class CarrierRate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#flat_adjustment ⇒ ::Google::Shopping::Type::Price
Returns Optional. Additive shipping rate modifier. Can be negative. For example
{ "amount_micros": 1, "currency_code" : "USD" } adds $1 to the rate,
{ "amount_micros": -3, "currency_code" : "USD" } removes $3 from the
rate.
724 725 726 727 |
# File 'proto_docs/google/shopping/merchant/accounts/v1/shippingsettings.rb', line 724 class CarrierRate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String
Returns Required. Name of the carrier rate. Must be unique per rate group.
724 725 726 727 |
# File 'proto_docs/google/shopping/merchant/accounts/v1/shippingsettings.rb', line 724 class CarrierRate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#origin_postal_code ⇒ ::String
Returns Required. Shipping origin for this carrier rate.
724 725 726 727 |
# File 'proto_docs/google/shopping/merchant/accounts/v1/shippingsettings.rb', line 724 class CarrierRate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#percentage_adjustment ⇒ ::String
Returns Optional. Multiplicative shipping rate modifier as a number in decimal
notation. Can be negative. For example "5.4" increases the rate by 5.4%,
"-3" decreases the rate by 3%.
724 725 726 727 |
# File 'proto_docs/google/shopping/merchant/accounts/v1/shippingsettings.rb', line 724 class CarrierRate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |