@adtrackify/at-tracking-event-types 3.4.30 → 3.4.32
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/dist/cjs/types/api/subscription.d.ts +9 -2
- package/dist/cjs/types/api/subscription.js +1 -0
- package/dist/cjs/types/api/subscription.js.map +1 -1
- package/dist/esm/types/api/subscription.d.ts +9 -2
- package/dist/esm/types/api/subscription.js +1 -0
- package/dist/esm/types/api/subscription.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,10 +2,9 @@ export interface Subscription {
|
|
|
2
2
|
id: string;
|
|
3
3
|
accountId?: string;
|
|
4
4
|
shopifyAppInstallId?: string;
|
|
5
|
-
shopifyDomain?: string;
|
|
6
5
|
stripeCustomerId?: string;
|
|
7
6
|
stripeSubscriptionId?: string;
|
|
8
|
-
|
|
7
|
+
platformRecurringAppCharge?: PlatformRecurringAppCharge;
|
|
9
8
|
shopifyChargeId?: string;
|
|
10
9
|
shopifyRecurringAppCharge?: ShopifyRecurringAppCharge;
|
|
11
10
|
subscriptionPlan?: SubscriptionPlan;
|
|
@@ -107,6 +106,7 @@ export declare enum PAYMENT_STATUS {
|
|
|
107
106
|
}
|
|
108
107
|
export declare enum SUBSCRIPTION_STATUS {
|
|
109
108
|
ACTIVE = "active",
|
|
109
|
+
PAST_DUE = "past_due",
|
|
110
110
|
CANCELLED = "cancelled",
|
|
111
111
|
DECLINED = "declined",
|
|
112
112
|
EXPIRED = "expired",
|
|
@@ -138,6 +138,13 @@ export interface ShopifyRecurringAppCharge {
|
|
|
138
138
|
trial_ends_on: string;
|
|
139
139
|
updated_at: string;
|
|
140
140
|
}
|
|
141
|
+
export interface PlatformRecurringAppCharge {
|
|
142
|
+
billingPeriodStart: string;
|
|
143
|
+
billingPeriodEnd: string;
|
|
144
|
+
nextBillingOn: string;
|
|
145
|
+
createdAt: string;
|
|
146
|
+
updatedAt: string;
|
|
147
|
+
}
|
|
141
148
|
export interface UsageBillingRecord {
|
|
142
149
|
billingPeriodStart: string;
|
|
143
150
|
billingPeriodEnd: string;
|
|
@@ -21,6 +21,7 @@ var PAYMENT_STATUS;
|
|
|
21
21
|
var SUBSCRIPTION_STATUS;
|
|
22
22
|
(function (SUBSCRIPTION_STATUS) {
|
|
23
23
|
SUBSCRIPTION_STATUS["ACTIVE"] = "active";
|
|
24
|
+
SUBSCRIPTION_STATUS["PAST_DUE"] = "past_due";
|
|
24
25
|
SUBSCRIPTION_STATUS["CANCELLED"] = "cancelled";
|
|
25
26
|
SUBSCRIPTION_STATUS["DECLINED"] = "declined";
|
|
26
27
|
SUBSCRIPTION_STATUS["EXPIRED"] = "expired";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../src/types/api/subscription.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../src/types/api/subscription.ts"],"names":[],"mappings":";;;AAiFA,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,yCAAyB,CAAA;AAC3B,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAmBD,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,2CAAiB,CAAA;AACnB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,mCAAiB,CAAA;AACnB,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB;AAED,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,8CAAuB,CAAA;IACvB,4CAAqB,CAAA;IACrB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,2CAAoB,CAAA;AACtB,CAAC,EATW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAS9B;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;AACrB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AA0ED,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;AACnB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,qCAAa,CAAA;IACb,yCAAiB,CAAA;AACnB,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B"}
|
|
@@ -2,10 +2,9 @@ export interface Subscription {
|
|
|
2
2
|
id: string;
|
|
3
3
|
accountId?: string;
|
|
4
4
|
shopifyAppInstallId?: string;
|
|
5
|
-
shopifyDomain?: string;
|
|
6
5
|
stripeCustomerId?: string;
|
|
7
6
|
stripeSubscriptionId?: string;
|
|
8
|
-
|
|
7
|
+
platformRecurringAppCharge?: PlatformRecurringAppCharge;
|
|
9
8
|
shopifyChargeId?: string;
|
|
10
9
|
shopifyRecurringAppCharge?: ShopifyRecurringAppCharge;
|
|
11
10
|
subscriptionPlan?: SubscriptionPlan;
|
|
@@ -107,6 +106,7 @@ export declare enum PAYMENT_STATUS {
|
|
|
107
106
|
}
|
|
108
107
|
export declare enum SUBSCRIPTION_STATUS {
|
|
109
108
|
ACTIVE = "active",
|
|
109
|
+
PAST_DUE = "past_due",
|
|
110
110
|
CANCELLED = "cancelled",
|
|
111
111
|
DECLINED = "declined",
|
|
112
112
|
EXPIRED = "expired",
|
|
@@ -138,6 +138,13 @@ export interface ShopifyRecurringAppCharge {
|
|
|
138
138
|
trial_ends_on: string;
|
|
139
139
|
updated_at: string;
|
|
140
140
|
}
|
|
141
|
+
export interface PlatformRecurringAppCharge {
|
|
142
|
+
billingPeriodStart: string;
|
|
143
|
+
billingPeriodEnd: string;
|
|
144
|
+
nextBillingOn: string;
|
|
145
|
+
createdAt: string;
|
|
146
|
+
updatedAt: string;
|
|
147
|
+
}
|
|
141
148
|
export interface UsageBillingRecord {
|
|
142
149
|
billingPeriodStart: string;
|
|
143
150
|
billingPeriodEnd: string;
|
|
@@ -18,6 +18,7 @@ export var PAYMENT_STATUS;
|
|
|
18
18
|
export var SUBSCRIPTION_STATUS;
|
|
19
19
|
(function (SUBSCRIPTION_STATUS) {
|
|
20
20
|
SUBSCRIPTION_STATUS["ACTIVE"] = "active";
|
|
21
|
+
SUBSCRIPTION_STATUS["PAST_DUE"] = "past_due";
|
|
21
22
|
SUBSCRIPTION_STATUS["CANCELLED"] = "cancelled";
|
|
22
23
|
SUBSCRIPTION_STATUS["DECLINED"] = "declined";
|
|
23
24
|
SUBSCRIPTION_STATUS["EXPIRED"] = "expired";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../src/types/api/subscription.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../src/types/api/subscription.ts"],"names":[],"mappings":"AAiFA,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,yCAAyB,CAAA;AAC3B,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB;AAmBD,MAAM,CAAN,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,2CAAiB,CAAA;AACnB,CAAC,EAHW,sBAAsB,KAAtB,sBAAsB,QAGjC;AAED,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,mCAAiB,CAAA;AACnB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB;AAED,MAAM,CAAN,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,8CAAuB,CAAA;IACvB,4CAAqB,CAAA;IACrB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,2CAAoB,CAAA;AACtB,CAAC,EATW,mBAAmB,KAAnB,mBAAmB,QAS9B;AAED,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;AACrB,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AA0ED,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;AACnB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB;AAED,MAAM,CAAN,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,qCAAa,CAAA;IACb,yCAAiB,CAAA;AACnB,CAAC,EAJW,oBAAoB,KAApB,oBAAoB,QAI/B"}
|