From d04b7b81536f55449eca4125bfc3c624bbd2a88a Mon Sep 17 00:00:00 2001 From: "Jakob (Koby) Shimony" Date: Tue, 1 Oct 2019 16:19:22 +0200 Subject: [PATCH] v1.2.0 (#4) - Add `ReferralRejectionReason` object and integration response properties - Add users emails notifications subscriptions - Remove stale `usedAt` and `locked` properties from Webhooks and Attributes --- README.md | 7 +- api/swagger.yaml | 164 +++++++++++++++++++---------- configuration.go | 2 +- docs/ApplicationSession.md | 3 +- docs/Attribute.md | 2 - docs/ErrorSource.md | 1 + docs/Meta.md | 1 + docs/Notification.md | 12 +++ docs/Notifications.md | 9 ++ docs/ReferralRejectionReason.md | 12 +++ docs/UpdateUser.md | 1 + docs/User.md | 1 + docs/Webhook.md | 1 - model_application_session.go | 4 +- model_attribute.go | 4 - model_error_source.go | 2 + model_meta.go | 1 + model_notification.go | 19 ++++ model_notifications.go | 13 +++ model_referral_rejection_reason.go | 17 +++ model_update_user.go | 1 + model_user.go | 1 + model_webhook.go | 2 - 23 files changed, 211 insertions(+), 69 deletions(-) create mode 100644 docs/Notification.md create mode 100644 docs/Notifications.md create mode 100644 docs/ReferralRejectionReason.md create mode 100644 model_notification.go create mode 100644 model_notifications.go create mode 100644 model_referral_rejection_reason.go diff --git a/README.md b/README.md index af6657f5..231ce970 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ The Talon.One API is used to manage applications and campaigns, as well as to in This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client. - API version: 1.0.0 -- Package version: 1.1.2 +- Package version: 1.2.0 - Build package: io.swagger.codegen.languages.GoClientCodegen ## Installation @@ -106,8 +106,6 @@ func main() { fmt.Println(response) } } - -} ``` ## Documentation for API Endpoints @@ -342,7 +340,10 @@ Class | Method | HTTP request | Description - [NewTemplateDef](docs/NewTemplateDef.md) - [NewUser](docs/NewUser.md) - [NewWebhook](docs/NewWebhook.md) + - [Notification](docs/Notification.md) + - [Notifications](docs/Notifications.md) - [Referral](docs/Referral.md) + - [ReferralRejectionReason](docs/ReferralRejectionReason.md) - [Role](docs/Role.md) - [RoleAssign](docs/RoleAssign.md) - [RoleMembership](docs/RoleMembership.md) diff --git a/api/swagger.yaml b/api/swagger.yaml index 38884284..d3b03a96 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -5124,6 +5124,9 @@ definitions: type: "string" description: "Line number in uploaded multipart file that caused this error.\ \ 'N/A' if unknown." + resource: + type: "string" + description: "Pointer to the resource that caused this error" description: "The source of the current error, exactly one of `pointer`, `parameter`\ \ or `line` will be defined.\n" Entity: @@ -6951,15 +6954,19 @@ definitions: description: "Contains a list of all roles a user is a memeber of" items: type: "integer" + applicationNotificationSubscriptions: + type: "object" + properties: {} description: "" example: - accountId: 1 - inviteToken: "inviteToken" releaseUpdate: true created: "2000-01-23T04:56:07.000+00:00" roles: - 5 - 5 + accountId: 1 + applicationNotificationSubscriptions: "{}" + inviteToken: "inviteToken" name: "name" modified: "2000-01-23T04:56:07.000+00:00" id: 6 @@ -7399,10 +7406,10 @@ definitions: programs: key: ledger: - currentBalance: 6.96511769763884558415156789124011993408203125 + currentBalance: 2.884162126668780246063761296682059764862060546875 subLedgers: key: - currentBalance: 6.96511769763884558415156789124011993408203125 + currentBalance: 2.884162126668780246063761296682059764862060546875 name: "name" title: "title" LoyaltyProgramLedgers: @@ -7430,10 +7437,10 @@ definitions: description: "Customer specific information about loyalty points." example: ledger: - currentBalance: 6.96511769763884558415156789124011993408203125 + currentBalance: 2.884162126668780246063761296682059764862060546875 subLedgers: key: - currentBalance: 6.96511769763884558415156789124011993408203125 + currentBalance: 2.884162126668780246063761296682059764862060546875 name: "name" title: "title" LoyaltyProgramBalance: @@ -7446,7 +7453,7 @@ definitions: title: "Current Balance" description: "The balance in a Loyalty Program for some Customer." example: - currentBalance: 6.96511769763884558415156789124011993408203125 + currentBalance: 2.884162126668780246063761296682059764862060546875 CustomerProfileSearchQuery: type: "object" properties: @@ -8081,6 +8088,10 @@ definitions: meta: campaigns: "{}" coupons: "{}" + referralRejectionReason: + reason: "ReferralNotFound" + campaignId: 6 + referralId: 1 warnings: "{}" couponRejectionReason: reason: "CouponNotFound" @@ -8194,10 +8205,10 @@ definitions: programs: key: ledger: - currentBalance: 6.96511769763884558415156789124011993408203125 + currentBalance: 2.884162126668780246063761296682059764862060546875 subLedgers: key: - currentBalance: 6.96511769763884558415156789124011993408203125 + currentBalance: 2.884162126668780246063761296682059764862060546875 name: "name" title: "title" event: @@ -8209,6 +8220,10 @@ definitions: meta: campaigns: "{}" coupons: "{}" + referralRejectionReason: + reason: "ReferralNotFound" + campaignId: 6 + referralId: 1 warnings: "{}" couponRejectionReason: reason: "CouponNotFound" @@ -8345,7 +8360,7 @@ definitions: description: "Any coupon code entered." referral: type: "string" - description: "Any referal code entered." + description: "Any referral code entered." state: type: "string" description: "Indicating if the customer session is in progress (\"open\"\ @@ -8365,12 +8380,16 @@ definitions: \ session." additionalProperties: type: "number" + total: + type: "number" + description: "The total sum of the session before any discounts applied." attributes: type: "object" description: "Arbitrary properties associated with this item" properties: {} description: "" example: + total: 2.3021358869347654518833223846741020679473876953125 referral: "referral" coupon: "coupon" discounts: @@ -8811,6 +8830,9 @@ definitions: description: "Update" items: type: "integer" + applicationNotificationSubscriptions: + type: "object" + properties: {} description: "" NewInviteEmail: type: "object" @@ -9174,12 +9196,10 @@ definitions: - "editable" - "entity" - "id" - - "locked" - "name" - "suggestions" - "title" - "type" - - "usedAt" properties: id: type: "integer" @@ -9246,26 +9266,13 @@ definitions: editable: type: "boolean" description: "Whether or not this attribute can be edited." - locked: - type: "boolean" - description: "Indicates whether this attribute is in use. If in use only title\ - \ can be changed and other operations are prohibited." - default: false - usedAt: - type: "array" - description: "array of rulesets where the attribute is used" - items: - type: "string" description: "" example: + accountId: 6 created: "2000-01-23T04:56:07.000+00:00" editable: true - description: "description" - eventType: "eventType" - title: "title" - type: "string" - accountId: 6 name: "name" + description: "description" suggestions: - "suggestions" - "suggestions" @@ -9277,11 +9284,10 @@ definitions: - "suggestions" - "suggestions" - "suggestions" - usedAt: - - "usedAt" - - "usedAt" id: 0 - locked: false + eventType: "eventType" + title: "title" + type: "string" entity: "Account" NewEventType: type: "object" @@ -9508,7 +9514,6 @@ definitions: - "params" - "title" - "url" - - "usedAt" - "verb" properties: id: @@ -9562,11 +9567,6 @@ definitions: enabled: type: "boolean" description: "Enables or disables webhook from showing in rule builder" - usedAt: - type: "array" - description: "array of rulesets where webhook is used" - items: - type: "string" description: "" example: headers: @@ -9576,9 +9576,6 @@ definitions: created: "2000-01-23T04:56:07.000+00:00" verb: "POST" modified: "2000-01-23T04:56:07.000+00:00" - usedAt: - - "usedAt" - - "usedAt" id: 6 title: "title" params: @@ -9998,12 +9995,18 @@ definitions: properties: {} couponRejectionReason: $ref: "#/definitions/CouponRejectionReason" + referralRejectionReason: + $ref: "#/definitions/ReferralRejectionReason" warnings: type: "object" properties: {} example: campaigns: "{}" coupons: "{}" + referralRejectionReason: + reason: "ReferralNotFound" + campaignId: 6 + referralId: 1 warnings: "{}" couponRejectionReason: reason: "CouponNotFound" @@ -10025,6 +10028,7 @@ definitions: enum: - "CouponNotFound" - "CouponPartOfNotRunningCampaign" + - "CouponValidConditionMissing" - "CouponLimitReached" - "CampaignLimitReached" - "ProfileLimitReached" @@ -10032,6 +10036,7 @@ definitions: - "CouponExpired" - "CouponStartDateInFuture" - "CouponRejectedByCondition" + - "EffectCouldNotBeApplied" description: "Holds a reference to the campaign, the coupon and the reason for\ \ which that coupon was rejected. Should only be present when there is a 'rejectCoupon'\ \ effect." @@ -10039,6 +10044,39 @@ definitions: reason: "CouponNotFound" campaignId: 6 couponId: 3 + ReferralRejectionReason: + type: "object" + required: + - "campaignId" + - "reason" + - "referralId" + properties: + campaignId: + type: "integer" + referralId: + type: "integer" + reason: + type: "string" + enum: + - "ReferralNotFound" + - "ReferralRecipientIdSameAsAdvocate" + - "ReferralPartOfNotRunningCampaign" + - "ReferralValidConditionMissing" + - "ReferralLimitReached" + - "CampaignLimitReached" + - "ProfileLimitReached" + - "ReferralRecipientDoesNotMatch" + - "ReferralExpired" + - "ReferralStartDateInFuture" + - "ReferralRejectedByCondition" + - "EffectCouldNotBeApplied" + description: "Holds a reference to the campaign, the referral and the reason for\ + \ which that referral was rejected. Should only be present when there is a 'rejectReferral'\ + \ effect." + example: + reason: "ReferralNotFound" + campaignId: 6 + referralId: 1 ApplicationAPIKey: type: "object" required: @@ -10125,6 +10163,26 @@ definitions: type: "string" format: "date-time" description: "The date the API key expired" + Notification: + type: "object" + required: + - "description" + - "id" + - "name" + properties: + id: + type: "integer" + description: "id of the notification" + name: + type: "string" + description: "name of the notification" + description: + type: "string" + description: "description of the notification" + Notifications: + type: "array" + items: + $ref: "#/definitions/Notification" inline_response_200: required: - "data" @@ -10960,7 +11018,8 @@ definitions: $ref: "#/definitions/ApplicationSession" example: data: - - referral: "referral" + - total: 2.3021358869347654518833223846741020679473876953125 + referral: "referral" coupon: "coupon" discounts: key: 5.63737665663332876420099637471139430999755859375 @@ -11002,7 +11061,8 @@ definitions: sku: "sku" category: "category" height: 5.63737665663332876420099637471139430999755859375 - - referral: "referral" + - total: 2.3021358869347654518833223846741020679473876953125 + referral: "referral" coupon: "coupon" discounts: key: 5.63737665663332876420099637471139430999755859375 @@ -11149,9 +11209,6 @@ definitions: created: "2000-01-23T04:56:07.000+00:00" verb: "POST" modified: "2000-01-23T04:56:07.000+00:00" - usedAt: - - "usedAt" - - "usedAt" id: 6 title: "title" params: @@ -11175,9 +11232,6 @@ definitions: created: "2000-01-23T04:56:07.000+00:00" verb: "POST" modified: "2000-01-23T04:56:07.000+00:00" - usedAt: - - "usedAt" - - "usedAt" id: 6 title: "title" params: @@ -11308,13 +11362,14 @@ definitions: $ref: "#/definitions/User" example: data: - - accountId: 1 - inviteToken: "inviteToken" - releaseUpdate: true + - releaseUpdate: true created: "2000-01-23T04:56:07.000+00:00" roles: - 5 - 5 + accountId: 1 + applicationNotificationSubscriptions: "{}" + inviteToken: "inviteToken" name: "name" modified: "2000-01-23T04:56:07.000+00:00" id: 6 @@ -11322,13 +11377,14 @@ definitions: latestFeature: "latestFeature" email: "email" policy: "policy" - - accountId: 1 - inviteToken: "inviteToken" - releaseUpdate: true + - releaseUpdate: true created: "2000-01-23T04:56:07.000+00:00" roles: - 5 - 5 + accountId: 1 + applicationNotificationSubscriptions: "{}" + inviteToken: "inviteToken" name: "name" modified: "2000-01-23T04:56:07.000+00:00" id: 6 diff --git a/configuration.go b/configuration.go index ae800f12..a0988fde 100644 --- a/configuration.go +++ b/configuration.go @@ -62,7 +62,7 @@ func NewConfiguration() *Configuration { cfg := &Configuration{ BasePath: "https://localhost", DefaultHeader: make(map[string]string), - UserAgent: "Swagger-Codegen/1.1.2/go", + UserAgent: "Swagger-Codegen/1.2.0/go", } return cfg } diff --git a/docs/ApplicationSession.md b/docs/ApplicationSession.md index 14c52eb4..f908fcd5 100644 --- a/docs/ApplicationSession.md +++ b/docs/ApplicationSession.md @@ -9,10 +9,11 @@ Name | Type | Description | Notes **ProfileId** | **int32** | The globally unique Talon.One ID of the customer that created this entity. | [optional] [default to null] **IntegrationId** | **string** | The ID used for this entity in the application system. | [default to null] **Coupon** | **string** | Any coupon code entered. | [default to null] -**Referral** | **string** | Any referal code entered. | [default to null] +**Referral** | **string** | Any referral code entered. | [default to null] **State** | **string** | Indicating if the customer session is in progress (\"open\"), \"closed\", or \"cancelled\". | [default to null] **CartItems** | [**[]CartItem**](CartItem.md) | Serialized JSON representation. | [default to null] **Discounts** | **map[string]float32** | A map of labelled discount values, in the same currency as the session. | [default to null] +**Total** | **float32** | The total sum of the session before any discounts applied. | [optional] [default to null] **Attributes** | [***interface{}**](interface{}.md) | Arbitrary properties associated with this item | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Attribute.md b/docs/Attribute.md index f9412a7d..e0a4084c 100644 --- a/docs/Attribute.md +++ b/docs/Attribute.md @@ -14,8 +14,6 @@ Name | Type | Description | Notes **Description** | **string** | A description of this attribute. | [default to null] **Suggestions** | **[]string** | A list of suggestions for the attribute. | [default to null] **Editable** | **bool** | Whether or not this attribute can be edited. | [default to null] -**Locked** | **bool** | Indicates whether this attribute is in use. If in use only title can be changed and other operations are prohibited. | [default to null] -**UsedAt** | **[]string** | array of rulesets where the attribute is used | [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ErrorSource.md b/docs/ErrorSource.md index 7d904905..7a56e00c 100644 --- a/docs/ErrorSource.md +++ b/docs/ErrorSource.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **Pointer** | **string** | Pointer to the path in the payload that caused this error. | [optional] [default to null] **Parameter** | **string** | Query parameter that caused this error. | [optional] [default to null] **Line** | **string** | Line number in uploaded multipart file that caused this error. 'N/A' if unknown. | [optional] [default to null] +**Resource** | **string** | Pointer to the resource that caused this error | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Meta.md b/docs/Meta.md index 6c1f676d..2ccf41b7 100644 --- a/docs/Meta.md +++ b/docs/Meta.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **Campaigns** | [***interface{}**](interface{}.md) | Maps each evaluated campaign ID to a key-value list of that campaigns attributes. Campaigns without attributes will be omitted. | [optional] [default to null] **Coupons** | [***interface{}**](interface{}.md) | Maps the coupon value to a key-value list of that coupons attributes. | [optional] [default to null] **CouponRejectionReason** | [***CouponRejectionReason**](CouponRejectionReason.md) | | [optional] [default to null] +**ReferralRejectionReason** | [***ReferralRejectionReason**](ReferralRejectionReason.md) | | [optional] [default to null] **Warnings** | [***interface{}**](interface{}.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Notification.md b/docs/Notification.md new file mode 100644 index 00000000..7df74df4 --- /dev/null +++ b/docs/Notification.md @@ -0,0 +1,12 @@ +# Notification + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | id of the notification | [default to null] +**Name** | **string** | name of the notification | [default to null] +**Description** | **string** | description of the notification | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Notifications.md b/docs/Notifications.md new file mode 100644 index 00000000..6da0111b --- /dev/null +++ b/docs/Notifications.md @@ -0,0 +1,9 @@ +# Notifications + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReferralRejectionReason.md b/docs/ReferralRejectionReason.md new file mode 100644 index 00000000..36b75849 --- /dev/null +++ b/docs/ReferralRejectionReason.md @@ -0,0 +1,12 @@ +# ReferralRejectionReason + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CampaignId** | **int32** | | [default to null] +**ReferralId** | **int32** | | [default to null] +**Reason** | **string** | | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateUser.md b/docs/UpdateUser.md index efa684f9..d32d102e 100644 --- a/docs/UpdateUser.md +++ b/docs/UpdateUser.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **ReleaseUpdate** | **bool** | Update the user via email | [optional] [default to null] **LatestFeature** | **string** | The latest feature you've been notified. | [optional] [default to null] **Roles** | **[]int32** | Update | [optional] [default to null] +**ApplicationNotificationSubscriptions** | [***interface{}**](interface{}.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/User.md b/docs/User.md index 98a1e8e5..3efcf90f 100644 --- a/docs/User.md +++ b/docs/User.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **ReleaseUpdate** | **bool** | Update the user via email | [default to null] **LatestFeature** | **string** | Latest feature the user has been notified. | [optional] [default to null] **Roles** | **[]int32** | Contains a list of all roles a user is a memeber of | [optional] [default to null] +**ApplicationNotificationSubscriptions** | [***interface{}**](interface{}.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Webhook.md b/docs/Webhook.md index f469b04b..5da93136 100644 --- a/docs/Webhook.md +++ b/docs/Webhook.md @@ -14,7 +14,6 @@ Name | Type | Description | Notes **Payload** | **string** | API payload (supports templating using parameters) for this webhook | [optional] [default to null] **Params** | [**[]TemplateArgDef**](TemplateArgDef.md) | Array of template argument definitions | [default to null] **Enabled** | **bool** | Enables or disables webhook from showing in rule builder | [default to null] -**UsedAt** | **[]string** | array of rulesets where webhook is used | [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/model_application_session.go b/model_application_session.go index 8e9bf872..a726646b 100644 --- a/model_application_session.go +++ b/model_application_session.go @@ -27,7 +27,7 @@ type ApplicationSession struct { IntegrationId string `json:"integrationId"` // Any coupon code entered. Coupon string `json:"coupon"` - // Any referal code entered. + // Any referral code entered. Referral string `json:"referral"` // Indicating if the customer session is in progress (\"open\"), \"closed\", or \"cancelled\". State string `json:"state"` @@ -35,6 +35,8 @@ type ApplicationSession struct { CartItems []CartItem `json:"cartItems"` // A map of labelled discount values, in the same currency as the session. Discounts map[string]float32 `json:"discounts"` + // The total sum of the session before any discounts applied. + Total float32 `json:"total,omitempty"` // Arbitrary properties associated with this item Attributes *interface{} `json:"attributes,omitempty"` } diff --git a/model_attribute.go b/model_attribute.go index 8ea325e2..6e303a87 100644 --- a/model_attribute.go +++ b/model_attribute.go @@ -36,8 +36,4 @@ type Attribute struct { Suggestions []string `json:"suggestions"` // Whether or not this attribute can be edited. Editable bool `json:"editable"` - // Indicates whether this attribute is in use. If in use only title can be changed and other operations are prohibited. - Locked bool `json:"locked"` - // array of rulesets where the attribute is used - UsedAt []string `json:"usedAt"` } diff --git a/model_error_source.go b/model_error_source.go index 9524c02b..4778c4a0 100644 --- a/model_error_source.go +++ b/model_error_source.go @@ -17,4 +17,6 @@ type ErrorSource struct { Parameter string `json:"parameter,omitempty"` // Line number in uploaded multipart file that caused this error. 'N/A' if unknown. Line string `json:"line,omitempty"` + // Pointer to the resource that caused this error + Resource string `json:"resource,omitempty"` } diff --git a/model_meta.go b/model_meta.go index 64bce58c..43e0b902 100644 --- a/model_meta.go +++ b/model_meta.go @@ -15,5 +15,6 @@ type Meta struct { // Maps the coupon value to a key-value list of that coupons attributes. Coupons *interface{} `json:"coupons,omitempty"` CouponRejectionReason *CouponRejectionReason `json:"couponRejectionReason,omitempty"` + ReferralRejectionReason *ReferralRejectionReason `json:"referralRejectionReason,omitempty"` Warnings *interface{} `json:"warnings,omitempty"` } diff --git a/model_notification.go b/model_notification.go new file mode 100644 index 00000000..e4f8e527 --- /dev/null +++ b/model_notification.go @@ -0,0 +1,19 @@ +/* + * Talon.One API + * + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * API version: 1.0.0 + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package talon + +type Notification struct { + // id of the notification + Id int32 `json:"id"` + // name of the notification + Name string `json:"name"` + // description of the notification + Description string `json:"description"` +} diff --git a/model_notifications.go b/model_notifications.go new file mode 100644 index 00000000..e2515fcd --- /dev/null +++ b/model_notifications.go @@ -0,0 +1,13 @@ +/* + * Talon.One API + * + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * API version: 1.0.0 + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package talon + +type Notifications struct { +} diff --git a/model_referral_rejection_reason.go b/model_referral_rejection_reason.go new file mode 100644 index 00000000..444aaa7f --- /dev/null +++ b/model_referral_rejection_reason.go @@ -0,0 +1,17 @@ +/* + * Talon.One API + * + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * API version: 1.0.0 + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package talon + +// Holds a reference to the campaign, the referral and the reason for which that referral was rejected. Should only be present when there is a 'rejectReferral' effect. +type ReferralRejectionReason struct { + CampaignId int32 `json:"campaignId"` + ReferralId int32 `json:"referralId"` + Reason string `json:"reason"` +} diff --git a/model_update_user.go b/model_update_user.go index 883a7aff..b12593b1 100644 --- a/model_update_user.go +++ b/model_update_user.go @@ -29,4 +29,5 @@ type UpdateUser struct { LatestFeature string `json:"latestFeature,omitempty"` // Update Roles []int32 `json:"roles,omitempty"` + ApplicationNotificationSubscriptions *interface{} `json:"applicationNotificationSubscriptions,omitempty"` } diff --git a/model_user.go b/model_user.go index cd4f6240..7bb752c4 100644 --- a/model_user.go +++ b/model_user.go @@ -39,4 +39,5 @@ type User struct { LatestFeature string `json:"latestFeature,omitempty"` // Contains a list of all roles a user is a memeber of Roles []int32 `json:"roles,omitempty"` + ApplicationNotificationSubscriptions *interface{} `json:"applicationNotificationSubscriptions,omitempty"` } diff --git a/model_webhook.go b/model_webhook.go index f328e9c4..2b72f416 100644 --- a/model_webhook.go +++ b/model_webhook.go @@ -37,6 +37,4 @@ type Webhook struct { Params []TemplateArgDef `json:"params"` // Enables or disables webhook from showing in rule builder Enabled bool `json:"enabled"` - // array of rulesets where webhook is used - UsedAt []string `json:"usedAt"` }