Class: Google::Apis::ContentV2::AccountShipping
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::AccountShipping
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb
Overview
The shipping settings of a merchant account.
Instance Attribute Summary collapse
-
#account_id ⇒ String
The ID of the account to which these account shipping settings belong.
-
#carrier_rates ⇒ Array<Google::Apis::ContentV2::AccountShippingCarrierRate>
Carrier-based shipping calculations.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#location_groups ⇒ Array<Google::Apis::ContentV2::AccountShippingLocationGroup>
Location groups for shipping.
-
#rate_tables ⇒ Array<Google::Apis::ContentV2::AccountShippingRateTable>
Rate tables definitions.
-
#services ⇒ Array<Google::Apis::ContentV2::AccountShippingShippingService>
Shipping services describing shipping fees calculation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountShipping
constructor
A new instance of AccountShipping.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AccountShipping
Returns a new instance of AccountShipping.
192 193 194 |
# File 'generated/google/apis/content_v2/classes.rb', line 192 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ String
The ID of the account to which these account shipping settings belong.
Corresponds to the JSON property accountId
164 165 166 |
# File 'generated/google/apis/content_v2/classes.rb', line 164 def account_id @account_id end |
#carrier_rates ⇒ Array<Google::Apis::ContentV2::AccountShippingCarrierRate>
Carrier-based shipping calculations.
Corresponds to the JSON property carrierRates
169 170 171 |
# File 'generated/google/apis/content_v2/classes.rb', line 169 def carrier_rates @carrier_rates end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "content#
accountShipping".
Corresponds to the JSON property kind
175 176 177 |
# File 'generated/google/apis/content_v2/classes.rb', line 175 def kind @kind end |
#location_groups ⇒ Array<Google::Apis::ContentV2::AccountShippingLocationGroup>
Location groups for shipping.
Corresponds to the JSON property locationGroups
180 181 182 |
# File 'generated/google/apis/content_v2/classes.rb', line 180 def location_groups @location_groups end |
#rate_tables ⇒ Array<Google::Apis::ContentV2::AccountShippingRateTable>
Rate tables definitions.
Corresponds to the JSON property rateTables
185 186 187 |
# File 'generated/google/apis/content_v2/classes.rb', line 185 def rate_tables @rate_tables end |
#services ⇒ Array<Google::Apis::ContentV2::AccountShippingShippingService>
Shipping services describing shipping fees calculation.
Corresponds to the JSON property services
190 191 192 |
# File 'generated/google/apis/content_v2/classes.rb', line 190 def services @services end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
197 198 199 200 201 202 203 204 |
# File 'generated/google/apis/content_v2/classes.rb', line 197 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @carrier_rates = args[:carrier_rates] if args.key?(:carrier_rates) @kind = args[:kind] if args.key?(:kind) @location_groups = args[:location_groups] if args.key?(:location_groups) @rate_tables = args[:rate_tables] if args.key?(:rate_tables) @services = args[:services] if args.key?(:services) end |