Skip to content

Commit e544511

Browse files
authored
Merge pull request #57 from OneSignal/user-api-updates
Add v5.2.0-beta1 package updates
2 parents 94468a5 + 3cb7503 commit e544511

File tree

64 files changed

+408
-64
lines changed

Some content is hidden

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

64 files changed

+408
-64
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ A powerful way to send personalized messages at scale and build effective custom
55
## Overview
66
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
77

8-
- API version: 5.1.0
9-
- Package version: 5.1.1-beta1
8+
- API version: 5.2.0
9+
- Package version: 5.2.0-beta1
1010
- Build package: org.openapitools.codegen.languages.GoClientCodegen
1111
For more information, please visit [https://onesignal.com](https://onesignal.com)
1212

api/openapi.yaml

Lines changed: 9 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.1.0
11+
version: 5.2.0
1212
servers:
1313
- url: https://api.onesignal.com
1414
paths:
@@ -3830,6 +3830,14 @@ components:
38303830
nullable: true
38313831
type: string
38323832
writeOnly: true
3833+
disable_email_click_tracking:
3834+
description: "Channel: Email\nDefault is `false`. If set to `true`, the\
3835+
\ URLs sent within the email will not include link tracking and will be\
3836+
\ the same as originally set; otherwise, all the URLs in the email will\
3837+
\ be tracked."
3838+
nullable: true
3839+
type: boolean
3840+
writeOnly: true
38333841
include_unsubscribed:
38343842
description: "Channel: Email\nDefault is `false`. This field is used to\
38353843
\ send transactional notifications. If set to `true`, this notification\

api_default.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configuration.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/BasicNotification.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Name | Type | Description | Notes
106106
**EmailFromName** | Pointer to **NullableString** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional]
107107
**EmailFromAddress** | Pointer to **NullableString** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional]
108108
**EmailPreheader** | Pointer to **NullableString** | 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]
109+
**DisableEmailClickTracking** | Pointer to **NullableBool** | Channel: Email Default is `false`. If set to `true`, 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]
109110
**IncludeUnsubscribed** | Pointer to **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional]
110111
**SmsFrom** | Pointer to **NullableString** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional]
111112
**SmsMediaUrls** | Pointer to **[]string** | 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]
@@ -3456,6 +3457,41 @@ HasEmailPreheader returns a boolean if a field has been set.
34563457
`func (o *BasicNotification) UnsetEmailPreheader()`
34573458

34583459
UnsetEmailPreheader ensures that no value is present for EmailPreheader, not even an explicit nil
3460+
### GetDisableEmailClickTracking
3461+
3462+
`func (o *BasicNotification) GetDisableEmailClickTracking() bool`
3463+
3464+
GetDisableEmailClickTracking returns the DisableEmailClickTracking field if non-nil, zero value otherwise.
3465+
3466+
### GetDisableEmailClickTrackingOk
3467+
3468+
`func (o *BasicNotification) GetDisableEmailClickTrackingOk() (*bool, bool)`
3469+
3470+
GetDisableEmailClickTrackingOk returns a tuple with the DisableEmailClickTracking field if it's non-nil, zero value otherwise
3471+
and a boolean to check if the value has been set.
3472+
3473+
### SetDisableEmailClickTracking
3474+
3475+
`func (o *BasicNotification) SetDisableEmailClickTracking(v bool)`
3476+
3477+
SetDisableEmailClickTracking sets DisableEmailClickTracking field to given value.
3478+
3479+
### HasDisableEmailClickTracking
3480+
3481+
`func (o *BasicNotification) HasDisableEmailClickTracking() bool`
3482+
3483+
HasDisableEmailClickTracking returns a boolean if a field has been set.
3484+
3485+
### SetDisableEmailClickTrackingNil
3486+
3487+
`func (o *BasicNotification) SetDisableEmailClickTrackingNil(b bool)`
3488+
3489+
SetDisableEmailClickTrackingNil sets the value for DisableEmailClickTracking to be an explicit nil
3490+
3491+
### UnsetDisableEmailClickTracking
3492+
`func (o *BasicNotification) UnsetDisableEmailClickTracking()`
3493+
3494+
UnsetDisableEmailClickTracking ensures that no value is present for DisableEmailClickTracking, not even an explicit nil
34593495
### GetIncludeUnsubscribed
34603496

