late-sdk 0.0.923 → 0.0.925

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: 84ca985c33672ca31ed53268783e2fe5726bec669ec428ea2a33e00238525173
4
- data.tar.gz: f8792a41b03045065a41c19d1facd8f0a3ad66ee7c3bed0d04a6656229562f8d
3
+ metadata.gz: cff3e41ec9b94a9b9d7ac8f8d35986a88ee649e5622d1c35fa139bd27630e865
4
+ data.tar.gz: eb6adcd1251f7d9634f0d21a1efd8e8909c6f76961d60e2899047a29c4a0ba64
5
5
  SHA512:
6
- metadata.gz: e33e079d1b1ce18459e65fba81c281a05e7a85dcb3659034e3f170c018d855df76320b0109585a4176c2a1073d2af7c952abd4f4bbbdeb2da3b6a722adc29e9b
7
- data.tar.gz: a4309199105618179aeb56a8b7f608200de640ca9b27a7ea6ddd20d05998273f7b62d5ff2d39ae9a8f56db23f7dabe57daf0c30efb829dba1cda198caef15162
6
+ metadata.gz: b0ac66db9db1af1c80f2a6c4da2d67f0c6cf3b328128992de3124c898a5453c946ed7b074ff77cd7531c38c9ec22a77ef77e8076bcd619e8ac6156998b113850
7
+ data.tar.gz: e2788c7a93d59147cb280b45a3a85b16405560591211f57e6f26212b348de34dd349e9685b2b796015d8c7d7d7da9ab0c6f17a85c5d74279a4dc05644de90560
data/README.md CHANGED
@@ -2050,6 +2050,7 @@ Class | Method | HTTP request | Description
2050
2050
  - [Zernio::OnWhatsAppAutomaticEventRequest](docs/OnWhatsAppAutomaticEventRequest.md)
2051
2051
  - [Zernio::OnWhatsAppAutomaticEventRequestCustomData](docs/OnWhatsAppAutomaticEventRequestCustomData.md)
2052
2052
  - [Zernio::OnWhatsAppNumberActionRequiredRequest](docs/OnWhatsAppNumberActionRequiredRequest.md)
2053
+ - [Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner](docs/OnWhatsAppNumberActionRequiredRequestRequirementsInner.md)
2053
2054
  - [Zernio::OnWhatsAppNumberActivatedRequest](docs/OnWhatsAppNumberActivatedRequest.md)
2054
2055
  - [Zernio::OnWhatsAppNumberActivatedRequestNumber](docs/OnWhatsAppNumberActivatedRequestNumber.md)
2055
2056
  - [Zernio::OnWhatsAppNumberDeclinedRequest](docs/OnWhatsAppNumberDeclinedRequest.md)
@@ -1977,7 +1977,7 @@ api_instance = Zernio::AdAccountsApi.new
1977
1977
  account_id = 'account_id_example' # String | Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
1978
1978
  ad_account_id = 'ad_account_id_example' # String | Meta ad account id (act_<n>).
1979
1979
  opts = {
1980
- fields: 'fields_example', # String | Comma-separated Graph field override (supports nested {} projections).
1980
+ fields: 'id,name,type,cells{id,name,treatment_percentage}', # String | Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
1981
1981
  limit: 56, # Integer | Rows per page
1982
1982
  after: 'after_example' # String | Cursor from paging.after of the previous page.
1983
1983
  }
@@ -2015,7 +2015,7 @@ end
2015
2015
  | ---- | ---- | ----------- | ----- |
2016
2016
  | **account_id** | **String** | Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token. | |
2017
2017
  | **ad_account_id** | **String** | Meta ad account id (act_&lt;n&gt;). | |
2018
- | **fields** | **String** | Comma-separated Graph field override (supports nested {} projections). | [optional] |
2018
+ | **fields** | **String** | Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently. | [optional] |
2019
2019
  | **limit** | **Integer** | Rows per page | [optional][default to 25] |
2020
2020
  | **after** | **String** | Cursor from paging.after of the previous page. | [optional] |
2021
2021
 
@@ -1224,7 +1224,7 @@ api_instance = Zernio::AdCampaignsApi.new
1224
1224
  ad_set_id = 'ad_set_id_example' # String | Meta ad set id (platformAdSetId).
1225
1225
  account_id = 'account_id_example' # String | Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
1226
1226
  opts = {
1227
- fields: 'fields_example' # String | Comma-separated Graph field override (supports nested {} projections).
1227
+ fields: 'id,status,ads.limit(100){id,name,status,issues_info}' # String | Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
1228
1228
  }
1229
1229
 
1230
1230
  begin
@@ -1260,7 +1260,7 @@ end
1260
1260
  | ---- | ---- | ----------- | ----- |
1261
1261
  | **ad_set_id** | **String** | Meta ad set id (platformAdSetId). | |
1262
1262
  | **account_id** | **String** | Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token. | |
1263
- | **fields** | **String** | Comma-separated Graph field override (supports nested {} projections). | [optional] |
1263
+ | **fields** | **String** | Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently. | [optional] |
1264
1264
 
1265
1265
  ### Return type
1266
1266
 
@@ -329,7 +329,7 @@ api_instance = Zernio::AdCreativesApi.new
329
329
  creative_id = 'creative_id_example' # String | Platform creative id
330
330
  account_id = 'account_id_example' # String | Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
331
331
  opts = {
332
- fields: 'fields_example' # String | Comma-separated Graph field override (supports nested {} projections).
332
+ fields: 'id,name,status,object_story_spec{page_id,link_data{link,message}}' # String | Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
333
333
  }
334
334
 
335
335
  begin
@@ -365,7 +365,7 @@ end
365
365
  | ---- | ---- | ----------- | ----- |
366
366
  | **creative_id** | **String** | Platform creative id | |
367
367
  | **account_id** | **String** | Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token. | |
368
- | **fields** | **String** | Comma-separated Graph field override (supports nested {} projections). | [optional] |
368
+ | **fields** | **String** | Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently. | [optional] |
369
369
 
370
370
  ### Return type
371
371
 
@@ -688,7 +688,7 @@ api_instance = Zernio::AdCreativesApi.new
688
688
  account_id = 'account_id_example' # String | Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
689
689
  ad_account_id = 'ad_account_id_example' # String | Meta ad account id (act_<n>).
