@abacatepay/types 0.0.3 → 2.0.0
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 +21 -13
- package/dist/index.d.ts +6 -1
- package/dist/index.js +6 -1
- package/dist/v1/routes.d.ts +81 -0
- package/dist/v1/routes.js +86 -0
- package/dist/v1/utils.d.ts +19 -0
- package/dist/v1/utils.js +25 -0
- package/dist/v2/entities/checkout.d.ts +106 -0
- package/dist/v2/entities/checkout.js +29 -0
- package/dist/v2/entities/coupon.d.ts +63 -0
- package/dist/v2/entities/coupon.js +14 -0
- package/dist/v2/entities/customer.d.ts +41 -0
- package/dist/v2/entities/customer.js +1 -0
- package/dist/v2/entities/payout.d.ts +51 -0
- package/dist/v2/entities/payout.js +11 -0
- package/dist/v2/entities/pix.d.ts +48 -0
- package/dist/v2/entities/pix.js +1 -0
- package/dist/v2/entities/products.d.ts +49 -0
- package/dist/v2/entities/products.js +5 -0
- package/dist/v2/entities/store.d.ts +36 -0
- package/dist/v2/entities/store.js +1 -0
- package/dist/v2/entities/subscription.d.ts +110 -0
- package/dist/v2/entities/subscription.js +8 -0
- package/dist/v2/index.d.ts +11 -0
- package/dist/v2/index.js +11 -0
- package/dist/v2/rest.d.ts +675 -0
- package/dist/v2/rest.js +1 -0
- package/dist/v2/routes.d.ts +129 -0
- package/dist/v2/routes.js +158 -0
- package/dist/v2/utils.d.ts +26 -0
- package/dist/v2/utils.js +42 -0
- package/dist/v2/webhook.d.ts +135 -0
- package/dist/v2/webhook.js +9 -0
- package/dist/version.d.ts +2 -2
- package/dist/version.js +3 -4
- package/package.json +29 -5
- package/dist/routes.d.ts +0 -68
- package/dist/routes.js +0 -99
package/dist/routes.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
export const API_BASE_URL = 'https://api.abacatepay.com/';
|
|
2
|
-
export const Routes = {
|
|
3
|
-
/**
|
|
4
|
-
* POST - https://api.abacatepay.com/v1/customer/create
|
|
5
|
-
*/
|
|
6
|
-
createCustomer() {
|
|
7
|
-
return '/customer/create';
|
|
8
|
-
},
|
|
9
|
-
/**
|
|
10
|
-
* GET - https://api.abacatepay.com/v1/customer/list
|
|
11
|
-
*/
|
|
12
|
-
listCustomers() {
|
|
13
|
-
return '/customer/list';
|
|
14
|
-
},
|
|
15
|
-
/**
|
|
16
|
-
* POST - https://api.abacatepay.com/v1/billing/create
|
|
17
|
-
*/
|
|
18
|
-
createCharge() {
|
|
19
|
-
return '/billing/create';
|
|
20
|
-
},
|
|
21
|
-
/**
|
|
22
|
-
* GET - https://api.abacatepay.com/v1/billing/list
|
|
23
|
-
*/
|
|
24
|
-
listCharges() {
|
|
25
|
-
return '/billing/list';
|
|
26
|
-
},
|
|
27
|
-
/**
|
|
28
|
-
* POST - https://api.abacatepay.com/v1/pixQrCode/create
|
|
29
|
-
*/
|
|
30
|
-
createPIXQRCode() {
|
|
31
|
-
return '/pixQrCode/create';
|
|
32
|
-
},
|
|
33
|
-
/**
|
|
34
|
-
* POST - https://api.abacatepay.com/v1/pixQrCode/simulate-payment
|
|
35
|
-
*/
|
|
36
|
-
simulatePayment({ id }) {
|
|
37
|
-
return `/pixQrCode/simulate-payment?id=${id}`;
|
|
38
|
-
},
|
|
39
|
-
/**
|
|
40
|
-
* GET - https://api.abacatepay.com/v1/pixQrCode/check
|
|
41
|
-
*/
|
|
42
|
-
checkQRCodePIXStatus({ id }) {
|
|
43
|
-
return `/pixQrCode/check?id=${id}`;
|
|
44
|
-
},
|
|
45
|
-
/**
|
|
46
|
-
* POST - https://api.abacatepay.com/v1/coupon/create
|
|
47
|
-
*/
|
|
48
|
-
createCoupon() {
|
|
49
|
-
return '/coupon/create';
|
|
50
|
-
},
|
|
51
|
-
/**
|
|
52
|
-
* GET - https://api.abacatepay.com/v1/coupon/list
|
|
53
|
-
*/
|
|
54
|
-
listCoupons() {
|
|
55
|
-
return '/coupon/list';
|
|
56
|
-
},
|
|
57
|
-
/**
|
|
58
|
-
* POST - https://api.abacatepay.com/v1/withdraw/create
|
|
59
|
-
*/
|
|
60
|
-
createWithdraw() {
|
|
61
|
-
return '/withdraw/create';
|
|
62
|
-
},
|
|
63
|
-
/**
|
|
64
|
-
* GET - https://api.abacatepay.com/v1/withdraw/get
|
|
65
|
-
*/
|
|
66
|
-
getWithdraw({ externalId }) {
|
|
67
|
-
return `/withdraw/get?externalId=${externalId}`;
|
|
68
|
-
},
|
|
69
|
-
/**
|
|
70
|
-
* GET - https://api.abacatepay.com/v1/withdraw/list
|
|
71
|
-
*/
|
|
72
|
-
listWithdraw() {
|
|
73
|
-
return '/withdraw/list';
|
|
74
|
-
},
|
|
75
|
-
/**
|
|
76
|
-
* GET - https://api.abacatepay.com/v1/store/get
|
|
77
|
-
*/
|
|
78
|
-
store() {
|
|
79
|
-
return '/store/get';
|
|
80
|
-
},
|
|
81
|
-
/**
|
|
82
|
-
* GET - https://api.abacatepay.com/v1/public-mrr/mrr
|
|
83
|
-
*/
|
|
84
|
-
getMRR() {
|
|
85
|
-
return '/public-mrr/mrr';
|
|
86
|
-
},
|
|
87
|
-
/**
|
|
88
|
-
* GET - https://api.abacatepay.com/v1/public-mrr/merchant-info
|
|
89
|
-
*/
|
|
90
|
-
merchant() {
|
|
91
|
-
return '/public-mrr/merchant-info';
|
|
92
|
-
},
|
|
93
|
-
/**
|
|
94
|
-
* GET - https://api.abacatepay.com/v1/public-mrr/renevue
|
|
95
|
-
*/
|
|
96
|
-
renevue() {
|
|
97
|
-
return '/public-mrr/revenue';
|
|
98
|
-
},
|
|
99
|
-
};
|