34613497
`func (o *BasicNotification) GetIncludeUnsubscribed() bool`

docs/BasicNotificationAllOf.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ Name | Type | Description | Notes
9393
**EmailFromName** | Pointer to **NullableString** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional]
9494
**EmailFromAddress** | Pointer to **NullableString** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional]
9595
**EmailPreheader** | Pointer to **NullableString** | 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]
96+
**DisableEmailClickTracking** | Pointer to **NullableBool** | Channel: Email Default is `false`. If set to `true`, 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]
9697
**IncludeUnsubscribed** | Pointer to **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional]
9798
**SmsFrom** | Pointer to **NullableString** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional]
9899
**SmsMediaUrls** | Pointer to **[]string** | 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]
@@ -3103,6 +3104,41 @@ HasEmailPreheader returns a boolean if a field has been set.
31033104
`func (o *BasicNotificationAllOf) UnsetEmailPreheader()`
31043105

31053106
UnsetEmailPreheader ensures that no value is present for EmailPreheader, not even an explicit nil
3107+
### GetDisableEmailClickTracking
3108+
3109+
`func (o *BasicNotificationAllOf) GetDisableEmailClickTracking() bool`
3110+
3111+
GetDisableEmailClickTracking returns the DisableEmailClickTracking field if non-nil, zero value otherwise.
3112+
3113+
### GetDisableEmailClickTrackingOk
3114+
3115+
`func (o *BasicNotificationAllOf) GetDisableEmailClickTrackingOk() (*bool, bool)`
3116+
3117+
GetDisableEmailClickTrackingOk returns a tuple with the DisableEmailClickTracking field if it's non-nil, zero value otherwise
3118+
and a boolean to check if the value has been set.
3119+
3120+
### SetDisableEmailClickTracking
3121+
3122+
`func (o *BasicNotificationAllOf) SetDisableEmailClickTracking(v bool)`
3123+
3124+
SetDisableEmailClickTracking sets DisableEmailClickTracking field to given value.
3125+
3126+
### HasDisableEmailClickTracking
3127+
3128+
`func (o *BasicNotificationAllOf) HasDisableEmailClickTracking() bool`
3129+
3130+
HasDisableEmailClickTracking returns a boolean if a field has been set.
3131+
3132+
### SetDisableEmailClickTrackingNil
3133+
3134+
`func (o *BasicNotificationAllOf) SetDisableEmailClickTrackingNil(b bool)`
3135+
3136+
SetDisableEmailClickTrackingNil sets the value for DisableEmailClickTracking to be an explicit nil
3137+
3138+
### UnsetDisableEmailClickTracking
3139+
`func (o *BasicNotificationAllOf) UnsetDisableEmailClickTracking()`
3140+
3141+
UnsetDisableEmailClickTracking ensures that no value is present for DisableEmailClickTracking, not even an explicit nil
31063142
### GetIncludeUnsubscribed
31073143

31083144
`func (o *BasicNotificationAllOf) GetIncludeUnsubscribed() bool`

docs/Notification.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Name | Type | Description | Notes
106106
**EmailFromName** | Pointer to **NullableString** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional]
107107
**EmailFromAddress** | Pointer to **NullableString** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional]
108108
**EmailPreheader** | Pointer to **NullableString** | 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]
109+
**DisableEmailClickTracking** | Pointer to **NullableBool** | Channel: Email Default is `false`. If set to `true`, 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]
109110
**IncludeUnsubscribed** | Pointer to **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional]
110111
**SmsFrom** | Pointer to **NullableString** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional]
111112
**SmsMediaUrls** | Pointer to **[]string** | 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]
@@ -3457,6 +3458,41 @@ HasEmailPreheader returns a boolean if a field has been set.
34573458
`func (o *Notification) UnsetEmailPreheader()`
34583459