690
690
  opts = {
691
- fields: 'fields_example', # String | Comma-separated Graph field override (supports nested {} projections).
691
+ fields: 'id,name,status,object_story_spec{page_id,link_data{link,message}}', # String | Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
692
692
  limit: 56, # Integer | Rows per page
693
693
  after: 'after_example' # String | Cursor from paging.after of the previous page.
694
694
  }
@@ -726,7 +726,7 @@ end
726
726
  | ---- | ---- | ----------- | ----- |
727
727
  | **account_id** | **String** | Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token. | |
728
728
  | **ad_account_id** | **String** | Meta ad account id (act_&lt;n&gt;). | |
729
- | **fields** | **String** | Comma-separated Graph field override (supports nested {} projections). | [optional] |
729
+ | **fields** | **String** | Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently. | [optional] |
730
730
  | **limit** | **Integer** | Rows per page | [optional][default to 25] |
731
731
  | **after** | **String** | Cursor from paging.after of the previous page. | [optional] |
732
732
 
@@ -767,7 +767,7 @@ api_instance = Zernio::AdCreativesApi.new
767
767
  account_id = 'account_id_example' # String | Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
768
768
  ad_account_id = 'ad_account_id_example' # String | Meta ad account id (act_<n>).
769
769
  opts = {
770
- fields: 'fields_example', # String | Comma-separated Graph field override (supports nested {} projections).
770
+ fields: 'hash,url,name,width,height,status', # String | Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
771
771
  limit: 56, # Integer | Rows per page
772
772
  after: 'after_example' # String | Cursor from paging.after of the previous page.
773
773
  }
@@ -805,7 +805,7 @@ end
805
805
  | ---- | ---- | ----------- | ----- |
806
806
  | **account_id** | **String** | Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token. | |
807
807
  | **ad_account_id** | **String** | Meta ad account id (act_&lt;n&gt;). | |
808
- | **fields** | **String** | Comma-separated Graph field override (supports nested {} projections). | [optional] |
808
+ | **fields** | **String** | Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently. | [optional] |
809
809
  | **limit** | **Integer** | Rows per page | [optional][default to 25] |
810
810
  | **after** | **String** | Cursor from paging.after of the previous page. | [optional] |
811
811
 
@@ -846,7 +846,7 @@ api_instance = Zernio::AdCreativesApi.new
846
846
  account_id = 'account_id_example' # String | Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
847
847
  ad_account_id = 'ad_account_id_example' # String | Meta ad account id (act_<n>).
848
848
  opts = {
849
- fields: 'fields_example', # String | Comma-separated Graph field override (supports nested {} projections).
849
+ fields: 'id,title,status,thumbnails,length', # String | Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
850
850
  limit: 56, # Integer | Rows per page
851
851
  after: 'after_example' # String | Cursor from paging.after of the previous page.
852
852
  }
@@ -884,7 +884,7 @@ end
884
884
  | ---- | ---- | ----------- | ----- |
885
885
  | **account_id** | **String** | Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token. | |
886
886
  | **ad_account_id** | **String** | Meta ad account id (act_&lt;n&gt;). | |
887
- | **fields** | **String** | Comma-separated Graph field override (supports nested {} projections). | [optional] |
887
+ | **fields** | **String** | Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently. | [optional] |
888
888
  | **limit** | **Integer** | Rows per page | [optional][default to 25] |
889
889
  | **after** | **String** | Cursor from paging.after of the previous page. | [optional] |
890
890
 
data/docs/AdLibraryApi.md CHANGED
@@ -42,7 +42,7 @@ opts = {
42
42
  since: Date.parse('2013-10-20'), # Date | Earliest delivery date (YYYY-MM-DD).
43
43
  _until: Date.parse('2013-10-20'), # Date | Latest delivery date (YYYY-MM-DD).
44
44
  search_type: 'KEYWORD_UNORDERED', # String | Meta only. Whether q matches words in any order or as an exact phrase (comma-separate phrases to match all of them).
45
- fields: 'fields_example', # String | Meta only. Raw Graph projection override, e.g. add spend,impressions,demographic_distribution for political ads.
45
+ fields: 'id,page_name,ad_delivery_start_time,ad_creative_bodies', # String | Meta only. Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
46
46
  limit: 56, # Integer | Rows per page. LinkedIn accepts at most 25.
47
47
  after: 'after_example' # String | paging.after of the previous page.
48
48
  }
@@ -92,7 +92,7 @@ end
92
92
  | **since** | **Date** | Earliest delivery date (YYYY-MM-DD). | [optional] |
93
93
  | **_until** | **Date** | Latest delivery date (YYYY-MM-DD). | [optional] |
