@klingis/sdk 0.0.0 → 0.2.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/dist/generated/billing-portal/billing-portal.d.ts +93 -0
- package/dist/generated/billing-portal/billing-portal.d.ts.map +1 -0
- package/dist/generated/billing-portal/billing-portal.js +21 -0
- package/dist/generated/billing-portal/billing-portal.js.map +1 -0
- package/dist/generated/checkout-sessions/checkout-sessions.d.ts +105 -0
- package/dist/generated/checkout-sessions/checkout-sessions.d.ts.map +1 -0
- package/dist/generated/checkout-sessions/checkout-sessions.js +21 -0
- package/dist/generated/checkout-sessions/checkout-sessions.js.map +1 -0
- package/dist/generated/claims/claims.d.ts +258 -0
- package/dist/generated/claims/claims.d.ts.map +1 -0
- package/dist/generated/claims/claims.js +56 -0
- package/dist/generated/claims/claims.js.map +1 -0
- package/dist/generated/coupons/coupons.d.ts +198 -0
- package/dist/generated/coupons/coupons.d.ts.map +1 -0
- package/dist/generated/coupons/coupons.js +57 -0
- package/dist/generated/coupons/coupons.js.map +1 -0
- package/dist/generated/customers/customers.d.ts +234 -0
- package/dist/generated/customers/customers.d.ts.map +1 -0
- package/dist/generated/customers/customers.js +57 -0
- package/dist/generated/customers/customers.js.map +1 -0
- package/dist/generated/device-auth/device-auth.d.ts +45 -0
- package/dist/generated/device-auth/device-auth.d.ts.map +1 -0
- package/dist/generated/device-auth/device-auth.js +30 -0
- package/dist/generated/device-auth/device-auth.js.map +1 -0
- package/dist/generated/events/events.d.ts +23 -0
- package/dist/generated/events/events.d.ts.map +1 -0
- package/dist/generated/events/events.js +19 -0
- package/dist/generated/events/events.js.map +1 -0
- package/dist/generated/health/health.d.ts +30 -0
- package/dist/generated/health/health.d.ts.map +1 -0
- package/dist/generated/health/health.js +12 -0
- package/dist/generated/health/health.js.map +1 -0
- package/dist/generated/index.d.ts +23 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +26 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/klingAPI.schemas.d.ts +17901 -0
- package/dist/generated/klingAPI.schemas.d.ts.map +1 -0
- package/dist/generated/klingAPI.schemas.js +2 -0
- package/dist/generated/klingAPI.schemas.js.map +1 -0
- package/dist/generated/merchant/merchant.d.ts +65 -0
- package/dist/generated/merchant/merchant.d.ts.map +1 -0
- package/dist/generated/merchant/merchant.js +44 -0
- package/dist/generated/merchant/merchant.js.map +1 -0
- package/dist/generated/meta/meta.d.ts +30 -0
- package/dist/generated/meta/meta.d.ts.map +1 -0
- package/dist/generated/meta/meta.js +12 -0
- package/dist/generated/meta/meta.js.map +1 -0
- package/dist/generated/notification-channels/notification-channels.d.ts +255 -0
- package/dist/generated/notification-channels/notification-channels.d.ts.map +1 -0
- package/dist/generated/notification-channels/notification-channels.js +83 -0
- package/dist/generated/notification-channels/notification-channels.js.map +1 -0
- package/dist/generated/payment-intents/payment-intents.d.ts +306 -0
- package/dist/generated/payment-intents/payment-intents.d.ts.map +1 -0
- package/dist/generated/payment-intents/payment-intents.js +76 -0
- package/dist/generated/payment-intents/payment-intents.js.map +1 -0
- package/dist/generated/payment-links/payment-links.d.ts +258 -0
- package/dist/generated/payment-links/payment-links.d.ts.map +1 -0
- package/dist/generated/payment-links/payment-links.js +75 -0
- package/dist/generated/payment-links/payment-links.js.map +1 -0
- package/dist/generated/payment-methods/payment-methods.d.ts +189 -0
- package/dist/generated/payment-methods/payment-methods.d.ts.map +1 -0
- package/dist/generated/payment-methods/payment-methods.js +40 -0
- package/dist/generated/payment-methods/payment-methods.js.map +1 -0
- package/dist/generated/pos-devices/pos-devices.d.ts +129 -0
- package/dist/generated/pos-devices/pos-devices.d.ts.map +1 -0
- package/dist/generated/pos-devices/pos-devices.js +30 -0
- package/dist/generated/pos-devices/pos-devices.js.map +1 -0
- package/dist/generated/products/products.d.ts +222 -0
- package/dist/generated/products/products.d.ts.map +1 -0
- package/dist/generated/products/products.js +57 -0
- package/dist/generated/products/products.js.map +1 -0
- package/dist/generated/promotion-codes/promotion-codes.d.ts +198 -0
- package/dist/generated/promotion-codes/promotion-codes.d.ts.map +1 -0
- package/dist/generated/promotion-codes/promotion-codes.js +58 -0
- package/dist/generated/promotion-codes/promotion-codes.js.map +1 -0
- package/dist/generated/reports/reports.d.ts +100 -0
- package/dist/generated/reports/reports.d.ts.map +1 -0
- package/dist/generated/reports/reports.js +107 -0
- package/dist/generated/reports/reports.js.map +1 -0
- package/dist/generated/subscriptions/subscriptions.d.ts +309 -0
- package/dist/generated/subscriptions/subscriptions.d.ts.map +1 -0
- package/dist/generated/subscriptions/subscriptions.js +75 -0
- package/dist/generated/subscriptions/subscriptions.js.map +1 -0
- package/dist/generated/terminal/terminal.d.ts +168 -0
- package/dist/generated/terminal/terminal.d.ts.map +1 -0
- package/dist/generated/terminal/terminal.js +32 -0
- package/dist/generated/terminal/terminal.js.map +1 -0
- package/dist/generated/testing/testing.d.ts +81 -0
- package/dist/generated/testing/testing.d.ts.map +1 -0
- package/dist/generated/testing/testing.js +12 -0
- package/dist/generated/testing/testing.js.map +1 -0
- package/dist/index.d.ts +3 -97
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -393
- package/dist/index.js.map +1 -1
- package/dist/mutator.d.ts +8 -0
- package/dist/mutator.d.ts.map +1 -0
- package/dist/mutator.js +24 -0
- package/dist/mutator.js.map +1 -0
- package/package.json +14 -13
- package/README.md +0 -62
- package/dist/index.cjs +0 -394
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -97
- package/dist/kling.min.js +0 -395
- package/dist/kling.min.js.map +0 -1
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Kling API
|
|
5
|
+
* Payments and subscriptions platform for Iceland.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import type { GetV1PaymentIntents200One, GetV1PaymentIntents200Three, GetV1PaymentIntents200Two, GetV1PaymentIntentsById200One, GetV1PaymentIntentsById200Three, GetV1PaymentIntentsById200Two, GetV1PaymentIntentsById404One, GetV1PaymentIntentsById404Three, GetV1PaymentIntentsById404Two, GetV1PaymentIntentsByIdReceipt200One, GetV1PaymentIntentsByIdReceipt200Three, GetV1PaymentIntentsByIdReceipt200Two, GetV1PaymentIntentsByIdReceipt404One, GetV1PaymentIntentsByIdReceipt404Three, GetV1PaymentIntentsByIdReceipt404Two, GetV1PaymentIntentsByIdReceipt409One, GetV1PaymentIntentsByIdReceipt409Three, GetV1PaymentIntentsByIdReceipt409Two, GetV1PaymentIntentsParams, PostV1PaymentIntents200One, PostV1PaymentIntents200Three, PostV1PaymentIntents200Two, PostV1PaymentIntents400One, PostV1PaymentIntents400Three, PostV1PaymentIntents400Two, PostV1PaymentIntents404One, PostV1PaymentIntents404Three, PostV1PaymentIntents404Two, PostV1PaymentIntentsBodyOne, PostV1PaymentIntentsBodyThree, PostV1PaymentIntentsBodyTwo, PostV1PaymentIntentsByIdCancel200One, PostV1PaymentIntentsByIdCancel200Three, PostV1PaymentIntentsByIdCancel200Two, PostV1PaymentIntentsByIdCancel400One, PostV1PaymentIntentsByIdCancel400Three, PostV1PaymentIntentsByIdCancel400Two, PostV1PaymentIntentsByIdCancel404One, PostV1PaymentIntentsByIdCancel404Three, PostV1PaymentIntentsByIdCancel404Two, PostV1PaymentIntentsByIdCapture200One, PostV1PaymentIntentsByIdCapture200Three, PostV1PaymentIntentsByIdCapture200Two, PostV1PaymentIntentsByIdCapture400One, PostV1PaymentIntentsByIdCapture400Three, PostV1PaymentIntentsByIdCapture400Two, PostV1PaymentIntentsByIdCapture404One, PostV1PaymentIntentsByIdCapture404Three, PostV1PaymentIntentsByIdCapture404Two, PostV1PaymentIntentsByIdCaptureBodyOne, PostV1PaymentIntentsByIdCaptureBodyThree, PostV1PaymentIntentsByIdCaptureBodyTwo, PostV1PaymentIntentsByIdRefund200One, PostV1PaymentIntentsByIdRefund200Three, PostV1PaymentIntentsByIdRefund200Two, PostV1PaymentIntentsByIdRefund400One, PostV1PaymentIntentsByIdRefund400Three, PostV1PaymentIntentsByIdRefund400Two, PostV1PaymentIntentsByIdRefund404One, PostV1PaymentIntentsByIdRefund404Three, PostV1PaymentIntentsByIdRefund404Two, PostV1PaymentIntentsByIdRefundBodyOne, PostV1PaymentIntentsByIdRefundBodyThree, PostV1PaymentIntentsByIdRefundBodyTwo } from '../klingAPI.schemas';
|
|
9
|
+
/**
|
|
10
|
+
* Create and charge a payment intent
|
|
11
|
+
*/
|
|
12
|
+
export type postV1PaymentIntentsResponse200ApplicationJson = {
|
|
13
|
+
data: PostV1PaymentIntents200One;
|
|
14
|
+
status: 200;
|
|
15
|
+
};
|
|
16
|
+
export type postV1PaymentIntentsResponse200MultipartFormData = {
|
|
17
|
+
data: PostV1PaymentIntents200Two;
|
|
18
|
+
status: 200;
|
|
19
|
+
};
|
|
20
|
+
export type postV1PaymentIntentsResponse200TextPlain = {
|
|
21
|
+
data: PostV1PaymentIntents200Three;
|
|
22
|
+
status: 200;
|
|
23
|
+
};
|
|
24
|
+
export type postV1PaymentIntentsResponse400ApplicationJson = {
|
|
25
|
+
data: PostV1PaymentIntents400One;
|
|
26
|
+
status: 400;
|
|
27
|
+
};
|
|
28
|
+
export type postV1PaymentIntentsResponse400MultipartFormData = {
|
|
29
|
+
data: PostV1PaymentIntents400Two;
|
|
30
|
+
status: 400;
|
|
31
|
+
};
|
|
32
|
+
export type postV1PaymentIntentsResponse400TextPlain = {
|
|
33
|
+
data: PostV1PaymentIntents400Three;
|
|
34
|
+
status: 400;
|
|
35
|
+
};
|
|
36
|
+
export type postV1PaymentIntentsResponse404ApplicationJson = {
|
|
37
|
+
data: PostV1PaymentIntents404One;
|
|
38
|
+
status: 404;
|
|
39
|
+
};
|
|
40
|
+
export type postV1PaymentIntentsResponse404MultipartFormData = {
|
|
41
|
+
data: PostV1PaymentIntents404Two;
|
|
42
|
+
status: 404;
|
|
43
|
+
};
|
|
44
|
+
export type postV1PaymentIntentsResponse404TextPlain = {
|
|
45
|
+
data: PostV1PaymentIntents404Three;
|
|
46
|
+
status: 404;
|
|
47
|
+
};
|
|
48
|
+
export type postV1PaymentIntentsResponseSuccess = (postV1PaymentIntentsResponse200ApplicationJson | postV1PaymentIntentsResponse200MultipartFormData | postV1PaymentIntentsResponse200TextPlain) & {
|
|
49
|
+
headers: Headers;
|
|
50
|
+
};
|
|
51
|
+
export type postV1PaymentIntentsResponseError = (postV1PaymentIntentsResponse400ApplicationJson | postV1PaymentIntentsResponse400MultipartFormData | postV1PaymentIntentsResponse400TextPlain | postV1PaymentIntentsResponse404ApplicationJson | postV1PaymentIntentsResponse404MultipartFormData | postV1PaymentIntentsResponse404TextPlain) & {
|
|
52
|
+
headers: Headers;
|
|
53
|
+
};
|
|
54
|
+
export type postV1PaymentIntentsResponse = (postV1PaymentIntentsResponseSuccess | postV1PaymentIntentsResponseError);
|
|
55
|
+
export declare const getPostV1PaymentIntentsUrl: () => string;
|
|
56
|
+
export declare const postV1PaymentIntents: (postV1PaymentIntentsBody: PostV1PaymentIntentsBodyOne | PostV1PaymentIntentsBodyTwo | PostV1PaymentIntentsBodyThree, options?: RequestInit) => Promise<postV1PaymentIntentsResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* List payment intents, newest first
|
|
59
|
+
*/
|
|
60
|
+
export type getV1PaymentIntentsResponse200ApplicationJson = {
|
|
61
|
+
data: GetV1PaymentIntents200One;
|
|
62
|
+
status: 200;
|
|
63
|
+
};
|
|
64
|
+
export type getV1PaymentIntentsResponse200MultipartFormData = {
|
|
65
|
+
data: GetV1PaymentIntents200Two;
|
|
66
|
+
status: 200;
|
|
67
|
+
};
|
|
68
|
+
export type getV1PaymentIntentsResponse200TextPlain = {
|
|
69
|
+
data: GetV1PaymentIntents200Three;
|
|
70
|
+
status: 200;
|
|
71
|
+
};
|
|
72
|
+
export type getV1PaymentIntentsResponseSuccess = (getV1PaymentIntentsResponse200ApplicationJson | getV1PaymentIntentsResponse200MultipartFormData | getV1PaymentIntentsResponse200TextPlain) & {
|
|
73
|
+
headers: Headers;
|
|
74
|
+
};
|
|
75
|
+
export type getV1PaymentIntentsResponse = (getV1PaymentIntentsResponseSuccess);
|
|
76
|
+
export declare const getGetV1PaymentIntentsUrl: (params: GetV1PaymentIntentsParams) => string;
|
|
77
|
+
export declare const getV1PaymentIntents: (params: GetV1PaymentIntentsParams, options?: RequestInit) => Promise<getV1PaymentIntentsResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* Retrieve a payment intent by ID
|
|
80
|
+
*/
|
|
81
|
+
export type getV1PaymentIntentsByIdResponse200ApplicationJson = {
|
|
82
|
+
data: GetV1PaymentIntentsById200One;
|
|
83
|
+
status: 200;
|
|
84
|
+
};
|
|
85
|
+
export type getV1PaymentIntentsByIdResponse200MultipartFormData = {
|
|
86
|
+
data: GetV1PaymentIntentsById200Two;
|
|
87
|
+
status: 200;
|
|
88
|
+
};
|
|
89
|
+
export type getV1PaymentIntentsByIdResponse200TextPlain = {
|
|
90
|
+
data: GetV1PaymentIntentsById200Three;
|
|
91
|
+
status: 200;
|
|
92
|
+
};
|
|
93
|
+
export type getV1PaymentIntentsByIdResponse404ApplicationJson = {
|
|
94
|
+
data: GetV1PaymentIntentsById404One;
|
|
95
|
+
status: 404;
|
|
96
|
+
};
|
|
97
|
+
export type getV1PaymentIntentsByIdResponse404MultipartFormData = {
|
|
98
|
+
data: GetV1PaymentIntentsById404Two;
|
|
99
|
+
status: 404;
|
|
100
|
+
};
|
|
101
|
+
export type getV1PaymentIntentsByIdResponse404TextPlain = {
|
|
102
|
+
data: GetV1PaymentIntentsById404Three;
|
|
103
|
+
status: 404;
|
|
104
|
+
};
|
|
105
|
+
export type getV1PaymentIntentsByIdResponseSuccess = (getV1PaymentIntentsByIdResponse200ApplicationJson | getV1PaymentIntentsByIdResponse200MultipartFormData | getV1PaymentIntentsByIdResponse200TextPlain) & {
|
|
106
|
+
headers: Headers;
|
|
107
|
+
};
|
|
108
|
+
export type getV1PaymentIntentsByIdResponseError = (getV1PaymentIntentsByIdResponse404ApplicationJson | getV1PaymentIntentsByIdResponse404MultipartFormData | getV1PaymentIntentsByIdResponse404TextPlain) & {
|
|
109
|
+
headers: Headers;
|
|
110
|
+
};
|
|
111
|
+
export type getV1PaymentIntentsByIdResponse = (getV1PaymentIntentsByIdResponseSuccess | getV1PaymentIntentsByIdResponseError);
|
|
112
|
+
export declare const getGetV1PaymentIntentsByIdUrl: (id: string) => string;
|
|
113
|
+
export declare const getV1PaymentIntentsById: (id: string, options?: RequestInit) => Promise<getV1PaymentIntentsByIdResponse>;
|
|
114
|
+
/**
|
|
115
|
+
* Fetch the full receipt payload for a payment intent — document type (kvittun/reikningur), receipt number, hosted/PDF URLs, line items with VAT breakdown, and merchant/customer blocks. Use this when you want to render your own receipt template; otherwise the `receipt_url`/`receipt_pdf_url` on the payment intent are enough.
|
|
116
|
+
*/
|
|
117
|
+
export type getV1PaymentIntentsByIdReceiptResponse200ApplicationJson = {
|
|
118
|
+
data: GetV1PaymentIntentsByIdReceipt200One;
|
|
119
|
+
status: 200;
|
|
120
|
+
};
|
|
121
|
+
export type getV1PaymentIntentsByIdReceiptResponse200MultipartFormData = {
|
|
122
|
+
data: GetV1PaymentIntentsByIdReceipt200Two;
|
|
123
|
+
status: 200;
|
|
124
|
+
};
|
|
125
|
+
export type getV1PaymentIntentsByIdReceiptResponse200TextPlain = {
|
|
126
|
+
data: GetV1PaymentIntentsByIdReceipt200Three;
|
|
127
|
+
status: 200;
|
|
128
|
+
};
|
|
129
|
+
export type getV1PaymentIntentsByIdReceiptResponse404ApplicationJson = {
|
|
130
|
+
data: GetV1PaymentIntentsByIdReceipt404One;
|
|
131
|
+
status: 404;
|
|
132
|
+
};
|
|
133
|
+
export type getV1PaymentIntentsByIdReceiptResponse404MultipartFormData = {
|
|
134
|
+
data: GetV1PaymentIntentsByIdReceipt404Two;
|
|
135
|
+
status: 404;
|
|
136
|
+
};
|
|
137
|
+
export type getV1PaymentIntentsByIdReceiptResponse404TextPlain = {
|
|
138
|
+
data: GetV1PaymentIntentsByIdReceipt404Three;
|
|
139
|
+
status: 404;
|
|
140
|
+
};
|
|
141
|
+
export type getV1PaymentIntentsByIdReceiptResponse409ApplicationJson = {
|
|
142
|
+
data: GetV1PaymentIntentsByIdReceipt409One;
|
|
143
|
+
status: 409;
|
|
144
|
+
};
|
|
145
|
+
export type getV1PaymentIntentsByIdReceiptResponse409MultipartFormData = {
|
|
146
|
+
data: GetV1PaymentIntentsByIdReceipt409Two;
|
|
147
|
+
status: 409;
|
|
148
|
+
};
|
|
149
|
+
export type getV1PaymentIntentsByIdReceiptResponse409TextPlain = {
|
|
150
|
+
data: GetV1PaymentIntentsByIdReceipt409Three;
|
|
151
|
+
status: 409;
|
|
152
|
+
};
|
|
153
|
+
export type getV1PaymentIntentsByIdReceiptResponseSuccess = (getV1PaymentIntentsByIdReceiptResponse200ApplicationJson | getV1PaymentIntentsByIdReceiptResponse200MultipartFormData | getV1PaymentIntentsByIdReceiptResponse200TextPlain) & {
|
|
154
|
+
headers: Headers;
|
|
155
|
+
};
|
|
156
|
+
export type getV1PaymentIntentsByIdReceiptResponseError = (getV1PaymentIntentsByIdReceiptResponse404ApplicationJson | getV1PaymentIntentsByIdReceiptResponse404MultipartFormData | getV1PaymentIntentsByIdReceiptResponse404TextPlain | getV1PaymentIntentsByIdReceiptResponse409ApplicationJson | getV1PaymentIntentsByIdReceiptResponse409MultipartFormData | getV1PaymentIntentsByIdReceiptResponse409TextPlain) & {
|
|
157
|
+
headers: Headers;
|
|
158
|
+
};
|
|
159
|
+
export type getV1PaymentIntentsByIdReceiptResponse = (getV1PaymentIntentsByIdReceiptResponseSuccess | getV1PaymentIntentsByIdReceiptResponseError);
|
|
160
|
+
export declare const getGetV1PaymentIntentsByIdReceiptUrl: (id: string) => string;
|
|
161
|
+
export declare const getV1PaymentIntentsByIdReceipt: (id: string, options?: RequestInit) => Promise<getV1PaymentIntentsByIdReceiptResponse>;
|
|
162
|
+
/**
|
|
163
|
+
* Capture an authorized payment
|
|
164
|
+
*/
|
|
165
|
+
export type postV1PaymentIntentsByIdCaptureResponse200ApplicationJson = {
|
|
166
|
+
data: PostV1PaymentIntentsByIdCapture200One;
|
|
167
|
+
status: 200;
|
|
168
|
+
};
|
|
169
|
+
export type postV1PaymentIntentsByIdCaptureResponse200MultipartFormData = {
|
|
170
|
+
data: PostV1PaymentIntentsByIdCapture200Two;
|
|
171
|
+
status: 200;
|
|
172
|
+
};
|
|
173
|
+
export type postV1PaymentIntentsByIdCaptureResponse200TextPlain = {
|
|
174
|
+
data: PostV1PaymentIntentsByIdCapture200Three;
|
|
175
|
+
status: 200;
|
|
176
|
+
};
|
|
177
|
+
export type postV1PaymentIntentsByIdCaptureResponse400ApplicationJson = {
|
|
178
|
+
data: PostV1PaymentIntentsByIdCapture400One;
|
|
179
|
+
status: 400;
|
|
180
|
+
};
|
|
181
|
+
export type postV1PaymentIntentsByIdCaptureResponse400MultipartFormData = {
|
|
182
|
+
data: PostV1PaymentIntentsByIdCapture400Two;
|
|
183
|
+
status: 400;
|
|
184
|
+
};
|
|
185
|
+
export type postV1PaymentIntentsByIdCaptureResponse400TextPlain = {
|
|
186
|
+
data: PostV1PaymentIntentsByIdCapture400Three;
|
|
187
|
+
status: 400;
|
|
188
|
+
};
|
|
189
|
+
export type postV1PaymentIntentsByIdCaptureResponse404ApplicationJson = {
|
|
190
|
+
data: PostV1PaymentIntentsByIdCapture404One;
|
|
191
|
+
status: 404;
|
|
192
|
+
};
|
|
193
|
+
export type postV1PaymentIntentsByIdCaptureResponse404MultipartFormData = {
|
|
194
|
+
data: PostV1PaymentIntentsByIdCapture404Two;
|
|
195
|
+
status: 404;
|
|
196
|
+
};
|
|
197
|
+
export type postV1PaymentIntentsByIdCaptureResponse404TextPlain = {
|
|
198
|
+
data: PostV1PaymentIntentsByIdCapture404Three;
|
|
199
|
+
status: 404;
|
|
200
|
+
};
|
|
201
|
+
export type postV1PaymentIntentsByIdCaptureResponseSuccess = (postV1PaymentIntentsByIdCaptureResponse200ApplicationJson | postV1PaymentIntentsByIdCaptureResponse200MultipartFormData | postV1PaymentIntentsByIdCaptureResponse200TextPlain) & {
|
|
202
|
+
headers: Headers;
|
|
203
|
+
};
|
|
204
|
+
export type postV1PaymentIntentsByIdCaptureResponseError = (postV1PaymentIntentsByIdCaptureResponse400ApplicationJson | postV1PaymentIntentsByIdCaptureResponse400MultipartFormData | postV1PaymentIntentsByIdCaptureResponse400TextPlain | postV1PaymentIntentsByIdCaptureResponse404ApplicationJson | postV1PaymentIntentsByIdCaptureResponse404MultipartFormData | postV1PaymentIntentsByIdCaptureResponse404TextPlain) & {
|
|
205
|
+
headers: Headers;
|
|
206
|
+
};
|
|
207
|
+
export type postV1PaymentIntentsByIdCaptureResponse = (postV1PaymentIntentsByIdCaptureResponseSuccess | postV1PaymentIntentsByIdCaptureResponseError);
|
|
208
|
+
export declare const getPostV1PaymentIntentsByIdCaptureUrl: (id: string) => string;
|
|
209
|
+
export declare const postV1PaymentIntentsByIdCapture: (id: string, postV1PaymentIntentsByIdCaptureBody: PostV1PaymentIntentsByIdCaptureBodyOne | PostV1PaymentIntentsByIdCaptureBodyTwo | PostV1PaymentIntentsByIdCaptureBodyThree, options?: RequestInit) => Promise<postV1PaymentIntentsByIdCaptureResponse>;
|
|
210
|
+
/**
|
|
211
|
+
* Cancel an authorized payment
|
|
212
|
+
*/
|
|
213
|
+
export type postV1PaymentIntentsByIdCancelResponse200ApplicationJson = {
|
|
214
|
+
data: PostV1PaymentIntentsByIdCancel200One;
|
|
215
|
+
status: 200;
|
|
216
|
+
};
|
|
217
|
+
export type postV1PaymentIntentsByIdCancelResponse200MultipartFormData = {
|
|
218
|
+
data: PostV1PaymentIntentsByIdCancel200Two;
|
|
219
|
+
status: 200;
|
|
220
|
+
};
|
|
221
|
+
export type postV1PaymentIntentsByIdCancelResponse200TextPlain = {
|
|
222
|
+
data: PostV1PaymentIntentsByIdCancel200Three;
|
|
223
|
+
status: 200;
|
|
224
|
+
};
|
|
225
|
+
export type postV1PaymentIntentsByIdCancelResponse400ApplicationJson = {
|
|
226
|
+
data: PostV1PaymentIntentsByIdCancel400One;
|
|
227
|
+
status: 400;
|
|
228
|
+
};
|
|
229
|
+
export type postV1PaymentIntentsByIdCancelResponse400MultipartFormData = {
|
|
230
|
+
data: PostV1PaymentIntentsByIdCancel400Two;
|
|
231
|
+
status: 400;
|
|
232
|
+
};
|
|
233
|
+
export type postV1PaymentIntentsByIdCancelResponse400TextPlain = {
|
|
234
|
+
data: PostV1PaymentIntentsByIdCancel400Three;
|
|
235
|
+
status: 400;
|
|
236
|
+
};
|
|
237
|
+
export type postV1PaymentIntentsByIdCancelResponse404ApplicationJson = {
|
|
238
|
+
data: PostV1PaymentIntentsByIdCancel404One;
|
|
239
|
+
status: 404;
|
|
240
|
+
};
|
|
241
|
+
export type postV1PaymentIntentsByIdCancelResponse404MultipartFormData = {
|
|
242
|
+
data: PostV1PaymentIntentsByIdCancel404Two;
|
|
243
|
+
status: 404;
|
|
244
|
+
};
|
|
245
|
+
export type postV1PaymentIntentsByIdCancelResponse404TextPlain = {
|
|
246
|
+
data: PostV1PaymentIntentsByIdCancel404Three;
|
|
247
|
+
status: 404;
|
|
248
|
+
};
|
|
249
|
+
export type postV1PaymentIntentsByIdCancelResponseSuccess = (postV1PaymentIntentsByIdCancelResponse200ApplicationJson | postV1PaymentIntentsByIdCancelResponse200MultipartFormData | postV1PaymentIntentsByIdCancelResponse200TextPlain) & {
|
|
250
|
+
headers: Headers;
|
|
251
|
+
};
|
|
252
|
+
export type postV1PaymentIntentsByIdCancelResponseError = (postV1PaymentIntentsByIdCancelResponse400ApplicationJson | postV1PaymentIntentsByIdCancelResponse400MultipartFormData | postV1PaymentIntentsByIdCancelResponse400TextPlain | postV1PaymentIntentsByIdCancelResponse404ApplicationJson | postV1PaymentIntentsByIdCancelResponse404MultipartFormData | postV1PaymentIntentsByIdCancelResponse404TextPlain) & {
|
|
253
|
+
headers: Headers;
|
|
254
|
+
};
|
|
255
|
+
export type postV1PaymentIntentsByIdCancelResponse = (postV1PaymentIntentsByIdCancelResponseSuccess | postV1PaymentIntentsByIdCancelResponseError);
|
|
256
|
+
export declare const getPostV1PaymentIntentsByIdCancelUrl: (id: string) => string;
|
|
257
|
+
export declare const postV1PaymentIntentsByIdCancel: (id: string, options?: RequestInit) => Promise<postV1PaymentIntentsByIdCancelResponse>;
|
|
258
|
+
/**
|
|
259
|
+
* Refund a captured payment
|
|
260
|
+
*/
|
|
261
|
+
export type postV1PaymentIntentsByIdRefundResponse200ApplicationJson = {
|
|
262
|
+
data: PostV1PaymentIntentsByIdRefund200One;
|
|
263
|
+
status: 200;
|
|
264
|
+
};
|
|
265
|
+
export type postV1PaymentIntentsByIdRefundResponse200MultipartFormData = {
|
|
266
|
+
data: PostV1PaymentIntentsByIdRefund200Two;
|
|
267
|
+
status: 200;
|
|
268
|
+
};
|
|
269
|
+
export type postV1PaymentIntentsByIdRefundResponse200TextPlain = {
|
|
270
|
+
data: PostV1PaymentIntentsByIdRefund200Three;
|
|
271
|
+
status: 200;
|
|
272
|
+
};
|
|
273
|
+
export type postV1PaymentIntentsByIdRefundResponse400ApplicationJson = {
|
|
274
|
+
data: PostV1PaymentIntentsByIdRefund400One;
|
|
275
|
+
status: 400;
|
|
276
|
+
};
|
|
277
|
+
export type postV1PaymentIntentsByIdRefundResponse400MultipartFormData = {
|
|
278
|
+
data: PostV1PaymentIntentsByIdRefund400Two;
|
|
279
|
+
status: 400;
|
|
280
|
+
};
|
|
281
|
+
export type postV1PaymentIntentsByIdRefundResponse400TextPlain = {
|
|
282
|
+
data: PostV1PaymentIntentsByIdRefund400Three;
|
|
283
|
+
status: 400;
|
|
284
|
+
};
|
|
285
|
+
export type postV1PaymentIntentsByIdRefundResponse404ApplicationJson = {
|
|
286
|
+
data: PostV1PaymentIntentsByIdRefund404One;
|
|
287
|
+
status: 404;
|
|
288
|
+
};
|
|
289
|
+
export type postV1PaymentIntentsByIdRefundResponse404MultipartFormData = {
|
|
290
|
+
data: PostV1PaymentIntentsByIdRefund404Two;
|
|
291
|
+
status: 404;
|
|
292
|
+
};
|
|
293
|
+
export type postV1PaymentIntentsByIdRefundResponse404TextPlain = {
|
|
294
|
+
data: PostV1PaymentIntentsByIdRefund404Three;
|
|
295
|
+
status: 404;
|
|
296
|
+
};
|
|
297
|
+
export type postV1PaymentIntentsByIdRefundResponseSuccess = (postV1PaymentIntentsByIdRefundResponse200ApplicationJson | postV1PaymentIntentsByIdRefundResponse200MultipartFormData | postV1PaymentIntentsByIdRefundResponse200TextPlain) & {
|
|
298
|
+
headers: Headers;
|
|
299
|
+
};
|
|
300
|
+
export type postV1PaymentIntentsByIdRefundResponseError = (postV1PaymentIntentsByIdRefundResponse400ApplicationJson | postV1PaymentIntentsByIdRefundResponse400MultipartFormData | postV1PaymentIntentsByIdRefundResponse400TextPlain | postV1PaymentIntentsByIdRefundResponse404ApplicationJson | postV1PaymentIntentsByIdRefundResponse404MultipartFormData | postV1PaymentIntentsByIdRefundResponse404TextPlain) & {
|
|
301
|
+
headers: Headers;
|
|
302
|
+
};
|
|
303
|
+
export type postV1PaymentIntentsByIdRefundResponse = (postV1PaymentIntentsByIdRefundResponseSuccess | postV1PaymentIntentsByIdRefundResponseError);
|
|
304
|
+
export declare const getPostV1PaymentIntentsByIdRefundUrl: (id: string) => string;
|
|
305
|
+
export declare const postV1PaymentIntentsByIdRefund: (id: string, postV1PaymentIntentsByIdRefundBody: PostV1PaymentIntentsByIdRefundBodyOne | PostV1PaymentIntentsByIdRefundBodyTwo | PostV1PaymentIntentsByIdRefundBodyThree, options?: RequestInit) => Promise<postV1PaymentIntentsByIdRefundResponse>;
|
|
306
|
+
//# sourceMappingURL=payment-intents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-intents.d.ts","sourceRoot":"","sources":["../../../src/generated/payment-intents/payment-intents.ts"],"names":[],"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M,kDAAkD,GAAG;IAC/D,IAAI,EAAE,sCAAsC,CAAA;IAC5C,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,6CAA6C,GAAG,CAAC,wDAAwD,GAAG,0DAA0D,GAAG,kDAAkD,CAAC,GAAG;IACzO,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AACF,MAAM,MAAM,2CAA2C,GAAG,CAAC,wDAAwD,GAAG,0DAA0D,GAAG,kDAAkD,GAAG,wDAAwD,GAAG,0DAA0D,GAAG,kDAAkD,CAAC,GAAG;IACpZ,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG,CAAC,6CAA6C,GAAG,2CAA2C,CAAC,CAAA;AAElJ,eAAO,MAAM,oCAAoC,GAAI,IAAI,MAAM,WAM9D,CAAA;AAED,eAAO,MAAM,8BAA8B,GAAU,IAAI,MAAM,EAC3D,oCAAoC,qCAAqC,GAAG,qCAAqC,GAAG,uCAAuC,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,sCAAsC,CAUpO,CAAA"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { customFetch } from '../../mutator';
|
|
2
|
+
export const getPostV1PaymentIntentsUrl = () => {
|
|
3
|
+
return `http://localhost:3001/v1/payment-intents/`;
|
|
4
|
+
};
|
|
5
|
+
export const postV1PaymentIntents = async (postV1PaymentIntentsBody, options) => {
|
|
6
|
+
return customFetch(getPostV1PaymentIntentsUrl(), {
|
|
7
|
+
...options,
|
|
8
|
+
method: 'POST',
|
|
9
|
+
body: JSON.stringify(postV1PaymentIntentsBody)
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
;
|
|
13
|
+
export const getGetV1PaymentIntentsUrl = (params) => {
|
|
14
|
+
const normalizedParams = new URLSearchParams();
|
|
15
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
16
|
+
if (value !== undefined) {
|
|
17
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const stringifiedParams = normalizedParams.toString();
|
|
21
|
+
return stringifiedParams.length > 0 ? `http://localhost:3001/v1/payment-intents/?${stringifiedParams}` : `http://localhost:3001/v1/payment-intents/`;
|
|
22
|
+
};
|
|
23
|
+
export const getV1PaymentIntents = async (params, options) => {
|
|
24
|
+
return customFetch(getGetV1PaymentIntentsUrl(params), {
|
|
25
|
+
...options,
|
|
26
|
+
method: 'GET'
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
export const getGetV1PaymentIntentsByIdUrl = (id) => {
|
|
30
|
+
return `http://localhost:3001/v1/payment-intents/${id}`;
|
|
31
|
+
};
|
|
32
|
+
export const getV1PaymentIntentsById = async (id, options) => {
|
|
33
|
+
return customFetch(getGetV1PaymentIntentsByIdUrl(id), {
|
|
34
|
+
...options,
|
|
35
|
+
method: 'GET'
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
export const getGetV1PaymentIntentsByIdReceiptUrl = (id) => {
|
|
39
|
+
return `http://localhost:3001/v1/payment-intents/${id}/receipt`;
|
|
40
|
+
};
|
|
41
|
+
export const getV1PaymentIntentsByIdReceipt = async (id, options) => {
|
|
42
|
+
return customFetch(getGetV1PaymentIntentsByIdReceiptUrl(id), {
|
|
43
|
+
...options,
|
|
44
|
+
method: 'GET'
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
export const getPostV1PaymentIntentsByIdCaptureUrl = (id) => {
|
|
48
|
+
return `http://localhost:3001/v1/payment-intents/${id}/capture`;
|
|
49
|
+
};
|
|
50
|
+
export const postV1PaymentIntentsByIdCapture = async (id, postV1PaymentIntentsByIdCaptureBody, options) => {
|
|
51
|
+
return customFetch(getPostV1PaymentIntentsByIdCaptureUrl(id), {
|
|
52
|
+
...options,
|
|
53
|
+
method: 'POST',
|
|
54
|
+
body: JSON.stringify(postV1PaymentIntentsByIdCaptureBody)
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
export const getPostV1PaymentIntentsByIdCancelUrl = (id) => {
|
|
58
|
+
return `http://localhost:3001/v1/payment-intents/${id}/cancel`;
|
|
59
|
+
};
|
|
60
|
+
export const postV1PaymentIntentsByIdCancel = async (id, options) => {
|
|
61
|
+
return customFetch(getPostV1PaymentIntentsByIdCancelUrl(id), {
|
|
62
|
+
...options,
|
|
63
|
+
method: 'POST'
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
export const getPostV1PaymentIntentsByIdRefundUrl = (id) => {
|
|
67
|
+
return `http://localhost:3001/v1/payment-intents/${id}/refund`;
|
|
68
|
+
};
|
|
69
|
+
export const postV1PaymentIntentsByIdRefund = async (id, postV1PaymentIntentsByIdRefundBody, options) => {
|
|
70
|
+
return customFetch(getPostV1PaymentIntentsByIdRefundUrl(id), {
|
|
71
|
+
...options,
|
|
72
|
+
method: 'POST',
|
|
73
|
+
body: JSON.stringify(postV1PaymentIntentsByIdRefundBody)
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=payment-intents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-intents.js","sourceRoot":"","sources":["../../../src/generated/payment-intents/payment-intents.ts"],"names":[],"mappings":"AA0EA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA2D5C,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,EAAE;IAK7C,OAAO,2CAA2C,CAAA;AACpD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EAAE,wBAAmH,EAAE,OAAqB,EAAyC,EAAE;IAE9N,OAAO,WAAW,CAA+B,0BAA0B,EAAE,EAC7E;QACE,GAAG,OAAO;QACV,MAAM,EAAE,MAAM;QAEd,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB,wBAAwB,CAAE;KAC7B,CACF,CAAC;AAAA,CAAC,CAAA;AAwBH,CAAC;AAID,MAAM,CAAC,MAAM,yB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