34593460
UnsetEmailPreheader ensures that no value is present for EmailPreheader, not even an explicit nil
3461+
### GetDisableEmailClickTracking
3462+
3463+
`func (o *Notification) GetDisableEmailClickTracking() bool`
3464+
3465+
GetDisableEmailClickTracking returns the DisableEmailClickTracking field if non-nil, zero value otherwise.
3466+
3467+
### GetDisableEmailClickTrackingOk
3468+
3469+
`func (o *Notification) GetDisableEmailClickTrackingOk() (*bool, bool)`
3470+
3471+
GetDisableEmailClickTrackingOk returns a tuple with the DisableEmailClickTracking field if it's non-nil, zero value otherwise
3472+
and a boolean to check if the value has been set.
3473+
3474+
### SetDisableEmailClickTracking
3475+
3476+
`func (o *Notification) SetDisableEmailClickTracking(v bool)`
3477+
3478+
SetDisableEmailClickTracking sets DisableEmailClickTracking field to given value.
3479+
3480+
### HasDisableEmailClickTracking
3481+
3482+
`func (o *Notification) HasDisableEmailClickTracking() bool`
3483+
3484+
HasDisableEmailClickTracking returns a boolean if a field has been set.
3485+
3486+
### SetDisableEmailClickTrackingNil
3487+
3488+
`func (o *Notification) SetDisableEmailClickTrackingNil(b bool)`
3489+
3490+
SetDisableEmailClickTrackingNil sets the value for DisableEmailClickTracking to be an explicit nil
3491+
3492+
### UnsetDisableEmailClickTracking
3493+
`func (o *Notification) UnsetDisableEmailClickTracking()`
3494+
3495+
UnsetDisableEmailClickTracking ensures that no value is present for DisableEmailClickTracking, not even an explicit nil
34603496
### GetIncludeUnsubscribed
34613497

34623498
`func (o *Notification) GetIncludeUnsubscribed() bool`

docs/NotificationWithMeta.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Name | Type | Description | Notes
106106
**EmailFromName** | Pointer to **NullableString** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional]
107107
**EmailFromAddress** | Pointer to **NullableString** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional]
108108
**EmailPreheader** | Pointer to **NullableString** | 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]
109+
**DisableEmailClickTracking** | Pointer to **NullableBool** | Channel: Email Default is `false`. If set to `true`, 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]
109110
**IncludeUnsubscribed** | Pointer to **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional]
110111
**SmsFrom** | Pointer to **NullableString** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional]
111112
**SmsMediaUrls** | Pointer to **[]string** | 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]
@@ -3467,6 +3468,41 @@ HasEmailPreheader returns a boolean if a field has been set.
34673468
`func (o *NotificationWithMeta) UnsetEmailPreheader()`
34683469

34693470
UnsetEmailPreheader ensures that no value is present for EmailPreheader, not even an explicit nil
3471+
### GetDisableEmailClickTracking
3472+
3473+
`func (o *NotificationWithMeta) GetDisableEmailClickTracking() bool`
3474+
3475+
GetDisableEmailClickTracking returns the DisableEmailClickTracking field if non-nil, zero value otherwise.
3476+
3477+
### GetDisableEmailClickTrackingOk
3478+
3479+
`func (o *NotificationWithMeta) GetDisableEmailClickTrackingOk() (*bool, bool)`
3480+
3481+
GetDisableEmailClickTrackingOk returns a tuple with the DisableEmailClickTracking field if it's non-nil, zero value otherwise
3482+
and a boolean to check if the value has been set.
3483+
3484+
### SetDisableEmailClickTracking
3485+
3486+
`func (o *NotificationWithMeta) SetDisableEmailClickTracking(v bool)`
3487+
3488+
SetDisableEmailClickTracking sets DisableEmailClickTracking field to given value.
3489+
3490+
### HasDisableEmailClickTracking
3491+
3492+
`func (o *NotificationWithMeta) HasDisableEmailClickTracking() bool`
3493+
3494+
HasDisableEmailClickTracking returns a boolean if a field has been set.
3495+
3496+
### SetDisableEmailClickTrackingNil
3497+
3498+
`func (o *NotificationWithMeta) SetDisableEmailClickTrackingNil(b bool)`
3499+
3500+
SetDisableEmailClickTrackingNil sets the value for DisableEmailClickTracking to be an explicit nil
3501+
3502+
### UnsetDisableEmailClickTracking
3503+
`func (o *NotificationWithMeta) UnsetDisableEmailClickTracking()`
3504+
3505+
UnsetDisableEmailClickTracking ensures that no value is present for DisableEmailClickTracking, not even an explicit nil
34703506
### GetIncludeUnsubscribed
34713507

34723508
`func (o *NotificationWithMeta) GetIncludeUnsubscribed() bool`

model_app.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)