@payark/sdk-effect 0.1.5 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -10
- package/dist/api-spec.d.mts +1066 -0
- package/dist/api-spec.d.ts +1066 -0
- package/dist/api-spec.js +651 -0
- package/dist/api-spec.js.map +1 -0
- package/dist/api-spec.mjs +622 -0
- package/dist/api-spec.mjs.map +1 -0
- package/dist/index.d.mts +925 -1102
- package/dist/index.d.ts +925 -1102
- package/dist/index.js +615 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +601 -25
- package/dist/index.mjs.map +1 -1
- package/dist/schemas.d.mts +372 -0
- package/dist/schemas.d.ts +372 -0
- package/dist/schemas.js +372 -0
- package/dist/schemas.js.map +1 -0
- package/dist/schemas.mjs +328 -0
- package/dist/schemas.mjs.map +1 -0
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,1016 +1,19 @@
|
|
|
1
1
|
import * as effect_ParseResult from 'effect/ParseResult';
|
|
2
2
|
import * as _effect_platform_HttpClientError from '@effect/platform/HttpClientError';
|
|
3
|
+
import { AuthenticationError, InternalServerError, IndustrialError, NotFoundError, ConflictError, MandateViolationError as MandateViolationError$1, MandateExpiredError as MandateExpiredError$1 } from './api-spec.js';
|
|
4
|
+
export { AuthCallbackQueryParams, AuthContext, AuthGroup, AutomationGroup, CallbacksGroup, CheckoutGroup, CronSecurity, CustomersGroup, DiscoveryGroup, MandatesGroup, PayArkApi, PaymentCallbackQueryParams, PaymentsGroup, ProjectsGroup, RealtimeGroup, SandboxGroup, SecurityMiddleware, SigningKeysGroup, SubscriptionsGroup, TokensGroup, UserSecurity } from './api-spec.js';
|
|
3
5
|
import * as _effect_platform_HttpApiError from '@effect/platform/HttpApiError';
|
|
4
|
-
import * as effect_Brand from 'effect/Brand';
|
|
5
|
-
import * as effect_Effect from 'effect/Effect';
|
|
6
|
-
import * as _effect_platform_HttpRouter from '@effect/platform/HttpRouter';
|
|
7
|
-
import * as effect_Redacted from 'effect/Redacted';
|
|
8
|
-
import { HttpApiGroup, HttpApiEndpoint, HttpApiMiddleware, HttpApiSecurity, HttpApi, HttpClient } from '@effect/platform';
|
|
9
|
-
import { Context, Schema, Effect, ParseResult, Layer } from 'effect';
|
|
10
6
|
import * as _effect_platform_HttpClientResponse from '@effect/platform/HttpClientResponse';
|
|
7
|
+
import * as effect_Brand from 'effect/Brand';
|
|
8
|
+
import { Effect, ParseResult, Context, Layer } from 'effect';
|
|
9
|
+
import { HttpClient } from '@effect/platform';
|
|
10
|
+
import { PayArkConfig, CreateCheckoutParams, CheckoutSession, ListPaymentsParams, PaginatedResponse, Payment, Project, CreateCustomerParams, Customer, ListCustomersParams, UpdateCustomerParams, CreateSubscriptionParams, Subscription, ListSubscriptionsParams, Mandate, Token } from './schemas.js';
|
|
11
|
+
export { AgentSession, AgentSessionId, CallbackQueryParams, CheckoutSessionId, CustomerId, CustomerLifecycle, Email, Id, MandateId, MandateStatus, MandateType, Metadata, PaginationMeta, PayArkErrorBody, PaymentId, PaymentStatus, ProjectId, Provider, RealtimeTriggerPayload, SubscriptionId, SubscriptionInterval, SubscriptionStatus, Timestamp, Timestamps, TokenId, WebhookEvent, WebhookEventType } from './schemas.js';
|
|
11
12
|
import * as effect_Cause from 'effect/Cause';
|
|
12
13
|
import * as effect_Types from 'effect/Types';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} & {
|
|
17
|
-
error: typeof Schema.String;
|
|
18
|
-
details: Schema.optional<typeof Schema.Any>;
|
|
19
|
-
}>;
|
|
20
|
-
/**
|
|
21
|
-
* Industrial Error Schema with Status mapping.
|
|
22
|
-
*/
|
|
23
|
-
declare class IndustrialError extends IndustrialError_base {
|
|
24
|
-
}
|
|
25
|
-
declare const AuthenticationError_base: Schema.TaggedErrorClass<AuthenticationError, "AuthenticationError", {
|
|
26
|
-
readonly _tag: Schema.tag<"AuthenticationError">;
|
|
27
|
-
} & {
|
|
28
|
-
error: typeof Schema.String;
|
|
29
|
-
}>;
|
|
30
|
-
declare class AuthenticationError extends AuthenticationError_base {
|
|
31
|
-
}
|
|
32
|
-
declare const NotFoundError_base: Schema.TaggedErrorClass<NotFoundError, "NotFoundError", {
|
|
33
|
-
readonly _tag: Schema.tag<"NotFoundError">;
|
|
34
|
-
} & {
|
|
35
|
-
error: typeof Schema.String;
|
|
36
|
-
}>;
|
|
37
|
-
declare class NotFoundError extends NotFoundError_base {
|
|
38
|
-
}
|
|
39
|
-
declare const InternalServerError_base: Schema.TaggedErrorClass<InternalServerError, "InternalServerError", {
|
|
40
|
-
readonly _tag: Schema.tag<"InternalServerError">;
|
|
41
|
-
} & {
|
|
42
|
-
error: typeof Schema.String;
|
|
43
|
-
details: Schema.optional<typeof Schema.Any>;
|
|
44
|
-
}>;
|
|
45
|
-
declare class InternalServerError extends InternalServerError_base {
|
|
46
|
-
}
|
|
47
|
-
declare const ConflictError_base: Schema.TaggedErrorClass<ConflictError, "ConflictError", {
|
|
48
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
49
|
-
} & {
|
|
50
|
-
error: typeof Schema.String;
|
|
51
|
-
}>;
|
|
52
|
-
declare class ConflictError extends ConflictError_base {
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* PayArk Industrial API Specification.
|
|
56
|
-
* Single source of truth for the entire platform.
|
|
57
|
-
*/
|
|
58
|
-
interface AuthContext {
|
|
59
|
-
readonly project?: {
|
|
60
|
-
readonly id: string;
|
|
61
|
-
};
|
|
62
|
-
readonly user?: {
|
|
63
|
-
readonly id: string;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
declare const AuthContext: Context.Tag<AuthContext, AuthContext>;
|
|
67
|
-
declare const SecurityMiddleware_base: HttpApiMiddleware.TagClass.BaseSecurity<SecurityMiddleware, "SecurityMiddleware", {
|
|
68
|
-
readonly security: {
|
|
69
|
-
readonly bearer: HttpApiSecurity.Bearer;
|
|
70
|
-
};
|
|
71
|
-
readonly provides: Context.Tag<AuthContext, AuthContext>;
|
|
72
|
-
readonly failure: Schema.Union<[typeof AuthenticationError, typeof IndustrialError]>;
|
|
73
|
-
}, {
|
|
74
|
-
readonly bearer: (_: effect_Redacted.Redacted<string>) => effect_Effect.Effect<AuthContext, AuthenticationError | IndustrialError, _effect_platform_HttpRouter.HttpRouter.Provided>;
|
|
75
|
-
}, {
|
|
76
|
-
readonly bearer: HttpApiSecurity.Bearer;
|
|
77
|
-
}>;
|
|
78
|
-
declare class SecurityMiddleware extends SecurityMiddleware_base {
|
|
79
|
-
}
|
|
80
|
-
declare const CronSecurity_base: HttpApiMiddleware.TagClass.BaseSecurity<CronSecurity, "CronSecurity", {
|
|
81
|
-
readonly security: {
|
|
82
|
-
readonly secret: HttpApiSecurity.ApiKey;
|
|
83
|
-
};
|
|
84
|
-
readonly failure: Schema.Union<[typeof AuthenticationError, typeof IndustrialError]>;
|
|
85
|
-
}, {
|
|
86
|
-
readonly secret: (_: effect_Redacted.Redacted<string>) => effect_Effect.Effect<void, AuthenticationError | IndustrialError, _effect_platform_HttpRouter.HttpRouter.Provided>;
|
|
87
|
-
}, {
|
|
88
|
-
readonly secret: HttpApiSecurity.ApiKey;
|
|
89
|
-
}>;
|
|
90
|
-
declare class CronSecurity extends CronSecurity_base {
|
|
91
|
-
}
|
|
92
|
-
declare const UserSecurity_base: HttpApiMiddleware.TagClass.BaseSecurity<UserSecurity, "UserSecurity", {
|
|
93
|
-
readonly security: {
|
|
94
|
-
readonly bearer: HttpApiSecurity.Bearer;
|
|
95
|
-
};
|
|
96
|
-
readonly provides: Context.Tag<AuthContext, AuthContext>;
|
|
97
|
-
readonly failure: Schema.Union<[typeof AuthenticationError, typeof IndustrialError]>;
|
|
98
|
-
}, {
|
|
99
|
-
readonly bearer: (_: effect_Redacted.Redacted<string>) => effect_Effect.Effect<AuthContext, AuthenticationError | IndustrialError, _effect_platform_HttpRouter.HttpRouter.Provided>;
|
|
100
|
-
}, {
|
|
101
|
-
readonly bearer: HttpApiSecurity.Bearer;
|
|
102
|
-
}>;
|
|
103
|
-
declare class UserSecurity extends UserSecurity_base {
|
|
104
|
-
}
|
|
105
|
-
declare const CheckoutGroup: HttpApiGroup.HttpApiGroup<"checkout", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
106
|
-
readonly amount?: (number & effect_Brand.Brand<"MinorUnitsInt">) | undefined;
|
|
107
|
-
readonly currency: string;
|
|
108
|
-
readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
109
|
-
readonly returnUrl: string & effect_Brand.Brand<"UrlString">;
|
|
110
|
-
readonly cancelUrl?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
111
|
-
readonly metadata?: {
|
|
112
|
-
readonly [x: string]: any;
|
|
113
|
-
} | undefined;
|
|
114
|
-
readonly subscriptionId?: (string & effect_Brand.Brand<"SubscriptionId">) | undefined;
|
|
115
|
-
}, never, {
|
|
116
|
-
readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
|
|
117
|
-
readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
|
|
118
|
-
readonly payment_method: {
|
|
119
|
-
readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
120
|
-
readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
121
|
-
readonly method?: "POST" | "GET" | undefined;
|
|
122
|
-
readonly fields?: {
|
|
123
|
-
readonly [x: string]: string;
|
|
124
|
-
} | undefined;
|
|
125
|
-
};
|
|
126
|
-
}, AuthenticationError | InternalServerError | IndustrialError, never, never>, AuthenticationError | IndustrialError, SecurityMiddleware, false>;
|
|
127
|
-
declare const PaymentsGroup: HttpApiGroup.HttpApiGroup<"payments", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
|
|
128
|
-
readonly limit?: number | undefined;
|
|
129
|
-
readonly offset?: number | undefined;
|
|
130
|
-
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
131
|
-
}, never, never, {
|
|
132
|
-
readonly data: readonly {
|
|
133
|
-
readonly id: string & effect_Brand.Brand<"PaymentId">;
|
|
134
|
-
readonly amount: number;
|
|
135
|
-
readonly currency: string;
|
|
136
|
-
readonly status: "pending" | "success" | "failed";
|
|
137
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
138
|
-
readonly provider_ref?: string | null | undefined;
|
|
139
|
-
readonly metadata_json?: {
|
|
140
|
-
readonly [x: string]: any;
|
|
141
|
-
} | null | undefined;
|
|
142
|
-
readonly gateway_response?: any;
|
|
143
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
144
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
145
|
-
}[];
|
|
146
|
-
readonly meta: {
|
|
147
|
-
readonly total: number | null;
|
|
148
|
-
readonly limit: number;
|
|
149
|
-
readonly offset: number;
|
|
150
|
-
};
|
|
151
|
-
}, AuthenticationError | InternalServerError | IndustrialError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
|
|
152
|
-
readonly id: string & effect_Brand.Brand<"Id">;
|
|
153
|
-
}, never, never, never, {
|
|
154
|
-
readonly id: string & effect_Brand.Brand<"PaymentId">;
|
|
155
|
-
readonly amount: number;
|
|
156
|
-
readonly currency: string;
|
|
157
|
-
readonly status: "pending" | "success" | "failed";
|
|
158
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
159
|
-
readonly provider_ref?: string | null | undefined;
|
|
160
|
-
readonly metadata_json?: {
|
|
161
|
-
readonly [x: string]: any;
|
|
162
|
-
} | null | undefined;
|
|
163
|
-
readonly gateway_response?: any;
|
|
164
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
165
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
166
|
-
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError, never, never>, AuthenticationError | IndustrialError, SecurityMiddleware, false>;
|
|
167
|
-
declare const CustomersGroup: HttpApiGroup.HttpApiGroup<"customers", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
168
|
-
readonly metadata?: {
|
|
169
|
-
readonly [x: string]: any;
|
|
170
|
-
} | undefined;
|
|
171
|
-
readonly project_id?: (string & effect_Brand.Brand<"ProjectId">) | 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;
|
|
175
|
-
readonly phone?: string | undefined;
|
|
176
|
-
}, never, {
|
|
177
|
-
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
178
|
-
readonly metadata: {
|
|
179
|
-
readonly [x: string]: any;
|
|
180
|
-
} | null;
|
|
181
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
182
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
183
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
184
|
-
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
185
|
-
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
186
|
-
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
187
|
-
readonly phone: string | null;
|
|
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", {
|
|
214
|
-
readonly id: string & effect_Brand.Brand<"Id">;
|
|
215
|
-
}, never, never, never, {
|
|
216
|
-
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
217
|
-
readonly metadata: {
|
|
218
|
-
readonly [x: string]: any;
|
|
219
|
-
} | null;
|
|
220
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
221
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
222
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
223
|
-
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
224
|
-
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
225
|
-
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
226
|
-
readonly phone: string | null;
|
|
227
|
-
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"update", "PATCH", {
|
|
228
|
-
readonly id: string & effect_Brand.Brand<"Id">;
|
|
229
|
-
}, never, {
|
|
230
|
-
readonly metadata?: {
|
|
231
|
-
readonly [x: string]: any;
|
|
232
|
-
} | undefined;
|
|
233
|
-
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
234
|
-
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
235
|
-
readonly phone?: string | undefined;
|
|
236
|
-
}, never, {
|
|
237
|
-
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
238
|
-
readonly metadata: {
|
|
239
|
-
readonly [x: string]: any;
|
|
240
|
-
} | null;
|
|
241
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
242
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
243
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
244
|
-
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
245
|
-
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
246
|
-
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
247
|
-
readonly phone: string | null;
|
|
248
|
-
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", {
|
|
249
|
-
readonly id: string & effect_Brand.Brand<"Id">;
|
|
250
|
-
}, never, never, never, void, AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError, never, never>, AuthenticationError | IndustrialError, SecurityMiddleware, false>;
|
|
251
|
-
declare const SubscriptionsGroup: HttpApiGroup.HttpApiGroup<"subscriptions", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
252
|
-
readonly amount: number & effect_Brand.Brand<"MinorUnitsInt">;
|
|
253
|
-
readonly currency: string;
|
|
254
|
-
readonly metadata?: {
|
|
255
|
-
readonly [x: string]: any;
|
|
256
|
-
} | undefined;
|
|
257
|
-
readonly project_id?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
258
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
259
|
-
readonly interval: "month" | "year" | "week";
|
|
260
|
-
readonly interval_count?: number | undefined;
|
|
261
|
-
readonly auto_send_link?: boolean | undefined;
|
|
262
|
-
}, never, {
|
|
263
|
-
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
264
|
-
readonly amount: number;
|
|
265
|
-
readonly currency: string;
|
|
266
|
-
readonly metadata?: {
|
|
267
|
-
readonly [x: string]: any;
|
|
268
|
-
} | null | undefined;
|
|
269
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
270
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
271
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
272
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
273
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
274
|
-
readonly interval: "month" | "year" | "week";
|
|
275
|
-
readonly interval_count: number;
|
|
276
|
-
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
277
|
-
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
278
|
-
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
279
|
-
readonly auto_send_link: boolean;
|
|
280
|
-
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
281
|
-
}, AuthenticationError | InternalServerError | IndustrialError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
|
|
282
|
-
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
283
|
-
}, never, never, never, {
|
|
284
|
-
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
285
|
-
readonly amount: number;
|
|
286
|
-
readonly currency: string;
|
|
287
|
-
readonly metadata?: {
|
|
288
|
-
readonly [x: string]: any;
|
|
289
|
-
} | null | undefined;
|
|
290
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
291
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
292
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
293
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
294
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
295
|
-
readonly interval: "month" | "year" | "week";
|
|
296
|
-
readonly interval_count: number;
|
|
297
|
-
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
298
|
-
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
299
|
-
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
300
|
-
readonly auto_send_link: boolean;
|
|
301
|
-
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
302
|
-
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
|
|
303
|
-
readonly status?: "active" | "past_due" | "canceled" | "paused" | undefined;
|
|
304
|
-
readonly limit?: number | undefined;
|
|
305
|
-
readonly offset?: number | undefined;
|
|
306
|
-
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
307
|
-
readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
|
|
308
|
-
}, never, never, {
|
|
309
|
-
readonly data: readonly {
|
|
310
|
-
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
311
|
-
readonly amount: number;
|
|
312
|
-
readonly currency: string;
|
|
313
|
-
readonly metadata?: {
|
|
314
|
-
readonly [x: string]: any;
|
|
315
|
-
} | null | undefined;
|
|
316
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
317
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
318
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
319
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
320
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
321
|
-
readonly interval: "month" | "year" | "week";
|
|
322
|
-
readonly interval_count: number;
|
|
323
|
-
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
324
|
-
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
325
|
-
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
326
|
-
readonly auto_send_link: boolean;
|
|
327
|
-
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
328
|
-
}[];
|
|
329
|
-
readonly meta: {
|
|
330
|
-
readonly total: number | null;
|
|
331
|
-
readonly limit: number;
|
|
332
|
-
readonly offset: number;
|
|
333
|
-
};
|
|
334
|
-
}, AuthenticationError | InternalServerError | IndustrialError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", {
|
|
335
|
-
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
336
|
-
}, never, never, never, {
|
|
337
|
-
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
338
|
-
readonly amount: number;
|
|
339
|
-
readonly currency: string;
|
|
340
|
-
readonly metadata?: {
|
|
341
|
-
readonly [x: string]: any;
|
|
342
|
-
} | null | undefined;
|
|
343
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
344
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
345
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
346
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
347
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
348
|
-
readonly interval: "month" | "year" | "week";
|
|
349
|
-
readonly interval_count: number;
|
|
350
|
-
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
351
|
-
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
352
|
-
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
353
|
-
readonly auto_send_link: boolean;
|
|
354
|
-
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
355
|
-
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"activate", "POST", {
|
|
356
|
-
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
357
|
-
}, never, {
|
|
358
|
-
readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
359
|
-
readonly returnUrl: string;
|
|
360
|
-
readonly cancelUrl?: string | undefined;
|
|
361
|
-
}, never, {
|
|
362
|
-
readonly checkout_url: string;
|
|
363
|
-
readonly payment_id: string;
|
|
364
|
-
}, InternalServerError | IndustrialError | NotFoundError, never, never>, never, never, false>;
|
|
365
|
-
declare const AutomationGroup: HttpApiGroup.HttpApiGroup<"automation", HttpApiEndpoint.HttpApiEndpoint<"reminders", "POST", never, never, never, never, {
|
|
366
|
-
readonly message: string;
|
|
367
|
-
readonly count: number;
|
|
368
|
-
}, InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"reaper", "POST", never, never, never, never, {
|
|
369
|
-
readonly message: string;
|
|
370
|
-
readonly count: number;
|
|
371
|
-
}, InternalServerError, never, never>, AuthenticationError | IndustrialError, CronSecurity, false>;
|
|
372
|
-
declare const TokensGroup: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
373
|
-
readonly name: string;
|
|
374
|
-
readonly scopes: readonly string[];
|
|
375
|
-
readonly expires_in_days?: number | undefined;
|
|
376
|
-
}, never, {
|
|
377
|
-
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
378
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
379
|
-
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
380
|
-
readonly scopes: readonly string[];
|
|
381
|
-
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
382
|
-
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
383
|
-
readonly token: string;
|
|
384
|
-
}, AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, readonly {
|
|
385
|
-
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
386
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
387
|
-
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
388
|
-
readonly scopes: readonly string[];
|
|
389
|
-
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
390
|
-
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
391
|
-
}[], AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", {
|
|
392
|
-
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
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>;
|
|
418
|
-
declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<"checkout", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
419
|
-
readonly amount?: (number & effect_Brand.Brand<"MinorUnitsInt">) | undefined;
|
|
420
|
-
readonly currency: string;
|
|
421
|
-
readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
422
|
-
readonly returnUrl: string & effect_Brand.Brand<"UrlString">;
|
|
423
|
-
readonly cancelUrl?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
424
|
-
readonly metadata?: {
|
|
425
|
-
readonly [x: string]: any;
|
|
426
|
-
} | undefined;
|
|
427
|
-
readonly subscriptionId?: (string & effect_Brand.Brand<"SubscriptionId">) | undefined;
|
|
428
|
-
}, never, {
|
|
429
|
-
readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
|
|
430
|
-
readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
|
|
431
|
-
readonly payment_method: {
|
|
432
|
-
readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
433
|
-
readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
434
|
-
readonly method?: "POST" | "GET" | undefined;
|
|
435
|
-
readonly fields?: {
|
|
436
|
-
readonly [x: string]: string;
|
|
437
|
-
} | undefined;
|
|
438
|
-
};
|
|
439
|
-
}, AuthenticationError | InternalServerError | IndustrialError, never, never>, AuthenticationError | IndustrialError, SecurityMiddleware, false> | HttpApiGroup.HttpApiGroup<"payments", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
|
|
440
|
-
readonly limit?: number | undefined;
|
|
441
|
-
readonly offset?: number | undefined;
|
|
442
|
-
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
443
|
-
}, never, never, {
|
|
444
|
-
readonly data: readonly {
|
|
445
|
-
readonly id: string & effect_Brand.Brand<"PaymentId">;
|
|
446
|
-
readonly amount: number;
|
|
447
|
-
readonly currency: string;
|
|
448
|
-
readonly status: "pending" | "success" | "failed";
|
|
449
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
450
|
-
readonly provider_ref?: string | null | undefined;
|
|
451
|
-
readonly metadata_json?: {
|
|
452
|
-
readonly [x: string]: any;
|
|
453
|
-
} | null | undefined;
|
|
454
|
-
readonly gateway_response?: any;
|
|
455
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
456
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
457
|
-
}[];
|
|
458
|
-
readonly meta: {
|
|
459
|
-
readonly total: number | null;
|
|
460
|
-
readonly limit: number;
|
|
461
|
-
readonly offset: number;
|
|
462
|
-
};
|
|
463
|
-
}, AuthenticationError | InternalServerError | IndustrialError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
|
|
464
|
-
readonly id: string & effect_Brand.Brand<"Id">;
|
|
465
|
-
}, never, never, never, {
|
|
466
|
-
readonly id: string & effect_Brand.Brand<"PaymentId">;
|
|
467
|
-
readonly amount: number;
|
|
468
|
-
readonly currency: string;
|
|
469
|
-
readonly status: "pending" | "success" | "failed";
|
|
470
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
471
|
-
readonly provider_ref?: string | null | undefined;
|
|
472
|
-
readonly metadata_json?: {
|
|
473
|
-
readonly [x: string]: any;
|
|
474
|
-
} | null | undefined;
|
|
475
|
-
readonly gateway_response?: any;
|
|
476
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
477
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
478
|
-
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError, never, never>, AuthenticationError | IndustrialError, SecurityMiddleware, false> | HttpApiGroup.HttpApiGroup<"customers", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
479
|
-
readonly metadata?: {
|
|
480
|
-
readonly [x: string]: any;
|
|
481
|
-
} | undefined;
|
|
482
|
-
readonly project_id?: (string & effect_Brand.Brand<"ProjectId">) | 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;
|
|
486
|
-
readonly phone?: string | undefined;
|
|
487
|
-
}, never, {
|
|
488
|
-
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
489
|
-
readonly metadata: {
|
|
490
|
-
readonly [x: string]: any;
|
|
491
|
-
} | null;
|
|
492
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
493
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
494
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
495
|
-
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
496
|
-
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
497
|
-
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
498
|
-
readonly phone: string | null;
|
|
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", {
|
|
525
|
-
readonly id: string & effect_Brand.Brand<"Id">;
|
|
526
|
-
}, never, never, never, {
|
|
527
|
-
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
528
|
-
readonly metadata: {
|
|
529
|
-
readonly [x: string]: any;
|
|
530
|
-
} | null;
|
|
531
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
532
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
533
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
534
|
-
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
535
|
-
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
536
|
-
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
537
|
-
readonly phone: string | null;
|
|
538
|
-
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"update", "PATCH", {
|
|
539
|
-
readonly id: string & effect_Brand.Brand<"Id">;
|
|
540
|
-
}, never, {
|
|
541
|
-
readonly metadata?: {
|
|
542
|
-
readonly [x: string]: any;
|
|
543
|
-
} | undefined;
|
|
544
|
-
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
545
|
-
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
546
|
-
readonly phone?: string | undefined;
|
|
547
|
-
}, never, {
|
|
548
|
-
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
549
|
-
readonly metadata: {
|
|
550
|
-
readonly [x: string]: any;
|
|
551
|
-
} | null;
|
|
552
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
553
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
554
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
555
|
-
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
556
|
-
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
557
|
-
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
558
|
-
readonly phone: string | null;
|
|
559
|
-
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", {
|
|
560
|
-
readonly id: string & effect_Brand.Brand<"Id">;
|
|
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, {
|
|
562
|
-
readonly amount: number & effect_Brand.Brand<"MinorUnitsInt">;
|
|
563
|
-
readonly currency: string;
|
|
564
|
-
readonly metadata?: {
|
|
565
|
-
readonly [x: string]: any;
|
|
566
|
-
} | undefined;
|
|
567
|
-
readonly project_id?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
568
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
569
|
-
readonly interval: "month" | "year" | "week";
|
|
570
|
-
readonly interval_count?: number | undefined;
|
|
571
|
-
readonly auto_send_link?: boolean | undefined;
|
|
572
|
-
}, never, {
|
|
573
|
-
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
574
|
-
readonly amount: number;
|
|
575
|
-
readonly currency: string;
|
|
576
|
-
readonly metadata?: {
|
|
577
|
-
readonly [x: string]: any;
|
|
578
|
-
} | null | undefined;
|
|
579
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
580
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
581
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
582
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
583
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
584
|
-
readonly interval: "month" | "year" | "week";
|
|
585
|
-
readonly interval_count: number;
|
|
586
|
-
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
587
|
-
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
588
|
-
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
589
|
-
readonly auto_send_link: boolean;
|
|
590
|
-
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
591
|
-
}, AuthenticationError | InternalServerError | IndustrialError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
|
|
592
|
-
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
593
|
-
}, never, never, never, {
|
|
594
|
-
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
595
|
-
readonly amount: number;
|
|
596
|
-
readonly currency: string;
|
|
597
|
-
readonly metadata?: {
|
|
598
|
-
readonly [x: string]: any;
|
|
599
|
-
} | null | undefined;
|
|
600
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
601
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
602
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
603
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
604
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
605
|
-
readonly interval: "month" | "year" | "week";
|
|
606
|
-
readonly interval_count: number;
|
|
607
|
-
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
608
|
-
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
609
|
-
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
610
|
-
readonly auto_send_link: boolean;
|
|
611
|
-
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
612
|
-
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
|
|
613
|
-
readonly status?: "active" | "past_due" | "canceled" | "paused" | undefined;
|
|
614
|
-
readonly limit?: number | undefined;
|
|
615
|
-
readonly offset?: number | undefined;
|
|
616
|
-
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
617
|
-
readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
|
|
618
|
-
}, never, never, {
|
|
619
|
-
readonly data: readonly {
|
|
620
|
-
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
621
|
-
readonly amount: number;
|
|
622
|
-
readonly currency: string;
|
|
623
|
-
readonly metadata?: {
|
|
624
|
-
readonly [x: string]: any;
|
|
625
|
-
} | null | undefined;
|
|
626
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
627
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
628
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
629
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
630
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
631
|
-
readonly interval: "month" | "year" | "week";
|
|
632
|
-
readonly interval_count: number;
|
|
633
|
-
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
634
|
-
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
635
|
-
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
636
|
-
readonly auto_send_link: boolean;
|
|
637
|
-
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
638
|
-
}[];
|
|
639
|
-
readonly meta: {
|
|
640
|
-
readonly total: number | null;
|
|
641
|
-
readonly limit: number;
|
|
642
|
-
readonly offset: number;
|
|
643
|
-
};
|
|
644
|
-
}, AuthenticationError | InternalServerError | IndustrialError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", {
|
|
645
|
-
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
646
|
-
}, never, never, never, {
|
|
647
|
-
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
648
|
-
readonly amount: number;
|
|
649
|
-
readonly currency: string;
|
|
650
|
-
readonly metadata?: {
|
|
651
|
-
readonly [x: string]: any;
|
|
652
|
-
} | null | undefined;
|
|
653
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
654
|
-
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
655
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
656
|
-
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
657
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
658
|
-
readonly interval: "month" | "year" | "week";
|
|
659
|
-
readonly interval_count: number;
|
|
660
|
-
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
661
|
-
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
662
|
-
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
663
|
-
readonly auto_send_link: boolean;
|
|
664
|
-
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
665
|
-
}, AuthenticationError | InternalServerError | IndustrialError | NotFoundError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"activate", "POST", {
|
|
666
|
-
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
667
|
-
}, never, {
|
|
668
|
-
readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
669
|
-
readonly returnUrl: string;
|
|
670
|
-
readonly cancelUrl?: string | undefined;
|
|
671
|
-
}, never, {
|
|
672
|
-
readonly checkout_url: string;
|
|
673
|
-
readonly payment_id: string;
|
|
674
|
-
}, InternalServerError | IndustrialError | NotFoundError, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"automation", HttpApiEndpoint.HttpApiEndpoint<"reminders", "POST", never, never, never, never, {
|
|
675
|
-
readonly message: string;
|
|
676
|
-
readonly count: number;
|
|
677
|
-
}, InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"reaper", "POST", never, never, never, never, {
|
|
678
|
-
readonly message: string;
|
|
679
|
-
readonly count: number;
|
|
680
|
-
}, InternalServerError, never, never>, AuthenticationError | IndustrialError, CronSecurity, false> | HttpApiGroup.HttpApiGroup<"tokens", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
681
|
-
readonly name: string;
|
|
682
|
-
readonly scopes: readonly string[];
|
|
683
|
-
readonly expires_in_days?: number | undefined;
|
|
684
|
-
}, never, {
|
|
685
|
-
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
686
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
687
|
-
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
688
|
-
readonly scopes: readonly string[];
|
|
689
|
-
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
690
|
-
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
691
|
-
readonly token: string;
|
|
692
|
-
}, AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, readonly {
|
|
693
|
-
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
694
|
-
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
695
|
-
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
696
|
-
readonly scopes: readonly string[];
|
|
697
|
-
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
698
|
-
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
699
|
-
}[], AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", {
|
|
700
|
-
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
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>;
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* ── Branded Types ──
|
|
726
|
-
*/
|
|
727
|
-
declare const Id: Schema.brand<typeof Schema.String, "Id">;
|
|
728
|
-
type Id = Schema.Schema.Type<typeof Id>;
|
|
729
|
-
declare const ProjectId: Schema.brand<typeof Schema.String, "ProjectId">;
|
|
730
|
-
type ProjectId = Schema.Schema.Type<typeof ProjectId>;
|
|
731
|
-
declare const PaymentId: Schema.brand<typeof Schema.String, "PaymentId">;
|
|
732
|
-
type PaymentId = Schema.Schema.Type<typeof PaymentId>;
|
|
733
|
-
declare const CheckoutSessionId: Schema.brand<typeof Schema.String, "CheckoutSessionId">;
|
|
734
|
-
type CheckoutSessionId = Schema.Schema.Type<typeof CheckoutSessionId>;
|
|
735
|
-
declare const SubscriptionId: Schema.brand<typeof Schema.String, "SubscriptionId">;
|
|
736
|
-
type SubscriptionId = Schema.Schema.Type<typeof SubscriptionId>;
|
|
737
|
-
declare const CustomerId: Schema.brand<typeof Schema.String, "CustomerId">;
|
|
738
|
-
type CustomerId = Schema.Schema.Type<typeof CustomerId>;
|
|
739
|
-
declare const TokenId: Schema.brand<typeof Schema.String, "TokenId">;
|
|
740
|
-
type TokenId = Schema.Schema.Type<typeof TokenId>;
|
|
741
|
-
/**
|
|
742
|
-
* ── Atomic Atoms ──
|
|
743
|
-
*/
|
|
744
|
-
declare const Email: Schema.brand<Schema.filter<typeof Schema.String>, "Email">;
|
|
745
|
-
type Email = Schema.Schema.Type<typeof Email>;
|
|
746
|
-
declare const Timestamp: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
747
|
-
type Timestamp = Schema.Schema.Type<typeof Timestamp>;
|
|
748
|
-
declare const Metadata: Schema.Record$<typeof Schema.String, typeof Schema.Any>;
|
|
749
|
-
type Metadata = Schema.Schema.Type<typeof Metadata>;
|
|
750
|
-
declare const Timestamps: Schema.Struct<{
|
|
751
|
-
created_at: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
752
|
-
updated_at: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
753
|
-
}>;
|
|
754
|
-
type Timestamps = Schema.Schema.Type<typeof Timestamps>;
|
|
755
|
-
/**
|
|
756
|
-
* ── Enums ──
|
|
757
|
-
*/
|
|
758
|
-
declare const Provider: Schema.Literal<["esewa", "khalti", "connectips", "imepay", "fonepay", "sandbox"]>;
|
|
759
|
-
type Provider = Schema.Schema.Type<typeof Provider>;
|
|
760
|
-
declare const PaymentStatus: Schema.Literal<["pending", "success", "failed"]>;
|
|
761
|
-
type PaymentStatus = Schema.Schema.Type<typeof PaymentStatus>;
|
|
762
|
-
declare const SubscriptionStatus: Schema.Literal<["active", "past_due", "canceled", "paused"]>;
|
|
763
|
-
type SubscriptionStatus = Schema.Schema.Type<typeof SubscriptionStatus>;
|
|
764
|
-
declare const SubscriptionInterval: Schema.Literal<["month", "year", "week"]>;
|
|
765
|
-
type SubscriptionInterval = Schema.Schema.Type<typeof SubscriptionInterval>;
|
|
766
|
-
/**
|
|
767
|
-
* ── Models ──
|
|
768
|
-
*/
|
|
769
|
-
declare const Customer: Schema.Struct<{
|
|
770
|
-
id: Schema.brand<typeof Schema.String, "CustomerId">;
|
|
771
|
-
merchant_customer_id: Schema.brand<Schema.filter<typeof Schema.String>, "NonEmptyString">;
|
|
772
|
-
email: Schema.NullOr<Schema.brand<Schema.filter<typeof Schema.String>, "Email">>;
|
|
773
|
-
name: Schema.NullOr<Schema.brand<Schema.filter<typeof Schema.String>, "NonEmptyString">>;
|
|
774
|
-
phone: Schema.NullOr<typeof Schema.String>;
|
|
775
|
-
project_id: Schema.brand<typeof Schema.String, "ProjectId">;
|
|
776
|
-
metadata: Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
777
|
-
created_at: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
778
|
-
updated_at: Schema.optional<Schema.brand<typeof Schema.String, "Timestamp">>;
|
|
779
|
-
}>;
|
|
780
|
-
type Customer = Schema.Schema.Type<typeof Customer>;
|
|
781
|
-
declare const Payment: Schema.Struct<{
|
|
782
|
-
id: Schema.brand<typeof Schema.String, "PaymentId">;
|
|
783
|
-
project_id: Schema.brand<typeof Schema.String, "ProjectId">;
|
|
784
|
-
amount: typeof Schema.Number;
|
|
785
|
-
currency: typeof Schema.String;
|
|
786
|
-
status: Schema.Literal<["pending", "success", "failed"]>;
|
|
787
|
-
provider_ref: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
788
|
-
metadata_json: Schema.optional<Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
|
|
789
|
-
gateway_response: Schema.optional<Schema.NullOr<typeof Schema.Any>>;
|
|
790
|
-
created_at: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
791
|
-
updated_at: Schema.optional<Schema.brand<typeof Schema.String, "Timestamp">>;
|
|
792
|
-
}>;
|
|
793
|
-
type Payment = Schema.Schema.Type<typeof Payment>;
|
|
794
|
-
declare const Subscription: Schema.Struct<{
|
|
795
|
-
id: Schema.brand<typeof Schema.String, "SubscriptionId">;
|
|
796
|
-
project_id: Schema.brand<typeof Schema.String, "ProjectId">;
|
|
797
|
-
customer_id: Schema.brand<typeof Schema.String, "CustomerId">;
|
|
798
|
-
status: Schema.Literal<["active", "past_due", "canceled", "paused"]>;
|
|
799
|
-
amount: typeof Schema.Number;
|
|
800
|
-
currency: typeof Schema.String;
|
|
801
|
-
interval: Schema.Literal<["month", "year", "week"]>;
|
|
802
|
-
interval_count: typeof Schema.Number;
|
|
803
|
-
current_period_start: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
804
|
-
current_period_end: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
805
|
-
payment_link: Schema.brand<Schema.filter<typeof Schema.String>, "UrlString">;
|
|
806
|
-
auto_send_link: typeof Schema.Boolean;
|
|
807
|
-
metadata: Schema.optional<Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
|
|
808
|
-
canceled_at: Schema.optional<Schema.NullOr<Schema.brand<typeof Schema.String, "Timestamp">>>;
|
|
809
|
-
created_at: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
810
|
-
updated_at: Schema.optional<Schema.brand<typeof Schema.String, "Timestamp">>;
|
|
811
|
-
}>;
|
|
812
|
-
type Subscription = Schema.Schema.Type<typeof Subscription>;
|
|
813
|
-
declare const Project: Schema.Struct<{
|
|
814
|
-
id: Schema.brand<typeof Schema.String, "ProjectId">;
|
|
815
|
-
name: Schema.brand<Schema.filter<typeof Schema.String>, "NonEmptyString">;
|
|
816
|
-
api_key_secret: typeof Schema.String;
|
|
817
|
-
created_at: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
818
|
-
}>;
|
|
819
|
-
type Project = Schema.Schema.Type<typeof Project>;
|
|
820
|
-
declare const Token: Schema.Struct<{
|
|
821
|
-
id: Schema.brand<typeof Schema.String, "TokenId">;
|
|
822
|
-
name: Schema.brand<Schema.filter<typeof Schema.String>, "NonEmptyString">;
|
|
823
|
-
scopes: Schema.Array$<typeof Schema.String>;
|
|
824
|
-
last_used_at: Schema.NullOr<Schema.brand<typeof Schema.String, "Timestamp">>;
|
|
825
|
-
expires_at: Schema.NullOr<Schema.brand<typeof Schema.String, "Timestamp">>;
|
|
826
|
-
created_at: Schema.brand<typeof Schema.String, "Timestamp">;
|
|
827
|
-
}>;
|
|
828
|
-
type Token = Schema.Schema.Type<typeof Token>;
|
|
829
|
-
/**
|
|
830
|
-
* ── Pagination ──
|
|
831
|
-
*/
|
|
832
|
-
declare const PaginationMeta: Schema.Struct<{
|
|
833
|
-
total: Schema.NullOr<typeof Schema.Number>;
|
|
834
|
-
limit: typeof Schema.Number;
|
|
835
|
-
offset: typeof Schema.Number;
|
|
836
|
-
}>;
|
|
837
|
-
type PaginationMeta = Schema.Schema.Type<typeof PaginationMeta>;
|
|
838
|
-
declare const PaginatedResponse: <A, I, R>(schema: Schema.Schema<A, I, R>) => Schema.Struct<{
|
|
839
|
-
data: Schema.Array$<Schema.Schema<A, I, R>>;
|
|
840
|
-
meta: Schema.Struct<{
|
|
841
|
-
total: Schema.NullOr<typeof Schema.Number>;
|
|
842
|
-
limit: typeof Schema.Number;
|
|
843
|
-
offset: typeof Schema.Number;
|
|
844
|
-
}>;
|
|
845
|
-
}>;
|
|
846
|
-
interface PaginatedResponse<T> {
|
|
847
|
-
readonly data: readonly T[];
|
|
848
|
-
readonly meta: PaginationMeta;
|
|
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>;
|
|
907
|
-
/**
|
|
908
|
-
* ── Params & Inputs ──
|
|
909
|
-
*/
|
|
910
|
-
declare const CreateCheckoutParams: Schema.filter<Schema.Struct<{
|
|
911
|
-
amount: Schema.optional<Schema.brand<Schema.filter<Schema.filter<typeof Schema.Number>>, "MinorUnitsInt">>;
|
|
912
|
-
currency: Schema.optionalWith<typeof Schema.String, {
|
|
913
|
-
default: () => string;
|
|
914
|
-
}>;
|
|
915
|
-
provider: Schema.Literal<["esewa", "khalti", "connectips", "imepay", "fonepay", "sandbox"]>;
|
|
916
|
-
returnUrl: Schema.brand<Schema.filter<typeof Schema.String>, "UrlString">;
|
|
917
|
-
cancelUrl: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "UrlString">>;
|
|
918
|
-
metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
919
|
-
subscriptionId: Schema.optional<Schema.brand<typeof Schema.String, "SubscriptionId">>;
|
|
920
|
-
}>>;
|
|
921
|
-
type CreateCheckoutParams = Schema.Schema.Type<typeof CreateCheckoutParams>;
|
|
922
|
-
declare const CheckoutSession: Schema.Struct<{
|
|
923
|
-
id: Schema.brand<typeof Schema.String, "CheckoutSessionId">;
|
|
924
|
-
checkout_url: Schema.brand<Schema.filter<typeof Schema.String>, "UrlString">;
|
|
925
|
-
payment_method: Schema.Struct<{
|
|
926
|
-
type: Schema.Literal<["esewa", "khalti", "connectips", "imepay", "fonepay", "sandbox"]>;
|
|
927
|
-
url: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "UrlString">>;
|
|
928
|
-
method: Schema.optional<Schema.Literal<["GET", "POST"]>>;
|
|
929
|
-
fields: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
930
|
-
}>;
|
|
931
|
-
}>;
|
|
932
|
-
type CheckoutSession = Schema.Schema.Type<typeof CheckoutSession>;
|
|
933
|
-
declare const CreateCustomerParams: Schema.Struct<{
|
|
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">>;
|
|
937
|
-
phone: Schema.optional<typeof Schema.String>;
|
|
938
|
-
project_id: Schema.optional<Schema.brand<typeof Schema.String, "ProjectId">>;
|
|
939
|
-
metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
940
|
-
}>;
|
|
941
|
-
type CreateCustomerParams = Schema.Schema.Type<typeof CreateCustomerParams>;
|
|
942
|
-
declare const ListPaymentsParams: Schema.Struct<{
|
|
943
|
-
limit: Schema.optional<typeof Schema.NumberFromString>;
|
|
944
|
-
offset: Schema.optional<typeof Schema.NumberFromString>;
|
|
945
|
-
projectId: Schema.optional<Schema.brand<typeof Schema.String, "ProjectId">>;
|
|
946
|
-
}>;
|
|
947
|
-
type ListPaymentsParams = Schema.Schema.Type<typeof ListPaymentsParams>;
|
|
948
|
-
declare const ListCustomersParams: Schema.Struct<{
|
|
949
|
-
limit: Schema.optional<typeof Schema.NumberFromString>;
|
|
950
|
-
offset: Schema.optional<typeof Schema.NumberFromString>;
|
|
951
|
-
email: Schema.optional<typeof Schema.String>;
|
|
952
|
-
merchant_customer_id: Schema.optional<typeof Schema.String>;
|
|
953
|
-
projectId: Schema.optional<Schema.brand<typeof Schema.String, "ProjectId">>;
|
|
954
|
-
}>;
|
|
955
|
-
type ListCustomersParams = Schema.Schema.Type<typeof ListCustomersParams>;
|
|
956
|
-
declare const UpdateCustomerParams: Schema.Struct<{
|
|
957
|
-
email: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "Email">>;
|
|
958
|
-
name: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "NonEmptyString">>;
|
|
959
|
-
phone: Schema.optional<typeof Schema.String>;
|
|
960
|
-
metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
961
|
-
}>;
|
|
962
|
-
type UpdateCustomerParams = Schema.Schema.Type<typeof UpdateCustomerParams>;
|
|
963
|
-
declare const CreateSubscriptionParams: Schema.Struct<{
|
|
964
|
-
customer_id: Schema.brand<typeof Schema.String, "CustomerId">;
|
|
965
|
-
amount: Schema.brand<Schema.filter<Schema.filter<typeof Schema.Number>>, "MinorUnitsInt">;
|
|
966
|
-
currency: Schema.optionalWith<typeof Schema.String, {
|
|
967
|
-
default: () => string;
|
|
968
|
-
}>;
|
|
969
|
-
interval: Schema.Literal<["month", "year", "week"]>;
|
|
970
|
-
interval_count: Schema.optional<typeof Schema.Number>;
|
|
971
|
-
project_id: Schema.optional<Schema.brand<typeof Schema.String, "ProjectId">>;
|
|
972
|
-
auto_send_link: Schema.optional<typeof Schema.Boolean>;
|
|
973
|
-
metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
974
|
-
}>;
|
|
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>;
|
|
982
|
-
declare const ListSubscriptionsParams: Schema.Struct<{
|
|
983
|
-
limit: Schema.optional<typeof Schema.NumberFromString>;
|
|
984
|
-
offset: Schema.optional<typeof Schema.NumberFromString>;
|
|
985
|
-
projectId: Schema.optional<Schema.brand<typeof Schema.String, "ProjectId">>;
|
|
986
|
-
customerId: Schema.optional<Schema.brand<typeof Schema.String, "CustomerId">>;
|
|
987
|
-
status: Schema.optional<Schema.Literal<["active", "past_due", "canceled", "paused"]>>;
|
|
988
|
-
}>;
|
|
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>;
|
|
995
|
-
/**
|
|
996
|
-
* ── Client Config ──
|
|
997
|
-
*/
|
|
998
|
-
declare const PayArkConfig: Schema.Struct<{
|
|
999
|
-
apiKey: typeof Schema.String;
|
|
1000
|
-
baseUrl: Schema.optional<typeof Schema.String>;
|
|
1001
|
-
timeout: Schema.optional<typeof Schema.Number>;
|
|
1002
|
-
maxRetries: Schema.optional<typeof Schema.Number>;
|
|
1003
|
-
sandbox: Schema.optional<typeof Schema.Boolean>;
|
|
1004
|
-
}>;
|
|
1005
|
-
type PayArkConfig = Schema.Schema.Type<typeof PayArkConfig>;
|
|
1006
|
-
/**
|
|
1007
|
-
* ── Error Schemas ──
|
|
1008
|
-
*/
|
|
1009
|
-
declare const PayArkErrorBody$1: Schema.Struct<{
|
|
1010
|
-
error: typeof Schema.String;
|
|
1011
|
-
details: Schema.optional<typeof Schema.Any>;
|
|
1012
|
-
}>;
|
|
1013
|
-
type PayArkErrorBody$1 = Schema.Schema.Type<typeof PayArkErrorBody$1>;
|
|
14
|
+
import 'effect/Effect';
|
|
15
|
+
import '@effect/platform/HttpRouter';
|
|
16
|
+
import 'effect/Redacted';
|
|
1014
17
|
|
|
1015
18
|
/** Machine-readable error codes. */
|
|
1016
19
|
type PayArkErrorCode = "authentication_error" | "permission_error" | "invalid_request_error" | "not_found_error" | "rate_limit_error" | "api_error" | "connection_error" | "unknown_error";
|
|
@@ -1031,10 +34,40 @@ declare class PayArkEffectError extends PayArkEffectError_base<{
|
|
|
1031
34
|
readonly statusCode: number;
|
|
1032
35
|
readonly code: PayArkErrorCode;
|
|
1033
36
|
readonly raw?: PayArkErrorBody;
|
|
37
|
+
readonly localizedMessage?: string;
|
|
1034
38
|
}> {
|
|
1035
39
|
/** Human-readable representation for logging/debugging. */
|
|
1036
40
|
toString(): string;
|
|
1037
41
|
}
|
|
42
|
+
declare const MandateViolationError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
43
|
+
readonly _tag: "MandateViolationError";
|
|
44
|
+
} & Readonly<A>;
|
|
45
|
+
/**
|
|
46
|
+
* Thrown when a transaction violates the bounds of an Intent Mandate.
|
|
47
|
+
* (e.g., amount too high, vendor not permitted, status already consumed)
|
|
48
|
+
*/
|
|
49
|
+
declare class MandateViolationError extends MandateViolationError_base<{
|
|
50
|
+
readonly message: string;
|
|
51
|
+
readonly mandateId?: string;
|
|
52
|
+
readonly raw?: any;
|
|
53
|
+
}> {
|
|
54
|
+
readonly statusCode = 403;
|
|
55
|
+
readonly code = "mandate_violation";
|
|
56
|
+
}
|
|
57
|
+
declare const MandateExpiredError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
58
|
+
readonly _tag: "MandateExpiredError";
|
|
59
|
+
} & Readonly<A>;
|
|
60
|
+
/**
|
|
61
|
+
* Thrown when a mandate is presented outside of its valid time window.
|
|
62
|
+
*/
|
|
63
|
+
declare class MandateExpiredError extends MandateExpiredError_base<{
|
|
64
|
+
readonly message: string;
|
|
65
|
+
readonly mandateId: string;
|
|
66
|
+
readonly expiredAt: string;
|
|
67
|
+
}> {
|
|
68
|
+
readonly statusCode = 410;
|
|
69
|
+
readonly code = "mandate_expired";
|
|
70
|
+
}
|
|
1038
71
|
|
|
1039
72
|
/**
|
|
1040
73
|
* Effect-based resource for PayArk Checkout.
|
|
@@ -1087,6 +120,162 @@ declare class ProjectsEffect {
|
|
|
1087
120
|
list(): Effect.Effect<readonly Project[], PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
1088
121
|
}
|
|
1089
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Effect-based resource for PayArk Customers.
|
|
125
|
+
*/
|
|
126
|
+
declare class CustomersEffect {
|
|
127
|
+
private readonly config;
|
|
128
|
+
constructor(config: PayArkConfig);
|
|
129
|
+
/**
|
|
130
|
+
* Create a new customer for a project.
|
|
131
|
+
*/
|
|
132
|
+
create(params: CreateCustomerParams): Effect.Effect<Customer, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
133
|
+
/**
|
|
134
|
+
* List customers for the authenticated project.
|
|
135
|
+
*/
|
|
136
|
+
list(params?: ListCustomersParams): Effect.Effect<PaginatedResponse<Customer>, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
137
|
+
/**
|
|
138
|
+
* Retrieve a single customer by ID.
|
|
139
|
+
*/
|
|
140
|
+
retrieve(id: string): Effect.Effect<Customer, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
141
|
+
/**
|
|
142
|
+
* Update a customer.
|
|
143
|
+
*/
|
|
144
|
+
update(id: string, params: UpdateCustomerParams): Effect.Effect<Customer, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
145
|
+
/**
|
|
146
|
+
* Delete a customer.
|
|
147
|
+
*/
|
|
148
|
+
delete(id: string): Effect.Effect<void, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Effect-based resource for PayArk Subscriptions.
|
|
153
|
+
*/
|
|
154
|
+
declare class SubscriptionsEffect {
|
|
155
|
+
private readonly config;
|
|
156
|
+
constructor(config: PayArkConfig);
|
|
157
|
+
/**
|
|
158
|
+
* Create a new subscription.
|
|
159
|
+
*/
|
|
160
|
+
create(params: CreateSubscriptionParams): Effect.Effect<Subscription, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
161
|
+
/**
|
|
162
|
+
* List subscriptions for the authenticated project.
|
|
163
|
+
*/
|
|
164
|
+
list(params?: ListSubscriptionsParams): Effect.Effect<PaginatedResponse<Subscription>, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
165
|
+
/**
|
|
166
|
+
* Retrieve a single subscription by ID.
|
|
167
|
+
*/
|
|
168
|
+
retrieve(id: string): Effect.Effect<Subscription, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
169
|
+
/**
|
|
170
|
+
* Cancel a subscription.
|
|
171
|
+
*/
|
|
172
|
+
cancel(id: string): Effect.Effect<Subscription, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
173
|
+
/**
|
|
174
|
+
* Activate a subscription (returns payment info).
|
|
175
|
+
*/
|
|
176
|
+
activate(id: string, params: {
|
|
177
|
+
provider: string;
|
|
178
|
+
returnUrl: string;
|
|
179
|
+
cancelUrl?: string;
|
|
180
|
+
}): Effect.Effect<{
|
|
181
|
+
checkout_url: string;
|
|
182
|
+
payment_id: string;
|
|
183
|
+
}, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Effect-based resource for PayArk Mandates.
|
|
188
|
+
*/
|
|
189
|
+
declare class MandatesEffect {
|
|
190
|
+
private readonly config;
|
|
191
|
+
constructor(config: PayArkConfig);
|
|
192
|
+
/**
|
|
193
|
+
* Register a mandate intent.
|
|
194
|
+
*/
|
|
195
|
+
registerIntent(params: {
|
|
196
|
+
principal_id: string;
|
|
197
|
+
max_amount: number;
|
|
198
|
+
currency: string;
|
|
199
|
+
valid_until: string;
|
|
200
|
+
permitted_vendors?: string[];
|
|
201
|
+
credential_jwt: string;
|
|
202
|
+
public_key: string;
|
|
203
|
+
customer_id?: string;
|
|
204
|
+
}): Effect.Effect<Mandate, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
205
|
+
/**
|
|
206
|
+
* Retrieve a mandate.
|
|
207
|
+
*/
|
|
208
|
+
retrieve(id: string): Effect.Effect<Mandate, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Effect-based resource for PayArk Tokens.
|
|
213
|
+
*/
|
|
214
|
+
declare class TokensEffect {
|
|
215
|
+
private readonly config;
|
|
216
|
+
constructor(config: PayArkConfig);
|
|
217
|
+
/**
|
|
218
|
+
* Create a new token.
|
|
219
|
+
*/
|
|
220
|
+
create(params: {
|
|
221
|
+
name: string;
|
|
222
|
+
scopes?: string[];
|
|
223
|
+
expires_in_days?: number;
|
|
224
|
+
}): Effect.Effect<Token & {
|
|
225
|
+
token: string;
|
|
226
|
+
}, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
227
|
+
/**
|
|
228
|
+
* List all tokens.
|
|
229
|
+
*/
|
|
230
|
+
list(): Effect.Effect<readonly Token[], PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
231
|
+
/**
|
|
232
|
+
* Delete/revoke a token.
|
|
233
|
+
*/
|
|
234
|
+
delete(id: string): Effect.Effect<void, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Effect-based resource for PayArk Realtime.
|
|
239
|
+
*/
|
|
240
|
+
declare class RealtimeEffect {
|
|
241
|
+
private readonly config;
|
|
242
|
+
constructor(config: PayArkConfig);
|
|
243
|
+
/**
|
|
244
|
+
* Manually trigger a realtime event.
|
|
245
|
+
*/
|
|
246
|
+
trigger(params: {
|
|
247
|
+
event: string;
|
|
248
|
+
data?: any;
|
|
249
|
+
token?: string;
|
|
250
|
+
}): Effect.Effect<{
|
|
251
|
+
status: string;
|
|
252
|
+
event?: string;
|
|
253
|
+
}, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Effect-based resource for PayArk Automation.
|
|
258
|
+
*/
|
|
259
|
+
declare class AutomationEffect {
|
|
260
|
+
private readonly config;
|
|
261
|
+
constructor(config: PayArkConfig);
|
|
262
|
+
/**
|
|
263
|
+
* Send reminders.
|
|
264
|
+
*/
|
|
265
|
+
reminders(): Effect.Effect<{
|
|
266
|
+
message: string;
|
|
267
|
+
count: number;
|
|
268
|
+
}, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
269
|
+
/**
|
|
270
|
+
* Run reaper.
|
|
271
|
+
*/
|
|
272
|
+
reaper(): Effect.Effect<{
|
|
273
|
+
message: string;
|
|
274
|
+
count: number;
|
|
275
|
+
purged_projects: number;
|
|
276
|
+
}, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
|
|
277
|
+
}
|
|
278
|
+
|
|
1090
279
|
/**
|
|
1091
280
|
* The Industrial SDK Client.
|
|
1092
281
|
* Automatically derived from the PayArk HttpApi specification.
|
|
@@ -1100,22 +289,25 @@ declare const makeClient: (options?: {
|
|
|
1100
289
|
readonly checkout: {
|
|
1101
290
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
1102
291
|
readonly payload: {
|
|
1103
|
-
readonly amount?: (number & effect_Brand.Brand<"
|
|
292
|
+
readonly amount?: (number & effect_Brand.Brand<"NprAmount">) | undefined;
|
|
1104
293
|
readonly currency: string;
|
|
1105
|
-
readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
294
|
+
readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1106
295
|
readonly returnUrl: string & effect_Brand.Brand<"UrlString">;
|
|
1107
296
|
readonly cancelUrl?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
1108
297
|
readonly metadata?: {
|
|
1109
298
|
readonly [x: string]: any;
|
|
1110
299
|
} | undefined;
|
|
1111
300
|
readonly subscriptionId?: (string & effect_Brand.Brand<"SubscriptionId">) | undefined;
|
|
301
|
+
readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
|
|
302
|
+
readonly mandate_id?: (string & effect_Brand.Brand<"MandateId">) | undefined;
|
|
1112
303
|
};
|
|
1113
304
|
readonly withResponse?: WithResponse | undefined;
|
|
1114
305
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1115
306
|
readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
|
|
1116
307
|
readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
|
|
308
|
+
readonly qr_string?: string | undefined;
|
|
1117
309
|
readonly payment_method: {
|
|
1118
|
-
readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
310
|
+
readonly type: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1119
311
|
readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
1120
312
|
readonly method?: "POST" | "GET" | undefined;
|
|
1121
313
|
readonly fields?: {
|
|
@@ -1125,15 +317,16 @@ declare const makeClient: (options?: {
|
|
|
1125
317
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1126
318
|
readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
|
|
1127
319
|
readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
|
|
320
|
+
readonly qr_string?: string | undefined;
|
|
1128
321
|
readonly payment_method: {
|
|
1129
|
-
readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
322
|
+
readonly type: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1130
323
|
readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
1131
324
|
readonly method?: "POST" | "GET" | undefined;
|
|
1132
325
|
readonly fields?: {
|
|
1133
326
|
readonly [x: string]: string;
|
|
1134
327
|
} | undefined;
|
|
1135
328
|
};
|
|
1136
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
329
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1137
330
|
};
|
|
1138
331
|
readonly payments: {
|
|
1139
332
|
readonly list: <WithResponse extends boolean = false>(request: {
|
|
@@ -1150,6 +343,7 @@ declare const makeClient: (options?: {
|
|
|
1150
343
|
readonly currency: string;
|
|
1151
344
|
readonly status: "pending" | "success" | "failed";
|
|
1152
345
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
346
|
+
readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
|
|
1153
347
|
readonly provider_ref?: string | null | undefined;
|
|
1154
348
|
readonly metadata_json?: {
|
|
1155
349
|
readonly [x: string]: any;
|
|
@@ -1170,6 +364,7 @@ declare const makeClient: (options?: {
|
|
|
1170
364
|
readonly currency: string;
|
|
1171
365
|
readonly status: "pending" | "success" | "failed";
|
|
1172
366
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
367
|
+
readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
|
|
1173
368
|
readonly provider_ref?: string | null | undefined;
|
|
1174
369
|
readonly metadata_json?: {
|
|
1175
370
|
readonly [x: string]: any;
|
|
@@ -1183,7 +378,7 @@ declare const makeClient: (options?: {
|
|
|
1183
378
|
readonly limit: number;
|
|
1184
379
|
readonly offset: number;
|
|
1185
380
|
};
|
|
1186
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
381
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1187
382
|
readonly retrieve: <WithResponse extends boolean = false>(request: {
|
|
1188
383
|
readonly path: {
|
|
1189
384
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
@@ -1195,6 +390,7 @@ declare const makeClient: (options?: {
|
|
|
1195
390
|
readonly currency: string;
|
|
1196
391
|
readonly status: "pending" | "success" | "failed";
|
|
1197
392
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
393
|
+
readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
|
|
1198
394
|
readonly provider_ref?: string | null | undefined;
|
|
1199
395
|
readonly metadata_json?: {
|
|
1200
396
|
readonly [x: string]: any;
|
|
@@ -1208,6 +404,7 @@ declare const makeClient: (options?: {
|
|
|
1208
404
|
readonly currency: string;
|
|
1209
405
|
readonly status: "pending" | "success" | "failed";
|
|
1210
406
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
407
|
+
readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
|
|
1211
408
|
readonly provider_ref?: string | null | undefined;
|
|
1212
409
|
readonly metadata_json?: {
|
|
1213
410
|
readonly [x: string]: any;
|
|
@@ -1215,7 +412,7 @@ declare const makeClient: (options?: {
|
|
|
1215
412
|
readonly gateway_response?: any;
|
|
1216
413
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1217
414
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1218
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
415
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1219
416
|
};
|
|
1220
417
|
readonly customers: {
|
|
1221
418
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
@@ -1242,6 +439,11 @@ declare const makeClient: (options?: {
|
|
|
1242
439
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1243
440
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1244
441
|
readonly phone: string | null;
|
|
442
|
+
readonly total_ltv?: number | undefined;
|
|
443
|
+
readonly is_high_value?: boolean | undefined;
|
|
444
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
445
|
+
readonly ltv_cents?: number | undefined;
|
|
446
|
+
readonly tier: string | null;
|
|
1245
447
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1246
448
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
1247
449
|
readonly metadata: {
|
|
@@ -1254,7 +456,12 @@ declare const makeClient: (options?: {
|
|
|
1254
456
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1255
457
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1256
458
|
readonly phone: string | null;
|
|
1257
|
-
|
|
459
|
+
readonly total_ltv?: number | undefined;
|
|
460
|
+
readonly is_high_value?: boolean | undefined;
|
|
461
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
462
|
+
readonly ltv_cents?: number | undefined;
|
|
463
|
+
readonly tier: string | null;
|
|
464
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1258
465
|
readonly list: <WithResponse extends boolean = false>(request: {
|
|
1259
466
|
readonly urlParams: {
|
|
1260
467
|
readonly limit?: number | undefined;
|
|
@@ -1277,6 +484,11 @@ declare const makeClient: (options?: {
|
|
|
1277
484
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1278
485
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1279
486
|
readonly phone: string | null;
|
|
487
|
+
readonly total_ltv?: number | undefined;
|
|
488
|
+
readonly is_high_value?: boolean | undefined;
|
|
489
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
490
|
+
readonly ltv_cents?: number | undefined;
|
|
491
|
+
readonly tier: string | null;
|
|
1280
492
|
}[];
|
|
1281
493
|
readonly meta: {
|
|
1282
494
|
readonly total: number | null;
|
|
@@ -1296,13 +508,18 @@ declare const makeClient: (options?: {
|
|
|
1296
508
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1297
509
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1298
510
|
readonly phone: string | null;
|
|
511
|
+
readonly total_ltv?: number | undefined;
|
|
512
|
+
readonly is_high_value?: boolean | undefined;
|
|
513
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
514
|
+
readonly ltv_cents?: number | undefined;
|
|
515
|
+
readonly tier: string | null;
|
|
1299
516
|
}[];
|
|
1300
517
|
readonly meta: {
|
|
1301
518
|
readonly total: number | null;
|
|
1302
519
|
readonly limit: number;
|
|
1303
520
|
readonly offset: number;
|
|
1304
521
|
};
|
|
1305
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
522
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1306
523
|
readonly retrieve: <WithResponse extends boolean = false>(request: {
|
|
1307
524
|
readonly path: {
|
|
1308
525
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
@@ -1320,6 +537,11 @@ declare const makeClient: (options?: {
|
|
|
1320
537
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1321
538
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1322
539
|
readonly phone: string | null;
|
|
540
|
+
readonly total_ltv?: number | undefined;
|
|
541
|
+
readonly is_high_value?: boolean | undefined;
|
|
542
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
543
|
+
readonly ltv_cents?: number | undefined;
|
|
544
|
+
readonly tier: string | null;
|
|
1323
545
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1324
546
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
1325
547
|
readonly metadata: {
|
|
@@ -1332,7 +554,12 @@ declare const makeClient: (options?: {
|
|
|
1332
554
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1333
555
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1334
556
|
readonly phone: string | null;
|
|
1335
|
-
|
|
557
|
+
readonly total_ltv?: number | undefined;
|
|
558
|
+
readonly is_high_value?: boolean | undefined;
|
|
559
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
560
|
+
readonly ltv_cents?: number | undefined;
|
|
561
|
+
readonly tier: string | null;
|
|
562
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1336
563
|
readonly update: <WithResponse extends boolean = false>(request: {
|
|
1337
564
|
readonly path: {
|
|
1338
565
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
@@ -1341,9 +568,11 @@ declare const makeClient: (options?: {
|
|
|
1341
568
|
readonly metadata?: {
|
|
1342
569
|
readonly [x: string]: any;
|
|
1343
570
|
} | undefined;
|
|
571
|
+
readonly merchant_customer_id?: string | undefined;
|
|
1344
572
|
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
1345
573
|
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
1346
574
|
readonly phone?: string | undefined;
|
|
575
|
+
readonly tier?: string | undefined;
|
|
1347
576
|
};
|
|
1348
577
|
readonly withResponse?: WithResponse | undefined;
|
|
1349
578
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -1358,6 +587,11 @@ declare const makeClient: (options?: {
|
|
|
1358
587
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1359
588
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1360
589
|
readonly phone: string | null;
|
|
590
|
+
readonly total_ltv?: number | undefined;
|
|
591
|
+
readonly is_high_value?: boolean | undefined;
|
|
592
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
593
|
+
readonly ltv_cents?: number | undefined;
|
|
594
|
+
readonly tier: string | null;
|
|
1361
595
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1362
596
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
1363
597
|
readonly metadata: {
|
|
@@ -1370,18 +604,23 @@ declare const makeClient: (options?: {
|
|
|
1370
604
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1371
605
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1372
606
|
readonly phone: string | null;
|
|
1373
|
-
|
|
607
|
+
readonly total_ltv?: number | undefined;
|
|
608
|
+
readonly is_high_value?: boolean | undefined;
|
|
609
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
610
|
+
readonly ltv_cents?: number | undefined;
|
|
611
|
+
readonly tier: string | null;
|
|
612
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1374
613
|
readonly delete: <WithResponse extends boolean = false>(request: {
|
|
1375
614
|
readonly path: {
|
|
1376
615
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
1377
616
|
};
|
|
1378
617
|
readonly withResponse?: WithResponse | undefined;
|
|
1379
|
-
}) => Effect.Effect<WithResponse extends true ? [void, _effect_platform_HttpClientResponse.HttpClientResponse] : void, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
618
|
+
}) => Effect.Effect<WithResponse extends true ? [void, _effect_platform_HttpClientResponse.HttpClientResponse] : void, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1380
619
|
};
|
|
1381
620
|
readonly subscriptions: {
|
|
1382
621
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
1383
622
|
readonly payload: {
|
|
1384
|
-
readonly amount: number & effect_Brand.Brand<"
|
|
623
|
+
readonly amount: number & effect_Brand.Brand<"NprAmount">;
|
|
1385
624
|
readonly currency: string;
|
|
1386
625
|
readonly metadata?: {
|
|
1387
626
|
readonly [x: string]: any;
|
|
@@ -1390,6 +629,7 @@ declare const makeClient: (options?: {
|
|
|
1390
629
|
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1391
630
|
readonly interval: "month" | "year" | "week";
|
|
1392
631
|
readonly interval_count?: number | undefined;
|
|
632
|
+
readonly customer_email?: string | undefined;
|
|
1393
633
|
readonly auto_send_link?: boolean | undefined;
|
|
1394
634
|
};
|
|
1395
635
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -1400,17 +640,19 @@ declare const makeClient: (options?: {
|
|
|
1400
640
|
readonly metadata?: {
|
|
1401
641
|
readonly [x: string]: any;
|
|
1402
642
|
} | null | undefined;
|
|
1403
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
643
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
1404
644
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
645
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1405
646
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1406
647
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1407
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1408
648
|
readonly interval: "month" | "year" | "week";
|
|
1409
649
|
readonly interval_count: number;
|
|
1410
650
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1411
651
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1412
652
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
653
|
+
readonly customer_email?: string | null | undefined;
|
|
1413
654
|
readonly auto_send_link: boolean;
|
|
655
|
+
readonly grace_days?: number | undefined;
|
|
1414
656
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1415
657
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1416
658
|
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
@@ -1419,19 +661,21 @@ declare const makeClient: (options?: {
|
|
|
1419
661
|
readonly metadata?: {
|
|
1420
662
|
readonly [x: string]: any;
|
|
1421
663
|
} | null | undefined;
|
|
1422
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
664
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
1423
665
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
666
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1424
667
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1425
668
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1426
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1427
669
|
readonly interval: "month" | "year" | "week";
|
|
1428
670
|
readonly interval_count: number;
|
|
1429
671
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1430
672
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1431
673
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
674
|
+
readonly customer_email?: string | null | undefined;
|
|
1432
675
|
readonly auto_send_link: boolean;
|
|
676
|
+
readonly grace_days?: number | undefined;
|
|
1433
677
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1434
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
678
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1435
679
|
readonly retrieve: <WithResponse extends boolean = false>(request: {
|
|
1436
680
|
readonly path: {
|
|
1437
681
|
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
@@ -1444,17 +688,19 @@ declare const makeClient: (options?: {
|
|
|
1444
688
|
readonly metadata?: {
|
|
1445
689
|
readonly [x: string]: any;
|
|
1446
690
|
} | null | undefined;
|
|
1447
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
691
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
1448
692
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
693
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1449
694
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1450
695
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1451
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1452
696
|
readonly interval: "month" | "year" | "week";
|
|
1453
697
|
readonly interval_count: number;
|
|
1454
698
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1455
699
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1456
700
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
701
|
+
readonly customer_email?: string | null | undefined;
|
|
1457
702
|
readonly auto_send_link: boolean;
|
|
703
|
+
readonly grace_days?: number | undefined;
|
|
1458
704
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1459
705
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1460
706
|
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
@@ -1463,26 +709,28 @@ declare const makeClient: (options?: {
|
|
|
1463
709
|
readonly metadata?: {
|
|
1464
710
|
readonly [x: string]: any;
|
|
1465
711
|
} | null | undefined;
|
|
1466
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
712
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
1467
713
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
714
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1468
715
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1469
716
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1470
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1471
717
|
readonly interval: "month" | "year" | "week";
|
|
1472
718
|
readonly interval_count: number;
|
|
1473
719
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1474
720
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1475
721
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
722
|
+
readonly customer_email?: string | null | undefined;
|
|
1476
723
|
readonly auto_send_link: boolean;
|
|
724
|
+
readonly grace_days?: number | undefined;
|
|
1477
725
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1478
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
726
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1479
727
|
readonly list: <WithResponse extends boolean = false>(request: {
|
|
1480
728
|
readonly urlParams: {
|
|
1481
|
-
readonly
|
|
729
|
+
readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
|
|
730
|
+
readonly status?: "active" | "pending_checkout" | "past_due" | "canceled" | "paused" | undefined;
|
|
1482
731
|
readonly limit?: number | undefined;
|
|
1483
732
|
readonly offset?: number | undefined;
|
|
1484
733
|
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
1485
|
-
readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
|
|
1486
734
|
};
|
|
1487
735
|
readonly withResponse?: WithResponse | undefined;
|
|
1488
736
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -1493,17 +741,19 @@ declare const makeClient: (options?: {
|
|
|
1493
741
|
readonly metadata?: {
|
|
1494
742
|
readonly [x: string]: any;
|
|
1495
743
|
} | null | undefined;
|
|
1496
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
744
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
1497
745
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
746
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1498
747
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1499
748
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1500
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1501
749
|
readonly interval: "month" | "year" | "week";
|
|
1502
750
|
readonly interval_count: number;
|
|
1503
751
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1504
752
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1505
753
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
754
|
+
readonly customer_email?: string | null | undefined;
|
|
1506
755
|
readonly auto_send_link: boolean;
|
|
756
|
+
readonly grace_days?: number | undefined;
|
|
1507
757
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1508
758
|
}[];
|
|
1509
759
|
readonly meta: {
|
|
@@ -1519,17 +769,19 @@ declare const makeClient: (options?: {
|
|
|
1519
769
|
readonly metadata?: {
|
|
1520
770
|
readonly [x: string]: any;
|
|
1521
771
|
} | null | undefined;
|
|
1522
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
772
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
1523
773
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
774
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1524
775
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1525
776
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1526
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1527
777
|
readonly interval: "month" | "year" | "week";
|
|
1528
778
|
readonly interval_count: number;
|
|
1529
779
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1530
780
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1531
781
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
782
|
+
readonly customer_email?: string | null | undefined;
|
|
1532
783
|
readonly auto_send_link: boolean;
|
|
784
|
+
readonly grace_days?: number | undefined;
|
|
1533
785
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1534
786
|
}[];
|
|
1535
787
|
readonly meta: {
|
|
@@ -1537,7 +789,7 @@ declare const makeClient: (options?: {
|
|
|
1537
789
|
readonly limit: number;
|
|
1538
790
|
readonly offset: number;
|
|
1539
791
|
};
|
|
1540
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
792
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1541
793
|
readonly cancel: <WithResponse extends boolean = false>(request: {
|
|
1542
794
|
readonly path: {
|
|
1543
795
|
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
@@ -1550,17 +802,19 @@ declare const makeClient: (options?: {
|
|
|
1550
802
|
readonly metadata?: {
|
|
1551
803
|
readonly [x: string]: any;
|
|
1552
804
|
} | null | undefined;
|
|
1553
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
805
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
1554
806
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
807
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1555
808
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1556
809
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1557
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1558
810
|
readonly interval: "month" | "year" | "week";
|
|
1559
811
|
readonly interval_count: number;
|
|
1560
812
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1561
813
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1562
814
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
815
|
+
readonly customer_email?: string | null | undefined;
|
|
1563
816
|
readonly auto_send_link: boolean;
|
|
817
|
+
readonly grace_days?: number | undefined;
|
|
1564
818
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1565
819
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1566
820
|
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
@@ -1569,25 +823,27 @@ declare const makeClient: (options?: {
|
|
|
1569
823
|
readonly metadata?: {
|
|
1570
824
|
readonly [x: string]: any;
|
|
1571
825
|
} | null | undefined;
|
|
1572
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
826
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
1573
827
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
828
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1574
829
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1575
830
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1576
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
1577
831
|
readonly interval: "month" | "year" | "week";
|
|
1578
832
|
readonly interval_count: number;
|
|
1579
833
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
1580
834
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
1581
835
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
836
|
+
readonly customer_email?: string | null | undefined;
|
|
1582
837
|
readonly auto_send_link: boolean;
|
|
838
|
+
readonly grace_days?: number | undefined;
|
|
1583
839
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1584
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
840
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1585
841
|
readonly activate: <WithResponse extends boolean = false>(request: {
|
|
1586
842
|
readonly path: {
|
|
1587
843
|
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
1588
844
|
};
|
|
1589
845
|
readonly payload: {
|
|
1590
|
-
readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
846
|
+
readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1591
847
|
readonly returnUrl: string;
|
|
1592
848
|
readonly cancelUrl?: string | undefined;
|
|
1593
849
|
};
|
|
@@ -1598,7 +854,7 @@ declare const makeClient: (options?: {
|
|
|
1598
854
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1599
855
|
readonly checkout_url: string;
|
|
1600
856
|
readonly payment_id: string;
|
|
1601
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
857
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1602
858
|
};
|
|
1603
859
|
readonly automation: {
|
|
1604
860
|
readonly reminders: <WithResponse extends boolean = false>(request: void | {
|
|
@@ -1609,16 +865,36 @@ declare const makeClient: (options?: {
|
|
|
1609
865
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1610
866
|
readonly message: string;
|
|
1611
867
|
readonly count: number;
|
|
1612
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
868
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1613
869
|
readonly reaper: <WithResponse extends boolean = false>(request: void | {
|
|
1614
870
|
readonly withResponse?: WithResponse | undefined;
|
|
1615
871
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1616
872
|
readonly message: string;
|
|
1617
873
|
readonly count: number;
|
|
874
|
+
readonly purged_projects: number;
|
|
1618
875
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1619
876
|
readonly message: string;
|
|
1620
877
|
readonly count: number;
|
|
1621
|
-
|
|
878
|
+
readonly purged_projects: number;
|
|
879
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
880
|
+
readonly processRenewals: <WithResponse extends boolean = false>(request: void | {
|
|
881
|
+
readonly withResponse?: WithResponse | undefined;
|
|
882
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
883
|
+
readonly message: string;
|
|
884
|
+
readonly emails_sent: number;
|
|
885
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
886
|
+
readonly message: string;
|
|
887
|
+
readonly emails_sent: number;
|
|
888
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
889
|
+
readonly processGracePeriod: <WithResponse extends boolean = false>(request: void | {
|
|
890
|
+
readonly withResponse?: WithResponse | undefined;
|
|
891
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
892
|
+
readonly message: string;
|
|
893
|
+
readonly marked_past_due: number;
|
|
894
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
895
|
+
readonly message: string;
|
|
896
|
+
readonly marked_past_due: number;
|
|
897
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1622
898
|
};
|
|
1623
899
|
readonly tokens: {
|
|
1624
900
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
@@ -1644,7 +920,7 @@ declare const makeClient: (options?: {
|
|
|
1644
920
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
1645
921
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
1646
922
|
readonly token: string;
|
|
1647
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
923
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1648
924
|
readonly list: <WithResponse extends boolean = false>(request: void | {
|
|
1649
925
|
readonly withResponse?: WithResponse | undefined;
|
|
1650
926
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
@@ -1661,13 +937,13 @@ declare const makeClient: (options?: {
|
|
|
1661
937
|
readonly scopes: readonly string[];
|
|
1662
938
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
1663
939
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
1664
|
-
}[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
940
|
+
}[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1665
941
|
readonly delete: <WithResponse extends boolean = false>(request: {
|
|
1666
942
|
readonly path: {
|
|
1667
943
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
1668
944
|
};
|
|
1669
945
|
readonly withResponse?: WithResponse | undefined;
|
|
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>;
|
|
946
|
+
}) => Effect.Effect<WithResponse extends true ? [null, _effect_platform_HttpClientResponse.HttpClientResponse] : null, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1671
947
|
};
|
|
1672
948
|
readonly projects: {
|
|
1673
949
|
readonly list: <WithResponse extends boolean = false>(request: void | {
|
|
@@ -1676,13 +952,44 @@ declare const makeClient: (options?: {
|
|
|
1676
952
|
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
1677
953
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1678
954
|
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
955
|
+
readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1679
956
|
readonly api_key_secret: string;
|
|
957
|
+
readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
|
|
958
|
+
readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
|
|
1680
959
|
}[], _effect_platform_HttpClientResponse.HttpClientResponse] : readonly {
|
|
1681
960
|
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
1682
961
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1683
962
|
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
963
|
+
readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
964
|
+
readonly api_key_secret: string;
|
|
965
|
+
readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
|
|
966
|
+
readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
|
|
967
|
+
}[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
968
|
+
readonly upgrade: <WithResponse extends boolean = false>(request: {
|
|
969
|
+
readonly path: {
|
|
970
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
971
|
+
};
|
|
972
|
+
readonly payload: {
|
|
973
|
+
readonly tier: "pro" | "enterprise";
|
|
974
|
+
};
|
|
975
|
+
readonly withResponse?: WithResponse | undefined;
|
|
976
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
977
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
978
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
979
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
980
|
+
readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
981
|
+
readonly api_key_secret: string;
|
|
982
|
+
readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
|
|
983
|
+
readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
|
|
984
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
985
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
986
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
987
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
988
|
+
readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1684
989
|
readonly api_key_secret: string;
|
|
1685
|
-
|
|
990
|
+
readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
|
|
991
|
+
readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
|
|
992
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1686
993
|
};
|
|
1687
994
|
readonly callbacks: {
|
|
1688
995
|
readonly handle: <WithResponse extends boolean = false>(request: {
|
|
@@ -1690,12 +997,139 @@ declare const makeClient: (options?: {
|
|
|
1690
997
|
readonly provider: string;
|
|
1691
998
|
};
|
|
1692
999
|
readonly urlParams: {
|
|
1000
|
+
readonly code?: string | undefined;
|
|
1693
1001
|
readonly data?: string | undefined;
|
|
1694
1002
|
readonly payment_id?: string | undefined;
|
|
1695
1003
|
readonly pidx?: string | undefined;
|
|
1004
|
+
readonly ref_id?: string | undefined;
|
|
1005
|
+
readonly access_token?: string | undefined;
|
|
1006
|
+
readonly refresh_token?: string | undefined;
|
|
1007
|
+
};
|
|
1008
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1009
|
+
}) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1010
|
+
};
|
|
1011
|
+
readonly auth: {
|
|
1012
|
+
readonly callback: <WithResponse extends boolean = false>(request: {
|
|
1013
|
+
readonly urlParams: {
|
|
1014
|
+
readonly code?: string | undefined;
|
|
1015
|
+
readonly next?: string | undefined;
|
|
1016
|
+
};
|
|
1017
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1018
|
+
}) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1019
|
+
};
|
|
1020
|
+
readonly mandates: {
|
|
1021
|
+
readonly registerIntent: <WithResponse extends boolean = false>(request: {
|
|
1022
|
+
readonly payload: {
|
|
1023
|
+
readonly currency: string;
|
|
1024
|
+
readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
|
|
1025
|
+
readonly principal_id: string;
|
|
1026
|
+
readonly max_amount: number;
|
|
1027
|
+
readonly permitted_vendors?: readonly string[] | undefined;
|
|
1028
|
+
readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
|
|
1029
|
+
readonly credential_jwt: string;
|
|
1030
|
+
readonly public_key: string;
|
|
1031
|
+
};
|
|
1032
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1033
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1034
|
+
readonly id: string & effect_Brand.Brand<"MandateId">;
|
|
1035
|
+
readonly type: "intent" | "cart";
|
|
1036
|
+
readonly currency: string;
|
|
1037
|
+
readonly status: "active" | "consumed" | "expired" | "violated";
|
|
1038
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1039
|
+
readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
|
|
1040
|
+
readonly metadata_json: {
|
|
1041
|
+
readonly [x: string]: any;
|
|
1042
|
+
};
|
|
1043
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1044
|
+
readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
|
|
1045
|
+
readonly principal_id: string;
|
|
1046
|
+
readonly max_amount: number;
|
|
1047
|
+
readonly permitted_vendors: readonly string[] | null;
|
|
1048
|
+
readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
|
|
1049
|
+
readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
|
|
1050
|
+
readonly credential_jwt: string;
|
|
1051
|
+
readonly public_key: string;
|
|
1052
|
+
readonly signature: string;
|
|
1053
|
+
readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
|
|
1054
|
+
readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
1055
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1056
|
+
readonly id: string & effect_Brand.Brand<"MandateId">;
|
|
1057
|
+
readonly type: "intent" | "cart";
|
|
1058
|
+
readonly currency: string;
|
|
1059
|
+
readonly status: "active" | "consumed" | "expired" | "violated";
|
|
1060
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1061
|
+
readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
|
|
1062
|
+
readonly metadata_json: {
|
|
1063
|
+
readonly [x: string]: any;
|
|
1064
|
+
};
|
|
1065
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1066
|
+
readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
|
|
1067
|
+
readonly principal_id: string;
|
|
1068
|
+
readonly max_amount: number;
|
|
1069
|
+
readonly permitted_vendors: readonly string[] | null;
|
|
1070
|
+
readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
|
|
1071
|
+
readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
|
|
1072
|
+
readonly credential_jwt: string;
|
|
1073
|
+
readonly public_key: string;
|
|
1074
|
+
readonly signature: string;
|
|
1075
|
+
readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
|
|
1076
|
+
readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
1077
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1078
|
+
readonly retrieve: <WithResponse extends boolean = false>(request: {
|
|
1079
|
+
readonly path: {
|
|
1080
|
+
readonly id: string & effect_Brand.Brand<"MandateId">;
|
|
1696
1081
|
};
|
|
1697
1082
|
readonly withResponse?: WithResponse | undefined;
|
|
1698
|
-
}) => Effect.Effect<WithResponse extends true ? [
|
|
1083
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1084
|
+
readonly id: string & effect_Brand.Brand<"MandateId">;
|
|
1085
|
+
readonly type: "intent" | "cart";
|
|
1086
|
+
readonly currency: string;
|
|
1087
|
+
readonly status: "active" | "consumed" | "expired" | "violated";
|
|
1088
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1089
|
+
readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
|
|
1090
|
+
readonly metadata_json: {
|
|
1091
|
+
readonly [x: string]: any;
|
|
1092
|
+
};
|
|
1093
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1094
|
+
readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
|
|
1095
|
+
readonly principal_id: string;
|
|
1096
|
+
readonly max_amount: number;
|
|
1097
|
+
readonly permitted_vendors: readonly string[] | null;
|
|
1098
|
+
readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
|
|
1099
|
+
readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
|
|
1100
|
+
readonly credential_jwt: string;
|
|
1101
|
+
readonly public_key: string;
|
|
1102
|
+
readonly signature: string;
|
|
1103
|
+
readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
|
|
1104
|
+
readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
1105
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1106
|
+
readonly id: string & effect_Brand.Brand<"MandateId">;
|
|
1107
|
+
readonly type: "intent" | "cart";
|
|
1108
|
+
readonly currency: string;
|
|
1109
|
+
readonly status: "active" | "consumed" | "expired" | "violated";
|
|
1110
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1111
|
+
readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
|
|
1112
|
+
readonly metadata_json: {
|
|
1113
|
+
readonly [x: string]: any;
|
|
1114
|
+
};
|
|
1115
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1116
|
+
readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
|
|
1117
|
+
readonly principal_id: string;
|
|
1118
|
+
readonly max_amount: number;
|
|
1119
|
+
readonly permitted_vendors: readonly string[] | null;
|
|
1120
|
+
readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
|
|
1121
|
+
readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
|
|
1122
|
+
readonly credential_jwt: string;
|
|
1123
|
+
readonly public_key: string;
|
|
1124
|
+
readonly signature: string;
|
|
1125
|
+
readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
|
|
1126
|
+
readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
1127
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1128
|
+
};
|
|
1129
|
+
readonly discovery: {
|
|
1130
|
+
readonly agentCard: <WithResponse extends boolean = false>(request: void | {
|
|
1131
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1132
|
+
}) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1699
1133
|
};
|
|
1700
1134
|
readonly realtime: {
|
|
1701
1135
|
readonly connect: <WithResponse extends boolean = false>(request: {
|
|
@@ -1703,14 +1137,14 @@ declare const makeClient: (options?: {
|
|
|
1703
1137
|
readonly token: string;
|
|
1704
1138
|
};
|
|
1705
1139
|
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>;
|
|
1140
|
+
}) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1707
1141
|
readonly trigger: <WithResponse extends boolean = false>(request: {
|
|
1708
1142
|
readonly urlParams: {
|
|
1709
1143
|
readonly token?: string | undefined;
|
|
1710
1144
|
};
|
|
1711
1145
|
readonly payload: {
|
|
1712
1146
|
readonly data?: any;
|
|
1713
|
-
readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
|
|
1147
|
+
readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.activated" | "subscription.renewed" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
|
|
1714
1148
|
};
|
|
1715
1149
|
readonly withResponse?: WithResponse | undefined;
|
|
1716
1150
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -1719,29 +1153,89 @@ declare const makeClient: (options?: {
|
|
|
1719
1153
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1720
1154
|
readonly status: string;
|
|
1721
1155
|
readonly event?: string | undefined;
|
|
1722
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1156
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1157
|
+
};
|
|
1158
|
+
readonly sandbox: {
|
|
1159
|
+
readonly init: <WithResponse extends boolean = false>(request: void | {
|
|
1160
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1161
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1162
|
+
readonly projectId: string;
|
|
1163
|
+
readonly apiKey?: string | undefined;
|
|
1164
|
+
readonly expiresAt: string & effect_Brand.Brand<"Timestamp">;
|
|
1165
|
+
readonly session?: {
|
|
1166
|
+
readonly access_token: string;
|
|
1167
|
+
readonly refresh_token: string;
|
|
1168
|
+
} | undefined;
|
|
1169
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1170
|
+
readonly projectId: string;
|
|
1171
|
+
readonly apiKey?: string | undefined;
|
|
1172
|
+
readonly expiresAt: string & effect_Brand.Brand<"Timestamp">;
|
|
1173
|
+
readonly session?: {
|
|
1174
|
+
readonly access_token: string;
|
|
1175
|
+
readonly refresh_token: string;
|
|
1176
|
+
} | undefined;
|
|
1177
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1178
|
+
};
|
|
1179
|
+
readonly signingKeys: {
|
|
1180
|
+
readonly generate: <WithResponse extends boolean = false>(request: {
|
|
1181
|
+
readonly path: {
|
|
1182
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
1183
|
+
};
|
|
1184
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1185
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1186
|
+
readonly id: string;
|
|
1187
|
+
readonly publicKey: string;
|
|
1188
|
+
readonly privateKey: string;
|
|
1189
|
+
readonly algorithm: string;
|
|
1190
|
+
readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
|
|
1191
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1192
|
+
readonly id: string;
|
|
1193
|
+
readonly publicKey: string;
|
|
1194
|
+
readonly privateKey: string;
|
|
1195
|
+
readonly algorithm: string;
|
|
1196
|
+
readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
|
|
1197
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1198
|
+
readonly get: <WithResponse extends boolean = false>(request: {
|
|
1199
|
+
readonly path: {
|
|
1200
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
1201
|
+
};
|
|
1202
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1203
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1204
|
+
readonly id: string;
|
|
1205
|
+
readonly publicKey: string;
|
|
1206
|
+
readonly algorithm: string;
|
|
1207
|
+
readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
|
|
1208
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1209
|
+
readonly id: string;
|
|
1210
|
+
readonly publicKey: string;
|
|
1211
|
+
readonly algorithm: string;
|
|
1212
|
+
readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
|
|
1213
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1723
1214
|
};
|
|
1724
1215
|
}, never, HttpClient.HttpClient>;
|
|
1725
1216
|
declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-effect/PayArkClient", {
|
|
1726
1217
|
readonly checkout: {
|
|
1727
1218
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
1728
1219
|
readonly payload: {
|
|
1729
|
-
readonly amount?: (number & effect_Brand.Brand<"
|
|
1220
|
+
readonly amount?: (number & effect_Brand.Brand<"NprAmount">) | undefined;
|
|
1730
1221
|
readonly currency: string;
|
|
1731
|
-
readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1222
|
+
readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1732
1223
|
readonly returnUrl: string & effect_Brand.Brand<"UrlString">;
|
|
1733
1224
|
readonly cancelUrl?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
1734
1225
|
readonly metadata?: {
|
|
1735
1226
|
readonly [x: string]: any;
|
|
1736
1227
|
} | undefined;
|
|
1737
1228
|
readonly subscriptionId?: (string & effect_Brand.Brand<"SubscriptionId">) | undefined;
|
|
1229
|
+
readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
|
|
1230
|
+
readonly mandate_id?: (string & effect_Brand.Brand<"MandateId">) | undefined;
|
|
1738
1231
|
};
|
|
1739
1232
|
readonly withResponse?: WithResponse | undefined;
|
|
1740
1233
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1741
1234
|
readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
|
|
1742
1235
|
readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
|
|
1236
|
+
readonly qr_string?: string | undefined;
|
|
1743
1237
|
readonly payment_method: {
|
|
1744
|
-
readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1238
|
+
readonly type: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1745
1239
|
readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
1746
1240
|
readonly method?: "POST" | "GET" | undefined;
|
|
1747
1241
|
readonly fields?: {
|
|
@@ -1751,15 +1245,16 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1751
1245
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1752
1246
|
readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
|
|
1753
1247
|
readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
|
|
1248
|
+
readonly qr_string?: string | undefined;
|
|
1754
1249
|
readonly payment_method: {
|
|
1755
|
-
readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1250
|
+
readonly type: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1756
1251
|
readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
1757
1252
|
readonly method?: "POST" | "GET" | undefined;
|
|
1758
1253
|
readonly fields?: {
|
|
1759
1254
|
readonly [x: string]: string;
|
|
1760
1255
|
} | undefined;
|
|
1761
1256
|
};
|
|
1762
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1257
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1763
1258
|
};
|
|
1764
1259
|
readonly payments: {
|
|
1765
1260
|
readonly list: <WithResponse extends boolean = false>(request: {
|
|
@@ -1776,6 +1271,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1776
1271
|
readonly currency: string;
|
|
1777
1272
|
readonly status: "pending" | "success" | "failed";
|
|
1778
1273
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1274
|
+
readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
|
|
1779
1275
|
readonly provider_ref?: string | null | undefined;
|
|
1780
1276
|
readonly metadata_json?: {
|
|
1781
1277
|
readonly [x: string]: any;
|
|
@@ -1796,6 +1292,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1796
1292
|
readonly currency: string;
|
|
1797
1293
|
readonly status: "pending" | "success" | "failed";
|
|
1798
1294
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1295
|
+
readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
|
|
1799
1296
|
readonly provider_ref?: string | null | undefined;
|
|
1800
1297
|
readonly metadata_json?: {
|
|
1801
1298
|
readonly [x: string]: any;
|
|
@@ -1809,7 +1306,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1809
1306
|
readonly limit: number;
|
|
1810
1307
|
readonly offset: number;
|
|
1811
1308
|
};
|
|
1812
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1309
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1813
1310
|
readonly retrieve: <WithResponse extends boolean = false>(request: {
|
|
1814
1311
|
readonly path: {
|
|
1815
1312
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
@@ -1821,6 +1318,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1821
1318
|
readonly currency: string;
|
|
1822
1319
|
readonly status: "pending" | "success" | "failed";
|
|
1823
1320
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1321
|
+
readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
|
|
1824
1322
|
readonly provider_ref?: string | null | undefined;
|
|
1825
1323
|
readonly metadata_json?: {
|
|
1826
1324
|
readonly [x: string]: any;
|
|
@@ -1834,6 +1332,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1834
1332
|
readonly currency: string;
|
|
1835
1333
|
readonly status: "pending" | "success" | "failed";
|
|
1836
1334
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1335
|
+
readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
|
|
1837
1336
|
readonly provider_ref?: string | null | undefined;
|
|
1838
1337
|
readonly metadata_json?: {
|
|
1839
1338
|
readonly [x: string]: any;
|
|
@@ -1841,7 +1340,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1841
1340
|
readonly gateway_response?: any;
|
|
1842
1341
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1843
1342
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
1844
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1343
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1845
1344
|
};
|
|
1846
1345
|
readonly customers: {
|
|
1847
1346
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
@@ -1868,6 +1367,11 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1868
1367
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1869
1368
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1870
1369
|
readonly phone: string | null;
|
|
1370
|
+
readonly total_ltv?: number | undefined;
|
|
1371
|
+
readonly is_high_value?: boolean | undefined;
|
|
1372
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
1373
|
+
readonly ltv_cents?: number | undefined;
|
|
1374
|
+
readonly tier: string | null;
|
|
1871
1375
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1872
1376
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
1873
1377
|
readonly metadata: {
|
|
@@ -1880,7 +1384,12 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1880
1384
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1881
1385
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1882
1386
|
readonly phone: string | null;
|
|
1883
|
-
|
|
1387
|
+
readonly total_ltv?: number | undefined;
|
|
1388
|
+
readonly is_high_value?: boolean | undefined;
|
|
1389
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
1390
|
+
readonly ltv_cents?: number | undefined;
|
|
1391
|
+
readonly tier: string | null;
|
|
1392
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1884
1393
|
readonly list: <WithResponse extends boolean = false>(request: {
|
|
1885
1394
|
readonly urlParams: {
|
|
1886
1395
|
readonly limit?: number | undefined;
|
|
@@ -1903,6 +1412,11 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1903
1412
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1904
1413
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1905
1414
|
readonly phone: string | null;
|
|
1415
|
+
readonly total_ltv?: number | undefined;
|
|
1416
|
+
readonly is_high_value?: boolean | undefined;
|
|
1417
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
1418
|
+
readonly ltv_cents?: number | undefined;
|
|
1419
|
+
readonly tier: string | null;
|
|
1906
1420
|
}[];
|
|
1907
1421
|
readonly meta: {
|
|
1908
1422
|
readonly total: number | null;
|
|
@@ -1922,13 +1436,18 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1922
1436
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1923
1437
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1924
1438
|
readonly phone: string | null;
|
|
1439
|
+
readonly total_ltv?: number | undefined;
|
|
1440
|
+
readonly is_high_value?: boolean | undefined;
|
|
1441
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
1442
|
+
readonly ltv_cents?: number | undefined;
|
|
1443
|
+
readonly tier: string | null;
|
|
1925
1444
|
}[];
|
|
1926
1445
|
readonly meta: {
|
|
1927
1446
|
readonly total: number | null;
|
|
1928
1447
|
readonly limit: number;
|
|
1929
1448
|
readonly offset: number;
|
|
1930
1449
|
};
|
|
1931
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1450
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1932
1451
|
readonly retrieve: <WithResponse extends boolean = false>(request: {
|
|
1933
1452
|
readonly path: {
|
|
1934
1453
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
@@ -1946,6 +1465,11 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1946
1465
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1947
1466
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1948
1467
|
readonly phone: string | null;
|
|
1468
|
+
readonly total_ltv?: number | undefined;
|
|
1469
|
+
readonly is_high_value?: boolean | undefined;
|
|
1470
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
1471
|
+
readonly ltv_cents?: number | undefined;
|
|
1472
|
+
readonly tier: string | null;
|
|
1949
1473
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1950
1474
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
1951
1475
|
readonly metadata: {
|
|
@@ -1958,7 +1482,12 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1958
1482
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1959
1483
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1960
1484
|
readonly phone: string | null;
|
|
1961
|
-
|
|
1485
|
+
readonly total_ltv?: number | undefined;
|
|
1486
|
+
readonly is_high_value?: boolean | undefined;
|
|
1487
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
1488
|
+
readonly ltv_cents?: number | undefined;
|
|
1489
|
+
readonly tier: string | null;
|
|
1490
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1962
1491
|
readonly update: <WithResponse extends boolean = false>(request: {
|
|
1963
1492
|
readonly path: {
|
|
1964
1493
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
@@ -1967,9 +1496,11 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1967
1496
|
readonly metadata?: {
|
|
1968
1497
|
readonly [x: string]: any;
|
|
1969
1498
|
} | undefined;
|
|
1499
|
+
readonly merchant_customer_id?: string | undefined;
|
|
1970
1500
|
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
1971
1501
|
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
1972
1502
|
readonly phone?: string | undefined;
|
|
1503
|
+
readonly tier?: string | undefined;
|
|
1973
1504
|
};
|
|
1974
1505
|
readonly withResponse?: WithResponse | undefined;
|
|
1975
1506
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -1984,6 +1515,11 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1984
1515
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1985
1516
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1986
1517
|
readonly phone: string | null;
|
|
1518
|
+
readonly total_ltv?: number | undefined;
|
|
1519
|
+
readonly is_high_value?: boolean | undefined;
|
|
1520
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
1521
|
+
readonly ltv_cents?: number | undefined;
|
|
1522
|
+
readonly tier: string | null;
|
|
1987
1523
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1988
1524
|
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
1989
1525
|
readonly metadata: {
|
|
@@ -1996,18 +1532,23 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
1996
1532
|
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
1997
1533
|
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
1998
1534
|
readonly phone: string | null;
|
|
1999
|
-
|
|
1535
|
+
readonly total_ltv?: number | undefined;
|
|
1536
|
+
readonly is_high_value?: boolean | undefined;
|
|
1537
|
+
readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
|
|
1538
|
+
readonly ltv_cents?: number | undefined;
|
|
1539
|
+
readonly tier: string | null;
|
|
1540
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2000
1541
|
readonly delete: <WithResponse extends boolean = false>(request: {
|
|
2001
1542
|
readonly path: {
|
|
2002
1543
|
readonly id: string & effect_Brand.Brand<"Id">;
|
|
2003
1544
|
};
|
|
2004
1545
|
readonly withResponse?: WithResponse | undefined;
|
|
2005
|
-
}) => Effect.Effect<WithResponse extends true ? [void, _effect_platform_HttpClientResponse.HttpClientResponse] : void, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1546
|
+
}) => Effect.Effect<WithResponse extends true ? [void, _effect_platform_HttpClientResponse.HttpClientResponse] : void, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2006
1547
|
};
|
|
2007
1548
|
readonly subscriptions: {
|
|
2008
1549
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
2009
1550
|
readonly payload: {
|
|
2010
|
-
readonly amount: number & effect_Brand.Brand<"
|
|
1551
|
+
readonly amount: number & effect_Brand.Brand<"NprAmount">;
|
|
2011
1552
|
readonly currency: string;
|
|
2012
1553
|
readonly metadata?: {
|
|
2013
1554
|
readonly [x: string]: any;
|
|
@@ -2016,6 +1557,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2016
1557
|
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2017
1558
|
readonly interval: "month" | "year" | "week";
|
|
2018
1559
|
readonly interval_count?: number | undefined;
|
|
1560
|
+
readonly customer_email?: string | undefined;
|
|
2019
1561
|
readonly auto_send_link?: boolean | undefined;
|
|
2020
1562
|
};
|
|
2021
1563
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -2026,17 +1568,19 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2026
1568
|
readonly metadata?: {
|
|
2027
1569
|
readonly [x: string]: any;
|
|
2028
1570
|
} | null | undefined;
|
|
2029
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
1571
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
2030
1572
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1573
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2031
1574
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2032
1575
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
2033
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2034
1576
|
readonly interval: "month" | "year" | "week";
|
|
2035
1577
|
readonly interval_count: number;
|
|
2036
1578
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
2037
1579
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
2038
1580
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1581
|
+
readonly customer_email?: string | null | undefined;
|
|
2039
1582
|
readonly auto_send_link: boolean;
|
|
1583
|
+
readonly grace_days?: number | undefined;
|
|
2040
1584
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
2041
1585
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
2042
1586
|
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
@@ -2045,19 +1589,21 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2045
1589
|
readonly metadata?: {
|
|
2046
1590
|
readonly [x: string]: any;
|
|
2047
1591
|
} | null | undefined;
|
|
2048
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
1592
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
2049
1593
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1594
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2050
1595
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2051
1596
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
2052
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2053
1597
|
readonly interval: "month" | "year" | "week";
|
|
2054
1598
|
readonly interval_count: number;
|
|
2055
1599
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
2056
1600
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
2057
1601
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1602
|
+
readonly customer_email?: string | null | undefined;
|
|
2058
1603
|
readonly auto_send_link: boolean;
|
|
1604
|
+
readonly grace_days?: number | undefined;
|
|
2059
1605
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
2060
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1606
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2061
1607
|
readonly retrieve: <WithResponse extends boolean = false>(request: {
|
|
2062
1608
|
readonly path: {
|
|
2063
1609
|
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
@@ -2070,17 +1616,19 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2070
1616
|
readonly metadata?: {
|
|
2071
1617
|
readonly [x: string]: any;
|
|
2072
1618
|
} | null | undefined;
|
|
2073
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
1619
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
2074
1620
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1621
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2075
1622
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2076
1623
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
2077
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2078
1624
|
readonly interval: "month" | "year" | "week";
|
|
2079
1625
|
readonly interval_count: number;
|
|
2080
1626
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
2081
1627
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
2082
1628
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1629
|
+
readonly customer_email?: string | null | undefined;
|
|
2083
1630
|
readonly auto_send_link: boolean;
|
|
1631
|
+
readonly grace_days?: number | undefined;
|
|
2084
1632
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
2085
1633
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
2086
1634
|
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
@@ -2089,26 +1637,28 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2089
1637
|
readonly metadata?: {
|
|
2090
1638
|
readonly [x: string]: any;
|
|
2091
1639
|
} | null | undefined;
|
|
2092
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
1640
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
2093
1641
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1642
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2094
1643
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2095
1644
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
2096
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2097
1645
|
readonly interval: "month" | "year" | "week";
|
|
2098
1646
|
readonly interval_count: number;
|
|
2099
1647
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
2100
1648
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
2101
1649
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1650
|
+
readonly customer_email?: string | null | undefined;
|
|
2102
1651
|
readonly auto_send_link: boolean;
|
|
1652
|
+
readonly grace_days?: number | undefined;
|
|
2103
1653
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
2104
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1654
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2105
1655
|
readonly list: <WithResponse extends boolean = false>(request: {
|
|
2106
1656
|
readonly urlParams: {
|
|
2107
|
-
readonly
|
|
1657
|
+
readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
|
|
1658
|
+
readonly status?: "active" | "pending_checkout" | "past_due" | "canceled" | "paused" | undefined;
|
|
2108
1659
|
readonly limit?: number | undefined;
|
|
2109
1660
|
readonly offset?: number | undefined;
|
|
2110
1661
|
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
2111
|
-
readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
|
|
2112
1662
|
};
|
|
2113
1663
|
readonly withResponse?: WithResponse | undefined;
|
|
2114
1664
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -2119,17 +1669,19 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2119
1669
|
readonly metadata?: {
|
|
2120
1670
|
readonly [x: string]: any;
|
|
2121
1671
|
} | null | undefined;
|
|
2122
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
1672
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
2123
1673
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1674
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2124
1675
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2125
1676
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
2126
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2127
1677
|
readonly interval: "month" | "year" | "week";
|
|
2128
1678
|
readonly interval_count: number;
|
|
2129
1679
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
2130
1680
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
2131
1681
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1682
|
+
readonly customer_email?: string | null | undefined;
|
|
2132
1683
|
readonly auto_send_link: boolean;
|
|
1684
|
+
readonly grace_days?: number | undefined;
|
|
2133
1685
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
2134
1686
|
}[];
|
|
2135
1687
|
readonly meta: {
|
|
@@ -2145,17 +1697,19 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2145
1697
|
readonly metadata?: {
|
|
2146
1698
|
readonly [x: string]: any;
|
|
2147
1699
|
} | null | undefined;
|
|
2148
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
1700
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
2149
1701
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1702
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2150
1703
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2151
1704
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
2152
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2153
1705
|
readonly interval: "month" | "year" | "week";
|
|
2154
1706
|
readonly interval_count: number;
|
|
2155
1707
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
2156
1708
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
2157
1709
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1710
|
+
readonly customer_email?: string | null | undefined;
|
|
2158
1711
|
readonly auto_send_link: boolean;
|
|
1712
|
+
readonly grace_days?: number | undefined;
|
|
2159
1713
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
2160
1714
|
}[];
|
|
2161
1715
|
readonly meta: {
|
|
@@ -2163,7 +1717,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2163
1717
|
readonly limit: number;
|
|
2164
1718
|
readonly offset: number;
|
|
2165
1719
|
};
|
|
2166
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1720
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2167
1721
|
readonly cancel: <WithResponse extends boolean = false>(request: {
|
|
2168
1722
|
readonly path: {
|
|
2169
1723
|
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
@@ -2176,17 +1730,19 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2176
1730
|
readonly metadata?: {
|
|
2177
1731
|
readonly [x: string]: any;
|
|
2178
1732
|
} | null | undefined;
|
|
2179
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
1733
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
2180
1734
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1735
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2181
1736
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2182
1737
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
2183
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2184
1738
|
readonly interval: "month" | "year" | "week";
|
|
2185
1739
|
readonly interval_count: number;
|
|
2186
1740
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
2187
1741
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
2188
1742
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1743
|
+
readonly customer_email?: string | null | undefined;
|
|
2189
1744
|
readonly auto_send_link: boolean;
|
|
1745
|
+
readonly grace_days?: number | undefined;
|
|
2190
1746
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
2191
1747
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
2192
1748
|
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
@@ -2195,25 +1751,27 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2195
1751
|
readonly metadata?: {
|
|
2196
1752
|
readonly [x: string]: any;
|
|
2197
1753
|
} | null | undefined;
|
|
2198
|
-
readonly status: "active" | "past_due" | "canceled" | "paused";
|
|
1754
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
2199
1755
|
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1756
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2200
1757
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2201
1758
|
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
2202
|
-
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
2203
1759
|
readonly interval: "month" | "year" | "week";
|
|
2204
1760
|
readonly interval_count: number;
|
|
2205
1761
|
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
2206
1762
|
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
2207
1763
|
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
1764
|
+
readonly customer_email?: string | null | undefined;
|
|
2208
1765
|
readonly auto_send_link: boolean;
|
|
1766
|
+
readonly grace_days?: number | undefined;
|
|
2209
1767
|
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
2210
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1768
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2211
1769
|
readonly activate: <WithResponse extends boolean = false>(request: {
|
|
2212
1770
|
readonly path: {
|
|
2213
1771
|
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
2214
1772
|
};
|
|
2215
1773
|
readonly payload: {
|
|
2216
|
-
readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
1774
|
+
readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
2217
1775
|
readonly returnUrl: string;
|
|
2218
1776
|
readonly cancelUrl?: string | undefined;
|
|
2219
1777
|
};
|
|
@@ -2224,7 +1782,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2224
1782
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
2225
1783
|
readonly checkout_url: string;
|
|
2226
1784
|
readonly payment_id: string;
|
|
2227
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1785
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2228
1786
|
};
|
|
2229
1787
|
readonly automation: {
|
|
2230
1788
|
readonly reminders: <WithResponse extends boolean = false>(request: void | {
|
|
@@ -2235,16 +1793,36 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2235
1793
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
2236
1794
|
readonly message: string;
|
|
2237
1795
|
readonly count: number;
|
|
2238
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1796
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2239
1797
|
readonly reaper: <WithResponse extends boolean = false>(request: void | {
|
|
2240
1798
|
readonly withResponse?: WithResponse | undefined;
|
|
2241
1799
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2242
1800
|
readonly message: string;
|
|
2243
1801
|
readonly count: number;
|
|
1802
|
+
readonly purged_projects: number;
|
|
2244
1803
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
2245
1804
|
readonly message: string;
|
|
2246
1805
|
readonly count: number;
|
|
2247
|
-
|
|
1806
|
+
readonly purged_projects: number;
|
|
1807
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1808
|
+
readonly processRenewals: <WithResponse extends boolean = false>(request: void | {
|
|
1809
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1810
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1811
|
+
readonly message: string;
|
|
1812
|
+
readonly emails_sent: number;
|
|
1813
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1814
|
+
readonly message: string;
|
|
1815
|
+
readonly emails_sent: number;
|
|
1816
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1817
|
+
readonly processGracePeriod: <WithResponse extends boolean = false>(request: void | {
|
|
1818
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1819
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1820
|
+
readonly message: string;
|
|
1821
|
+
readonly marked_past_due: number;
|
|
1822
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1823
|
+
readonly message: string;
|
|
1824
|
+
readonly marked_past_due: number;
|
|
1825
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2248
1826
|
};
|
|
2249
1827
|
readonly tokens: {
|
|
2250
1828
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
@@ -2270,7 +1848,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2270
1848
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
2271
1849
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
2272
1850
|
readonly token: string;
|
|
2273
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1851
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2274
1852
|
readonly list: <WithResponse extends boolean = false>(request: void | {
|
|
2275
1853
|
readonly withResponse?: WithResponse | undefined;
|
|
2276
1854
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
@@ -2287,13 +1865,13 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2287
1865
|
readonly scopes: readonly string[];
|
|
2288
1866
|
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
2289
1867
|
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
2290
|
-
}[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1868
|
+
}[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2291
1869
|
readonly delete: <WithResponse extends boolean = false>(request: {
|
|
2292
1870
|
readonly path: {
|
|
2293
1871
|
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
2294
1872
|
};
|
|
2295
1873
|
readonly withResponse?: WithResponse | undefined;
|
|
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>;
|
|
1874
|
+
}) => Effect.Effect<WithResponse extends true ? [null, _effect_platform_HttpClientResponse.HttpClientResponse] : null, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2297
1875
|
};
|
|
2298
1876
|
readonly projects: {
|
|
2299
1877
|
readonly list: <WithResponse extends boolean = false>(request: void | {
|
|
@@ -2302,13 +1880,44 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2302
1880
|
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
2303
1881
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2304
1882
|
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1883
|
+
readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
2305
1884
|
readonly api_key_secret: string;
|
|
1885
|
+
readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
|
|
1886
|
+
readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
|
|
2306
1887
|
}[], _effect_platform_HttpClientResponse.HttpClientResponse] : readonly {
|
|
2307
1888
|
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
2308
1889
|
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2309
1890
|
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1891
|
+
readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
2310
1892
|
readonly api_key_secret: string;
|
|
2311
|
-
|
|
1893
|
+
readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
|
|
1894
|
+
readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
|
|
1895
|
+
}[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1896
|
+
readonly upgrade: <WithResponse extends boolean = false>(request: {
|
|
1897
|
+
readonly path: {
|
|
1898
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
1899
|
+
};
|
|
1900
|
+
readonly payload: {
|
|
1901
|
+
readonly tier: "pro" | "enterprise";
|
|
1902
|
+
};
|
|
1903
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1904
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1905
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
1906
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1907
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1908
|
+
readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1909
|
+
readonly api_key_secret: string;
|
|
1910
|
+
readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
|
|
1911
|
+
readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
|
|
1912
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1913
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
1914
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1915
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
1916
|
+
readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
1917
|
+
readonly api_key_secret: string;
|
|
1918
|
+
readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
|
|
1919
|
+
readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
|
|
1920
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2312
1921
|
};
|
|
2313
1922
|
readonly callbacks: {
|
|
2314
1923
|
readonly handle: <WithResponse extends boolean = false>(request: {
|
|
@@ -2316,12 +1925,139 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2316
1925
|
readonly provider: string;
|
|
2317
1926
|
};
|
|
2318
1927
|
readonly urlParams: {
|
|
1928
|
+
readonly code?: string | undefined;
|
|
2319
1929
|
readonly data?: string | undefined;
|
|
2320
1930
|
readonly payment_id?: string | undefined;
|
|
2321
1931
|
readonly pidx?: string | undefined;
|
|
1932
|
+
readonly ref_id?: string | undefined;
|
|
1933
|
+
readonly access_token?: string | undefined;
|
|
1934
|
+
readonly refresh_token?: string | undefined;
|
|
1935
|
+
};
|
|
1936
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1937
|
+
}) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1938
|
+
};
|
|
1939
|
+
readonly auth: {
|
|
1940
|
+
readonly callback: <WithResponse extends boolean = false>(request: {
|
|
1941
|
+
readonly urlParams: {
|
|
1942
|
+
readonly code?: string | undefined;
|
|
1943
|
+
readonly next?: string | undefined;
|
|
2322
1944
|
};
|
|
2323
1945
|
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>;
|
|
1946
|
+
}) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
1947
|
+
};
|
|
1948
|
+
readonly mandates: {
|
|
1949
|
+
readonly registerIntent: <WithResponse extends boolean = false>(request: {
|
|
1950
|
+
readonly payload: {
|
|
1951
|
+
readonly currency: string;
|
|
1952
|
+
readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
|
|
1953
|
+
readonly principal_id: string;
|
|
1954
|
+
readonly max_amount: number;
|
|
1955
|
+
readonly permitted_vendors?: readonly string[] | undefined;
|
|
1956
|
+
readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
|
|
1957
|
+
readonly credential_jwt: string;
|
|
1958
|
+
readonly public_key: string;
|
|
1959
|
+
};
|
|
1960
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1961
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1962
|
+
readonly id: string & effect_Brand.Brand<"MandateId">;
|
|
1963
|
+
readonly type: "intent" | "cart";
|
|
1964
|
+
readonly currency: string;
|
|
1965
|
+
readonly status: "active" | "consumed" | "expired" | "violated";
|
|
1966
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1967
|
+
readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
|
|
1968
|
+
readonly metadata_json: {
|
|
1969
|
+
readonly [x: string]: any;
|
|
1970
|
+
};
|
|
1971
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1972
|
+
readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
|
|
1973
|
+
readonly principal_id: string;
|
|
1974
|
+
readonly max_amount: number;
|
|
1975
|
+
readonly permitted_vendors: readonly string[] | null;
|
|
1976
|
+
readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
|
|
1977
|
+
readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
|
|
1978
|
+
readonly credential_jwt: string;
|
|
1979
|
+
readonly public_key: string;
|
|
1980
|
+
readonly signature: string;
|
|
1981
|
+
readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
|
|
1982
|
+
readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
1983
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
1984
|
+
readonly id: string & effect_Brand.Brand<"MandateId">;
|
|
1985
|
+
readonly type: "intent" | "cart";
|
|
1986
|
+
readonly currency: string;
|
|
1987
|
+
readonly status: "active" | "consumed" | "expired" | "violated";
|
|
1988
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
1989
|
+
readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
|
|
1990
|
+
readonly metadata_json: {
|
|
1991
|
+
readonly [x: string]: any;
|
|
1992
|
+
};
|
|
1993
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
1994
|
+
readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
|
|
1995
|
+
readonly principal_id: string;
|
|
1996
|
+
readonly max_amount: number;
|
|
1997
|
+
readonly permitted_vendors: readonly string[] | null;
|
|
1998
|
+
readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
|
|
1999
|
+
readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
|
|
2000
|
+
readonly credential_jwt: string;
|
|
2001
|
+
readonly public_key: string;
|
|
2002
|
+
readonly signature: string;
|
|
2003
|
+
readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
|
|
2004
|
+
readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
2005
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2006
|
+
readonly retrieve: <WithResponse extends boolean = false>(request: {
|
|
2007
|
+
readonly path: {
|
|
2008
|
+
readonly id: string & effect_Brand.Brand<"MandateId">;
|
|
2009
|
+
};
|
|
2010
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2011
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2012
|
+
readonly id: string & effect_Brand.Brand<"MandateId">;
|
|
2013
|
+
readonly type: "intent" | "cart";
|
|
2014
|
+
readonly currency: string;
|
|
2015
|
+
readonly status: "active" | "consumed" | "expired" | "violated";
|
|
2016
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
2017
|
+
readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
|
|
2018
|
+
readonly metadata_json: {
|
|
2019
|
+
readonly [x: string]: any;
|
|
2020
|
+
};
|
|
2021
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2022
|
+
readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
|
|
2023
|
+
readonly principal_id: string;
|
|
2024
|
+
readonly max_amount: number;
|
|
2025
|
+
readonly permitted_vendors: readonly string[] | null;
|
|
2026
|
+
readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
|
|
2027
|
+
readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
|
|
2028
|
+
readonly credential_jwt: string;
|
|
2029
|
+
readonly public_key: string;
|
|
2030
|
+
readonly signature: string;
|
|
2031
|
+
readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
|
|
2032
|
+
readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
2033
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
2034
|
+
readonly id: string & effect_Brand.Brand<"MandateId">;
|
|
2035
|
+
readonly type: "intent" | "cart";
|
|
2036
|
+
readonly currency: string;
|
|
2037
|
+
readonly status: "active" | "consumed" | "expired" | "violated";
|
|
2038
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
2039
|
+
readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
|
|
2040
|
+
readonly metadata_json: {
|
|
2041
|
+
readonly [x: string]: any;
|
|
2042
|
+
};
|
|
2043
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
2044
|
+
readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
|
|
2045
|
+
readonly principal_id: string;
|
|
2046
|
+
readonly max_amount: number;
|
|
2047
|
+
readonly permitted_vendors: readonly string[] | null;
|
|
2048
|
+
readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
|
|
2049
|
+
readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
|
|
2050
|
+
readonly credential_jwt: string;
|
|
2051
|
+
readonly public_key: string;
|
|
2052
|
+
readonly signature: string;
|
|
2053
|
+
readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
|
|
2054
|
+
readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
2055
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2056
|
+
};
|
|
2057
|
+
readonly discovery: {
|
|
2058
|
+
readonly agentCard: <WithResponse extends boolean = false>(request: void | {
|
|
2059
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2060
|
+
}) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2325
2061
|
};
|
|
2326
2062
|
readonly realtime: {
|
|
2327
2063
|
readonly connect: <WithResponse extends boolean = false>(request: {
|
|
@@ -2329,14 +2065,14 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2329
2065
|
readonly token: string;
|
|
2330
2066
|
};
|
|
2331
2067
|
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>;
|
|
2068
|
+
}) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2333
2069
|
readonly trigger: <WithResponse extends boolean = false>(request: {
|
|
2334
2070
|
readonly urlParams: {
|
|
2335
2071
|
readonly token?: string | undefined;
|
|
2336
2072
|
};
|
|
2337
2073
|
readonly payload: {
|
|
2338
2074
|
readonly data?: any;
|
|
2339
|
-
readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
|
|
2075
|
+
readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.activated" | "subscription.renewed" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
|
|
2340
2076
|
};
|
|
2341
2077
|
readonly withResponse?: WithResponse | undefined;
|
|
2342
2078
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -2345,7 +2081,64 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
|
|
|
2345
2081
|
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
2346
2082
|
readonly status: string;
|
|
2347
2083
|
readonly event?: string | undefined;
|
|
2348
|
-
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2084
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2085
|
+
};
|
|
2086
|
+
readonly sandbox: {
|
|
2087
|
+
readonly init: <WithResponse extends boolean = false>(request: void | {
|
|
2088
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2089
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2090
|
+
readonly projectId: string;
|
|
2091
|
+
readonly apiKey?: string | undefined;
|
|
2092
|
+
readonly expiresAt: string & effect_Brand.Brand<"Timestamp">;
|
|
2093
|
+
readonly session?: {
|
|
2094
|
+
readonly access_token: string;
|
|
2095
|
+
readonly refresh_token: string;
|
|
2096
|
+
} | undefined;
|
|
2097
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
2098
|
+
readonly projectId: string;
|
|
2099
|
+
readonly apiKey?: string | undefined;
|
|
2100
|
+
readonly expiresAt: string & effect_Brand.Brand<"Timestamp">;
|
|
2101
|
+
readonly session?: {
|
|
2102
|
+
readonly access_token: string;
|
|
2103
|
+
readonly refresh_token: string;
|
|
2104
|
+
} | undefined;
|
|
2105
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2106
|
+
};
|
|
2107
|
+
readonly signingKeys: {
|
|
2108
|
+
readonly generate: <WithResponse extends boolean = false>(request: {
|
|
2109
|
+
readonly path: {
|
|
2110
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
2111
|
+
};
|
|
2112
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2113
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2114
|
+
readonly id: string;
|
|
2115
|
+
readonly publicKey: string;
|
|
2116
|
+
readonly privateKey: string;
|
|
2117
|
+
readonly algorithm: string;
|
|
2118
|
+
readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
|
|
2119
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
2120
|
+
readonly id: string;
|
|
2121
|
+
readonly publicKey: string;
|
|
2122
|
+
readonly privateKey: string;
|
|
2123
|
+
readonly algorithm: string;
|
|
2124
|
+
readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
|
|
2125
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2126
|
+
readonly get: <WithResponse extends boolean = false>(request: {
|
|
2127
|
+
readonly path: {
|
|
2128
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
2129
|
+
};
|
|
2130
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2131
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2132
|
+
readonly id: string;
|
|
2133
|
+
readonly publicKey: string;
|
|
2134
|
+
readonly algorithm: string;
|
|
2135
|
+
readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
|
|
2136
|
+
}, _effect_platform_HttpClientResponse.HttpClientResponse] : {
|
|
2137
|
+
readonly id: string;
|
|
2138
|
+
readonly publicKey: string;
|
|
2139
|
+
readonly algorithm: string;
|
|
2140
|
+
readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
|
|
2141
|
+
}, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
|
|
2349
2142
|
};
|
|
2350
2143
|
}>;
|
|
2351
2144
|
/**
|
|
@@ -2365,6 +2158,12 @@ declare class PayArkEffect {
|
|
|
2365
2158
|
private _checkout?;
|
|
2366
2159
|
private _payments?;
|
|
2367
2160
|
private _projects?;
|
|
2161
|
+
private _customers?;
|
|
2162
|
+
private _subscriptions?;
|
|
2163
|
+
private _mandates?;
|
|
2164
|
+
private _tokens?;
|
|
2165
|
+
private _realtime?;
|
|
2166
|
+
private _automation?;
|
|
2368
2167
|
constructor(config: PayArkConfig);
|
|
2369
2168
|
/**
|
|
2370
2169
|
* Checkout sessions resource (Effect).
|
|
@@ -2378,6 +2177,30 @@ declare class PayArkEffect {
|
|
|
2378
2177
|
* Projects resource (Effect).
|
|
2379
2178
|
*/
|
|
2380
2179
|
get projects(): ProjectsEffect;
|
|
2180
|
+
/**
|
|
2181
|
+
* Customers resource (Effect).
|
|
2182
|
+
*/
|
|
2183
|
+
get customers(): CustomersEffect;
|
|
2184
|
+
/**
|
|
2185
|
+
* Subscriptions resource (Effect).
|
|
2186
|
+
*/
|
|
2187
|
+
get subscriptions(): SubscriptionsEffect;
|
|
2188
|
+
/**
|
|
2189
|
+
* Mandates resource (Effect).
|
|
2190
|
+
*/
|
|
2191
|
+
get mandates(): MandatesEffect;
|
|
2192
|
+
/**
|
|
2193
|
+
* Tokens resource (Effect).
|
|
2194
|
+
*/
|
|
2195
|
+
get tokens(): TokensEffect;
|
|
2196
|
+
/**
|
|
2197
|
+
* Realtime resource (Effect).
|
|
2198
|
+
*/
|
|
2199
|
+
get realtime(): RealtimeEffect;
|
|
2200
|
+
/**
|
|
2201
|
+
* Automation resource (Effect).
|
|
2202
|
+
*/
|
|
2203
|
+
get automation(): AutomationEffect;
|
|
2381
2204
|
}
|
|
2382
2205
|
declare const PayArk_base: Context.TagClass<PayArk, "@payark/sdk-effect/PayArk", PayArkEffect>;
|
|
2383
2206
|
/**
|
|
@@ -2390,4 +2213,4 @@ declare class PayArk extends PayArk_base {
|
|
|
2390
2213
|
static readonly Live: (config: PayArkConfig) => Layer.Layer<PayArk, never, never>;
|
|
2391
2214
|
}
|
|
2392
2215
|
|
|
2393
|
-
export {
|
|
2216
|
+
export { AuthenticationError, CheckoutSession, ConflictError, CreateCheckoutParams, CreateCustomerParams, CreateSubscriptionParams, Customer, IndustrialError, InternalServerError, ListCustomersParams, ListPaymentsParams, ListSubscriptionsParams, Mandate, MandateExpiredError, MandateViolationError, NotFoundError, PaginatedResponse, PayArk, PayArkClient, PayArkConfig, PayArkEffect, PayArkEffectError, Payment, Project, Subscription, Token, UpdateCustomerParams, makeClient };
|