@forklaunch/implementation-billing-stripe 0.2.4 → 0.2.6

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,8 +1,8 @@
1
1
  // domain/schemas/billingPortal.schema.ts
2
- import { serviceSchemaResolver } from "@forklaunch/internal";
2
+ import { serviceSchemaResolver } from '@forklaunch/internal';
3
3
 
4
4
  // domain/schemas/typebox/billingPortal.schema.ts
5
- import { date, optional, string, type } from "@forklaunch/validator/typebox";
5
+ import { date, optional, string, type } from '@forklaunch/validator/typebox';
6
6
  var CreateBillingPortalSchema = {
7
7
  id: optional(string),
8
8
  customerId: string,
@@ -32,7 +32,12 @@ var StripeBillingPortalServiceSchemas = {
32
32
  };
33
33
 
34
34
  // domain/schemas/zod/billingPortal.schema.ts
35
- import { date as date2, optional as optional2, string as string2, type as type2 } from "@forklaunch/validator/zod";
35
+ import {
36
+ date as date2,
37
+ optional as optional2,
38
+ string as string2,
39
+ type as type2
40
+ } from '@forklaunch/validator/zod';
36
41
  var CreateBillingPortalSchema2 = {
37
42
  id: optional2(string2),
38
43
  customerId: string2,
@@ -68,7 +73,7 @@ var StripeBillingPortalServiceSchemas3 = serviceSchemaResolver(
68
73
  );
69
74
 
70
75
  // domain/schemas/checkoutSession.schema.ts
71
- import { serviceSchemaResolver as serviceSchemaResolver2 } from "@forklaunch/internal";
76
+ import { serviceSchemaResolver as serviceSchemaResolver2 } from '@forklaunch/internal';
72
77
 
73
78
  // domain/schemas/typebox/checkoutSession.schema.ts
74
79
  import {
@@ -79,119 +84,119 @@ import {
79
84
  string as string3,
80
85
  type as type3,
81
86
  unknown
82
- } from "@forklaunch/validator/typebox";
87
+ } from '@forklaunch/validator/typebox';
83
88
 
84
89
  // domain/enum/currency.enum.ts
85
90
  var CurrencyEnum = {
86
- USD: "USD",
87
- EUR: "EUR",
88
- JPY: "JPY",
89
- GBP: "GBP",
90
- AUD: "AUD",
91
- CAD: "CAD",
92
- CHF: "CHF",
93
- CNY: "CNY",
94
- AED: "AED",
95
- ARS: "ARS",
96
- BAM: "BAM",
97
- BDT: "BDT",
98
- BGN: "BGN",
99
- BOB: "BOB",
100
- BRL: "BRL",
101
- CLP: "CLP",
102
- COP: "COP",
103
- CRC: "CRC",
104
- CZK: "CZK",
105
- DKK: "DKK",
106
- DZD: "DZD",
107
- EGP: "EGP",
108
- ETB: "ETB",
109
- GEL: "GEL",
110
- GTQ: "GTQ",
111
- HKD: "HKD",
112
- HUF: "HUF",
113
- IDR: "IDR",
114
- ILS: "ILS",
115
- INR: "INR",
116
- ISK: "ISK",
117
- JMD: "JMD",
118
- KES: "KES",
119
- KHR: "KHR",
120
- KRW: "KRW",
121
- KZT: "KZT",
122
- LAK: "LAK",
123
- LKR: "LKR",
124
- MAD: "MAD",
125
- MMK: "MMK",
126
- MXN: "MXN",
127
- MYR: "MYR",
128
- NGN: "NGN",
129
- NOK: "NOK",
130
- NPR: "NPR",
131
- NZD: "NZD",
132
- PEN: "PEN",
133
- PHP: "PHP",
134
- PKR: "PKR",
135
- PLN: "PLN",
136
- PYG: "PYG",
137
- QAR: "QAR",
138
- RON: "RON",
139
- RSD: "RSD",
140
- RUB: "RUB",
141
- SAR: "SAR",
142
- SEK: "SEK",
143
- SGD: "SGD",
144
- THB: "THB",
145
- TRY: "TRY",
146
- TWD: "TWD",
147
- TZS: "TZS",
148
- UAH: "UAH",
149
- UGX: "UGX",
150
- UYU: "UYU",
151
- VND: "VND",
152
- ZAR: "ZAR",
153
- ZMW: "ZMW"
91
+ USD: 'USD',
92
+ EUR: 'EUR',
93
+ JPY: 'JPY',
94
+ GBP: 'GBP',
95
+ AUD: 'AUD',
96
+ CAD: 'CAD',
97
+ CHF: 'CHF',
98
+ CNY: 'CNY',
99
+ AED: 'AED',
100
+ ARS: 'ARS',
101
+ BAM: 'BAM',
102
+ BDT: 'BDT',
103
+ BGN: 'BGN',
104
+ BOB: 'BOB',
105
+ BRL: 'BRL',
106
+ CLP: 'CLP',
107
+ COP: 'COP',
108
+ CRC: 'CRC',
109
+ CZK: 'CZK',
110
+ DKK: 'DKK',
111
+ DZD: 'DZD',
112
+ EGP: 'EGP',
113
+ ETB: 'ETB',
114
+ GEL: 'GEL',
115
+ GTQ: 'GTQ',
116
+ HKD: 'HKD',
117
+ HUF: 'HUF',
118
+ IDR: 'IDR',
119
+ ILS: 'ILS',
120
+ INR: 'INR',
121
+ ISK: 'ISK',
122
+ JMD: 'JMD',
123
+ KES: 'KES',
124
+ KHR: 'KHR',
125
+ KRW: 'KRW',
126
+ KZT: 'KZT',
127
+ LAK: 'LAK',
128
+ LKR: 'LKR',
129
+ MAD: 'MAD',
130
+ MMK: 'MMK',
131
+ MXN: 'MXN',
132
+ MYR: 'MYR',
133
+ NGN: 'NGN',
134
+ NOK: 'NOK',
135
+ NPR: 'NPR',
136
+ NZD: 'NZD',
137
+ PEN: 'PEN',
138
+ PHP: 'PHP',
139
+ PKR: 'PKR',
140
+ PLN: 'PLN',
141
+ PYG: 'PYG',
142
+ QAR: 'QAR',
143
+ RON: 'RON',
144
+ RSD: 'RSD',
145
+ RUB: 'RUB',
146
+ SAR: 'SAR',
147
+ SEK: 'SEK',
148
+ SGD: 'SGD',
149
+ THB: 'THB',
150
+ TRY: 'TRY',
151
+ TWD: 'TWD',
152
+ TZS: 'TZS',
153
+ UAH: 'UAH',
154
+ UGX: 'UGX',
155
+ UYU: 'UYU',
156
+ VND: 'VND',
157
+ ZAR: 'ZAR',
158
+ ZMW: 'ZMW'
154
159
  };
155
160
 
156
161
  // domain/enum/paymentMethod.enum.ts
157
162
  var PaymentMethodEnum = {
158
- AFFIRM: "affirm",
159
- AFTERPAY_CLEARPAY: "afterpay_clearpay",
160
- ALIPAY: "alipay",
161
- ALMA: "alma",
162
- AU_BECS_DEBIT: "au_becs_debit",
163
- BACS_DEBIT: "bacs_debit",
164
- BANCONTACT: "bancontact",
165
- BILLIE: "billie",
166
- BLIK: "blik",
167
- BOLETO: "boleto",
168
- CARD: "card",
169
- CASHAPP: "cashapp",
170
- EPS: "eps",
171
- FPX: "fpx",
172
- GIROPAY: "giropay",
173
- GRABPAY: "grabpay",
174
- IDEAL: "ideal",
175
- KLARNA: "klarna",
176
- KONBINI: "konbini",
177
- LINK: "link",
178
- MOBILEPAY: "mobilepay",
179
- MULTIBANCO: "multibanco",
180
- OXXO: "oxxo",
181
- P24: "p24",
182
- PAY_BY_BANK: "pay_by_bank",
183
- PAYNOW: "paynow",
184
- PAYPAL: "paypal",
185
- PIX: "pix",
186
- PROMPTPAY: "promptpay",
187
- SATISPAY: "satispay",
188
- SEPA_DEBIT: "sepa_debit",
189
- SOFORT: "sofort",
190
- SWISH: "swish",
191
- TWINT: "twint",
192
- US_BANK_ACCOUNT: "us_bank_account",
193
- WECHAT_PAY: "wechat_pay",
194
- ZIP: "zip"
163
+ AFFIRM: 'affirm',
164
+ AFTERPAY_CLEARPAY: 'afterpay_clearpay',
165
+ ALIPAY: 'alipay',
166
+ ALMA: 'alma',
167
+ AU_BECS_DEBIT: 'au_becs_debit',
168
+ BACS_DEBIT: 'bacs_debit',
169
+ BANCONTACT: 'bancontact',
170
+ BILLIE: 'billie',
171
+ BLIK: 'blik',
172
+ BOLETO: 'boleto',
173
+ CARD: 'card',
174
+ CASHAPP: 'cashapp',
175
+ EPS: 'eps',
176
+ FPX: 'fpx',
177
+ GIROPAY: 'giropay',
178
+ GRABPAY: 'grabpay',
179
+ IDEAL: 'ideal',
180
+ KLARNA: 'klarna',
181
+ KONBINI: 'konbini',
182
+ LINK: 'link',
183
+ MOBILEPAY: 'mobilepay',
184
+ MULTIBANCO: 'multibanco',
185
+ OXXO: 'oxxo',
186
+ P24: 'p24',
187
+ PAY_BY_BANK: 'pay_by_bank',
188
+ PAYNOW: 'paynow',
189
+ PAYPAL: 'paypal',
190
+ PIX: 'pix',
191
+ PROMPTPAY: 'promptpay',
192
+ SATISPAY: 'satispay',
193
+ SEPA_DEBIT: 'sepa_debit',
194
+ SOFORT: 'sofort',
195
+ SWISH: 'swish',
196
+ TWINT: 'twint',
197
+ US_BANK_ACCOUNT: 'us_bank_account',
198
+ WECHAT_PAY: 'wechat_pay',
199
+ ZIP: 'zip'
195
200
  };
196
201
 
197
202
  // domain/schemas/typebox/checkoutSession.schema.ts
@@ -215,9 +220,7 @@ var UpdateCheckoutSessionSchema = (StatusEnum) => ({
215
220
  cancelRedirectUri: optional3(string3),
216
221
  expiresAt: optional3(date3),
217
222
  status: optional3(enum_(StatusEnum)),
218
- stripeFields: optional3(
219
- type3()
220
- )
223
+ stripeFields: optional3(type3())
221
224
  });
222
225
  var CheckoutSessionSchema = (StatusEnum) => ({
223
226
  id: string3,
@@ -248,7 +251,7 @@ import {
248
251
  string as string4,
249
252
  type as type4,
250
253
  unknown as unknown2
251
- } from "@forklaunch/validator/zod";
254
+ } from '@forklaunch/validator/zod';
252
255
  var CreateCheckoutSessionSchema2 = (StatusEnum) => ({
253
256
  id: optional4(string4),
254
257
  customerId: string4,
@@ -269,9 +272,7 @@ var UpdateCheckoutSessionSchema2 = (StatusEnum) => ({
269
272
  cancelRedirectUri: optional4(string4),
270
273
  expiresAt: optional4(date4),
271
274
  status: optional4(enum_2(StatusEnum)),
272
- stripeFields: optional4(
273
- type4()
274
- )
275
+ stripeFields: optional4(type4())
275
276
  });
276
277
  var CheckoutSessionSchema2 = (StatusEnum) => ({
277
278
  id: string4,
@@ -300,7 +301,7 @@ var StripeCheckoutSessionServiceSchemas3 = serviceSchemaResolver2(
300
301
  );
301
302
 
302
303
  // domain/schemas/paymentLink.schema.ts
303
- import { serviceSchemaResolver as serviceSchemaResolver3 } from "@forklaunch/internal";
304
+ import { serviceSchemaResolver as serviceSchemaResolver3 } from '@forklaunch/internal';
304
305
 
305
306
  // domain/schemas/typebox/paymentLink.schema.ts
306
307
  import {
@@ -311,7 +312,7 @@ import {
311
312
  optional as optional5,
312
313
  string as string5,
313
314
  type as type5
314
- } from "@forklaunch/validator/typebox";
315
+ } from '@forklaunch/validator/typebox';
315
316
  var CreatePaymentLinkSchema = (StatusEnum) => ({
316
317
  id: optional5(string5),
317
318
  amount: number,
@@ -353,7 +354,7 @@ import {
353
354
  optional as optional6,
354
355
  string as string6,
355
356
  type as type6
356
- } from "@forklaunch/validator/zod";
357
+ } from '@forklaunch/validator/zod';
357
358
  var CreatePaymentLinkSchema2 = (StatusEnum) => ({
358
359
  id: optional6(string6),
359
360
  amount: number2,
@@ -393,7 +394,7 @@ var StripePaymentLinkServiceSchemas3 = serviceSchemaResolver3(
393
394
  );
394
395
 
395
396
  // domain/schemas/plan.schema.ts
396
- import { serviceSchemaResolver as serviceSchemaResolver4 } from "@forklaunch/internal";
397
+ import { serviceSchemaResolver as serviceSchemaResolver4 } from '@forklaunch/internal';
397
398
 
398
399
  // domain/schemas/typebox/plan.schema.ts
399
400
  import {
@@ -405,18 +406,18 @@ import {
405
406
  optional as optional7,
406
407
  string as string7,
407
408
  type as type7
408
- } from "@forklaunch/validator/typebox";
409
+ } from '@forklaunch/validator/typebox';
409
410
 
410
411
  // domain/enum/billingProvider.enum.ts
411
412
  var BillingProviderEnum = {
412
- STRIPE: "stripe"
413
+ STRIPE: 'stripe'
413
414
  };
414
415
 
415
416
  // domain/enum/planCadence.enum.ts
416
417
  var PlanCadenceEnum = {
417
- WEEKLY: "week",
418
- MONTHLY: "month",
419
- ANNUALLY: "year"
418
+ WEEKLY: 'week',
419
+ MONTHLY: 'month',
420
+ ANNUALLY: 'year'
420
421
  };
421
422
 
422
423
  // domain/schemas/typebox/plan.schema.ts
@@ -477,7 +478,7 @@ import {
477
478
  optional as optional8,
478
479
  string as string8,
479
480
  type as type8
480
- } from "@forklaunch/validator/zod";
481
+ } from '@forklaunch/validator/zod';
481
482
  var CreatePlanSchema2 = {
482
483
  id: optional8(string8),
483
484
  name: string8,
@@ -532,7 +533,7 @@ var StripePlanServiceSchemas3 = serviceSchemaResolver4(
532
533
  );
533
534
 
534
535
  // domain/schemas/subscription.schema.ts
535
- import { serviceSchemaResolver as serviceSchemaResolver5 } from "@forklaunch/internal";
536
+ import { serviceSchemaResolver as serviceSchemaResolver5 } from '@forklaunch/internal';
536
537
 
537
538
  // domain/schemas/typebox/subscription.schema.ts
538
539
  import {
@@ -542,7 +543,7 @@ import {
542
543
  optional as optional9,
543
544
  string as string9,
544
545
  type as type9
545
- } from "@forklaunch/validator/typebox";
546
+ } from '@forklaunch/validator/typebox';
546
547
  var CreateSubscriptionSchema = (PartyEnum) => ({
547
548
  id: optional9(string9),
548
549
  partyId: string9,
@@ -601,7 +602,7 @@ import {
601
602
  optional as optional10,
602
603
  string as string10,
603
604
  type as type10
604
- } from "@forklaunch/validator/zod";
605
+ } from '@forklaunch/validator/zod';
605
606
  var CreateSubscriptionSchema2 = (PartyEnum) => ({
606
607
  id: optional10(string10),
607
608
  partyId: string10,