@fiddupay/fiddupay-node 2.5.0 → 2.5.2
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 +7 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +4 -6
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -16
- package/dist/index.js.map +1 -1
- package/dist/resources/address_only.d.ts +42 -0
- package/dist/resources/address_only.d.ts.map +1 -0
- package/dist/resources/address_only.js +52 -0
- package/dist/resources/address_only.js.map +1 -0
- package/dist/resources/balances.d.ts +3 -3
- package/dist/resources/balances.d.ts.map +1 -1
- package/dist/resources/balances.js +14 -16
- package/dist/resources/balances.js.map +1 -1
- package/dist/resources/customers.d.ts +66 -10
- package/dist/resources/customers.d.ts.map +1 -1
- package/dist/resources/customers.js +63 -6
- package/dist/resources/customers.js.map +1 -1
- package/dist/resources/invoices.d.ts +16 -8
- package/dist/resources/invoices.d.ts.map +1 -1
- package/dist/resources/invoices.js +23 -4
- package/dist/resources/invoices.js.map +1 -1
- package/dist/resources/merchants.d.ts +48 -49
- package/dist/resources/merchants.d.ts.map +1 -1
- package/dist/resources/merchants.js +64 -31
- package/dist/resources/merchants.js.map +1 -1
- package/dist/resources/payments.d.ts +15 -6
- package/dist/resources/payments.d.ts.map +1 -1
- package/dist/resources/payments.js +33 -19
- package/dist/resources/payments.js.map +1 -1
- package/dist/resources/public.d.ts +22 -0
- package/dist/resources/public.d.ts.map +1 -0
- package/dist/resources/public.js +33 -0
- package/dist/resources/public.js.map +1 -0
- package/dist/resources/refunds.d.ts +2 -1
- package/dist/resources/refunds.d.ts.map +1 -1
- package/dist/resources/refunds.js +12 -6
- package/dist/resources/refunds.js.map +1 -1
- package/dist/resources/sandbox.d.ts +0 -6
- package/dist/resources/sandbox.d.ts.map +1 -1
- package/dist/resources/sandbox.js +0 -6
- package/dist/resources/sandbox.js.map +1 -1
- package/dist/resources/security.d.ts +14 -0
- package/dist/resources/security.d.ts.map +1 -1
- package/dist/resources/security.js +12 -0
- package/dist/resources/security.js.map +1 -1
- package/dist/resources/transactions.d.ts +4 -1
- package/dist/resources/transactions.d.ts.map +1 -1
- package/dist/resources/transactions.js +12 -2
- package/dist/resources/transactions.js.map +1 -1
- package/dist/resources/wallets.d.ts +12 -25
- package/dist/resources/wallets.d.ts.map +1 -1
- package/dist/resources/wallets.js +12 -28
- package/dist/resources/wallets.js.map +1 -1
- package/dist/resources/webhooks.d.ts.map +1 -1
- package/dist/resources/webhooks.js +1 -3
- package/dist/resources/webhooks.js.map +1 -1
- package/dist/resources/withdrawals.d.ts +16 -4
- package/dist/resources/withdrawals.d.ts.map +1 -1
- package/dist/resources/withdrawals.js +28 -11
- package/dist/resources/withdrawals.js.map +1 -1
- package/dist/types/index.d.ts +300 -65
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +7 -6
- package/dist/src/client.d.ts +0 -19
- package/dist/src/client.d.ts.map +0 -1
- package/dist/src/client.js +0 -146
- package/dist/src/client.js.map +0 -1
- package/dist/src/errors/index.d.ts +0 -28
- package/dist/src/errors/index.d.ts.map +0 -1
- package/dist/src/errors/index.js +0 -59
- package/dist/src/errors/index.js.map +0 -1
- package/dist/src/index.d.ts +0 -41
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -84
- package/dist/src/index.js.map +0 -1
- package/dist/src/resources/analytics.d.ts +0 -23
- package/dist/src/resources/analytics.d.ts.map +0 -1
- package/dist/src/resources/analytics.js +0 -36
- package/dist/src/resources/analytics.js.map +0 -1
- package/dist/src/resources/balances.d.ts +0 -23
- package/dist/src/resources/balances.d.ts.map +0 -1
- package/dist/src/resources/balances.js +0 -54
- package/dist/src/resources/balances.js.map +0 -1
- package/dist/src/resources/contact.d.ts +0 -19
- package/dist/src/resources/contact.d.ts.map +0 -1
- package/dist/src/resources/contact.js +0 -17
- package/dist/src/resources/contact.js.map +0 -1
- package/dist/src/resources/customers.d.ts +0 -113
- package/dist/src/resources/customers.d.ts.map +0 -1
- package/dist/src/resources/customers.js +0 -113
- package/dist/src/resources/customers.js.map +0 -1
- package/dist/src/resources/invoices.d.ts +0 -21
- package/dist/src/resources/invoices.d.ts.map +0 -1
- package/dist/src/resources/invoices.js +0 -33
- package/dist/src/resources/invoices.js.map +0 -1
- package/dist/src/resources/merchants.d.ts +0 -120
- package/dist/src/resources/merchants.d.ts.map +0 -1
- package/dist/src/resources/merchants.js +0 -139
- package/dist/src/resources/merchants.js.map +0 -1
- package/dist/src/resources/payments.d.ts +0 -60
- package/dist/src/resources/payments.d.ts.map +0 -1
- package/dist/src/resources/payments.js +0 -188
- package/dist/src/resources/payments.js.map +0 -1
- package/dist/src/resources/refunds.d.ts +0 -31
- package/dist/src/resources/refunds.d.ts.map +0 -1
- package/dist/src/resources/refunds.js +0 -66
- package/dist/src/resources/refunds.js.map +0 -1
- package/dist/src/resources/sandbox.d.ts +0 -11
- package/dist/src/resources/sandbox.d.ts.map +0 -1
- package/dist/src/resources/sandbox.js +0 -16
- package/dist/src/resources/sandbox.js.map +0 -1
- package/dist/src/resources/security.d.ts +0 -56
- package/dist/src/resources/security.d.ts.map +0 -1
- package/dist/src/resources/security.js +0 -70
- package/dist/src/resources/security.js.map +0 -1
- package/dist/src/resources/transactions.d.ts +0 -25
- package/dist/src/resources/transactions.d.ts.map +0 -1
- package/dist/src/resources/transactions.js +0 -21
- package/dist/src/resources/transactions.js.map +0 -1
- package/dist/src/resources/wallets.d.ts +0 -61
- package/dist/src/resources/wallets.d.ts.map +0 -1
- package/dist/src/resources/wallets.js +0 -69
- package/dist/src/resources/wallets.js.map +0 -1
- package/dist/src/resources/webhooks.d.ts +0 -17
- package/dist/src/resources/webhooks.d.ts.map +0 -1
- package/dist/src/resources/webhooks.js +0 -128
- package/dist/src/resources/webhooks.js.map +0 -1
- package/dist/src/resources/withdrawals.d.ts +0 -39
- package/dist/src/resources/withdrawals.d.ts.map +0 -1
- package/dist/src/resources/withdrawals.js +0 -68
- package/dist/src/resources/withdrawals.js.map +0 -1
- package/dist/src/types/index.d.ts +0 -581
- package/dist/src/types/index.d.ts.map +0 -1
- package/dist/src/types/index.js +0 -8
- package/dist/src/types/index.js.map +0 -1
- package/dist/tests/error-handling.test.d.ts +0 -2
- package/dist/tests/error-handling.test.d.ts.map +0 -1
- package/dist/tests/error-handling.test.js +0 -145
- package/dist/tests/error-handling.test.js.map +0 -1
- package/dist/tests/fiddupay.test.d.ts +0 -2
- package/dist/tests/fiddupay.test.d.ts.map +0 -1
- package/dist/tests/fiddupay.test.js +0 -440
- package/dist/tests/fiddupay.test.js.map +0 -1
- package/dist/tests/sdk-integration.test.d.ts +0 -2
- package/dist/tests/sdk-integration.test.d.ts.map +0 -1
- package/dist/tests/sdk-integration.test.js +0 -352
- package/dist/tests/sdk-integration.test.js.map +0 -1
- package/dist/tests/setup.d.ts +0 -2
- package/dist/tests/setup.d.ts.map +0 -1
- package/dist/tests/setup.js +0 -22
- package/dist/tests/setup.js.map +0 -1
- package/dist/tests/webhooks.test.d.ts +0 -2
- package/dist/tests/webhooks.test.d.ts.map +0 -1
- package/dist/tests/webhooks.test.js +0 -63
- package/dist/tests/webhooks.test.js.map +0 -1
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '../client';
|
|
2
|
-
import { MerchantCustomer, CreateCustomerRequest, ProvisionWalletRequest, CustomerBalanceResponse, CustomerWithdrawalRequest, CustomerSweepRequest, ListCustomersParams, RequestOptions, CustomerTransaction, CustomerStatusRequest, CustomerPermissionsRequest, CustomerWalletsResponse } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Customers Resource
|
|
5
|
-
*
|
|
6
|
-
* Allows merchants to manage their platform users and provision unique
|
|
7
|
-
* designated deposit wallets for them.
|
|
8
|
-
*/
|
|
9
|
-
export declare class Customers {
|
|
10
|
-
private client;
|
|
11
|
-
constructor(client: HttpClient);
|
|
12
|
-
/**
|
|
13
|
-
* Register a new customer in the gateway.
|
|
14
|
-
* This is required before provisioning wallets.
|
|
15
|
-
*/
|
|
16
|
-
register(data: CreateCustomerRequest, options?: RequestOptions): Promise<{
|
|
17
|
-
customer: MerchantCustomer;
|
|
18
|
-
message: string;
|
|
19
|
-
}>;
|
|
20
|
-
/**
|
|
21
|
-
* Provision designated wallets for a customer.
|
|
22
|
-
* You can request "evm" (covers ETH, BSC, Polygon, Arb) and/or "solana".
|
|
23
|
-
*/
|
|
24
|
-
createWallets(externalId: string, data: ProvisionWalletRequest, options?: RequestOptions): Promise<CustomerWalletsResponse & {
|
|
25
|
-
message: string;
|
|
26
|
-
}>;
|
|
27
|
-
/**
|
|
28
|
-
* Retrieve the provisioned designated wallets for a customer.
|
|
29
|
-
*/
|
|
30
|
-
getWallets(externalId: string, options?: RequestOptions): Promise<CustomerWalletsResponse>;
|
|
31
|
-
/**
|
|
32
|
-
* Retrieve the current balances for a customer across all their designated wallets.
|
|
33
|
-
*/
|
|
34
|
-
getBalances(externalId: string, options?: RequestOptions): Promise<CustomerBalanceResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* List all registered customers for the merchant with pagination.
|
|
37
|
-
*/
|
|
38
|
-
list(params?: ListCustomersParams, options?: RequestOptions): Promise<{
|
|
39
|
-
customers: MerchantCustomer[];
|
|
40
|
-
total: number;
|
|
41
|
-
has_more: boolean;
|
|
42
|
-
limit: number;
|
|
43
|
-
offset: number;
|
|
44
|
-
}>;
|
|
45
|
-
/**
|
|
46
|
-
* Withdraw funds directly from a customer's designated wallet balance.
|
|
47
|
-
*/
|
|
48
|
-
withdraw(externalId: string, data: CustomerWithdrawalRequest, options?: RequestOptions): Promise<{
|
|
49
|
-
withdrawal: any;
|
|
50
|
-
message: string;
|
|
51
|
-
}>;
|
|
52
|
-
/**
|
|
53
|
-
* Sweep funds from a user's sub-account balance directly into the merchant's master balance.
|
|
54
|
-
* If amount is omitted, sweeps the entire available balance.
|
|
55
|
-
*/
|
|
56
|
-
sweep(externalId: string, data: CustomerSweepRequest, options?: RequestOptions): Promise<{
|
|
57
|
-
swept_amount: string;
|
|
58
|
-
message: string;
|
|
59
|
-
}>;
|
|
60
|
-
/**
|
|
61
|
-
* Deactivate a customer.
|
|
62
|
-
* This preserves their history but prevents further activity.
|
|
63
|
-
*/
|
|
64
|
-
deactivate(externalId: string, options?: RequestOptions): Promise<{
|
|
65
|
-
message: string;
|
|
66
|
-
}>;
|
|
67
|
-
/**
|
|
68
|
-
* Get transaction history for a specific customer.
|
|
69
|
-
*/
|
|
70
|
-
getTransactions(externalId: string, params?: {
|
|
71
|
-
limit?: number;
|
|
72
|
-
offset?: number;
|
|
73
|
-
}, options?: RequestOptions): Promise<{
|
|
74
|
-
transactions: CustomerTransaction[];
|
|
75
|
-
total: number;
|
|
76
|
-
limit: number;
|
|
77
|
-
offset: number;
|
|
78
|
-
external_id: string;
|
|
79
|
-
}>;
|
|
80
|
-
/**
|
|
81
|
-
* Update customer status (active, suspended, inactive).
|
|
82
|
-
*/
|
|
83
|
-
updateStatus(externalId: string, data: CustomerStatusRequest, options?: RequestOptions): Promise<{
|
|
84
|
-
message: string;
|
|
85
|
-
}>;
|
|
86
|
-
/**
|
|
87
|
-
* Update customer-specific permissions and limits.
|
|
88
|
-
*/
|
|
89
|
-
updatePermissions(externalId: string, data: CustomerPermissionsRequest, options?: RequestOptions): Promise<{
|
|
90
|
-
message: string;
|
|
91
|
-
}>;
|
|
92
|
-
/**
|
|
93
|
-
* Get the specific deposit address for a customer for a given cryptocurrency.
|
|
94
|
-
*/
|
|
95
|
-
getDepositAddress(externalId: string, cryptoType: string, options?: RequestOptions): Promise<{
|
|
96
|
-
address: string;
|
|
97
|
-
crypto_type: string;
|
|
98
|
-
}>;
|
|
99
|
-
/**
|
|
100
|
-
* Initiate an internal payment from a customer's designated wallet balance to the merchant's master balance.
|
|
101
|
-
* This is useful for charging users for services on your platform.
|
|
102
|
-
*/
|
|
103
|
-
payMerchant(externalId: string, data: {
|
|
104
|
-
crypto_type: string;
|
|
105
|
-
amount: string;
|
|
106
|
-
reference_id?: string;
|
|
107
|
-
description?: string;
|
|
108
|
-
}, options?: RequestOptions): Promise<{
|
|
109
|
-
transaction: any;
|
|
110
|
-
message: string;
|
|
111
|
-
}>;
|
|
112
|
-
}
|
|
113
|
-
//# sourceMappingURL=customers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../src/resources/customers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EACH,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EAEnB,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,uBAAuB,EAC1B,MAAM,UAAU,CAAC;AAElB;;;;;GAKG;AACH,qBAAa,SAAS;IACN,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAEtC;;;OAGG;IACG,QAAQ,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,QAAQ,EAAE,gBAAgB,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAI/H;;;OAGG;IACG,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,uBAAuB,GAAG;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAIvJ;;OAEG;IACG,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAIhG;;OAEG;IACG,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EA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G;IACG,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAI3H;;OAEG;IACG,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAIrI;;OAEG;IACG,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IAK5I;;;OAGG;IACG,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE;QACxC,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,WAAW,EAAE,GAAG,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAG/E"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Customers = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Customers Resource
|
|
6
|
-
*
|
|
7
|
-
* Allows merchants to manage their platform users and provision unique
|
|
8
|
-
* designated deposit wallets for them.
|
|
9
|
-
*/
|
|
10
|
-
class Customers {
|
|
11
|
-
constructor(client) {
|
|
12
|
-
this.client = client;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Register a new customer in the gateway.
|
|
16
|
-
* This is required before provisioning wallets.
|
|
17
|
-
*/
|
|
18
|
-
async register(data, options) {
|
|
19
|
-
return this.client.post('/api/v1/merchants/customers', data, options);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Provision designated wallets for a customer.
|
|
23
|
-
* You can request "evm" (covers ETH, BSC, Polygon, Arb) and/or "solana".
|
|
24
|
-
*/
|
|
25
|
-
async createWallets(externalId, data, options) {
|
|
26
|
-
return this.client.post(`/api/v1/merchants/customers/${externalId}/wallets`, data, options);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Retrieve the provisioned designated wallets for a customer.
|
|
30
|
-
*/
|
|
31
|
-
async getWallets(externalId, options) {
|
|
32
|
-
return this.client.get(`/api/v1/merchants/customers/${externalId}/wallets`, options);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Retrieve the current balances for a customer across all their designated wallets.
|
|
36
|
-
*/
|
|
37
|
-
async getBalances(externalId, options) {
|
|
38
|
-
return this.client.get(`/api/v1/merchants/customers/${externalId}/balances`, options);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* List all registered customers for the merchant with pagination.
|
|
42
|
-
*/
|
|
43
|
-
async list(params, options) {
|
|
44
|
-
const queryParams = new URLSearchParams();
|
|
45
|
-
if (params?.limit)
|
|
46
|
-
queryParams.append('limit', params.limit.toString());
|
|
47
|
-
if (params?.offset)
|
|
48
|
-
queryParams.append('offset', params.offset.toString());
|
|
49
|
-
const query = queryParams.toString();
|
|
50
|
-
const path = query ? `/api/v1/merchants/customers?${query}` : '/api/v1/merchants/customers';
|
|
51
|
-
return this.client.get(path, options);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Withdraw funds directly from a customer's designated wallet balance.
|
|
55
|
-
*/
|
|
56
|
-
async withdraw(externalId, data, options) {
|
|
57
|
-
return this.client.post(`/api/v1/merchants/customers/${externalId}/withdraw`, data, options);
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Sweep funds from a user's sub-account balance directly into the merchant's master balance.
|
|
61
|
-
* If amount is omitted, sweeps the entire available balance.
|
|
62
|
-
*/
|
|
63
|
-
async sweep(externalId, data, options) {
|
|
64
|
-
return this.client.post(`/api/v1/merchants/customers/${externalId}/sweep`, data, options);
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Deactivate a customer.
|
|
68
|
-
* This preserves their history but prevents further activity.
|
|
69
|
-
*/
|
|
70
|
-
async deactivate(externalId, options) {
|
|
71
|
-
return this.client.post(`/api/v1/merchants/customers/${externalId}/deactivate`, {}, options);
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Get transaction history for a specific customer.
|
|
75
|
-
*/
|
|
76
|
-
async getTransactions(externalId, params, options) {
|
|
77
|
-
const queryParams = new URLSearchParams();
|
|
78
|
-
if (params?.limit)
|
|
79
|
-
queryParams.append('limit', params.limit.toString());
|
|
80
|
-
if (params?.offset)
|
|
81
|
-
queryParams.append('offset', params.offset.toString());
|
|
82
|
-
const path = `/api/v1/merchants/customers/${externalId}/transactions${queryParams.toString() ? `?${queryParams.toString()}` : ''}`;
|
|
83
|
-
return this.client.get(path, options);
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Update customer status (active, suspended, inactive).
|
|
87
|
-
*/
|
|
88
|
-
async updateStatus(externalId, data, options) {
|
|
89
|
-
return this.client.patch(`/api/v1/merchants/customers/${externalId}/status`, data, options);
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Update customer-specific permissions and limits.
|
|
93
|
-
*/
|
|
94
|
-
async updatePermissions(externalId, data, options) {
|
|
95
|
-
return this.client.patch(`/api/v1/merchants/customers/${externalId}/permissions`, data, options);
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Get the specific deposit address for a customer for a given cryptocurrency.
|
|
99
|
-
*/
|
|
100
|
-
async getDepositAddress(externalId, cryptoType, options) {
|
|
101
|
-
const response = await this.client.get(`/api/v1/merchants/customers/${externalId}/deposit-address/${cryptoType}`, options);
|
|
102
|
-
return { address: response.deposit_address, crypto_type: response.crypto_type };
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Initiate an internal payment from a customer's designated wallet balance to the merchant's master balance.
|
|
106
|
-
* This is useful for charging users for services on your platform.
|
|
107
|
-
*/
|
|
108
|
-
async payMerchant(externalId, data, options) {
|
|
109
|
-
return this.client.post(`/api/v1/merchants/customers/${externalId}/pay-merchant`, data, options);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
exports.Customers = Customers;
|
|
113
|
-
//# sourceMappingURL=customers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../src/resources/customers.ts"],"names":[],"mappings":";;;AAiBA;;;;;GAKG;AACH,MAAa,SAAS;IAClB,YAAoB,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAI,CAAC;IAE3C;;;OAGG;IACH,KAAK,CAAC,QAAQ,CAAC,IAA2B,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,6BAA6B,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,UAAkB,EAAE,IAA4B,EAAE,OAAwB;QAC1F,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,+BAA+B,UAAU,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CAAC,UAAkB,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,+BAA+B,UAAU,UAAU,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW,CAAC,UAAkB,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,+B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AAO,EAAE,QAAQ,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,CAAC;IACpF,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,WAAW,CAAC,UAAkB,EAAE,IAKrC,EAAE,OAAwB;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,+BAA+B,UAAU,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACrG,CAAC;CACJ;AA7ID,8BA6IC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '../client';
|
|
2
|
-
import { CreateInvoiceRequest, Invoice, RequestOptions } from '../types';
|
|
3
|
-
export declare class InvoicesResource {
|
|
4
|
-
private client;
|
|
5
|
-
constructor(client: HttpClient);
|
|
6
|
-
/**
|
|
7
|
-
* Create a new invoice
|
|
8
|
-
*/
|
|
9
|
-
create(data: CreateInvoiceRequest, options?: RequestOptions): Promise<Invoice>;
|
|
10
|
-
/**
|
|
11
|
-
* List invoices with optional limit
|
|
12
|
-
*/
|
|
13
|
-
list(params?: {
|
|
14
|
-
limit?: number;
|
|
15
|
-
}, options?: RequestOptions): Promise<Invoice[]>;
|
|
16
|
-
/**
|
|
17
|
-
* Retrieve an invoice by ID
|
|
18
|
-
*/
|
|
19
|
-
retrieve(invoiceId: string, options?: RequestOptions): Promise<Invoice>;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=invoices.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.d.ts","sourceRoot":"","sources":["../../../src/resources/invoices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEzE,qBAAa,gBAAgB;IACf,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAEtC;;OAEG;IACG,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAIpF;;OAEG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAQrF;;OAEG;IACG,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CAG9E"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvoicesResource = void 0;
|
|
4
|
-
class InvoicesResource {
|
|
5
|
-
constructor(client) {
|
|
6
|
-
this.client = client;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Create a new invoice
|
|
10
|
-
*/
|
|
11
|
-
async create(data, options) {
|
|
12
|
-
return this.client.request('POST', '/api/v1/merchants/invoices', data);
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* List invoices with optional limit
|
|
16
|
-
*/
|
|
17
|
-
async list(params, options) {
|
|
18
|
-
const queryParams = new URLSearchParams();
|
|
19
|
-
if (params?.limit)
|
|
20
|
-
queryParams.append('limit', params.limit.toString());
|
|
21
|
-
const query = queryParams.toString();
|
|
22
|
-
const path = query ? `/api/v1/merchants/invoices?${query}` : '/api/v1/merchants/invoices';
|
|
23
|
-
return this.client.request('GET', path);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Retrieve an invoice by ID
|
|
27
|
-
*/
|
|
28
|
-
async retrieve(invoiceId, options) {
|
|
29
|
-
return this.client.request('GET', `/api/v1/merchants/invoices/${invoiceId}`);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.InvoicesResource = InvoicesResource;
|
|
33
|
-
//# sourceMappingURL=invoices.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../../src/resources/invoices.ts"],"names":[],"mappings":";;;AAGA,MAAa,gBAAgB;IAC3B,YAAoB,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAI,CAAC;IAE3C;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,IAA0B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAU,MAAM,EAAE,4BAA4B,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,MAA2B,EAAE,OAAwB;QAC9D,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,IAAI,MAAM,EAAE,KAAK;YAAE,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QACxE,MAAM,KAAK,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,8BAA8B,KAAK,EAAE,CAAC,CAAC,CAAC,4BAA4B,CAAC;QAC1F,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAY,KAAK,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAU,KAAK,EAAE,8BAA8B,SAAS,EAAE,CAAC,CAAC;IACxF,CAAC;CACF;AA3BD,4CA2BC"}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '../client';
|
|
2
|
-
import { Balance, LoginRequest, LoginResponse, MerchantProfile, RequestOptions, UnifiedSettingsRequest } from '../types';
|
|
3
|
-
export declare class Merchants {
|
|
4
|
-
private client;
|
|
5
|
-
constructor(client: HttpClient);
|
|
6
|
-
/**
|
|
7
|
-
* Register new merchant
|
|
8
|
-
*/
|
|
9
|
-
register(data: {
|
|
10
|
-
email: string;
|
|
11
|
-
business_name: string;
|
|
12
|
-
password: string;
|
|
13
|
-
}): Promise<{
|
|
14
|
-
user: MerchantProfile;
|
|
15
|
-
dashboard_token: string;
|
|
16
|
-
}>;
|
|
17
|
-
/**
|
|
18
|
-
* Login merchant (public endpoint - no auth required)
|
|
19
|
-
*/
|
|
20
|
-
login(data: LoginRequest): Promise<LoginResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* Get current merchant profile
|
|
23
|
-
*/
|
|
24
|
-
retrieve(options?: RequestOptions): Promise<MerchantProfile>;
|
|
25
|
-
/**
|
|
26
|
-
* Get merchant readiness status
|
|
27
|
-
*/
|
|
28
|
-
getStatus(options?: RequestOptions): Promise<any>;
|
|
29
|
-
switchEnvironment(data: {
|
|
30
|
-
environment: 'sandbox' | 'production';
|
|
31
|
-
}, options?: RequestOptions): Promise<{
|
|
32
|
-
message: string;
|
|
33
|
-
environment: string;
|
|
34
|
-
}>;
|
|
35
|
-
/**
|
|
36
|
-
* Generate new API key
|
|
37
|
-
*/
|
|
38
|
-
generateApiKey(data?: {
|
|
39
|
-
environment?: 'sandbox' | 'production';
|
|
40
|
-
}, options?: RequestOptions): Promise<{
|
|
41
|
-
api_key: string;
|
|
42
|
-
environment: string;
|
|
43
|
-
}>;
|
|
44
|
-
/**
|
|
45
|
-
* Rotate existing API key
|
|
46
|
-
*/
|
|
47
|
-
rotateApiKey(data?: {
|
|
48
|
-
environment?: 'sandbox' | 'production';
|
|
49
|
-
}, options?: RequestOptions): Promise<{
|
|
50
|
-
api_key: string;
|
|
51
|
-
}>;
|
|
52
|
-
/**
|
|
53
|
-
* Get current fee setting
|
|
54
|
-
*/
|
|
55
|
-
getFeeSetting(options?: RequestOptions): Promise<{
|
|
56
|
-
fee_percentage: number;
|
|
57
|
-
customer_pays_fee: boolean;
|
|
58
|
-
}>;
|
|
59
|
-
/**
|
|
60
|
-
* Update global merchant settings (Unified)
|
|
61
|
-
*/
|
|
62
|
-
updateSettings(data: UnifiedSettingsRequest, options?: RequestOptions): Promise<{
|
|
63
|
-
status: string;
|
|
64
|
-
message: string;
|
|
65
|
-
}>;
|
|
66
|
-
/**
|
|
67
|
-
* Get global merchant settings
|
|
68
|
-
*/
|
|
69
|
-
getSettings(options?: RequestOptions): Promise<UnifiedSettingsRequest>;
|
|
70
|
-
/**
|
|
71
|
-
* Send a test webhook
|
|
72
|
-
*/
|
|
73
|
-
sendTestWebhook(options?: RequestOptions): Promise<{
|
|
74
|
-
status: string;
|
|
75
|
-
message: string;
|
|
76
|
-
}>;
|
|
77
|
-
/**
|
|
78
|
-
* Get IP whitelist for the merchant
|
|
79
|
-
*/
|
|
80
|
-
getIpWhitelist(options?: RequestOptions): Promise<{
|
|
81
|
-
ip_whitelist: string[];
|
|
82
|
-
}>;
|
|
83
|
-
/**
|
|
84
|
-
* Get merchant balance
|
|
85
|
-
*/
|
|
86
|
-
getBalance(options?: RequestOptions): Promise<Balance>;
|
|
87
|
-
/**
|
|
88
|
-
* Get audit logs for the merchant
|
|
89
|
-
*/
|
|
90
|
-
getAuditLogs(params?: {
|
|
91
|
-
limit?: number;
|
|
92
|
-
action_type?: string;
|
|
93
|
-
from?: string;
|
|
94
|
-
to?: string;
|
|
95
|
-
}, options?: RequestOptions): Promise<any[]>;
|
|
96
|
-
/**
|
|
97
|
-
* Get balance history for the merchant
|
|
98
|
-
*/
|
|
99
|
-
getBalanceHistory(params?: {
|
|
100
|
-
limit?: number;
|
|
101
|
-
}, options?: RequestOptions): Promise<{
|
|
102
|
-
points: any[];
|
|
103
|
-
}>;
|
|
104
|
-
/**
|
|
105
|
-
* Get supported currencies (public endpoint)
|
|
106
|
-
*/
|
|
107
|
-
getSupportedCurrencies(merchantId?: number): Promise<{
|
|
108
|
-
currency_groups: any;
|
|
109
|
-
description: string;
|
|
110
|
-
}>;
|
|
111
|
-
/**
|
|
112
|
-
* Get pricing information (public endpoint)
|
|
113
|
-
*/
|
|
114
|
-
getPricing(): Promise<any>;
|
|
115
|
-
/**
|
|
116
|
-
* Get system status (public endpoint)
|
|
117
|
-
*/
|
|
118
|
-
getSystemStatus(): Promise<any>;
|
|
119
|
-
}
|
|
120
|
-
//# sourceMappingURL=merchants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"merchants.d.ts","sourceRoot":"","sources":["../../../src/resources/merchants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAY,eAAe,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEnI,qBAAa,SAAS;IACR,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAEtC;;OAEG;IACG,QAAQ,CAAC,IAAI,EAAE;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,aAAa,EAAE,MAAM,CAAC;QACtB,QAAQ,EAAE,MAAM,CAAC;KAClB,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,eAAe,CAAC;QAAC,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC;IAI/D;;OAEG;IACG,KAAK,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC;IAIvD;;OAEG;IACG,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IAKlE;;OAEG;IACG,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC;IAIjD,iBAAiB,CAAC,IAAI,EAAE;QAC5B,WAAW,EAAE,SAAS,GAAG,YAAY,CAAA;KACtC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE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E;QAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAY5C;;OAEG;IACG,iBAAiB,CAAC,MAAM,CAAC,EAAE;QAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,GAAG,EAAE,CAAA;KAAE,CAAC;IAaxD;;OAEG;IACG,sBAAsB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,eAAe,EAAE,GAAG,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IAKzG;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,GAAG,CAAC;IAIhC;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC;CAGtC"}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Merchants = void 0;
|
|
4
|
-
class Merchants {
|
|
5
|
-
constructor(client) {
|
|
6
|
-
this.client = client;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Register new merchant
|
|
10
|
-
*/
|
|
11
|
-
async register(data) {
|
|
12
|
-
return this.client.request('POST', '/api/v1/merchants/register', data);
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Login merchant (public endpoint - no auth required)
|
|
16
|
-
*/
|
|
17
|
-
async login(data) {
|
|
18
|
-
return this.client.request('POST', '/api/v1/merchants/login', data);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Get current merchant profile
|
|
22
|
-
*/
|
|
23
|
-
async retrieve(options) {
|
|
24
|
-
const response = await this.client.request('GET', '/api/v1/merchants/profile');
|
|
25
|
-
return response.user;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Get merchant readiness status
|
|
29
|
-
*/
|
|
30
|
-
async getStatus(options) {
|
|
31
|
-
return this.client.request('GET', '/api/v1/merchants/status');
|
|
32
|
-
}
|
|
33
|
-
async switchEnvironment(data, options) {
|
|
34
|
-
const requestData = { to_live: data.environment === 'production' };
|
|
35
|
-
return this.client.request('POST', '/api/v1/merchants/environment/switch', requestData);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Generate new API key
|
|
39
|
-
*/
|
|
40
|
-
async generateApiKey(data, options) {
|
|
41
|
-
const requestData = data ? { is_live: data.environment === 'production' } : { is_live: false };
|
|
42
|
-
return this.client.request('POST', '/api/v1/merchants/api-keys/generate', requestData);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Rotate existing API key
|
|
46
|
-
*/
|
|
47
|
-
async rotateApiKey(data, options) {
|
|
48
|
-
const requestData = data ? { is_live: data.environment === 'production' } : { is_live: false };
|
|
49
|
-
return this.client.request('POST', '/api/v1/merchants/api-keys/rotate', requestData);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Get current fee setting
|
|
53
|
-
*/
|
|
54
|
-
async getFeeSetting(options) {
|
|
55
|
-
return this.client.request('GET', '/api/v1/merchants/fee-setting');
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Update global merchant settings (Unified)
|
|
59
|
-
*/
|
|
60
|
-
async updateSettings(data, options) {
|
|
61
|
-
return this.client.request('PATCH', '/api/v1/merchants/settings', data);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Get global merchant settings
|
|
65
|
-
*/
|
|
66
|
-
async getSettings(options) {
|
|
67
|
-
return this.client.request('GET', '/api/v1/merchants/settings');
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Send a test webhook
|
|
71
|
-
*/
|
|
72
|
-
async sendTestWebhook(options) {
|
|
73
|
-
return this.client.request('POST', '/api/v1/merchants/webhook/test');
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Get IP whitelist for the merchant
|
|
77
|
-
*/
|
|
78
|
-
async getIpWhitelist(options) {
|
|
79
|
-
return this.client.request('GET', '/api/v1/merchants/ip-whitelist');
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Get merchant balance
|
|
83
|
-
*/
|
|
84
|
-
async getBalance(options) {
|
|
85
|
-
return this.client.request('GET', '/api/v1/merchants/balance');
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Get audit logs for the merchant
|
|
89
|
-
*/
|
|
90
|
-
async getAuditLogs(params, options) {
|
|
91
|
-
const queryParams = new URLSearchParams();
|
|
92
|
-
if (params?.limit)
|
|
93
|
-
queryParams.append('limit', params.limit.toString());
|
|
94
|
-
if (params?.action_type)
|
|
95
|
-
queryParams.append('action_type', params.action_type);
|
|
96
|
-
if (params?.from)
|
|
97
|
-
queryParams.append('from', params.from);
|
|
98
|
-
if (params?.to)
|
|
99
|
-
queryParams.append('to', params.to);
|
|
100
|
-
const query = queryParams.toString();
|
|
101
|
-
const path = query ? `/api/v1/merchants/audit-logs?${query}` : '/api/v1/merchants/audit-logs';
|
|
102
|
-
return this.client.request('GET', path);
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Get balance history for the merchant
|
|
106
|
-
*/
|
|
107
|
-
async getBalanceHistory(params, options) {
|
|
108
|
-
const queryParams = new URLSearchParams();
|
|
109
|
-
if (params?.limit)
|
|
110
|
-
queryParams.append('limit', params.limit.toString());
|
|
111
|
-
const query = queryParams.toString();
|
|
112
|
-
const path = query ? `/api/v1/merchants/balance/history?${query}` : '/api/v1/merchants/balance/history';
|
|
113
|
-
return this.client.request('GET', path);
|
|
114
|
-
}
|
|
115
|
-
// ============================================================================
|
|
116
|
-
// Public Endpoints (no auth required)
|
|
117
|
-
// ============================================================================
|
|
118
|
-
/**
|
|
119
|
-
* Get supported currencies (public endpoint)
|
|
120
|
-
*/
|
|
121
|
-
async getSupportedCurrencies(merchantId) {
|
|
122
|
-
const query = merchantId ? `?merchant_id=${merchantId}` : '';
|
|
123
|
-
return this.client.request('GET', `/api/v1/currencies/supported${query}`);
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Get pricing information (public endpoint)
|
|
127
|
-
*/
|
|
128
|
-
async getPricing() {
|
|
129
|
-
return this.client.request('GET', '/api/v1/pricing');
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Get system status (public endpoint)
|
|
133
|
-
*/
|
|
134
|
-
async getSystemStatus() {
|
|
135
|
-
return this.client.request('GET', '/api/v1/status');
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
exports.Merchants = Merchants;
|
|
139
|
-
//# sourceMappingURL=merchants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"merchants.js","sourceRoot":"","sources":["../../../src/resources/merchants.ts"],"names":[],"mappings":";;;AAGA,MAAa,SAAS;IACpB,YAAoB,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAI,CAAC;IAE3C;;OAEG;IACH,KAAK,CAAC,QAAQ,CAAC,IAId;QACC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,4BAA4B,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,KAAK,CAAC,IAAkB;QAC5B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,yBAAyB,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ,CAAC,OAAwB;QACrC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAA4B,KAAK,EAAE,2BAA2B,CAAC,CAAC;QAC1G,OAAO,QAAQ,CAAC,IAAI,CAAC;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AAO,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;IACtD,CAAC;CACF;AArKD,8BAqKC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '../client';
|
|
2
|
-
import { CreatePaymentRequest, CreateAddressOnlyPaymentRequest, Payment, AddressOnlyPayment, ListPaymentsRequest, ListPaymentsResponse, UpdateFeeSettingRequest, FeeSettingResponse, UpdateFeeSettingResponse, RequestOptions, SelectionRequest, AddressOnlyStats, AddressOnlyHealthStatus } from '../types';
|
|
3
|
-
export declare class Payments {
|
|
4
|
-
private client;
|
|
5
|
-
constructor(client: HttpClient);
|
|
6
|
-
/**
|
|
7
|
-
* Create a new payment
|
|
8
|
-
*/
|
|
9
|
-
create(data: CreatePaymentRequest, options?: RequestOptions): Promise<Payment>;
|
|
10
|
-
/**
|
|
11
|
-
* Finalize currency selection for a multi-currency payment
|
|
12
|
-
*/
|
|
13
|
-
finalizeSelection(paymentId: string, data: SelectionRequest, options?: RequestOptions): Promise<Payment>;
|
|
14
|
-
/**
|
|
15
|
-
* Retrieve a payment by ID
|
|
16
|
-
*/
|
|
17
|
-
retrieve(paymentId: string, options?: RequestOptions): Promise<Payment>;
|
|
18
|
-
/**
|
|
19
|
-
* Verify a payment with transaction hash
|
|
20
|
-
*/
|
|
21
|
-
verify(paymentId: string, data: {
|
|
22
|
-
transaction_hash: string;
|
|
23
|
-
}, options?: RequestOptions): Promise<any>;
|
|
24
|
-
/**
|
|
25
|
-
* List payments with optional filters
|
|
26
|
-
*/
|
|
27
|
-
list(params?: ListPaymentsRequest, options?: RequestOptions): Promise<ListPaymentsResponse>;
|
|
28
|
-
/**
|
|
29
|
-
* Cancel a pending payment
|
|
30
|
-
*/
|
|
31
|
-
cancel(paymentId: string, options?: RequestOptions): Promise<Payment>;
|
|
32
|
-
/**
|
|
33
|
-
* Create an address-only payment (WORK IN PROGRESS)
|
|
34
|
-
*/
|
|
35
|
-
createAddressOnly(data: CreateAddressOnlyPaymentRequest, options?: RequestOptions): Promise<AddressOnlyPayment>;
|
|
36
|
-
/**
|
|
37
|
-
* Retrieve an address-only payment status by ID (WORK IN PROGRESS)
|
|
38
|
-
*/
|
|
39
|
-
retrieveAddressOnly(paymentId: string, options?: RequestOptions): Promise<AddressOnlyPayment>;
|
|
40
|
-
/**
|
|
41
|
-
* List supported native currencies for address-only mode (EXPERIMENTAL)
|
|
42
|
-
*/
|
|
43
|
-
listAddressOnlyCurrencies(options?: RequestOptions): Promise<string[]>;
|
|
44
|
-
/**
|
|
45
|
-
* Get address-only mode statistics (EXPERIMENTAL)
|
|
46
|
-
*/
|
|
47
|
-
getAddressOnlyStats(options?: RequestOptions): Promise<AddressOnlyStats>;
|
|
48
|
-
/**
|
|
49
|
-
* Get address-only mode health status (EXPERIMENTAL)
|
|
50
|
-
*/
|
|
51
|
-
getAddressOnlyHealth(options?: RequestOptions): Promise<AddressOnlyHealthStatus>;
|
|
52
|
-
/**
|
|
53
|
-
* Update fee setting (customer pays fee vs merchant pays fee)
|
|
54
|
-
*/
|
|
55
|
-
updateFeeSetting(data: UpdateFeeSettingRequest, options?: RequestOptions): Promise<UpdateFeeSettingResponse>;
|
|
56
|
-
getFeeSetting(options?: RequestOptions): Promise<FeeSettingResponse>;
|
|
57
|
-
private validateCreatePayment;
|
|
58
|
-
private validateCreateAddressOnlyPayment;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=payments.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../../src/resources/payments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EACL,oBAAoB,EACpB,+BAA+B,EAC/B,OAAO,EACP,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,wBAAwB,EACxB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,E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