zernio-sdk 0.0.846 → 0.0.847

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: ed425345471ead11b44d6395a53a4228ca5b27993aa7e5bcba446792b08b8961
4
- data.tar.gz: 55d0a39475980102e12a0a5bd8d4ddd16d402b2621b0f7651f85050f4365894b
3
+ metadata.gz: deb8cb0b62db94067d13a886b2d79b120d4678ef8c6d130f96462c32fb7f9510
4
+ data.tar.gz: da3babb7d65a56bee7e04d62eb8ce74a064a46ae11f4a4785aec4a31f32e4537
5
5
  SHA512:
6
- metadata.gz: 198beb8975616a62658d1e1fa4b20df9b6943f8433af9afcdfde0c5eb7bca71ee3d86b41e585d9d6ee30f12b5a2ac33424b46255a7d4b31443fcdb0ac503468a
7
- data.tar.gz: 6fa269492785ca65d246700455e1de49fa26c9a219705895cab4312f40826ec64d3df5fba6cf41d94ec4a4a1613066d4867f40cdfa6d4daa44319693c273945f
6
+ metadata.gz: 9afaf0f56491092294b7cf881f51dc8d4cde5a7e0a10b62cdef0466ee41695fd83c836178a623303d0e1e645dc835d1ff7446f14650c260f6b35644ed94a6c54
7
+ data.tar.gz: 68ce229127fe3c05262359f7caea37cfd364371e50ec243dc20cd1d47d36b4fef8443db687bc3b7fd8b154e45c9d0ec4687bcf9356c60179ed53f99599b7823d
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **error** | **String** | | [optional] |
8
- | **code** | **String** | Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to. | [optional] |
8
+ | **code** | **String** | Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to; DIRECT_SEND_NOT_ELIGIBLE and DIRECT_SEND_BLOCKED mean the WhatsApp Business Account needs Meta to grant or restore Direct Send access; DIRECT_SEND_LIMITED is temporary, Meta lifts it on its own. | [optional] |
9
9
  | **platform_error** | [**SendInboxMessage400ResponsePlatformError**](SendInboxMessage400ResponsePlatformError.md) | | [optional] |
10
10
 
11
11
  ## Example
@@ -110,7 +110,7 @@ module Zernio
110
110
  # @return true if the model is valid
111
111
  def valid?
112
112
  warn '[DEPRECATED] the `valid?` method is obsolete'
113
- code_validator = EnumAttributeValidator.new('String', ["PLATFORM_NOT_SUPPORTED"])
113
+ code_validator = EnumAttributeValidator.new('String', ["PLATFORM_NOT_SUPPORTED", "PLATFORM_LIMITATION", "TEMPLATE_REQUIRED", "INVALID_TEMPLATE_PARAMS", "INVALID_TEMPLATE_BUTTON_PARAM", "DIRECT_SEND_NOT_ELIGIBLE", "DIRECT_SEND_LIMITED", "DIRECT_SEND_BLOCKED"])
114
114
  return false unless code_validator.valid?(@code)
115
115
  true
116
116
  end
@@ -118,7 +118,7 @@ module Zernio
118
118
  # Custom attribute writer method checking allowed values (enum).
119
119
  # @param [Object] code Object to be assigned
120
120
  def code=(code)
121
- validator = EnumAttributeValidator.new('String', ["PLATFORM_NOT_SUPPORTED"])
121
+ validator = EnumAttributeValidator.new('String', ["PLATFORM_NOT_SUPPORTED", "PLATFORM_LIMITATION", "TEMPLATE_REQUIRED", "INVALID_TEMPLATE_PARAMS", "INVALID_TEMPLATE_BUTTON_PARAM", "DIRECT_SEND_NOT_ELIGIBLE", "DIRECT_SEND_LIMITED", "DIRECT_SEND_BLOCKED"])
122
122
  unless validator.valid?(code)
123
123
  fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
124
124
  end
@@ -17,7 +17,7 @@ module Zernio
17
17
  class SendInboxMessage400Response < ApiModelBase
18
18
  attr_accessor :error
19
19
 
20
- # Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to.
20
+ # Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to; DIRECT_SEND_NOT_ELIGIBLE and DIRECT_SEND_BLOCKED mean the WhatsApp Business Account needs Meta to grant or restore Direct Send access; DIRECT_SEND_LIMITED is temporary, Meta lifts it on its own.
21
21
  attr_accessor :code
22
22
 
23
23
  attr_accessor :platform_error
@@ -119,7 +119,7 @@ module Zernio
119
119
  # @return true if the model is valid
120
120
  def valid?
121
121
  warn '[DEPRECATED] the `valid?` method is obsolete'
122
- code_validator = EnumAttributeValidator.new('String', ["PLATFORM_LIMITATION", "MISSING_PARTICIPANT"])
122
+ code_validator = EnumAttributeValidator.new('String', ["PLATFORM_LIMITATION", "MISSING_PARTICIPANT", "DIRECT_SEND_NOT_ELIGIBLE", "DIRECT_SEND_LIMITED", "DIRECT_SEND_BLOCKED"])
123
123
  return false unless code_validator.valid?(@code)
124
124
  true
