@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.
@@ -1,39 +1,41 @@
1
- export enum 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
- }
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 enum PlanCadenceEnum {
2
- WEEKLY = 'week',
3
- MONTHLY = 'month',
4
- ANNUALLY = 'year'
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];
@@ -3,7 +3,7 @@ import {
3
3
  StripeBillingPortalDto,
4
4
  StripeCreateBillingPortalDto,
5
5
  StripeUpdateBillingPortalDto
6
- } from '../../types/stripe.dto.types';
6
+ } from '../types/stripe.dto.types';
7
7
 
8
8
  export const CreateBillingPortalSchema = {
9
9
  id: optional(string),
@@ -8,13 +8,13 @@ import {
8
8
  type,
9
9
  unknown
10
10
  } from '@{{app_name}}/core';
11
- import { CurrencyEnum } from '../../enum/currency.enum';
12
- import { PaymentMethodEnum } from '../../enum/paymentMethod.enum';
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 '../../types/stripe.dto.types';
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 '../../enum/currency.enum';
12
- import { PaymentMethodEnum } from '../../enum/paymentMethod.enum';
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 '../../types/stripe.dto.types';
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 '../../enum/billingProvider.enum';
12
- import { CurrencyEnum } from '../../enum/currency.enum';
13
- import { PlanCadenceEnum } from '../../enum/planCadence.enum';
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 '../../types/stripe.dto.types';
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 '../../enum/billingProvider.enum';
10
+ import { BillingProviderEnum } from '../enum/billingProvider.enum';
11
11
  import {
12
12
  StripeCreateSubscriptionDto,
13
13
  StripeSubscriptionDto,
14
14
  StripeUpdateSubscriptionDto
15
- } from '../../types/stripe.dto.types';
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';
@@ -37,7 +37,7 @@ export class StripePaymentLinkService<
37
37
  > implements
38
38
  PaymentLinkService<
39
39
  PaymentMethodEnum,
40
- CurrencyEnum,
40
+ typeof CurrencyEnum,
41
41
  StatusEnum,
42
42
  {
43
43
  CreatePaymentLinkDto: StripeCreatePaymentLinkDto<StatusEnum>;