@undernouzen/ay-payments-sdk 1.0.2 → 1.1.3
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/CHANGELOG.md +18 -0
- package/README.md +80 -221
- package/dist/client.d.ts +215 -175
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +11 -2
- package/dist/client.js.map +1 -1
- package/dist/core.d.ts +51 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +2 -0
- package/dist/core.js.map +1 -0
- package/dist/errors.d.ts +43 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +31 -0
- package/dist/errors.js.map +1 -0
- package/dist/models.d.ts +341 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +2 -0
- package/dist/models.js.map +1 -0
- package/dist/modules/admin.types.d.ts +35 -0
- package/dist/modules/admin.types.d.ts.map +1 -0
- package/dist/modules/admin.types.js +2 -0
- package/dist/modules/admin.types.js.map +1 -0
- package/dist/modules/analytics.types.d.ts +21 -0
- package/dist/modules/analytics.types.d.ts.map +1 -0
- package/dist/modules/analytics.types.js +2 -0
- package/dist/modules/analytics.types.js.map +1 -0
- package/dist/modules/api-keys.types.d.ts +20 -0
- package/dist/modules/api-keys.types.d.ts.map +1 -0
- package/dist/modules/api-keys.types.js +2 -0
- package/dist/modules/api-keys.types.js.map +1 -0
- package/dist/modules/auth.types.d.ts +55 -0
- package/dist/modules/auth.types.d.ts.map +1 -0
- package/dist/modules/auth.types.js +2 -0
- package/dist/modules/auth.types.js.map +1 -0
- package/dist/modules/checkouts.types.d.ts +131 -0
- package/dist/modules/checkouts.types.d.ts.map +1 -0
- package/dist/modules/checkouts.types.js +2 -0
- package/dist/modules/checkouts.types.js.map +1 -0
- package/dist/modules/commissions.types.d.ts +17 -0
- package/dist/modules/commissions.types.d.ts.map +1 -0
- package/dist/modules/commissions.types.js +2 -0
- package/dist/modules/commissions.types.js.map +1 -0
- package/dist/modules/coupons.types.d.ts +41 -0
- package/dist/modules/coupons.types.d.ts.map +1 -0
- package/dist/modules/coupons.types.js +2 -0
- package/dist/modules/coupons.types.js.map +1 -0
- package/dist/modules/customers.types.d.ts +22 -0
- package/dist/modules/customers.types.d.ts.map +1 -0
- package/dist/modules/customers.types.js +2 -0
- package/dist/modules/customers.types.js.map +1 -0
- package/dist/modules/logs.types.d.ts +16 -0
- package/dist/modules/logs.types.d.ts.map +1 -0
- package/dist/modules/logs.types.js +2 -0
- package/dist/modules/logs.types.js.map +1 -0
- package/dist/modules/orders.types.d.ts +32 -0
- package/dist/modules/orders.types.d.ts.map +1 -0
- package/dist/modules/orders.types.js +2 -0
- package/dist/modules/orders.types.js.map +1 -0
- package/dist/modules/products.types.d.ts +30 -0
- package/dist/modules/products.types.d.ts.map +1 -0
- package/dist/modules/products.types.js +2 -0
- package/dist/modules/products.types.js.map +1 -0
- package/dist/modules/profile.types.d.ts +23 -0
- package/dist/modules/profile.types.d.ts.map +1 -0
- package/dist/modules/profile.types.js +2 -0
- package/dist/modules/profile.types.js.map +1 -0
- package/dist/modules/projects.types.d.ts +92 -0
- package/dist/modules/projects.types.d.ts.map +1 -0
- package/dist/modules/projects.types.js +2 -0
- package/dist/modules/projects.types.js.map +1 -0
- package/dist/types.d.ts +16 -621
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +16 -10
- package/dist/types.js.map +1 -1
- package/examples/calculate-checkout.ts +25 -0
- package/examples/create-pix-checkout.ts +30 -0
- package/examples/create-project.ts +21 -0
- package/examples/handle-error.ts +22 -0
- package/package.json +20 -2
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
2
|
-
import type { AyPaymentsAdmin, AyPaymentsAdminsResponse, AyPaymentsApiKeyResponse, AyPaymentsApiKeysResponse, AyPaymentsCalculateCheckoutPayload, AyPaymentsCheckoutCalculationResponse, AyPaymentsCheckoutPayload, AyPaymentsClientOptions, AyPaymentsCreateAdminPayload, AyPaymentsCreateApiKeyPayload, AyPaymentsCreateApiKeyResponse, AyPaymentsCreateCheckoutResponse, AyPaymentsCreateConnectionPayload, AyPaymentsCreateCustomerPayload, AyPaymentsCustomerRegisterPayload, AyPaymentsCreateManualOrderPayload, AyPaymentsCreateProductPayload, AyPaymentsCreateProjectPayload, AyPaymentsCreateProjectResponse, AyPaymentsCreateTenantPayload, AyPaymentsCustomerResponse, AyPaymentsCustomersResponse, AyPaymentsDeleteResponse, AyPaymentsLogsResponse, AyPaymentsLoginPayload, AyPaymentsOAuthPayload, AyPaymentsOAuthResponse, AyPaymentsOrderResponse, AyPaymentsOrdersResponse, AyPaymentsPaginationQuery, AyPaymentsPlatformCommissionResponse, AyPaymentsProductResponse, AyPaymentsProductsResponse, AyPaymentsProfileOrdersResponse, AyPaymentsProjectCommissionResponse, AyPaymentsProjectListResponse, AyPaymentsProjectResponse, AyPaymentsQuery, AyPaymentsTenantRegisterPayload, AyPaymentsTenantsResponse, AyPaymentsUpdateCommissionPayload, AyPaymentsUpdateConnectionPayload, AyPaymentsUpdateProductPayload, AyPaymentsUpdateProjectCommissionPayload, AyPaymentsUpdateProjectPayload } from "./types.js";
|
|
2
|
+
import type { AyPaymentsAdmin, AyPaymentsAdminsResponse, AyPaymentsApiResult, AyPaymentsApiKeyResponse, AyPaymentsApiKeysResponse, AyPaymentsAuthAdminResponse, AyPaymentsAuthCustomerResponse, AyPaymentsAuthTenantResponse, AyPaymentsCalculateCheckoutPayload, AyPaymentsCheckoutCalculationResponse, AyPaymentsCheckoutPayload, AyPaymentsClientOptions, AyPaymentsConnectionResponse, AyPaymentsCreateAdminPayload, AyPaymentsCreateApiKeyPayload, AyPaymentsCreateApiKeyResponse, AyPaymentsCreateCheckoutResponse, AyPaymentsCreateCouponPayload, AyPaymentsCreateConnectionPayload, AyPaymentsCreateCustomerPayload, AyPaymentsCustomerRegisterPayload, AyPaymentsCreateManualOrderPayload, AyPaymentsCreateProductPayload, AyPaymentsCreateProjectPayload, AyPaymentsCreateProjectResponse, AyPaymentsCreateTenantPayload, AyPaymentsCustomerResponse, AyPaymentsCustomersResponse, AyPaymentsDeleteResponse, AyPaymentsLogsResponse, AyPaymentsLoginPayload, AyPaymentsOAuthPayload, AyPaymentsOAuthResponse, AyPaymentsOrderResponse, AyPaymentsOrdersResponse, AyPaymentsOverviewResponse, AyPaymentsPaginationQuery, AyPaymentsPlatformCommissionResponse, AyPaymentsProductResponse, AyPaymentsProductsResponse, AyPaymentsCouponQueryInput, AyPaymentsCouponResponse, AyPaymentsCouponsResponse, AyPaymentsProfileOrdersResponse, AyPaymentsProjectCommissionResponse, AyPaymentsProjectAccountsResponse, AyPaymentsProjectListResponse, AyPaymentsProjectResponse, AyPaymentsQuery, AyPaymentsTenant, AyPaymentsTenantRegisterPayload, AyPaymentsTenantsResponse, AyPaymentsUpdateCommissionPayload, AyPaymentsUpdateConnectionPayload, AyPaymentsUpdateCouponPayload, AyPaymentsUpdateProductPayload, AyPaymentsUpdateProjectCommissionPayload, AyPaymentsUpdateProjectPayload } from "./types.js";
|
|
3
3
|
export declare class AYPaymentsClient {
|
|
4
4
|
readonly api: AxiosInstance;
|
|
5
5
|
readonly axios: AxiosInstance;
|
|
@@ -8,337 +8,377 @@ export declare class AYPaymentsClient {
|
|
|
8
8
|
constructor(options?: AyPaymentsClientOptions);
|
|
9
9
|
private request;
|
|
10
10
|
private toApiError;
|
|
11
|
-
raw: <T = unknown>(config: AxiosRequestConfig) => Promise<T
|
|
12
|
-
get: <T = unknown>(url: string, config?: AxiosRequestConfig) => Promise<T
|
|
13
|
-
post: <T = unknown>(url: string, data?: unknown, config?: AxiosRequestConfig) => Promise<T
|
|
14
|
-
put: <T = unknown>(url: string, data?: unknown, config?: AxiosRequestConfig) => Promise<T
|
|
15
|
-
patch: <T = unknown>(url: string, data?: unknown, config?: AxiosRequestConfig) => Promise<T
|
|
16
|
-
delete: <T = unknown>(url: string, config?: AxiosRequestConfig) => Promise<T
|
|
11
|
+
raw: <T = unknown>(config: AxiosRequestConfig) => Promise<AyPaymentsApiResult<T>>;
|
|
12
|
+
get: <T = unknown>(url: string, config?: AxiosRequestConfig) => Promise<AyPaymentsApiResult<T>>;
|
|
13
|
+
post: <T = unknown>(url: string, data?: unknown, config?: AxiosRequestConfig) => Promise<AyPaymentsApiResult<T>>;
|
|
14
|
+
put: <T = unknown>(url: string, data?: unknown, config?: AxiosRequestConfig) => Promise<AyPaymentsApiResult<T>>;
|
|
15
|
+
patch: <T = unknown>(url: string, data?: unknown, config?: AxiosRequestConfig) => Promise<AyPaymentsApiResult<T>>;
|
|
16
|
+
delete: <T = unknown>(url: string, config?: AxiosRequestConfig) => Promise<AyPaymentsApiResult<T>>;
|
|
17
17
|
v1: {
|
|
18
18
|
auth: {
|
|
19
19
|
admin: {
|
|
20
|
-
me: () => Promise<{
|
|
20
|
+
me: () => Promise<AyPaymentsApiResult<{
|
|
21
21
|
admin: AyPaymentsAdmin;
|
|
22
|
-
}
|
|
23
|
-
login: (payload: AyPaymentsLoginPayload) => Promise<
|
|
24
|
-
logout: () => Promise<AyPaymentsDeleteResponse
|
|
22
|
+
}>>;
|
|
23
|
+
login: (payload: AyPaymentsLoginPayload) => Promise<AyPaymentsApiResult<AyPaymentsAuthAdminResponse>>;
|
|
24
|
+
logout: () => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
25
25
|
updateProfile: (payload: {
|
|
26
26
|
fullName: string;
|
|
27
|
-
}) => Promise<
|
|
27
|
+
}) => Promise<AyPaymentsApiResult<{
|
|
28
|
+
admin: AyPaymentsAdmin;
|
|
29
|
+
}>>;
|
|
28
30
|
changePassword: (payload: {
|
|
29
31
|
currentPassword: string;
|
|
30
32
|
newPassword: string;
|
|
31
33
|
confirmPassword: string;
|
|
32
|
-
}) => Promise<
|
|
34
|
+
}) => Promise<AyPaymentsApiResult<{
|
|
35
|
+
admin: AyPaymentsAdmin;
|
|
36
|
+
}>>;
|
|
33
37
|
};
|
|
34
38
|
tenant: {
|
|
35
|
-
me: () => Promise<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
me: () => Promise<AyPaymentsApiResult<{
|
|
40
|
+
tenant: AyPaymentsTenant;
|
|
41
|
+
}>>;
|
|
42
|
+
login: (payload: AyPaymentsLoginPayload) => Promise<AyPaymentsApiResult<AyPaymentsAuthTenantResponse>>;
|
|
43
|
+
logout: () => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
44
|
+
register: (payload: AyPaymentsTenantRegisterPayload) => Promise<AyPaymentsApiResult<AyPaymentsAuthTenantResponse>>;
|
|
39
45
|
updateProfile: (payload: {
|
|
40
46
|
name?: string;
|
|
41
47
|
fullName?: string;
|
|
42
48
|
metadata?: Record<string, unknown>;
|
|
43
|
-
}) => Promise<
|
|
49
|
+
}) => Promise<AyPaymentsApiResult<{
|
|
50
|
+
tenant: AyPaymentsTenant;
|
|
51
|
+
}>>;
|
|
44
52
|
changePassword: (payload: {
|
|
45
53
|
currentPassword: string;
|
|
46
54
|
newPassword: string;
|
|
47
55
|
confirmPassword: string;
|
|
48
|
-
}) => Promise<
|
|
56
|
+
}) => Promise<AyPaymentsApiResult<{
|
|
57
|
+
tenant: AyPaymentsTenant;
|
|
58
|
+
}>>;
|
|
49
59
|
};
|
|
50
60
|
customer: {
|
|
51
|
-
me: () => Promise<
|
|
52
|
-
login: (payload: AyPaymentsLoginPayload) => Promise<
|
|
53
|
-
logout: () => Promise<AyPaymentsDeleteResponse
|
|
54
|
-
register: (payload: AyPaymentsCustomerRegisterPayload) => Promise<
|
|
55
|
-
resetPassword: (email: string) => Promise<{
|
|
61
|
+
me: () => Promise<AyPaymentsApiResult<AyPaymentsAuthCustomerResponse>>;
|
|
62
|
+
login: (payload: AyPaymentsLoginPayload) => Promise<AyPaymentsApiResult<AyPaymentsAuthCustomerResponse>>;
|
|
63
|
+
logout: () => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
64
|
+
register: (payload: AyPaymentsCustomerRegisterPayload) => Promise<AyPaymentsApiResult<AyPaymentsAuthCustomerResponse>>;
|
|
65
|
+
resetPassword: (email: string) => Promise<AyPaymentsApiResult<{
|
|
56
66
|
message: string;
|
|
57
|
-
}
|
|
67
|
+
}>>;
|
|
58
68
|
};
|
|
59
69
|
};
|
|
60
70
|
profile: {
|
|
61
|
-
orders: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsProfileOrdersResponse
|
|
71
|
+
orders: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsProfileOrdersResponse>>;
|
|
62
72
|
update: (payload: {
|
|
63
73
|
fullName: string;
|
|
64
74
|
bio?: string;
|
|
65
75
|
website?: string;
|
|
66
76
|
location?: string;
|
|
67
|
-
}) => Promise<{
|
|
77
|
+
}) => Promise<AyPaymentsApiResult<{
|
|
68
78
|
message: string;
|
|
69
|
-
}
|
|
79
|
+
}>>;
|
|
70
80
|
changePassword: (payload: {
|
|
71
81
|
oldPassword: string;
|
|
72
82
|
newPassword: string;
|
|
73
|
-
}) => Promise<{
|
|
83
|
+
}) => Promise<AyPaymentsApiResult<{
|
|
74
84
|
message: string;
|
|
75
|
-
}
|
|
76
|
-
deleteAccount: () => Promise<AyPaymentsDeleteResponse
|
|
85
|
+
}>>;
|
|
86
|
+
deleteAccount: () => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
77
87
|
};
|
|
78
88
|
projects: {
|
|
79
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsProjectListResponse
|
|
80
|
-
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsProjectListResponse
|
|
81
|
-
get: (projectIdOrExternalId: string) => Promise<AyPaymentsProjectResponse
|
|
82
|
-
create: (payload: AyPaymentsCreateProjectPayload) => Promise<AyPaymentsCreateProjectResponse
|
|
83
|
-
update: (projectIdOrExternalId: string, payload: AyPaymentsUpdateProjectPayload) => Promise<AyPaymentsProjectResponse
|
|
84
|
-
delete: (projectIdOrExternalId: string) => Promise<AyPaymentsDeleteResponse
|
|
89
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsProjectListResponse>>;
|
|
90
|
+
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsProjectListResponse>>;
|
|
91
|
+
get: (projectIdOrExternalId: string) => Promise<AyPaymentsApiResult<AyPaymentsProjectResponse>>;
|
|
92
|
+
create: (payload: AyPaymentsCreateProjectPayload) => Promise<AyPaymentsApiResult<AyPaymentsCreateProjectResponse>>;
|
|
93
|
+
update: (projectIdOrExternalId: string, payload: AyPaymentsUpdateProjectPayload) => Promise<AyPaymentsApiResult<AyPaymentsProjectResponse>>;
|
|
94
|
+
delete: (projectIdOrExternalId: string) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
85
95
|
commission: {
|
|
86
|
-
get: (projectIdOrExternalId: string) => Promise<AyPaymentsProjectCommissionResponse
|
|
87
|
-
update: (projectIdOrExternalId: string, payload: AyPaymentsUpdateProjectCommissionPayload) => Promise<AyPaymentsProjectResponse
|
|
96
|
+
get: (projectIdOrExternalId: string) => Promise<AyPaymentsApiResult<AyPaymentsProjectCommissionResponse>>;
|
|
97
|
+
update: (projectIdOrExternalId: string, payload: AyPaymentsUpdateProjectCommissionPayload) => Promise<AyPaymentsApiResult<AyPaymentsProjectResponse>>;
|
|
88
98
|
};
|
|
89
99
|
accounts: {
|
|
90
|
-
oauth: (payload: AyPaymentsOAuthPayload) => Promise<AyPaymentsOAuthResponse
|
|
91
|
-
list: (projectIdOrExternalId: string) => Promise<
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
update: (projectIdOrExternalId: string, connectionId: string, payload: AyPaymentsUpdateConnectionPayload) => Promise<unknown>;
|
|
96
|
-
delete: (projectIdOrExternalId: string, connectionId: string) => Promise<AyPaymentsProjectResponse>;
|
|
100
|
+
oauth: (payload: AyPaymentsOAuthPayload) => Promise<AyPaymentsApiResult<AyPaymentsOAuthResponse>>;
|
|
101
|
+
list: (projectIdOrExternalId: string) => Promise<AyPaymentsApiResult<AyPaymentsProjectAccountsResponse>>;
|
|
102
|
+
create: (projectIdOrExternalId: string, payload: AyPaymentsCreateConnectionPayload) => Promise<AyPaymentsApiResult<AyPaymentsConnectionResponse>>;
|
|
103
|
+
update: (projectIdOrExternalId: string, connectionId: string, payload: AyPaymentsUpdateConnectionPayload) => Promise<AyPaymentsApiResult<AyPaymentsConnectionResponse>>;
|
|
104
|
+
delete: (projectIdOrExternalId: string, connectionId: string) => Promise<AyPaymentsApiResult<AyPaymentsProjectResponse>>;
|
|
97
105
|
};
|
|
98
106
|
};
|
|
99
107
|
products: {
|
|
100
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsProductsResponse
|
|
101
|
-
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsProductsResponse
|
|
102
|
-
listByProject: (projectIdOrExternalId: string, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsProductsResponse
|
|
103
|
-
queryByProject: (projectIdOrExternalId: string, query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsProductsResponse
|
|
104
|
-
create: (projectIdOrExternalId: string, payload: AyPaymentsCreateProductPayload) => Promise<AyPaymentsProductResponse
|
|
108
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsProductsResponse>>;
|
|
109
|
+
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsProductsResponse>>;
|
|
110
|
+
listByProject: (projectIdOrExternalId: string, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsProductsResponse>>;
|
|
111
|
+
queryByProject: (projectIdOrExternalId: string, query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsProductsResponse>>;
|
|
112
|
+
create: (projectIdOrExternalId: string, payload: AyPaymentsCreateProductPayload) => Promise<AyPaymentsApiResult<AyPaymentsProductResponse>>;
|
|
105
113
|
createGlobal: (payload: AyPaymentsCreateProductPayload & {
|
|
106
114
|
projectId: string;
|
|
107
|
-
}) => Promise<AyPaymentsProductResponse
|
|
108
|
-
update: (projectIdOrExternalId: string, productId: string, payload: AyPaymentsUpdateProductPayload) => Promise<AyPaymentsProductResponse
|
|
115
|
+
}) => Promise<AyPaymentsApiResult<AyPaymentsProductResponse>>;
|
|
116
|
+
update: (projectIdOrExternalId: string, productId: string, payload: AyPaymentsUpdateProductPayload) => Promise<AyPaymentsApiResult<AyPaymentsProductResponse>>;
|
|
109
117
|
updateGlobal: (productId: string, payload: AyPaymentsUpdateProductPayload & {
|
|
110
118
|
projectId?: string;
|
|
111
|
-
}) => Promise<AyPaymentsProductResponse
|
|
112
|
-
delete: (projectIdOrExternalId: string, productId: string) => Promise<AyPaymentsDeleteResponse
|
|
113
|
-
deleteGlobal: (productId: string) => Promise<AyPaymentsDeleteResponse
|
|
119
|
+
}) => Promise<AyPaymentsApiResult<AyPaymentsProductResponse>>;
|
|
120
|
+
delete: (projectIdOrExternalId: string, productId: string) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
121
|
+
deleteGlobal: (productId: string) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
122
|
+
};
|
|
123
|
+
coupons: {
|
|
124
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsCouponsResponse>>;
|
|
125
|
+
query: (query: AyPaymentsCouponQueryInput, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsCouponsResponse>>;
|
|
126
|
+
create: (payload: AyPaymentsCreateCouponPayload) => Promise<AyPaymentsApiResult<AyPaymentsCouponResponse>>;
|
|
127
|
+
get: (couponId: string) => Promise<AyPaymentsApiResult<AyPaymentsCouponResponse>>;
|
|
128
|
+
update: (couponId: string, payload: AyPaymentsUpdateCouponPayload) => Promise<AyPaymentsApiResult<AyPaymentsCouponResponse>>;
|
|
129
|
+
delete: (couponId: string) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
114
130
|
};
|
|
115
131
|
checkouts: {
|
|
116
|
-
calculate: (payload: AyPaymentsCalculateCheckoutPayload) => Promise<AyPaymentsCheckoutCalculationResponse
|
|
117
|
-
create: (payload: AyPaymentsCheckoutPayload) => Promise<AyPaymentsCreateCheckoutResponse
|
|
132
|
+
calculate: (payload: AyPaymentsCalculateCheckoutPayload) => Promise<AyPaymentsApiResult<AyPaymentsCheckoutCalculationResponse>>;
|
|
133
|
+
create: (payload: AyPaymentsCheckoutPayload) => Promise<AyPaymentsApiResult<AyPaymentsCreateCheckoutResponse>>;
|
|
118
134
|
};
|
|
119
135
|
orders: {
|
|
120
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsOrdersResponse
|
|
121
|
-
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsOrdersResponse
|
|
122
|
-
listByProject: (projectIdOrExternalId: string, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsOrdersResponse
|
|
123
|
-
queryByProject: (projectIdOrExternalId: string, query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsOrdersResponse
|
|
124
|
-
createManual: (projectIdOrExternalId: string, payload: AyPaymentsCreateManualOrderPayload) => Promise<AyPaymentsOrderResponse & {
|
|
136
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsOrdersResponse>>;
|
|
137
|
+
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsOrdersResponse>>;
|
|
138
|
+
listByProject: (projectIdOrExternalId: string, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsOrdersResponse>>;
|
|
139
|
+
queryByProject: (projectIdOrExternalId: string, query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsOrdersResponse>>;
|
|
140
|
+
createManual: (projectIdOrExternalId: string, payload: AyPaymentsCreateManualOrderPayload) => Promise<AyPaymentsApiResult<AyPaymentsOrderResponse & {
|
|
125
141
|
created: boolean;
|
|
126
142
|
checkoutUrl?: string;
|
|
127
|
-
}
|
|
143
|
+
}>>;
|
|
128
144
|
};
|
|
129
145
|
customers: {
|
|
130
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsCustomersResponse
|
|
131
|
-
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsCustomersResponse
|
|
132
|
-
create: (payload: AyPaymentsCreateCustomerPayload) => Promise<AyPaymentsCustomerResponse
|
|
133
|
-
delete: (customerId: string) => Promise<AyPaymentsDeleteResponse
|
|
146
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsCustomersResponse>>;
|
|
147
|
+
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsCustomersResponse>>;
|
|
148
|
+
create: (payload: AyPaymentsCreateCustomerPayload) => Promise<AyPaymentsApiResult<AyPaymentsCustomerResponse>>;
|
|
149
|
+
delete: (customerId: string) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
134
150
|
};
|
|
135
151
|
admins: {
|
|
136
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsAdminsResponse
|
|
137
|
-
create: (payload: AyPaymentsCreateAdminPayload) => Promise<{
|
|
152
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsAdminsResponse>>;
|
|
153
|
+
create: (payload: AyPaymentsCreateAdminPayload) => Promise<AyPaymentsApiResult<{
|
|
138
154
|
admin: AyPaymentsAdmin;
|
|
139
|
-
}
|
|
140
|
-
delete: (adminId: string) => Promise<AyPaymentsDeleteResponse
|
|
155
|
+
}>>;
|
|
156
|
+
delete: (adminId: string) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
141
157
|
};
|
|
142
158
|
merchants: {
|
|
143
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsTenantsResponse
|
|
144
|
-
create: (payload: AyPaymentsCreateTenantPayload) => Promise<
|
|
159
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsTenantsResponse>>;
|
|
160
|
+
create: (payload: AyPaymentsCreateTenantPayload) => Promise<AyPaymentsApiResult<{
|
|
161
|
+
tenant: AyPaymentsTenant;
|
|
162
|
+
}>>;
|
|
145
163
|
delete: (tenantId: string, options?: {
|
|
146
164
|
cascade?: boolean;
|
|
147
|
-
}) => Promise<AyPaymentsDeleteResponse
|
|
165
|
+
}) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
148
166
|
};
|
|
149
167
|
tenants: {
|
|
150
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsTenantsResponse
|
|
151
|
-
create: (payload: AyPaymentsCreateTenantPayload) => Promise<
|
|
168
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsTenantsResponse>>;
|
|
169
|
+
create: (payload: AyPaymentsCreateTenantPayload) => Promise<AyPaymentsApiResult<{
|
|
170
|
+
tenant: AyPaymentsTenant;
|
|
171
|
+
}>>;
|
|
152
172
|
delete: (tenantId: string, options?: {
|
|
153
173
|
cascade?: boolean;
|
|
154
|
-
}) => Promise<AyPaymentsDeleteResponse
|
|
174
|
+
}) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
155
175
|
};
|
|
156
176
|
apiKeys: {
|
|
157
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiKeysResponse
|
|
158
|
-
create: (payload: AyPaymentsCreateApiKeyPayload) => Promise<AyPaymentsCreateApiKeyResponse
|
|
159
|
-
revoke: (apiKeyId: string) => Promise<AyPaymentsApiKeyResponse
|
|
160
|
-
setStatus: (apiKeyId: string, status: "active" | "revoked") => Promise<AyPaymentsApiKeyResponse
|
|
161
|
-
delete: (apiKeyId: string) => Promise<AyPaymentsDeleteResponse
|
|
177
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsApiKeysResponse>>;
|
|
178
|
+
create: (payload: AyPaymentsCreateApiKeyPayload) => Promise<AyPaymentsApiResult<AyPaymentsCreateApiKeyResponse>>;
|
|
179
|
+
revoke: (apiKeyId: string) => Promise<AyPaymentsApiResult<AyPaymentsApiKeyResponse>>;
|
|
180
|
+
setStatus: (apiKeyId: string, status: "active" | "revoked") => Promise<AyPaymentsApiResult<AyPaymentsApiKeyResponse>>;
|
|
181
|
+
delete: (apiKeyId: string) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
162
182
|
};
|
|
163
183
|
commissions: {
|
|
164
|
-
get: () => Promise<AyPaymentsPlatformCommissionResponse
|
|
165
|
-
update: (payload: AyPaymentsUpdateCommissionPayload) => Promise<AyPaymentsPlatformCommissionResponse
|
|
184
|
+
get: () => Promise<AyPaymentsApiResult<AyPaymentsPlatformCommissionResponse>>;
|
|
185
|
+
update: (payload: AyPaymentsUpdateCommissionPayload) => Promise<AyPaymentsApiResult<AyPaymentsPlatformCommissionResponse>>;
|
|
166
186
|
};
|
|
167
187
|
analytics: {
|
|
168
|
-
overview: () => Promise<
|
|
188
|
+
overview: () => Promise<AyPaymentsApiResult<AyPaymentsOverviewResponse>>;
|
|
169
189
|
};
|
|
170
190
|
logs: {
|
|
171
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsLogsResponse
|
|
172
|
-
clear: (category: "login" | "general" | "webhook" | "order" | string) => Promise<{
|
|
191
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsLogsResponse>>;
|
|
192
|
+
clear: (category: "login" | "general" | "webhook" | "order" | string) => Promise<AyPaymentsApiResult<{
|
|
173
193
|
category: string;
|
|
174
194
|
deleted: number;
|
|
175
|
-
}
|
|
195
|
+
}>>;
|
|
176
196
|
};
|
|
177
197
|
};
|
|
178
198
|
auth: {
|
|
179
199
|
admin: {
|
|
180
|
-
me: () => Promise<{
|
|
200
|
+
me: () => Promise<AyPaymentsApiResult<{
|
|
181
201
|
admin: AyPaymentsAdmin;
|
|
182
|
-
}
|
|
183
|
-
login: (payload: AyPaymentsLoginPayload) => Promise<
|
|
184
|
-
logout: () => Promise<AyPaymentsDeleteResponse
|
|
202
|
+
}>>;
|
|
203
|
+
login: (payload: AyPaymentsLoginPayload) => Promise<AyPaymentsApiResult<AyPaymentsAuthAdminResponse>>;
|
|
204
|
+
logout: () => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
185
205
|
updateProfile: (payload: {
|
|
186
206
|
fullName: string;
|
|
187
|
-
}) => Promise<
|
|
207
|
+
}) => Promise<AyPaymentsApiResult<{
|
|
208
|
+
admin: AyPaymentsAdmin;
|
|
209
|
+
}>>;
|
|
188
210
|
changePassword: (payload: {
|
|
189
211
|
currentPassword: string;
|
|
190
212
|
newPassword: string;
|
|
191
213
|
confirmPassword: string;
|
|
192
|
-
}) => Promise<
|
|
214
|
+
}) => Promise<AyPaymentsApiResult<{
|
|
215
|
+
admin: AyPaymentsAdmin;
|
|
216
|
+
}>>;
|
|
193
217
|
};
|
|
194
218
|
tenant: {
|
|
195
|
-
me: () => Promise<
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
219
|
+
me: () => Promise<AyPaymentsApiResult<{
|
|
220
|
+
tenant: AyPaymentsTenant;
|
|
221
|
+
}>>;
|
|
222
|
+
login: (payload: AyPaymentsLoginPayload) => Promise<AyPaymentsApiResult<AyPaymentsAuthTenantResponse>>;
|
|
223
|
+
logout: () => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
224
|
+
register: (payload: AyPaymentsTenantRegisterPayload) => Promise<AyPaymentsApiResult<AyPaymentsAuthTenantResponse>>;
|
|
199
225
|
updateProfile: (payload: {
|
|
200
226
|
name?: string;
|
|
201
227
|
fullName?: string;
|
|
202
228
|
metadata?: Record<string, unknown>;
|
|
203
|
-
}) => Promise<
|
|
229
|
+
}) => Promise<AyPaymentsApiResult<{
|
|
230
|
+
tenant: AyPaymentsTenant;
|
|
231
|
+
}>>;
|
|
204
232
|
changePassword: (payload: {
|
|
205
233
|
currentPassword: string;
|
|
206
234
|
newPassword: string;
|
|
207
235
|
confirmPassword: string;
|
|
208
|
-
}) => Promise<
|
|
236
|
+
}) => Promise<AyPaymentsApiResult<{
|
|
237
|
+
tenant: AyPaymentsTenant;
|
|
238
|
+
}>>;
|
|
209
239
|
};
|
|
210
240
|
customer: {
|
|
211
|
-
me: () => Promise<
|
|
212
|
-
login: (payload: AyPaymentsLoginPayload) => Promise<
|
|
213
|
-
logout: () => Promise<AyPaymentsDeleteResponse
|
|
214
|
-
register: (payload: AyPaymentsCustomerRegisterPayload) => Promise<
|
|
215
|
-
resetPassword: (email: string) => Promise<{
|
|
241
|
+
me: () => Promise<AyPaymentsApiResult<AyPaymentsAuthCustomerResponse>>;
|
|
242
|
+
login: (payload: AyPaymentsLoginPayload) => Promise<AyPaymentsApiResult<AyPaymentsAuthCustomerResponse>>;
|
|
243
|
+
logout: () => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
244
|
+
register: (payload: AyPaymentsCustomerRegisterPayload) => Promise<AyPaymentsApiResult<AyPaymentsAuthCustomerResponse>>;
|
|
245
|
+
resetPassword: (email: string) => Promise<AyPaymentsApiResult<{
|
|
216
246
|
message: string;
|
|
217
|
-
}
|
|
247
|
+
}>>;
|
|
218
248
|
};
|
|
219
249
|
};
|
|
220
250
|
profile: {
|
|
221
|
-
orders: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsProfileOrdersResponse
|
|
251
|
+
orders: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsProfileOrdersResponse>>;
|
|
222
252
|
update: (payload: {
|
|
223
253
|
fullName: string;
|
|
224
254
|
bio?: string;
|
|
225
255
|
website?: string;
|
|
226
256
|
location?: string;
|
|
227
|
-
}) => Promise<{
|
|
257
|
+
}) => Promise<AyPaymentsApiResult<{
|
|
228
258
|
message: string;
|
|
229
|
-
}
|
|
259
|
+
}>>;
|
|
230
260
|
changePassword: (payload: {
|
|
231
261
|
oldPassword: string;
|
|
232
262
|
newPassword: string;
|
|
233
|
-
}) => Promise<{
|
|
263
|
+
}) => Promise<AyPaymentsApiResult<{
|
|
234
264
|
message: string;
|
|
235
|
-
}
|
|
236
|
-
deleteAccount: () => Promise<AyPaymentsDeleteResponse
|
|
265
|
+
}>>;
|
|
266
|
+
deleteAccount: () => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
237
267
|
};
|
|
238
268
|
projects: {
|
|
239
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsProjectListResponse
|
|
240
|
-
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsProjectListResponse
|
|
241
|
-
get: (projectIdOrExternalId: string) => Promise<AyPaymentsProjectResponse
|
|
242
|
-
create: (payload: AyPaymentsCreateProjectPayload) => Promise<AyPaymentsCreateProjectResponse
|
|
243
|
-
update: (projectIdOrExternalId: string, payload: AyPaymentsUpdateProjectPayload) => Promise<AyPaymentsProjectResponse
|
|
244
|
-
delete: (projectIdOrExternalId: string) => Promise<AyPaymentsDeleteResponse
|
|
269
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsProjectListResponse>>;
|
|
270
|
+
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsProjectListResponse>>;
|
|
271
|
+
get: (projectIdOrExternalId: string) => Promise<AyPaymentsApiResult<AyPaymentsProjectResponse>>;
|
|
272
|
+
create: (payload: AyPaymentsCreateProjectPayload) => Promise<AyPaymentsApiResult<AyPaymentsCreateProjectResponse>>;
|
|
273
|
+
update: (projectIdOrExternalId: string, payload: AyPaymentsUpdateProjectPayload) => Promise<AyPaymentsApiResult<AyPaymentsProjectResponse>>;
|
|
274
|
+
delete: (projectIdOrExternalId: string) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
245
275
|
commission: {
|
|
246
|
-
get: (projectIdOrExternalId: string) => Promise<AyPaymentsProjectCommissionResponse
|
|
247
|
-
update: (projectIdOrExternalId: string, payload: AyPaymentsUpdateProjectCommissionPayload) => Promise<AyPaymentsProjectResponse
|
|
276
|
+
get: (projectIdOrExternalId: string) => Promise<AyPaymentsApiResult<AyPaymentsProjectCommissionResponse>>;
|
|
277
|
+
update: (projectIdOrExternalId: string, payload: AyPaymentsUpdateProjectCommissionPayload) => Promise<AyPaymentsApiResult<AyPaymentsProjectResponse>>;
|
|
248
278
|
};
|
|
249
279
|
accounts: {
|
|
250
|
-
oauth: (payload: AyPaymentsOAuthPayload) => Promise<AyPaymentsOAuthResponse
|
|
251
|
-
list: (projectIdOrExternalId: string) => Promise<
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
update: (projectIdOrExternalId: string, connectionId: string, payload: AyPaymentsUpdateConnectionPayload) => Promise<unknown>;
|
|
256
|
-
delete: (projectIdOrExternalId: string, connectionId: string) => Promise<AyPaymentsProjectResponse>;
|
|
280
|
+
oauth: (payload: AyPaymentsOAuthPayload) => Promise<AyPaymentsApiResult<AyPaymentsOAuthResponse>>;
|
|
281
|
+
list: (projectIdOrExternalId: string) => Promise<AyPaymentsApiResult<AyPaymentsProjectAccountsResponse>>;
|
|
282
|
+
create: (projectIdOrExternalId: string, payload: AyPaymentsCreateConnectionPayload) => Promise<AyPaymentsApiResult<AyPaymentsConnectionResponse>>;
|
|
283
|
+
update: (projectIdOrExternalId: string, connectionId: string, payload: AyPaymentsUpdateConnectionPayload) => Promise<AyPaymentsApiResult<AyPaymentsConnectionResponse>>;
|
|
284
|
+
delete: (projectIdOrExternalId: string, connectionId: string) => Promise<AyPaymentsApiResult<AyPaymentsProjectResponse>>;
|
|
257
285
|
};
|
|
258
286
|
};
|
|
259
287
|
products: {
|
|
260
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsProductsResponse
|
|
261
|
-
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsProductsResponse
|
|
262
|
-
listByProject: (projectIdOrExternalId: string, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsProductsResponse
|
|
263
|
-
queryByProject: (projectIdOrExternalId: string, query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsProductsResponse
|
|
264
|
-
create: (projectIdOrExternalId: string, payload: AyPaymentsCreateProductPayload) => Promise<AyPaymentsProductResponse
|
|
288
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsProductsResponse>>;
|
|
289
|
+
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsProductsResponse>>;
|
|
290
|
+
listByProject: (projectIdOrExternalId: string, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsProductsResponse>>;
|
|
291
|
+
queryByProject: (projectIdOrExternalId: string, query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsProductsResponse>>;
|
|
292
|
+
create: (projectIdOrExternalId: string, payload: AyPaymentsCreateProductPayload) => Promise<AyPaymentsApiResult<AyPaymentsProductResponse>>;
|
|
265
293
|
createGlobal: (payload: AyPaymentsCreateProductPayload & {
|
|
266
294
|
projectId: string;
|
|
267
|
-
}) => Promise<AyPaymentsProductResponse
|
|
268
|
-
update: (projectIdOrExternalId: string, productId: string, payload: AyPaymentsUpdateProductPayload) => Promise<AyPaymentsProductResponse
|
|
295
|
+
}) => Promise<AyPaymentsApiResult<AyPaymentsProductResponse>>;
|
|
296
|
+
update: (projectIdOrExternalId: string, productId: string, payload: AyPaymentsUpdateProductPayload) => Promise<AyPaymentsApiResult<AyPaymentsProductResponse>>;
|
|
269
297
|
updateGlobal: (productId: string, payload: AyPaymentsUpdateProductPayload & {
|
|
270
298
|
projectId?: string;
|
|
271
|
-
}) => Promise<AyPaymentsProductResponse
|
|
272
|
-
delete: (projectIdOrExternalId: string, productId: string) => Promise<AyPaymentsDeleteResponse
|
|
273
|
-
deleteGlobal: (productId: string) => Promise<AyPaymentsDeleteResponse
|
|
299
|
+
}) => Promise<AyPaymentsApiResult<AyPaymentsProductResponse>>;
|
|
300
|
+
delete: (projectIdOrExternalId: string, productId: string) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
301
|
+
deleteGlobal: (productId: string) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
302
|
+
};
|
|
303
|
+
coupons: {
|
|
304
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsCouponsResponse>>;
|
|
305
|
+
query: (query: AyPaymentsCouponQueryInput, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsCouponsResponse>>;
|
|
306
|
+
create: (payload: AyPaymentsCreateCouponPayload) => Promise<AyPaymentsApiResult<AyPaymentsCouponResponse>>;
|
|
307
|
+
get: (couponId: string) => Promise<AyPaymentsApiResult<AyPaymentsCouponResponse>>;
|
|
308
|
+
update: (couponId: string, payload: AyPaymentsUpdateCouponPayload) => Promise<AyPaymentsApiResult<AyPaymentsCouponResponse>>;
|
|
309
|
+
delete: (couponId: string) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
274
310
|
};
|
|
275
311
|
checkouts: {
|
|
276
|
-
calculate: (payload: AyPaymentsCalculateCheckoutPayload) => Promise<AyPaymentsCheckoutCalculationResponse
|
|
277
|
-
create: (payload: AyPaymentsCheckoutPayload) => Promise<AyPaymentsCreateCheckoutResponse
|
|
312
|
+
calculate: (payload: AyPaymentsCalculateCheckoutPayload) => Promise<AyPaymentsApiResult<AyPaymentsCheckoutCalculationResponse>>;
|
|
313
|
+
create: (payload: AyPaymentsCheckoutPayload) => Promise<AyPaymentsApiResult<AyPaymentsCreateCheckoutResponse>>;
|
|
278
314
|
};
|
|
279
315
|
orders: {
|
|
280
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsOrdersResponse
|
|
281
|
-
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsOrdersResponse
|
|
282
|
-
listByProject: (projectIdOrExternalId: string, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsOrdersResponse
|
|
283
|
-
queryByProject: (projectIdOrExternalId: string, query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsOrdersResponse
|
|
284
|
-
createManual: (projectIdOrExternalId: string, payload: AyPaymentsCreateManualOrderPayload) => Promise<AyPaymentsOrderResponse & {
|
|
316
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsOrdersResponse>>;
|
|
317
|
+
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsOrdersResponse>>;
|
|
318
|
+
listByProject: (projectIdOrExternalId: string, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsOrdersResponse>>;
|
|
319
|
+
queryByProject: (projectIdOrExternalId: string, query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsOrdersResponse>>;
|
|
320
|
+
createManual: (projectIdOrExternalId: string, payload: AyPaymentsCreateManualOrderPayload) => Promise<AyPaymentsApiResult<AyPaymentsOrderResponse & {
|
|
285
321
|
created: boolean;
|
|
286
322
|
checkoutUrl?: string;
|
|
287
|
-
}
|
|
323
|
+
}>>;
|
|
288
324
|
};
|
|
289
325
|
customers: {
|
|
290
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsCustomersResponse
|
|
291
|
-
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsCustomersResponse
|
|
292
|
-
create: (payload: AyPaymentsCreateCustomerPayload) => Promise<AyPaymentsCustomerResponse
|
|
293
|
-
delete: (customerId: string) => Promise<AyPaymentsDeleteResponse
|
|
326
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsCustomersResponse>>;
|
|
327
|
+
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsCustomersResponse>>;
|
|
328
|
+
create: (payload: AyPaymentsCreateCustomerPayload) => Promise<AyPaymentsApiResult<AyPaymentsCustomerResponse>>;
|
|
329
|
+
delete: (customerId: string) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
294
330
|
};
|
|
295
331
|
clients: {
|
|
296
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsCustomersResponse
|
|
297
|
-
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsCustomersResponse
|
|
298
|
-
create: (payload: AyPaymentsCreateCustomerPayload) => Promise<AyPaymentsCustomerResponse
|
|
299
|
-
delete: (customerId: string) => Promise<AyPaymentsDeleteResponse
|
|
332
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsCustomersResponse>>;
|
|
333
|
+
query: (query: AyPaymentsQuery, pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsCustomersResponse>>;
|
|
334
|
+
create: (payload: AyPaymentsCreateCustomerPayload) => Promise<AyPaymentsApiResult<AyPaymentsCustomerResponse>>;
|
|
335
|
+
delete: (customerId: string) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
300
336
|
};
|
|
301
337
|
admins: {
|
|
302
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsAdminsResponse
|
|
303
|
-
create: (payload: AyPaymentsCreateAdminPayload) => Promise<{
|
|
338
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsAdminsResponse>>;
|
|
339
|
+
create: (payload: AyPaymentsCreateAdminPayload) => Promise<AyPaymentsApiResult<{
|
|
304
340
|
admin: AyPaymentsAdmin;
|
|
305
|
-
}
|
|
306
|
-
delete: (adminId: string) => Promise<AyPaymentsDeleteResponse
|
|
341
|
+
}>>;
|
|
342
|
+
delete: (adminId: string) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
307
343
|
};
|
|
308
344
|
merchants: {
|
|
309
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsTenantsResponse
|
|
310
|
-
create: (payload: AyPaymentsCreateTenantPayload) => Promise<
|
|
345
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsTenantsResponse>>;
|
|
346
|
+
create: (payload: AyPaymentsCreateTenantPayload) => Promise<AyPaymentsApiResult<{
|
|
347
|
+
tenant: AyPaymentsTenant;
|
|
348
|
+
}>>;
|
|
311
349
|
delete: (tenantId: string, options?: {
|
|
312
350
|
cascade?: boolean;
|
|
313
|
-
}) => Promise<AyPaymentsDeleteResponse
|
|
351
|
+
}) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
314
352
|
};
|
|
315
353
|
tenants: {
|
|
316
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsTenantsResponse
|
|
317
|
-
create: (payload: AyPaymentsCreateTenantPayload) => Promise<
|
|
354
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsTenantsResponse>>;
|
|
355
|
+
create: (payload: AyPaymentsCreateTenantPayload) => Promise<AyPaymentsApiResult<{
|
|
356
|
+
tenant: AyPaymentsTenant;
|
|
357
|
+
}>>;
|
|
318
358
|
delete: (tenantId: string, options?: {
|
|
319
359
|
cascade?: boolean;
|
|
320
|
-
}) => Promise<AyPaymentsDeleteResponse
|
|
360
|
+
}) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
321
361
|
};
|
|
322
362
|
apiKeys: {
|
|
323
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiKeysResponse
|
|
324
|
-
create: (payload: AyPaymentsCreateApiKeyPayload) => Promise<AyPaymentsCreateApiKeyResponse
|
|
325
|
-
revoke: (apiKeyId: string) => Promise<AyPaymentsApiKeyResponse
|
|
326
|
-
setStatus: (apiKeyId: string, status: "active" | "revoked") => Promise<AyPaymentsApiKeyResponse
|
|
327
|
-
delete: (apiKeyId: string) => Promise<AyPaymentsDeleteResponse
|
|
363
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsApiKeysResponse>>;
|
|
364
|
+
create: (payload: AyPaymentsCreateApiKeyPayload) => Promise<AyPaymentsApiResult<AyPaymentsCreateApiKeyResponse>>;
|
|
365
|
+
revoke: (apiKeyId: string) => Promise<AyPaymentsApiResult<AyPaymentsApiKeyResponse>>;
|
|
366
|
+
setStatus: (apiKeyId: string, status: "active" | "revoked") => Promise<AyPaymentsApiResult<AyPaymentsApiKeyResponse>>;
|
|
367
|
+
delete: (apiKeyId: string) => Promise<AyPaymentsApiResult<AyPaymentsDeleteResponse>>;
|
|
328
368
|
};
|
|
329
369
|
commissions: {
|
|
330
|
-
get: () => Promise<AyPaymentsPlatformCommissionResponse
|
|
331
|
-
update: (payload: AyPaymentsUpdateCommissionPayload) => Promise<AyPaymentsPlatformCommissionResponse
|
|
370
|
+
get: () => Promise<AyPaymentsApiResult<AyPaymentsPlatformCommissionResponse>>;
|
|
371
|
+
update: (payload: AyPaymentsUpdateCommissionPayload) => Promise<AyPaymentsApiResult<AyPaymentsPlatformCommissionResponse>>;
|
|
332
372
|
};
|
|
333
373
|
analytics: {
|
|
334
|
-
overview: () => Promise<
|
|
374
|
+
overview: () => Promise<AyPaymentsApiResult<AyPaymentsOverviewResponse>>;
|
|
335
375
|
};
|
|
336
376
|
logs: {
|
|
337
|
-
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsLogsResponse
|
|
338
|
-
clear: (category: "login" | "general" | "webhook" | "order" | string) => Promise<{
|
|
377
|
+
list: (pagination?: AyPaymentsPaginationQuery) => Promise<AyPaymentsApiResult<AyPaymentsLogsResponse>>;
|
|
378
|
+
clear: (category: "login" | "general" | "webhook" | "order" | string) => Promise<AyPaymentsApiResult<{
|
|
339
379
|
category: string;
|
|
340
380
|
deleted: number;
|
|
341
|
-
}
|
|
381
|
+
}>>;
|
|
342
382
|
};
|
|
343
383
|
isAuthenticated(): boolean;
|
|
344
384
|
}
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../lib/client.ts"],"names":[],"mappings":"AAAA,OAAc,EAAc,aAAa,EAAE,kBAAkB,EAAgB,MAAM,OAAO,CAAC;AAE3F,OAAO,KAAK,EACV,eAAe,EACf,wBAAwB,EAExB,wBAAwB,EACxB,yBAAyB,EACzB,kCAAkC,EAClC,qCAAqC,EACrC,yBAAyB,EACzB,uBAAuB,EACvB,4BAA4B,EAC5B,6BAA6B,EAC7B,8BAA8B,EAC9B,gCAAgC,EAChC,iCAAiC,EACjC,+BAA+B,EAC/B,iCAAiC,EACjC,kCAAkC,EAClC,8BAA8B,EAC9B,8BAA8B,EAC9B,+BAA+B,EAC/B,6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