masterypath-sdk 0.0.13 → 0.1.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/dist/MasterypathSDK.d.ts +8 -8
- package/dist/MasterypathSDK.js +8 -8
- package/dist/cli/cli.d.ts +1 -1
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +1 -1
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/commands/chat.d.ts.map +1 -1
- package/dist/cli/commands/chat.js +10 -5
- package/dist/cli/commands/chat.js.map +1 -1
- package/dist/cli/commands/organizations.d.ts.map +1 -1
- package/dist/cli/commands/organizations.js +9 -70
- package/dist/cli/commands/organizations.js.map +1 -1
- package/dist/cli/commands/uploads.d.ts +2 -2
- package/dist/cli/commands/uploads.d.ts.map +1 -1
- package/dist/cli/commands/uploads.js +8 -8
- package/dist/cli/commands/uploads.js.map +1 -1
- package/dist/cli/output.d.ts.map +1 -1
- package/dist/cli/output.js +15 -13
- package/dist/cli/output.js.map +1 -1
- package/dist/domains/chat/ChatClient.d.ts +8 -8
- package/dist/domains/chat/ChatClient.d.ts.map +1 -1
- package/dist/domains/chat/ChatClient.js +24 -16
- package/dist/domains/chat/ChatClient.js.map +1 -1
- package/dist/domains/chat/types.d.ts +6 -0
- package/dist/domains/chat/types.d.ts.map +1 -1
- package/dist/domains/containers/ContainersClient.d.ts +187 -63
- package/dist/domains/containers/ContainersClient.js +542 -376
- package/dist/domains/index.d.ts +9 -9
- package/dist/domains/index.d.ts.map +1 -1
- package/dist/domains/index.js +5 -5
- package/dist/domains/listings/ListingsClient.d.ts +35 -12
- package/dist/domains/listings/ListingsClient.js +100 -84
- package/dist/domains/merchants/MerchantsClient.d.ts +124 -31
- package/dist/domains/merchants/MerchantsClient.js +420 -303
- package/dist/domains/mindmaps/MindmapsClient.d.ts +6 -6
- package/dist/domains/mindmaps/MindmapsClient.d.ts.map +1 -1
- package/dist/domains/mindmaps/MindmapsClient.js +12 -13
- package/dist/domains/mindmaps/MindmapsClient.js.map +1 -1
- package/dist/domains/mindmaps/types.d.ts.map +1 -1
- package/dist/domains/orders/OrdersClient.d.ts +327 -94
- package/dist/domains/orders/OrdersClient.js +934 -662
- package/dist/domains/orders/types.d.ts +45 -36
- package/dist/domains/orders/types.js +1 -1
- package/dist/domains/organizations/OrganizationsClient.d.ts +8 -5
- package/dist/domains/organizations/OrganizationsClient.d.ts.map +1 -1
- package/dist/domains/organizations/OrganizationsClient.js +21 -30
- package/dist/domains/organizations/OrganizationsClient.js.map +1 -1
- package/dist/domains/plants/PlantsClient.d.ts +43 -28
- package/dist/domains/plants/PlantsClient.js +51 -47
- package/dist/domains/products/ProductsClient.d.ts +34 -12
- package/dist/domains/products/ProductsClient.js +94 -83
- package/dist/domains/public-api/PublicApiClient.d.ts +22 -0
- package/dist/domains/public-api/PublicApiClient.d.ts.map +1 -1
- package/dist/domains/public-api/PublicApiClient.js +51 -0
- package/dist/domains/public-api/PublicApiClient.js.map +1 -1
- package/dist/domains/uploads/UploadsClient.d.ts.map +1 -1
- package/dist/domains/uploads/UploadsClient.js +1 -3
- package/dist/domains/uploads/UploadsClient.js.map +1 -1
- package/dist/domains/usdazones/UsdazonesClient.d.ts +6 -6
- package/dist/domains/usdazones/UsdazonesClient.js +15 -15
- package/dist/domains/users/UsersClient.d.ts +4 -4
- package/dist/domains/users/UsersClient.d.ts.map +1 -1
- package/dist/domains/users/UsersClient.js +24 -22
- package/dist/domains/users/UsersClient.js.map +1 -1
- package/dist/generated/graphql.d.ts +1172 -1079
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +5622 -84
- package/dist/generated/graphql.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/shared/fulfillmentWindows.js +4 -4
- package/dist/utils/errors.js +3 -3
- package/package.json +1 -1
|
@@ -1,96 +1,329 @@
|
|
|
1
|
-
import { HttpClient } from
|
|
2
|
-
import {
|
|
1
|
+
import { HttpClient } from "../../clients/HttpClient";
|
|
2
|
+
import {
|
|
3
|
+
CreateBatchOrderInput,
|
|
4
|
+
CreateBatchOrderMutation,
|
|
5
|
+
GetOrderQuery,
|
|
6
|
+
GetBatchOrderPreviewQuery,
|
|
7
|
+
CreatePaymentIntentsMutation,
|
|
8
|
+
CreatePaymentIntentMutation,
|
|
9
|
+
FulfillmentWindowsOfferedInput,
|
|
10
|
+
LocationDataInput,
|
|
11
|
+
ConfirmFulfillmentWindowMutation,
|
|
12
|
+
RequestFulfillmentWindowConfirmationMutation,
|
|
13
|
+
FulfillmentRequestPerson,
|
|
14
|
+
AddItemsToFulfillmentRequestMutation,
|
|
15
|
+
FulfillmentItemWithQuantityInput,
|
|
16
|
+
UpdateFrStatusEnRouteMutation,
|
|
17
|
+
UpdateCustomerEnRouteMutation,
|
|
18
|
+
UpdateFrStatusReadyMutation,
|
|
19
|
+
UpdateFrStatusFilledMutation,
|
|
20
|
+
UpdateFrStatusFailedAttemptMutation,
|
|
21
|
+
CancelFulfillmentRequestMutation,
|
|
22
|
+
GetFulfillmentRequestItemsQuery,
|
|
23
|
+
GetMilestonesForQuoteQuery,
|
|
24
|
+
GetMilestoneQuery,
|
|
25
|
+
MarkMilestoneReadyForPaymentMutation,
|
|
26
|
+
AuthorizeMilestonePaymentMutation,
|
|
27
|
+
CaptureMilestonePaymentMutation,
|
|
28
|
+
GetFulfillmentRequestQuery,
|
|
29
|
+
GetPaymentQuery,
|
|
30
|
+
CapturePaymentMutation,
|
|
31
|
+
CloseEscrowMutation,
|
|
32
|
+
RemoveItemsFromFulfillmentRequestMutation,
|
|
33
|
+
AmendLateFulfillmentRequestMutation,
|
|
34
|
+
CreateServiceQuoteMutation,
|
|
35
|
+
CreateServiceQuoteInput,
|
|
36
|
+
UpdateServiceQuoteMutation,
|
|
37
|
+
UpdateServiceQuoteInput,
|
|
38
|
+
CreateTimeAndMaterialsPaymentIntentMutation,
|
|
39
|
+
CaptureTimeAndMaterialsPaymentMutation,
|
|
40
|
+
RequestTimeAndMaterialsPaymentMutation,
|
|
41
|
+
AuthorizeTimeAndMaterialsPaymentMutation,
|
|
42
|
+
GetTimeAndMaterialsBillingRequestsQuery,
|
|
43
|
+
DisputePaymentMutation,
|
|
44
|
+
ResolveDisputeMutation,
|
|
45
|
+
CreateTimeAndMaterialsServiceQuoteMutation,
|
|
46
|
+
UpdateTimeAndMaterialsServiceQuoteMutation,
|
|
47
|
+
SubmitTimeLogForTandMQuoteMutation,
|
|
48
|
+
SubmitMaterialReceiptForTandMQuoteMutation,
|
|
49
|
+
GetTimeAndMaterialsServiceQuoteQuery,
|
|
50
|
+
GetTimeLogsForTandMQuoteQuery,
|
|
51
|
+
GetMaterialReceiptsForTandMQuoteQuery,
|
|
52
|
+
} from "../../generated/graphql";
|
|
3
53
|
export declare class OrdersClient {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
54
|
+
private readonly httpClient;
|
|
55
|
+
private merchantIdCache;
|
|
56
|
+
constructor(httpClient: HttpClient);
|
|
57
|
+
getMerchantIdFromHandle(merchantHandle: string): Promise<string>;
|
|
58
|
+
private getMerchantIdFromHandleInternal;
|
|
59
|
+
createBatchOrder(
|
|
60
|
+
merchantHandle: string,
|
|
61
|
+
input: CreateBatchOrderInput,
|
|
62
|
+
): Promise<CreateBatchOrderMutation["createBatchOrder"]>;
|
|
63
|
+
getOrder(
|
|
64
|
+
merchantHandle: string,
|
|
65
|
+
orderId: string,
|
|
66
|
+
): Promise<GetOrderQuery["getOrder"]>;
|
|
67
|
+
getFulfillmentRequest(
|
|
68
|
+
merchantHandle: string,
|
|
69
|
+
fulfillmentId: string,
|
|
70
|
+
): Promise<GetFulfillmentRequestQuery["getFulfillmentRequest"]>;
|
|
71
|
+
getPayment(
|
|
72
|
+
merchantHandle: string,
|
|
73
|
+
paymentId: string,
|
|
74
|
+
): Promise<GetPaymentQuery["getPayment"]>;
|
|
75
|
+
getBatchOrderPreview(
|
|
76
|
+
merchantHandle: string,
|
|
77
|
+
input: CreateBatchOrderInput,
|
|
78
|
+
): Promise<GetBatchOrderPreviewQuery["getBatchOrderPreview"]>;
|
|
79
|
+
createPaymentIntents(
|
|
80
|
+
merchantHandle: string,
|
|
81
|
+
batchOrderId: string,
|
|
82
|
+
options?: {
|
|
83
|
+
paymentMethodId?: string;
|
|
84
|
+
fulfillmentWindowsOffered?: FulfillmentWindowsOfferedInput[];
|
|
85
|
+
location?: LocationDataInput;
|
|
86
|
+
},
|
|
87
|
+
): Promise<CreatePaymentIntentsMutation["createPaymentIntents"]>;
|
|
88
|
+
createPaymentIntent(
|
|
89
|
+
merchantHandle: string,
|
|
90
|
+
orderId: string,
|
|
91
|
+
options?: {
|
|
92
|
+
paymentMethodId?: string;
|
|
93
|
+
fulfillmentWindowsOffered?: FulfillmentWindowsOfferedInput[];
|
|
94
|
+
location?: LocationDataInput;
|
|
95
|
+
cancelExistingPayments?: boolean;
|
|
96
|
+
},
|
|
97
|
+
): Promise<CreatePaymentIntentMutation["createPaymentIntent"]>;
|
|
98
|
+
confirmFulfillmentWindow(
|
|
99
|
+
merchantHandle: string,
|
|
100
|
+
fulfillmentId: string,
|
|
101
|
+
): Promise<ConfirmFulfillmentWindowMutation["confirmFulfillmentWindow"]>;
|
|
102
|
+
requestFulfillmentWindowConfirmation(
|
|
103
|
+
merchantHandle: string,
|
|
104
|
+
fulfillmentId: string,
|
|
105
|
+
requestingConfirmationFrom: FulfillmentRequestPerson,
|
|
106
|
+
): Promise<
|
|
107
|
+
RequestFulfillmentWindowConfirmationMutation["requestFulfillmentWindowConfirmation"]
|
|
108
|
+
>;
|
|
109
|
+
addItemsToFulfillmentRequest(
|
|
110
|
+
merchantHandle: string,
|
|
111
|
+
fulfillmentId: string,
|
|
112
|
+
items: FulfillmentItemWithQuantityInput[],
|
|
113
|
+
): Promise<
|
|
114
|
+
AddItemsToFulfillmentRequestMutation["addItemsToFulfillmentRequest"]
|
|
115
|
+
>;
|
|
116
|
+
removeItemsFromFulfillmentRequest(
|
|
117
|
+
merchantHandle: string,
|
|
118
|
+
fulfillmentId: string,
|
|
119
|
+
itemIds: string[],
|
|
120
|
+
): Promise<
|
|
121
|
+
RemoveItemsFromFulfillmentRequestMutation["removeItemsFromFulfillmentRequest"]
|
|
122
|
+
>;
|
|
123
|
+
updateFrStatusEnRoute(
|
|
124
|
+
merchantHandle: string,
|
|
125
|
+
fulfillmentId: string,
|
|
126
|
+
): Promise<UpdateFrStatusEnRouteMutation["updateFrStatusEnRoute"]>;
|
|
127
|
+
updateCustomerEnRoute(
|
|
128
|
+
merchantHandle: string,
|
|
129
|
+
fulfillmentId: string,
|
|
130
|
+
): Promise<UpdateCustomerEnRouteMutation["updateCustomerEnRoute"]>;
|
|
131
|
+
updateFrStatusReady(
|
|
132
|
+
merchantHandle: string,
|
|
133
|
+
fulfillmentId: string,
|
|
134
|
+
): Promise<UpdateFrStatusReadyMutation["updateFrStatusReady"]>;
|
|
135
|
+
updateFrStatusFilled(
|
|
136
|
+
merchantHandle: string,
|
|
137
|
+
fulfillmentId: string,
|
|
138
|
+
): Promise<UpdateFrStatusFilledMutation["updateFrStatusFilled"]>;
|
|
139
|
+
updateFrStatusFailedAttempt(
|
|
140
|
+
merchantHandle: string,
|
|
141
|
+
fulfillmentId: string,
|
|
142
|
+
): Promise<
|
|
143
|
+
UpdateFrStatusFailedAttemptMutation["updateFrStatusFailedAttempt"]
|
|
144
|
+
>;
|
|
145
|
+
cancelFulfillmentRequest(
|
|
146
|
+
merchantHandle: string,
|
|
147
|
+
fulfillmentId: string,
|
|
148
|
+
reason?: string,
|
|
149
|
+
): Promise<CancelFulfillmentRequestMutation["cancelFulfillmentRequest"]>;
|
|
150
|
+
getFulfillmentRequestItems(
|
|
151
|
+
merchantHandle: string,
|
|
152
|
+
fulfillmentId: string,
|
|
153
|
+
): Promise<GetFulfillmentRequestItemsQuery["getFulfillmentRequestItems"]>;
|
|
154
|
+
capturePayment(
|
|
155
|
+
merchantHandle: string,
|
|
156
|
+
orderId: string,
|
|
157
|
+
fulfillmentRequestId: string,
|
|
158
|
+
): Promise<CapturePaymentMutation["capturePayment"]>;
|
|
159
|
+
closeEscrow(
|
|
160
|
+
merchantHandle: string,
|
|
161
|
+
paymentId: string,
|
|
162
|
+
): Promise<CloseEscrowMutation["closeEscrow"]>;
|
|
163
|
+
disputePayment(
|
|
164
|
+
merchantHandle: string,
|
|
165
|
+
input: {
|
|
166
|
+
paymentId: string;
|
|
167
|
+
reason: string;
|
|
168
|
+
message?: string;
|
|
169
|
+
},
|
|
170
|
+
): Promise<DisputePaymentMutation["disputePayment"]>;
|
|
171
|
+
resolveDispute(
|
|
172
|
+
merchantHandle: string,
|
|
173
|
+
input: {
|
|
174
|
+
disputeId: string;
|
|
175
|
+
outcome: string;
|
|
176
|
+
resolutionNotes?: string;
|
|
177
|
+
partialRefundUsd?: number;
|
|
178
|
+
},
|
|
179
|
+
): Promise<ResolveDisputeMutation["resolveDispute"]>;
|
|
180
|
+
addDisputeMessage(
|
|
181
|
+
merchantHandle: string,
|
|
182
|
+
disputeId: string,
|
|
183
|
+
message: string,
|
|
184
|
+
): Promise<boolean>;
|
|
185
|
+
amendLateFulfillmentRequest(
|
|
186
|
+
merchantHandle: string,
|
|
187
|
+
fulfillmentId: string,
|
|
188
|
+
options?: {
|
|
189
|
+
compensationAmountUsd?: number;
|
|
190
|
+
customerMessage?: string;
|
|
191
|
+
merchantMessage?: string;
|
|
192
|
+
fulfillmentWindowsOffered?: FulfillmentWindowsOfferedInput[];
|
|
193
|
+
},
|
|
194
|
+
): Promise<
|
|
195
|
+
AmendLateFulfillmentRequestMutation["amendLateFulfillmentRequest"]
|
|
196
|
+
>;
|
|
197
|
+
createServiceQuote(
|
|
198
|
+
merchantHandle: string,
|
|
199
|
+
input: CreateServiceQuoteInput,
|
|
200
|
+
): Promise<CreateServiceQuoteMutation["createServiceQuote"]>;
|
|
201
|
+
updateServiceQuote(
|
|
202
|
+
merchantHandle: string,
|
|
203
|
+
input: UpdateServiceQuoteInput,
|
|
204
|
+
): Promise<UpdateServiceQuoteMutation["updateServiceQuote"]>;
|
|
205
|
+
getMilestonesForQuote(
|
|
206
|
+
merchantHandle: string,
|
|
207
|
+
quoteId: string,
|
|
208
|
+
): Promise<GetMilestonesForQuoteQuery["getMilestonesForQuote"]>;
|
|
209
|
+
getMilestone(
|
|
210
|
+
merchantHandle: string,
|
|
211
|
+
milestoneId: string,
|
|
212
|
+
): Promise<GetMilestoneQuery["getMilestone"]>;
|
|
213
|
+
markMilestoneReadyForPayment(
|
|
214
|
+
merchantHandle: string,
|
|
215
|
+
milestoneId: string,
|
|
216
|
+
): Promise<
|
|
217
|
+
MarkMilestoneReadyForPaymentMutation["markMilestoneReadyForPayment"]
|
|
218
|
+
>;
|
|
219
|
+
authorizeMilestonePayment(
|
|
220
|
+
merchantHandle: string,
|
|
221
|
+
milestoneId: string,
|
|
222
|
+
paymentMethodId: string,
|
|
223
|
+
location?: LocationDataInput,
|
|
224
|
+
): Promise<AuthorizeMilestonePaymentMutation["authorizeMilestonePayment"]>;
|
|
225
|
+
captureMilestonePayment(
|
|
226
|
+
merchantHandle: string,
|
|
227
|
+
milestoneId: string,
|
|
228
|
+
): Promise<CaptureMilestonePaymentMutation["captureMilestonePayment"]>;
|
|
229
|
+
createTimeAndMaterialsServiceQuote(
|
|
230
|
+
merchantHandle: string,
|
|
231
|
+
input: {
|
|
232
|
+
orderId: string;
|
|
233
|
+
title: string;
|
|
234
|
+
description: string;
|
|
235
|
+
hourlyRateUsd: number;
|
|
236
|
+
maxAmountUsd: number;
|
|
237
|
+
expiresInHours?: number;
|
|
238
|
+
},
|
|
239
|
+
): Promise<
|
|
240
|
+
CreateTimeAndMaterialsServiceQuoteMutation["createTimeAndMaterialsServiceQuote"]
|
|
241
|
+
>;
|
|
242
|
+
submitTimeLogForTandMQuote(
|
|
243
|
+
merchantHandle: string,
|
|
244
|
+
quoteId: string,
|
|
245
|
+
input: {
|
|
246
|
+
date: string;
|
|
247
|
+
hoursWorked: number;
|
|
248
|
+
description: string;
|
|
249
|
+
},
|
|
250
|
+
): Promise<SubmitTimeLogForTandMQuoteMutation["submitTimeLogForTandMQuote"]>;
|
|
251
|
+
submitMaterialReceiptForTandMQuote(
|
|
252
|
+
merchantHandle: string,
|
|
253
|
+
quoteId: string,
|
|
254
|
+
input: {
|
|
255
|
+
itemName: string;
|
|
256
|
+
costUsd: number;
|
|
257
|
+
receiptUrl?: string;
|
|
258
|
+
description?: string;
|
|
259
|
+
},
|
|
260
|
+
): Promise<
|
|
261
|
+
SubmitMaterialReceiptForTandMQuoteMutation["submitMaterialReceiptForTandMQuote"]
|
|
262
|
+
>;
|
|
263
|
+
getTimeLogsForTandMQuote(
|
|
264
|
+
merchantHandle: string,
|
|
265
|
+
quoteId: string,
|
|
266
|
+
): Promise<GetTimeLogsForTandMQuoteQuery["getTimeLogsForTandMQuote"]>;
|
|
267
|
+
getMaterialReceiptsForTandMQuote(
|
|
268
|
+
merchantHandle: string,
|
|
269
|
+
quoteId: string,
|
|
270
|
+
): Promise<
|
|
271
|
+
GetMaterialReceiptsForTandMQuoteQuery["getMaterialReceiptsForTandMQuote"]
|
|
272
|
+
>;
|
|
273
|
+
getTimeAndMaterialsServiceQuote(
|
|
274
|
+
merchantHandle: string,
|
|
275
|
+
orderId: string,
|
|
276
|
+
): Promise<
|
|
277
|
+
GetTimeAndMaterialsServiceQuoteQuery["getTimeAndMaterialsServiceQuote"]
|
|
278
|
+
>;
|
|
279
|
+
calculateTimeAndMaterialsAmount(
|
|
280
|
+
merchantHandle: string,
|
|
281
|
+
quoteId: string,
|
|
282
|
+
): Promise<number>;
|
|
283
|
+
updateTimeAndMaterialsServiceQuote(
|
|
284
|
+
merchantHandle: string,
|
|
285
|
+
input: {
|
|
286
|
+
quoteId: string;
|
|
287
|
+
action: "accept" | "reject";
|
|
288
|
+
},
|
|
289
|
+
): Promise<
|
|
290
|
+
UpdateTimeAndMaterialsServiceQuoteMutation["updateTimeAndMaterialsServiceQuote"]
|
|
291
|
+
>;
|
|
292
|
+
createTimeAndMaterialsPaymentIntent(
|
|
293
|
+
merchantHandle: string,
|
|
294
|
+
orderId: string,
|
|
295
|
+
paymentMethodId: string,
|
|
296
|
+
location: LocationDataInput,
|
|
297
|
+
): Promise<
|
|
298
|
+
CreateTimeAndMaterialsPaymentIntentMutation["createTimeAndMaterialsPaymentIntent"]
|
|
299
|
+
>;
|
|
300
|
+
requestTimeAndMaterialsPayment(
|
|
301
|
+
merchantHandle: string,
|
|
302
|
+
quoteId: string,
|
|
303
|
+
description: string,
|
|
304
|
+
amountUsd: number,
|
|
305
|
+
): Promise<
|
|
306
|
+
RequestTimeAndMaterialsPaymentMutation["requestTimeAndMaterialsPayment"]
|
|
307
|
+
>;
|
|
308
|
+
authorizeTimeAndMaterialsPayment(
|
|
309
|
+
merchantHandle: string,
|
|
310
|
+
billingRequestId: string,
|
|
311
|
+
paymentMethodId: string,
|
|
312
|
+
location?: LocationDataInput,
|
|
313
|
+
): Promise<
|
|
314
|
+
AuthorizeTimeAndMaterialsPaymentMutation["authorizeTimeAndMaterialsPayment"]
|
|
315
|
+
>;
|
|
316
|
+
captureTimeAndMaterialsPayment(
|
|
317
|
+
merchantHandle: string,
|
|
318
|
+
billingRequestId: string,
|
|
319
|
+
): Promise<
|
|
320
|
+
CaptureTimeAndMaterialsPaymentMutation["captureTimeAndMaterialsPayment"]
|
|
321
|
+
>;
|
|
322
|
+
getTimeAndMaterialsBillingRequests(
|
|
323
|
+
merchantHandle: string,
|
|
324
|
+
quoteId: string,
|
|
325
|
+
): Promise<
|
|
326
|
+
GetTimeAndMaterialsBillingRequestsQuery["getTimeAndMaterialsBillingRequests"]
|
|
327
|
+
>;
|
|
95
328
|
}
|
|
96
|
-
//# sourceMappingURL=OrdersClient.d.ts.map
|
|
329
|
+
//# sourceMappingURL=OrdersClient.d.ts.map
|