@forklaunch/implementation-billing-stripe 1.1.0 → 1.1.1

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.
@@ -111,14 +111,10 @@ export class StripeWebhookService<
111
111
  * by default. Override this method to implement organization-level
112
112
  * subscriptions or other party resolution logic.
113
113
  */
114
- protected resolvePartyType(
115
- _event: Stripe.Event
116
- ): PartyEnum[keyof PartyEnum] {
114
+ protected resolvePartyType(_event: Stripe.Event): PartyEnum[keyof PartyEnum] {
117
115
  // Default: first value in the enum container.
118
116
  // Subclasses can override to inspect event metadata for party type.
119
- const keys = Object.keys(
120
- this.partyEnum as Record<string, unknown>
121
- );
117
+ const keys = Object.keys(this.partyEnum as Record<string, unknown>);
122
118
  return (this.partyEnum as Record<string, PartyEnum[keyof PartyEnum]>)[
123
119
  keys[0]
124
120
  ];
@@ -622,7 +622,7 @@ var BillingPortal = (0, import_persistence.defineComplianceEntity)({
622
622
  properties: {
623
623
  id: import_persistence.fp.string().primary().compliance("none"),
624
624
  customerId: import_persistence.fp.string().compliance("none"),
625
- providerFields: import_persistence.fp.json().compliance("none")
625
+ providerFields: import_persistence.fp.json().compliance("pci")
626
626
  }
627
627
  });
628
628
  var CheckoutSession = (0, import_persistence.defineComplianceEntity)({
@@ -633,7 +633,7 @@ var CheckoutSession = (0, import_persistence.defineComplianceEntity)({
633
633
  paymentMethods: import_persistence.fp.enum().array().compliance("none"),
634
634
  currency: import_persistence.fp.enum().compliance("none"),
635
635
  status: import_persistence.fp.enum().compliance("none"),
636
- providerFields: import_persistence.fp.json().compliance("none")
636
+ providerFields: import_persistence.fp.json().compliance("pci")
637
637
  }
638
638
  });
639
639
  var PaymentLink = (0, import_persistence.defineComplianceEntity)({
@@ -644,7 +644,7 @@ var PaymentLink = (0, import_persistence.defineComplianceEntity)({
644
644
  paymentMethods: import_persistence.fp.enum().array().compliance("none"),
645
645
  currency: import_persistence.fp.enum().compliance("none"),
646
646
  status: import_persistence.fp.enum().compliance("none"),
647
- providerFields: import_persistence.fp.json().compliance("none")
647
+ providerFields: import_persistence.fp.json().compliance("pci")
648
648
  }
649
649
  });
650
650
  var Plan = (0, import_persistence.defineComplianceEntity)({
@@ -657,7 +657,7 @@ var Plan = (0, import_persistence.defineComplianceEntity)({
657
657
  cadence: import_persistence.fp.enum().compliance("none"),
658
658
  currency: import_persistence.fp.enum().compliance("none"),
659
659
  billingProvider: import_persistence.fp.enum().compliance("none"),
660
- providerFields: import_persistence.fp.json().compliance("none")
660
+ providerFields: import_persistence.fp.json().compliance("pci")
661
661
  }
662
662
  });
663
663
  var Subscription = (0, import_persistence.defineComplianceEntity)({
@@ -669,7 +669,7 @@ var Subscription = (0, import_persistence.defineComplianceEntity)({
669
669
  partyType: import_persistence.fp.enum().compliance("none"),
670
670
  billingProvider: import_persistence.fp.enum().compliance("none"),
671
671
  active: import_persistence.fp.boolean().compliance("none"),
672
- providerFields: import_persistence.fp.json().compliance("none")
672
+ providerFields: import_persistence.fp.json().compliance("pci")
673
673
  }
674
674
  });
675
675
  var StripeWebhookEvent = (0, import_persistence.defineComplianceEntity)({
@@ -681,7 +681,7 @@ var StripeWebhookEvent = (0, import_persistence.defineComplianceEntity)({
681
681
  stripeId: import_persistence.fp.string().compliance("none"),
682
682
  idempotencyKey: import_persistence.fp.string().nullable().compliance("none"),
683
683
  eventType: import_persistence.fp.string().compliance("none"),
684
- eventData: import_persistence.fp.json().compliance("none")
684
+ eventData: import_persistence.fp.json().compliance("pci")
685
685
  }
686
686
  });
687
687
 
@@ -721,9 +721,7 @@ var StripeWebhookService = class {
721
721
  * subscriptions or other party resolution logic.
722
722
  */
723
723
  resolvePartyType(_event) {
724
- const keys = Object.keys(
725
- this.partyEnum
726
- );
724
+ const keys = Object.keys(this.partyEnum);
727
725
  return this.partyEnum[keys[0]];
728
726
  }
729
727
  /**
@@ -590,7 +590,7 @@ var BillingPortal = defineComplianceEntity({
590
590
  properties: {
591
591
  id: fp.string().primary().compliance("none"),
592
592
  customerId: fp.string().compliance("none"),
593
- providerFields: fp.json().compliance("none")
593
+ providerFields: fp.json().compliance("pci")
594
594
  }
595
595
  });
596
596
  var CheckoutSession = defineComplianceEntity({
@@ -601,7 +601,7 @@ var CheckoutSession = defineComplianceEntity({
601
601
  paymentMethods: fp.enum().array().compliance("none"),
602
602
  currency: fp.enum().compliance("none"),
603
603
  status: fp.enum().compliance("none"),
604
- providerFields: fp.json().compliance("none")
604
+ providerFields: fp.json().compliance("pci")
605
605
  }
606
606
  });
607
607
  var PaymentLink = defineComplianceEntity({
@@ -612,7 +612,7 @@ var PaymentLink = defineComplianceEntity({
612
612
  paymentMethods: fp.enum().array().compliance("none"),
613
613
  currency: fp.enum().compliance("none"),
614
614
  status: fp.enum().compliance("none"),
615
- providerFields: fp.json().compliance("none")
615
+ providerFields: fp.json().compliance("pci")
616
616
  }
617
617
  });
618
618
  var Plan = defineComplianceEntity({
@@ -625,7 +625,7 @@ var Plan = defineComplianceEntity({
625
625
  cadence: fp.enum().compliance("none"),
626
626
  currency: fp.enum().compliance("none"),
627
627
  billingProvider: fp.enum().compliance("none"),
628
- providerFields: fp.json().compliance("none")
628
+ providerFields: fp.json().compliance("pci")
629
629
  }
630
630
  });
631
631
  var Subscription = defineComplianceEntity({
@@ -637,7 +637,7 @@ var Subscription = defineComplianceEntity({
637
637
  partyType: fp.enum().compliance("none"),
638
638
  billingProvider: fp.enum().compliance("none"),
639
639
  active: fp.boolean().compliance("none"),
640
- providerFields: fp.json().compliance("none")
640
+ providerFields: fp.json().compliance("pci")
641
641
  }
642
642
  });
643
643
  var StripeWebhookEvent = defineComplianceEntity({
@@ -649,7 +649,7 @@ var StripeWebhookEvent = defineComplianceEntity({
649
649
  stripeId: fp.string().compliance("none"),
650
650
  idempotencyKey: fp.string().nullable().compliance("none"),
651
651
  eventType: fp.string().compliance("none"),
652
- eventData: fp.json().compliance("none")
652
+ eventData: fp.json().compliance("pci")
653
653
  }
654
654
  });
655
655
 
@@ -689,9 +689,7 @@ var StripeWebhookService = class {
689
689
  * subscriptions or other party resolution logic.
690
690
  */
691
691
  resolvePartyType(_event) {
692
- const keys = Object.keys(
693
- this.partyEnum
694
- );
692
+ const keys = Object.keys(this.partyEnum);
695
693
  return this.partyEnum[keys[0]];
696
694
  }
697
695
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/implementation-billing-stripe",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Stripe implementation for forklaunch billing",
5
5
  "homepage": "https://github.com/forklaunch/forklaunch-js#readme",
6
6
  "bugs": {
@@ -42,20 +42,20 @@
42
42
  "lib/**"
43
43
  ],
44
44
  "dependencies": {
45
- "@forklaunch/common": "^1.0.13",
46
- "@forklaunch/core": "^1.0.13",
47
- "@forklaunch/internal": "^1.0.13",
48
- "@forklaunch/validator": "^1.0.13",
45
+ "@forklaunch/common": "^1.1.0",
46
+ "@forklaunch/core": "^1.1.0",
47
+ "@forklaunch/internal": "^1.1.0",
48
+ "@forklaunch/validator": "^1.1.0",
49
49
  "@mikro-orm/core": "7.0.5",
50
50
  "@sinclair/typebox": "^0.34.48",
51
51
  "ajv": "^8.18.0",
52
52
  "stripe": "^20.4.1",
53
53
  "zod": "^4.3.6",
54
- "@forklaunch/implementation-billing-base": "1.0.0",
55
- "@forklaunch/interfaces-billing": "1.0.0"
54
+ "@forklaunch/implementation-billing-base": "1.0.1",
55
+ "@forklaunch/interfaces-billing": "1.0.1"
56
56
  },
57
57
  "devDependencies": {
58
- "@typescript/native-preview": "7.0.0-dev.20260320.1",
58
+ "@typescript/native-preview": "7.0.0-dev.20260324.1",
59
59
  "depcheck": "^1.4.7",
60
60
  "prettier": "^3.8.1",
61
61
  "typedoc": "^0.28.18"