94
94
  | **search_type** | **String** | Meta only. Whether q matches words in any order or as an exact phrase (comma-separate phrases to match all of them). | [optional][default to &#39;KEYWORD_UNORDERED&#39;] |
95
- | **fields** | **String** | Meta only. Raw Graph projection override, e.g. add spend,impressions,demographic_distribution for political ads. | [optional] |
95
+ | **fields** | **String** | Meta only. Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently. | [optional] |
96
96
  | **limit** | **Integer** | Rows per page. LinkedIn accepts at most 25. | [optional][default to 25] |
97
97
  | **after** | **String** | paging.after of the previous page. | [optional] |
98
98
 
@@ -8,6 +8,8 @@
8
8
  | **event** | **String** | | [optional] |
9
9
  | **timestamp** | **Time** | UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt. | [optional] |
10
10
  | **reason** | **String** | | [optional] |
11
+ | **requirements** | [**Array&lt;OnWhatsAppNumberActionRequiredRequestRequirementsInner&gt;**](OnWhatsAppNumberActionRequiredRequestRequirementsInner.md) | Every requirement on the order with the reviewer&#39;s current verdict. Omitted when the order&#39;s requirements could not be read. | [optional] |
12
+ | **reviewed_at** | **Time** | When the reviewer last commented on the order. Omitted when there is no reviewer comment. | [optional] |
11
13
  | **number** | [**OnWhatsAppNumberDeclinedRequestNumber**](OnWhatsAppNumberDeclinedRequestNumber.md) | | [optional] |
12
14
 
13
15
  ## Example
@@ -20,6 +22,8 @@ instance = Zernio::OnWhatsAppNumberActionRequiredRequest.new(
20
22
  event: null,
21
23
  timestamp: null,
22
24
  reason: null,
25
+ requirements: null,
26
+ reviewed_at: null,
23
27
  number: null
24
28
  )
25
29
  ```
@@ -0,0 +1,22 @@
1
+ # Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **requirement_id** | **String** | Same id as fields[].requirementId on the remediation endpoint. | [optional] |
8
+ | **label** | **String** | | [optional] |
9
+ | **status** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'zernio-sdk'
15
+
16
+ instance = Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner.new(
17
+ requirement_id: null,
18
+ label: null,
19
+ status: null
20
+ )
21
+ ```
22
+
@@ -2989,7 +2989,7 @@ nil (empty response body)
2989
2989
 
2990
2990
  WhatsApp number action required event
2991
2991
 
2992
- Fired when the regulator asks for more information on an already-placed regulated number order. The number stays pending (nothing was rejected); the customer can provide the missing information from the dashboard, or via the remediation endpoint. `reason` carries the regulator's request verbatim when available.
2992
+ Fired when the regulator asks for more information on an already-placed regulated number order. The number stays pending (nothing was rejected); the customer can provide the missing information from the dashboard, or via the remediation endpoint. `reason` carries the regulator's request verbatim when available. `requirements` lists every requirement on the order with the reviewer's current verdict; the `declined` ones are what to fix, keyed by the same `requirementId` the remediation endpoint uses. Verdicts only change when a reviewer acts, so they describe the review at `reviewedAt`, the time of the reviewer's last comment.
2993
2993
 
2994
2994
  ### Examples
2995
2995
 
@@ -2038,7 +2038,7 @@ module Zernio
2038
2038
  # @param account_id [String] Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
2039
2039
  # @param ad_account_id [String] Meta ad account id (act_&lt;n&gt;).
2040
2040
  # @param [Hash] opts the optional parameters
2041
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
2041
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
2042
2042
  # @option opts [Integer] :limit Rows per page (default to 25)
2043
2043
  # @option opts [String] :after Cursor from paging.after of the previous page.
2044
2044
  # @return [ListAdStudies200Response]
@@ -2052,7 +2052,7 @@ module Zernio
2052
2052
  # @param account_id [String] Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
2053
2053
  # @param ad_account_id [String] Meta ad account id (act_&lt;n&gt;).
2054
2054
  # @param [Hash] opts the optional parameters
2055
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
2055
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
2056
2056
  # @option opts [Integer] :limit Rows per page (default to 25)
2057
2057
  # @option opts [String] :after Cursor from paging.after of the previous page.
2058
2058
  # @return [Array<(ListAdStudies200Response, Integer, Hash)>] ListAdStudies200Response data, response status code and response headers
@@ -1191,7 +1191,7 @@ module Zernio
1191
1191
  # @param ad_set_id [String] Meta ad set id (platformAdSetId).
1192
1192
  # @param account_id [String] Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
1193
1193
  # @param [Hash] opts the optional parameters
1194
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
1194
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
1195
1195
  # @return [GetAdSetDetails200Response]
1196
1196
  def get_ad_set_details(ad_set_id, account_id, opts = {})
1197
1197
  data, _status_code, _headers = get_ad_set_details_with_http_info(ad_set_id, account_id, opts)
@@ -1203,7 +1203,7 @@ module Zernio
1203
1203
  # @param ad_set_id [String] Meta ad set id (platformAdSetId).
1204
1204
  # @param account_id [String] Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
1205
1205
  # @param [Hash] opts the optional parameters
1206
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
1206
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
1207
1207
  # @return [Array<(GetAdSetDetails200Response, Integer, Hash)>] GetAdSetDetails200Response data, response status code and response headers
1208
1208
  def get_ad_set_details_with_http_info(ad_set_id, account_id, opts = {})
1209
1209
  if @api_client.config.debugging
@@ -307,7 +307,7 @@ module Zernio
307
307
  # @param creative_id [String] Platform creative id
308
308
  # @param account_id [String] Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
309
309
  # @param [Hash] opts the optional parameters
310
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
310
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
311
311
  # @return [GetAdCreative200Response]
312
312
  def get_ad_creative(creative_id, account_id, opts = {})
313
313
  data, _status_code, _headers = get_ad_creative_with_http_info(creative_id, account_id, opts)
@@ -319,7 +319,7 @@ module Zernio
319
319
  # @param creative_id [String] Platform creative id
320
320
  # @param account_id [String] Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
321
321
  # @param [Hash] opts the optional parameters
322
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
322
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
323
323
  # @return [Array<(GetAdCreative200Response, Integer, Hash)>] GetAdCreative200Response data, response status code and response headers
324
324
  def get_ad_creative_with_http_info(creative_id, account_id, opts = {})
325
325
  if @api_client.config.debugging
@@ -650,7 +650,7 @@ module Zernio
650
650
  # @param account_id [String] Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
651
651
  # @param ad_account_id [String] Meta ad account id (act_&lt;n&gt;).
652
652
  # @param [Hash] opts the optional parameters
653
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
653
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
654
654
  # @option opts [Integer] :limit Rows per page (default to 25)
655
655
  # @option opts [String] :after Cursor from paging.after of the previous page.
656
656
  # @return [ListAdCreatives200Response]
@@ -664,7 +664,7 @@ module Zernio
664
664
  # @param account_id [String] Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
665
665
  # @param ad_account_id [String] Meta ad account id (act_&lt;n&gt;).
666
666
  # @param [Hash] opts the optional parameters
667
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
667
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
668
668
  # @option opts [Integer] :limit Rows per page (default to 25)
669
669
  # @option opts [String] :after Cursor from paging.after of the previous page.
670
670
  # @return [Array<(ListAdCreatives200Response, Integer, Hash)>] ListAdCreatives200Response data, response status code and response headers
@@ -738,7 +738,7 @@ module Zernio
738
738
  # @param account_id [String] Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
739
739
  # @param ad_account_id [String] Meta ad account id (act_&lt;n&gt;).
740
740
  # @param [Hash] opts the optional parameters
741
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
741
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
742
742
  # @option opts [Integer] :limit Rows per page (default to 25)
743
743
  # @option opts [String] :after Cursor from paging.after of the previous page.
744
744
  # @return [ListAdImages200Response]
@@ -752,7 +752,7 @@ module Zernio
752
752
  # @param account_id [String] Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
753
753
  # @param ad_account_id [String] Meta ad account id (act_&lt;n&gt;).
754
754
  # @param [Hash] opts the optional parameters
755
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
755
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
756
756
  # @option opts [Integer] :limit Rows per page (default to 25)
757
757
  # @option opts [String] :after Cursor from paging.after of the previous page.
758
758
  # @return [Array<(ListAdImages200Response, Integer, Hash)>] ListAdImages200Response data, response status code and response headers
@@ -826,7 +826,7 @@ module Zernio
826
826
  # @param account_id [String] Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
827
827
  # @param ad_account_id [String] Meta ad account id (act_&lt;n&gt;).
828
828
  # @param [Hash] opts the optional parameters
829
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
829
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
830
830
  # @option opts [Integer] :limit Rows per page (default to 25)
831
831
  # @option opts [String] :after Cursor from paging.after of the previous page.
832
832
  # @return [ListAdVideos200Response]
@@ -840,7 +840,7 @@ module Zernio
840
840
  # @param account_id [String] Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
841
841
  # @param ad_account_id [String] Meta ad account id (act_&lt;n&gt;).
842
842
  # @param [Hash] opts the optional parameters
843
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
843
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
844
844
  # @option opts [Integer] :limit Rows per page (default to 25)
845
845
  # @option opts [String] :after Cursor from paging.after of the previous page.
846
846
  # @return [Array<(ListAdVideos200Response, Integer, Hash)>] ListAdVideos200Response data, response status code and response headers
@@ -36,7 +36,7 @@ module Zernio
36
36
  # @option opts [Date] :since Earliest delivery date (YYYY-MM-DD).
37
37
  # @option opts [Date] :_until Latest delivery date (YYYY-MM-DD).
38
38
  # @option opts [String] :search_type Meta only. Whether q matches words in any order or as an exact phrase (comma-separate phrases to match all of them). (default to 'KEYWORD_UNORDERED')
39
- # @option opts [String] :fields Meta only. Raw Graph projection override, e.g. add spend,impressions,demographic_distribution for political ads.
39
+ # @option opts [String] :fields Meta only. Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
40
40
  # @option opts [Integer] :limit Rows per page. LinkedIn accepts at most 25. (default to 25)
41
41
  # @option opts [String] :after paging.after of the previous page.
42
42
  # @return [SearchAdLibrary200Response]
@@ -62,7 +62,7 @@ module Zernio
62
62
  # @option opts [Date] :since Earliest delivery date (YYYY-MM-DD).
63
63
  # @option opts [Date] :_until Latest delivery date (YYYY-MM-DD).
64
64
  # @option opts [String] :search_type Meta only. Whether q matches words in any order or as an exact phrase (comma-separate phrases to match all of them). (default to 'KEYWORD_UNORDERED')
65
- # @option opts [String] :fields Meta only. Raw Graph projection override, e.g. add spend,impressions,demographic_distribution for political ads.
65
+ # @option opts [String] :fields Meta only. Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
66
66
  # @option opts [Integer] :limit Rows per page. LinkedIn accepts at most 25. (default to 25)
67
67
  # @option opts [String] :after paging.after of the previous page.
68
68
  # @return [Array<(SearchAdLibrary200Response, Integer, Hash)>] SearchAdLibrary200Response data, response status code and response headers
@@ -2858,7 +2858,7 @@ module Zernio
2858
2858
  end
2859
2859
 
2860
2860
  # WhatsApp number action required event
2861
- # Fired when the regulator asks for more information on an already-placed regulated number order. The number stays pending (nothing was rejected); the customer can provide the missing information from the dashboard, or via the remediation endpoint. `reason` carries the regulator's request verbatim when available.
2861
+ # Fired when the regulator asks for more information on an already-placed regulated number order. The number stays pending (nothing was rejected); the customer can provide the missing information from the dashboard, or via the remediation endpoint. `reason` carries the regulator's request verbatim when available. `requirements` lists every requirement on the order with the reviewer's current verdict; the `declined` ones are what to fix, keyed by the same `requirementId` the remediation endpoint uses. Verdicts only change when a reviewer acts, so they describe the review at `reviewedAt`, the time of the reviewer's last comment.
2862
2862
  # @param on_whats_app_number_action_required_request [OnWhatsAppNumberActionRequiredRequest]
2863
2863
  # @param [Hash] opts the optional parameters
2864
2864
  # @return [nil]
@@ -2868,7 +2868,7 @@ module Zernio
2868
2868
  end
2869
2869
 
2870
2870
  # WhatsApp number action required event
2871
- # Fired when the regulator asks for more information on an already-placed regulated number order. The number stays pending (nothing was rejected); the customer can provide the missing information from the dashboard, or via the remediation endpoint. &#x60;reason&#x60; carries the regulator&#39;s request verbatim when available.
2871
+ # Fired when the regulator asks for more information on an already-placed regulated number order. The number stays pending (nothing was rejected); the customer can provide the missing information from the dashboard, or via the remediation endpoint. &#x60;reason&#x60; carries the regulator&#39;s request verbatim when available. &#x60;requirements&#x60; lists every requirement on the order with the reviewer&#39;s current verdict; the &#x60;declined&#x60; ones are what to fix, keyed by the same &#x60;requirementId&#x60; the remediation endpoint uses. Verdicts only change when a reviewer acts, so they describe the review at &#x60;reviewedAt&#x60;, the time of the reviewer&#39;s last comment.
2872
2872
  # @param on_whats_app_number_action_required_request [OnWhatsAppNumberActionRequiredRequest]
2873
2873
  # @param [Hash] opts the optional parameters
2874
2874
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -24,6 +24,12 @@ module Zernio
24
24
 
25
25
  attr_accessor :reason
26
26
 
27
+ # Every requirement on the order with the reviewer's current verdict. Omitted when the order's requirements could not be read.
28
+ attr_accessor :requirements
29
+
30
+ # When the reviewer last commented on the order. Omitted when there is no reviewer comment.
31
+ attr_accessor :reviewed_at
32
+
27
33
  attr_accessor :number
28
34
 
29
35
  class EnumAttributeValidator
@@ -55,6 +61,8 @@ module Zernio
55
61
  :'event' => :'event',
56
62
  :'timestamp' => :'timestamp',
57
63
  :'reason' => :'reason',
64
+ :'requirements' => :'requirements',
65
+ :'reviewed_at' => :'reviewedAt',
58
66
  :'number' => :'number'
59
67
  }
