Class: Google::Apis::MerchantapiAccountsV1beta::TaxPostalCodeRange

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/merchantapi_accounts_v1beta/classes.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb

Overview

A range of postal codes that defines the area.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TaxPostalCodeRange

Returns a new instance of TaxPostalCodeRange.



2586
2587
2588
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2586

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#endString

The end of the postal code range. Will be the same as start if not specified. Corresponds to the JSON property end

Returns:

  • (String)


2578
2579
2580
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2578

def end
  @end
end

#startString

Required. The start of the postal code range, which is also the smallest in the range. Corresponds to the JSON property start

Returns:

  • (String)


2584
2585
2586
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2584

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2591
2592
2593
2594
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2591

def update!(**args)
  @end = args[:end] if args.key?(:end)
  @start = args[:start] if args.key?(:start)
end