zernio-sdk 0.0.525 → 0.0.527

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: 993a8b5e915ce68f01e62c2a5164906d7b7b461066671612dace526f2c5f7322
4
+ data.tar.gz: db65e798dbc41cdfeb336abffc6883e4c464b3045e00f287e574f070aec82bf8
5
5
  SHA512:
6
- metadata.gz: 93e3e9333c5528c67e4fa11e98abc060f65b3c585264607f8568a645e829b6f626241ae5226619205726d3e959e95ffa54876087d5bb07ec5dd3c13c3346912e
7
- data.tar.gz: 06c7361fe5dbf108a8a9adc2064549feaa41675cdef60093a028edfc10c61450843ef3eeda7374712032933ed4a40c117c7073ac865bd71e50e032482a143bac
6
+ metadata.gz: 985689b6d5b2c191463e66e6692f3aba988e0f5e5f7e01255a1f785ce3aaf3c563dea81cf0c9b40b819f30ffc08b7e4fdbc8f0470e7cbae64c1cc79a99da208d
7
+ data.tar.gz: 17bfcbd5e6ffd3e677c6dc2c5a5cd0731ad7b5a7fa3518cc9d7c1f5e16f3285e9593ea934e23c57cff247d7a8765a1e386e4c30efc7c2521c0f3c266f09f5dcd
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **account_id** | **String** | | |
8
8
  | **message** | **String** | | |
9
+ | **attachment_url** | **String** | (Facebook only) URL of an image to attach, publishing a photo comment alongside the text. The URL must be publicly accessible so Meta can fetch it. Returns 400 for other platforms. | [optional] |
9
10
  | **comment_id** | **String** | Reply to specific comment (optional) | [optional] |
10
11
  | **parent_cid** | **String** | (Bluesky only) Parent content identifier | [optional] |
11
12
  | **root_uri** | **String** | (Bluesky only) Root post URI | [optional] |
@@ -19,6 +20,7 @@ require 'zernio-sdk'
19
20
  instance = Zernio::ReplyToInboxPostRequest.new(
20
21
  account_id: null,
21
22
  message: null,
23
+ attachment_url: null,
22
24
  comment_id: null,
23
25
  parent_cid: null,
24
26
  root_uri: null,
@@ -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
 
@@ -19,6 +19,9 @@ module Zernio
19
19
 
20
20
  attr_accessor :message
21
21
 
22
+ # (Facebook only) URL of an image to attach, publishing a photo comment alongside the text. The URL must be publicly accessible so Meta can fetch it. Returns 400 for other platforms.
23
+ attr_accessor :attachment_url
24
+
22
25
  # Reply to specific comment (optional)
23
26
  attr_accessor :comment_id
24
27
 
@@ -36,6 +39,7 @@ module Zernio
36
39
  {
37
40
  :'account_id' => :'accountId',
38
41
  :'message' => :'message',
42
+ :'attachment_url' => :'attachmentUrl',
39
43
  :'comment_id' => :'commentId',
40
44
  :'parent_cid' => :'parentCid',
41
45
  :'root_uri' => :'rootUri',
@@ -58,6 +62,7 @@ module Zernio
58
62
  {
59
63
  :'account_id' => :'String',
60
64
  :'message' => :'String',
65
+ :'attachment_url' => :'String',
61
66
  :'comment_id' => :'String',
62
67
  :'parent_cid' => :'String',
63
68
  :'root_uri' => :'String',
@@ -99,6 +104,10 @@ module Zernio
99
104
  self.message = nil
100
105
  end
101
106
 
107
+ if attributes.key?(:'attachment_url')
108
+ self.attachment_url = attributes[:'attachment_url']
109
+ end
110
+
102
111
  if attributes.key?(:'comment_id')
103
112
  self.comment_id = attributes[:'comment_id']
104
113
  end
@@ -168,6 +177,7 @@ module Zernio
168
177
  self.class == o.class &&
169
178
  account_id == o.account_id &&
170
179
  message == o.message &&
180
+ attachment_url == o.attachment_url &&
171
181
  comment_id == o.comment_id &&
172
182
  parent_cid == o.parent_cid &&
173
183
  root_uri == o.root_uri &&
@@ -183,7 +193,7 @@ module Zernio
183
193
  # Calculates hash code according to all attributes.
184
194
  # @return [Integer] Hash code
185
195
  def hash
186
- [account_id, message, comment_id, parent_cid, root_uri, root_cid].hash
196
+ [account_id, message, attachment_url, comment_id, parent_cid, root_uri, root_cid].hash
187
197
  end
188
198
 
189
199
  # Builds the object from hash
@@ -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.527'
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"
@@ -22988,6 +22978,10 @@ paths:
22988
22978
  properties:
22989
22979
  accountId: { type: string }
22990
22980
  message: { type: string }
22981
+ attachmentUrl:
22982
+ type: string
22983
+ format: uri
22984
+ description: '(Facebook only) URL of an image to attach, publishing a photo comment alongside the text. The URL must be publicly accessible so Meta can fetch it. Returns 400 for other platforms.'
22991
22985
  commentId: { type: string, description: Reply to specific comment (optional) }
22992
22986
  parentCid: { type: string, description: (Bluesky only) Parent content identifier }
22993
22987
  rootUri: { type: string, description: (Bluesky only) Root post URI }
@@ -23007,6 +23001,8 @@ paths:
23007
23001
  commentId: { type: string }
23008
23002
  isReply: { type: boolean }
23009
23003
  cid: { type: [string, "null"], description: Bluesky CID }
23004
+ '400':
23005
+ description: 'Invalid request (e.g. attachmentUrl on a platform other than Facebook, code PLATFORM_NOT_SUPPORTED)'
23010
23006
  '401': { $ref: '#/components/responses/Unauthorized' }
23011
23007
  '403':
23012
23008
  description: Inbox addon required
@@ -39,6 +39,12 @@ describe Zernio::ReplyToInboxPostRequest do
39
39
  end
40
40
  end
41
41
 
42
+ describe 'test attribute "attachment_url"' 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
+
42
48
  describe 'test attribute "comment_id"' do
43
49
  it 'should work' do
44
50
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -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,14 +1,14 @@
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.527
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-19 00:00:00.000000000 Z
11
+ date: 2026-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus