late-sdk 0.0.880 → 0.0.882
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -2
- data/docs/{CreateCtwaAd201Response.md → CreateMessagingAd201Response.md} +6 -6
- data/docs/CreatePost200Response.md +39 -12
- data/docs/MessagingAdsApi.md +18 -16
- data/docs/TikTokDryRunVerdict.md +22 -0
- data/docs/{CreatePost200ResponseTiktokInner.md → TikTokDryRunVerdictTiktokInner.md} +2 -2
- data/docs/TrackingTagsApi.md +7 -6
- data/docs/UpdateAdTrackingTags200Response.md +18 -0
- data/docs/UpdateGoogleBusinessLocationDetailsRequest.md +19 -1
- data/docs/UpdateGoogleBusinessLocationDetailsRequestAdWordsLocationExtensions.md +18 -0
- data/docs/UpdateGoogleBusinessLocationDetailsRequestLatlng.md +20 -0
- data/docs/UpdateGoogleBusinessLocationDetailsRequestMoreHoursInner.md +20 -0
- data/docs/UpdateGoogleBusinessLocationDetailsRequestOpenInfo.md +20 -0
- data/docs/UpdateGoogleBusinessLocationDetailsRequestServiceArea.md +22 -0
- data/docs/UpdateGoogleBusinessLocationDetailsRequestServiceAreaPlaces.md +18 -0
- data/docs/UpdateGoogleBusinessLocationDetailsRequestServiceAreaPlacesPlaceInfosInner.md +20 -0
- data/docs/UpdateGoogleBusinessLocationDetailsRequestStorefrontAddress.md +28 -0
- data/lib/zernio-sdk/api/messaging_ads_api.rb +13 -13
- data/lib/zernio-sdk/api/tracking_tags_api.rb +5 -5
- data/lib/zernio-sdk/models/{create_ctwa_ad201_response.rb → create_messaging_ad201_response.rb} +1 -1
- data/lib/zernio-sdk/models/create_post200_response.rb +74 -191
- data/lib/zernio-sdk/models/tik_tok_dry_run_verdict.rb +221 -0
- data/lib/zernio-sdk/models/{create_post200_response_tiktok_inner.rb → tik_tok_dry_run_verdict_tiktok_inner.rb} +3 -3
- data/lib/zernio-sdk/models/update_ad_tracking_tags200_response.rb +147 -0
- data/lib/zernio-sdk/models/update_google_business_location_details_request.rb +93 -4
- data/lib/zernio-sdk/models/update_google_business_location_details_request_ad_words_location_extensions.rb +148 -0
- data/lib/zernio-sdk/models/update_google_business_location_details_request_latlng.rb +157 -0
- data/lib/zernio-sdk/models/update_google_business_location_details_request_more_hours_inner.rb +159 -0
- data/lib/zernio-sdk/models/update_google_business_location_details_request_open_info.rb +191 -0
- data/lib/zernio-sdk/models/update_google_business_location_details_request_service_area.rb +201 -0
- data/lib/zernio-sdk/models/update_google_business_location_details_request_service_area_places.rb +149 -0
- data/lib/zernio-sdk/models/update_google_business_location_details_request_service_area_places_place_infos_inner.rb +158 -0
- data/lib/zernio-sdk/models/update_google_business_location_details_request_storefront_address.rb +198 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +12 -2
- data/openapi.yaml +154 -36
- data/spec/api/messaging_ads_api_spec.rb +3 -3
- data/spec/api/tracking_tags_api_spec.rb +1 -1
- data/spec/models/{create_ctwa_ad201_response_spec.rb → create_messaging_ad201_response_spec.rb} +2 -2
- data/spec/models/create_post200_response_spec.rb +5 -21
- data/spec/models/tik_tok_dry_run_verdict_spec.rb +48 -0
- data/spec/models/{create_post200_response_tiktok_inner_spec.rb → tik_tok_dry_run_verdict_tiktok_inner_spec.rb} +6 -6
- data/spec/models/update_ad_tracking_tags200_response_spec.rb +36 -0
- data/spec/models/update_google_business_location_details_request_ad_words_location_extensions_spec.rb +36 -0
- data/spec/models/update_google_business_location_details_request_latlng_spec.rb +42 -0
- data/spec/models/update_google_business_location_details_request_more_hours_inner_spec.rb +42 -0
- data/spec/models/update_google_business_location_details_request_open_info_spec.rb +46 -0
- data/spec/models/update_google_business_location_details_request_service_area_places_place_infos_inner_spec.rb +42 -0
- data/spec/models/update_google_business_location_details_request_service_area_places_spec.rb +36 -0
- data/spec/models/update_google_business_location_details_request_service_area_spec.rb +52 -0
- data/spec/models/update_google_business_location_details_request_spec.rb +54 -0
- data/spec/models/update_google_business_location_details_request_storefront_address_spec.rb +66 -0
- data/zernio-sdk-0.0.882.gem +0 -0
- metadata +50 -10
- data/zernio-sdk-0.0.880.gem +0 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Zernio
|
|
17
|
+
class UpdateAdTrackingTags200Response < ApiModelBase
|
|
18
|
+
attr_accessor :platform
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'platform' => :'platform'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns attribute mapping this model knows about
|
|
28
|
+
def self.acceptable_attribute_map
|
|
29
|
+
attribute_map
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns all the JSON keys this model knows about
|
|
33
|
+
def self.acceptable_attributes
|
|
34
|
+
acceptable_attribute_map.values
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
def self.openapi_types
|
|
39
|
+
{
|
|
40
|
+
:'platform' => :'String'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# List of attributes with nullable: true
|
|
45
|
+
def self.openapi_nullable
|
|
46
|
+
Set.new([
|
|
47
|
+
])
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
if (!attributes.is_a?(Hash))
|
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::UpdateAdTrackingTags200Response` initialize method"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::UpdateAdTrackingTags200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
|
+
end
|
|
63
|
+
h[k.to_sym] = v
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if attributes.key?(:'platform')
|
|
67
|
+
self.platform = attributes[:'platform']
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
72
|
+
# @return Array for valid properties with the reasons
|
|
73
|
+
def list_invalid_properties
|
|
74
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
75
|
+
invalid_properties = Array.new
|
|
76
|
+
invalid_properties
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Check to see if the all the properties in the model are valid
|
|
80
|
+
# @return true if the model is valid
|
|
81
|
+
def valid?
|
|
82
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
83
|
+
true
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Checks equality by comparing each attribute.
|
|
87
|
+
# @param [Object] Object to be compared
|
|
88
|
+
def ==(o)
|
|
89
|
+
return true if self.equal?(o)
|
|
90
|
+
self.class == o.class &&
|
|
91
|
+
platform == o.platform
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# @see the `==` method
|
|
95
|
+
# @param [Object] Object to be compared
|
|
96
|
+
def eql?(o)
|
|
97
|
+
self == o
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Calculates hash code according to all attributes.
|
|
101
|
+
# @return [Integer] Hash code
|
|
102
|
+
def hash
|
|
103
|
+
[platform].hash
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Builds the object from hash
|
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
108
|
+
# @return [Object] Returns the model itself
|
|
109
|
+
def self.build_from_hash(attributes)
|
|
110
|
+
return nil unless attributes.is_a?(Hash)
|
|
111
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
112
|
+
transformed_hash = {}
|
|
113
|
+
openapi_types.each_pair do |key, type|
|
|
114
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
115
|
+
transformed_hash["#{key}"] = nil
|
|
116
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
117
|
+
# check to ensure the input is an array given that the attribute
|
|
118
|
+
# is documented as an array but the input is not
|
|
119
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
120
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
121
|
+
end
|
|
122
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
123
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
new(transformed_hash)
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Returns the object in the form of hash
|
|
130
|
+
# @return [Hash] Returns the object in the form of hash
|
|
131
|
+
def to_hash
|
|
132
|
+
hash = {}
|
|
133
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
134
|
+
value = self.send(attr)
|
|
135
|
+
if value.nil?
|
|
136
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
137
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
hash[param] = _to_hash(value)
|
|
141
|
+
end
|
|
142
|
+
hash
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
end
|
|
@@ -33,6 +33,28 @@ module Zernio
|
|
|
33
33
|
# Services offered by the business. Use updateMask='serviceItems' to update.
|
|
34
34
|
attr_accessor :service_items
|
|
35
35
|
|
|
36
|
+
# Business name. Use updateMask='title'.
|
|
37
|
+
attr_accessor :title
|
|
38
|
+
|
|
39
|
+
# External store identifier, unique within the account. Use updateMask='storeCode'.
|
|
40
|
+
attr_accessor :store_code
|
|
41
|
+
|
|
42
|
+
# Free-form, internal-only labels for grouping (1-255 characters each). Use updateMask='labels'.
|
|
43
|
+
attr_accessor :labels
|
|
44
|
+
|
|
45
|
+
attr_accessor :storefront_address
|
|
46
|
+
|
|
47
|
+
attr_accessor :service_area
|
|
48
|
+
|
|
49
|
+
attr_accessor :open_info
|
|
50
|
+
|
|
51
|
+
# Additional hours for specific services (delivery, drive-through, etc.). Use updateMask='moreHours'.
|
|
52
|
+
attr_accessor :more_hours
|
|
53
|
+
|
|
54
|
+
attr_accessor :latlng
|
|
55
|
+
|
|
56
|
+
attr_accessor :ad_words_location_extensions
|
|
57
|
+
|
|
36
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
59
|
def self.attribute_map
|
|
38
60
|
{
|
|
@@ -43,7 +65,16 @@ module Zernio
|
|
|
43
65
|
:'website_uri' => :'websiteUri',
|
|
44
66
|
:'phone_numbers' => :'phoneNumbers',
|
|
45
67
|
:'categories' => :'categories',
|
|
46
|
-
:'service_items' => :'serviceItems'
|
|
68
|
+
:'service_items' => :'serviceItems',
|
|
69
|
+
:'title' => :'title',
|
|
70
|
+
:'store_code' => :'storeCode',
|
|
71
|
+
:'labels' => :'labels',
|
|
72
|
+
:'storefront_address' => :'storefrontAddress',
|
|
73
|
+
:'service_area' => :'serviceArea',
|
|
74
|
+
:'open_info' => :'openInfo',
|
|
75
|
+
:'more_hours' => :'moreHours',
|
|
76
|
+
:'latlng' => :'latlng',
|
|
77
|
+
:'ad_words_location_extensions' => :'adWordsLocationExtensions'
|
|
47
78
|
}
|
|
48
79
|
end
|
|
49
80
|
|
|
@@ -67,7 +98,16 @@ module Zernio
|
|
|
67
98
|
:'website_uri' => :'String',
|
|
68
99
|
:'phone_numbers' => :'GetGoogleBusinessLocationDetails200ResponsePhoneNumbers',
|
|
69
100
|
:'categories' => :'UpdateGoogleBusinessLocationDetailsRequestCategories',
|
|
70
|
-
:'service_items' => :'Array<UpdateGoogleBusinessLocationDetailsRequestServiceItemsInner>'
|
|
101
|
+
:'service_items' => :'Array<UpdateGoogleBusinessLocationDetailsRequestServiceItemsInner>',
|
|
102
|
+
:'title' => :'String',
|
|
103
|
+
:'store_code' => :'String',
|
|
104
|
+
:'labels' => :'Array<String>',
|
|
105
|
+
:'storefront_address' => :'UpdateGoogleBusinessLocationDetailsRequestStorefrontAddress',
|
|
106
|
+
:'service_area' => :'UpdateGoogleBusinessLocationDetailsRequestServiceArea',
|
|
107
|
+
:'open_info' => :'UpdateGoogleBusinessLocationDetailsRequestOpenInfo',
|
|
108
|
+
:'more_hours' => :'Array<UpdateGoogleBusinessLocationDetailsRequestMoreHoursInner>',
|
|
109
|
+
:'latlng' => :'UpdateGoogleBusinessLocationDetailsRequestLatlng',
|
|
110
|
+
:'ad_words_location_extensions' => :'UpdateGoogleBusinessLocationDetailsRequestAdWordsLocationExtensions'
|
|
71
111
|
}
|
|
72
112
|
end
|
|
73
113
|
|
|
@@ -128,6 +168,46 @@ module Zernio
|
|
|
128
168
|
self.service_items = value
|
|
129
169
|
end
|
|
130
170
|
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'title')
|
|
173
|
+
self.title = attributes[:'title']
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if attributes.key?(:'store_code')
|
|
177
|
+
self.store_code = attributes[:'store_code']
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if attributes.key?(:'labels')
|
|
181
|
+
if (value = attributes[:'labels']).is_a?(Array)
|
|
182
|
+
self.labels = value
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.key?(:'storefront_address')
|
|
187
|
+
self.storefront_address = attributes[:'storefront_address']
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if attributes.key?(:'service_area')
|
|
191
|
+
self.service_area = attributes[:'service_area']
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if attributes.key?(:'open_info')
|
|
195
|
+
self.open_info = attributes[:'open_info']
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.key?(:'more_hours')
|
|
199
|
+
if (value = attributes[:'more_hours']).is_a?(Array)
|
|
200
|
+
self.more_hours = value
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'latlng')
|
|
205
|
+
self.latlng = attributes[:'latlng']
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'ad_words_location_extensions')
|
|
209
|
+
self.ad_words_location_extensions = attributes[:'ad_words_location_extensions']
|
|
210
|
+
end
|
|
131
211
|
end
|
|
132
212
|
|
|
133
213
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -172,7 +252,16 @@ module Zernio
|
|
|
172
252
|
website_uri == o.website_uri &&
|
|
173
253
|
phone_numbers == o.phone_numbers &&
|
|
174
254
|
categories == o.categories &&
|
|
175
|
-
service_items == o.service_items
|
|
255
|
+
service_items == o.service_items &&
|
|
256
|
+
title == o.title &&
|
|
257
|
+
store_code == o.store_code &&
|
|
258
|
+
labels == o.labels &&
|
|
259
|
+
storefront_address == o.storefront_address &&
|
|
260
|
+
service_area == o.service_area &&
|
|
261
|
+
open_info == o.open_info &&
|
|
262
|
+
more_hours == o.more_hours &&
|
|
263
|
+
latlng == o.latlng &&
|
|
264
|
+
ad_words_location_extensions == o.ad_words_location_extensions
|
|
176
265
|
end
|
|
177
266
|
|
|
178
267
|
# @see the `==` method
|
|
@@ -184,7 +273,7 @@ module Zernio
|
|
|
184
273
|
# Calculates hash code according to all attributes.
|
|
185
274
|
# @return [Integer] Hash code
|
|
186
275
|
def hash
|
|
187
|
-
[update_mask, regular_hours, special_hours, profile, website_uri, phone_numbers, categories, service_items].hash
|
|
276
|
+
[update_mask, regular_hours, special_hours, profile, website_uri, phone_numbers, categories, service_items, title, store_code, labels, storefront_address, service_area, open_info, more_hours, latlng, ad_words_location_extensions].hash
|
|
188
277
|
end
|
|
189
278
|
|
|
190
279
|
# Builds the object from hash
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Zernio
|
|
17
|
+
# Alternate phone shown in Google Ads location extensions. Use updateMask='adWordsLocationExtensions'.
|
|
18
|
+
class UpdateGoogleBusinessLocationDetailsRequestAdWordsLocationExtensions < ApiModelBase
|
|
19
|
+
attr_accessor :ad_phone
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'ad_phone' => :'adPhone'
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Returns attribute mapping this model knows about
|
|
29
|
+
def self.acceptable_attribute_map
|
|
30
|
+
attribute_map
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
|
34
|
+
def self.acceptable_attributes
|
|
35
|
+
acceptable_attribute_map.values
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Attribute type mapping.
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'ad_phone' => :'String'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# List of attributes with nullable: true
|
|
46
|
+
def self.openapi_nullable
|
|
47
|
+
Set.new([
|
|
48
|
+
])
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Initializes the object
|
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
|
+
def initialize(attributes = {})
|
|
54
|
+
if (!attributes.is_a?(Hash))
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::UpdateGoogleBusinessLocationDetailsRequestAdWordsLocationExtensions` initialize method"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::UpdateGoogleBusinessLocationDetailsRequestAdWordsLocationExtensions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
|
+
end
|
|
64
|
+
h[k.to_sym] = v
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if attributes.key?(:'ad_phone')
|
|
68
|
+
self.ad_phone = attributes[:'ad_phone']
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
73
|
+
# @return Array for valid properties with the reasons
|
|
74
|
+
def list_invalid_properties
|
|
75
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
76
|
+
invalid_properties = Array.new
|
|
77
|
+
invalid_properties
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Check to see if the all the properties in the model are valid
|
|
81
|
+
# @return true if the model is valid
|
|
82
|
+
def valid?
|
|
83
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
84
|
+
true
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Checks equality by comparing each attribute.
|
|
88
|
+
# @param [Object] Object to be compared
|
|
89
|
+
def ==(o)
|
|
90
|
+
return true if self.equal?(o)
|
|
91
|
+
self.class == o.class &&
|
|
92
|
+
ad_phone == o.ad_phone
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# @see the `==` method
|
|
96
|
+
# @param [Object] Object to be compared
|
|
97
|
+
def eql?(o)
|
|
98
|
+
self == o
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Calculates hash code according to all attributes.
|
|
102
|
+
# @return [Integer] Hash code
|
|
103
|
+
def hash
|
|
104
|
+
[ad_phone].hash
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Builds the object from hash
|
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
109
|
+
# @return [Object] Returns the model itself
|
|
110
|
+
def self.build_from_hash(attributes)
|
|
111
|
+
return nil unless attributes.is_a?(Hash)
|
|
112
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
113
|
+
transformed_hash = {}
|
|
114
|
+
openapi_types.each_pair do |key, type|
|
|
115
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
116
|
+
transformed_hash["#{key}"] = nil
|
|
117
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
118
|
+
# check to ensure the input is an array given that the attribute
|
|
119
|
+
# is documented as an array but the input is not
|
|
120
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
121
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
122
|
+
end
|
|
123
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
124
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
new(transformed_hash)
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Returns the object in the form of hash
|
|
131
|
+
# @return [Hash] Returns the object in the form of hash
|
|
132
|
+
def to_hash
|
|
133
|
+
hash = {}
|
|
134
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
135
|
+
value = self.send(attr)
|
|
136
|
+
if value.nil?
|
|
137
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
138
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
hash[param] = _to_hash(value)
|
|
142
|
+
end
|
|
143
|
+
hash
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
end
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Zernio
|
|
17
|
+
# Precise coordinates. Use updateMask='latlng'. Google restricts latlng writes to approved clients, so this update may be silently ignored or rejected.
|
|
18
|
+
class UpdateGoogleBusinessLocationDetailsRequestLatlng < ApiModelBase
|
|
19
|
+
attr_accessor :latitude
|
|
20
|
+
|
|
21
|
+
attr_accessor :longitude
|
|
22
|
+
|
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
|
+
def self.attribute_map
|
|
25
|
+
{
|
|
26
|
+
:'latitude' => :'latitude',
|
|
27
|
+
:'longitude' => :'longitude'
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Returns attribute mapping this model knows about
|
|
32
|
+
def self.acceptable_attribute_map
|
|
33
|
+
attribute_map
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns all the JSON keys this model knows about
|
|
37
|
+
def self.acceptable_attributes
|
|
38
|
+
acceptable_attribute_map.values
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
def self.openapi_types
|
|
43
|
+
{
|
|
44
|
+
:'latitude' => :'Float',
|
|
45
|
+
:'longitude' => :'Float'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# List of attributes with nullable: true
|
|
50
|
+
def self.openapi_nullable
|
|
51
|
+
Set.new([
|
|
52
|
+
])
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
|
+
def initialize(attributes = {})
|
|
58
|
+
if (!attributes.is_a?(Hash))
|
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::UpdateGoogleBusinessLocationDetailsRequestLatlng` initialize method"
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
65
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::UpdateGoogleBusinessLocationDetailsRequestLatlng`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
67
|
+
end
|
|
68
|
+
h[k.to_sym] = v
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if attributes.key?(:'latitude')
|
|
72
|
+
self.latitude = attributes[:'latitude']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'longitude')
|
|
76
|
+
self.longitude = attributes[:'longitude']
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
81
|
+
# @return Array for valid properties with the reasons
|
|
82
|
+
def list_invalid_properties
|
|
83
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
84
|
+
invalid_properties = Array.new
|
|
85
|
+
invalid_properties
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Check to see if the all the properties in the model are valid
|
|
89
|
+
# @return true if the model is valid
|
|
90
|
+
def valid?
|
|
91
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
92
|
+
true
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Checks equality by comparing each attribute.
|
|
96
|
+
# @param [Object] Object to be compared
|
|
97
|
+
def ==(o)
|
|
98
|
+
return true if self.equal?(o)
|
|
99
|
+
self.class == o.class &&
|
|
100
|
+
latitude == o.latitude &&
|
|
101
|
+
longitude == o.longitude
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# @see the `==` method
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def eql?(o)
|
|
107
|
+
self == o
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Calculates hash code according to all attributes.
|
|
111
|
+
# @return [Integer] Hash code
|
|
112
|
+
def hash
|
|
113
|
+
[latitude, longitude].hash
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Builds the object from hash
|
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
118
|
+
# @return [Object] Returns the model itself
|
|
119
|
+
def self.build_from_hash(attributes)
|
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
|
121
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
122
|
+
transformed_hash = {}
|
|
123
|
+
openapi_types.each_pair do |key, type|
|
|
124
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
125
|
+
transformed_hash["#{key}"] = nil
|
|
126
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
127
|
+
# check to ensure the input is an array given that the attribute
|
|
128
|
+
# is documented as an array but the input is not
|
|
129
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
130
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
131
|
+
end
|
|
132
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
133
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
new(transformed_hash)
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Returns the object in the form of hash
|
|
140
|
+
# @return [Hash] Returns the object in the form of hash
|
|
141
|
+
def to_hash
|
|
142
|
+
hash = {}
|
|
143
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
144
|
+
value = self.send(attr)
|
|
145
|
+
if value.nil?
|
|
146
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
147
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
hash[param] = _to_hash(value)
|
|
151
|
+
end
|
|
152
|
+
hash
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
end
|