60
68
  end
@@ -76,6 +84,8 @@ module Zernio
76
84
  :'event' => :'String',
77
85
  :'timestamp' => :'Time',
78
86
  :'reason' => :'String',
87
+ :'requirements' => :'Array<OnWhatsAppNumberActionRequiredRequestRequirementsInner>',
88
+ :'reviewed_at' => :'Time',
79
89
  :'number' => :'OnWhatsAppNumberDeclinedRequestNumber'
80
90
  }
81
91
  end
@@ -118,6 +128,16 @@ module Zernio
118
128
  self.reason = attributes[:'reason']
119
129
  end
120
130
 
131
+ if attributes.key?(:'requirements')
132
+ if (value = attributes[:'requirements']).is_a?(Array)
133
+ self.requirements = value
134
+ end
135
+ end
136
+
137
+ if attributes.key?(:'reviewed_at')
138
+ self.reviewed_at = attributes[:'reviewed_at']
139
+ end
140
+
121
141
  if attributes.key?(:'number')
122
142
  self.number = attributes[:'number']
123
143
  end
@@ -159,6 +179,8 @@ module Zernio
159
179
  event == o.event &&
160
180
  timestamp == o.timestamp &&
161
181
  reason == o.reason &&
182
+ requirements == o.requirements &&
183
+ reviewed_at == o.reviewed_at &&
162
184
  number == o.number
