@headspace/protos-events 1.800.0 → 1.801.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +48 -11
- package/lib/index.js +28 -11
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -81142,7 +81142,12 @@ export interface ISubscriptionCreated {
|
|
|
81142
81142
|
productSku?: (subscription.ISubscriptionProductSku|null);
|
|
81143
81143
|
}
|
|
81144
81144
|
|
|
81145
|
-
/**
|
|
81145
|
+
/**
|
|
81146
|
+
* A new subscription record has been created.
|
|
81147
|
+
* This event only signals that a new record has been created but DOES NOT MEAN that the subscription has already
|
|
81148
|
+
* started or even will start. Some subscriptions are created as "backfills" in order to fill in missing data. Use
|
|
81149
|
+
* the `starts_at` and `ends_at` to determine whether the subscription is current.
|
|
81150
|
+
*/
|
|
81146
81151
|
export class SubscriptionCreated implements ISubscriptionCreated {
|
|
81147
81152
|
|
|
81148
81153
|
/**
|
|
@@ -81338,7 +81343,12 @@ export interface ISubscriptionCancelled {
|
|
|
81338
81343
|
cancellationReason?: (string|null);
|
|
81339
81344
|
}
|
|
81340
81345
|
|
|
81341
|
-
/**
|
|
81346
|
+
/**
|
|
81347
|
+
* The subscription's auto-renewal has been disabled.
|
|
81348
|
+
* Subscriptions can be cancelled for a number of reasons, see `cancellation_reason` for more information. This event
|
|
81349
|
+
* __DOES NOT__ mean the subscription has ended. Check the `starts_at` and `ends_at` to determine whether the
|
|
81350
|
+
* subscription is current.
|
|
81351
|
+
*/
|
|
81342
81352
|
export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
81343
81353
|
|
|
81344
81354
|
/**
|
|
@@ -81643,7 +81653,11 @@ export interface ISubscriptionRenewed {
|
|
|
81643
81653
|
productSku?: (subscription.ISubscriptionProductSku|null);
|
|
81644
81654
|
}
|
|
81645
81655
|
|
|
81646
|
-
/**
|
|
81656
|
+
/**
|
|
81657
|
+
* Triggered when the subscription's `ends_at` has been pushed out further than what it was previously.
|
|
81658
|
+
* The subscription did not necessarily transition to its new "subscription term", only that the overall end date
|
|
81659
|
+
* has been extended.
|
|
81660
|
+
*/
|
|
81647
81661
|
export class SubscriptionRenewed implements ISubscriptionRenewed {
|
|
81648
81662
|
|
|
81649
81663
|
/**
|
|
@@ -81815,7 +81829,10 @@ export interface ISubscriptionUpcomingRenewal {
|
|
|
81815
81829
|
platform?: (subscription.SubscriptionPlatform|null);
|
|
81816
81830
|
}
|
|
81817
81831
|
|
|
81818
|
-
/**
|
|
81832
|
+
/**
|
|
81833
|
+
* __Zuora ONLY__. Triggered when Zuora sends an upcoming renewal notification. Signals that a Zuora subscription will
|
|
81834
|
+
* renew in `days_before` days.
|
|
81835
|
+
*/
|
|
81819
81836
|
export class SubscriptionUpcomingRenewal implements ISubscriptionUpcomingRenewal {
|
|
81820
81837
|
|
|
81821
81838
|
/**
|
|
@@ -81960,7 +81977,10 @@ export interface ISubscriptionPaymentProcessed {
|
|
|
81960
81977
|
subscriptionId?: (number|null);
|
|
81961
81978
|
}
|
|
81962
81979
|
|
|
81963
|
-
/**
|
|
81980
|
+
/**
|
|
81981
|
+
* __Zuora ONLY__. Triggered when Zuora sends a payment processed notification. Signals that there has been a successful
|
|
81982
|
+
* payment made for the subscription in Zuora.
|
|
81983
|
+
*/
|
|
81964
81984
|
export class SubscriptionPaymentProcessed implements ISubscriptionPaymentProcessed {
|
|
81965
81985
|
|
|
81966
81986
|
/**
|
|
@@ -82087,7 +82107,10 @@ export interface ISubscriptionPaymentDeclined {
|
|
|
82087
82107
|
subscriptionId?: (number|null);
|
|
82088
82108
|
}
|
|
82089
82109
|
|
|
82090
|
-
/**
|
|
82110
|
+
/**
|
|
82111
|
+
* __Zuora ONLY__. Triggered when Zuora sends a payment declined notification. Signals that the user has failed to pay
|
|
82112
|
+
* for the subscription in Zuora {attempt} times.
|
|
82113
|
+
*/
|
|
82091
82114
|
export class SubscriptionPaymentDeclined implements ISubscriptionPaymentDeclined {
|
|
82092
82115
|
|
|
82093
82116
|
/**
|
|
@@ -82241,7 +82264,11 @@ export interface ISubscriptionGraced {
|
|
|
82241
82264
|
productSku?: (subscription.ISubscriptionProductSku|null);
|
|
82242
82265
|
}
|
|
82243
82266
|
|
|
82244
|
-
/**
|
|
82267
|
+
/**
|
|
82268
|
+
* A subscription has transitioned from an ACTIVE to GRACE status. This is usually due to a failed payment. Not all
|
|
82269
|
+
* platforms support having a GRACE status so this event is not available on all subscriptions whenever a payment fails.
|
|
82270
|
+
* (ie, not all failed payments will result in a SubscriptionGraced).
|
|
82271
|
+
*/
|
|
82245
82272
|
export class SubscriptionGraced implements ISubscriptionGraced {
|
|
82246
82273
|
|
|
82247
82274
|
/**
|
|
@@ -82428,7 +82455,10 @@ export interface ISubscriptionStarted {
|
|
|
82428
82455
|
productSku?: (subscription.ISubscriptionProductSku|null);
|
|
82429
82456
|
}
|
|
82430
82457
|
|
|
82431
|
-
/**
|
|
82458
|
+
/**
|
|
82459
|
+
* Triggered when the subscription starts, ie passed its start date. The event is published on a cron schedule so the
|
|
82460
|
+
* events are not necessarily published at the exact instant of `starts_at`, but it should be triggered within 24 hours.
|
|
82461
|
+
*/
|
|
82432
82462
|
export class SubscriptionStarted implements ISubscriptionStarted {
|
|
82433
82463
|
|
|
82434
82464
|
/**
|
|
@@ -82618,7 +82648,10 @@ export interface ISubscriptionEnded {
|
|
|
82618
82648
|
productSku?: (subscription.ISubscriptionProductSku|null);
|
|
82619
82649
|
}
|
|
82620
82650
|
|
|
82621
|
-
/**
|
|
82651
|
+
/**
|
|
82652
|
+
* Triggered when the subscription ends, ie passed its end date. The event is published on a cron schedule so the events
|
|
82653
|
+
* are not necessarily published at the exact instant of `ends_at`, but it should be within 24 hours.
|
|
82654
|
+
*/
|
|
82622
82655
|
export class SubscriptionEnded implements ISubscriptionEnded {
|
|
82623
82656
|
|
|
82624
82657
|
/**
|
|
@@ -82808,7 +82841,7 @@ export interface ISubscriptionRecovered {
|
|
|
82808
82841
|
productSku?: (subscription.ISubscriptionProductSku|null);
|
|
82809
82842
|
}
|
|
82810
82843
|
|
|
82811
|
-
/**
|
|
82844
|
+
/** Triggered when a subscription goes from GRACE to PAYING. See comments on `SubscriptionGraced` for more information. */
|
|
82812
82845
|
export class SubscriptionRecovered implements ISubscriptionRecovered {
|
|
82813
82846
|
|
|
82814
82847
|
/**
|
|
@@ -82995,7 +83028,11 @@ export interface ISubscriptionAmended {
|
|
|
82995
83028
|
productSku?: (subscription.ISubscriptionProductSku|null);
|
|
82996
83029
|
}
|
|
82997
83030
|
|
|
82998
|
-
/**
|
|
83031
|
+
/**
|
|
83032
|
+
* A subscription record was changed (ie "amended") outside of its normal lifecycle. Essentially a "catchall" event for
|
|
83033
|
+
* in the case that fields needed to be corrected. Intention is for consumers to use this event to "resync" their view
|
|
83034
|
+
* of the subscription.
|
|
83035
|
+
*/
|
|
82999
83036
|
export class SubscriptionAmended implements ISubscriptionAmended {
|
|
83000
83037
|
|
|
83001
83038
|
/**
|
package/lib/index.js
CHANGED
|
@@ -245303,7 +245303,10 @@ $root.SubscriptionCreated = (function() {
|
|
|
245303
245303
|
/**
|
|
245304
245304
|
* Constructs a new SubscriptionCreated.
|
|
245305
245305
|
* @name SubscriptionCreated
|
|
245306
|
-
* @classdesc
|
|
245306
|
+
* @classdesc A new subscription record has been created.
|
|
245307
|
+
* This event only signals that a new record has been created but DOES NOT MEAN that the subscription has already
|
|
245308
|
+
* started or even will start. Some subscriptions are created as "backfills" in order to fill in missing data. Use
|
|
245309
|
+
* the `starts_at` and `ends_at` to determine whether the subscription is current.
|
|
245307
245310
|
* @implements ISubscriptionCreated
|
|
245308
245311
|
* @constructor
|
|
245309
245312
|
* @param {ISubscriptionCreated=} [properties] Properties to set
|
|
@@ -246142,7 +246145,10 @@ $root.SubscriptionCancelled = (function() {
|
|
|
246142
246145
|
/**
|
|
246143
246146
|
* Constructs a new SubscriptionCancelled.
|
|
246144
246147
|
* @name SubscriptionCancelled
|
|
246145
|
-
* @classdesc
|
|
246148
|
+
* @classdesc The subscription's auto-renewal has been disabled.
|
|
246149
|
+
* Subscriptions can be cancelled for a number of reasons, see `cancellation_reason` for more information. This event
|
|
246150
|
+
* __DOES NOT__ mean the subscription has ended. Check the `starts_at` and `ends_at` to determine whether the
|
|
246151
|
+
* subscription is current.
|
|
246146
246152
|
* @implements ISubscriptionCancelled
|
|
246147
246153
|
* @constructor
|
|
246148
246154
|
* @param {ISubscriptionCancelled=} [properties] Properties to set
|
|
@@ -247365,7 +247371,9 @@ $root.SubscriptionRenewed = (function() {
|
|
|
247365
247371
|
/**
|
|
247366
247372
|
* Constructs a new SubscriptionRenewed.
|
|
247367
247373
|
* @name SubscriptionRenewed
|
|
247368
|
-
* @classdesc
|
|
247374
|
+
* @classdesc Triggered when the subscription's `ends_at` has been pushed out further than what it was previously.
|
|
247375
|
+
* The subscription did not necessarily transition to its new "subscription term", only that the overall end date
|
|
247376
|
+
* has been extended.
|
|
247369
247377
|
* @implements ISubscriptionRenewed
|
|
247370
247378
|
* @constructor
|
|
247371
247379
|
* @param {ISubscriptionRenewed=} [properties] Properties to set
|
|
@@ -248210,7 +248218,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
248210
248218
|
/**
|
|
248211
248219
|
* Constructs a new SubscriptionUpcomingRenewal.
|
|
248212
248220
|
* @name SubscriptionUpcomingRenewal
|
|
248213
|
-
* @classdesc
|
|
248221
|
+
* @classdesc __Zuora ONLY__. Triggered when Zuora sends an upcoming renewal notification. Signals that a Zuora subscription will
|
|
248222
|
+
* renew in `days_before` days.
|
|
248214
248223
|
* @implements ISubscriptionUpcomingRenewal
|
|
248215
248224
|
* @constructor
|
|
248216
248225
|
* @param {ISubscriptionUpcomingRenewal=} [properties] Properties to set
|
|
@@ -248775,7 +248784,8 @@ $root.SubscriptionPaymentProcessed = (function() {
|
|
|
248775
248784
|
/**
|
|
248776
248785
|
* Constructs a new SubscriptionPaymentProcessed.
|
|
248777
248786
|
* @name SubscriptionPaymentProcessed
|
|
248778
|
-
* @classdesc
|
|
248787
|
+
* @classdesc __Zuora ONLY__. Triggered when Zuora sends a payment processed notification. Signals that there has been a successful
|
|
248788
|
+
* payment made for the subscription in Zuora.
|
|
248779
248789
|
* @implements ISubscriptionPaymentProcessed
|
|
248780
248790
|
* @constructor
|
|
248781
248791
|
* @param {ISubscriptionPaymentProcessed=} [properties] Properties to set
|
|
@@ -249157,7 +249167,8 @@ $root.SubscriptionPaymentDeclined = (function() {
|
|
|
249157
249167
|
/**
|
|
249158
249168
|
* Constructs a new SubscriptionPaymentDeclined.
|
|
249159
249169
|
* @name SubscriptionPaymentDeclined
|
|
249160
|
-
* @classdesc
|
|
249170
|
+
* @classdesc __Zuora ONLY__. Triggered when Zuora sends a payment declined notification. Signals that the user has failed to pay
|
|
249171
|
+
* for the subscription in Zuora {attempt} times.
|
|
249161
249172
|
* @implements ISubscriptionPaymentDeclined
|
|
249162
249173
|
* @constructor
|
|
249163
249174
|
* @param {ISubscriptionPaymentDeclined=} [properties] Properties to set
|
|
@@ -249506,7 +249517,9 @@ $root.SubscriptionGraced = (function() {
|
|
|
249506
249517
|
/**
|
|
249507
249518
|
* Constructs a new SubscriptionGraced.
|
|
249508
249519
|
* @name SubscriptionGraced
|
|
249509
|
-
* @classdesc
|
|
249520
|
+
* @classdesc A subscription has transitioned from an ACTIVE to GRACE status. This is usually due to a failed payment. Not all
|
|
249521
|
+
* platforms support having a GRACE status so this event is not available on all subscriptions whenever a payment fails.
|
|
249522
|
+
* (ie, not all failed payments will result in a SubscriptionGraced).
|
|
249510
249523
|
* @implements ISubscriptionGraced
|
|
249511
249524
|
* @constructor
|
|
249512
249525
|
* @param {ISubscriptionGraced=} [properties] Properties to set
|
|
@@ -250356,7 +250369,8 @@ $root.SubscriptionStarted = (function() {
|
|
|
250356
250369
|
/**
|
|
250357
250370
|
* Constructs a new SubscriptionStarted.
|
|
250358
250371
|
* @name SubscriptionStarted
|
|
250359
|
-
* @classdesc
|
|
250372
|
+
* @classdesc Triggered when the subscription starts, ie passed its start date. The event is published on a cron schedule so the
|
|
250373
|
+
* events are not necessarily published at the exact instant of `starts_at`, but it should be triggered within 24 hours.
|
|
250360
250374
|
* @implements ISubscriptionStarted
|
|
250361
250375
|
* @constructor
|
|
250362
250376
|
* @param {ISubscriptionStarted=} [properties] Properties to set
|
|
@@ -251207,7 +251221,8 @@ $root.SubscriptionEnded = (function() {
|
|
|
251207
251221
|
/**
|
|
251208
251222
|
* Constructs a new SubscriptionEnded.
|
|
251209
251223
|
* @name SubscriptionEnded
|
|
251210
|
-
* @classdesc
|
|
251224
|
+
* @classdesc Triggered when the subscription ends, ie passed its end date. The event is published on a cron schedule so the events
|
|
251225
|
+
* are not necessarily published at the exact instant of `ends_at`, but it should be within 24 hours.
|
|
251211
251226
|
* @implements ISubscriptionEnded
|
|
251212
251227
|
* @constructor
|
|
251213
251228
|
* @param {ISubscriptionEnded=} [properties] Properties to set
|
|
@@ -252103,7 +252118,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
252103
252118
|
/**
|
|
252104
252119
|
* Constructs a new SubscriptionRecovered.
|
|
252105
252120
|
* @name SubscriptionRecovered
|
|
252106
|
-
* @classdesc
|
|
252121
|
+
* @classdesc Triggered when a subscription goes from GRACE to PAYING. See comments on `SubscriptionGraced` for more information.
|
|
252107
252122
|
* @implements ISubscriptionRecovered
|
|
252108
252123
|
* @constructor
|
|
252109
252124
|
* @param {ISubscriptionRecovered=} [properties] Properties to set
|
|
@@ -252953,7 +252968,9 @@ $root.SubscriptionAmended = (function() {
|
|
|
252953
252968
|
/**
|
|
252954
252969
|
* Constructs a new SubscriptionAmended.
|
|
252955
252970
|
* @name SubscriptionAmended
|
|
252956
|
-
* @classdesc
|
|
252971
|
+
* @classdesc A subscription record was changed (ie "amended") outside of its normal lifecycle. Essentially a "catchall" event for
|
|
252972
|
+
* in the case that fields needed to be corrected. Intention is for consumers to use this event to "resync" their view
|
|
252973
|
+
* of the subscription.
|
|
252957
252974
|
* @implements ISubscriptionAmended
|
|
252958
252975
|
* @constructor
|
|
252959
252976
|
* @param {ISubscriptionAmended=} [properties] Properties to set
|
package/package.json
CHANGED