From c079c02ab32b29bb1910c818aacbe50add4c16ab Mon Sep 17 00:00:00 2001 From: OneSignal Date: Thu, 9 Jul 2026 21:27:46 +0000 Subject: [PATCH] feat: add v5.10.0 package updates --- README.md | 4 +- api/openapi.yaml | 358 ++++++++++-------- api_default.go | 2 +- client.go | 6 +- configuration.go | 4 +- docs/BasicNotification.md | 12 +- docs/BasicNotificationAllOf.md | 12 +- docs/DefaultApi.md | 86 +++-- docs/Notification.md | 12 +- docs/NotificationWithMeta.md | 12 +- model_api_key_token.go | 2 +- model_api_key_tokens_list_response.go | 2 +- model_app.go | 2 +- model_basic_notification.go | 34 +- model_basic_notification_all_of.go | 34 +- ...cation_all_of_android_background_layout.go | 2 +- model_button.go | 2 +- model_copy_template_request.go | 2 +- model_create_api_key_request.go | 2 +- model_create_api_key_response.go | 2 +- model_create_notification_success_response.go | 2 +- model_create_segment_conflict_response.go | 2 +- model_create_segment_success_response.go | 2 +- model_create_template_request.go | 2 +- model_create_user_conflict_response.go | 2 +- ...ate_user_conflict_response_errors_inner.go | 2 +- ...ser_conflict_response_errors_items_meta.go | 2 +- model_custom_event.go | 2 +- model_custom_events_request.go | 2 +- model_delivery_data.go | 2 +- model_export_events_success_response.go | 2 +- model_export_subscriptions_request_body.go | 2 +- ...l_export_subscriptions_success_response.go | 2 +- model_filter.go | 2 +- model_filter_expression.go | 2 +- model_generic_error.go | 2 +- model_generic_success_bool_response.go | 2 +- ...l_get_notification_history_request_body.go | 2 +- model_get_segments_success_response.go | 2 +- model_language_string_map.go | 2 +- model_notification.go | 34 +- model_notification_all_of.go | 2 +- ...l_notification_history_success_response.go | 2 +- model_notification_slice.go | 2 +- model_notification_target.go | 2 +- model_notification_with_meta.go | 34 +- model_notification_with_meta_all_of.go | 2 +- model_operator.go | 2 +- model_outcome_data.go | 2 +- model_outcomes_data.go | 2 +- model_platform_delivery_data.go | 2 +- model_platform_delivery_data_email_all_of.go | 2 +- model_platform_delivery_data_sms_all_of.go | 2 +- model_properties_body.go | 2 +- model_properties_deltas.go | 2 +- model_properties_object.go | 2 +- model_purchase.go | 2 +- model_rate_limit_error.go | 2 +- model_segment.go | 2 +- model_segment_data.go | 2 +- model_segment_notification_target.go | 2 +- model_start_live_activity_request.go | 2 +- model_start_live_activity_success_response.go | 2 +- model_subscription.go | 2 +- model_subscription_body.go | 2 +- model_subscription_notification_target.go | 2 +- model_template_resource.go | 2 +- model_templates_list_response.go | 2 +- model_transfer_subscription_request_body.go | 2 +- model_update_api_key_request.go | 2 +- model_update_live_activity_request.go | 2 +- ...l_update_live_activity_success_response.go | 2 +- model_update_template_request.go | 2 +- model_update_user_request.go | 2 +- model_user.go | 2 +- model_user_identity_body.go | 2 +- model_web_button.go | 2 +- response.go | 2 +- utils.go | 2 +- 79 files changed, 450 insertions(+), 324 deletions(-) diff --git a/README.md b/README.md index b3a41f2..66b7bd0 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -- API version: 5.8.0 -- Package version: 5.9.0 +- API version: 5.9.0 +- Package version: 5.10.0 ## Installation diff --git a/api/openapi.yaml b/api/openapi.yaml index c29f448..069a97d 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -8,7 +8,7 @@ info: customer engagement strategies. Learn more at onesignal.com termsOfService: https://onesignal.com/tos title: OneSignal - version: 5.8.0 + version: 5.9.0 servers: - url: https://api.onesignal.com paths: @@ -23,7 +23,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: form - description: How many notifications to return. Max is 50. Default is 50. @@ -174,7 +174,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: form - explode: false @@ -229,7 +229,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: form - explode: false @@ -441,7 +441,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple responses: @@ -483,7 +483,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple requestBody: @@ -531,7 +531,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - description: "Segments are listed in ascending order of created_at date. offset\ @@ -599,7 +599,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple requestBody: @@ -657,7 +657,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - description: The segment_id can be found in the URL of the segment when viewing @@ -719,7 +719,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - description: "Required\nComma-separated list of names and the value (sum/count)\ @@ -821,7 +821,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - description: The name of the Live Activity defined in your app. This should @@ -879,7 +879,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - description: Live Activity record ID @@ -937,7 +937,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple requestBody: @@ -1003,7 +1003,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - explode: false @@ -1060,7 +1060,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - explode: false @@ -1121,7 +1121,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - explode: false @@ -1189,7 +1189,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - explode: false @@ -1251,7 +1251,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - explode: false @@ -1325,7 +1325,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - explode: false @@ -1402,7 +1402,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - explode: false @@ -1483,7 +1483,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - explode: false @@ -1538,7 +1538,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - explode: false @@ -1600,7 +1600,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - explode: false @@ -1647,7 +1647,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - explode: false @@ -1714,7 +1714,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - explode: false @@ -1782,7 +1782,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - description: The type of token to use when looking up the subscription. See @@ -1851,7 +1851,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - description: "The id of the message found in the creation notification POST\ @@ -1954,7 +1954,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple requestBody: @@ -2029,7 +2029,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: form responses: @@ -2077,7 +2077,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: form - description: Maximum number of templates. Default and max is 50. @@ -2196,7 +2196,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: form responses: @@ -2244,7 +2244,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: form responses: @@ -2292,7 +2292,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: form requestBody: @@ -2341,7 +2341,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: form requestBody: @@ -2383,7 +2383,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple responses: @@ -2420,7 +2420,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple requestBody: @@ -2463,7 +2463,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - explode: false @@ -2506,7 +2506,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - explode: false @@ -2558,7 +2558,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple - explode: false @@ -2604,7 +2604,7 @@ paths: name: app_id required: true schema: - example: 00000000-0000-0000-0000-000000000000 + example: YOUR_APP_ID type: string style: simple requestBody: @@ -3289,20 +3289,23 @@ components: type: object Purchase: example: - amount: amount - iso: iso + amount: "0.99" + iso: USD count: 2 - sku: sku + sku: com.example.coins100 properties: sku: description: The unique identifier of the purchased item. + example: com.example.coins100 type: string amount: description: "The amount, in USD, spent purchasing the item." + example: "0.99" type: string iso: description: The 3-letter ISO 4217 currency code. Required for correct storage and conversion of amount. + example: USD type: string count: type: integer @@ -3351,18 +3354,22 @@ components: field: description: Required. Name of the field to use as the first operand in the filter expression. + example: tag type: string key: description: "If `field` is `tag`, this field is *required* to specify `key`\ \ inside the tags." + example: level type: string value: description: Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. + example: "10" type: string hours_ago: description: "If `field` is session-related, this is *required* to specify\ \ the number of hours before or after the user's session." + example: "24" type: string radius: description: "If `field` is `location`, this will specify the radius in\ @@ -3405,17 +3412,19 @@ components: - $ref: '#/components/schemas/Operator' Segment: example: - name: name - id: id + name: Inactive 30 days + id: d5d4d1a8-1c9e-42fb-b3f2-56d3a5a9a8b7 filters: - null - null properties: id: description: "UUID of the segment. If left empty, it will be assigned automaticaly." + example: d5d4d1a8-1c9e-42fb-b3f2-56d3a5a9a8b7 type: string name: description: Name of the segment. You'll see this name on the Web UI. + example: Inactive 30 days type: string filters: description: "Filter or operators the segment will have. For a list of\ @@ -3641,42 +3650,51 @@ components: IdentityObject: additionalProperties: type: string + example: + external_id: YOUR_USER_EXTERNAL_ID type: object PropertiesObject: example: - country: country + country: US purchases: - - amount: amount - iso: iso + - amount: "0.99" + iso: USD count: 2 - sku: sku - - amount: amount - iso: iso + sku: com.example.coins100 + - amount: "0.99" + iso: USD count: 2 - sku: sku - ip: ip - timezone_id: timezone_id - language: language + sku: com.example.coins100 + ip: 203.0.113.10 + timezone_id: America/Los_Angeles + language: en first_active: 1 last_active: 5 lat: 0.8008281904610115 long: 6.027456183070403 tags: - key: "" + level: "10" + vip: "true" amount_spent: 5.637376656633329 properties: tags: additionalProperties: true + example: + level: "10" + vip: "true" type: object language: + example: en type: string timezone_id: + example: America/Los_Angeles type: string lat: type: number long: type: number country: + example: US type: string first_active: type: integer @@ -3689,19 +3707,20 @@ components: $ref: '#/components/schemas/Purchase' type: array ip: + example: 203.0.113.10 type: string type: object PropertiesDeltas: example: purchases: - - amount: amount - iso: iso + - amount: "0.99" + iso: USD count: 2 - sku: sku - - amount: amount - iso: iso + sku: com.example.coins100 + - amount: "0.99" + iso: USD count: 2 - sku: sku + sku: com.example.coins100 session_count: 6 session_time: 0 properties: @@ -3716,25 +3735,26 @@ components: type: object Subscription: example: - notification_types: 7 - device_model: device_model - app_version: app_version - web_p256: web_p256 - net_type: 4 + notification_types: 1 + device_model: "iPhone14,2" + app_version: 1.0.0 + web_p256: BM5-r8DauQXOb2E-3PgLPjSvjT0Ao9v5oJhw8bZ0cW7Vh6BbmPYcqbbCEJ1P2sK0hZ7HxSh9zGyU5pQk1jJmZ8A + net_type: 9 type: iOSPush - device_os: device_os + device_os: "17.1" enabled: true - session_time: 9 - test_type: 2 - token: token - carrier: carrier - session_count: 3 - web_auth: web_auth + session_time: 60 + test_type: 7 + token: d5d4d1a8-1c9e-42fb-b3f2-56d3a5a9a8b7 + carrier: Verizon + session_count: 1 + web_auth: 5DUmpGmLuTxWCLj5lJpwLQ rooted: true - id: id - sdk: sdk + id: e4e87830-b954-4363-b7bc-1f01dbaee5c8 + sdk: 5.2.0 properties: id: + example: e4e87830-b954-4363-b7bc-1f01dbaee5c8 type: string type: enum: @@ -3753,95 +3773,108 @@ components: - SMS type: string token: + example: d5d4d1a8-1c9e-42fb-b3f2-56d3a5a9a8b7 type: string enabled: + example: true type: boolean notification_types: + example: 1 type: integer session_time: + example: 60 type: integer session_count: + example: 1 type: integer sdk: + example: 5.2.0 type: string device_model: + example: "iPhone14,2" type: string device_os: + example: "17.1" type: string rooted: type: boolean test_type: type: integer app_version: + example: 1.0.0 type: string net_type: type: integer carrier: + example: Verizon type: string web_auth: + example: 5DUmpGmLuTxWCLj5lJpwLQ type: string web_p256: + example: BM5-r8DauQXOb2E-3PgLPjSvjT0Ao9v5oJhw8bZ0cW7Vh6BbmPYcqbbCEJ1P2sK0hZ7HxSh9zGyU5pQk1jJmZ8A type: string type: object User: example: subscriptions: - - notification_types: 7 - device_model: device_model - app_version: app_version - web_p256: web_p256 - net_type: 4 + - notification_types: 1 + device_model: "iPhone14,2" + app_version: 1.0.0 + web_p256: BM5-r8DauQXOb2E-3PgLPjSvjT0Ao9v5oJhw8bZ0cW7Vh6BbmPYcqbbCEJ1P2sK0hZ7HxSh9zGyU5pQk1jJmZ8A + net_type: 9 type: iOSPush - device_os: device_os + device_os: "17.1" enabled: true - session_time: 9 - test_type: 2 - token: token - carrier: carrier - session_count: 3 - web_auth: web_auth + session_time: 60 + test_type: 7 + token: d5d4d1a8-1c9e-42fb-b3f2-56d3a5a9a8b7 + carrier: Verizon + session_count: 1 + web_auth: 5DUmpGmLuTxWCLj5lJpwLQ rooted: true - id: id - sdk: sdk - - notification_types: 7 - device_model: device_model - app_version: app_version - web_p256: web_p256 - net_type: 4 + id: e4e87830-b954-4363-b7bc-1f01dbaee5c8 + sdk: 5.2.0 + - notification_types: 1 + device_model: "iPhone14,2" + app_version: 1.0.0 + web_p256: BM5-r8DauQXOb2E-3PgLPjSvjT0Ao9v5oJhw8bZ0cW7Vh6BbmPYcqbbCEJ1P2sK0hZ7HxSh9zGyU5pQk1jJmZ8A + net_type: 9 type: iOSPush - device_os: device_os + device_os: "17.1" enabled: true - session_time: 9 - test_type: 2 - token: token - carrier: carrier - session_count: 3 - web_auth: web_auth + session_time: 60 + test_type: 7 + token: d5d4d1a8-1c9e-42fb-b3f2-56d3a5a9a8b7 + carrier: Verizon + session_count: 1 + web_auth: 5DUmpGmLuTxWCLj5lJpwLQ rooted: true - id: id - sdk: sdk + id: e4e87830-b954-4363-b7bc-1f01dbaee5c8 + sdk: 5.2.0 identity: - key: identity + external_id: YOUR_USER_EXTERNAL_ID properties: - country: country + country: US purchases: - - amount: amount - iso: iso + - amount: "0.99" + iso: USD count: 2 - sku: sku - - amount: amount - iso: iso + sku: com.example.coins100 + - amount: "0.99" + iso: USD count: 2 - sku: sku - ip: ip - timezone_id: timezone_id - language: language + sku: com.example.coins100 + ip: 203.0.113.10 + timezone_id: America/Los_Angeles + language: en first_active: 1 last_active: 5 lat: 0.8008281904610115 long: 6.027456183070403 tags: - key: "" + level: "10" + vip: "true" amount_spent: 5.637376656633329 properties: properties: @@ -3849,6 +3882,8 @@ components: identity: additionalProperties: type: string + example: + external_id: YOUR_USER_EXTERNAL_ID type: object subscriptions: items: @@ -3860,36 +3895,37 @@ components: refresh_device_metadata: false deltas: purchases: - - amount: amount - iso: iso + - amount: "0.99" + iso: USD count: 2 - sku: sku - - amount: amount - iso: iso + sku: com.example.coins100 + - amount: "0.99" + iso: USD count: 2 - sku: sku + sku: com.example.coins100 session_count: 6 session_time: 0 properties: - country: country + country: US purchases: - - amount: amount - iso: iso + - amount: "0.99" + iso: USD count: 2 - sku: sku - - amount: amount - iso: iso + sku: com.example.coins100 + - amount: "0.99" + iso: USD count: 2 - sku: sku - ip: ip - timezone_id: timezone_id - language: language + sku: com.example.coins100 + ip: 203.0.113.10 + timezone_id: America/Los_Angeles + language: en first_active: 1 last_active: 5 lat: 0.8008281904610115 long: 6.027456183070403 tags: - key: "" + level: "10" + vip: "true" amount_spent: 5.637376656633329 properties: properties: @@ -4688,25 +4724,26 @@ components: PropertiesBody: example: properties: - country: country + country: US purchases: - - amount: amount - iso: iso + - amount: "0.99" + iso: USD count: 2 - sku: sku - - amount: amount - iso: iso + sku: com.example.coins100 + - amount: "0.99" + iso: USD count: 2 - sku: sku - ip: ip - timezone_id: timezone_id - language: language + sku: com.example.coins100 + ip: 203.0.113.10 + timezone_id: America/Los_Angeles + language: en first_active: 1 last_active: 5 lat: 0.8008281904610115 long: 6.027456183070403 tags: - key: "" + level: "10" + vip: "true" amount_spent: 5.637376656633329 properties: properties: @@ -4715,23 +4752,23 @@ components: SubscriptionBody: example: subscription: - notification_types: 7 - device_model: device_model - app_version: app_version - web_p256: web_p256 - net_type: 4 + notification_types: 1 + device_model: "iPhone14,2" + app_version: 1.0.0 + web_p256: BM5-r8DauQXOb2E-3PgLPjSvjT0Ao9v5oJhw8bZ0cW7Vh6BbmPYcqbbCEJ1P2sK0hZ7HxSh9zGyU5pQk1jJmZ8A + net_type: 9 type: iOSPush - device_os: device_os + device_os: "17.1" enabled: true - session_time: 9 - test_type: 2 - token: token - carrier: carrier - session_count: 3 - web_auth: web_auth + session_time: 60 + test_type: 7 + token: d5d4d1a8-1c9e-42fb-b3f2-56d3a5a9a8b7 + carrier: Verizon + session_count: 1 + web_auth: 5DUmpGmLuTxWCLj5lJpwLQ rooted: true - id: id - sdk: sdk + id: e4e87830-b954-4363-b7bc-1f01dbaee5c8 + sdk: 5.2.0 properties: subscription: $ref: '#/components/schemas/Subscription' @@ -4751,11 +4788,13 @@ components: UserIdentityBody: example: identity: - key: identity + external_id: YOUR_USER_EXTERNAL_ID properties: identity: additionalProperties: type: string + example: + external_id: YOUR_USER_EXTERNAL_ID type: object type: object ExportEventsSuccessResponse: @@ -5719,6 +5758,7 @@ components: \ 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." + nullable: true type: boolean writeOnly: true email_bcc: diff --git a/api_default.go b/api_default.go index c00038f..3a3acc0 100644 --- a/api_default.go +++ b/api_default.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/client.go b/client.go index af982d3..6e79c4e 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ @@ -43,7 +43,7 @@ var ( xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) ) -// APIClient manages communication with the OneSignal API v5.8.0 +// APIClient manages communication with the OneSignal API v5.9.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -325,7 +325,7 @@ func (c *APIClient) prepareRequest( localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) // Add the SDK version to OS-Usage header for telemetry - localVarRequest.Header.Add("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-go, version=5.8.0") + localVarRequest.Header.Add("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-go, version=5.9.0") if ctx != nil { // add context to the request diff --git a/configuration.go b/configuration.go index 5d6b1f9..810839d 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ @@ -105,7 +105,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/5.9.0/go", + UserAgent: "OpenAPI-Generator/5.10.0/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/BasicNotification.md b/docs/BasicNotification.md index a35d260..4af93cb 100644 --- a/docs/BasicNotification.md +++ b/docs/BasicNotification.md @@ -109,7 +109,7 @@ Name | Type | Description | Notes **EmailReplyToAddress** | Pointer to **NullableString** | Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address. | [optional] **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] **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] -**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] +**IncludeUnsubscribed** | Pointer to **NullableBool** | 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] **EmailBcc** | Pointer to **[]string** | Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] **EmailSenderDomain** | Pointer to **NullableString** | Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. | [optional] **SmsFrom** | Pointer to **NullableString** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] @@ -3606,6 +3606,16 @@ SetIncludeUnsubscribed sets IncludeUnsubscribed field to given value. HasIncludeUnsubscribed returns a boolean if a field has been set. +### SetIncludeUnsubscribedNil + +`func (o *BasicNotification) SetIncludeUnsubscribedNil(b bool)` + + SetIncludeUnsubscribedNil sets the value for IncludeUnsubscribed to be an explicit nil + +### UnsetIncludeUnsubscribed +`func (o *BasicNotification) UnsetIncludeUnsubscribed()` + +UnsetIncludeUnsubscribed ensures that no value is present for IncludeUnsubscribed, not even an explicit nil ### GetEmailBcc `func (o *BasicNotification) GetEmailBcc() []string` diff --git a/docs/BasicNotificationAllOf.md b/docs/BasicNotificationAllOf.md index f4286dc..b88ebca 100644 --- a/docs/BasicNotificationAllOf.md +++ b/docs/BasicNotificationAllOf.md @@ -95,7 +95,7 @@ Name | Type | Description | Notes **EmailReplyToAddress** | Pointer to **NullableString** | Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address. | [optional] **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] **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] -**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] +**IncludeUnsubscribed** | Pointer to **NullableBool** | 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] **EmailBcc** | Pointer to **[]string** | Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] **EmailSenderDomain** | Pointer to **NullableString** | Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. | [optional] **SmsFrom** | Pointer to **NullableString** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] @@ -3227,6 +3227,16 @@ SetIncludeUnsubscribed sets IncludeUnsubscribed field to given value. HasIncludeUnsubscribed returns a boolean if a field has been set. +### SetIncludeUnsubscribedNil + +`func (o *BasicNotificationAllOf) SetIncludeUnsubscribedNil(b bool)` + + SetIncludeUnsubscribedNil sets the value for IncludeUnsubscribed to be an explicit nil + +### UnsetIncludeUnsubscribed +`func (o *BasicNotificationAllOf) UnsetIncludeUnsubscribed()` + +UnsetIncludeUnsubscribed ensures that no value is present for IncludeUnsubscribed, not even an explicit nil ### GetEmailBcc `func (o *BasicNotificationAllOf) GetEmailBcc() []string` diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index f1a4ce8..e3730ed 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -114,7 +114,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | notificationId := "b3a0c8bd-3a4c-4b22-9a73-3f1a8c2d1b88" // string | configuration := onesignal.NewConfiguration() @@ -197,7 +197,7 @@ import ( func main() { templateId := "e4d3c2b1-a09f-4f1e-8d7c-6b5a4f3e2d1c" // string | - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | copyTemplateRequest := *onesignal.NewCopyTemplateRequest("TargetAppId_example") // CopyTemplateRequest | configuration := onesignal.NewConfiguration() @@ -280,7 +280,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | aliasLabel := "external_id" // string | aliasId := "YOUR_USER_EXTERNAL_ID" // string | userIdentityBody := *onesignal.NewUserIdentityBody() // UserIdentityBody | @@ -368,7 +368,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | subscriptionId := "7e4c5b9a-1f60-4d07-9b1a-2e8c8d2cae51" // string | userIdentityBody := *onesignal.NewUserIdentityBody() // UserIdentityBody | @@ -453,7 +453,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | createApiKeyRequest := *onesignal.NewCreateApiKeyRequest() // CreateApiKeyRequest | configuration := onesignal.NewConfiguration() @@ -611,7 +611,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | Your OneSignal App ID in UUID v4 format. + appId := "YOUR_APP_ID" // string | Your OneSignal App ID in UUID v4 format. customEventsRequest := *onesignal.NewCustomEventsRequest([]onesignal.CustomEvent{*onesignal.NewCustomEvent("Name_example")}) // CustomEventsRequest | configuration := onesignal.NewConfiguration() @@ -703,6 +703,9 @@ func main() { contents := onesignal.NewLanguageStringMap() contents.SetEn("Hello from OneSignal!") notification.SetContents(*contents) + headings := onesignal.NewLanguageStringMap() + headings.SetEn("Push Notification") + notification.SetHeadings(*headings) notification.SetIncludeAliases(map[string][]string{"external_id": {"YOUR_USER_EXTERNAL_ID"}}) notification.SetTargetChannel("push") // Idempotency key: a client-generated UUID that lets you safely retry on network failure. @@ -762,6 +765,9 @@ func main() { contents := onesignal.NewLanguageStringMap() contents.SetEn("Hello from OneSignal!") notification.SetContents(*contents) + headings := onesignal.NewLanguageStringMap() + headings.SetEn("Push Notification") + notification.SetHeadings(*headings) notification.SetIncludeAliases(map[string][]string{"external_id": {"YOUR_USER_EXTERNAL_ID"}}) notification.SetTargetChannel("push") // No idempotency key set: the helper generates a UUIDv4 and reuses it across retries. @@ -833,8 +839,8 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | The OneSignal App ID for your app. Available in Keys & IDs. - segment := *onesignal.NewSegment("Name_example", []onesignal.FilterExpression{onesignal.FilterExpression{Filter: onesignal.NewFilter()}}) // Segment | (optional) + appId := "YOUR_APP_ID" // string | The OneSignal App ID for your app. Available in Keys & IDs. + segment := *onesignal.NewSegment("Inactive 30 days", []onesignal.FilterExpression{onesignal.FilterExpression{Filter: onesignal.NewFilter()}}) // Segment | (optional) configuration := onesignal.NewConfiguration() apiClient := onesignal.NewAPIClient(configuration) @@ -915,7 +921,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | aliasLabel := "external_id" // string | aliasId := "YOUR_USER_EXTERNAL_ID" // string | subscriptionBody := *onesignal.NewSubscriptionBody() // SubscriptionBody | @@ -1079,7 +1085,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | user := *onesignal.NewUser() // User | configuration := onesignal.NewConfiguration() @@ -1176,7 +1182,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | aliasLabel := "external_id" // string | aliasId := "YOUR_USER_EXTERNAL_ID" // string | aliasLabelToDelete := "external_id" // string | @@ -1265,7 +1271,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | tokenId := "0aa1b2c3-d4e5-46f7-8899-aabbccddeeff" // string | configuration := onesignal.NewConfiguration() @@ -1348,7 +1354,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | The OneSignal App ID for your app. Available in Keys & IDs. + appId := "YOUR_APP_ID" // string | The OneSignal App ID for your app. Available in Keys & IDs. segmentId := "d6c5a3e1-9f17-44a1-9d10-7c0e4a2b1c8e" // string | The segment_id can be found in the URL of the segment when viewing it in the dashboard. configuration := onesignal.NewConfiguration() @@ -1431,7 +1437,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | subscriptionId := "7e4c5b9a-1f60-4d07-9b1a-2e8c8d2cae51" // string | configuration := onesignal.NewConfiguration() @@ -1513,7 +1519,7 @@ import ( func main() { templateId := "e4d3c2b1-a09f-4f1e-8d7c-6b5a4f3e2d1c" // string | - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | configuration := onesignal.NewConfiguration() apiClient := onesignal.NewAPIClient(configuration) @@ -1594,7 +1600,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | aliasLabel := "external_id" // string | aliasId := "YOUR_USER_EXTERNAL_ID" // string | @@ -1679,7 +1685,7 @@ import ( func main() { notificationId := "b3a0c8bd-3a4c-4b22-9a73-3f1a8c2d1b88" // string | The ID of the notification to export events from. - appId := "00000000-0000-0000-0000-000000000000" // string | The ID of the app that the notification belongs to. + appId := "YOUR_APP_ID" // string | The ID of the app that the notification belongs to. configuration := onesignal.NewConfiguration() apiClient := onesignal.NewAPIClient(configuration) @@ -1760,7 +1766,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | The app ID that you want to export devices from + appId := "YOUR_APP_ID" // string | The app ID that you want to export devices from exportSubscriptionsRequestBody := *onesignal.NewExportSubscriptionsRequestBody() // ExportSubscriptionsRequestBody | (optional) configuration := onesignal.NewConfiguration() @@ -1842,7 +1848,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | aliasLabel := "external_id" // string | aliasId := "YOUR_USER_EXTERNAL_ID" // string | @@ -1928,7 +1934,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | subscriptionId := "7e4c5b9a-1f60-4d07-9b1a-2e8c8d2cae51" // string | configuration := onesignal.NewConfiguration() @@ -2011,7 +2017,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | An app id + appId := "YOUR_APP_ID" // string | An app id configuration := onesignal.NewConfiguration() apiClient := onesignal.NewAPIClient(configuration) @@ -2162,7 +2168,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | notificationId := "b3a0c8bd-3a4c-4b22-9a73-3f1a8c2d1b88" // string | configuration := onesignal.NewConfiguration() @@ -2326,7 +2332,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | The app ID that you want to view notifications from + appId := "YOUR_APP_ID" // string | The app ID that you want to view notifications from limit := int32(10) // int32 | How many notifications to return. Max is 50. Default is 50. (optional) offset := int32(0) // int32 | Page offset. Default is 0. Results are sorted by queued_at in descending order. queued_at is a representation of the time that the notification was queued at. (optional) kind := int32(0) // int32 | Kind of notifications returned: * unset - All notification types (default) * `0` - Dashboard only * `1` - API only * `3` - Automated only (optional) @@ -2410,7 +2416,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | The OneSignal App ID for your app. Available in Keys & IDs. + appId := "YOUR_APP_ID" // string | The OneSignal App ID for your app. Available in Keys & IDs. outcomeNames := "os__session_duration.count,os__click.count" // string | Required Comma-separated list of names and the value (sum/count) for the returned outcome data. Note: Clicks only support count aggregation. For out-of-the-box OneSignal outcomes such as click and session duration, please use the \"os\" prefix with two underscores. For other outcomes, please use the name specified by the user. Example:os__session_duration.count,os__click.count,CustomOutcomeName.sum outcomeNames2 := "os__session_duration.count" // string | Optional If outcome names contain any commas, then please specify only one value at a time. Example: outcome_names[]=os__click.count&outcome_names[]=Sales, Purchase.count where \"Sales, Purchase\" is the custom outcomes with a comma in the name. (optional) outcomeTimeRange := "1d" // string | Optional Time range for the returned data. The values can be 1h (for the last 1 hour data), 1d (for the last 1 day data), or 1mo (for the last 1 month data). Default is 1h if the parameter is omitted. (optional) @@ -2500,7 +2506,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | The OneSignal App ID for your app. Available in Keys & IDs. + appId := "YOUR_APP_ID" // string | The OneSignal App ID for your app. Available in Keys & IDs. offset := int32(0) // int32 | Segments are listed in ascending order of created_at date. offset will omit that number of segments from the beginning of the list. Eg offset 5, will remove the 5 earliest created Segments. (optional) limit := int32(10) // int32 | The amount of Segments in the response. Maximum 300. (optional) @@ -2584,7 +2590,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | aliasLabel := "external_id" // string | aliasId := "YOUR_USER_EXTERNAL_ID" // string | @@ -2670,7 +2676,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | tokenId := "0aa1b2c3-d4e5-46f7-8899-aabbccddeeff" // string | configuration := onesignal.NewConfiguration() @@ -2753,7 +2759,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | Your OneSignal App ID in UUID v4 format. + appId := "YOUR_APP_ID" // string | Your OneSignal App ID in UUID v4 format. activityType := "order_status" // string | The name of the Live Activity defined in your app. This should match the attributes struct used in your app's Live Activity implementation. startLiveActivityRequest := *onesignal.NewStartLiveActivityRequest("Name_example", "Event_example", "ActivityId_example", map[string]interface{}{"key": "value"}, map[string]interface{}{"key": "value"}, *onesignal.NewLanguageStringMap(), *onesignal.NewLanguageStringMap()) // StartLiveActivityRequest | @@ -2838,7 +2844,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | subscriptionId := "7e4c5b9a-1f60-4d07-9b1a-2e8c8d2cae51" // string | transferSubscriptionRequestBody := *onesignal.NewTransferSubscriptionRequestBody() // TransferSubscriptionRequestBody | @@ -2923,7 +2929,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | The OneSignal App ID for your app. Available in Keys & IDs. + appId := "YOUR_APP_ID" // string | The OneSignal App ID for your app. Available in Keys & IDs. notificationId := "b3a0c8bd-3a4c-4b22-9a73-3f1a8c2d1b88" // string | The id of the message found in the creation notification POST response, View Notifications GET response, or URL within the Message Report. token := "YOUR_TOKEN_ID" // string | The unsubscribe token that is generated via liquid syntax in {{subscription.unsubscribe_token}} when personalizing an email. @@ -3008,7 +3014,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | tokenId := "0aa1b2c3-d4e5-46f7-8899-aabbccddeeff" // string | updateApiKeyRequest := *onesignal.NewUpdateApiKeyRequest() // UpdateApiKeyRequest | @@ -3093,7 +3099,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | An app id + appId := "YOUR_APP_ID" // string | An app id app := *onesignal.NewApp() // App | configuration := onesignal.NewConfiguration() @@ -3175,7 +3181,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | The OneSignal App ID for your app. Available in Keys & IDs. + appId := "YOUR_APP_ID" // string | The OneSignal App ID for your app. Available in Keys & IDs. activityId := "12345" // string | Live Activity record ID updateLiveActivityRequest := *onesignal.NewUpdateLiveActivityRequest("Name_example", "Event_example", map[string]interface{}{"key": "value"}) // UpdateLiveActivityRequest | @@ -3260,7 +3266,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | subscriptionId := "7e4c5b9a-1f60-4d07-9b1a-2e8c8d2cae51" // string | subscriptionBody := *onesignal.NewSubscriptionBody() // SubscriptionBody | @@ -3343,7 +3349,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | Your OneSignal App ID in UUID v4 format. + appId := "YOUR_APP_ID" // string | Your OneSignal App ID in UUID v4 format. tokenType := "Email" // string | The type of token to use when looking up the subscription. See Subscription Types. token := "user@example.com" // string | The value of the token to lookup by (e.g., email address, phone number). subscriptionBody := *onesignal.NewSubscriptionBody() // SubscriptionBody | @@ -3432,7 +3438,7 @@ import ( func main() { templateId := "e4d3c2b1-a09f-4f1e-8d7c-6b5a4f3e2d1c" // string | - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | updateTemplateRequest := *onesignal.NewUpdateTemplateRequest() // UpdateTemplateRequest | configuration := onesignal.NewConfiguration() @@ -3515,7 +3521,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | aliasLabel := "external_id" // string | aliasId := "YOUR_USER_EXTERNAL_ID" // string | updateUserRequest := *onesignal.NewUpdateUserRequest() // UpdateUserRequest | @@ -3603,7 +3609,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | configuration := onesignal.NewConfiguration() apiClient := onesignal.NewAPIClient(configuration) @@ -3684,7 +3690,7 @@ import ( func main() { templateId := "e4d3c2b1-a09f-4f1e-8d7c-6b5a4f3e2d1c" // string | - appId := "00000000-0000-0000-0000-000000000000" // string | + appId := "YOUR_APP_ID" // string | configuration := onesignal.NewConfiguration() apiClient := onesignal.NewAPIClient(configuration) @@ -3765,7 +3771,7 @@ import ( ) func main() { - appId := "00000000-0000-0000-0000-000000000000" // string | Your OneSignal App ID in UUID v4 format. + appId := "YOUR_APP_ID" // string | Your OneSignal App ID in UUID v4 format. limit := int32(10) // int32 | Maximum number of templates. Default and max is 50. (optional) (default to 50) offset := int32(0) // int32 | Pagination offset. (optional) (default to 0) channel := "push" // string | Filter by delivery channel. (optional) diff --git a/docs/Notification.md b/docs/Notification.md index 4665be1..91488cd 100644 --- a/docs/Notification.md +++ b/docs/Notification.md @@ -109,7 +109,7 @@ Name | Type | Description | Notes **EmailReplyToAddress** | Pointer to **NullableString** | Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address. | [optional] **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] **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] -**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] +**IncludeUnsubscribed** | Pointer to **NullableBool** | 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] **EmailBcc** | Pointer to **[]string** | Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] **EmailSenderDomain** | Pointer to **NullableString** | Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. | [optional] **SmsFrom** | Pointer to **NullableString** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] @@ -3607,6 +3607,16 @@ SetIncludeUnsubscribed sets IncludeUnsubscribed field to given value. HasIncludeUnsubscribed returns a boolean if a field has been set. +### SetIncludeUnsubscribedNil + +`func (o *Notification) SetIncludeUnsubscribedNil(b bool)` + + SetIncludeUnsubscribedNil sets the value for IncludeUnsubscribed to be an explicit nil + +### UnsetIncludeUnsubscribed +`func (o *Notification) UnsetIncludeUnsubscribed()` + +UnsetIncludeUnsubscribed ensures that no value is present for IncludeUnsubscribed, not even an explicit nil ### GetEmailBcc `func (o *Notification) GetEmailBcc() []string` diff --git a/docs/NotificationWithMeta.md b/docs/NotificationWithMeta.md index 42fc1a4..3b7c6e3 100644 --- a/docs/NotificationWithMeta.md +++ b/docs/NotificationWithMeta.md @@ -109,7 +109,7 @@ Name | Type | Description | Notes **EmailReplyToAddress** | Pointer to **NullableString** | Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address. | [optional] **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] **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] -**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] +**IncludeUnsubscribed** | Pointer to **NullableBool** | 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] **EmailBcc** | Pointer to **[]string** | BCC recipients that were set on this email notification. | [optional] **EmailSenderDomain** | Pointer to **NullableString** | Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. | [optional] **SmsFrom** | Pointer to **NullableString** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] @@ -3619,6 +3619,16 @@ SetIncludeUnsubscribed sets IncludeUnsubscribed field to given value. HasIncludeUnsubscribed returns a boolean if a field has been set. +### SetIncludeUnsubscribedNil + +`func (o *NotificationWithMeta) SetIncludeUnsubscribedNil(b bool)` + + SetIncludeUnsubscribedNil sets the value for IncludeUnsubscribed to be an explicit nil + +### UnsetIncludeUnsubscribed +`func (o *NotificationWithMeta) UnsetIncludeUnsubscribed()` + +UnsetIncludeUnsubscribed ensures that no value is present for IncludeUnsubscribed, not even an explicit nil ### GetEmailBcc `func (o *NotificationWithMeta) GetEmailBcc() []string` diff --git a/model_api_key_token.go b/model_api_key_token.go index edd9653..d165756 100644 --- a/model_api_key_token.go +++ b/model_api_key_token.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_api_key_tokens_list_response.go b/model_api_key_tokens_list_response.go index e96a76f..d59bcbd 100644 --- a/model_api_key_tokens_list_response.go +++ b/model_api_key_tokens_list_response.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_app.go b/model_app.go index c8b792e..2c3db1d 100644 --- a/model_app.go +++ b/model_app.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_basic_notification.go b/model_basic_notification.go index 4f229d1..e49b49d 100644 --- a/model_basic_notification.go +++ b/model_basic_notification.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ @@ -222,7 +222,7 @@ type BasicNotification struct { // 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. DisableEmailClickTracking NullableBool `json:"disable_email_click_tracking,omitempty"` // 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. - IncludeUnsubscribed *bool `json:"include_unsubscribed,omitempty"` + IncludeUnsubscribed NullableBool `json:"include_unsubscribed,omitempty"` // Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. EmailBcc []string `json:"email_bcc,omitempty"` // Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. @@ -4373,36 +4373,46 @@ func (o *BasicNotification) UnsetDisableEmailClickTracking() { o.DisableEmailClickTracking.Unset() } -// GetIncludeUnsubscribed returns the IncludeUnsubscribed field value if set, zero value otherwise. +// GetIncludeUnsubscribed returns the IncludeUnsubscribed field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BasicNotification) GetIncludeUnsubscribed() bool { - if o == nil || o.IncludeUnsubscribed == nil { + if o == nil || o.IncludeUnsubscribed.Get() == nil { var ret bool return ret } - return *o.IncludeUnsubscribed + return *o.IncludeUnsubscribed.Get() } // GetIncludeUnsubscribedOk returns a tuple with the IncludeUnsubscribed field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BasicNotification) GetIncludeUnsubscribedOk() (*bool, bool) { - if o == nil || o.IncludeUnsubscribed == nil { + if o == nil { return nil, false } - return o.IncludeUnsubscribed, true + return o.IncludeUnsubscribed.Get(), o.IncludeUnsubscribed.IsSet() } // HasIncludeUnsubscribed returns a boolean if a field has been set. func (o *BasicNotification) HasIncludeUnsubscribed() bool { - if o != nil && o.IncludeUnsubscribed != nil { + if o != nil && o.IncludeUnsubscribed.IsSet() { return true } return false } -// SetIncludeUnsubscribed gets a reference to the given bool and assigns it to the IncludeUnsubscribed field. +// SetIncludeUnsubscribed gets a reference to the given NullableBool and assigns it to the IncludeUnsubscribed field. func (o *BasicNotification) SetIncludeUnsubscribed(v bool) { - o.IncludeUnsubscribed = &v + o.IncludeUnsubscribed.Set(&v) +} +// SetIncludeUnsubscribedNil sets the value for IncludeUnsubscribed to be an explicit nil +func (o *BasicNotification) SetIncludeUnsubscribedNil() { + o.IncludeUnsubscribed.Set(nil) +} + +// UnsetIncludeUnsubscribed ensures that no value is present for IncludeUnsubscribed, not even an explicit nil +func (o *BasicNotification) UnsetIncludeUnsubscribed() { + o.IncludeUnsubscribed.Unset() } // GetEmailBcc returns the EmailBcc field value if set, zero value otherwise (both if not set or set to explicit null). @@ -5148,8 +5158,8 @@ func (o BasicNotification) MarshalJSON() ([]byte, error) { if o.DisableEmailClickTracking.IsSet() { toSerialize["disable_email_click_tracking"] = o.DisableEmailClickTracking.Get() } - if o.IncludeUnsubscribed != nil { - toSerialize["include_unsubscribed"] = o.IncludeUnsubscribed + if o.IncludeUnsubscribed.IsSet() { + toSerialize["include_unsubscribed"] = o.IncludeUnsubscribed.Get() } if o.EmailBcc != nil { toSerialize["email_bcc"] = o.EmailBcc diff --git a/model_basic_notification_all_of.go b/model_basic_notification_all_of.go index 238d38a..5f0277d 100644 --- a/model_basic_notification_all_of.go +++ b/model_basic_notification_all_of.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ @@ -194,7 +194,7 @@ type BasicNotificationAllOf struct { // 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. DisableEmailClickTracking NullableBool `json:"disable_email_click_tracking,omitempty"` // 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. - IncludeUnsubscribed *bool `json:"include_unsubscribed,omitempty"` + IncludeUnsubscribed NullableBool `json:"include_unsubscribed,omitempty"` // Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. EmailBcc []string `json:"email_bcc,omitempty"` // Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. @@ -3899,36 +3899,46 @@ func (o *BasicNotificationAllOf) UnsetDisableEmailClickTracking() { o.DisableEmailClickTracking.Unset() } -// GetIncludeUnsubscribed returns the IncludeUnsubscribed field value if set, zero value otherwise. +// GetIncludeUnsubscribed returns the IncludeUnsubscribed field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BasicNotificationAllOf) GetIncludeUnsubscribed() bool { - if o == nil || o.IncludeUnsubscribed == nil { + if o == nil || o.IncludeUnsubscribed.Get() == nil { var ret bool return ret } - return *o.IncludeUnsubscribed + return *o.IncludeUnsubscribed.Get() } // GetIncludeUnsubscribedOk returns a tuple with the IncludeUnsubscribed field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BasicNotificationAllOf) GetIncludeUnsubscribedOk() (*bool, bool) { - if o == nil || o.IncludeUnsubscribed == nil { + if o == nil { return nil, false } - return o.IncludeUnsubscribed, true + return o.IncludeUnsubscribed.Get(), o.IncludeUnsubscribed.IsSet() } // HasIncludeUnsubscribed returns a boolean if a field has been set. func (o *BasicNotificationAllOf) HasIncludeUnsubscribed() bool { - if o != nil && o.IncludeUnsubscribed != nil { + if o != nil && o.IncludeUnsubscribed.IsSet() { return true } return false } -// SetIncludeUnsubscribed gets a reference to the given bool and assigns it to the IncludeUnsubscribed field. +// SetIncludeUnsubscribed gets a reference to the given NullableBool and assigns it to the IncludeUnsubscribed field. func (o *BasicNotificationAllOf) SetIncludeUnsubscribed(v bool) { - o.IncludeUnsubscribed = &v + o.IncludeUnsubscribed.Set(&v) +} +// SetIncludeUnsubscribedNil sets the value for IncludeUnsubscribed to be an explicit nil +func (o *BasicNotificationAllOf) SetIncludeUnsubscribedNil() { + o.IncludeUnsubscribed.Set(nil) +} + +// UnsetIncludeUnsubscribed ensures that no value is present for IncludeUnsubscribed, not even an explicit nil +func (o *BasicNotificationAllOf) UnsetIncludeUnsubscribed() { + o.IncludeUnsubscribed.Unset() } // GetEmailBcc returns the EmailBcc field value if set, zero value otherwise (both if not set or set to explicit null). @@ -4632,8 +4642,8 @@ func (o BasicNotificationAllOf) MarshalJSON() ([]byte, error) { if o.DisableEmailClickTracking.IsSet() { toSerialize["disable_email_click_tracking"] = o.DisableEmailClickTracking.Get() } - if o.IncludeUnsubscribed != nil { - toSerialize["include_unsubscribed"] = o.IncludeUnsubscribed + if o.IncludeUnsubscribed.IsSet() { + toSerialize["include_unsubscribed"] = o.IncludeUnsubscribed.Get() } if o.EmailBcc != nil { toSerialize["email_bcc"] = o.EmailBcc diff --git a/model_basic_notification_all_of_android_background_layout.go b/model_basic_notification_all_of_android_background_layout.go index 6922aae..b7e00a5 100644 --- a/model_basic_notification_all_of_android_background_layout.go +++ b/model_basic_notification_all_of_android_background_layout.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_button.go b/model_button.go index 609275c..879f275 100644 --- a/model_button.go +++ b/model_button.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_copy_template_request.go b/model_copy_template_request.go index 7b30f28..4fe7284 100644 --- a/model_copy_template_request.go +++ b/model_copy_template_request.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_create_api_key_request.go b/model_create_api_key_request.go index bc21f42..a197041 100644 --- a/model_create_api_key_request.go +++ b/model_create_api_key_request.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_create_api_key_response.go b/model_create_api_key_response.go index cf0301f..5256e26 100644 --- a/model_create_api_key_response.go +++ b/model_create_api_key_response.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_create_notification_success_response.go b/model_create_notification_success_response.go index d142da0..2351497 100644 --- a/model_create_notification_success_response.go +++ b/model_create_notification_success_response.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_create_segment_conflict_response.go b/model_create_segment_conflict_response.go index d65ec24..d586756 100644 --- a/model_create_segment_conflict_response.go +++ b/model_create_segment_conflict_response.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_create_segment_success_response.go b/model_create_segment_success_response.go index 0f5cdeb..28020da 100644 --- a/model_create_segment_success_response.go +++ b/model_create_segment_success_response.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_create_template_request.go b/model_create_template_request.go index 0a183a4..9180eeb 100644 --- a/model_create_template_request.go +++ b/model_create_template_request.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_create_user_conflict_response.go b/model_create_user_conflict_response.go index 144363c..f47c5f7 100644 --- a/model_create_user_conflict_response.go +++ b/model_create_user_conflict_response.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_create_user_conflict_response_errors_inner.go b/model_create_user_conflict_response_errors_inner.go index b94bbb7..12e25e3 100644 --- a/model_create_user_conflict_response_errors_inner.go +++ b/model_create_user_conflict_response_errors_inner.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_create_user_conflict_response_errors_items_meta.go b/model_create_user_conflict_response_errors_items_meta.go index 48f0ba7..ab6f0e1 100644 --- a/model_create_user_conflict_response_errors_items_meta.go +++ b/model_create_user_conflict_response_errors_items_meta.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_custom_event.go b/model_custom_event.go index 4cd9dff..83f1524 100644 --- a/model_custom_event.go +++ b/model_custom_event.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_custom_events_request.go b/model_custom_events_request.go index cb65f8c..2a212f7 100644 --- a/model_custom_events_request.go +++ b/model_custom_events_request.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_delivery_data.go b/model_delivery_data.go index 9206598..70b52dc 100644 --- a/model_delivery_data.go +++ b/model_delivery_data.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_export_events_success_response.go b/model_export_events_success_response.go index 7f56482..3dec909 100644 --- a/model_export_events_success_response.go +++ b/model_export_events_success_response.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_export_subscriptions_request_body.go b/model_export_subscriptions_request_body.go index 6778c84..d2c9d82 100644 --- a/model_export_subscriptions_request_body.go +++ b/model_export_subscriptions_request_body.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_export_subscriptions_success_response.go b/model_export_subscriptions_success_response.go index 8fef3be..b1bdf26 100644 --- a/model_export_subscriptions_success_response.go +++ b/model_export_subscriptions_success_response.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_filter.go b/model_filter.go index 7fb6c8e..1a85d4b 100644 --- a/model_filter.go +++ b/model_filter.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_filter_expression.go b/model_filter_expression.go index fd145f5..e80b858 100644 --- a/model_filter_expression.go +++ b/model_filter_expression.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_generic_error.go b/model_generic_error.go index d5d357e..bbace54 100644 --- a/model_generic_error.go +++ b/model_generic_error.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_generic_success_bool_response.go b/model_generic_success_bool_response.go index 214b70d..fcc065b 100644 --- a/model_generic_success_bool_response.go +++ b/model_generic_success_bool_response.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_get_notification_history_request_body.go b/model_get_notification_history_request_body.go index 6698f6a..0863d3a 100644 --- a/model_get_notification_history_request_body.go +++ b/model_get_notification_history_request_body.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_get_segments_success_response.go b/model_get_segments_success_response.go index c25e55c..bff3145 100644 --- a/model_get_segments_success_response.go +++ b/model_get_segments_success_response.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_language_string_map.go b/model_language_string_map.go index 62d67b4..b14ece7 100644 --- a/model_language_string_map.go +++ b/model_language_string_map.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_notification.go b/model_notification.go index c946f5a..2b3b829 100644 --- a/model_notification.go +++ b/model_notification.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ @@ -223,7 +223,7 @@ type Notification struct { // 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. DisableEmailClickTracking NullableBool `json:"disable_email_click_tracking,omitempty"` // 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. - IncludeUnsubscribed *bool `json:"include_unsubscribed,omitempty"` + IncludeUnsubscribed NullableBool `json:"include_unsubscribed,omitempty"` // Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. EmailBcc []string `json:"email_bcc,omitempty"` // Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. @@ -4376,36 +4376,46 @@ func (o *Notification) UnsetDisableEmailClickTracking() { o.DisableEmailClickTracking.Unset() } -// GetIncludeUnsubscribed returns the IncludeUnsubscribed field value if set, zero value otherwise. +// GetIncludeUnsubscribed returns the IncludeUnsubscribed field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Notification) GetIncludeUnsubscribed() bool { - if o == nil || o.IncludeUnsubscribed == nil { + if o == nil || o.IncludeUnsubscribed.Get() == nil { var ret bool return ret } - return *o.IncludeUnsubscribed + return *o.IncludeUnsubscribed.Get() } // GetIncludeUnsubscribedOk returns a tuple with the IncludeUnsubscribed field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Notification) GetIncludeUnsubscribedOk() (*bool, bool) { - if o == nil || o.IncludeUnsubscribed == nil { + if o == nil { return nil, false } - return o.IncludeUnsubscribed, true + return o.IncludeUnsubscribed.Get(), o.IncludeUnsubscribed.IsSet() } // HasIncludeUnsubscribed returns a boolean if a field has been set. func (o *Notification) HasIncludeUnsubscribed() bool { - if o != nil && o.IncludeUnsubscribed != nil { + if o != nil && o.IncludeUnsubscribed.IsSet() { return true } return false } -// SetIncludeUnsubscribed gets a reference to the given bool and assigns it to the IncludeUnsubscribed field. +// SetIncludeUnsubscribed gets a reference to the given NullableBool and assigns it to the IncludeUnsubscribed field. func (o *Notification) SetIncludeUnsubscribed(v bool) { - o.IncludeUnsubscribed = &v + o.IncludeUnsubscribed.Set(&v) +} +// SetIncludeUnsubscribedNil sets the value for IncludeUnsubscribed to be an explicit nil +func (o *Notification) SetIncludeUnsubscribedNil() { + o.IncludeUnsubscribed.Set(nil) +} + +// UnsetIncludeUnsubscribed ensures that no value is present for IncludeUnsubscribed, not even an explicit nil +func (o *Notification) UnsetIncludeUnsubscribed() { + o.IncludeUnsubscribed.Unset() } // GetEmailBcc returns the EmailBcc field value if set, zero value otherwise (both if not set or set to explicit null). @@ -5193,8 +5203,8 @@ func (o Notification) MarshalJSON() ([]byte, error) { if o.DisableEmailClickTracking.IsSet() { toSerialize["disable_email_click_tracking"] = o.DisableEmailClickTracking.Get() } - if o.IncludeUnsubscribed != nil { - toSerialize["include_unsubscribed"] = o.IncludeUnsubscribed + if o.IncludeUnsubscribed.IsSet() { + toSerialize["include_unsubscribed"] = o.IncludeUnsubscribed.Get() } if o.EmailBcc != nil { toSerialize["email_bcc"] = o.EmailBcc diff --git a/model_notification_all_of.go b/model_notification_all_of.go index f4838ed..8dc3de6 100644 --- a/model_notification_all_of.go +++ b/model_notification_all_of.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_notification_history_success_response.go b/model_notification_history_success_response.go index 2e601b1..0038269 100644 --- a/model_notification_history_success_response.go +++ b/model_notification_history_success_response.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_notification_slice.go b/model_notification_slice.go index b7ac2ad..aded94a 100644 --- a/model_notification_slice.go +++ b/model_notification_slice.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_notification_target.go b/model_notification_target.go index ebd3b92..e0a0fa3 100644 --- a/model_notification_target.go +++ b/model_notification_target.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_notification_with_meta.go b/model_notification_with_meta.go index ab87c72..eb95df3 100644 --- a/model_notification_with_meta.go +++ b/model_notification_with_meta.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ @@ -222,7 +222,7 @@ type NotificationWithMeta struct { // 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. DisableEmailClickTracking NullableBool `json:"disable_email_click_tracking,omitempty"` // 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. - IncludeUnsubscribed *bool `json:"include_unsubscribed,omitempty"` + IncludeUnsubscribed NullableBool `json:"include_unsubscribed,omitempty"` // BCC recipients that were set on this email notification. EmailBcc []string `json:"email_bcc,omitempty"` // Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. @@ -4397,36 +4397,46 @@ func (o *NotificationWithMeta) UnsetDisableEmailClickTracking() { o.DisableEmailClickTracking.Unset() } -// GetIncludeUnsubscribed returns the IncludeUnsubscribed field value if set, zero value otherwise. +// GetIncludeUnsubscribed returns the IncludeUnsubscribed field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NotificationWithMeta) GetIncludeUnsubscribed() bool { - if o == nil || o.IncludeUnsubscribed == nil { + if o == nil || o.IncludeUnsubscribed.Get() == nil { var ret bool return ret } - return *o.IncludeUnsubscribed + return *o.IncludeUnsubscribed.Get() } // GetIncludeUnsubscribedOk returns a tuple with the IncludeUnsubscribed field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *NotificationWithMeta) GetIncludeUnsubscribedOk() (*bool, bool) { - if o == nil || o.IncludeUnsubscribed == nil { + if o == nil { return nil, false } - return o.IncludeUnsubscribed, true + return o.IncludeUnsubscribed.Get(), o.IncludeUnsubscribed.IsSet() } // HasIncludeUnsubscribed returns a boolean if a field has been set. func (o *NotificationWithMeta) HasIncludeUnsubscribed() bool { - if o != nil && o.IncludeUnsubscribed != nil { + if o != nil && o.IncludeUnsubscribed.IsSet() { return true } return false } -// SetIncludeUnsubscribed gets a reference to the given bool and assigns it to the IncludeUnsubscribed field. +// SetIncludeUnsubscribed gets a reference to the given NullableBool and assigns it to the IncludeUnsubscribed field. func (o *NotificationWithMeta) SetIncludeUnsubscribed(v bool) { - o.IncludeUnsubscribed = &v + o.IncludeUnsubscribed.Set(&v) +} +// SetIncludeUnsubscribedNil sets the value for IncludeUnsubscribed to be an explicit nil +func (o *NotificationWithMeta) SetIncludeUnsubscribedNil() { + o.IncludeUnsubscribed.Set(nil) +} + +// UnsetIncludeUnsubscribed ensures that no value is present for IncludeUnsubscribed, not even an explicit nil +func (o *NotificationWithMeta) UnsetIncludeUnsubscribed() { + o.IncludeUnsubscribed.Unset() } // GetEmailBcc returns the EmailBcc field value if set, zero value otherwise (both if not set or set to explicit null). @@ -5628,8 +5638,8 @@ func (o NotificationWithMeta) MarshalJSON() ([]byte, error) { if o.DisableEmailClickTracking.IsSet() { toSerialize["disable_email_click_tracking"] = o.DisableEmailClickTracking.Get() } - if o.IncludeUnsubscribed != nil { - toSerialize["include_unsubscribed"] = o.IncludeUnsubscribed + if o.IncludeUnsubscribed.IsSet() { + toSerialize["include_unsubscribed"] = o.IncludeUnsubscribed.Get() } if o.EmailBcc != nil { toSerialize["email_bcc"] = o.EmailBcc diff --git a/model_notification_with_meta_all_of.go b/model_notification_with_meta_all_of.go index 1ea6727..3a2c127 100644 --- a/model_notification_with_meta_all_of.go +++ b/model_notification_with_meta_all_of.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_operator.go b/model_operator.go index ed5da9f..610f1a2 100644 --- a/model_operator.go +++ b/model_operator.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_outcome_data.go b/model_outcome_data.go index 225ba27..70ad0dc 100644 --- a/model_outcome_data.go +++ b/model_outcome_data.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_outcomes_data.go b/model_outcomes_data.go index 5ea16cb..3b020a8 100644 --- a/model_outcomes_data.go +++ b/model_outcomes_data.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_platform_delivery_data.go b/model_platform_delivery_data.go index 723e324..08ff95b 100644 --- a/model_platform_delivery_data.go +++ b/model_platform_delivery_data.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_platform_delivery_data_email_all_of.go b/model_platform_delivery_data_email_all_of.go index b27bfdb..998da27 100644 --- a/model_platform_delivery_data_email_all_of.go +++ b/model_platform_delivery_data_email_all_of.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_platform_delivery_data_sms_all_of.go b/model_platform_delivery_data_sms_all_of.go index d31df6a..e5dfb5e 100644 --- a/model_platform_delivery_data_sms_all_of.go +++ b/model_platform_delivery_data_sms_all_of.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_properties_body.go b/model_properties_body.go index 0271aee..6138c5d 100644 --- a/model_properties_body.go +++ b/model_properties_body.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_properties_deltas.go b/model_properties_deltas.go index 1d9cdf9..1cca751 100644 --- a/model_properties_deltas.go +++ b/model_properties_deltas.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_properties_object.go b/model_properties_object.go index fb8a375..4a925ab 100644 --- a/model_properties_object.go +++ b/model_properties_object.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_purchase.go b/model_purchase.go index 0ee507b..3102262 100644 --- a/model_purchase.go +++ b/model_purchase.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_rate_limit_error.go b/model_rate_limit_error.go index 8da61c8..8bf7862 100644 --- a/model_rate_limit_error.go +++ b/model_rate_limit_error.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_segment.go b/model_segment.go index ccfe4ca..50a770d 100644 --- a/model_segment.go +++ b/model_segment.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_segment_data.go b/model_segment_data.go index 33a1e56..7b535fa 100644 --- a/model_segment_data.go +++ b/model_segment_data.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_segment_notification_target.go b/model_segment_notification_target.go index d010b44..6307afa 100644 --- a/model_segment_notification_target.go +++ b/model_segment_notification_target.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_start_live_activity_request.go b/model_start_live_activity_request.go index 65e00e7..cbf0678 100644 --- a/model_start_live_activity_request.go +++ b/model_start_live_activity_request.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_start_live_activity_success_response.go b/model_start_live_activity_success_response.go index bfedf71..abf9812 100644 --- a/model_start_live_activity_success_response.go +++ b/model_start_live_activity_success_response.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_subscription.go b/model_subscription.go index f485f2e..aa1acb4 100644 --- a/model_subscription.go +++ b/model_subscription.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_subscription_body.go b/model_subscription_body.go index da0f4b6..fe51cfd 100644 --- a/model_subscription_body.go +++ b/model_subscription_body.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_subscription_notification_target.go b/model_subscription_notification_target.go index 8006f51..309cacb 100644 --- a/model_subscription_notification_target.go +++ b/model_subscription_notification_target.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_template_resource.go b/model_template_resource.go index 2311127..1b2beda 100644 --- a/model_template_resource.go +++ b/model_template_resource.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_templates_list_response.go b/model_templates_list_response.go index dc8baba..589fa64 100644 --- a/model_templates_list_response.go +++ b/model_templates_list_response.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_transfer_subscription_request_body.go b/model_transfer_subscription_request_body.go index a9aaf5d..bed40c5 100644 --- a/model_transfer_subscription_request_body.go +++ b/model_transfer_subscription_request_body.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_update_api_key_request.go b/model_update_api_key_request.go index d4d8ec8..6eaf19e 100644 --- a/model_update_api_key_request.go +++ b/model_update_api_key_request.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_update_live_activity_request.go b/model_update_live_activity_request.go index 068cc8b..b3cf0eb 100644 --- a/model_update_live_activity_request.go +++ b/model_update_live_activity_request.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_update_live_activity_success_response.go b/model_update_live_activity_success_response.go index 4787c31..727e15e 100644 --- a/model_update_live_activity_success_response.go +++ b/model_update_live_activity_success_response.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_update_template_request.go b/model_update_template_request.go index c530cc2..c220bce 100644 --- a/model_update_template_request.go +++ b/model_update_template_request.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_update_user_request.go b/model_update_user_request.go index 25cf75a..ed2aeaa 100644 --- a/model_update_user_request.go +++ b/model_update_user_request.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_user.go b/model_user.go index a7be3c4..c9578b2 100644 --- a/model_user.go +++ b/model_user.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_user_identity_body.go b/model_user_identity_body.go index b95f14c..e71ae29 100644 --- a/model_user_identity_body.go +++ b/model_user_identity_body.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/model_web_button.go b/model_web_button.go index 1a7a38f..e18ad79 100644 --- a/model_web_button.go +++ b/model_web_button.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/response.go b/response.go index a00c76b..44dedb3 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */ diff --git a/utils.go b/utils.go index b7182a9..f0a01ef 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ OneSignal A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -API version: 5.8.0 +API version: 5.9.0 Contact: devrel@onesignal.com */