Skip to content

Commit 60b12c8

Browse files
onesignal-deployOneSignal
andauthored
feat: add email_bcc and bcc_sent to Notification and Template models (#85)
Co-authored-by: OneSignal <noreply@onesignal.com>
1 parent a4c52e5 commit 60b12c8

97 files changed

Lines changed: 534 additions & 146 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
with:
1515
# SDK Server Project
1616
project-url: https://github.com/orgs/OneSignal/projects/11
17-
github-token: ${{ secrets.GH_PROJECTS_TOKEN }}
17+
github-token: ${{ secrets.GH_PUSH_TOKEN }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# onesignal-java-client
22

33
OneSignal
4-
- API version: 5.4.0
4+
- API version: 5.5.0
55

66
A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
77

@@ -19,14 +19,14 @@ Building the API client library requires:
1919
<dependency>
2020
<groupId>com.onesignal</groupId>
2121
<artifactId>onesignal-java-client</artifactId>
22-
<version>5.4.0</version>
22+
<version>5.5.0</version>
2323
</dependency>
2424
```
2525

2626
### Gradle
2727

2828
```groovy
29-
implementation "com.onesignal:onesignal-java-client:5.4.0"
29+
implementation "com.onesignal:onesignal-java-client:5.5.0"
3030
```
3131

3232
## Configuration

api/openapi.yaml

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ info:
88
customer engagement strategies. Learn more at onesignal.com
99
termsOfService: https://onesignal.com/tos
1010
title: OneSignal
11-
version: 5.4.0
11+
version: 5.5.0
1212
servers:
1313
- url: https://api.onesignal.com
1414
paths:
@@ -3992,6 +3992,12 @@ components:
39923992
tr: tr
39933993
name: name
39943994
isEmail: true
3995+
email_bcc:
3996+
- email_bcc
3997+
- email_bcc
3998+
- email_bcc
3999+
- email_bcc
4000+
- email_bcc
39954001
headings:
39964002
de: de
39974003
hi: hi
@@ -4063,6 +4069,14 @@ components:
40634069
description: Body of the email (HTML supported).
40644070
nullable: true
40654071
type: string
4072+
email_bcc:
4073+
description: BCC recipients for the email template. Maximum 5 addresses.
4074+
Only supported when the email service provider is OneSignal Email.
4075+
items:
4076+
type: string
4077+
maxItems: 5
4078+
nullable: true
4079+
type: array
40664080
isSMS:
40674081
description: Set true for an SMS template.
40684082
type: boolean
@@ -4169,6 +4183,12 @@ components:
41694183
tr: tr
41704184
name: name
41714185
isEmail: true
4186+
email_bcc:
4187+
- email_bcc
4188+
- email_bcc
4189+
- email_bcc
4190+
- email_bcc
4191+
- email_bcc
41724192
headings:
41734193
de: de
41744194
hi: hi
@@ -4236,6 +4256,14 @@ components:
42364256
description: Body of the email (HTML supported).
42374257
nullable: true
42384258
type: string
4259+
email_bcc:
4260+
description: BCC recipients for the email template. Maximum 5 addresses.
4261+
Only supported when the email service provider is OneSignal Email.
4262+
items:
4263+
type: string
4264+
maxItems: 5
4265+
nullable: true
4266+
type: array
42394267
isSMS:
42404268
description: Set true for an SMS template.
42414269
type: boolean
@@ -5368,6 +5396,15 @@ components:
53685396
\ of unsubscribed emails to be cleared."
53695397
type: boolean
53705398
writeOnly: true
5399+
email_bcc:
5400+
description: "Channel: Email\nBCC recipients for the email. Maximum 5 addresses.\
5401+
\ Only supported when the email service provider is OneSignal Email.\n"
5402+
items:
5403+
type: string
5404+
maxItems: 5
5405+
nullable: true
5406+
type: array
5407+
writeOnly: true
53715408
sms_from:
53725409
description: "Channel: SMS\nPhone Number used to send SMS. Should be a registered\
53735410
\ Twilio phone number in E.164 format.\n"
@@ -5511,6 +5548,16 @@ components:
55115548
description: Indicates whether the notification was canceled before it could
55125549
be sent.
55135550
type: boolean
5551+
email_bcc:
5552+
description: BCC recipients that were set on this email notification.
5553+
items:
5554+
type: string
5555+
nullable: true
5556+
type: array
5557+
bcc_sent:
5558+
description: Number of BCC copies successfully sent for this notification.
5559+
nullable: true
5560+
type: integer
55145561
type: object
55155562
PlatformDeliveryData_sms_allOf:
55165563
properties:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apply plugin: 'com.diffplug.spotless'
55
apply plugin: 'com.vanniktech.maven.publish'
66

77
group = 'com.onesignal'
8-
version = '5.4.0'
8+
version = '5.5.0'
99

1010
buildscript {
1111
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.onesignal",
44
name := "onesignal-java-client",
5-
version := "5.4.0",
5+
version := "5.5.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/BasicNotification.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
|**emailPreheader** | **String** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] |
113113
|**disableEmailClickTracking** | **Boolean** | Channel: Email Default is &#x60;false&#x60;. If set to &#x60;true&#x60;, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked. | [optional] |
114114
|**includeUnsubscribed** | **Boolean** | Channel: Email Default is &#x60;false&#x60;. This field is used to send transactional notifications. If set to &#x60;true&#x60;, this notification will also be sent to unsubscribed emails. If a &#x60;template_id&#x60; is provided, the &#x60;include_unsubscribed&#x60; value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP&#39;s list of unsubscribed emails to be cleared. | [optional] |
115+
|**emailBcc** | **List&lt;String&gt;** | Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] |
115116
|**smsFrom** | **String** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] |
116117
|**smsMediaUrls** | **List&lt;String&gt;** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] |
117118
|**filters** | [**List&lt;FilterExpression&gt;**](FilterExpression.md) | | [optional] |

docs/BasicNotificationAllOf.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
|**emailPreheader** | **String** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] |
100100
|**disableEmailClickTracking** | **Boolean** | Channel: Email Default is &#x60;false&#x60;. If set to &#x60;true&#x60;, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked. | [optional] |
101101
|**includeUnsubscribed** | **Boolean** | Channel: Email Default is &#x60;false&#x60;. This field is used to send transactional notifications. If set to &#x60;true&#x60;, this notification will also be sent to unsubscribed emails. If a &#x60;template_id&#x60; is provided, the &#x60;include_unsubscribed&#x60; value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP&#39;s list of unsubscribed emails to be cleared. | [optional] |
102+
|**emailBcc** | **List&lt;String&gt;** | Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] |
102103
|**smsFrom** | **String** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] |
103104
|**smsMediaUrls** | **List&lt;String&gt;** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] |
104105
|**filters** | [**List&lt;FilterExpression&gt;**](FilterExpression.md) | | [optional] |

docs/CreateTemplateRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
|**isEmail** | **Boolean** | Set true for an Email template. | [optional] |
1616
|**emailSubject** | **String** | Subject of the email. | [optional] |
1717
|**emailBody** | **String** | Body of the email (HTML supported). | [optional] |
18+
|**emailBcc** | **List&lt;String&gt;** | BCC recipients for the email template. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] |
1819
|**isSMS** | **Boolean** | Set true for an SMS template. | [optional] |
1920
|**dynamicContent** | **String** | JSON string for dynamic content personalization. | [optional] |
2021

docs/Notification.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
|**emailPreheader** | **String** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] |
113113
|**disableEmailClickTracking** | **Boolean** | Channel: Email Default is &#x60;false&#x60;. If set to &#x60;true&#x60;, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked. | [optional] |
114114
|**includeUnsubscribed** | **Boolean** | Channel: Email Default is &#x60;false&#x60;. This field is used to send transactional notifications. If set to &#x60;true&#x60;, this notification will also be sent to unsubscribed emails. If a &#x60;template_id&#x60; is provided, the &#x60;include_unsubscribed&#x60; value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP&#39;s list of unsubscribed emails to be cleared. | [optional] |
115+
|**emailBcc** | **List&lt;String&gt;** | Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] |
115116
|**smsFrom** | **String** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] |
116117
|**smsMediaUrls** | **List&lt;String&gt;** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] |
117118
|**filters** | [**List&lt;FilterExpression&gt;**](FilterExpression.md) | | [optional] |

docs/NotificationWithMeta.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
|**emailPreheader** | **String** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] |
113113
|**disableEmailClickTracking** | **Boolean** | Channel: Email Default is &#x60;false&#x60;. If set to &#x60;true&#x60;, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked. | [optional] |
114114
|**includeUnsubscribed** | **Boolean** | Channel: Email Default is &#x60;false&#x60;. This field is used to send transactional notifications. If set to &#x60;true&#x60;, this notification will also be sent to unsubscribed emails. If a &#x60;template_id&#x60; is provided, the &#x60;include_unsubscribed&#x60; value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP&#39;s list of unsubscribed emails to be cleared. | [optional] |
115+
|**emailBcc** | **List&lt;String&gt;** | BCC recipients that were set on this email notification. | [optional] |
115116
|**smsFrom** | **String** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] |
116117
|**smsMediaUrls** | **List&lt;String&gt;** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] |
117118
|**filters** | [**List&lt;FilterExpression&gt;**](FilterExpression.md) | | [optional] |
@@ -133,6 +134,7 @@
133134
|**completedAt** | **Long** | Unix timestamp indicating when notification delivery completed. The delivery duration from start to finish can be calculated with completed_at - send_after. | [optional] |
134135
|**platformDeliveryStats** | [**PlatformDeliveryData**](PlatformDeliveryData.md) | | [optional] |
135136
|**canceled** | **Boolean** | Indicates whether the notification was canceled before it could be sent. | [optional] |
137+
|**bccSent** | **Integer** | Number of BCC copies successfully sent for this notification. | [optional] |
136138

137139

138140

0 commit comments

Comments
 (0)