late-sdk 0.0.790 → 0.0.792
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/README.md +10 -0
- data/docs/DeleteWhatsAppTemplate200Response.md +24 -0
- data/docs/DeleteWhatsAppTemplateById200Response.md +24 -0
- data/docs/GetWhatsAppTemplate200ResponseTemplate.md +7 -3
- data/docs/GetWhatsAppTemplate409Response.md +26 -0
- data/docs/GetWhatsAppTemplate409ResponseDetails.md +18 -0
- data/docs/LinkedInMentionsApi.md +1 -1
- data/docs/UpdateWhatsAppTemplate200ResponseTemplate.md +3 -1
- data/docs/UpdateWhatsAppTemplateById200Response.md +20 -0
- data/docs/UpdateWhatsAppTemplateById200ResponseTemplate.md +24 -0
- data/docs/UpdateWhatsAppTemplateByIdRequest.md +20 -0
- data/docs/UpdateWhatsAppTemplateRequest.md +2 -0
- data/docs/WhatsAppApi.md +256 -24
- data/lib/zernio-sdk/api/linked_in_mentions_api.rb +2 -2
- data/lib/zernio-sdk/api/whats_app_api.rb +250 -17
- data/lib/zernio-sdk/models/delete_whats_app_template200_response.rb +210 -0
- data/lib/zernio-sdk/models/delete_whats_app_template_by_id200_response.rb +208 -0
- data/lib/zernio-sdk/models/get_whats_app_template200_response_template.rb +26 -4
- data/lib/zernio-sdk/models/get_whats_app_template409_response.rb +241 -0
- data/lib/zernio-sdk/models/get_whats_app_template409_response_details.rb +149 -0
- data/lib/zernio-sdk/models/update_whats_app_template200_response_template.rb +12 -1
- data/lib/zernio-sdk/models/update_whats_app_template_by_id200_response.rb +156 -0
- data/lib/zernio-sdk/models/update_whats_app_template_by_id200_response_template.rb +175 -0
- data/lib/zernio-sdk/models/update_whats_app_template_by_id_request.rb +203 -0
- data/lib/zernio-sdk/models/update_whats_app_template_request.rb +11 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +7 -0
- data/openapi.yaml +288 -36
- data/spec/api/linked_in_mentions_api_spec.rb +1 -1
- data/spec/api/whats_app_api_spec.rb +52 -8
- data/spec/models/delete_whats_app_template200_response_spec.rb +58 -0
- data/spec/models/delete_whats_app_template_by_id200_response_spec.rb +58 -0
- data/spec/models/get_whats_app_template200_response_template_spec.rb +12 -0
- data/spec/models/get_whats_app_template409_response_details_spec.rb +36 -0
- data/spec/models/get_whats_app_template409_response_spec.rb +72 -0
- data/spec/models/update_whats_app_template200_response_template_spec.rb +6 -0
- data/spec/models/update_whats_app_template_by_id200_response_spec.rb +42 -0
- data/spec/models/update_whats_app_template_by_id200_response_template_spec.rb +54 -0
- data/spec/models/update_whats_app_template_by_id_request_spec.rb +42 -0
- data/spec/models/update_whats_app_template_request_spec.rb +6 -0
- data/zernio-sdk-0.0.792.gem +0 -0
- metadata +31 -3
- data/zernio-sdk-0.0.790.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d09a1a1f52eed7e861dc20bafbf06476a944d5dcbe0d2b5260b6147816aae06a
|
|
4
|
+
data.tar.gz: ecfc1351f472e0b838125bb998fe1382e18cc8c35a37f46a27ceac31a1ca54a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe0b27ff9a2c3327df47face6ff0123ff71f4c87fd86df65517d5fd36aed56381b5b9099103aefec5acd5b0a03a278f92db1e1b3eb43b0547349cb203a9f843c
|
|
7
|
+
data.tar.gz: e45a73dff47a1c494247f360d6001cc429c3681a8732249a5274f2a043709d797f676498772fa2dddbeb312dcd33412d57b4878d2a436f8a036ca9f87cd87bfc
|
data/README.md
CHANGED
|
@@ -579,6 +579,7 @@ Class | Method | HTTP request | Description
|
|
|
579
579
|
*Zernio::WhatsAppApi* | [**create_whats_app_template**](docs/WhatsAppApi.md#create_whats_app_template) | **POST** /v1/whatsapp/templates | Create template
|
|
580
580
|
*Zernio::WhatsAppApi* | [**delete_whats_app_group_chat**](docs/WhatsAppApi.md#delete_whats_app_group_chat) | **DELETE** /v1/whatsapp/wa-groups/{groupId} | Delete group
|
|
581
581
|
*Zernio::WhatsAppApi* | [**delete_whats_app_template**](docs/WhatsAppApi.md#delete_whats_app_template) | **DELETE** /v1/whatsapp/templates/{templateName} | Delete template
|
|
582
|
+
*Zernio::WhatsAppApi* | [**delete_whats_app_template_by_id**](docs/WhatsAppApi.md#delete_whats_app_template_by_id) | **DELETE** /v1/whatsapp/templates/id/{templateId} | Delete template by id
|
|
582
583
|
*Zernio::WhatsAppApi* | [**delete_whatsapp_business_username**](docs/WhatsAppApi.md#delete_whatsapp_business_username) | **DELETE** /v1/whatsapp/business-profile/username | Delete business username
|
|
583
584
|
*Zernio::WhatsAppApi* | [**get_whats_app_block_status**](docs/WhatsAppApi.md#get_whats_app_block_status) | **GET** /v1/whatsapp/block-users/status | Check if a user is blocked
|
|
584
585
|
*Zernio::WhatsAppApi* | [**get_whats_app_blocked_users**](docs/WhatsAppApi.md#get_whats_app_blocked_users) | **GET** /v1/whatsapp/block-users | List blocked users
|
|
@@ -588,6 +589,7 @@ Class | Method | HTTP request | Description
|
|
|
588
589
|
*Zernio::WhatsAppApi* | [**get_whats_app_group_chat**](docs/WhatsAppApi.md#get_whats_app_group_chat) | **GET** /v1/whatsapp/wa-groups/{groupId} | Get group info
|
|
589
590
|
*Zernio::WhatsAppApi* | [**get_whats_app_media**](docs/WhatsAppApi.md#get_whats_app_media) | **GET** /v1/whatsapp/media/{mediaId} | Download WhatsApp media
|
|
590
591
|
*Zernio::WhatsAppApi* | [**get_whats_app_template**](docs/WhatsAppApi.md#get_whats_app_template) | **GET** /v1/whatsapp/templates/{templateName} | Get template
|
|
592
|
+
*Zernio::WhatsAppApi* | [**get_whats_app_template_by_id**](docs/WhatsAppApi.md#get_whats_app_template_by_id) | **GET** /v1/whatsapp/templates/id/{templateId} | Get template by id
|
|
591
593
|
*Zernio::WhatsAppApi* | [**get_whats_app_templates**](docs/WhatsAppApi.md#get_whats_app_templates) | **GET** /v1/whatsapp/templates | List templates
|
|
592
594
|
*Zernio::WhatsAppApi* | [**get_whatsapp_business_username**](docs/WhatsAppApi.md#get_whatsapp_business_username) | **GET** /v1/whatsapp/business-profile/username | Get business username
|
|
593
595
|
*Zernio::WhatsAppApi* | [**get_whatsapp_business_username_suggestions**](docs/WhatsAppApi.md#get_whatsapp_business_username_suggestions) | **GET** /v1/whatsapp/business-profile/username/suggestions | Get username suggestions
|
|
@@ -605,6 +607,7 @@ Class | Method | HTTP request | Description
|
|
|
605
607
|
*Zernio::WhatsAppApi* | [**update_whats_app_display_name**](docs/WhatsAppApi.md#update_whats_app_display_name) | **POST** /v1/whatsapp/business-profile/display-name | Request display name change
|
|
606
608
|
*Zernio::WhatsAppApi* | [**update_whats_app_group_chat**](docs/WhatsAppApi.md#update_whats_app_group_chat) | **POST** /v1/whatsapp/wa-groups/{groupId} | Update group settings
|
|
607
609
|
*Zernio::WhatsAppApi* | [**update_whats_app_template**](docs/WhatsAppApi.md#update_whats_app_template) | **PATCH** /v1/whatsapp/templates/{templateName} | Update template
|
|
610
|
+
*Zernio::WhatsAppApi* | [**update_whats_app_template_by_id**](docs/WhatsAppApi.md#update_whats_app_template_by_id) | **PATCH** /v1/whatsapp/templates/id/{templateId} | Update template by id
|
|
608
611
|
*Zernio::WhatsAppApi* | [**upload_whats_app_profile_photo**](docs/WhatsAppApi.md#upload_whats_app_profile_photo) | **POST** /v1/whatsapp/business-profile/photo | Upload profile picture
|
|
609
612
|
*Zernio::WhatsAppCallingApi* | [**disable_whats_app_calling**](docs/WhatsAppCallingApi.md#disable_whats_app_calling) | **DELETE** /v1/phone-numbers/{id}/whatsapp/calling | Disable calling on a number
|
|
610
613
|
*Zernio::WhatsAppCallingApi* | [**disable_whats_app_calling_legacy**](docs/WhatsAppCallingApi.md#disable_whats_app_calling_legacy) | **DELETE** /v1/whatsapp/phone-numbers/{id}/calling | Disable calling on a number
|
|
@@ -1051,6 +1054,8 @@ Class | Method | HTTP request | Description
|
|
|
1051
1054
|
- [Zernio::DeleteInboxReviewReplyRequest](docs/DeleteInboxReviewReplyRequest.md)
|
|
1052
1055
|
- [Zernio::DeleteSmsSenderId200Response](docs/DeleteSmsSenderId200Response.md)
|
|
1053
1056
|
- [Zernio::DeleteValueRuleSet200Response](docs/DeleteValueRuleSet200Response.md)
|
|
1057
|
+
- [Zernio::DeleteWhatsAppTemplate200Response](docs/DeleteWhatsAppTemplate200Response.md)
|
|
1058
|
+
- [Zernio::DeleteWhatsAppTemplateById200Response](docs/DeleteWhatsAppTemplateById200Response.md)
|
|
1054
1059
|
- [Zernio::DeleteWhatsappBusinessUsernameRequest](docs/DeleteWhatsappBusinessUsernameRequest.md)
|
|
1055
1060
|
- [Zernio::DetachNumberFromSipTrunk200Response](docs/DetachNumberFromSipTrunk200Response.md)
|
|
1056
1061
|
- [Zernio::DialVoiceWebCall200Response](docs/DialVoiceWebCall200Response.md)
|
|
@@ -1449,6 +1454,8 @@ Class | Method | HTTP request | Description
|
|
|
1449
1454
|
- [Zernio::GetWhatsAppNumberRemediation200Response](docs/GetWhatsAppNumberRemediation200Response.md)
|
|
1450
1455
|
- [Zernio::GetWhatsAppTemplate200Response](docs/GetWhatsAppTemplate200Response.md)
|
|
1451
1456
|
- [Zernio::GetWhatsAppTemplate200ResponseTemplate](docs/GetWhatsAppTemplate200ResponseTemplate.md)
|
|
1457
|
+
- [Zernio::GetWhatsAppTemplate409Response](docs/GetWhatsAppTemplate409Response.md)
|
|
1458
|
+
- [Zernio::GetWhatsAppTemplate409ResponseDetails](docs/GetWhatsAppTemplate409ResponseDetails.md)
|
|
1452
1459
|
- [Zernio::GetWhatsAppTemplates200Response](docs/GetWhatsAppTemplates200Response.md)
|
|
1453
1460
|
- [Zernio::GetWhatsAppTemplates200ResponseTemplatesInner](docs/GetWhatsAppTemplates200ResponseTemplatesInner.md)
|
|
1454
1461
|
- [Zernio::GetWhatsappBusinessUsername200Response](docs/GetWhatsappBusinessUsername200Response.md)
|
|
@@ -2193,6 +2200,9 @@ Class | Method | HTTP request | Description
|
|
|
2193
2200
|
- [Zernio::UpdateWhatsAppGroupChatRequest](docs/UpdateWhatsAppGroupChatRequest.md)
|
|
2194
2201
|
- [Zernio::UpdateWhatsAppTemplate200Response](docs/UpdateWhatsAppTemplate200Response.md)
|
|
2195
2202
|
- [Zernio::UpdateWhatsAppTemplate200ResponseTemplate](docs/UpdateWhatsAppTemplate200ResponseTemplate.md)
|
|
2203
|
+
- [Zernio::UpdateWhatsAppTemplateById200Response](docs/UpdateWhatsAppTemplateById200Response.md)
|
|
2204
|
+
- [Zernio::UpdateWhatsAppTemplateById200ResponseTemplate](docs/UpdateWhatsAppTemplateById200ResponseTemplate.md)
|
|
2205
|
+
- [Zernio::UpdateWhatsAppTemplateByIdRequest](docs/UpdateWhatsAppTemplateByIdRequest.md)
|
|
2196
2206
|
- [Zernio::UpdateWhatsAppTemplateRequest](docs/UpdateWhatsAppTemplateRequest.md)
|
|
2197
2207
|
- [Zernio::UpdateWorkflow200Response](docs/UpdateWorkflow200Response.md)
|
|
2198
2208
|
- [Zernio::UpdateWorkflow200ResponseWorkflow](docs/UpdateWorkflow200ResponseWorkflow.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Zernio::DeleteWhatsAppTemplate200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **scope** | **String** | Whether the whole family or one variant was deleted. | [optional] |
|
|
9
|
+
| **language** | **String** | The deleted variant; only when scope is language. | [optional] |
|
|
10
|
+
| **message** | **String** | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'zernio-sdk'
|
|
16
|
+
|
|
17
|
+
instance = Zernio::DeleteWhatsAppTemplate200Response.new(
|
|
18
|
+
success: null,
|
|
19
|
+
scope: null,
|
|
20
|
+
language: null,
|
|
21
|
+
message: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Zernio::DeleteWhatsAppTemplateById200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **scope** | **String** | | [optional] |
|
|
9
|
+
| **language** | **String** | | [optional] |
|
|
10
|
+
| **message** | **String** | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'zernio-sdk'
|
|
16
|
+
|
|
17
|
+
instance = Zernio::DeleteWhatsAppTemplateById200Response.new(
|
|
18
|
+
success: null,
|
|
19
|
+
scope: null,
|
|
20
|
+
language: null,
|
|
21
|
+
message: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **id** | **String** |
|
|
7
|
+
| **id** | **String** | Meta template id. Unique per language variant; usable on /v1/whatsapp/templates/id/{templateId}. | [optional] |
|
|
8
8
|
| **name** | **String** | | [optional] |
|
|
9
9
|
| **status** | **String** | | [optional] |
|
|
10
10
|
| **category** | **String** | | [optional] |
|
|
11
|
-
| **language** | **String** |
|
|
11
|
+
| **language** | **String** | The variant actually returned. | [optional] |
|
|
12
12
|
| **components** | **Array<Object>** | | [optional] |
|
|
13
|
+
| **rejected_reason** | **String** | Only when status is REJECTED. | [optional] |
|
|
14
|
+
| **quality_score** | **Object** | Post-approval quality (GREEN/YELLOW/RED), when Meta reports one. | [optional] |
|
|
13
15
|
|
|
14
16
|
## Example
|
|
15
17
|
|
|
@@ -22,7 +24,9 @@ instance = Zernio::GetWhatsAppTemplate200ResponseTemplate.new(
|
|
|
22
24
|
status: null,
|
|
23
25
|
category: null,
|
|
24
26
|
language: null,
|
|
25
|
-
components: null
|
|
27
|
+
components: null,
|
|
28
|
+
rejected_reason: null,
|
|
29
|
+
quality_score: null
|
|
26
30
|
)
|
|
27
31
|
```
|
|
28
32
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Zernio::GetWhatsAppTemplate409Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **error** | **String** | | [optional] |
|
|
8
|
+
| **type** | **String** | | [optional] |
|
|
9
|
+
| **code** | **String** | | [optional] |
|
|
10
|
+
| **param** | **String** | | [optional] |
|
|
11
|
+
| **details** | [**GetWhatsAppTemplate409ResponseDetails**](GetWhatsAppTemplate409ResponseDetails.md) | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'zernio-sdk'
|
|
17
|
+
|
|
18
|
+
instance = Zernio::GetWhatsAppTemplate409Response.new(
|
|
19
|
+
error: null,
|
|
20
|
+
type: null,
|
|
21
|
+
code: null,
|
|
22
|
+
param: null,
|
|
23
|
+
details: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Zernio::GetWhatsAppTemplate409ResponseDetails
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **languages** | **Array<String>** | | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'zernio-sdk'
|
|
13
|
+
|
|
14
|
+
instance = Zernio::GetWhatsAppTemplate409ResponseDetails.new(
|
|
15
|
+
languages: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
data/docs/LinkedInMentionsApi.md
CHANGED
|
@@ -13,7 +13,7 @@ All URIs are relative to *https://zernio.com/api*
|
|
|
13
13
|
|
|
14
14
|
Resolve LinkedIn mention
|
|
15
15
|
|
|
16
|
-
Converts a LinkedIn profile or company URL to a URN for @mentions in posts. How to use LinkedIn @mentions (2-step workflow): 1. Call this endpoint with the LinkedIn profile/company URL to get the mention URN and format. 2. Embed the returned mentionFormat (e.g. @[Vincent Jong](urn:li:person:xxx)) directly in your post's content field. Example: - Resolve: GET /v1/accounts/{id}/linkedin-mentions?url=linkedin.com/in/vincentjong&displayName=Vincent Jong - Returns: mentionFormat: \"@[Vincent Jong](urn:li:person:xxx)\" - Use in post content: \"Great talk with @[Vincent Jong](urn:li:person:xxx) today!\" Important: The mentions array field in POST /v1/posts is stored for reference only and does NOT trigger @mentions on LinkedIn. You must embed the mention format directly in the content text. Requirements: - Person mentions require the LinkedIn account to be admin of at least one organization
|
|
16
|
+
Converts a LinkedIn profile or company URL to a URN for @mentions in posts. How to use LinkedIn @mentions (2-step workflow): 1. Call this endpoint with the LinkedIn profile/company URL to get the mention URN and format. 2. Embed the returned mentionFormat (e.g. @[Vincent Jong](urn:li:person:xxx)) directly in your post's content field. Example: - Resolve: GET /v1/accounts/{id}/linkedin-mentions?url=linkedin.com/in/vincentjong&displayName=Vincent Jong - Returns: mentionFormat: \"@[Vincent Jong](urn:li:person:xxx)\" - Use in post content: \"Great talk with @[Vincent Jong](urn:li:person:xxx) today!\" Important: The mentions array field in POST /v1/posts is stored for reference only and does NOT trigger @mentions on LinkedIn. You must embed the mention format directly in the content text. Requirements: - Person mentions require the LinkedIn account to be admin of at least one organization: both endpoints that resolve a profile URL to a member URN take an organization you administer. Organization mentions (e.g. @Microsoft) have no such requirement. - The two are not scoped alike. peopleTypeahead?q=organizationFollowers only returns that organization's followers; vanityUrl?q=vanityUrlAsOrganization does not, and its resolvable set is opaque. A 404 here does not mean the person is unknown to you or unknown to LinkedIn: a live public profile can 404 with no reason given. - For person mentions to be clickable, the displayName parameter must exactly match the name shown on their LinkedIn profile. - Person mentions DO work when published from personal profiles (the URN just needs to be valid). The limitation is only in the resolution step (URL to URN), not in publishing.
|
|
17
17
|
|
|
18
18
|
### Examples
|
|
19
19
|
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **id** | **String** |
|
|
7
|
+
| **id** | **String** | Meta id of the edited variant. | [optional] |
|
|
8
8
|
| **name** | **String** | | [optional] |
|
|
9
|
+
| **language** | **String** | The variant that was edited. | [optional] |
|
|
9
10
|
| **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
11
|
|
|
11
12
|
## Example
|
|
@@ -16,6 +17,7 @@ require 'zernio-sdk'
|
|
|
16
17
|
instance = Zernio::UpdateWhatsAppTemplate200ResponseTemplate.new(
|
|
17
18
|
id: null,
|
|
18
19
|
name: null,
|
|
20
|
+
language: null,
|
|
19
21
|
status: PENDING
|
|
20
22
|
)
|
|
21
23
|
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zernio::UpdateWhatsAppTemplateById200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **template** | [**UpdateWhatsAppTemplateById200ResponseTemplate**](UpdateWhatsAppTemplateById200ResponseTemplate.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zernio-sdk'
|
|
14
|
+
|
|
15
|
+
instance = Zernio::UpdateWhatsAppTemplateById200Response.new(
|
|
16
|
+
success: null,
|
|
17
|
+
template: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Zernio::UpdateWhatsAppTemplateById200ResponseTemplate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **name** | **String** | | [optional] |
|
|
9
|
+
| **language** | **String** | | [optional] |
|
|
10
|
+
| **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] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'zernio-sdk'
|
|
16
|
+
|
|
17
|
+
instance = Zernio::UpdateWhatsAppTemplateById200ResponseTemplate.new(
|
|
18
|
+
id: null,
|
|
19
|
+
name: null,
|
|
20
|
+
language: null,
|
|
21
|
+
status: PENDING
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zernio::UpdateWhatsAppTemplateByIdRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **account_id** | **String** | WhatsApp social account ID | |
|
|
8
|
+
| **components** | [**Array<WhatsAppTemplateComponent>**](WhatsAppTemplateComponent.md) | Updated template components | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zernio-sdk'
|
|
14
|
+
|
|
15
|
+
instance = Zernio::UpdateWhatsAppTemplateByIdRequest.new(
|
|
16
|
+
account_id: null,
|
|
17
|
+
components: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **account_id** | **String** | WhatsApp social account ID | |
|
|
8
|
+
| **language** | **String** | Language code of the variant to edit (e.g. en_US, es, pt_BR). Required when the family has several languages. Body only: a language query parameter on PATCH is a 400. | [optional] |
|
|
8
9
|
| **components** | [**Array<WhatsAppTemplateComponent>**](WhatsAppTemplateComponent.md) | Updated template components | |
|
|
9
10
|
|
|
10
11
|
## Example
|
|
@@ -14,6 +15,7 @@ require 'zernio-sdk'
|
|
|
14
15
|
|
|
15
16
|
instance = Zernio::UpdateWhatsAppTemplateRequest.new(
|
|
16
17
|
account_id: null,
|
|
18
|
+
language: null,
|
|
17
19
|
components: null
|
|
18
20
|
)
|
|
19
21
|
```
|