@payark/sdk-effect 0.1.3 → 0.1.5
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/index.d.mts +511 -199
- package/dist/index.d.ts +511 -199
- package/dist/index.js +102 -46
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +98 -47
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -103,20 +103,21 @@ declare const UserSecurity_base: HttpApiMiddleware.TagClass.BaseSecurity<UserSec
|
|
|
103
103
|
declare class UserSecurity extends UserSecurity_base {
|
|
104
104
|
}
|
|
105
105
|
declare const CheckoutGroup: HttpApiGroup.HttpApiGroup<"checkout", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
106
|
-
readonly amount
|
|
106
|
+
readonly amount?: (number & effect_Brand.Brand<"MinorUnitsInt">) | undefined;
|
|
107
107
|
readonly currency: string;
|
|
108
108
|
readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
109
|
-
readonly returnUrl: string
|
|
110
|
-
readonly cancelUrl?: string | undefined;
|
|
109
|
+
readonly returnUrl: string & effect_Brand.Brand<"UrlString">;
|
|
110
|
+
readonly cancelUrl?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
111
111
|
readonly metadata?: {
|
|
112
112
|
readonly [x: string]: any;
|
|
113
113
|
} | undefined;
|
|
114
|
+
readonly subscriptionId?: (string & effect_Brand.Brand<"SubscriptionId">) | undefined;
|
|
114
115
|
}, never, {
|
|
115
116
|
readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
|
|
116
|
-
readonly checkout_url: string
|
|
117
|
+
readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
|
|
117
118
|
readonly payment_method: {
|
|
118
119
|
readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
119
|
-
readonly url?: string | undefined;
|
|
120
|
+
readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
120
121
|
readonly method?: "POST" | "GET" | undefined;
|
|
121
122
|
readonly fields?: {
|
|
122
123
|
readonly [x: string]: string;
|
|
@@ -168,9 +169,9 @@ declare const CustomersGroup: HttpApiGroup.HttpApiGroup<"customers", HttpApiEndp
|
|
|
168
169
|
readonly [x: string]: any;
|
|
169
170
|
} | undefined;
|
|
170
171
|
readonly project_id?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
171
|
-
readonly merchant_customer_id: string
|
|
172
|
-
readonly email?: string | undefined;
|
|
173
|
-
readonly name?: string | undefined;
|
|
172
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
173
|
+
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
174
|
+
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
174
175
|
readonly phone?: string | undefined;
|
|
175
176
|
}, never, {
|
|
176
177
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
@@ -180,11 +181,36 @@ declare const CustomersGroup: HttpApiGroup.HttpApiGroup<"customers", HttpApiEndp
|
|
|
180
181
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
181
182
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
182
183
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
183
|
-
readonly merchant_customer_id: string
|
|
184
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
184
185
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
185
|
-
readonly name: string | null;
|
|
186
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
186
187
|
readonly phone: string | null;
|
|
187
|
-
}, AuthenticationError | InternalServerError | IndustrialError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
188
|
+
}, AuthenticationError | InternalServerError | IndustrialError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
|
|
189
|
+
readonly limit?: number | undefined;
|
|
190
|
+
readonly offset?: number | undefined;
|
|
191
|
+
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
192
|
+
readonly merchant_customer_id?: string | undefined;
|
|
193
|
+
readonly email?: string | undefined;
|
|
194
|
+
}, never, never, {
|
|
195
|
+
readonly data: readonly {
|
|
196
|
+
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
197
|
+
readonly metadata: {
|
|
198
|
+
readonly [x: string]: any;
|
|
199
|
+
} | null;
|
|
200
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
201
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
202
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
203
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
204
|
+
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
205
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
206
|
+
readonly phone: string | null;
|
|
207
|
+
}[];
|
|
208
|
+
readonly meta: {
|
|
209
|
+
readonly total: number | null;
|
|
210
|
+
readonly limit: number;
|
|
211
|
+
readonly offset: number;
|
|
212
|
+
};
|
|
213
|
+
}, AuthenticationError | InternalServerError | IndustrialError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
|
|
188
214
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
189
215
|
}, never, never, never, {
|
|
190
216
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
@@ -194,9 +220,9 @@ declare const CustomersGroup: HttpApiGroup.HttpApiGroup<"customers", HttpApiEndp
|
|
|
194
220
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
195
221
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
196
222
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
197
|
-
readonly merchant_customer_id: string
|
|
223
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
198
224
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
199
|
-
readonly name: string | null;
|
|
225
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
200
226
|
readonly phone: string | null;
|
|
201
227
|
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"update", "PATCH", {
|
|
202
228
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
@@ -204,8 +230,8 @@ declare const CustomersGroup: HttpApiGroup.HttpApiGroup<"customers", HttpApiEndp
|
|
|
204
230
|
readonly metadata?: {
|
|
205
231
|
readonly [x: string]: any;
|
|
206
232
|
} | undefined;
|
|
207
|
-
readonly email?: string | undefined;
|
|
208
|
-
readonly name?: string | undefined;
|
|
233
|
+
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
234
|
+
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
209
235
|
readonly phone?: string | undefined;
|
|
210
236
|
}, never, {
|
|
211
237
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
@@ -215,15 +241,15 @@ declare const CustomersGroup: HttpApiGroup.HttpApiGroup<"customers", HttpApiEndp
|
|
|
215
241
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
216
242
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
217
243
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
218
|
-
readonly merchant_customer_id: string
|
|
244
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
219
245
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
220
|
-
readonly name: string | null;
|
|
246
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
221
247
|
readonly phone: string | null;
|
|
222
248
|
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", {
|
|
223
249
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
224
250
|
}, never, never, never, void, AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError, never, never>, AuthenticationError | IndustrialError, SecurityMiddleware, false>;
|
|
225
251
|
declare const SubscriptionsGroup: HttpApiGroup.HttpApiGroup<"subscriptions", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
226
|
-
readonly amount: number
|
|
252
|
+
readonly amount: number & effect_Brand.Brand<"MinorUnitsInt">;
|
|
227
253
|
readonly currency: string;
|
|
228
254
|
readonly metadata?: {
|
|
229
255
|
readonly [x: string]: any;
|
|
@@ -249,7 +275,7 @@ declare const SubscriptionsGroup: HttpApiGroup.HttpApiGroup<"subscriptions", Htt
|
|
|
249
275
|
readonly interval_count: number;
|
|
250
276
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
251
277
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
252
|
-
readonly payment_link: string
|
|
278
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
253
279
|
readonly auto_send_link: boolean;
|
|
254
280
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
255
281
|
}, AuthenticationError | InternalServerError | IndustrialError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
|
|
@@ -270,7 +296,7 @@ declare const SubscriptionsGroup: HttpApiGroup.HttpApiGroup<"subscriptions", Htt
|
|
|
270
296
|
readonly interval_count: number;
|
|
271
297
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
272
298
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
273
|
-
readonly payment_link: string
|
|
299
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
274
300
|
readonly auto_send_link: boolean;
|
|
275
301
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
276
302
|
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
|
|
@@ -296,7 +322,7 @@ declare const SubscriptionsGroup: HttpApiGroup.HttpApiGroup<"subscriptions", Htt
|
|
|
296
322
|
readonly interval_count: number;
|
|
297
323
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
298
324
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
299
|
-
readonly payment_link: string
|
|
325
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
300
326
|
readonly auto_send_link: boolean;
|
|
301
327
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
302
328
|
}[];
|
|
@@ -323,7 +349,7 @@ declare const SubscriptionsGroup: HttpApiGroup.HttpApiGroup<"subscriptions", Htt
|
|
|
323
349
|
readonly interval_count: number;
|
|
324
350
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
325
351
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
326
|
-
readonly payment_link: string
|
|
352
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
327
353
|
readonly auto_send_link: boolean;
|
|
328
354
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
329
355
|
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"activate", "POST", {
|
|
@@ -350,7 +376,7 @@ declare const TokensGroup: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEndpoint.H
|
|
|
350
376
|
}, never, {
|
|
351
377
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
352
378
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
353
|
-
readonly name: string
|
|
379
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
354
380
|
readonly scopes: readonly string[];
|
|
355
381
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
356
382
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
@@ -358,28 +384,53 @@ declare const TokensGroup: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEndpoint.H
|
|
|
358
384
|
}, AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, readonly {
|
|
359
385
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
360
386
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
361
|
-
readonly name: string
|
|
387
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
362
388
|
readonly scopes: readonly string[];
|
|
363
389
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
364
390
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
365
391
|
}[], AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", {
|
|
366
392
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
367
393
|
}, never, never, never, null, AuthenticationError | InternalServerError | NotFoundError, never, never>, AuthenticationError | IndustrialError, UserSecurity, false>;
|
|
394
|
+
declare const ProjectsGroup: HttpApiGroup.HttpApiGroup<"projects", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, readonly {
|
|
395
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
396
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
397
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
398
|
+
readonly api_key_secret: string;
|
|
399
|
+
}[], AuthenticationError | InternalServerError, never, never>, AuthenticationError | IndustrialError, SecurityMiddleware, false>;
|
|
400
|
+
declare const CallbacksGroup: HttpApiGroup.HttpApiGroup<"callbacks", HttpApiEndpoint.HttpApiEndpoint<"handle", "GET", {
|
|
401
|
+
readonly provider: string;
|
|
402
|
+
}, {
|
|
403
|
+
readonly data?: string | undefined;
|
|
404
|
+
readonly payment_id?: string | undefined;
|
|
405
|
+
readonly pidx?: string | undefined;
|
|
406
|
+
}, never, never, any, InternalServerError | IndustrialError | NotFoundError, never, never>, never, never, false>;
|
|
407
|
+
declare const RealtimeGroup: HttpApiGroup.HttpApiGroup<"realtime", HttpApiEndpoint.HttpApiEndpoint<"connect", "GET", never, {
|
|
408
|
+
readonly token: string;
|
|
409
|
+
}, never, never, any, AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"trigger", "POST", never, {
|
|
410
|
+
readonly token?: string | undefined;
|
|
411
|
+
}, {
|
|
412
|
+
readonly data?: any;
|
|
413
|
+
readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
|
|
414
|
+
}, never, {
|
|
415
|
+
readonly status: string;
|
|
416
|
+
readonly event?: string | undefined;
|
|
417
|
+
}, AuthenticationError | InternalServerError, never, never>, never, never, false>;
|
|
368
418
|
declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<"checkout", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
369
|
-
readonly amount
|
|
419
|
+
readonly amount?: (number & effect_Brand.Brand<"MinorUnitsInt">) | undefined;
|
|
370
420
|
readonly currency: string;
|
|
371
421
|
readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
372
|
-
readonly returnUrl: string
|
|
373
|
-
readonly cancelUrl?: string | undefined;
|
|
422
|
+
readonly returnUrl: string & effect_Brand.Brand<"UrlString">;
|
|
423
|
+
readonly cancelUrl?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
374
424
|
readonly metadata?: {
|
|
375
425
|
readonly [x: string]: any;
|
|
376
426
|
} | undefined;
|
|
427
|
+
readonly subscriptionId?: (string & effect_Brand.Brand<"SubscriptionId">) | undefined;
|
|
377
428
|
}, never, {
|
|
378
429
|
readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
|
|
379
|
-
readonly checkout_url: string
|
|
430
|
+
readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
|
|
380
431
|
readonly payment_method: {
|
|
381
432
|
readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
382
|
-
readonly url?: string | undefined;
|
|
433
|
+
readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
383
434
|
readonly method?: "POST" | "GET" | undefined;
|
|
384
435
|
readonly fields?: {
|
|
385
436
|
readonly [x: string]: string;
|
|
@@ -429,9 +480,9 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
|
|
|
429
480
|
readonly [x: string]: any;
|
|
430
481
|
} | undefined;
|
|
431
482
|
readonly project_id?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
432
|
-
readonly merchant_customer_id: string
|
|
433
|
-
readonly email?: string | undefined;
|
|
434
|
-
readonly name?: string | undefined;
|
|
483
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
484
|
+
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
485
|
+
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
435
486
|
readonly phone?: string | undefined;
|
|
436
487
|
}, never, {
|
|
437
488
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
@@ -441,11 +492,36 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
|
|
|
441
492
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
442
493
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
443
494
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
444
|
-
readonly merchant_customer_id: string
|
|
495
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
445
496
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
446
|
-
readonly name: string | null;
|
|
497
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
447
498
|
readonly phone: string | null;
|
|
448
|
-
}, AuthenticationError | InternalServerError | IndustrialError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
499
|
+
}, AuthenticationError | InternalServerError | IndustrialError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
|
|
500
|
+
readonly limit?: number | undefined;
|
|
501
|
+
readonly offset?: number | undefined;
|
|
502
|
+
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
503
|
+
readonly merchant_customer_id?: string | undefined;
|
|
504
|
+
readonly email?: string | undefined;
|
|
505
|
+
}, never, never, {
|
|
506
|
+
readonly data: readonly {
|
|
507
|
+
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
508
|
+
readonly metadata: {
|
|
509
|
+
readonly [x: string]: any;
|
|
510
|
+
} | null;
|
|
511
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
512
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
513
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
514
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
515
|
+
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
516
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
517
|
+
readonly phone: string | null;
|
|
518
|
+
}[];
|
|
519
|
+
readonly meta: {
|
|
520
|
+
readonly total: number | null;
|
|
521
|
+
readonly limit: number;
|
|
522
|
+
readonly offset: number;
|
|
523
|
+
};
|
|
524
|
+
}, AuthenticationError | InternalServerError | IndustrialError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
|
|
449
525
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
450
526
|
}, never, never, never, {
|
|
451
527
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
@@ -455,9 +531,9 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
|
|
|
455
531
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
456
532
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
457
533
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
458
|
-
readonly merchant_customer_id: string
|
|
534
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
459
535
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
460
|
-
readonly name: string | null;
|
|
536
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
461
537
|
readonly phone: string | null;
|
|
462
538
|
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"update", "PATCH", {
|
|
463
539
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
@@ -465,8 +541,8 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
|
|
|
465
541
|
readonly metadata?: {
|
|
466
542
|
readonly [x: string]: any;
|
|
467
543
|
} | undefined;
|
|
468
|
-
readonly email?: string | undefined;
|
|
469
|
-
readonly name?: string | undefined;
|
|
544
|
+
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
545
|
+
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
470
546
|
readonly phone?: string | undefined;
|
|
471
547
|
}, never, {
|
|
472
548
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
@@ -476,14 +552,14 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
|
|
|
476
552
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
477
553
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
478
554
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
479
|
-
readonly merchant_customer_id: string
|
|
555
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
480
556
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
481
|
-
readonly name: string | null;
|
|
557
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
482
558
|
readonly phone: string | null;
|
|
483
559
|
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", {
|
|
484
560
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
485
561
|
}, never, never, never, void, AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError, never, never>, AuthenticationError | IndustrialError, SecurityMiddleware, false> | HttpApiGroup.HttpApiGroup<"subscriptions", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
486
|
-
readonly amount: number
|
|
562
|
+
readonly amount: number & effect_Brand.Brand<"MinorUnitsInt">;
|
|
487
563
|
readonly currency: string;
|
|
488
564
|
readonly metadata?: {
|
|
489
565
|
readonly [x: string]: any;
|
|
@@ -509,7 +585,7 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
|
|
|
509
585
|
readonly interval_count: number;
|
|
510
586
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
511
587
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
512
|
-
readonly payment_link: string
|
|
588
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
513
589
|
readonly auto_send_link: boolean;
|
|
514
590
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
515
591
|
}, AuthenticationError | InternalServerError | IndustrialError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
|
|
@@ -530,7 +606,7 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
|
|
|
530
606
|
readonly interval_count: number;
|
|
531
607
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
532
608
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
533
|
-
readonly payment_link: string
|
|
609
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
534
610
|
readonly auto_send_link: boolean;
|
|
535
611
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
536
612
|
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
|
|
@@ -556,7 +632,7 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
|
|
|
556
632
|
readonly interval_count: number;
|
|
557
633
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
558
634
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
559
|
-
readonly payment_link: string
|
|
635
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
560
636
|
readonly auto_send_link: boolean;
|
|
561
637
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
562
638
|
}[];
|
|
@@ -583,7 +659,7 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
|
|
|
583
659
|
readonly interval_count: number;
|
|
584
660
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
585
661
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
586
|
-
readonly payment_link: string
|
|
662
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
587
663
|
readonly auto_send_link: boolean;
|
|
588
664
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
589
665
|
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"activate", "POST", {
|
|
@@ -608,7 +684,7 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
|
|
|
608
684
|
}, never, {
|
|
609
685
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
610
686
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
611
|
-
readonly name: string
|
|
687
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
612
688
|
readonly scopes: readonly string[];
|
|
613
689
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
614
690
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
@@ -616,13 +692,34 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
|
|
|
616
692
|
}, AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, readonly {
|
|
617
693
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
618
694
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
619
|
-
readonly name: string
|
|
695
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
620
696
|
readonly scopes: readonly string[];
|
|
621
697
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
622
698
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
623
699
|
}[], AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", {
|
|
624
700
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
625
|
-
}, never, never, never, null, AuthenticationError | InternalServerError | NotFoundError, never, never>, AuthenticationError | IndustrialError, UserSecurity, false
|
|
701
|
+
}, never, never, never, null, AuthenticationError | InternalServerError | NotFoundError, never, never>, AuthenticationError | IndustrialError, UserSecurity, false> | HttpApiGroup.HttpApiGroup<"projects", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, readonly {
|
|
702
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
703
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
704
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
705
|
+
readonly api_key_secret: string;
|
|
706
|
+
}[], AuthenticationError | InternalServerError, never, never>, AuthenticationError | IndustrialError, SecurityMiddleware, false> | HttpApiGroup.HttpApiGroup<"callbacks", HttpApiEndpoint.HttpApiEndpoint<"handle", "GET", {
|
|
707
|
+
readonly provider: string;
|
|
708
|
+
}, {
|
|
709
|
+
readonly data?: string | undefined;
|
|
710
|
+
readonly payment_id?: string | undefined;
|
|
711
|
+
readonly pidx?: string | undefined;
|
|
712
|
+
}, never, never, any, InternalServerError | IndustrialError | NotFoundError, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"realtime", HttpApiEndpoint.HttpApiEndpoint<"connect", "GET", never, {
|
|
713
|
+
readonly token: string;
|
|
714
|
+
}, never, never, any, AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"trigger", "POST", never, {
|
|
715
|
+
readonly token?: string | undefined;
|
|
716
|
+
}, {
|
|
717
|
+
readonly data?: any;
|
|
718
|
+
readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
|
|
719
|
+
}, never, {
|
|
720
|
+
readonly status: string;
|
|
721
|
+
readonly event?: string | undefined;
|
|
722
|
+
}, AuthenticationError | InternalServerError, never, never>, never, never, false>, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError, never>;
|
|
626
723
|
|
|
627
724
|
/**
|
|
628
725
|
* ── Branded Types ──
|
|
@@ -671,9 +768,9 @@ type SubscriptionInterval = Schema.Schema.Type<typeof SubscriptionInterval>;
|
|
|
671
768
|
*/
|
|
672
769
|
declare const Customer: Schema.Struct<{
|
|
673
770
|
id: Schema.brand<typeof Schema.String, "CustomerId">;
|
|
674
|
-
merchant_customer_id: typeof Schema.String
|
|
771
|
+
merchant_customer_id: Schema.brand<Schema.filter<typeof Schema.String>, "NonEmptyString">;
|
|
675
772
|
email: Schema.NullOr<Schema.brand<Schema.filter<typeof Schema.String>, "Email">>;
|
|
676
|
-
name: Schema.NullOr<typeof Schema.String
|
|
773
|
+
name: Schema.NullOr<Schema.brand<Schema.filter<typeof Schema.String>, "NonEmptyString">>;
|
|
677
774
|
phone: Schema.NullOr<typeof Schema.String>;
|
|
678
775
|
project_id: Schema.brand<typeof Schema.String, "ProjectId">;
|
|
679
776
|
metadata: Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
@@ -705,7 +802,7 @@ declare const Subscription: Schema.Struct<{
|
|
|
705
802
|
interval_count: typeof Schema.Number;
|
|
706
803
|
current_period_start: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
707
804
|
current_period_end: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
708
|
-
payment_link: typeof Schema.String
|
|
805
|
+
payment_link: Schema.brand<Schema.filter<typeof Schema.String>, "UrlString">;
|
|
709
806
|
auto_send_link: typeof Schema.Boolean;
|
|
710
807
|
metadata: Schema.optional<Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
|
|
711
808
|
canceled_at: Schema.optional<Schema.NullOr<Schema.brand<typeof Schema.String, "Timestamp">>>;
|
|
@@ -715,14 +812,14 @@ declare const Subscription: Schema.Struct<{
|
|
|
715
812
|
type Subscription = Schema.Schema.Type<typeof Subscription>;
|
|
716
813
|
declare const Project: Schema.Struct<{
|
|
717
814
|
id: Schema.brand<typeof Schema.String, "ProjectId">;
|
|
718
|
-
name: typeof Schema.String
|
|
815
|
+
name: Schema.brand<Schema.filter<typeof Schema.String>, "NonEmptyString">;
|
|
719
816
|
api_key_secret: typeof Schema.String;
|
|
720
817
|
created_at: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
721
818
|
}>;
|
|
722
819
|
type Project = Schema.Schema.Type<typeof Project>;
|
|
723
820
|
declare const Token: Schema.Struct<{
|
|
724
821
|
id: Schema.brand<typeof Schema.String, "TokenId">;
|
|
725
|
-
name: typeof Schema.String
|
|
822
|
+
name: Schema.brand<Schema.filter<typeof Schema.String>, "NonEmptyString">;
|
|
726
823
|
scopes: Schema.Array$<typeof Schema.String>;
|
|
727
824
|
last_used_at: Schema.NullOr<Schema.brand<typeof Schema.String, "Timestamp">>;
|
|
728
825
|
expires_at: Schema.NullOr<Schema.brand<typeof Schema.String, "Timestamp">>;
|
|
@@ -750,35 +847,93 @@ interface PaginatedResponse<T> {
|
|
|
750
847
|
readonly data: readonly T[];
|
|
751
848
|
readonly meta: PaginationMeta;
|
|
752
849
|
}
|
|
850
|
+
/**
|
|
851
|
+
* ── Webhooks ──
|
|
852
|
+
*/
|
|
853
|
+
declare const WebhookEventType: Schema.Literal<["payment.success", "payment.failed", "subscription.created", "subscription.payment_succeeded", "subscription.payment_failed", "subscription.renewal_due", "subscription.canceled"]>;
|
|
854
|
+
type WebhookEventType = Schema.Schema.Type<typeof WebhookEventType>;
|
|
855
|
+
declare const WebhookEvent: Schema.Struct<{
|
|
856
|
+
type: Schema.Literal<["payment.success", "payment.failed", "subscription.created", "subscription.payment_succeeded", "subscription.payment_failed", "subscription.renewal_due", "subscription.canceled"]>;
|
|
857
|
+
id: Schema.optional<typeof Schema.String>;
|
|
858
|
+
data: Schema.Union<[Schema.Struct<{
|
|
859
|
+
id: Schema.brand<typeof Schema.String, "PaymentId">;
|
|
860
|
+
project_id: Schema.brand<typeof Schema.String, "ProjectId">;
|
|
861
|
+
amount: typeof Schema.Number;
|
|
862
|
+
currency: typeof Schema.String;
|
|
863
|
+
status: Schema.Literal<["pending", "success", "failed"]>;
|
|
864
|
+
provider_ref: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
865
|
+
metadata_json: Schema.optional<Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
|
|
866
|
+
gateway_response: Schema.optional<Schema.NullOr<typeof Schema.Any>>;
|
|
867
|
+
created_at: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
868
|
+
updated_at: Schema.optional<Schema.brand<typeof Schema.String, "Timestamp">>;
|
|
869
|
+
}>, Schema.Struct<{
|
|
870
|
+
id: Schema.brand<typeof Schema.String, "SubscriptionId">;
|
|
871
|
+
project_id: Schema.brand<typeof Schema.String, "ProjectId">;
|
|
872
|
+
customer_id: Schema.brand<typeof Schema.String, "CustomerId">;
|
|
873
|
+
status: Schema.Literal<["active", "past_due", "canceled", "paused"]>;
|
|
874
|
+
amount: typeof Schema.Number;
|
|
875
|
+
currency: typeof Schema.String;
|
|
876
|
+
interval: Schema.Literal<["month", "year", "week"]>;
|
|
877
|
+
interval_count: typeof Schema.Number;
|
|
878
|
+
current_period_start: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
879
|
+
current_period_end: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
880
|
+
payment_link: Schema.brand<Schema.filter<typeof Schema.String>, "UrlString">;
|
|
881
|
+
auto_send_link: typeof Schema.Boolean;
|
|
882
|
+
metadata: Schema.optional<Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
|
|
883
|
+
canceled_at: Schema.optional<Schema.NullOr<Schema.brand<typeof Schema.String, "Timestamp">>>;
|
|
884
|
+
created_at: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
885
|
+
updated_at: Schema.optional<Schema.brand<typeof Schema.String, "Timestamp">>;
|
|
886
|
+
}>, Schema.Struct<{
|
|
887
|
+
id: Schema.brand<typeof Schema.String, "CustomerId">;
|
|
888
|
+
merchant_customer_id: Schema.brand<Schema.filter<typeof Schema.String>, "NonEmptyString">;
|
|
889
|
+
email: Schema.NullOr<Schema.brand<Schema.filter<typeof Schema.String>, "Email">>;
|
|
890
|
+
name: Schema.NullOr<Schema.brand<Schema.filter<typeof Schema.String>, "NonEmptyString">>;
|
|
891
|
+
phone: Schema.NullOr<typeof Schema.String>;
|
|
892
|
+
project_id: Schema.brand<typeof Schema.String, "ProjectId">;
|
|
893
|
+
metadata: Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
894
|
+
created_at: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
895
|
+
updated_at: Schema.optional<Schema.brand<typeof Schema.String, "Timestamp">>;
|
|
896
|
+
}>, Schema.Struct<{
|
|
897
|
+
id: typeof Schema.String;
|
|
898
|
+
amount: Schema.optional<typeof Schema.Number>;
|
|
899
|
+
currency: Schema.optional<typeof Schema.String>;
|
|
900
|
+
status: typeof Schema.String;
|
|
901
|
+
metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
902
|
+
}>]>;
|
|
903
|
+
is_test: typeof Schema.Boolean;
|
|
904
|
+
created: Schema.optional<typeof Schema.Number>;
|
|
905
|
+
}>;
|
|
906
|
+
type WebhookEvent = Schema.Schema.Type<typeof WebhookEvent>;
|
|
753
907
|
/**
|
|
754
908
|
* ── Params & Inputs ──
|
|
755
909
|
*/
|
|
756
|
-
declare const CreateCheckoutParams: Schema.Struct<{
|
|
757
|
-
amount: Schema.filter<typeof Schema.Number
|
|
910
|
+
declare const CreateCheckoutParams: Schema.filter<Schema.Struct<{
|
|
911
|
+
amount: Schema.optional<Schema.brand<Schema.filter<Schema.filter<typeof Schema.Number>>, "MinorUnitsInt">>;
|
|
758
912
|
currency: Schema.optionalWith<typeof Schema.String, {
|
|
759
913
|
default: () => string;
|
|
760
914
|
}>;
|
|
761
915
|
provider: Schema.Literal<["esewa", "khalti", "connectips", "imepay", "fonepay", "sandbox"]>;
|
|
762
|
-
returnUrl: typeof Schema.String
|
|
763
|
-
cancelUrl: Schema.optional<typeof Schema.String
|
|
916
|
+
returnUrl: Schema.brand<Schema.filter<typeof Schema.String>, "UrlString">;
|
|
917
|
+
cancelUrl: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "UrlString">>;
|
|
764
918
|
metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
765
|
-
|
|
919
|
+
subscriptionId: Schema.optional<Schema.brand<typeof Schema.String, "SubscriptionId">>;
|
|
920
|
+
}>>;
|
|
766
921
|
type CreateCheckoutParams = Schema.Schema.Type<typeof CreateCheckoutParams>;
|
|
767
922
|
declare const CheckoutSession: Schema.Struct<{
|
|
768
923
|
id: Schema.brand<typeof Schema.String, "CheckoutSessionId">;
|
|
769
|
-
checkout_url: typeof Schema.String
|
|
924
|
+
checkout_url: Schema.brand<Schema.filter<typeof Schema.String>, "UrlString">;
|
|
770
925
|
payment_method: Schema.Struct<{
|
|
771
926
|
type: Schema.Literal<["esewa", "khalti", "connectips", "imepay", "fonepay", "sandbox"]>;
|
|
772
|
-
url: Schema.optional<typeof Schema.String
|
|
927
|
+
url: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "UrlString">>;
|
|
773
928
|
method: Schema.optional<Schema.Literal<["GET", "POST"]>>;
|
|
774
929
|
fields: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
775
930
|
}>;
|
|
776
931
|
}>;
|
|
777
932
|
type CheckoutSession = Schema.Schema.Type<typeof CheckoutSession>;
|
|
778
933
|
declare const CreateCustomerParams: Schema.Struct<{
|
|
779
|
-
merchant_customer_id: typeof Schema.String
|
|
780
|
-
email: Schema.optional<typeof Schema.String
|
|
781
|
-
name: Schema.optional<typeof Schema.String
|
|
934
|
+
merchant_customer_id: Schema.brand<Schema.filter<typeof Schema.String>, "NonEmptyString">;
|
|
935
|
+
email: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "Email">>;
|
|
936
|
+
name: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "NonEmptyString">>;
|
|
782
937
|
phone: Schema.optional<typeof Schema.String>;
|
|
783
938
|
project_id: Schema.optional<Schema.brand<typeof Schema.String, "ProjectId">>;
|
|
784
939
|
metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
@@ -794,19 +949,20 @@ declare const ListCustomersParams: Schema.Struct<{
|
|
|
794
949
|
limit: Schema.optional<typeof Schema.NumberFromString>;
|
|
795
950
|
offset: Schema.optional<typeof Schema.NumberFromString>;
|
|
796
951
|
email: Schema.optional<typeof Schema.String>;
|
|
952
|
+
merchant_customer_id: Schema.optional<typeof Schema.String>;
|
|
797
953
|
projectId: Schema.optional<Schema.brand<typeof Schema.String, "ProjectId">>;
|
|
798
954
|
}>;
|
|
799
955
|
type ListCustomersParams = Schema.Schema.Type<typeof ListCustomersParams>;
|
|
800
956
|
declare const UpdateCustomerParams: Schema.Struct<{
|
|
801
|
-
email: Schema.optional<typeof Schema.String
|
|
802
|
-
name: Schema.optional<typeof Schema.String
|
|
957
|
+
email: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "Email">>;
|
|
958
|
+
name: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "NonEmptyString">>;
|
|
803
959
|
phone: Schema.optional<typeof Schema.String>;
|
|
804
960
|
metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
805
961
|
}>;
|
|
806
962
|
type UpdateCustomerParams = Schema.Schema.Type<typeof UpdateCustomerParams>;
|
|
807
963
|
declare const CreateSubscriptionParams: Schema.Struct<{
|
|
808
964
|
customer_id: Schema.brand<typeof Schema.String, "CustomerId">;
|
|
809
|
-
amount: Schema.filter<typeof Schema.Number>;
|
|
965
|
+
amount: Schema.brand<Schema.filter<Schema.filter<typeof Schema.Number>>, "MinorUnitsInt">;
|
|
810
966
|
currency: Schema.optionalWith<typeof Schema.String, {
|
|
811
967
|
default: () => string;
|
|
812
968
|
}>;
|
|
@@ -817,6 +973,12 @@ declare const CreateSubscriptionParams: Schema.Struct<{
|
|
|
817
973
|
metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
818
974
|
}>;
|
|
819
975
|
type CreateSubscriptionParams = Schema.Schema.Type<typeof CreateSubscriptionParams>;
|
|
976
|
+
declare const CallbackQueryParams: Schema.Struct<{
|
|
977
|
+
payment_id: Schema.optional<typeof Schema.String>;
|
|
978
|
+
data: Schema.optional<typeof Schema.String>;
|
|
979
|
+
pidx: Schema.optional<typeof Schema.String>;
|
|
980
|
+
}>;
|
|
981
|
+
type CallbackQueryParams = Schema.Schema.Type<typeof CallbackQueryParams>;
|
|
820
982
|
declare const ListSubscriptionsParams: Schema.Struct<{
|
|
821
983
|
limit: Schema.optional<typeof Schema.NumberFromString>;
|
|
822
984
|
offset: Schema.optional<typeof Schema.NumberFromString>;
|
|
@@ -825,6 +987,11 @@ declare const ListSubscriptionsParams: Schema.Struct<{
|
|
|
825
987
|
status: Schema.optional<Schema.Literal<["active", "past_due", "canceled", "paused"]>>;
|
|
826
988
|
}>;
|
|
827
989
|
type ListSubscriptionsParams = Schema.Schema.Type<typeof ListSubscriptionsParams>;
|
|
990
|
+
declare const RealtimeTriggerPayload: Schema.Struct<{
|
|
991
|
+
event: Schema.optional<Schema.Literal<["payment.success", "payment.failed", "subscription.created", "subscription.payment_succeeded", "subscription.payment_failed", "subscription.renewal_due", "subscription.canceled"]>>;
|
|
992
|
+
data: Schema.optional<typeof Schema.Any>;
|
|
993
|
+
}>;
|
|
994
|
+
type RealtimeTriggerPayload = Schema.Schema.Type<typeof RealtimeTriggerPayload>;
|
|
828
995
|
/**
|
|
829
996
|
* ── Client Config ──
|
|
830
997
|
*/
|
|
@@ -836,63 +1003,6 @@ declare const PayArkConfig: Schema.Struct<{
|
|
|
836
1003
|
sandbox: Schema.optional<typeof Schema.Boolean>;
|
|
837
1004
|
}>;
|
|
838
1005
|
type PayArkConfig = Schema.Schema.Type<typeof PayArkConfig>;
|
|
839
|
-
/**
|
|
840
|
-
* ── Webhooks ──
|
|
841
|
-
*/
|
|
842
|
-
declare const WebhookEventType: Schema.Literal<["payment.success", "payment.failed", "subscription.created", "subscription.payment_succeeded", "subscription.payment_failed", "subscription.renewal_due", "subscription.canceled"]>;
|
|
843
|
-
type WebhookEventType = Schema.Schema.Type<typeof WebhookEventType>;
|
|
844
|
-
declare const WebhookEvent: Schema.Struct<{
|
|
845
|
-
type: Schema.Literal<["payment.success", "payment.failed", "subscription.created", "subscription.payment_succeeded", "subscription.payment_failed", "subscription.renewal_due", "subscription.canceled"]>;
|
|
846
|
-
id: Schema.optional<typeof Schema.String>;
|
|
847
|
-
data: Schema.Union<[Schema.Struct<{
|
|
848
|
-
id: Schema.brand<typeof Schema.String, "PaymentId">;
|
|
849
|
-
project_id: Schema.brand<typeof Schema.String, "ProjectId">;
|
|
850
|
-
amount: typeof Schema.Number;
|
|
851
|
-
currency: typeof Schema.String;
|
|
852
|
-
status: Schema.Literal<["pending", "success", "failed"]>;
|
|
853
|
-
provider_ref: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
854
|
-
metadata_json: Schema.optional<Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
|
|
855
|
-
gateway_response: Schema.optional<Schema.NullOr<typeof Schema.Any>>;
|
|
856
|
-
created_at: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
857
|
-
updated_at: Schema.optional<Schema.brand<typeof Schema.String, "Timestamp">>;
|
|
858
|
-
}>, Schema.Struct<{
|
|
859
|
-
id: Schema.brand<typeof Schema.String, "SubscriptionId">;
|
|
860
|
-
project_id: Schema.brand<typeof Schema.String, "ProjectId">;
|
|
861
|
-
customer_id: Schema.brand<typeof Schema.String, "CustomerId">;
|
|
862
|
-
status: Schema.Literal<["active", "past_due", "canceled", "paused"]>;
|
|
863
|
-
amount: typeof Schema.Number;
|
|
864
|
-
currency: typeof Schema.String;
|
|
865
|
-
interval: Schema.Literal<["month", "year", "week"]>;
|
|
866
|
-
interval_count: typeof Schema.Number;
|
|
867
|
-
current_period_start: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
868
|
-
current_period_end: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
869
|
-
payment_link: typeof Schema.String;
|
|
870
|
-
auto_send_link: typeof Schema.Boolean;
|
|
871
|
-
metadata: Schema.optional<Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
|
|
872
|
-
canceled_at: Schema.optional<Schema.NullOr<Schema.brand<typeof Schema.String, "Timestamp">>>;
|
|
873
|
-
created_at: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
874
|
-
updated_at: Schema.optional<Schema.brand<typeof Schema.String, "Timestamp">>;
|
|
875
|
-
}>, Schema.Struct<{
|
|
876
|
-
id: Schema.brand<typeof Schema.String, "CustomerId">;
|
|
877
|
-
merchant_customer_id: typeof Schema.String;
|
|
878
|
-
email: Schema.NullOr<Schema.brand<Schema.filter<typeof Schema.String>, "Email">>;
|
|
879
|
-
name: Schema.NullOr<typeof Schema.String>;
|
|
880
|
-
phone: Schema.NullOr<typeof Schema.String>;
|
|
881
|
-
project_id: Schema.brand<typeof Schema.String, "ProjectId">;
|
|
882
|
-
metadata: Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
883
|
-
created_at: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
884
|
-
updated_at: Schema.optional<Schema.brand<typeof Schema.String, "Timestamp">>;
|
|
885
|
-
}>, Schema.Struct<{
|
|
886
|
-
id: typeof Schema.String;
|
|
887
|
-
amount: Schema.optional<typeof Schema.Number>;
|
|
888
|
-
currency: Schema.optional<typeof Schema.String>;
|
|
889
|
-
status: typeof Schema.String;
|
|
890
|
-
metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
891
|
-
}>]>;
|
|
892
|
-
is_test: typeof Schema.Boolean;
|
|
893
|
-
created: Schema.optional<typeof Schema.Number>;
|
|
894
|
-
}>;
|
|
895
|
-
type WebhookEvent = Schema.Schema.Type<typeof WebhookEvent>;
|
|
896
1006
|
/**
|
|
897
1007
|
* ── Error Schemas ──
|
|
898
1008
|
*/
|
|
@@ -990,22 +1100,23 @@ declare const makeClient: (options?: {
|
|
|
990
1100
|
readonly checkout: {
|
|
991
1101
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
992
1102
|
readonly payload: {
|
|
993
|
-
readonly amount
|
|
1103
|
+
readonly amount?: (number & effect_Brand.Brand<"MinorUnitsInt">) | undefined;
|
|
994
1104
|
readonly currency: string;
|
|
995
1105
|
readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
996
|
-
readonly returnUrl: string
|
|
997
|
-
readonly cancelUrl?: string | undefined;
|
|
1106
|
+
readonly returnUrl: string & effect_Brand.Brand<"UrlString">;
|
|
1107
|
+
readonly cancelUrl?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
998
1108
|
readonly metadata?: {
|
|
999
1109
|
readonly [x: string]: any;
|
|
1000
1110
|
} | undefined;
|
|
1111
|
+
readonly subscriptionId?: (string & effect_Brand.Brand<"SubscriptionId">) | undefined;
|
|
1001
1112
|
};
|
|
1002
1113
|
readonly withResponse?: WithResponse | undefined;
|
|
1003
1114
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1004
1115
|
readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
|
|
1005
|
-
readonly checkout_url: string
|
|
1116
|
+
readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
|
|
1006
1117
|
readonly payment_method: {
|
|
1007
1118
|
readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1008
|
-
readonly url?: string | undefined;
|
|
1119
|
+
readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
1009
1120
|
readonly method?: "POST" | "GET" | undefined;
|
|
1010
1121
|
readonly fields?: {
|
|
1011
1122
|
readonly [x: string]: string;
|
|
@@ -1013,10 +1124,10 @@ declare const makeClient: (options?: {
|
|
|
1013
1124
|
};
|
|
1014
1125
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1015
1126
|
readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
|
|
1016
|
-
readonly checkout_url: string
|
|
1127
|
+
readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
|
|
1017
1128
|
readonly payment_method: {
|
|
1018
1129
|
readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1019
|
-
readonly url?: string | undefined;
|
|
1130
|
+
readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
1020
1131
|
readonly method?: "POST" | "GET" | undefined;
|
|
1021
1132
|
readonly fields?: {
|
|
1022
1133
|
readonly [x: string]: string;
|
|
@@ -1113,9 +1224,9 @@ declare const makeClient: (options?: {
|
|
|
1113
1224
|
readonly [x: string]: any;
|
|
1114
1225
|
} | undefined;
|
|
1115
1226
|
readonly project_id?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
1116
|
-
readonly merchant_customer_id: string
|
|
1117
|
-
readonly email?: string | undefined;
|
|
1118
|
-
readonly name?: string | undefined;
|
|
1227
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1228
|
+
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
1229
|
+
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
1119
1230
|
readonly phone?: string | undefined;
|
|
1120
1231
|
};
|
|
1121
1232
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -1127,9 +1238,9 @@ declare const makeClient: (options?: {
|
|
|
1127
1238
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1128
1239
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1129
1240
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1130
|
-
readonly merchant_customer_id: string
|
|
1241
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1131
1242
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1132
|
-
readonly name: string | null;
|
|
1243
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1133
1244
|
readonly phone: string | null;
|
|
1134
1245
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1135
1246
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
@@ -1139,11 +1250,59 @@ declare const makeClient: (options?: {
|
|
|
1139
1250
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1140
1251
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1141
1252
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1142
|
-
readonly merchant_customer_id: string
|
|
1253
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1143
1254
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1144
|
-
readonly name: string | null;
|
|
1255
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1145
1256
|
readonly phone: string | null;
|
|
1146
1257
|
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1258
|
+
readonly list: <WithResponse extends boolean = false>(request: {
|
|
1259
|
+
readonly urlParams: {
|
|
1260
|
+
readonly limit?: number | undefined;
|
|
1261
|
+
readonly offset?: number | undefined;
|
|
1262
|
+
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
1263
|
+
readonly merchant_customer_id?: string | undefined;
|
|
1264
|
+
readonly email?: string | undefined;
|
|
1265
|
+
};
|
|
1266
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1267
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1268
|
+
readonly data: readonly {
|
|
1269
|
+
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
1270
|
+
readonly metadata: {
|
|
1271
|
+
readonly [x: string]: any;
|
|
1272
|
+
} | null;
|
|
1273
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1274
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1275
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1276
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1277
|
+
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1278
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1279
|
+
readonly phone: string | null;
|
|
1280
|
+
}[];
|
|
1281
|
+
readonly meta: {
|
|
1282
|
+
readonly total: number | null;
|
|
1283
|
+
readonly limit: number;
|
|
1284
|
+
readonly offset: number;
|
|
1285
|
+
};
|
|
1286
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1287
|
+
readonly data: readonly {
|
|
1288
|
+
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
1289
|
+
readonly metadata: {
|
|
1290
|
+
readonly [x: string]: any;
|
|
1291
|
+
} | null;
|
|
1292
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1293
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1294
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1295
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1296
|
+
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1297
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1298
|
+
readonly phone: string | null;
|
|
1299
|
+
}[];
|
|
1300
|
+
readonly meta: {
|
|
1301
|
+
readonly total: number | null;
|
|
1302
|
+
readonly limit: number;
|
|
1303
|
+
readonly offset: number;
|
|
1304
|
+
};
|
|
1305
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1147
1306
|
readonly retrieve: <WithResponse extends boolean = false>(request: {
|
|
1148
1307
|
readonly path: {
|
|
1149
1308
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
@@ -1157,9 +1316,9 @@ declare const makeClient: (options?: {
|
|
|
1157
1316
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1158
1317
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1159
1318
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1160
|
-
readonly merchant_customer_id: string
|
|
1319
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1161
1320
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1162
|
-
readonly name: string | null;
|
|
1321
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1163
1322
|
readonly phone: string | null;
|
|
1164
1323
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1165
1324
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
@@ -1169,9 +1328,9 @@ declare const makeClient: (options?: {
|
|
|
1169
1328
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1170
1329
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1171
1330
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1172
|
-
readonly merchant_customer_id: string
|
|
1331
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1173
1332
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1174
|
-
readonly name: string | null;
|
|
1333
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1175
1334
|
readonly phone: string | null;
|
|
1176
1335
|
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1177
1336
|
readonly update: <WithResponse extends boolean = false>(request: {
|
|
@@ -1182,8 +1341,8 @@ declare const makeClient: (options?: {
|
|
|
1182
1341
|
readonly metadata?: {
|
|
1183
1342
|
readonly [x: string]: any;
|
|
1184
1343
|
} | undefined;
|
|
1185
|
-
readonly email?: string | undefined;
|
|
1186
|
-
readonly name?: string | undefined;
|
|
1344
|
+
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
1345
|
+
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
1187
1346
|
readonly phone?: string | undefined;
|
|
1188
1347
|
};
|
|
1189
1348
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -1195,9 +1354,9 @@ declare const makeClient: (options?: {
|
|
|
1195
1354
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1196
1355
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1197
1356
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1198
|
-
readonly merchant_customer_id: string
|
|
1357
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1199
1358
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1200
|
-
readonly name: string | null;
|
|
1359
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1201
1360
|
readonly phone: string | null;
|
|
1202
1361
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1203
1362
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
@@ -1207,9 +1366,9 @@ declare const makeClient: (options?: {
|
|
|
1207
1366
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1208
1367
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1209
1368
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1210
|
-
readonly merchant_customer_id: string
|
|
1369
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1211
1370
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1212
|
-
readonly name: string | null;
|
|
1371
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1213
1372
|
readonly phone: string | null;
|
|
1214
1373
|
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1215
1374
|
readonly delete: <WithResponse extends boolean = false>(request: {
|
|
@@ -1222,7 +1381,7 @@ declare const makeClient: (options?: {
|
|
|
1222
1381
|
readonly subscriptions: {
|
|
1223
1382
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
1224
1383
|
readonly payload: {
|
|
1225
|
-
readonly amount: number
|
|
1384
|
+
readonly amount: number & effect_Brand.Brand<"MinorUnitsInt">;
|
|
1226
1385
|
readonly currency: string;
|
|
1227
1386
|
readonly metadata?: {
|
|
1228
1387
|
readonly [x: string]: any;
|
|
@@ -1250,7 +1409,7 @@ declare const makeClient: (options?: {
|
|
|
1250
1409
|
readonly interval_count: number;
|
|
1251
1410
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1252
1411
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1253
|
-
readonly payment_link: string
|
|
1412
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1254
1413
|
readonly auto_send_link: boolean;
|
|
1255
1414
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1256
1415
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
@@ -1269,7 +1428,7 @@ declare const makeClient: (options?: {
|
|
|
1269
1428
|
readonly interval_count: number;
|
|
1270
1429
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1271
1430
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1272
|
-
readonly payment_link: string
|
|
1431
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1273
1432
|
readonly auto_send_link: boolean;
|
|
1274
1433
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1275
1434
|
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
@@ -1294,7 +1453,7 @@ declare const makeClient: (options?: {
|
|
|
1294
1453
|
readonly interval_count: number;
|
|
1295
1454
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1296
1455
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1297
|
-
readonly payment_link: string
|
|
1456
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1298
1457
|
readonly auto_send_link: boolean;
|
|
1299
1458
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1300
1459
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
@@ -1313,7 +1472,7 @@ declare const makeClient: (options?: {
|
|
|
1313
1472
|
readonly interval_count: number;
|
|
1314
1473
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1315
1474
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1316
|
-
readonly payment_link: string
|
|
1475
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1317
1476
|
readonly auto_send_link: boolean;
|
|
1318
1477
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1319
1478
|
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
@@ -1343,7 +1502,7 @@ declare const makeClient: (options?: {
|
|
|
1343
1502
|
readonly interval_count: number;
|
|
1344
1503
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1345
1504
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1346
|
-
readonly payment_link: string
|
|
1505
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1347
1506
|
readonly auto_send_link: boolean;
|
|
1348
1507
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1349
1508
|
}[];
|
|
@@ -1369,7 +1528,7 @@ declare const makeClient: (options?: {
|
|
|
1369
1528
|
readonly interval_count: number;
|
|
1370
1529
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1371
1530
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1372
|
-
readonly payment_link: string
|
|
1531
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1373
1532
|
readonly auto_send_link: boolean;
|
|
1374
1533
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1375
1534
|
}[];
|
|
@@ -1400,7 +1559,7 @@ declare const makeClient: (options?: {
|
|
|
1400
1559
|
readonly interval_count: number;
|
|
1401
1560
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1402
1561
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1403
|
-
readonly payment_link: string
|
|
1562
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1404
1563
|
readonly auto_send_link: boolean;
|
|
1405
1564
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1406
1565
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
@@ -1419,7 +1578,7 @@ declare const makeClient: (options?: {
|
|
|
1419
1578
|
readonly interval_count: number;
|
|
1420
1579
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1421
1580
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1422
|
-
readonly payment_link: string
|
|
1581
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1423
1582
|
readonly auto_send_link: boolean;
|
|
1424
1583
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1425
1584
|
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
@@ -1472,7 +1631,7 @@ declare const makeClient: (options?: {
|
|
|
1472
1631
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1473
1632
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
1474
1633
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1475
|
-
readonly name: string
|
|
1634
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1476
1635
|
readonly scopes: readonly string[];
|
|
1477
1636
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
1478
1637
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
@@ -1480,7 +1639,7 @@ declare const makeClient: (options?: {
|
|
|
1480
1639
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1481
1640
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
1482
1641
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1483
|
-
readonly name: string
|
|
1642
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1484
1643
|
readonly scopes: readonly string[];
|
|
1485
1644
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
1486
1645
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
@@ -1491,14 +1650,14 @@ declare const makeClient: (options?: {
|
|
|
1491
1650
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
1492
1651
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
1493
1652
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1494
|
-
readonly name: string
|
|
1653
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1495
1654
|
readonly scopes: readonly string[];
|
|
1496
1655
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
1497
1656
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
1498
1657
|
}[], _effect_platform_HttpClientResponse.HttpClientResponse] : readonly {
|
|
1499
1658
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
1500
1659
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1501
|
-
readonly name: string
|
|
1660
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1502
1661
|
readonly scopes: readonly string[];
|
|
1503
1662
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
1504
1663
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
@@ -1510,27 +1669,80 @@ declare const makeClient: (options?: {
|
|
|
1510
1669
|
readonly withResponse?: WithResponse | undefined;
|
|
1511
1670
|
}) => Effect.Effect<WithResponse extends true ? [null, _effect_platform_HttpClientResponse.HttpClientResponse] : null, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1512
1671
|
};
|
|
1672
|
+
readonly projects: {
|
|
1673
|
+
readonly list: <WithResponse extends boolean = false>(request: void | {
|
|
1674
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1675
|
+
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
1676
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
1677
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1678
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1679
|
+
readonly api_key_secret: string;
|
|
1680
|
+
}[], _effect_platform_HttpClientResponse.HttpClientResponse] : readonly {
|
|
1681
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
1682
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1683
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1684
|
+
readonly api_key_secret: string;
|
|
1685
|
+
}[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1686
|
+
};
|
|
1687
|
+
readonly callbacks: {
|
|
1688
|
+
readonly handle: <WithResponse extends boolean = false>(request: {
|
|
1689
|
+
readonly path: {
|
|
1690
|
+
readonly provider: string;
|
|
1691
|
+
};
|
|
1692
|
+
readonly urlParams: {
|
|
1693
|
+
readonly data?: string | undefined;
|
|
1694
|
+
readonly payment_id?: string | undefined;
|
|
1695
|
+
readonly pidx?: string | undefined;
|
|
1696
|
+
};
|
|
1697
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1698
|
+
}) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1699
|
+
};
|
|
1700
|
+
readonly realtime: {
|
|
1701
|
+
readonly connect: <WithResponse extends boolean = false>(request: {
|
|
1702
|
+
readonly urlParams: {
|
|
1703
|
+
readonly token: string;
|
|
1704
|
+
};
|
|
1705
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1706
|
+
}) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1707
|
+
readonly trigger: <WithResponse extends boolean = false>(request: {
|
|
1708
|
+
readonly urlParams: {
|
|
1709
|
+
readonly token?: string | undefined;
|
|
1710
|
+
};
|
|
1711
|
+
readonly payload: {
|
|
1712
|
+
readonly data?: any;
|
|
1713
|
+
readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
|
|
1714
|
+
};
|
|
1715
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1716
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1717
|
+
readonly status: string;
|
|
1718
|
+
readonly event?: string | undefined;
|
|
1719
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1720
|
+
readonly status: string;
|
|
1721
|
+
readonly event?: string | undefined;
|
|
1722
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1723
|
+
};
|
|
1513
1724
|
}, never, HttpClient.HttpClient>;
|
|
1514
1725
|
declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-effect/PayArkClient", {
|
|
1515
1726
|
readonly checkout: {
|
|
1516
1727
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
1517
1728
|
readonly payload: {
|
|
1518
|
-
readonly amount
|
|
1729
|
+
readonly amount?: (number & effect_Brand.Brand<"MinorUnitsInt">) | undefined;
|
|
1519
1730
|
readonly currency: string;
|
|
1520
1731
|
readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1521
|
-
readonly returnUrl: string
|
|
1522
|
-
readonly cancelUrl?: string | undefined;
|
|
1732
|
+
readonly returnUrl: string & effect_Brand.Brand<"UrlString">;
|
|
1733
|
+
readonly cancelUrl?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
1523
1734
|
readonly metadata?: {
|
|
1524
1735
|
readonly [x: string]: any;
|
|
1525
1736
|
} | undefined;
|
|
1737
|
+
readonly subscriptionId?: (string & effect_Brand.Brand<"SubscriptionId">) | undefined;
|
|
1526
1738
|
};
|
|
1527
1739
|
readonly withResponse?: WithResponse | undefined;
|
|
1528
1740
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1529
1741
|
readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
|
|
1530
|
-
readonly checkout_url: string
|
|
1742
|
+
readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
|
|
1531
1743
|
readonly payment_method: {
|
|
1532
1744
|
readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1533
|
-
readonly url?: string | undefined;
|
|
1745
|
+
readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
1534
1746
|
readonly method?: "POST" | "GET" | undefined;
|
|
1535
1747
|
readonly fields?: {
|
|
1536
1748
|
readonly [x: string]: string;
|
|
@@ -1538,10 +1750,10 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1538
1750
|
};
|
|
1539
1751
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1540
1752
|
readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
|
|
1541
|
-
readonly checkout_url: string
|
|
1753
|
+
readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
|
|
1542
1754
|
readonly payment_method: {
|
|
1543
1755
|
readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1544
|
-
readonly url?: string | undefined;
|
|
1756
|
+
readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
1545
1757
|
readonly method?: "POST" | "GET" | undefined;
|
|
1546
1758
|
readonly fields?: {
|
|
1547
1759
|
readonly [x: string]: string;
|
|
@@ -1638,9 +1850,9 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1638
1850
|
readonly [x: string]: any;
|
|
1639
1851
|
} | undefined;
|
|
1640
1852
|
readonly project_id?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
1641
|
-
readonly merchant_customer_id: string
|
|
1642
|
-
readonly email?: string | undefined;
|
|
1643
|
-
readonly name?: string | undefined;
|
|
1853
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1854
|
+
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
1855
|
+
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
1644
1856
|
readonly phone?: string | undefined;
|
|
1645
1857
|
};
|
|
1646
1858
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -1652,9 +1864,9 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1652
1864
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1653
1865
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1654
1866
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1655
|
-
readonly merchant_customer_id: string
|
|
1867
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1656
1868
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1657
|
-
readonly name: string | null;
|
|
1869
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1658
1870
|
readonly phone: string | null;
|
|
1659
1871
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1660
1872
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
@@ -1664,11 +1876,59 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1664
1876
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1665
1877
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1666
1878
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1667
|
-
readonly merchant_customer_id: string
|
|
1879
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1668
1880
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1669
|
-
readonly name: string | null;
|
|
1881
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1670
1882
|
readonly phone: string | null;
|
|
1671
1883
|
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1884
|
+
readonly list: <WithResponse extends boolean = false>(request: {
|
|
1885
|
+
readonly urlParams: {
|
|
1886
|
+
readonly limit?: number | undefined;
|
|
1887
|
+
readonly offset?: number | undefined;
|
|
1888
|
+
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
1889
|
+
readonly merchant_customer_id?: string | undefined;
|
|
1890
|
+
readonly email?: string | undefined;
|
|
1891
|
+
};
|
|
1892
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1893
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1894
|
+
readonly data: readonly {
|
|
1895
|
+
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
1896
|
+
readonly metadata: {
|
|
1897
|
+
readonly [x: string]: any;
|
|
1898
|
+
} | null;
|
|
1899
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1900
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1901
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1902
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1903
|
+
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1904
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1905
|
+
readonly phone: string | null;
|
|
1906
|
+
}[];
|
|
1907
|
+
readonly meta: {
|
|
1908
|
+
readonly total: number | null;
|
|
1909
|
+
readonly limit: number;
|
|
1910
|
+
readonly offset: number;
|
|
1911
|
+
};
|
|
1912
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1913
|
+
readonly data: readonly {
|
|
1914
|
+
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
1915
|
+
readonly metadata: {
|
|
1916
|
+
readonly [x: string]: any;
|
|
1917
|
+
} | null;
|
|
1918
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1919
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1920
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1921
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1922
|
+
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1923
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1924
|
+
readonly phone: string | null;
|
|
1925
|
+
}[];
|
|
1926
|
+
readonly meta: {
|
|
1927
|
+
readonly total: number | null;
|
|
1928
|
+
readonly limit: number;
|
|
1929
|
+
readonly offset: number;
|
|
1930
|
+
};
|
|
1931
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1672
1932
|
readonly retrieve: <WithResponse extends boolean = false>(request: {
|
|
1673
1933
|
readonly path: {
|
|
1674
1934
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
@@ -1682,9 +1942,9 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1682
1942
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1683
1943
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1684
1944
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1685
|
-
readonly merchant_customer_id: string
|
|
1945
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1686
1946
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1687
|
-
readonly name: string | null;
|
|
1947
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1688
1948
|
readonly phone: string | null;
|
|
1689
1949
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1690
1950
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
@@ -1694,9 +1954,9 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1694
1954
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1695
1955
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1696
1956
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1697
|
-
readonly merchant_customer_id: string
|
|
1957
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1698
1958
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1699
|
-
readonly name: string | null;
|
|
1959
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1700
1960
|
readonly phone: string | null;
|
|
1701
1961
|
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1702
1962
|
readonly update: <WithResponse extends boolean = false>(request: {
|
|
@@ -1707,8 +1967,8 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1707
1967
|
readonly metadata?: {
|
|
1708
1968
|
readonly [x: string]: any;
|
|
1709
1969
|
} | undefined;
|
|
1710
|
-
readonly email?: string | undefined;
|
|
1711
|
-
readonly name?: string | undefined;
|
|
1970
|
+
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
1971
|
+
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
1712
1972
|
readonly phone?: string | undefined;
|
|
1713
1973
|
};
|
|
1714
1974
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -1720,9 +1980,9 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1720
1980
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1721
1981
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1722
1982
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1723
|
-
readonly merchant_customer_id: string
|
|
1983
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1724
1984
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1725
|
-
readonly name: string | null;
|
|
1985
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1726
1986
|
readonly phone: string | null;
|
|
1727
1987
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1728
1988
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
@@ -1732,9 +1992,9 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1732
1992
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1733
1993
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1734
1994
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1735
|
-
readonly merchant_customer_id: string
|
|
1995
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1736
1996
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1737
|
-
readonly name: string | null;
|
|
1997
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1738
1998
|
readonly phone: string | null;
|
|
1739
1999
|
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1740
2000
|
readonly delete: <WithResponse extends boolean = false>(request: {
|
|
@@ -1747,7 +2007,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1747
2007
|
readonly subscriptions: {
|
|
1748
2008
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
1749
2009
|
readonly payload: {
|
|
1750
|
-
readonly amount: number
|
|
2010
|
+
readonly amount: number & effect_Brand.Brand<"MinorUnitsInt">;
|
|
1751
2011
|
readonly currency: string;
|
|
1752
2012
|
readonly metadata?: {
|
|
1753
2013
|
readonly [x: string]: any;
|
|
@@ -1775,7 +2035,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1775
2035
|
readonly interval_count: number;
|
|
1776
2036
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1777
2037
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1778
|
-
readonly payment_link: string
|
|
2038
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1779
2039
|
readonly auto_send_link: boolean;
|
|
1780
2040
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1781
2041
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
@@ -1794,7 +2054,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1794
2054
|
readonly interval_count: number;
|
|
1795
2055
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1796
2056
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1797
|
-
readonly payment_link: string
|
|
2057
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1798
2058
|
readonly auto_send_link: boolean;
|
|
1799
2059
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1800
2060
|
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
@@ -1819,7 +2079,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1819
2079
|
readonly interval_count: number;
|
|
1820
2080
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1821
2081
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1822
|
-
readonly payment_link: string
|
|
2082
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1823
2083
|
readonly auto_send_link: boolean;
|
|
1824
2084
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1825
2085
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
@@ -1838,7 +2098,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1838
2098
|
readonly interval_count: number;
|
|
1839
2099
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1840
2100
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1841
|
-
readonly payment_link: string
|
|
2101
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1842
2102
|
readonly auto_send_link: boolean;
|
|
1843
2103
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1844
2104
|
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
@@ -1868,7 +2128,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1868
2128
|
readonly interval_count: number;
|
|
1869
2129
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1870
2130
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1871
|
-
readonly payment_link: string
|
|
2131
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1872
2132
|
readonly auto_send_link: boolean;
|
|
1873
2133
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1874
2134
|
}[];
|
|
@@ -1894,7 +2154,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1894
2154
|
readonly interval_count: number;
|
|
1895
2155
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1896
2156
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1897
|
-
readonly payment_link: string
|
|
2157
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1898
2158
|
readonly auto_send_link: boolean;
|
|
1899
2159
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1900
2160
|
}[];
|
|
@@ -1925,7 +2185,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1925
2185
|
readonly interval_count: number;
|
|
1926
2186
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1927
2187
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1928
|
-
readonly payment_link: string
|
|
2188
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1929
2189
|
readonly auto_send_link: boolean;
|
|
1930
2190
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1931
2191
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
@@ -1944,7 +2204,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1944
2204
|
readonly interval_count: number;
|
|
1945
2205
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1946
2206
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1947
|
-
readonly payment_link: string
|
|
2207
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1948
2208
|
readonly auto_send_link: boolean;
|
|
1949
2209
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1950
2210
|
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
@@ -1997,7 +2257,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1997
2257
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1998
2258
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
1999
2259
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2000
|
-
readonly name: string
|
|
2260
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
2001
2261
|
readonly scopes: readonly string[];
|
|
2002
2262
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
2003
2263
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
@@ -2005,7 +2265,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2005
2265
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
2006
2266
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
2007
2267
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2008
|
-
readonly name: string
|
|
2268
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
2009
2269
|
readonly scopes: readonly string[];
|
|
2010
2270
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
2011
2271
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
@@ -2016,14 +2276,14 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2016
2276
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
2017
2277
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
2018
2278
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2019
|
-
readonly name: string
|
|
2279
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
2020
2280
|
readonly scopes: readonly string[];
|
|
2021
2281
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
2022
2282
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
2023
2283
|
}[], _effect_platform_HttpClientResponse.HttpClientResponse] : readonly {
|
|
2024
2284
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
2025
2285
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2026
|
-
readonly name: string
|
|
2286
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
2027
2287
|
readonly scopes: readonly string[];
|
|
2028
2288
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
2029
2289
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
@@ -2035,6 +2295,58 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2035
2295
|
readonly withResponse?: WithResponse | undefined;
|
|
2036
2296
|
}) => Effect.Effect<WithResponse extends true ? [null, _effect_platform_HttpClientResponse.HttpClientResponse] : null, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2037
2297
|
};
|
|
2298
|
+
readonly projects: {
|
|
2299
|
+
readonly list: <WithResponse extends boolean = false>(request: void | {
|
|
2300
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2301
|
+
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
2302
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
2303
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2304
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
2305
|
+
readonly api_key_secret: string;
|
|
2306
|
+
}[], _effect_platform_HttpClientResponse.HttpClientResponse] : readonly {
|
|
2307
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
2308
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2309
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
2310
|
+
readonly api_key_secret: string;
|
|
2311
|
+
}[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2312
|
+
};
|
|
2313
|
+
readonly callbacks: {
|
|
2314
|
+
readonly handle: <WithResponse extends boolean = false>(request: {
|
|
2315
|
+
readonly path: {
|
|
2316
|
+
readonly provider: string;
|
|
2317
|
+
};
|
|
2318
|
+
readonly urlParams: {
|
|
2319
|
+
readonly data?: string | undefined;
|
|
2320
|
+
readonly payment_id?: string | undefined;
|
|
2321
|
+
readonly pidx?: string | undefined;
|
|
2322
|
+
};
|
|
2323
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2324
|
+
}) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2325
|
+
};
|
|
2326
|
+
readonly realtime: {
|
|
2327
|
+
readonly connect: <WithResponse extends boolean = false>(request: {
|
|
2328
|
+
readonly urlParams: {
|
|
2329
|
+
readonly token: string;
|
|
2330
|
+
};
|
|
2331
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2332
|
+
}) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2333
|
+
readonly trigger: <WithResponse extends boolean = false>(request: {
|
|
2334
|
+
readonly urlParams: {
|
|
2335
|
+
readonly token?: string | undefined;
|
|
2336
|
+
};
|
|
2337
|
+
readonly payload: {
|
|
2338
|
+
readonly data?: any;
|
|
2339
|
+
readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
|
|
2340
|
+
};
|
|
2341
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2342
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2343
|
+
readonly status: string;
|
|
2344
|
+
readonly event?: string | undefined;
|
|
2345
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
2346
|
+
readonly status: string;
|
|
2347
|
+
readonly event?: string | undefined;
|
|
2348
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2349
|
+
};
|
|
2038
2350
|
}>;
|
|
2039
2351
|
/**
|
|
2040
2352
|
* Service Tag for the Industrial Client.
|
|
@@ -2078,4 +2390,4 @@ declare class PayArk extends PayArk_base {
|
|
|
2078
2390
|
static readonly Live: (config: PayArkConfig) => Layer.Layer<PayArk, never, never>;
|
|
2079
2391
|
}
|
|
2080
2392
|
|
|
2081
|
-
export { AuthContext, AuthenticationError, AutomationGroup, CheckoutGroup, CheckoutSession, CheckoutSessionId, ConflictError, CreateCheckoutParams, CreateCustomerParams, CreateSubscriptionParams, CronSecurity, Customer, CustomerId, CustomersGroup, Email, Id, IndustrialError, InternalServerError, ListCustomersParams, ListPaymentsParams, ListSubscriptionsParams, Metadata, NotFoundError, PaginatedResponse, PaginationMeta, PayArk, PayArkApi, PayArkClient, PayArkConfig, PayArkEffect, PayArkEffectError, PayArkErrorBody$1 as PayArkErrorBody, Payment, PaymentId, PaymentStatus, PaymentsGroup, Project, ProjectId, Provider, SecurityMiddleware, Subscription, SubscriptionId, SubscriptionInterval, SubscriptionStatus, SubscriptionsGroup, Timestamp, Timestamps, Token, TokenId, TokensGroup, UpdateCustomerParams, UserSecurity, WebhookEvent, WebhookEventType, makeClient };
|
|
2393
|
+
export { AuthContext, AuthenticationError, AutomationGroup, CallbackQueryParams, CallbacksGroup, CheckoutGroup, CheckoutSession, CheckoutSessionId, ConflictError, CreateCheckoutParams, CreateCustomerParams, CreateSubscriptionParams, CronSecurity, Customer, CustomerId, CustomersGroup, Email, Id, IndustrialError, InternalServerError, ListCustomersParams, ListPaymentsParams, ListSubscriptionsParams, Metadata, NotFoundError, PaginatedResponse, PaginationMeta, PayArk, PayArkApi, PayArkClient, PayArkConfig, PayArkEffect, PayArkEffectError, PayArkErrorBody$1 as PayArkErrorBody, Payment, PaymentId, PaymentStatus, PaymentsGroup, Project, ProjectId, ProjectsGroup, Provider, RealtimeGroup, RealtimeTriggerPayload, SecurityMiddleware, Subscription, SubscriptionId, SubscriptionInterval, SubscriptionStatus, SubscriptionsGroup, Timestamp, Timestamps, Token, TokenId, TokensGroup, UpdateCustomerParams, UserSecurity, WebhookEvent, WebhookEventType, makeClient };
|