bantr-api-client 1.5.0 → 1.6.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/api-type/src/trpcRouter/discount_code.router.d.ts +5 -5
- package/api-type/src/trpcRouter/free_agent_payments.router.d.ts +17 -1
- package/api-type/src/trpcRouter/league_payments.router.d.ts +15 -15
- package/api-type/src/trpcRouter/oauth.router.d.ts +2 -2
- package/api-type/src/trpcRouter/pickup_payments.router.d.ts +2 -2
- package/api-type/src/trpcRouter/product.router.d.ts +2 -0
- package/api-type/src/trpcRouter/router.d.ts +1177 -407
- package/api-type/src/trpcRouter/team.d.ts +191 -0
- package/api-type/src/trpcRouter/transaction.router.d.ts +176 -0
- package/dist/src/index.d.ts +1947 -782
- package/dist/src/provider.d.ts +1163 -393
- package/dist/src/query.d.ts +420 -25
- package/package.json +1 -1
@@ -45,19 +45,19 @@ export declare const discountCodeRouter: import("@trpc/server").CreateRouterInne
|
|
45
45
|
authorization?: string | undefined;
|
46
46
|
limit: number;
|
47
47
|
cursor: number;
|
48
|
-
code?: string | undefined;
|
49
48
|
orgWorkspaceId?: number | null | undefined;
|
50
49
|
direction?: "asc" | "desc" | undefined;
|
50
|
+
code?: string | undefined;
|
51
51
|
listExpired?: boolean | undefined;
|
52
52
|
};
|
53
53
|
_input_out: {
|
54
54
|
authorization?: string | undefined;
|
55
55
|
limit: number;
|
56
|
-
cursor: number;
|
57
56
|
direction: "asc" | "desc";
|
57
|
+
cursor: number;
|
58
58
|
listExpired: boolean;
|
59
|
-
code?: string | undefined;
|
60
59
|
orgWorkspaceId?: number | null | undefined;
|
60
|
+
code?: string | undefined;
|
61
61
|
};
|
62
62
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
63
63
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -122,8 +122,8 @@ export declare const discountCodeRouter: import("@trpc/server").CreateRouterInne
|
|
122
122
|
};
|
123
123
|
_input_in: {
|
124
124
|
authorization?: string | undefined;
|
125
|
-
id: number;
|
126
125
|
code: string;
|
126
|
+
id: number;
|
127
127
|
description: string;
|
128
128
|
appliesWhen: "purchase";
|
129
129
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
@@ -136,8 +136,8 @@ export declare const discountCodeRouter: import("@trpc/server").CreateRouterInne
|
|
136
136
|
};
|
137
137
|
_input_out: {
|
138
138
|
authorization?: string | undefined;
|
139
|
-
id: number;
|
140
139
|
code: string;
|
140
|
+
id: number;
|
141
141
|
description: string;
|
142
142
|
appliesWhen: "purchase";
|
143
143
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
@@ -29,8 +29,8 @@ export declare const freeAgentPaymentsRouter: import("@trpc/server").CreateRoute
|
|
29
29
|
_input_out: {
|
30
30
|
authorization?: string | undefined;
|
31
31
|
description: string;
|
32
|
-
freeAgentId: number;
|
33
32
|
paymentMode: "session" | "intent";
|
33
|
+
freeAgentId: number;
|
34
34
|
code?: string | undefined;
|
35
35
|
leagueId?: number | undefined;
|
36
36
|
cancelPath?: string | undefined;
|
@@ -44,6 +44,22 @@ export declare const freeAgentPaymentsRouter: import("@trpc/server").CreateRoute
|
|
44
44
|
customerId: string;
|
45
45
|
orgPublishableKey: string | undefined;
|
46
46
|
orgStripeAccountId: string;
|
47
|
+
paymentIntent: {
|
48
|
+
intent: import("stripe").Stripe.Response<import("stripe").Stripe.PaymentIntent>;
|
49
|
+
discountAndFee: {
|
50
|
+
discountApplied: number;
|
51
|
+
discountedAmount: number;
|
52
|
+
priceAmount: number;
|
53
|
+
otherTaxLabel: string;
|
54
|
+
otherTaxPercent: number;
|
55
|
+
otherTax: number;
|
56
|
+
bantrTax: number;
|
57
|
+
stripeTax: number;
|
58
|
+
totalTax: number;
|
59
|
+
totalWithTax: number;
|
60
|
+
transferAmount: number;
|
61
|
+
};
|
62
|
+
};
|
47
63
|
} | {
|
48
64
|
redirectUrl: string;
|
49
65
|
}>;
|
@@ -29,42 +29,42 @@ export declare const leaguePaymentsRouter: import("@trpc/server").CreateRouterIn
|
|
29
29
|
};
|
30
30
|
_output_in: {
|
31
31
|
id: number;
|
32
|
-
memberId: number;
|
33
32
|
deletedAt: Date | null;
|
33
|
+
memberId: number;
|
34
34
|
member: {
|
35
35
|
id: number;
|
36
|
-
email: string;
|
37
36
|
firstName: string | null;
|
37
|
+
email: string;
|
38
38
|
lastName: string | null;
|
39
39
|
};
|
40
40
|
totalPaid: number;
|
41
41
|
payments: {
|
42
42
|
id: number;
|
43
|
+
payerId: number;
|
43
44
|
createdAt: string | Date;
|
44
45
|
price: number;
|
45
|
-
payerId: number;
|
46
46
|
amountApplied: number | null;
|
47
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
47
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
48
48
|
}[];
|
49
49
|
}[];
|
50
50
|
_output_out: {
|
51
51
|
id: number;
|
52
|
-
memberId: number;
|
53
52
|
deletedAt: Date | null;
|
53
|
+
memberId: number;
|
54
54
|
member: {
|
55
55
|
id: number;
|
56
|
-
email: string;
|
57
56
|
firstName: string | null;
|
57
|
+
email: string;
|
58
58
|
lastName: string | null;
|
59
59
|
};
|
60
60
|
totalPaid: number;
|
61
61
|
payments: {
|
62
62
|
id: number;
|
63
|
+
payerId: number;
|
63
64
|
createdAt: string | Date;
|
64
65
|
price: number;
|
65
|
-
payerId: number;
|
66
66
|
amountApplied: number | null;
|
67
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
67
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
68
68
|
}[];
|
69
69
|
}[];
|
70
70
|
}, unknown>;
|
@@ -83,16 +83,16 @@ export declare const leaguePaymentsRouter: import("@trpc/server").CreateRouterIn
|
|
83
83
|
};
|
84
84
|
_input_in: {
|
85
85
|
authorization?: string | undefined;
|
86
|
-
leagueId: number;
|
87
86
|
price: number;
|
88
|
-
|
87
|
+
leagueId: number;
|
88
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
89
89
|
teamRosterId: number;
|
90
90
|
};
|
91
91
|
_input_out: {
|
92
92
|
authorization?: string | undefined;
|
93
|
-
leagueId: number;
|
94
93
|
price: number;
|
95
|
-
|
94
|
+
leagueId: number;
|
95
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
96
96
|
teamRosterId: number;
|
97
97
|
};
|
98
98
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -115,14 +115,14 @@ export declare const leaguePaymentsRouter: import("@trpc/server").CreateRouterIn
|
|
115
115
|
authorization?: string | undefined;
|
116
116
|
id: number;
|
117
117
|
price: number;
|
118
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
118
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
119
119
|
teamRosterId: number;
|
120
120
|
};
|
121
121
|
_input_out: {
|
122
122
|
authorization?: string | undefined;
|
123
123
|
id: number;
|
124
124
|
price: number;
|
125
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
125
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
126
126
|
teamRosterId: number;
|
127
127
|
};
|
128
128
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -177,9 +177,9 @@ export declare const leaguePaymentsRouter: import("@trpc/server").CreateRouterIn
|
|
177
177
|
_input_out: {
|
178
178
|
authorization?: string | undefined;
|
179
179
|
leagueId: number;
|
180
|
-
paymentMode: "session" | "intent";
|
181
180
|
teamId: number;
|
182
181
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
182
|
+
paymentMode: "session" | "intent";
|
183
183
|
code?: string | undefined;
|
184
184
|
paymentAmount?: number | undefined;
|
185
185
|
};
|
@@ -162,11 +162,11 @@ export declare const oauthRouter: import("@trpc/server").CreateRouterInner<impor
|
|
162
162
|
};
|
163
163
|
_input_in: {
|
164
164
|
authorization?: string | undefined;
|
165
|
-
provider: "
|
165
|
+
provider: "google" | "apple";
|
166
166
|
};
|
167
167
|
_input_out: {
|
168
168
|
authorization?: string | undefined;
|
169
|
-
provider: "
|
169
|
+
provider: "google" | "apple";
|
170
170
|
};
|
171
171
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
172
172
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -19,17 +19,17 @@ export declare const pickupPaymentsRouter: import("@trpc/server").CreateRouterIn
|
|
19
19
|
};
|
20
20
|
_input_in: {
|
21
21
|
authorization?: string | undefined;
|
22
|
-
memberId: number;
|
23
22
|
pickupId: number;
|
23
|
+
memberId: number;
|
24
24
|
code?: string | undefined;
|
25
25
|
paymentMode?: "session" | "intent" | undefined;
|
26
26
|
cancelPath?: string | undefined;
|
27
27
|
};
|
28
28
|
_input_out: {
|
29
29
|
authorization?: string | undefined;
|
30
|
+
pickupId: number;
|
30
31
|
memberId: number;
|
31
32
|
paymentMode: "session" | "intent";
|
32
|
-
pickupId: number;
|
33
33
|
code?: string | undefined;
|
34
34
|
cancelPath?: string | undefined;
|
35
35
|
};
|
@@ -33,6 +33,7 @@ export declare const productRouter: import("@trpc/server").CreateRouterInner<imp
|
|
33
33
|
totalTax: number;
|
34
34
|
otherTaxLabel: string;
|
35
35
|
otherTax: number;
|
36
|
+
otherTaxPercent: number;
|
36
37
|
code?: string | undefined;
|
37
38
|
description?: string | undefined;
|
38
39
|
};
|
@@ -42,6 +43,7 @@ export declare const productRouter: import("@trpc/server").CreateRouterInner<imp
|
|
42
43
|
totalTax: number;
|
43
44
|
otherTaxLabel: string;
|
44
45
|
otherTax: number;
|
46
|
+
otherTaxPercent: number;
|
45
47
|
code?: string | undefined;
|
46
48
|
description?: string | undefined;
|
47
49
|
};
|