zernio-sdk 0.0.743 → 0.0.744
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 +4 -4
- data/docs/UpdateWhatsAppTemplate200ResponseTemplate.md +2 -2
- data/docs/WhatsAppApi.md +1 -1
- data/lib/zernio-sdk/api/whats_app_api.rb +2 -2
- data/lib/zernio-sdk/models/update_whats_app_template200_response_template.rb +1 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +9 -1
- data/spec/api/whats_app_api_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ddb21a6e5fea75b66dbf1826e7827fc60615bed899cc9e969ad29e6cb1fff626
|
|
4
|
+
data.tar.gz: f896eb87c19e97117f159f9337e5b2c4ee4ba79539fba2baf025f2c629354b2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a71aa3e78d47b0051b5e86e9e7d411fd376093beb1aa937010d9f6e0a262e3ed48d501ce697bac4fae5197156a2a5a18d43e49dbb5f781a401c026435370c7b
|
|
7
|
+
data.tar.gz: 90c8d2833dab6faf82a051d01547e2ed226b9095cab447334b809279024d51f6939b4eca27731d119cee47f1c7188d3bfbb17f8bd725b5187d1334bf8173544b
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **id** | **String** | | [optional] |
|
|
8
8
|
| **name** | **String** | | [optional] |
|
|
9
|
-
| **status** | **String** |
|
|
9
|
+
| **status** | **String** | Approval state read back from Meta after the update, normally PENDING. If the state cannot be read back, the last known status is returned instead. | [optional] |
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ require 'zernio-sdk'
|
|
|
16
16
|
instance = Zernio::UpdateWhatsAppTemplate200ResponseTemplate.new(
|
|
17
17
|
id: null,
|
|
18
18
|
name: null,
|
|
19
|
-
status:
|
|
19
|
+
status: PENDING
|
|
20
20
|
)
|
|
21
21
|
```
|
|
22
22
|
|
data/docs/WhatsAppApi.md
CHANGED
|
@@ -2454,7 +2454,7 @@ end
|
|
|
2454
2454
|
|
|
2455
2455
|
Update template
|
|
2456
2456
|
|
|
2457
|
-
Update a message template's components. Only certain fields can be updated depending on the template's current approval state. Approved templates can only have components updated.
|
|
2457
|
+
Update a message template's components. Only certain fields can be updated depending on the template's current approval state. Approved templates can only have components updated. A successful update sends the template back to Meta for review, so the `status` returned here is normally `PENDING`. The final outcome arrives later on the `whatsapp.template.status_updated` webhook. A template already in `PENDING` cannot be edited again until Meta finishes reviewing it.
|
|
2458
2458
|
|
|
2459
2459
|
### Examples
|
|
2460
2460
|
|
|
@@ -2422,7 +2422,7 @@ module Zernio
|
|
|
2422
2422
|
end
|
|
2423
2423
|
|
|
2424
2424
|
# Update template
|
|
2425
|
-
# Update a message template's components. Only certain fields can be updated depending on the template's current approval state. Approved templates can only have components updated.
|
|
2425
|
+
# Update a message template's components. Only certain fields can be updated depending on the template's current approval state. Approved templates can only have components updated. A successful update sends the template back to Meta for review, so the `status` returned here is normally `PENDING`. The final outcome arrives later on the `whatsapp.template.status_updated` webhook. A template already in `PENDING` cannot be edited again until Meta finishes reviewing it.
|
|
2426
2426
|
# @param template_name [String] Template name
|
|
2427
2427
|
# @param update_whats_app_template_request [UpdateWhatsAppTemplateRequest]
|
|
2428
2428
|
# @param [Hash] opts the optional parameters
|
|
@@ -2433,7 +2433,7 @@ module Zernio
|
|
|
2433
2433
|
end
|
|
2434
2434
|
|
|
2435
2435
|
# Update template
|
|
2436
|
-
# Update a message template's components. Only certain fields can be updated depending on the template's current approval state. Approved templates can only have components updated.
|
|
2436
|
+
# Update a message template's components. Only certain fields can be updated depending on the template's current approval state. Approved templates can only have components updated. A successful update sends the template back to Meta for review, so the `status` returned here is normally `PENDING`. The final outcome arrives later on the `whatsapp.template.status_updated` webhook. A template already in `PENDING` cannot be edited again until Meta finishes reviewing it.
|
|
2437
2437
|
# @param template_name [String] Template name
|
|
2438
2438
|
# @param update_whats_app_template_request [UpdateWhatsAppTemplateRequest]
|
|
2439
2439
|
# @param [Hash] opts the optional parameters
|
|
@@ -19,6 +19,7 @@ module Zernio
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :name
|
|
21
21
|
|
|
22
|
+
# Approval state read back from Meta after the update, normally PENDING. If the state cannot be read back, the last known status is returned instead.
|
|
22
23
|
attr_accessor :status
|
|
23
24
|
|
|
24
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -29239,6 +29239,11 @@ paths:
|
|
|
29239
29239
|
description: |
|
|
29240
29240
|
Update a message template's components. Only certain fields can be updated depending on
|
|
29241
29241
|
the template's current approval state. Approved templates can only have components updated.
|
|
29242
|
+
|
|
29243
|
+
A successful update sends the template back to Meta for review, so the `status` returned
|
|
29244
|
+
here is normally `PENDING`. The final outcome arrives later on the
|
|
29245
|
+
`whatsapp.template.status_updated` webhook. A template already in `PENDING` cannot be
|
|
29246
|
+
edited again until Meta finishes reviewing it.
|
|
29242
29247
|
security:
|
|
29243
29248
|
- bearerAuth: []
|
|
29244
29249
|
parameters:
|
|
@@ -29292,7 +29297,10 @@ paths:
|
|
|
29292
29297
|
properties:
|
|
29293
29298
|
id: { type: string }
|
|
29294
29299
|
name: { type: string }
|
|
29295
|
-
status:
|
|
29300
|
+
status:
|
|
29301
|
+
type: string
|
|
29302
|
+
description: 'Approval state read back from Meta after the update, normally PENDING. If the state cannot be read back, the last known status is returned instead.'
|
|
29303
|
+
example: PENDING
|
|
29296
29304
|
'400': { description: Validation error (missing fields) }
|
|
29297
29305
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
29298
29306
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
@@ -467,7 +467,7 @@ describe 'WhatsAppApi' do
|
|
|
467
467
|
|
|
468
468
|
# unit tests for update_whats_app_template
|
|
469
469
|
# Update template
|
|
470
|
-
# Update a message template's components. Only certain fields can be updated depending on the template's current approval state. Approved templates can only have components updated.
|
|
470
|
+
# Update a message template's components. Only certain fields can be updated depending on the template's current approval state. Approved templates can only have components updated. A successful update sends the template back to Meta for review, so the `status` returned here is normally `PENDING`. The final outcome arrives later on the `whatsapp.template.status_updated` webhook. A template already in `PENDING` cannot be edited again until Meta finishes reviewing it.
|
|
471
471
|
# @param template_name Template name
|
|
472
472
|
# @param update_whats_app_template_request
|
|
473
473
|
# @param [Hash] opts the optional parameters
|