@paykit-sdk/gopay 1.0.0
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 +185 -0
- package/dist/controllers/auth.d.mts +19 -0
- package/dist/controllers/auth.d.ts +19 -0
- package/dist/controllers/auth.js +41 -0
- package/dist/controllers/auth.mjs +39 -0
- package/dist/gopay-provider.d.mts +58 -0
- package/dist/gopay-provider.d.ts +58 -0
- package/dist/gopay-provider.js +4757 -0
- package/dist/gopay-provider.mjs +4735 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +4777 -0
- package/dist/index.mjs +4754 -0
- package/dist/schema.d.mts +295 -0
- package/dist/schema.d.ts +295 -0
- package/dist/schema.js +2 -0
- package/dist/schema.mjs +1 -0
- package/dist/utils/mapper.d.mts +12 -0
- package/dist/utils/mapper.d.ts +12 -0
- package/dist/utils/mapper.js +105 -0
- package/dist/utils/mapper.mjs +100 -0
- package/package.json +47 -0
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
interface GoPayTokenResponse {
|
|
2
|
+
/**
|
|
3
|
+
* The type of the token
|
|
4
|
+
*/
|
|
5
|
+
token_type: string;
|
|
6
|
+
/**
|
|
7
|
+
* The access token
|
|
8
|
+
*/
|
|
9
|
+
access_token: string;
|
|
10
|
+
/**
|
|
11
|
+
* The expiry time of the token
|
|
12
|
+
*/
|
|
13
|
+
expires_in: number;
|
|
14
|
+
}
|
|
15
|
+
interface GoPayPaymentResponse {
|
|
16
|
+
/**
|
|
17
|
+
* The ID of the payment
|
|
18
|
+
*/
|
|
19
|
+
id: number;
|
|
20
|
+
/**
|
|
21
|
+
* The order number of the payment
|
|
22
|
+
*/
|
|
23
|
+
order_number: string;
|
|
24
|
+
/**
|
|
25
|
+
* The state of the payment
|
|
26
|
+
*/
|
|
27
|
+
state: 'CREATED' | 'PAYMENT_METHOD_CHOSEN' | 'PAID' | 'AUTHORIZED' | 'CANCELED' | 'TIMEOUTED' | 'REFUNDED' | 'PARTIALLY_REFUNDED';
|
|
28
|
+
/**
|
|
29
|
+
* The sub state of the payment
|
|
30
|
+
*/
|
|
31
|
+
sub_state?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The amount of the payment
|
|
34
|
+
*/
|
|
35
|
+
amount: number;
|
|
36
|
+
/**
|
|
37
|
+
* The currency of the payment
|
|
38
|
+
*/
|
|
39
|
+
currency: string;
|
|
40
|
+
/**
|
|
41
|
+
* The payment instrument of the payment
|
|
42
|
+
*/
|
|
43
|
+
payment_instrument?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The payer of the payment
|
|
46
|
+
*/
|
|
47
|
+
payer?: any;
|
|
48
|
+
/**
|
|
49
|
+
* The target of the payment
|
|
50
|
+
*/
|
|
51
|
+
target?: any;
|
|
52
|
+
/**
|
|
53
|
+
* The recurrence of the payment
|
|
54
|
+
*/
|
|
55
|
+
recurrence?: {
|
|
56
|
+
/**
|
|
57
|
+
* The recurrence cycle of the payment
|
|
58
|
+
*/
|
|
59
|
+
recurrence_cycle?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The state of the recurrence e.g (STOPPED)
|
|
62
|
+
*/
|
|
63
|
+
recurrence_state?: string;
|
|
64
|
+
/**
|
|
65
|
+
* The recurrence date to of the payment
|
|
66
|
+
*/
|
|
67
|
+
recurrence_date_to?: string;
|
|
68
|
+
/**
|
|
69
|
+
* The recurrence date from of the payment
|
|
70
|
+
*/
|
|
71
|
+
recurrence_date_from?: string;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* The preauthorization of the payment
|
|
75
|
+
*/
|
|
76
|
+
preauthorization?: any;
|
|
77
|
+
/**
|
|
78
|
+
* The GW URL of the payment
|
|
79
|
+
*/
|
|
80
|
+
gw_url?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The language of the payment
|
|
83
|
+
*/
|
|
84
|
+
lang?: string;
|
|
85
|
+
/**
|
|
86
|
+
* The additional parameters of the payment
|
|
87
|
+
*/
|
|
88
|
+
additional_params?: Array<{
|
|
89
|
+
/**
|
|
90
|
+
* The name of the additional parameter
|
|
91
|
+
*/
|
|
92
|
+
name: string;
|
|
93
|
+
/**
|
|
94
|
+
* The value of the additional parameter
|
|
95
|
+
*/
|
|
96
|
+
value: string;
|
|
97
|
+
}>;
|
|
98
|
+
}
|
|
99
|
+
interface GoPayPaymentItem {
|
|
100
|
+
/**
|
|
101
|
+
* The type of the item
|
|
102
|
+
*/
|
|
103
|
+
type: string;
|
|
104
|
+
/**
|
|
105
|
+
* The name of the item
|
|
106
|
+
*/
|
|
107
|
+
name: string;
|
|
108
|
+
/**
|
|
109
|
+
* The amount of the item
|
|
110
|
+
*/
|
|
111
|
+
amount: number;
|
|
112
|
+
/**
|
|
113
|
+
* The count of the item
|
|
114
|
+
*/
|
|
115
|
+
count: number;
|
|
116
|
+
/**
|
|
117
|
+
* The VAT rate of the item
|
|
118
|
+
*/
|
|
119
|
+
vat_rate?: string;
|
|
120
|
+
/**
|
|
121
|
+
* The EAN of the item
|
|
122
|
+
*/
|
|
123
|
+
ean?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The product URL of the item
|
|
126
|
+
*/
|
|
127
|
+
product_url?: string;
|
|
128
|
+
}
|
|
129
|
+
interface GoPayPaymentRequest {
|
|
130
|
+
/**
|
|
131
|
+
* The payer of the payment
|
|
132
|
+
*/
|
|
133
|
+
payer: {
|
|
134
|
+
/**
|
|
135
|
+
* The allowed payment instruments of the payer
|
|
136
|
+
*/
|
|
137
|
+
allowed_payment_instruments?: string[];
|
|
138
|
+
/**
|
|
139
|
+
* The default payment instrument of the payer
|
|
140
|
+
*/
|
|
141
|
+
default_payment_instrument?: string;
|
|
142
|
+
/**
|
|
143
|
+
* The contact of the payer
|
|
144
|
+
*/
|
|
145
|
+
contact?: {
|
|
146
|
+
/**
|
|
147
|
+
* The first name of the contact
|
|
148
|
+
*/
|
|
149
|
+
first_name?: string;
|
|
150
|
+
/**
|
|
151
|
+
* The last name of the contact
|
|
152
|
+
*/
|
|
153
|
+
last_name?: string;
|
|
154
|
+
/**
|
|
155
|
+
* The email of the contact
|
|
156
|
+
*/
|
|
157
|
+
email: string;
|
|
158
|
+
/**
|
|
159
|
+
* The phone number of the contact
|
|
160
|
+
*/
|
|
161
|
+
phone_number?: string;
|
|
162
|
+
/**
|
|
163
|
+
* The city of the contact
|
|
164
|
+
*/
|
|
165
|
+
city?: string;
|
|
166
|
+
/**
|
|
167
|
+
* The street of the contact
|
|
168
|
+
*/
|
|
169
|
+
street?: string;
|
|
170
|
+
/**
|
|
171
|
+
* The postal code of the contact
|
|
172
|
+
*/
|
|
173
|
+
postal_code?: string;
|
|
174
|
+
/**
|
|
175
|
+
* The country code of the contact
|
|
176
|
+
*/
|
|
177
|
+
country_code?: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* The target of the payment
|
|
182
|
+
*/
|
|
183
|
+
target: {
|
|
184
|
+
/**
|
|
185
|
+
* The type of the target
|
|
186
|
+
*/
|
|
187
|
+
type: 'ACCOUNT';
|
|
188
|
+
/**
|
|
189
|
+
* The GoID of the target
|
|
190
|
+
*/
|
|
191
|
+
goid: number;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* The amount of the payment
|
|
195
|
+
*/
|
|
196
|
+
amount: number;
|
|
197
|
+
/**
|
|
198
|
+
* The currency of the payment
|
|
199
|
+
*/
|
|
200
|
+
currency: string;
|
|
201
|
+
/**
|
|
202
|
+
* The order number of the payment
|
|
203
|
+
*/
|
|
204
|
+
order_number: string;
|
|
205
|
+
/**
|
|
206
|
+
* The description of the payment
|
|
207
|
+
*/
|
|
208
|
+
order_description?: string;
|
|
209
|
+
/**
|
|
210
|
+
* The items of the payment
|
|
211
|
+
*/
|
|
212
|
+
items?: Array<{
|
|
213
|
+
/**
|
|
214
|
+
* The name of the item
|
|
215
|
+
*/
|
|
216
|
+
name: string;
|
|
217
|
+
/**
|
|
218
|
+
* The amount of the item
|
|
219
|
+
*/
|
|
220
|
+
amount: number;
|
|
221
|
+
/**
|
|
222
|
+
* The count of the item
|
|
223
|
+
*/
|
|
224
|
+
count?: number;
|
|
225
|
+
/**
|
|
226
|
+
* The type of the item
|
|
227
|
+
*/
|
|
228
|
+
type?: string;
|
|
229
|
+
/**
|
|
230
|
+
* The VAT rate of the item
|
|
231
|
+
*/
|
|
232
|
+
vat_rate?: string;
|
|
233
|
+
/**
|
|
234
|
+
* The EAN of the item
|
|
235
|
+
*/
|
|
236
|
+
ean?: string;
|
|
237
|
+
/**
|
|
238
|
+
* The product URL of the item
|
|
239
|
+
*/
|
|
240
|
+
product_url?: string;
|
|
241
|
+
}>;
|
|
242
|
+
/**
|
|
243
|
+
* The language of the payment
|
|
244
|
+
*/
|
|
245
|
+
lang?: string;
|
|
246
|
+
/**
|
|
247
|
+
* The callback of the payment
|
|
248
|
+
*/
|
|
249
|
+
callback?: {
|
|
250
|
+
/**
|
|
251
|
+
* The return URL of the payment
|
|
252
|
+
*/
|
|
253
|
+
return_url: string;
|
|
254
|
+
/**
|
|
255
|
+
* The notification URL of the payment
|
|
256
|
+
*/
|
|
257
|
+
notification_url: string;
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* The additional parameters of the payment
|
|
261
|
+
*/
|
|
262
|
+
additional_params?: Array<{
|
|
263
|
+
/**
|
|
264
|
+
* The name of the additional parameter
|
|
265
|
+
*/
|
|
266
|
+
name: string;
|
|
267
|
+
/**
|
|
268
|
+
* The value of the additional parameter
|
|
269
|
+
*/
|
|
270
|
+
value: string;
|
|
271
|
+
}>;
|
|
272
|
+
/**
|
|
273
|
+
* The recurrence of the payment
|
|
274
|
+
*/
|
|
275
|
+
recurrence?: {
|
|
276
|
+
/**
|
|
277
|
+
* The recurrence cycle of the payment
|
|
278
|
+
*/
|
|
279
|
+
recurrence_cycle: 'DAY' | 'WEEK' | 'MONTH' | 'ON_DEMAND';
|
|
280
|
+
/**
|
|
281
|
+
* The recurrence period of the payment
|
|
282
|
+
*/
|
|
283
|
+
recurrence_period?: number;
|
|
284
|
+
/**
|
|
285
|
+
* The recurrence date to of the payment
|
|
286
|
+
*/
|
|
287
|
+
recurrence_date_to?: string;
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* The preauthorization of the payment
|
|
291
|
+
*/
|
|
292
|
+
preauthorization?: boolean;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export type { GoPayPaymentItem, GoPayPaymentRequest, GoPayPaymentResponse, GoPayTokenResponse };
|
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
interface GoPayTokenResponse {
|
|
2
|
+
/**
|
|
3
|
+
* The type of the token
|
|
4
|
+
*/
|
|
5
|
+
token_type: string;
|
|
6
|
+
/**
|
|
7
|
+
* The access token
|
|
8
|
+
*/
|
|
9
|
+
access_token: string;
|
|
10
|
+
/**
|
|
11
|
+
* The expiry time of the token
|
|
12
|
+
*/
|
|
13
|
+
expires_in: number;
|
|
14
|
+
}
|
|
15
|
+
interface GoPayPaymentResponse {
|
|
16
|
+
/**
|
|
17
|
+
* The ID of the payment
|
|
18
|
+
*/
|
|
19
|
+
id: number;
|
|
20
|
+
/**
|
|
21
|
+
* The order number of the payment
|
|
22
|
+
*/
|
|
23
|
+
order_number: string;
|
|
24
|
+
/**
|
|
25
|
+
* The state of the payment
|
|
26
|
+
*/
|
|
27
|
+
state: 'CREATED' | 'PAYMENT_METHOD_CHOSEN' | 'PAID' | 'AUTHORIZED' | 'CANCELED' | 'TIMEOUTED' | 'REFUNDED' | 'PARTIALLY_REFUNDED';
|
|
28
|
+
/**
|
|
29
|
+
* The sub state of the payment
|
|
30
|
+
*/
|
|
31
|
+
sub_state?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The amount of the payment
|
|
34
|
+
*/
|
|
35
|
+
amount: number;
|
|
36
|
+
/**
|
|
37
|
+
* The currency of the payment
|
|
38
|
+
*/
|
|
39
|
+
currency: string;
|
|
40
|
+
/**
|
|
41
|
+
* The payment instrument of the payment
|
|
42
|
+
*/
|
|
43
|
+
payment_instrument?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The payer of the payment
|
|
46
|
+
*/
|
|
47
|
+
payer?: any;
|
|
48
|
+
/**
|
|
49
|
+
* The target of the payment
|
|
50
|
+
*/
|
|
51
|
+
target?: any;
|
|
52
|
+
/**
|
|
53
|
+
* The recurrence of the payment
|
|
54
|
+
*/
|
|
55
|
+
recurrence?: {
|
|
56
|
+
/**
|
|
57
|
+
* The recurrence cycle of the payment
|
|
58
|
+
*/
|
|
59
|
+
recurrence_cycle?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The state of the recurrence e.g (STOPPED)
|
|
62
|
+
*/
|
|
63
|
+
recurrence_state?: string;
|
|
64
|
+
/**
|
|
65
|
+
* The recurrence date to of the payment
|
|
66
|
+
*/
|
|
67
|
+
recurrence_date_to?: string;
|
|
68
|
+
/**
|
|
69
|
+
* The recurrence date from of the payment
|
|
70
|
+
*/
|
|
71
|
+
recurrence_date_from?: string;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* The preauthorization of the payment
|
|
75
|
+
*/
|
|
76
|
+
preauthorization?: any;
|
|
77
|
+
/**
|
|
78
|
+
* The GW URL of the payment
|
|
79
|
+
*/
|
|
80
|
+
gw_url?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The language of the payment
|
|
83
|
+
*/
|
|
84
|
+
lang?: string;
|
|
85
|
+
/**
|
|
86
|
+
* The additional parameters of the payment
|
|
87
|
+
*/
|
|
88
|
+
additional_params?: Array<{
|
|
89
|
+
/**
|
|
90
|
+
* The name of the additional parameter
|
|
91
|
+
*/
|
|
92
|
+
name: string;
|
|
93
|
+
/**
|
|
94
|
+
* The value of the additional parameter
|
|
95
|
+
*/
|
|
96
|
+
value: string;
|
|
97
|
+
}>;
|
|
98
|
+
}
|
|
99
|
+
interface GoPayPaymentItem {
|
|
100
|
+
/**
|
|
101
|
+
* The type of the item
|
|
102
|
+
*/
|
|
103
|
+
type: string;
|
|
104
|
+
/**
|
|
105
|
+
* The name of the item
|
|
106
|
+
*/
|
|
107
|
+
name: string;
|
|
108
|
+
/**
|
|
109
|
+
* The amount of the item
|
|
110
|
+
*/
|
|
111
|
+
amount: number;
|
|
112
|
+
/**
|
|
113
|
+
* The count of the item
|
|
114
|
+
*/
|
|
115
|
+
count: number;
|
|
116
|
+
/**
|
|
117
|
+
* The VAT rate of the item
|
|
118
|
+
*/
|
|
119
|
+
vat_rate?: string;
|
|
120
|
+
/**
|
|
121
|
+
* The EAN of the item
|
|
122
|
+
*/
|
|
123
|
+
ean?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The product URL of the item
|
|
126
|
+
*/
|
|
127
|
+
product_url?: string;
|
|
128
|
+
}
|
|
129
|
+
interface GoPayPaymentRequest {
|
|
130
|
+
/**
|
|
131
|
+
* The payer of the payment
|
|
132
|
+
*/
|
|
133
|
+
payer: {
|
|
134
|
+
/**
|
|
135
|
+
* The allowed payment instruments of the payer
|
|
136
|
+
*/
|
|
137
|
+
allowed_payment_instruments?: string[];
|
|
138
|
+
/**
|
|
139
|
+
* The default payment instrument of the payer
|
|
140
|
+
*/
|
|
141
|
+
default_payment_instrument?: string;
|
|
142
|
+
/**
|
|
143
|
+
* The contact of the payer
|
|
144
|
+
*/
|
|
145
|
+
contact?: {
|
|
146
|
+
/**
|
|
147
|
+
* The first name of the contact
|
|
148
|
+
*/
|
|
149
|
+
first_name?: string;
|
|
150
|
+
/**
|
|
151
|
+
* The last name of the contact
|
|
152
|
+
*/
|
|
153
|
+
last_name?: string;
|
|
154
|
+
/**
|
|
155
|
+
* The email of the contact
|
|
156
|
+
*/
|
|
157
|
+
email: string;
|
|
158
|
+
/**
|
|
159
|
+
* The phone number of the contact
|
|
160
|
+
*/
|
|
161
|
+
phone_number?: string;
|
|
162
|
+
/**
|
|
163
|
+
* The city of the contact
|
|
164
|
+
*/
|
|
165
|
+
city?: string;
|
|
166
|
+
/**
|
|
167
|
+
* The street of the contact
|
|
168
|
+
*/
|
|
169
|
+
street?: string;
|
|
170
|
+
/**
|
|
171
|
+
* The postal code of the contact
|
|
172
|
+
*/
|
|
173
|
+
postal_code?: string;
|
|
174
|
+
/**
|
|
175
|
+
* The country code of the contact
|
|
176
|
+
*/
|
|
177
|
+
country_code?: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* The target of the payment
|
|
182
|
+
*/
|
|
183
|
+
target: {
|
|
184
|
+
/**
|
|
185
|
+
* The type of the target
|
|
186
|
+
*/
|
|
187
|
+
type: 'ACCOUNT';
|
|
188
|
+
/**
|
|
189
|
+
* The GoID of the target
|
|
190
|
+
*/
|
|
191
|
+
goid: number;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* The amount of the payment
|
|
195
|
+
*/
|
|
196
|
+
amount: number;
|
|
197
|
+
/**
|
|
198
|
+
* The currency of the payment
|
|
199
|
+
*/
|
|
200
|
+
currency: string;
|
|
201
|
+
/**
|
|
202
|
+
* The order number of the payment
|
|
203
|
+
*/
|
|
204
|
+
order_number: string;
|
|
205
|
+
/**
|
|
206
|
+
* The description of the payment
|
|
207
|
+
*/
|
|
208
|
+
order_description?: string;
|
|
209
|
+
/**
|
|
210
|
+
* The items of the payment
|
|
211
|
+
*/
|
|
212
|
+
items?: Array<{
|
|
213
|
+
/**
|
|
214
|
+
* The name of the item
|
|
215
|
+
*/
|
|
216
|
+
name: string;
|
|
217
|
+
/**
|
|
218
|
+
* The amount of the item
|
|
219
|
+
*/
|
|
220
|
+
amount: number;
|
|
221
|
+
/**
|
|
222
|
+
* The count of the item
|
|
223
|
+
*/
|
|
224
|
+
count?: number;
|
|
225
|
+
/**
|
|
226
|
+
* The type of the item
|
|
227
|
+
*/
|
|
228
|
+
type?: string;
|
|
229
|
+
/**
|
|
230
|
+
* The VAT rate of the item
|
|
231
|
+
*/
|
|
232
|
+
vat_rate?: string;
|
|
233
|
+
/**
|
|
234
|
+
* The EAN of the item
|
|
235
|
+
*/
|
|
236
|
+
ean?: string;
|
|
237
|
+
/**
|
|
238
|
+
* The product URL of the item
|
|
239
|
+
*/
|
|
240
|
+
product_url?: string;
|
|
241
|
+
}>;
|
|
242
|
+
/**
|
|
243
|
+
* The language of the payment
|
|
244
|
+
*/
|
|
245
|
+
lang?: string;
|
|
246
|
+
/**
|
|
247
|
+
* The callback of the payment
|
|
248
|
+
*/
|
|
249
|
+
callback?: {
|
|
250
|
+
/**
|
|
251
|
+
* The return URL of the payment
|
|
252
|
+
*/
|
|
253
|
+
return_url: string;
|
|
254
|
+
/**
|
|
255
|
+
* The notification URL of the payment
|
|
256
|
+
*/
|
|
257
|
+
notification_url: string;
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* The additional parameters of the payment
|
|
261
|
+
*/
|
|
262
|
+
additional_params?: Array<{
|
|
263
|
+
/**
|
|
264
|
+
* The name of the additional parameter
|
|
265
|
+
*/
|
|
266
|
+
name: string;
|
|
267
|
+
/**
|
|
268
|
+
* The value of the additional parameter
|
|
269
|
+
*/
|
|
270
|
+
value: string;
|
|
271
|
+
}>;
|
|
272
|
+
/**
|
|
273
|
+
* The recurrence of the payment
|
|
274
|
+
*/
|
|
275
|
+
recurrence?: {
|
|
276
|
+
/**
|
|
277
|
+
* The recurrence cycle of the payment
|
|
278
|
+
*/
|
|
279
|
+
recurrence_cycle: 'DAY' | 'WEEK' | 'MONTH' | 'ON_DEMAND';
|
|
280
|
+
/**
|
|
281
|
+
* The recurrence period of the payment
|
|
282
|
+
*/
|
|
283
|
+
recurrence_period?: number;
|
|
284
|
+
/**
|
|
285
|
+
* The recurrence date to of the payment
|
|
286
|
+
*/
|
|
287
|
+
recurrence_date_to?: string;
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* The preauthorization of the payment
|
|
291
|
+
*/
|
|
292
|
+
preauthorization?: boolean;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export type { GoPayPaymentItem, GoPayPaymentRequest, GoPayPaymentResponse, GoPayTokenResponse };
|
package/dist/schema.js
ADDED
package/dist/schema.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Payment, Invoice, Subscription, Refund } from '@paykit-sdk/core';
|
|
2
|
+
import { GoPayPaymentResponse } from '../schema.mjs';
|
|
3
|
+
|
|
4
|
+
declare const paykitPayment$InboundSchema: (data: GoPayPaymentResponse) => Payment;
|
|
5
|
+
declare const paykitInvoice$InboundSchema: (data: GoPayPaymentResponse, isSubscription: boolean) => Invoice;
|
|
6
|
+
declare const paykitSubscription$InboundSchema: (data: GoPayPaymentResponse) => Subscription;
|
|
7
|
+
/**
|
|
8
|
+
* Refund
|
|
9
|
+
*/
|
|
10
|
+
declare const paykitRefund$InboundSchema: (data: GoPayPaymentResponse) => Refund;
|
|
11
|
+
|
|
12
|
+
export { paykitInvoice$InboundSchema, paykitPayment$InboundSchema, paykitRefund$InboundSchema, paykitSubscription$InboundSchema };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Payment, Invoice, Subscription, Refund } from '@paykit-sdk/core';
|
|
2
|
+
import { GoPayPaymentResponse } from '../schema.js';
|
|
3
|
+
|
|
4
|
+
declare const paykitPayment$InboundSchema: (data: GoPayPaymentResponse) => Payment;
|
|
5
|
+
declare const paykitInvoice$InboundSchema: (data: GoPayPaymentResponse, isSubscription: boolean) => Invoice;
|
|
6
|
+
declare const paykitSubscription$InboundSchema: (data: GoPayPaymentResponse) => Subscription;
|
|
7
|
+
/**
|
|
8
|
+
* Refund
|
|
9
|
+
*/
|
|
10
|
+
declare const paykitRefund$InboundSchema: (data: GoPayPaymentResponse) => Refund;
|
|
11
|
+
|
|
12
|
+
export { paykitInvoice$InboundSchema, paykitPayment$InboundSchema, paykitRefund$InboundSchema, paykitSubscription$InboundSchema };
|