@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/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
- };