Class: Google::Shopping::Merchant::Accounts::V1::Region::PostalCodeArea

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/shopping/merchant/accounts/v1/regions.rb

Overview

A list of postal codes that defines the region area. Note: All regions defined using postal codes are accessible through the account's ShippingSettings.postalCodeGroups resource.

Defined Under Namespace

Classes: PostalCodeRange

Instance Attribute Summary collapse

Instance Attribute Details

#postal_codes::Array<::Google::Shopping::Merchant::Accounts::V1::Region::PostalCodeArea::PostalCodeRange>

Returns Required. A range of postal codes.

Returns:



214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
# File 'proto_docs/google/shopping/merchant/accounts/v1/regions.rb', line 214

class PostalCodeArea
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A range of postal codes that defines the region area.
  # @!attribute [rw] begin
  #   @return [::String]
  #     Required. A postal code or a pattern of the form prefix* denoting the
  #     inclusive lower bound of the range defining the area. Examples values:
  #     `94108`, `9410*`, `9*`.
  # @!attribute [rw] end
  #   @return [::String]
  #     Optional. A postal code or a pattern of the form `prefix*` denoting the
  #     inclusive upper bound of the range defining the area. It must have the
  #     same length as postalCodeRangeBegin: if postalCodeRangeBegin is a
  #     postal code then postalCodeRangeEnd must be a postal code too; if
  #     postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a
  #     pattern with the same prefix length. Optional: if not set, then the
  #     area is defined as being all the postal codes matching
  #     postalCodeRangeBegin.
  class PostalCodeRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#region_code::String

Returns Required. CLDR territory code or the country the postal code group applies to.

Returns:

  • (::String)

    Required. CLDR territory code or the country the postal code group applies to.



214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
# File 'proto_docs/google/shopping/merchant/accounts/v1/regions.rb', line 214

class PostalCodeArea
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A range of postal codes that defines the region area.
  # @!attribute [rw] begin
  #   @return [::String]
  #     Required. A postal code or a pattern of the form prefix* denoting the
  #     inclusive lower bound of the range defining the area. Examples values:
  #     `94108`, `9410*`, `9*`.
  # @!attribute [rw] end
  #   @return [::String]
  #     Optional. A postal code or a pattern of the form `prefix*` denoting the
  #     inclusive upper bound of the range defining the area. It must have the
  #     same length as postalCodeRangeBegin: if postalCodeRangeBegin is a
  #     postal code then postalCodeRangeEnd must be a postal code too; if
  #     postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a
  #     pattern with the same prefix length. Optional: if not set, then the
  #     area is defined as being all the postal codes matching
  #     postalCodeRangeBegin.
  class PostalCodeRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end