@bcc-code/payment-client 1.0.1 → 1.0.2
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/README.md +329 -2
- package/dist/components/index.js +1 -0
- package/dist/components/index.mjs +286 -0
- package/dist/index.d.mts +24 -1
- package/dist/index.d.ts +24 -1
- package/dist/styles/adyen.css +1 -0
- package/dist/styles/index.js +1 -0
- package/dist/styles/index.mjs +1 -0
- package/package.json +26 -6
- package/src/client/PaymentClient.ts +0 -117
- package/src/client/PaymentClientOptions.ts +0 -10
- package/src/client/index.ts +0 -6
- package/src/index.ts +0 -7
- package/src/types/index.ts +0 -5
- package/src/types/payment.ts +0 -99
- package/tsconfig.json +0 -26
package/src/types/payment.ts
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
export interface CreatePaymentRequest {
|
|
2
|
-
payerId?: string
|
|
3
|
-
amount: number
|
|
4
|
-
currency: string
|
|
5
|
-
countryCode?: string
|
|
6
|
-
paymentMethodType: string
|
|
7
|
-
merchantReference?: string
|
|
8
|
-
returnUrl: string
|
|
9
|
-
paymentMethodDetails?: Record<string, any>
|
|
10
|
-
person?: PersonInfoRequest
|
|
11
|
-
lineItems?: LineItemRequest[]
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface PersonInfoRequest {
|
|
15
|
-
payerUid: string
|
|
16
|
-
firstName?: string
|
|
17
|
-
lastName?: string
|
|
18
|
-
email?: string
|
|
19
|
-
addressLine1?: string
|
|
20
|
-
addressLine2?: string
|
|
21
|
-
city?: string
|
|
22
|
-
postalCode?: string
|
|
23
|
-
country?: string
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface LineItemRequest {
|
|
27
|
-
name: string
|
|
28
|
-
description?: string
|
|
29
|
-
unitPrice: number
|
|
30
|
-
quantity: number
|
|
31
|
-
taxPercentage?: number
|
|
32
|
-
taxAmount?: number
|
|
33
|
-
discountAmount?: number
|
|
34
|
-
discountPercentage?: number
|
|
35
|
-
productCode?: string
|
|
36
|
-
category?: string
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface CreatePaymentResponse {
|
|
40
|
-
paymentId: string
|
|
41
|
-
clientData?: string
|
|
42
|
-
clientKey?: string
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface PaymentResponse {
|
|
46
|
-
uid: string
|
|
47
|
-
amount: number
|
|
48
|
-
currency: string
|
|
49
|
-
status: string
|
|
50
|
-
payerUid: string
|
|
51
|
-
orgId: string
|
|
52
|
-
createdAt: string
|
|
53
|
-
updatedAt: string
|
|
54
|
-
lineItems?: LineItemResponse[]
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface LineItemResponse {
|
|
58
|
-
id: string
|
|
59
|
-
productId: string
|
|
60
|
-
name: string
|
|
61
|
-
description?: string
|
|
62
|
-
unitPrice: number
|
|
63
|
-
quantity: number
|
|
64
|
-
taxPercentage?: number
|
|
65
|
-
taxAmount?: number
|
|
66
|
-
discountAmount?: number
|
|
67
|
-
discountPercentage?: number
|
|
68
|
-
productCode?: string
|
|
69
|
-
category?: string
|
|
70
|
-
createdAt: string
|
|
71
|
-
updatedAt: string
|
|
72
|
-
subtotal: number
|
|
73
|
-
totalTaxAmount: number
|
|
74
|
-
totalDiscountAmount: number
|
|
75
|
-
total: number
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface PaymentReceiptResponse {
|
|
79
|
-
uid: string
|
|
80
|
-
amount: number
|
|
81
|
-
currency: string
|
|
82
|
-
status: string
|
|
83
|
-
payerId?: string
|
|
84
|
-
createdAt: string
|
|
85
|
-
updatedAt: string
|
|
86
|
-
lineItems?: LineItemResponse[]
|
|
87
|
-
merchantName?: string
|
|
88
|
-
merchantContact?: string
|
|
89
|
-
pspReference?: string
|
|
90
|
-
buyerName?: string
|
|
91
|
-
buyerEmail?: string
|
|
92
|
-
taxAmount?: number
|
|
93
|
-
discountAmount?: number
|
|
94
|
-
amountFormatted?: string
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
package/tsconfig.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"lib": ["ES2020", "DOM"],
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"declarationMap": true,
|
|
8
|
-
"sourceMap": true,
|
|
9
|
-
"outDir": "./dist",
|
|
10
|
-
"rootDir": "./src",
|
|
11
|
-
"strict": true,
|
|
12
|
-
"esModuleInterop": true,
|
|
13
|
-
"skipLibCheck": true,
|
|
14
|
-
"forceConsistentCasingInFileNames": true,
|
|
15
|
-
"moduleResolution": "node",
|
|
16
|
-
"resolveJsonModule": true,
|
|
17
|
-
"isolatedModules": true,
|
|
18
|
-
"noEmit": false
|
|
19
|
-
},
|
|
20
|
-
"include": ["src/**/*"],
|
|
21
|
-
"exclude": ["node_modules", "dist"]
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|