@forklaunch/implementation-billing-stripe 0.0.3 → 0.0.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.
- package/lib/domain/enum/index.d.mts +189 -190
- package/lib/domain/enum/index.d.ts +189 -190
- package/lib/domain/enum/index.js +194 -203
- package/lib/domain/enum/index.mjs +184 -188
- package/lib/domain/schemas/index.d.mts +317 -4084
- package/lib/domain/schemas/index.d.ts +317 -4084
- package/lib/domain/schemas/index.js +256 -336
- package/lib/domain/schemas/index.mjs +205 -210
- package/lib/domain/types/index.d.mts +72 -231
- package/lib/domain/types/index.d.ts +72 -231
- package/lib/domain/types/index.js +4 -8
- package/lib/eject/domain/enum/billingProvider.enum.ts +5 -3
- package/lib/eject/domain/enum/currency.enum.ts +138 -137
- package/lib/eject/domain/enum/paymentMethod.enum.ts +41 -39
- package/lib/eject/domain/enum/planCadence.enum.ts +7 -5
- package/lib/eject/domain/schemas/billingPortal.schema.ts +1 -1
- package/lib/eject/domain/schemas/checkoutSession.schema.ts +3 -3
- package/lib/eject/domain/schemas/paymentLink.schema.ts +3 -3
- package/lib/eject/domain/schemas/plan.schema.ts +4 -4
- package/lib/eject/domain/schemas/subscription.schema.ts +2 -2
- package/lib/eject/domain/types/index.ts +1 -1
- package/lib/eject/services/paymentLink.service.ts +1 -1
- package/lib/services/index.d.mts +194 -709
- package/lib/services/index.d.ts +194 -709
- package/lib/services/index.js +249 -359
- package/lib/services/index.mjs +210 -298
- package/package.json +13 -13
|
@@ -1,39 +1,41 @@
|
|
|
1
|
-
export
|
|
2
|
-
AFFIRM
|
|
3
|
-
AFTERPAY_CLEARPAY
|
|
4
|
-
ALIPAY
|
|
5
|
-
ALMA
|
|
6
|
-
AU_BECS_DEBIT
|
|
7
|
-
BACS_DEBIT
|
|
8
|
-
BANCONTACT
|
|
9
|
-
BILLIE
|
|
10
|
-
BLIK
|
|
11
|
-
BOLETO
|
|
12
|
-
CARD
|
|
13
|
-
CASHAPP
|
|
14
|
-
EPS
|
|
15
|
-
FPX
|
|
16
|
-
GIROPAY
|
|
17
|
-
GRABPAY
|
|
18
|
-
IDEAL
|
|
19
|
-
KLARNA
|
|
20
|
-
KONBINI
|
|
21
|
-
LINK
|
|
22
|
-
MOBILEPAY
|
|
23
|
-
MULTIBANCO
|
|
24
|
-
OXXO
|
|
25
|
-
P24
|
|
26
|
-
PAY_BY_BANK
|
|
27
|
-
PAYNOW
|
|
28
|
-
PAYPAL
|
|
29
|
-
PIX
|
|
30
|
-
PROMPTPAY
|
|
31
|
-
SATISPAY
|
|
32
|
-
SEPA_DEBIT
|
|
33
|
-
SOFORT
|
|
34
|
-
SWISH
|
|
35
|
-
TWINT
|
|
36
|
-
US_BANK_ACCOUNT
|
|
37
|
-
WECHAT_PAY
|
|
38
|
-
ZIP
|
|
39
|
-
}
|
|
1
|
+
export const PaymentMethodEnum = {
|
|
2
|
+
AFFIRM: 'affirm',
|
|
3
|
+
AFTERPAY_CLEARPAY: 'afterpay_clearpay',
|
|
4
|
+
ALIPAY: 'alipay',
|
|
5
|
+
ALMA: 'alma',
|
|
6
|
+
AU_BECS_DEBIT: 'au_becs_debit',
|
|
7
|
+
BACS_DEBIT: 'bacs_debit',
|
|
8
|
+
BANCONTACT: 'bancontact',
|
|
9
|
+
BILLIE: 'billie',
|
|
10
|
+
BLIK: 'blik',
|
|
11
|
+
BOLETO: 'boleto',
|
|
12
|
+
CARD: 'card',
|
|
13
|
+
CASHAPP: 'cashapp',
|
|
14
|
+
EPS: 'eps',
|
|
15
|
+
FPX: 'fpx',
|
|
16
|
+
GIROPAY: 'giropay',
|
|
17
|
+
GRABPAY: 'grabpay',
|
|
18
|
+
IDEAL: 'ideal',
|
|
19
|
+
KLARNA: 'klarna',
|
|
20
|
+
KONBINI: 'konbini',
|
|
21
|
+
LINK: 'link',
|
|
22
|
+
MOBILEPAY: 'mobilepay',
|
|
23
|
+
MULTIBANCO: 'multibanco',
|
|
24
|
+
OXXO: 'oxxo',
|
|
25
|
+
P24: 'p24',
|
|
26
|
+
PAY_BY_BANK: 'pay_by_bank',
|
|
27
|
+
PAYNOW: 'paynow',
|
|
28
|
+
PAYPAL: 'paypal',
|
|
29
|
+
PIX: 'pix',
|
|
30
|
+
PROMPTPAY: 'promptpay',
|
|
31
|
+
SATISPAY: 'satispay',
|
|
32
|
+
SEPA_DEBIT: 'sepa_debit',
|
|
33
|
+
SOFORT: 'sofort',
|
|
34
|
+
SWISH: 'swish',
|
|
35
|
+
TWINT: 'twint',
|
|
36
|
+
US_BANK_ACCOUNT: 'us_bank_account',
|
|
37
|
+
WECHAT_PAY: 'wechat_pay',
|
|
38
|
+
ZIP: 'zip'
|
|
39
|
+
} as const;
|
|
40
|
+
export type PaymentMethodEnum =
|
|
41
|
+
(typeof PaymentMethodEnum)[keyof typeof PaymentMethodEnum];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
WEEKLY
|
|
3
|
-
MONTHLY
|
|
4
|
-
ANNUALLY
|
|
5
|
-
}
|
|
1
|
+
export const PlanCadenceEnum = {
|
|
2
|
+
WEEKLY: 'week',
|
|
3
|
+
MONTHLY: 'month',
|
|
4
|
+
ANNUALLY: 'year'
|
|
5
|
+
} as const;
|
|
6
|
+
export type PlanCadenceEnum =
|
|
7
|
+
(typeof PlanCadenceEnum)[keyof typeof PlanCadenceEnum];
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
type,
|
|
9
9
|
unknown
|
|
10
10
|
} from '@{{app_name}}/core';
|
|
11
|
-
import { CurrencyEnum } from '
|
|
12
|
-
import { PaymentMethodEnum } from '
|
|
11
|
+
import { CurrencyEnum } from '../enum/currency.enum';
|
|
12
|
+
import { PaymentMethodEnum } from '../enum/paymentMethod.enum';
|
|
13
13
|
import {
|
|
14
14
|
StripeCheckoutSessionDto,
|
|
15
15
|
StripeCreateCheckoutSessionDto,
|
|
16
16
|
StripeUpdateCheckoutSessionDto
|
|
17
|
-
} from '
|
|
17
|
+
} from '../types/stripe.dto.types';
|
|
18
18
|
|
|
19
19
|
export const CreateCheckoutSessionSchema = <
|
|
20
20
|
T extends Record<string, LiteralSchema>
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
string,
|
|
9
9
|
type
|
|
10
10
|
} from '@{{app_name}}/core';
|
|
11
|
-
import { CurrencyEnum } from '
|
|
12
|
-
import { PaymentMethodEnum } from '
|
|
11
|
+
import { CurrencyEnum } from '../enum/currency.enum';
|
|
12
|
+
import { PaymentMethodEnum } from '../enum/paymentMethod.enum';
|
|
13
13
|
import {
|
|
14
14
|
StripeCreatePaymentLinkDto,
|
|
15
15
|
StripePaymentLinkDto,
|
|
16
16
|
StripeUpdatePaymentLinkDto
|
|
17
|
-
} from '
|
|
17
|
+
} from '../types/stripe.dto.types';
|
|
18
18
|
|
|
19
19
|
export const CreatePaymentLinkSchema = <
|
|
20
20
|
T extends Record<string, LiteralSchema>
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
string,
|
|
9
9
|
type
|
|
10
10
|
} from '@{{app_name}}/core';
|
|
11
|
-
import { BillingProviderEnum } from '
|
|
12
|
-
import { CurrencyEnum } from '
|
|
13
|
-
import { PlanCadenceEnum } from '
|
|
11
|
+
import { BillingProviderEnum } from '../enum/billingProvider.enum';
|
|
12
|
+
import { CurrencyEnum } from '../enum/currency.enum';
|
|
13
|
+
import { PlanCadenceEnum } from '../enum/planCadence.enum';
|
|
14
14
|
import {
|
|
15
15
|
StripeCreatePlanDto,
|
|
16
16
|
StripePlanDto,
|
|
17
17
|
StripeUpdatePlanDto
|
|
18
|
-
} from '
|
|
18
|
+
} from '../types/stripe.dto.types';
|
|
19
19
|
|
|
20
20
|
export const CreatePlanSchema = {
|
|
21
21
|
id: optional(string),
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
string,
|
|
8
8
|
type
|
|
9
9
|
} from '@{{app_name}}/core';
|
|
10
|
-
import { BillingProviderEnum } from '
|
|
10
|
+
import { BillingProviderEnum } from '../enum/billingProvider.enum';
|
|
11
11
|
import {
|
|
12
12
|
StripeCreateSubscriptionDto,
|
|
13
13
|
StripeSubscriptionDto,
|
|
14
14
|
StripeUpdateSubscriptionDto
|
|
15
|
-
} from '
|
|
15
|
+
} from '../types/stripe.dto.types';
|
|
16
16
|
|
|
17
17
|
export const CreateSubscriptionSchema = <
|
|
18
18
|
T extends Record<string, LiteralSchema>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './stripe.dto.types';
|
|
2
|
-
export * from './stripe.entity.types';
|
|
2
|
+
export type * from './stripe.entity.types';
|