Class: Google::Shopping::Merchant::Accounts::V1beta::Region::PostalCodeArea
- Inherits:
-
Object
- Object
- Google::Shopping::Merchant::Accounts::V1beta::Region::PostalCodeArea
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/shopping/merchant/accounts/v1beta/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
-
#postal_codes ⇒ ::Array<::Google::Shopping::Merchant::Accounts::V1beta::Region::PostalCodeArea::PostalCodeRange>
Required.
-
#region_code ⇒ ::String
Required.
Instance Attribute Details
#postal_codes ⇒ ::Array<::Google::Shopping::Merchant::Accounts::V1beta::Region::PostalCodeArea::PostalCodeRange>
Returns Required. A range of postal codes.
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'proto_docs/google/shopping/merchant/accounts/v1beta/regions.rb', line 154 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.
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'proto_docs/google/shopping/merchant/accounts/v1beta/regions.rb', line 154 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 |