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
193 194 195 |
# File 'generated/google/apis/content_v2/classes.rb', line 193 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
165 166 167 |
# File 'generated/google/apis/content_v2/classes.rb', line 165 def account_id @account_id end |
#carrier_rates ⇒ Array<Google::Apis::ContentV2::AccountShippingCarrierRate>
Carrier-based shipping calculations.
Corresponds to the JSON property carrierRates
170 171 172 |
# File 'generated/google/apis/content_v2/classes.rb', line 170 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
176 177 178 |
# File 'generated/google/apis/content_v2/classes.rb', line 176 def kind @kind end |
#location_groups ⇒ Array<Google::Apis::ContentV2::AccountShippingLocationGroup>
Location groups for shipping.
Corresponds to the JSON property locationGroups
181 182 183 |
# File 'generated/google/apis/content_v2/classes.rb', line 181 def location_groups @location_groups end |
#rate_tables ⇒ Array<Google::Apis::ContentV2::AccountShippingRateTable>
Rate tables definitions.
Corresponds to the JSON property rateTables
186 187 188 |
# File 'generated/google/apis/content_v2/classes.rb', line 186 def rate_tables @rate_tables end |
#services ⇒ Array<Google::Apis::ContentV2::AccountShippingShippingService>
Shipping services describing shipping fees calculation.
Corresponds to the JSON property services
191 192 193 |
# File 'generated/google/apis/content_v2/classes.rb', line 191 def services @services end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
198 199 200 201 202 203 204 205 |
# File 'generated/google/apis/content_v2/classes.rb', line 198 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 |