163
185
  end
164
186
 
@@ -171,7 +193,7 @@ module Zernio
171
193
  # Calculates hash code according to all attributes.
172
194
  # @return [Integer] Hash code
173
195
  def hash
174
- [id, event, timestamp, reason, number].hash
196
+ [id, event, timestamp, reason, requirements, reviewed_at, number].hash
175
197
  end
176
198
 
177
199
  # Builds the object from hash
@@ -0,0 +1,200 @@
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 OnWhatsAppNumberActionRequiredRequestRequirementsInner < ApiModelBase
18
+ # Same id as fields[].requirementId on the remediation endpoint.
19
+ attr_accessor :requirement_id
20
+
21
+ attr_accessor :label
22
+
23
+ attr_accessor :status
24
+
25
+ class EnumAttributeValidator
26
+ attr_reader :datatype
27
+ attr_reader :allowable_values
28
+
29
+ def initialize(datatype, allowable_values)
30
+ @allowable_values = allowable_values.map do |value|
31
+ case datatype.to_s
32
+ when /Integer/i
33
+ value.to_i
34
+ when /Float/i
35
+ value.to_f
36
+ else
37
+ value
38
+ end
39
+ end
40
+ end
41
+
42
+ def valid?(value)
43
+ !value || allowable_values.include?(value)
44
+ end
45
+ end
46
+
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'requirement_id' => :'requirementId',
51
+ :'label' => :'label',
52
+ :'status' => :'status'
53
+ }
54
+ end
55
+
56
+ # Returns attribute mapping this model knows about
57
+ def self.acceptable_attribute_map
58
+ attribute_map
59
+ end
60
+
61
+ # Returns all the JSON keys this model knows about
62
+ def self.acceptable_attributes
63
+ acceptable_attribute_map.values
64
+ end
65
+
66
+ # Attribute type mapping.
67
+ def self.openapi_types
68
+ {
69
+ :'requirement_id' => :'String',
70
+ :'label' => :'String',
71
+ :'status' => :'String'
72
+ }
73
+ end
74
+
75
+ # List of attributes with nullable: true
76
+ def self.openapi_nullable
77
+ Set.new([
78
+ ])
79
+ end
80
+
81
+ # Initializes the object
82
+ # @param [Hash] attributes Model attributes in the form of hash
83
+ def initialize(attributes = {})
84
+ if (!attributes.is_a?(Hash))
85
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner` initialize method"
86
+ end
87
+
88
+ # check to see if the attribute exists and convert string to symbol for hash key
89
+ acceptable_attribute_map = self.class.acceptable_attribute_map
90
+ attributes = attributes.each_with_object({}) { |(k, v), h|
91
+ if (!acceptable_attribute_map.key?(k.to_sym))
92
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
93
+ end
94
+ h[k.to_sym] = v
95
+ }
96
+
97
+ if attributes.key?(:'requirement_id')
98
+ self.requirement_id = attributes[:'requirement_id']
99
+ end
100
+
101
+ if attributes.key?(:'label')
102
+ self.label = attributes[:'label']
103
+ end
104
+
105
+ if attributes.key?(:'status')
106
+ self.status = attributes[:'status']
107
+ end
108
+ end
109
+
110
+ # Show invalid properties with the reasons. Usually used together with valid?
111
+ # @return Array for valid properties with the reasons
112
+ def list_invalid_properties
113
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
114
+ invalid_properties = Array.new
115
+ invalid_properties
116
+ end
117
+
118
+ # Check to see if the all the properties in the model are valid
119
+ # @return true if the model is valid
120
+ def valid?
121
+ warn '[DEPRECATED] the `valid?` method is obsolete'
122
+ status_validator = EnumAttributeValidator.new('String', ["approved", "pending", "declined"])
123
+ return false unless status_validator.valid?(@status)
124
+ true
125
+ end
126
+
127
+ # Custom attribute writer method checking allowed values (enum).
128
+ # @param [Object] status Object to be assigned
129
+ def status=(status)
130
+ validator = EnumAttributeValidator.new('String', ["approved", "pending", "declined"])
131
+ unless validator.valid?(status)
132
+ fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
133
+ end
134
+ @status = status
135
+ end
136
+
137
+ # Checks equality by comparing each attribute.
138
+ # @param [Object] Object to be compared
139
+ def ==(o)
140
+ return true if self.equal?(o)
141
+ self.class == o.class &&
142
+ requirement_id == o.requirement_id &&
143
+ label == o.label &&
144
+ status == o.status
145
+ end
146
+
147
+ # @see the `==` method
148
+ # @param [Object] Object to be compared
149
+ def eql?(o)
150
+ self == o
151
+ end
152
+
153
+ # Calculates hash code according to all attributes.
154
+ # @return [Integer] Hash code
155
+ def hash
156
+ [requirement_id, label, status].hash
157
+ end
158
+
159
+ # Builds the object from hash
160
+ # @param [Hash] attributes Model attributes in the form of hash
161
+ # @return [Object] Returns the model itself
162
+ def self.build_from_hash(attributes)
163
+ return nil unless attributes.is_a?(Hash)
164
+ attributes = attributes.transform_keys(&:to_sym)
165
+ transformed_hash = {}
166
+ openapi_types.each_pair do |key, type|
167
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
168
+ transformed_hash["#{key}"] = nil
169
+ elsif type =~ /\AArray<(.*)>/i
170
+ # check to ensure the input is an array given that the attribute
171
+ # is documented as an array but the input is not
172
+ if attributes[attribute_map[key]].is_a?(Array)
173
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
174
+ end
175
+ elsif !attributes[attribute_map[key]].nil?
176
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
177
+ end
178
+ end
179
+ new(transformed_hash)
180
+ end
181
+
182
+ # Returns the object in the form of hash
183
+ # @return [Hash] Returns the object in the form of hash
184
+ def to_hash
185
+ hash = {}
186
+ self.class.attribute_map.each_pair do |attr, param|
187
+ value = self.send(attr)
188
+ if value.nil?
189
+ is_nullable = self.class.openapi_nullable.include?(attr)
190
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
191
+ end
192
+
193
+ hash[param] = _to_hash(value)
194
+ end
195
+ hash
196
+ end
197
+
198
+ end
199
+
200
+ end
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.923'
14
+ VERSION = '0.0.925'
15
15
  end
data/lib/zernio-sdk.rb CHANGED
@@ -1269,6 +1269,7 @@ require 'zernio-sdk/models/on_verification_failed_request_verification'
1269
1269
  require 'zernio-sdk/models/on_whats_app_automatic_event_request'
1270
1270
  require 'zernio-sdk/models/on_whats_app_automatic_event_request_custom_data'
1271
1271
  require 'zernio-sdk/models/on_whats_app_number_action_required_request'
1272
+ require 'zernio-sdk/models/on_whats_app_number_action_required_request_requirements_inner'
1272
1273
  require 'zernio-sdk/models/on_whats_app_number_activated_request'
1273
1274
  require 'zernio-sdk/models/on_whats_app_number_activated_request_number'
1274
1275
  require 'zernio-sdk/models/on_whats_app_number_declined_request'
data/openapi.yaml CHANGED
@@ -11595,7 +11595,11 @@ webhooks:
11595
11595
  regulated number order. The number stays pending (nothing was rejected);
11596
11596
  the customer can provide the missing information from the dashboard, or
11597
11597
  via the remediation endpoint. `reason` carries the regulator's request
11598
- verbatim when available.
11598
+ verbatim when available. `requirements` lists every requirement on the
11599
+ order with the reviewer's current verdict; the `declined` ones are what to
11600
+ fix, keyed by the same `requirementId` the remediation endpoint uses.
11601
+ Verdicts only change when a reviewer acts, so they describe the review at
11602
+ `reviewedAt`, the time of the reviewer's last comment.
11599
11603
  tags: [Webhook Events]
11600
11604
  requestBody:
11601
11605
  required: true
@@ -11611,6 +11615,21 @@ webhooks:
11611
11615
  format: date-time
11612
11616
  description: 'UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.'
11613
11617
  reason: { type: string }
11618
+ requirements:
11619
+ type: array
11620
+ description: "Every requirement on the order with the reviewer's current verdict. Omitted when the order's requirements could not be read."
11621
+ items:
11622
+ type: object
11623
+ properties:
11624
+ requirementId:
11625
+ type: string
11626
+ description: 'Same id as fields[].requirementId on the remediation endpoint.'
11627
+ label: { type: string }
11628
+ status: { type: string, enum: [approved, pending, declined] }
11629
+ reviewedAt:
11630
+ type: string
11631
+ format: date-time
11632
+ description: 'When the reviewer last commented on the order. Omitted when there is no reviewer comment.'
11614
11633
  number:
11615
11634
  type: object
11616
11635
  properties:
@@ -44790,7 +44809,7 @@ paths:
44790
44809
  parameters:
44791
44810
  - { name: adSetId, in: path, required: true, schema: { type: string }, description: "Meta ad set id (platformAdSetId)." }
44792
44811
  - { name: accountId, in: query, required: true, schema: { type: string }, description: "Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token." }
44793
- - { name: fields, in: query, schema: { type: string }, description: "Comma-separated Graph field override (supports nested {} projections)." }
44812
+ - { name: fields, in: query, schema: { type: string, example: 'id,status,ads.limit(100){id,name,status,issues_info}' }, description: 'Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.' }
44794
44813
  responses:
44795
44814
  '409': { $ref: '#/components/responses/AccountConnectionRequired' }
44796
44815
  '404': { $ref: '#/components/responses/AccountUnavailable' }
@@ -47599,7 +47618,7 @@ paths:
47599
47618
  parameters:
47600
47619
  - { name: accountId, in: query, required: true, schema: { type: string }, description: "Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token." }
47601
47620
  - { name: adAccountId, in: query, required: true, schema: { type: string }, description: "Meta ad account id (act_<n>)." }
47602
- - { name: fields, in: query, schema: { type: string }, description: "Comma-separated Graph field override (supports nested {} projections)." }
47621
+ - { name: fields, in: query, schema: { type: string, example: 'id,name,type,cells{id,name,treatment_percentage}' }, description: 'Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.' }
47603
47622
  - { name: limit, in: query, schema: { type: integer, minimum: 1, maximum: 100, default: 25 }, description: Rows per page }
47604
47623
  - { name: after, in: query, schema: { type: string }, description: "Cursor from paging.after of the previous page." }
47605
47624
  responses:
@@ -47971,7 +47990,7 @@ paths:
47971
47990
  parameters:
47972
47991
  - { name: accountId, in: query, required: true, schema: { type: string }, description: "Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token." }
47973
47992
  - { name: adAccountId, in: query, required: true, schema: { type: string }, description: "Meta ad account id (act_<n>)." }
47974
- - { name: fields, in: query, schema: { type: string }, description: "Comma-separated Graph field override (supports nested {} projections)." }
47993
+ - { name: fields, in: query, schema: { type: string, example: 'id,name,status,object_story_spec{page_id,link_data{link,message}}' }, description: 'Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.' }
47975
47994
  - { name: limit, in: query, schema: { type: integer, minimum: 1, maximum: 100, default: 25 }, description: Rows per page }
47976
47995
  - { name: after, in: query, schema: { type: string }, description: "Cursor from paging.after of the previous page." }
47977
47996
  responses:
@@ -48101,7 +48120,7 @@ paths:
48101
48120
  parameters:
48102
48121
  - { name: creativeId, in: path, required: true, schema: { type: string }, description: Platform creative id }
48103
48122
  - { name: accountId, in: query, required: true, schema: { type: string }, description: "Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token." }
48104
- - { name: fields, in: query, schema: { type: string }, description: "Comma-separated Graph field override (supports nested {} projections)." }
48123
+ - { name: fields, in: query, schema: { type: string, example: 'id,name,status,object_story_spec{page_id,link_data{link,message}}' }, description: 'Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.' }
48105
48124
  responses:
48106
48125
  '409': { $ref: '#/components/responses/AccountConnectionRequired' }
48107
48126
  '404': { $ref: '#/components/responses/AccountUnavailable' }
@@ -52562,7 +52581,7 @@ paths:
52562
52581
  parameters:
52563
52582
  - { name: accountId, in: query, required: true, schema: { type: string }, description: "Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token." }
52564
52583
  - { name: adAccountId, in: query, required: true, schema: { type: string }, description: "Meta ad account id (act_<n>)." }
52565
- - { name: fields, in: query, schema: { type: string }, description: "Comma-separated Graph field override (supports nested {} projections)." }
52584
+ - { name: fields, in: query, schema: { type: string, example: 'hash,url,name,width,height,status' }, description: 'Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.' }
52566
52585
  - { name: limit, in: query, schema: { type: integer, minimum: 1, maximum: 100, default: 25 }, description: Rows per page }
52567
52586
  - { name: after, in: query, schema: { type: string }, description: "Cursor from paging.after of the previous page." }
52568
52587
  responses:
@@ -52670,7 +52689,7 @@ paths:
52670
52689
  parameters:
52671
52690
  - { name: accountId, in: query, required: true, schema: { type: string }, description: "Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token." }
52672
52691
  - { name: adAccountId, in: query, required: true, schema: { type: string }, description: "Meta ad account id (act_<n>)." }
52673
- - { name: fields, in: query, schema: { type: string }, description: "Comma-separated Graph field override (supports nested {} projections)." }
52692
+ - { name: fields, in: query, schema: { type: string, example: 'id,title,status,thumbnails,length' }, description: 'Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.' }
52674
52693
  - { name: limit, in: query, schema: { type: integer, minimum: 1, maximum: 100, default: 25 }, description: Rows per page }
52675
52694
  - { name: after, in: query, schema: { type: string }, description: "Cursor from paging.after of the previous page." }
52676
52695
  responses:
@@ -52932,7 +52951,7 @@ paths:
52932
52951
  - { name: since, in: query, schema: { type: string, format: date }, description: "Earliest delivery date (YYYY-MM-DD)." }
52933
52952
  - { name: until, in: query, schema: { type: string, format: date }, description: "Latest delivery date (YYYY-MM-DD)." }
52934
52953
  - { name: searchType, in: query, schema: { type: string, enum: [KEYWORD_UNORDERED, KEYWORD_EXACT_PHRASE], default: KEYWORD_UNORDERED }, description: "Meta only. Whether q matches words in any order or as an exact phrase (comma-separate phrases to match all of them)." }
52935
- - { name: fields, in: query, schema: { type: string }, description: "Meta only. Raw Graph projection override, e.g. add spend,impressions,demographic_distribution for political ads." }
52954
+ - { name: fields, in: query, schema: { type: string, example: 'id,page_name,ad_delivery_start_time,ad_creative_bodies' }, description: 'Meta only. Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.' }
52936
52955
  - { name: limit, in: query, schema: { type: integer, minimum: 1, maximum: 100, default: 25 }, description: "Rows per page. LinkedIn accepts at most 25." }
52937
52956
  - { name: after, in: query, schema: { type: string }, description: "paging.after of the previous page." }
52938
52957
  responses:
@@ -392,7 +392,7 @@ describe 'AdAccountsApi' do
392
392
  # @param account_id Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
393
393
  # @param ad_account_id Meta ad account id (act_&lt;n&gt;).
394
394
  # @param [Hash] opts the optional parameters
395
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
395
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
396
396
  # @option opts [Integer] :limit Rows per page
397
397
  # @option opts [String] :after Cursor from paging.after of the previous page.
398
398
  # @return [ListAdStudies200Response]
@@ -244,7 +244,7 @@ describe 'AdCampaignsApi' do
244
244
  # @param ad_set_id Meta ad set id (platformAdSetId).
245
245
  # @param account_id Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
246
246
  # @param [Hash] opts the optional parameters
247
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
247
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
248
248
  # @return [GetAdSetDetails200Response]
249
249
  describe 'get_ad_set_details test' do
250
250
  it 'should work' do
@@ -89,7 +89,7 @@ describe 'AdCreativesApi' do
89
89
  # @param creative_id Platform creative id
90
90
  # @param account_id Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
91
91
  # @param [Hash] opts the optional parameters
92
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
92
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
93
93
  # @return [GetAdCreative200Response]
94
94
  describe 'get_ad_creative test' do
95
95
  it 'should work' do
@@ -154,7 +154,7 @@ describe 'AdCreativesApi' do
154
154
  # @param account_id Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
155
155
  # @param ad_account_id Meta ad account id (act_&lt;n&gt;).
156
156
  # @param [Hash] opts the optional parameters
157
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
157
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
158
158
  # @option opts [Integer] :limit Rows per page
159
159
  # @option opts [String] :after Cursor from paging.after of the previous page.
160
160
  # @return [ListAdCreatives200Response]
@@ -170,7 +170,7 @@ describe 'AdCreativesApi' do
170
170
  # @param account_id Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
171
171
  # @param ad_account_id Meta ad account id (act_&lt;n&gt;).
172
172
  # @param [Hash] opts the optional parameters
173
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
173
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
174
174
  # @option opts [Integer] :limit Rows per page
175
175
  # @option opts [String] :after Cursor from paging.after of the previous page.
176
176
  # @return [ListAdImages200Response]
@@ -186,7 +186,7 @@ describe 'AdCreativesApi' do
186
186
  # @param account_id Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
187
187
  # @param ad_account_id Meta ad account id (act_&lt;n&gt;).
188
188
  # @param [Hash] opts the optional parameters
189
- # @option opts [String] :fields Comma-separated Graph field override (supports nested {} projections).
189
+ # @option opts [String] :fields Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
190
190
  # @option opts [Integer] :limit Rows per page
191
191
  # @option opts [String] :after Cursor from paging.after of the previous page.
192
192
  # @return [ListAdVideos200Response]
@@ -50,7 +50,7 @@ describe 'AdLibraryApi' do
50
50
  # @option opts [Date] :since Earliest delivery date (YYYY-MM-DD).
51
51
  # @option opts [Date] :_until Latest delivery date (YYYY-MM-DD).
52
52
  # @option opts [String] :search_type Meta only. Whether q matches words in any order or as an exact phrase (comma-separate phrases to match all of them).
53
- # @option opts [String] :fields Meta only. Raw Graph projection override, e.g. add spend,impressions,demographic_distribution for political ads.
53
+ # @option opts [String] :fields Meta only. Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a .limit() modifier the expansion runs at the Meta default page size and the tail is dropped silently.
54
54
  # @option opts [Integer] :limit Rows per page. LinkedIn accepts at most 25.
55
55
  # @option opts [String] :after paging.after of the previous page.
56
56
  # @return [SearchAdLibrary200Response]
@@ -0,0 +1,52 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner do
21
+ #let(:instance) { Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner.new }
22
+
23
+ describe 'test an instance of OnWhatsAppNumberActionRequiredRequestRequirementsInner' do
24
+ it 'should create an instance of OnWhatsAppNumberActionRequiredRequestRequirementsInner' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "requirement_id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "label"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "status"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["approved", "pending", "declined"])
46
+ # validator.allowable_values.each do |value|
47
+ # expect { instance.status = value }.not_to raise_error
48
+ # end
49
+ end
50
+ end
51
+
52
+ end
@@ -55,6 +55,18 @@ describe Zernio::OnWhatsAppNumberActionRequiredRequest do
55
55
  end
56
56
  end
57
57
 
58
+ describe 'test attribute "requirements"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
61
+ end
62
+ end
63
+
64
+ describe 'test attribute "reviewed_at"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
67
+ end
68
+ end
69
+
58
70
  describe 'test attribute "number"' do
59
71
  it 'should work' do
60
72
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: late-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.923
4
+ version: 0.0.925
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -1361,6 +1361,7 @@ files:
1361
1361
  - docs/OnWhatsAppAutomaticEventRequest.md
1362
1362
  - docs/OnWhatsAppAutomaticEventRequestCustomData.md
1363
1363
  - docs/OnWhatsAppNumberActionRequiredRequest.md
1364
+ - docs/OnWhatsAppNumberActionRequiredRequestRequirementsInner.md
1364
1365
  - docs/OnWhatsAppNumberActivatedRequest.md
1365
1366
  - docs/OnWhatsAppNumberActivatedRequestNumber.md
1366
1367
  - docs/OnWhatsAppNumberDeclinedRequest.md
@@ -3488,6 +3489,7 @@ files:
3488
3489
  - lib/zernio-sdk/models/on_whats_app_automatic_event_request.rb
3489
3490
  - lib/zernio-sdk/models/on_whats_app_automatic_event_request_custom_data.rb
3490
3491
  - lib/zernio-sdk/models/on_whats_app_number_action_required_request.rb
3492
+ - lib/zernio-sdk/models/on_whats_app_number_action_required_request_requirements_inner.rb
3491
3493
  - lib/zernio-sdk/models/on_whats_app_number_activated_request.rb
3492
3494
  - lib/zernio-sdk/models/on_whats_app_number_activated_request_number.rb
3493
3495
  - lib/zernio-sdk/models/on_whats_app_number_declined_request.rb
@@ -5581,6 +5583,7 @@ files:
5581
5583
  - spec/models/on_verification_failed_request_verification_spec.rb
5582
5584
  - spec/models/on_whats_app_automatic_event_request_custom_data_spec.rb
5583
5585
  - spec/models/on_whats_app_automatic_event_request_spec.rb
5586
+ - spec/models/on_whats_app_number_action_required_request_requirements_inner_spec.rb
5584
5587
  - spec/models/on_whats_app_number_action_required_request_spec.rb
5585
5588
  - spec/models/on_whats_app_number_activated_request_number_spec.rb
5586
5589
  - spec/models/on_whats_app_number_activated_request_spec.rb
@@ -6355,7 +6358,7 @@ files:
6355
6358
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
6356
6359
  - spec/models/you_tube_video_retention_response_spec.rb
6357
6360
  - spec/spec_helper.rb
6358
- - zernio-sdk-0.0.923.gem
6361
+ - zernio-sdk-0.0.925.gem
6359
6362
  - zernio-sdk.gemspec
6360
6363
  homepage: https://openapi-generator.tech
6361
6364
  licenses:
@@ -8409,6 +8412,7 @@ test_files:
8409
8412
  - spec/models/get_google_business_reviews200_response_spec.rb
8410
8413
  - spec/models/list_whats_app_flow_versions200_response_spec.rb
8411
8414
  - spec/models/create_inbox_conversation_request_template_button_params_inner_spec.rb
8415
+ - spec/models/on_whats_app_number_action_required_request_requirements_inner_spec.rb
8412
8416
  - spec/models/create_google_business_media_request_spec.rb
8413
8417
  - spec/models/validate_phone_number_kyc_address400_response_details_spec.rb
8414
8418
  - spec/models/replace_ad_audience_companies_request_companies_inner_spec.rb
Binary file