late-sdk 0.0.634 → 0.0.635

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: bdf9665c2894873f1eab5aca327b773fbf305b3f17cf4c7c9e90e4df60d179b7
4
- data.tar.gz: d4b502e2d9174810d704c8f07f9d33e6427f760523fbff07e2ee70dd46a8d010
3
+ metadata.gz: 51f78f2d39bbe9f14ec50a3447242d7ec4b4cc920b80d91535d7732a02aaeb80
4
+ data.tar.gz: b2fcda4651ef50b5d32df9e8fc78a26acc8b2968c69564d379000f5b3d528bf1
5
5
  SHA512:
6
- metadata.gz: 972c791b8b7bea42860ac9dc58bff7516ae144ddd8a5406d2fcac7685f9af80caeb0a09dfacd5ecd07d17c75cc0a3452c195481197dc295bd9fe7764ea374dcb
7
- data.tar.gz: 604d9c38a48d0410d3407a4262c89748ebe6f757b6099c635a47e20dfb14afe44e4f6a6c200ea8a71aadf6d9020bf41aa9ae5ffd7bd3d43c20005b4f3fe0ad97
6
+ metadata.gz: e53970e0d7067f46da208f0234d2f1606eb2e68544fa821e5dedc949c8eece5b34d368b084cdf8ab65e338a9c260a4bbd8ba0f0cb355c0bb8938e0dfb3957384
7
+ data.tar.gz: b03d3cb37d5d3e56b36be0a82e1ae6ca5f7531822c6af456de1081c6f6b448ee5a0069c3e7c7f145fbcef2f75d1ca7c06a96cd58d50638b60425f3a55a2ce071
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | | |
8
- | **platform_identifier** | **String** | | |
8
+ | **platform_identifier** | **String** | Required when the top-level accountId is set (channel mode). A row missing it in that mode is rejected individually and reported in errors[], not a 400 for the whole import. | [optional] |
9
9
  | **display_identifier** | **String** | | [optional] |
10
10
  | **email** | **String** | | [optional] |
11
11
  | **company** | **String** | | [optional] |
data/docs/ContactsApi.md CHANGED
@@ -19,7 +19,7 @@ All URIs are relative to *https://zernio.com/api*
19
19
 
20
20
  Bulk create contacts
21
21
 
22
- Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
22
+ Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. When accountId is set, each contact must carry a platformIdentifier; a row missing it is rejected individually (reported in errors[], HTTP 200), not a 400 for the whole import. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
23
23
 
24
24
  ### Examples
25
25
 
@@ -33,7 +33,7 @@ Zernio.configure do |config|
33
33
  end
34
34
 
35
35
  api_instance = Zernio::ContactsApi.new
36
- bulk_create_contacts_request = Zernio::BulkCreateContactsRequest.new({profile_id: 'profile_id_example', contacts: [Zernio::BulkCreateContactsRequestContactsInner.new({name: 'name_example', platform_identifier: 'platform_identifier_example'})]}) # BulkCreateContactsRequest |
36
+ bulk_create_contacts_request = Zernio::BulkCreateContactsRequest.new({profile_id: 'profile_id_example', contacts: [Zernio::BulkCreateContactsRequestContactsInner.new({name: 'name_example'})]}) # BulkCreateContactsRequest |
37
37
 
38
38
  begin
39
39
  # Bulk create contacts
@@ -20,7 +20,7 @@ module Zernio
20
20
  @api_client = api_client
21
21
  end
22
22
  # Bulk create contacts
23
- # Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
23
+ # Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. When accountId is set, each contact must carry a platformIdentifier; a row missing it is rejected individually (reported in errors[], HTTP 200), not a 400 for the whole import. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
24
24
  # @param bulk_create_contacts_request [BulkCreateContactsRequest]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [BulkCreateContacts200Response]
@@ -30,7 +30,7 @@ module Zernio
30
30
  end
31
31
 
32
32
  # Bulk create contacts
33
- # Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
33
+ # Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. When accountId is set, each contact must carry a platformIdentifier; a row missing it is rejected individually (reported in errors[], HTTP 200), not a 400 for the whole import. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
34
34
  # @param bulk_create_contacts_request [BulkCreateContactsRequest]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(BulkCreateContacts200Response, Integer, Hash)>] BulkCreateContacts200Response data, response status code and response headers
@@ -17,6 +17,7 @@ module Zernio
17
17
  class BulkCreateContactsRequestContactsInner < ApiModelBase
18
18
  attr_accessor :name
19
19
 
20
+ # Required when the top-level accountId is set (channel mode). A row missing it in that mode is rejected individually and reported in errors[], not a 400 for the whole import.
20
21
  attr_accessor :platform_identifier
21
22
 
22
23
  attr_accessor :display_identifier
