zernio-sdk 0.0.525 → 0.0.526

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9e7fedea07174fef2d5fcc5d7789117c0dc8af9eb5e40fdf28a4094bf9ddd54
4
- data.tar.gz: 7bb2a44bfc377113934acc2f643b8a28265344c9038ecc628bd6608f9a3f1f5a
3
+ metadata.gz: 77f6144ef44a98297cee25ab4bb0e064a7df7d5365369f5ec8c2ccb26d1c9ac1
4
+ data.tar.gz: 0b2805651f93fc9039d4811ef3a350f851589d8b73f873225b21c07dea8003a9
5
5
  SHA512:
6
- metadata.gz: 93e3e9333c5528c67e4fa11e98abc060f65b3c585264607f8568a645e829b6f626241ae5226619205726d3e959e95ffa54876087d5bb07ec5dd3c13c3346912e
7
- data.tar.gz: 06c7361fe5dbf108a8a9adc2064549feaa41675cdef60093a028edfc10c61450843ef3eeda7374712032933ed4a40c117c7073ac865bd71e50e032482a143bac
6
+ metadata.gz: 7ca42a1a9a7a56eca84f15e6e615eca720b2e4ece853541e9488b1ccb9eace0bb2a4f8794d0415eddfb721d0d48385bb4994ac958818378f157a17376bc275ee
7
+ data.tar.gz: 2eda0cb5d7d4057d8851963b351b01fb7b72e8c62ef1f57eda1ca97cb3259dc2d8fe3217a0e2c3dbdc5a39a316e3840fe6a6bbca57312f0a9afdffa5a104d92f
@@ -6,7 +6,6 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **selected_location_id** | **String** | | |
8
8
  | **google_account_id** | **String** | Optional but recommended. The Google Business Account resource name (\"accounts/123\") that owns the new location (from GET gmb-locations). When provided, the location is resolved directly instead of by enumerating the account, which is required for accounts with many locations. Named `googleAccountId` to disambiguate from the path `accountId` (the Zernio account). The legacy field name `accountId` is still accepted for backwards compatibility. | [optional] |
9
- | **account_id** | **String** | Legacy alias for googleAccountId. Use googleAccountId for new integrations. | [optional] |
10
9
 
11
10
  ## Example
12
11
 
@@ -15,8 +14,7 @@ require 'zernio-sdk'
15
14
 
16
15
  instance = Zernio::UpdateGmbLocationRequest.new(
17
16
  selected_location_id: null,
18
- google_account_id: null,
19
- account_id: null
17
+ google_account_id: null
20
18
  )
21
19
  ```
22
20
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | Resource name of the place action link (e.g. locations/123/placeActionLinks/456) | |
8
- | **uri** | **String** | New action URL | [optional] |
8
+ | **uri** | **String** | New action URL. At least one of uri or placeActionType is required (enforced server-side; not modeled as anyOf because required-only anyOf branches break SDK generators). | [optional] |
9
9
  | **place_action_type** | **String** | New action type | [optional] |
10
10
 
11
11
  ## Example
@@ -276,6 +276,10 @@ module Zernio
276
276
  if @api_client.config.client_side_validation && account_id.nil?
277
277
  fail ArgumentError, "Missing the required parameter 'account_id' when calling GMBPlaceActionsApi.update_google_business_place_action"
278
278
  end
279
+ # verify the required parameter 'update_google_business_place_action_request' is set
280
+ if @api_client.config.client_side_validation && update_google_business_place_action_request.nil?
281
+ fail ArgumentError, "Missing the required parameter 'update_google_business_place_action_request' when calling GMBPlaceActionsApi.update_google_business_place_action"
282
+ end
279
283
  # resource path
280
284
  local_var_path = '/v1/accounts/{accountId}/gmb-place-actions'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
281
285
 
@@ -20,15 +20,11 @@ module Zernio
20
20
  # Optional but recommended. The Google Business Account resource name (\"accounts/123\") that owns the new location (from GET gmb-locations). When provided, the location is resolved directly instead of by enumerating the account, which is required for accounts with many locations. Named `googleAccountId` to disambiguate from the path `accountId` (the Zernio account). The legacy field name `accountId` is still accepted for backwards compatibility.
21
21
  attr_accessor :google_account_id
22
22
 
23
- # Legacy alias for googleAccountId. Use googleAccountId for new integrations.
24
- attr_accessor :account_id
25
-
26
23
  # Attribute mapping from ruby-style variable name to JSON key.
27
24
  def self.attribute_map
28
25
  {
29
26
  :'selected_location_id' => :'selectedLocationId',
30
- :'google_account_id' => :'googleAccountId',
31
- :'account_id' => :'accountId'
27
+ :'google_account_id' => :'googleAccountId'
32
28
  }
33
29
  end
34
30
 
@@ -46,8 +42,7 @@ module Zernio
46
42
  def self.openapi_types
47
43
  {
48
44
  :'selected_location_id' => :'String',
49
- :'google_account_id' => :'String',
50
- :'account_id' => :'String'
45
+ :'google_account_id' => :'String'
51
46
  }
52
47
  end
53
48
 
@@ -82,10 +77,6 @@ module Zernio
82
77
  if attributes.key?(:'google_account_id')
83
78
  self.google_account_id = attributes[:'google_account_id']
84
79
  end
85
-
86
- if attributes.key?(:'account_id')
87
- self.account_id = attributes[:'account_id']
88
- end
89
80
  end
90
81
 
91
82
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -105,10 +96,6 @@ module Zernio
105
96
  invalid_properties.push('invalid value for "google_account_id", the character length must be greater than or equal to 1.')
106
97
  end
107
98
 
108
- if !@account_id.nil? && @account_id.to_s.length < 1
109
- invalid_properties.push('invalid value for "account_id", the character length must be greater than or equal to 1.')
110
- end
111
-
112
99
  invalid_properties
113
100
  end
114
101
 
@@ -119,7 +106,6 @@ module Zernio
119
106
  return false if @selected_location_id.nil?
120
107
  return false if @selected_location_id.to_s.length < 1
121
108
  return false if !@google_account_id.nil? && @google_account_id.to_s.length < 1
122
- return false if !@account_id.nil? && @account_id.to_s.length < 1
123
109
  true
124
110
  end
125
111
 
@@ -151,28 +137,13 @@ module Zernio
151
137
  @google_account_id = google_account_id
152
138
  end
153
139
 
154
- # Custom attribute writer method with validation
155
- # @param [Object] account_id Value to be assigned
156
- def account_id=(account_id)
157
- if account_id.nil?
158
- fail ArgumentError, 'account_id cannot be nil'
159
- end
160
-
161
- if account_id.to_s.length < 1
162
- fail ArgumentError, 'invalid value for "account_id", the character length must be greater than or equal to 1.'
163
- end
164
-
165
- @account_id = account_id
166
- end
167
-
168
140
  # Checks equality by comparing each attribute.
169
141
  # @param [Object] Object to be compared
170
142
  def ==(o)
171
143
  return true if self.equal?(o)
172
144
  self.class == o.class &&
173
145
  selected_location_id == o.selected_location_id &&
174
- google_account_id == o.google_account_id &&
175
- account_id == o.account_id
146
+ google_account_id == o.google_account_id
176
147
  end
177
148
 
178
149
  # @see the `==` method
@@ -184,7 +155,7 @@ module Zernio
184
155
  # Calculates hash code according to all attributes.
185
156
  # @return [Integer] Hash code
186
157
  def hash
187
- [selected_location_id, google_account_id, account_id].hash
158
+ [selected_location_id, google_account_id].hash
188
159
  end
189
160
 
190
161
  # Builds the object from hash
@@ -18,12 +18,34 @@ module Zernio
18
18
  # Resource name of the place action link (e.g. locations/123/placeActionLinks/456)
19
19
  attr_accessor :name
20
20
 
21
- # New action URL
21
+ # New action URL. At least one of uri or placeActionType is required (enforced server-side; not modeled as anyOf because required-only anyOf branches break SDK generators).
22
22
  attr_accessor :uri
23
23
 
24
24
  # New action type
25
25
  attr_accessor :place_action_type
26
26
 
27
+ class EnumAttributeValidator
28
+ attr_reader :datatype
29
+ attr_reader :allowable_values
30
+
31
+ def initialize(datatype, allowable_values)
32
+ @allowable_values = allowable_values.map do |value|
33
+ case datatype.to_s
34
+ when /Integer/i
35
+ value.to_i
36
+ when /Float/i
37
+ value.to_f
38
+ else
39
+ value
40
+ end
41
+ end
42
+ end
43
+
44
+ def valid?(value)
45
+ !value || allowable_values.include?(value)
46
+ end
47
+ end
48
+
27
49
  # Attribute mapping from ruby-style variable name to JSON key.
28
50
  def self.attribute_map
29
51
  {
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Zernio
17
+ # Exactly one of structuredServiceItem or freeFormServiceItem is required per item (enforced server-side; not modeled as oneOf because required-only oneOf branches break SDK generators).
17
18
  class UpdateGoogleBusinessServicesRequestServiceItemsInnerStructuredServiceItem < ApiModelBase
18
19
  attr_accessor :service_type_id
19
20
 
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.525'
14
+ VERSION = '0.0.526'
15
15
  end
data/openapi.yaml CHANGED
@@ -15888,9 +15888,6 @@ paths:
15888
15888
  schema:
15889
15889
  type: object
15890
15890
  required: [name]
15891
- anyOf:
15892
- - required: [uri]
15893
- - required: [placeActionType]
15894
15891
  properties:
15895
15892
  name:
15896
15893
  type: string
@@ -15898,7 +15895,7 @@ paths:
15898
15895
  uri:
15899
15896
  type: string
15900
15897
  format: uri
15901
- description: New action URL
15898
+ description: "New action URL. At least one of uri or placeActionType is required (enforced server-side; not modeled as anyOf because required-only anyOf branches break SDK generators)."
15902
15899
  placeActionType:
15903
15900
  type: string
15904
15901
  enum: [APPOINTMENT, ONLINE_APPOINTMENT, DINING_RESERVATION, FOOD_ORDERING, FOOD_DELIVERY, FOOD_TAKEOUT, SHOP_ONLINE]
@@ -16025,13 +16022,11 @@ paths:
16025
16022
  type: array
16026
16023
  items:
16027
16024
  type: object
16028
- oneOf:
16029
- - required: [structuredServiceItem]
16030
- - required: [freeFormServiceItem]
16031
16025
  properties:
16032
16026
  structuredServiceItem:
16033
16027
  type: object
16034
16028
  required: [serviceTypeId]
16029
+ description: "Exactly one of structuredServiceItem or freeFormServiceItem is required per item (enforced server-side; not modeled as oneOf because required-only oneOf branches break SDK generators)."
16035
16030
  properties:
16036
16031
  serviceTypeId: { type: string, minLength: 1 }
16037
16032
  description: { type: string }
@@ -18620,11 +18615,6 @@ paths:
18620
18615
  locations. Named `googleAccountId` to disambiguate from the path
18621
18616
  `accountId` (the Zernio account). The legacy field name `accountId`
18622
18617
  is still accepted for backwards compatibility.
18623
- accountId:
18624
- type: string
18625
- minLength: 1
18626
- deprecated: true
18627
- description: Legacy alias for googleAccountId. Use googleAccountId for new integrations.
18628
18618
  example:
18629
18619
  selectedLocationId: "12345678901234567890"
18630
18620
  googleAccountId: "accounts/123456789"
@@ -39,10 +39,4 @@ describe Zernio::UpdateGmbLocationRequest do
39
39
  end
40
40
  end
41
41
 
42
- describe 'test attribute "account_id"' do
43
- it 'should work' do
44
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
- end
46
- end
47
-
48
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zernio-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.525
4
+ version: 0.0.526
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator