@readytomog/contracts 1.6.3 → 1.6.5

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.
@@ -1,4 +1,4 @@
1
- import { BillingPeriod, EventTypeEnum } from "./stripe-webhook";
1
+ import { BillingPeriod } from "./stripe-webhook";
2
2
  export interface StripeSessionMetadata {
3
3
  transactionId: string;
4
4
  planId: string;
@@ -7,9 +7,6 @@ export interface StripeSessionMetadata {
7
7
  userId: string;
8
8
  }
9
9
  export interface CreatePaymentSubscriptionEvent {
10
- stripeToken: string;
11
- eventType: EventTypeEnum;
12
- dataObjectId: string;
13
10
  sessionMetadata: StripeSessionMetadata;
14
11
  stripeSubscriptionId: string;
15
12
  }
@@ -1,12 +1,10 @@
1
- import { BillingReasonEnum, EventTypeEnum } from "./stripe-webhook";
1
+ import { BillingReasonEnum } from "./stripe-webhook";
2
2
  export interface StripeEventMetadata {
3
3
  transactionId: string;
4
4
  planId: string;
5
5
  paymentId: string;
6
6
  }
7
7
  export interface FailedPaymentSubscriptionEvent {
8
- stripeToken: string;
9
- eventType: EventTypeEnum;
10
8
  billingReason: BillingReasonEnum;
11
9
  customerId: string;
12
10
  externalId: string;
@@ -1,7 +1,5 @@
1
- import { BillingReasonEnum, EventTypeEnum } from "./stripe-webhook";
1
+ import { BillingReasonEnum } from "./stripe-webhook";
2
2
  export interface RenewedSubscriptionEvent {
3
- stripeToken: string;
4
- eventType: EventTypeEnum;
5
3
  billingReason: BillingReasonEnum;
6
4
  customerId: string;
7
5
  externalId: string;
@@ -4,9 +4,9 @@ export declare enum EventTypeEnum {
4
4
  PAYMENT_FAILED = "invoice.payment_failed"
5
5
  }
6
6
  export declare enum BillingReasonEnum {
7
- subscription_cycle = 0
7
+ subscription_cycle = "subscription_cycle"
8
8
  }
9
9
  export declare enum BillingPeriod {
10
- monthly = 0,
11
- annualy = 1
10
+ monthly = "monthly",
11
+ annualy = "annualy"
12
12
  }
@@ -9,10 +9,10 @@ var EventTypeEnum;
9
9
  })(EventTypeEnum || (exports.EventTypeEnum = EventTypeEnum = {}));
10
10
  var BillingReasonEnum;
11
11
  (function (BillingReasonEnum) {
12
- BillingReasonEnum[BillingReasonEnum["subscription_cycle"] = 0] = "subscription_cycle";
12
+ BillingReasonEnum["subscription_cycle"] = "subscription_cycle";
13
13
  })(BillingReasonEnum || (exports.BillingReasonEnum = BillingReasonEnum = {}));
14
14
  var BillingPeriod;
15
15
  (function (BillingPeriod) {
16
- BillingPeriod[BillingPeriod["monthly"] = 0] = "monthly";
17
- BillingPeriod[BillingPeriod["annualy"] = 1] = "annualy";
16
+ BillingPeriod["monthly"] = "monthly";
17
+ BillingPeriod["annualy"] = "annualy";
18
18
  })(BillingPeriod || (exports.BillingPeriod = BillingPeriod = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readytomog/contracts",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "description": "Protobuf definitions and generated Typescript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",