Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
186 changes: 186 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3915,8 +3915,96 @@ components:
ro: ro
nl: nl
tr: tr
subtitle:
de: de
hi: hi
fi: fi
ru: ru
pt: pt
bg: bg
lt: lt
hr: hr
lv: lv
fr: fr
hu: hu
bs: bs
zh-Hans: zh-Hans
zh-Hant: zh-Hant
ka: ka
uk: uk
sk: sk
id: id
ca: ca
sr: sr
sv: sv
ko: ko
ms: ms
el: el
en: en
it: it
zh: zh
es: es
et: et
cs: cs
ar: ar
pa: pa
vi: vi
nb: nb
th: th
ja: ja
fa: fa
pl: pl
da: da
he: he
ro: ro
nl: nl
tr: tr
name: name
isEmail: true
headings:
de: de
hi: hi
fi: fi
ru: ru
pt: pt
bg: bg
lt: lt
hr: hr
lv: lv
fr: fr
hu: hu
bs: bs
zh-Hans: zh-Hans
zh-Hant: zh-Hant
ka: ka
uk: uk
sk: sk
id: id
ca: ca
sr: sr
sv: sv
ko: ko
ms: ms
el: el
en: en
it: it
zh: zh
es: es
et: et
cs: cs
ar: ar
pa: pa
vi: vi
nb: nb
th: th
ja: ja
fa: fa
pl: pl
da: da
he: he
ro: ro
nl: nl
tr: tr
dynamic_content: dynamic_content
app_id: app_id
email_subject: email_subject
Expand All @@ -3929,6 +4017,10 @@ components:
type: string
contents:
$ref: '#/components/schemas/LanguageStringMap'
headings:
$ref: '#/components/schemas/LanguageStringMap'
subtitle:
$ref: '#/components/schemas/LanguageStringMap'
isEmail:
description: Set true for an Email template.
type: boolean
Expand Down Expand Up @@ -4000,8 +4092,96 @@ components:
ro: ro
nl: nl
tr: tr
subtitle:
de: de
hi: hi
fi: fi
ru: ru
pt: pt
bg: bg
lt: lt
hr: hr
lv: lv
fr: fr
hu: hu
bs: bs
zh-Hans: zh-Hans
zh-Hant: zh-Hant
ka: ka
uk: uk
sk: sk
id: id
ca: ca
sr: sr
sv: sv
ko: ko
ms: ms
el: el
en: en
it: it
zh: zh
es: es
et: et
cs: cs
ar: ar
pa: pa
vi: vi
nb: nb
th: th
ja: ja
fa: fa
pl: pl
da: da
he: he
ro: ro
nl: nl
tr: tr
name: name
isEmail: true
headings:
de: de
hi: hi
fi: fi
ru: ru
pt: pt
bg: bg
lt: lt
hr: hr
lv: lv
fr: fr
hu: hu
bs: bs
zh-Hans: zh-Hans
zh-Hant: zh-Hant
ka: ka
uk: uk
sk: sk
id: id
ca: ca
sr: sr
sv: sv
ko: ko
ms: ms
el: el
en: en
it: it
zh: zh
es: es
et: et
cs: cs
ar: ar
pa: pa
vi: vi
nb: nb
th: th
ja: ja
fa: fa
pl: pl
da: da
he: he
ro: ro
nl: nl
tr: tr
dynamic_content: dynamic_content
email_subject: email_subject
properties:
Expand All @@ -4010,6 +4190,10 @@ components:
type: string
contents:
$ref: '#/components/schemas/LanguageStringMap'
headings:
$ref: '#/components/schemas/LanguageStringMap'
subtitle:
$ref: '#/components/schemas/LanguageStringMap'
isEmail:
description: Set true for an Email template.
type: boolean
Expand Down Expand Up @@ -4709,6 +4893,7 @@ components:
description: "Channel: Push Notifications\nPlatform: Android\nThe Android\
\ Oreo Notification Category to send the notification under. See the Category\
\ documentation on creating one and getting it's id.\n"
nullable: true
type: string
writeOnly: true
huawei_channel_id:
Expand All @@ -4722,6 +4907,7 @@ components:
description: "Channel: Push Notifications\nPlatform: Android\nUse this if\
\ you have client side Android Oreo Channels you have already defined\
\ in your app with code.\n"
nullable: true
type: string
writeOnly: true
huawei_existing_channel_id:
Expand Down
2 changes: 2 additions & 0 deletions docs/CreateTemplateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
|**appId** | **String** | Your OneSignal App ID in UUID v4 format. | |
|**name** | **String** | Name of the template. | |
|**contents** | [**LanguageStringMap**](LanguageStringMap.md) | | |
|**headings** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional] |
|**subtitle** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional] |
|**isEmail** | **Boolean** | Set true for an Email template. | [optional] |
|**emailSubject** | **String** | Subject of the email. | [optional] |
|**emailBody** | **String** | Body of the email (HTML supported). | [optional] |
Expand Down
2 changes: 2 additions & 0 deletions docs/UpdateTemplateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
|------------ | ------------- | ------------- | -------------|
|**name** | **String** | Updated name of the template. | [optional] |
|**contents** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional] |
|**headings** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional] |
|**subtitle** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional] |
|**isEmail** | **Boolean** | Set true for an Email template. | [optional] |
|**emailSubject** | **String** | Subject of the email. | [optional] |
|**emailBody** | **String** | Body of the email (HTML supported). | [optional] |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ public class CreateTemplateRequest {
@SerializedName(SERIALIZED_NAME_CONTENTS)
private LanguageStringMap contents;

public static final String SERIALIZED_NAME_HEADINGS = "headings";
@SerializedName(SERIALIZED_NAME_HEADINGS)
private LanguageStringMap headings;

public static final String SERIALIZED_NAME_SUBTITLE = "subtitle";
@SerializedName(SERIALIZED_NAME_SUBTITLE)
private LanguageStringMap subtitle;

public static final String SERIALIZED_NAME_IS_EMAIL = "isEmail";
@SerializedName(SERIALIZED_NAME_IS_EMAIL)
private Boolean isEmail;
Expand Down Expand Up @@ -158,6 +166,52 @@ public void setContents(LanguageStringMap contents) {
}


public CreateTemplateRequest headings(LanguageStringMap headings) {

this.headings = headings;
return this;
}

/**
* Get headings
* @return headings
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")

public LanguageStringMap getHeadings() {
return headings;
}


public void setHeadings(LanguageStringMap headings) {
this.headings = headings;
}


public CreateTemplateRequest subtitle(LanguageStringMap subtitle) {

this.subtitle = subtitle;
return this;
}

/**
* Get subtitle
* @return subtitle
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")

public LanguageStringMap getSubtitle() {
return subtitle;
}


public void setSubtitle(LanguageStringMap subtitle) {
this.subtitle = subtitle;
}


public CreateTemplateRequest isEmail(Boolean isEmail) {

this.isEmail = isEmail;
Expand Down Expand Up @@ -286,6 +340,8 @@ public boolean equals(Object o) {
return Objects.equals(this.appId, createTemplateRequest.appId) &&
Objects.equals(this.name, createTemplateRequest.name) &&
Objects.equals(this.contents, createTemplateRequest.contents) &&
Objects.equals(this.headings, createTemplateRequest.headings) &&
Objects.equals(this.subtitle, createTemplateRequest.subtitle) &&
Objects.equals(this.isEmail, createTemplateRequest.isEmail) &&
Objects.equals(this.emailSubject, createTemplateRequest.emailSubject) &&
Objects.equals(this.emailBody, createTemplateRequest.emailBody) &&
Expand All @@ -299,7 +355,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(appId, name, contents, isEmail, emailSubject, emailBody, isSMS, dynamicContent);
return Objects.hash(appId, name, contents, headings, subtitle, isEmail, emailSubject, emailBody, isSMS, dynamicContent);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -316,6 +372,8 @@ public String toString() {
sb.append(" appId: ").append(toIndentedString(appId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" contents: ").append(toIndentedString(contents)).append("\n");
sb.append(" headings: ").append(toIndentedString(headings)).append("\n");
sb.append(" subtitle: ").append(toIndentedString(subtitle)).append("\n");
sb.append(" isEmail: ").append(toIndentedString(isEmail)).append("\n");
sb.append(" emailSubject: ").append(toIndentedString(emailSubject)).append("\n");
sb.append(" emailBody: ").append(toIndentedString(emailBody)).append("\n");
Expand Down Expand Up @@ -346,6 +404,8 @@ private String toIndentedString(Object o) {
openapiFields.add("app_id");
openapiFields.add("name");
openapiFields.add("contents");
openapiFields.add("headings");
openapiFields.add("subtitle");
openapiFields.add("isEmail");
openapiFields.add("email_subject");
openapiFields.add("email_body");
Expand Down
Loading
Loading