@@ -91,8 +92,6 @@ module Zernio
91
92
 
92
93
  if attributes.key?(:'platform_identifier')
93
94
  self.platform_identifier = attributes[:'platform_identifier']
94
- else
95
- self.platform_identifier = nil
96
95
  end
97
96
 
98
97
  if attributes.key?(:'display_identifier')
@@ -123,10 +122,6 @@ module Zernio
123
122
  invalid_properties.push('invalid value for "name", name cannot be nil.')
124
123
  end
125
124
 
126
- if @platform_identifier.nil?
127
- invalid_properties.push('invalid value for "platform_identifier", platform_identifier cannot be nil.')
128
- end
129
-
130
125
  invalid_properties
131
126
  end
132
127
 
@@ -135,7 +130,6 @@ module Zernio
135
130
  def valid?
136
131
  warn '[DEPRECATED] the `valid?` method is obsolete'
137
132
  return false if @name.nil?
138
- return false if @platform_identifier.nil?
139
133
  true
140
134
  end
141
135
 
@@ -149,16 +143,6 @@ module Zernio
149
143
  @name = name
150
144
  end
151
145
 
152
- # Custom attribute writer method with validation
153
- # @param [Object] platform_identifier Value to be assigned
154
- def platform_identifier=(platform_identifier)
155
- if platform_identifier.nil?
156
- fail ArgumentError, 'platform_identifier cannot be nil'
157
- end
158
-
159
- @platform_identifier = platform_identifier
160
- end
161
-
162
146
  # Checks equality by comparing each attribute.
163
147
  # @param [Object] Object to be compared
164
148
  def ==(o)
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.634'
14
+ VERSION = '0.0.635'
15
15
  end
data/openapi.yaml CHANGED
@@ -32897,7 +32897,7 @@ paths:
32897
32897
  post:
32898
32898
  operationId: bulkCreateContacts
32899
32899
  summary: Bulk create contacts
32900
- description: 'Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.'
32900
+ description: 'Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. When accountId is set, each contact must carry a platformIdentifier; a row missing it is rejected individually (reported in errors[], HTTP 200), not a 400 for the whole import. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.'
32901
32901
  tags: [Contacts]
32902
32902
  requestBody:
32903
32903
  required: true
@@ -32915,10 +32915,10 @@ paths:
32915
32915
  maxItems: 1000
32916
32916
  items:
32917
32917
  type: object
32918
- required: [name, platformIdentifier]
32918
+ required: [name]
32919
32919
  properties:
32920
32920
  name: { type: string }
32921
- platformIdentifier: { type: string }
32921
+ platformIdentifier: { type: string, description: 'Required when the top-level accountId is set (channel mode). A row missing it in that mode is rejected individually and reported in errors[], not a 400 for the whole import.' }
32922
32922
  displayIdentifier: { type: string }
32923
32923
  email: { type: string }
32924
32924
  company: { type: string }
@@ -32936,7 +32936,7 @@ paths:
32936
32936
  skipped: { type: integer }
32937
32937
  errors: { type: array, items: { type: string }, description: 'Per-contact failures, e.g. an identifier that is not a valid phone number' }
32938
32938
  total: { type: integer }
32939
- '400': { description: 'Missing required field, or a row carries platformIdentifier/accountId with no top-level accountId to attach it to' }
32939
+ '400': { description: 'Contact missing required field name, or a row carries platformIdentifier/accountId with no top-level accountId to attach it to. A row missing platformIdentifier while accountId IS set is not a 400: it is reported in errors[] under a 200.' }
32940
32940
  '401': { $ref: '#/components/responses/Unauthorized' }
32941
32941
 
32942
32942
  /v1/contacts/{contactId}/fields/{slug}:
@@ -34,7 +34,7 @@ describe 'ContactsApi' do
34
34
 
35
35
  # unit tests for bulk_create_contacts
36
36
  # Bulk create contacts
37
- # Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
37
+ # Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. When accountId is set, each contact must carry a platformIdentifier; a row missing it is rejected individually (reported in errors[], HTTP 200), not a 400 for the whole import. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
38
38
  # @param bulk_create_contacts_request
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [BulkCreateContacts200Response]
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: late-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.634
4
+ version: 0.0.635
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-31 00:00:00.000000000 Z
11
+ date: 2026-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -4919,7 +4919,7 @@ files:
4919
4919
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
4920
4920
  - spec/models/you_tube_video_retention_response_spec.rb
4921
4921
  - spec/spec_helper.rb
4922
- - zernio-sdk-0.0.634.gem
4922
+ - zernio-sdk-0.0.635.gem
4923
4923
  - zernio-sdk.gemspec
4924
4924
  homepage: https://openapi-generator.tech
4925
4925
  licenses:
Binary file