125
125
  end
@@ -127,7 +127,7 @@ module Zernio
127
127
  # Custom attribute writer method checking allowed values (enum).
128
128
  # @param [Object] code Object to be assigned
129
129
  def code=(code)
130
- validator = EnumAttributeValidator.new('String', ["PLATFORM_LIMITATION", "MISSING_PARTICIPANT"])
130
+ validator = EnumAttributeValidator.new('String', ["PLATFORM_LIMITATION", "MISSING_PARTICIPANT", "DIRECT_SEND_NOT_ELIGIBLE", "DIRECT_SEND_LIMITED", "DIRECT_SEND_BLOCKED"])
131
131
  unless validator.valid?(code)
132
132
  fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
133
133
  end
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.846'
14
+ VERSION = '0.0.847'
15
15
  end
data/openapi.yaml CHANGED
@@ -27015,14 +27015,14 @@ paths:
27015
27015
  type: [string, "null"]
27016
27016
  description: Twitter username of the recipient
27017
27017
  '400':
27018
- description: 'Validation error, platform not supported, category combined with templateName or used on a non-WhatsApp account, or the WhatsApp Business Account is not eligible for Direct Send'
27018
+ description: 'Validation error, platform not supported, an attachment the platform does not accept (PLATFORM_LIMITATION), template required to start a WhatsApp conversation (TEMPLATE_REQUIRED), template variables that do not match the approved definition (INVALID_TEMPLATE_PARAMS, INVALID_TEMPLATE_BUTTON_PARAM), category combined with templateName or used on a non-WhatsApp account, or the WhatsApp Business Account is not eligible for Direct Send: DIRECT_SEND_NOT_ELIGIBLE and DIRECT_SEND_BLOCKED require Meta to grant or restore Direct Send access, while DIRECT_SEND_LIMITED is temporary and lifts on its own'
27019
27019
  content:
27020
27020
  application/json:
27021
27021
  schema:
27022
27022
  type: object
27023
27023
  properties:
27024
27024
  error: { type: string }
27025
- code: { type: string, enum: [PLATFORM_NOT_SUPPORTED] }
27025
+ code: { type: string, enum: [PLATFORM_NOT_SUPPORTED, PLATFORM_LIMITATION, TEMPLATE_REQUIRED, INVALID_TEMPLATE_PARAMS, INVALID_TEMPLATE_BUTTON_PARAM, DIRECT_SEND_NOT_ELIGIBLE, DIRECT_SEND_LIMITED, DIRECT_SEND_BLOCKED] }
27026
27026
  '401': { $ref: '#/components/responses/Unauthorized' }
27027
27027
  '403':
27028
27028
  description: Inbox addon required or profile limit reached
@@ -28247,8 +28247,8 @@ paths:
28247
28247
  error: { type: string }
28248
28248
  code:
28249
28249
  type: string
28250
- description: "Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to."
28251
- enum: [PLATFORM_LIMITATION, MISSING_PARTICIPANT]
28250
+ description: "Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to; DIRECT_SEND_NOT_ELIGIBLE and DIRECT_SEND_BLOCKED mean the WhatsApp Business Account needs Meta to grant or restore Direct Send access; DIRECT_SEND_LIMITED is temporary, Meta lifts it on its own."
28251
+ enum: [PLATFORM_LIMITATION, MISSING_PARTICIPANT, DIRECT_SEND_NOT_ELIGIBLE, DIRECT_SEND_LIMITED, DIRECT_SEND_BLOCKED]
28252
28252
  platformError:
28253
28253
  type: object
28254
28254
  description: "Instagram/Facebook only. Meta's own diagnostic fields for the rejected send, passed through verbatim so you can tell failure classes apart and quote them to Meta. Absent when the failure did not come from Meta."
@@ -36,7 +36,7 @@ describe Zernio::CreateInboxConversation400Response do
36
36
  describe 'test attribute "code"' do
37
37
  it 'should work' do
38
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PLATFORM_NOT_SUPPORTED"])
39
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PLATFORM_NOT_SUPPORTED", "PLATFORM_LIMITATION", "TEMPLATE_REQUIRED", "INVALID_TEMPLATE_PARAMS", "INVALID_TEMPLATE_BUTTON_PARAM", "DIRECT_SEND_NOT_ELIGIBLE", "DIRECT_SEND_LIMITED", "DIRECT_SEND_BLOCKED"])
40
40
  # validator.allowable_values.each do |value|
41
41
  # expect { instance.code = value }.not_to raise_error
42
42
  # end
@@ -36,7 +36,7 @@ describe Zernio::SendInboxMessage400Response do
36
36
  describe 'test attribute "code"' do
37
37
  it 'should work' do
38
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PLATFORM_LIMITATION", "MISSING_PARTICIPANT"])
39
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PLATFORM_LIMITATION", "MISSING_PARTICIPANT", "DIRECT_SEND_NOT_ELIGIBLE", "DIRECT_SEND_LIMITED", "DIRECT_SEND_BLOCKED"])
40
40
  # validator.allowable_values.each do |value|
41
41
  # expect { instance.code = value }.not_to raise_error
42
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.846
4
+ version: 0.0.847
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator