@100pay-hq/100pay.js 1.3.4 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +97 -2
- package/dist/index.d.ts +97 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -246,6 +246,101 @@ interface ISupportedWalletResponse {
|
|
|
246
246
|
message: string;
|
|
247
247
|
data: ISupportedWallet[];
|
|
248
248
|
}
|
|
249
|
+
interface IChargeData {
|
|
250
|
+
retries: number;
|
|
251
|
+
acknowledged: boolean;
|
|
252
|
+
dispatched: boolean;
|
|
253
|
+
type: string;
|
|
254
|
+
_id: string;
|
|
255
|
+
chargeId: string;
|
|
256
|
+
reference: string;
|
|
257
|
+
data: {
|
|
258
|
+
from: string;
|
|
259
|
+
to: string;
|
|
260
|
+
network: string;
|
|
261
|
+
transaction_id: string;
|
|
262
|
+
status: string;
|
|
263
|
+
timestamp: string;
|
|
264
|
+
value: {
|
|
265
|
+
local: {
|
|
266
|
+
amount: string;
|
|
267
|
+
currency: string;
|
|
268
|
+
};
|
|
269
|
+
crypto: {
|
|
270
|
+
amount: number;
|
|
271
|
+
currency: string;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
block: {
|
|
275
|
+
height: number;
|
|
276
|
+
hash: string;
|
|
277
|
+
};
|
|
278
|
+
charge: {
|
|
279
|
+
customer: {
|
|
280
|
+
user_id: string;
|
|
281
|
+
name: string;
|
|
282
|
+
email: string;
|
|
283
|
+
phone: string;
|
|
284
|
+
};
|
|
285
|
+
billing: {
|
|
286
|
+
currency: string;
|
|
287
|
+
vat: number;
|
|
288
|
+
pricing_type: string;
|
|
289
|
+
amount: string;
|
|
290
|
+
description: string;
|
|
291
|
+
};
|
|
292
|
+
status: {
|
|
293
|
+
context: {
|
|
294
|
+
status: string;
|
|
295
|
+
value: number;
|
|
296
|
+
};
|
|
297
|
+
value: string;
|
|
298
|
+
total_paid: number;
|
|
299
|
+
};
|
|
300
|
+
ref_id: string;
|
|
301
|
+
payments: Array<{
|
|
302
|
+
from: string;
|
|
303
|
+
to: string;
|
|
304
|
+
network: string;
|
|
305
|
+
transaction_id: string;
|
|
306
|
+
status: string;
|
|
307
|
+
timestamp: string;
|
|
308
|
+
value: {
|
|
309
|
+
local: {
|
|
310
|
+
amount: string;
|
|
311
|
+
currency: string;
|
|
312
|
+
};
|
|
313
|
+
crypto: {
|
|
314
|
+
amount: number;
|
|
315
|
+
currency: string;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
block: {
|
|
319
|
+
height: number;
|
|
320
|
+
hash: string;
|
|
321
|
+
};
|
|
322
|
+
}>;
|
|
323
|
+
charge_source: string;
|
|
324
|
+
createdAt: string;
|
|
325
|
+
_id: string;
|
|
326
|
+
metadata: {
|
|
327
|
+
is_approved: string;
|
|
328
|
+
enrollment_id: string;
|
|
329
|
+
skill_id: string;
|
|
330
|
+
user_id: string;
|
|
331
|
+
};
|
|
332
|
+
call_back_url: string;
|
|
333
|
+
app_id: string;
|
|
334
|
+
userId: string;
|
|
335
|
+
chargeId: string;
|
|
336
|
+
__v: number;
|
|
337
|
+
};
|
|
338
|
+
appId: string;
|
|
339
|
+
};
|
|
340
|
+
cryptoChargeId: string;
|
|
341
|
+
createdAt: string;
|
|
342
|
+
__v: number;
|
|
343
|
+
}
|
|
249
344
|
/**
|
|
250
345
|
* Standardized response interface for transaction verification
|
|
251
346
|
* @property status - Result status ('success' or 'error')
|
|
@@ -254,7 +349,7 @@ interface ISupportedWalletResponse {
|
|
|
254
349
|
*/
|
|
255
350
|
interface IVerifyResponse {
|
|
256
351
|
status: "success" | "error";
|
|
257
|
-
data: ITransactionData | Record<string, never
|
|
352
|
+
data: ITransactionData | Record<string, never> | IChargeData;
|
|
258
353
|
message?: string;
|
|
259
354
|
}
|
|
260
355
|
|
|
@@ -412,4 +507,4 @@ declare class Pay100 {
|
|
|
412
507
|
private extractErrorMessage;
|
|
413
508
|
}
|
|
414
509
|
|
|
415
|
-
export { type Account, type AccountDetails, type CreateSubAccountData, type CreateSubAccountResponse, type Crypto, type CurrencyConversionPayload, type CurrencyConversionResult, type ISupportedWallet, type ISupportedWalletResponse, type ITransactionData, type ITransferAssetData, type ITransferAssetResponse, type ITransferFeeParams, type ITransferFeeResponse, type ITransferHistoryItem, type ITransferHistoryParams, type ITransferHistoryResponse, type IVerifyResponse, type IWalletAccount, type IWalletBalance, type IWalletFee, type IWalletTransaction, type Key, type Network, Pay100, PaymentVerificationError };
|
|
510
|
+
export { type Account, type AccountDetails, type CreateSubAccountData, type CreateSubAccountResponse, type Crypto, type CurrencyConversionPayload, type CurrencyConversionResult, type IChargeData, type ISupportedWallet, type ISupportedWalletResponse, type ITransactionData, type ITransferAssetData, type ITransferAssetResponse, type ITransferFeeParams, type ITransferFeeResponse, type ITransferHistoryItem, type ITransferHistoryParams, type ITransferHistoryResponse, type IVerifyResponse, type IWalletAccount, type IWalletBalance, type IWalletFee, type IWalletTransaction, type Key, type Network, Pay100, PaymentVerificationError };
|
package/dist/index.d.ts
CHANGED
|
@@ -246,6 +246,101 @@ interface ISupportedWalletResponse {
|
|
|
246
246
|
message: string;
|
|
247
247
|
data: ISupportedWallet[];
|
|
248
248
|
}
|
|
249
|
+
interface IChargeData {
|
|
250
|
+
retries: number;
|
|
251
|
+
acknowledged: boolean;
|
|
252
|
+
dispatched: boolean;
|
|
253
|
+
type: string;
|
|
254
|
+
_id: string;
|
|
255
|
+
chargeId: string;
|
|
256
|
+
reference: string;
|
|
257
|
+
data: {
|
|
258
|
+
from: string;
|
|
259
|
+
to: string;
|
|
260
|
+
network: string;
|
|
261
|
+
transaction_id: string;
|
|
262
|
+
status: string;
|
|
263
|
+
timestamp: string;
|
|
264
|
+
value: {
|
|
265
|
+
local: {
|
|
266
|
+
amount: string;
|
|
267
|
+
currency: string;
|
|
268
|
+
};
|
|
269
|
+
crypto: {
|
|
270
|
+
amount: number;
|
|
271
|
+
currency: string;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
block: {
|
|
275
|
+
height: number;
|
|
276
|
+
hash: string;
|
|
277
|
+
};
|
|
278
|
+
charge: {
|
|
279
|
+
customer: {
|
|
280
|
+
user_id: string;
|
|
281
|
+
name: string;
|
|
282
|
+
email: string;
|
|
283
|
+
phone: string;
|
|
284
|
+
};
|
|
285
|
+
billing: {
|
|
286
|
+
currency: string;
|
|
287
|
+
vat: number;
|
|
288
|
+
pricing_type: string;
|
|
289
|
+
amount: string;
|
|
290
|
+
description: string;
|
|
291
|
+
};
|
|
292
|
+
status: {
|
|
293
|
+
context: {
|
|
294
|
+
status: string;
|
|
295
|
+
value: number;
|
|
296
|
+
};
|
|
297
|
+
value: string;
|
|
298
|
+
total_paid: number;
|
|
299
|
+
};
|
|
300
|
+
ref_id: string;
|
|
301
|
+
payments: Array<{
|
|
302
|
+
from: string;
|
|
303
|
+
to: string;
|
|
304
|
+
network: string;
|
|
305
|
+
transaction_id: string;
|
|
306
|
+
status: string;
|
|
307
|
+
timestamp: string;
|
|
308
|
+
value: {
|
|
309
|
+
local: {
|
|
310
|
+
amount: string;
|
|
311
|
+
currency: string;
|
|
312
|
+
};
|
|
313
|
+
crypto: {
|
|
314
|
+
amount: number;
|
|
315
|
+
currency: string;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
block: {
|
|
319
|
+
height: number;
|
|
320
|
+
hash: string;
|
|
321
|
+
};
|
|
322
|
+
}>;
|
|
323
|
+
charge_source: string;
|
|
324
|
+
createdAt: string;
|
|
325
|
+
_id: string;
|
|
326
|
+
metadata: {
|
|
327
|
+
is_approved: string;
|
|
328
|
+
enrollment_id: string;
|
|
329
|
+
skill_id: string;
|
|
330
|
+
user_id: string;
|
|
331
|
+
};
|
|
332
|
+
call_back_url: string;
|
|
333
|
+
app_id: string;
|
|
334
|
+
userId: string;
|
|
335
|
+
chargeId: string;
|
|
336
|
+
__v: number;
|
|
337
|
+
};
|
|
338
|
+
appId: string;
|
|
339
|
+
};
|
|
340
|
+
cryptoChargeId: string;
|
|
341
|
+
createdAt: string;
|
|
342
|
+
__v: number;
|
|
343
|
+
}
|
|
249
344
|
/**
|
|
250
345
|
* Standardized response interface for transaction verification
|
|
251
346
|
* @property status - Result status ('success' or 'error')
|
|
@@ -254,7 +349,7 @@ interface ISupportedWalletResponse {
|
|
|
254
349
|
*/
|
|
255
350
|
interface IVerifyResponse {
|
|
256
351
|
status: "success" | "error";
|
|
257
|
-
data: ITransactionData | Record<string, never
|
|
352
|
+
data: ITransactionData | Record<string, never> | IChargeData;
|
|
258
353
|
message?: string;
|
|
259
354
|
}
|
|
260
355
|
|
|
@@ -412,4 +507,4 @@ declare class Pay100 {
|
|
|
412
507
|
private extractErrorMessage;
|
|
413
508
|
}
|
|
414
509
|
|
|
415
|
-
export { type Account, type AccountDetails, type CreateSubAccountData, type CreateSubAccountResponse, type Crypto, type CurrencyConversionPayload, type CurrencyConversionResult, type ISupportedWallet, type ISupportedWalletResponse, type ITransactionData, type ITransferAssetData, type ITransferAssetResponse, type ITransferFeeParams, type ITransferFeeResponse, type ITransferHistoryItem, type ITransferHistoryParams, type ITransferHistoryResponse, type IVerifyResponse, type IWalletAccount, type IWalletBalance, type IWalletFee, type IWalletTransaction, type Key, type Network, Pay100, PaymentVerificationError };
|
|
510
|
+
export { type Account, type AccountDetails, type CreateSubAccountData, type CreateSubAccountResponse, type Crypto, type CurrencyConversionPayload, type CurrencyConversionResult, type IChargeData, type ISupportedWallet, type ISupportedWalletResponse, type ITransactionData, type ITransferAssetData, type ITransferAssetResponse, type ITransferFeeParams, type ITransferFeeResponse, type ITransferHistoryItem, type ITransferHistoryParams, type ITransferHistoryResponse, type IVerifyResponse, type IWalletAccount, type IWalletBalance, type IWalletFee, type IWalletTransaction, type Key, type Network, Pay100, PaymentVerificationError };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@100pay-hq/100pay.js",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "100Pay.js is the official Nodejs API wrapper SDK that lets you easily verify crypto payments, run bulk payout, transfer assets and many more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|