Class: Google::Apis::AndroidpublisherV3::ExternalTransactionAddress

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

Overview

User's address for the external transaction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExternalTransactionAddress

Returns a new instance of ExternalTransactionAddress.



2314
2315
2316
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2314

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

Instance Attribute Details

#administrative_areaString

Optional. Top-level administrative subdivision of the country/region. Only required for transactions in India. Valid values are "ANDAMAN AND NICOBAR ISLANDS", "ANDHRA PRADESH", "ARUNACHAL PRADESH", "ASSAM", "BIHAR", "CHANDIGARH" , "CHHATTISGARH", "DADRA AND NAGAR HAVELI", "DADRA AND NAGAR HAVELI AND DAMAN AND DIU", "DAMAN AND DIU", "DELHI", "GOA", "GUJARAT", "HARYANA", "HIMACHAL PRADESH", "JAMMU AND KASHMIR", "JHARKHAND", "KARNATAKA", "KERALA", "LADAKH", " LAKSHADWEEP", "MADHYA PRADESH", "MAHARASHTRA", "MANIPUR", "MEGHALAYA", " MIZORAM", "NAGALAND", "ODISHA", "PUDUCHERRY", "PUNJAB", "RAJASTHAN", "SIKKIM", "TAMIL NADU", "TELANGANA", "TRIPURA", "UTTAR PRADESH", "UTTARAKHAND", and " WEST BENGAL". Corresponds to the JSON property administrativeArea

Returns:

  • (String)


2307
2308
2309
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2307

def administrative_area
  @administrative_area
end

#region_codeString

Required. Two letter region code based on ISO-3166-1 Alpha-2 (UN region codes). Corresponds to the JSON property regionCode

Returns:

  • (String)


2312
2313
2314
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2312

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2319
2320
2321
2322
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2319

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