@yolo-croket-dev/entity-v2 0.0.44-jun.1 → 0.0.45

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,35 +1,44 @@
1
+ export interface DirectTosspaymentsPaymentRequestCardEscrowProduct {
2
+ id?: string;
3
+ name?: string;
4
+ code?: string;
5
+ unitPrice?: number;
6
+ quantity?: number;
7
+ }
8
+ export interface DirectTosspaymentsPaymentRequestCard {
9
+ useEscrow?: boolean;
10
+ taxExemptionAmount?: number;
11
+ flowMode?: 'DIRECT' | 'DEFAULT';
12
+ cardCompany?: string;
13
+ easyPay?: string;
14
+ cardInstallmentPlan?: number;
15
+ maxCardInstallmentPlan?: number;
16
+ freeInstallmentPlans?: {
17
+ company: string;
18
+ months: any[];
19
+ }[];
20
+ useCardPoint?: boolean;
21
+ useAppCardOnly?: boolean;
22
+ discountCode?: string;
23
+ validHours?: number;
24
+ dueDate?: string;
25
+ escrowProducts?: DirectTosspaymentsPaymentRequestCardEscrowProduct[];
26
+ useInternationalCardOnly?: boolean;
27
+ }
28
+ export interface DirectTosspaymentsPaymentRequestAmount {
29
+ value: number;
30
+ currency: string;
31
+ }
32
+ export interface DirectTosspaymentsPaymentRequestTransfer {
33
+ cashReceipt?: {
34
+ type: string;
35
+ };
36
+ useEscrow: false;
37
+ }
1
38
  export interface DirectTosspaymentsPaymentRequest {
2
39
  method: string;
3
- card?: {
4
- useEscrow?: boolean;
5
- taxExemptionAmount?: number;
6
- flowMode?: 'DIRECT' | 'DEFAULT';
7
- cardCompany?: string;
8
- easyPay?: string;
9
- cardInstallmentPlan?: number;
10
- maxCardInstallmentPlan?: number;
11
- freeInstallmentPlans?: {
12
- company: string;
13
- months: any[];
14
- }[];
15
- useCardPoint?: boolean;
16
- useAppCardOnly?: boolean;
17
- discountCode?: string;
18
- validHours?: number;
19
- dueDate?: string;
20
- escrowProducts?: {
21
- id?: string;
22
- name?: string;
23
- code?: string;
24
- unitPrice?: number;
25
- quantity?: number;
26
- }[];
27
- useInternationalCardOnly?: boolean;
28
- };
29
- amount: {
30
- value: number;
31
- currency: string;
32
- };
40
+ card?: DirectTosspaymentsPaymentRequestCard;
41
+ amount: DirectTosspaymentsPaymentRequestAmount;
33
42
  orderName: string;
34
43
  orderId: string;
35
44
  customerName?: string;
@@ -40,10 +49,5 @@ export interface DirectTosspaymentsPaymentRequest {
40
49
  metadata?: any;
41
50
  successUrl?: string;
42
51
  failUrl?: string;
43
- transfer?: {
44
- cashReceipt?: {
45
- type: string;
46
- };
47
- useEscrow: false;
48
- };
52
+ transfer?: DirectTosspaymentsPaymentRequestTransfer;
49
53
  }
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.0.44-jun.1",
3
+ "version": "0.0.45",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v2",