@vulog/aima-business 1.2.39
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.cjs +668 -0
- package/dist/index.d.cts +346 -0
- package/dist/index.d.mts +346 -0
- package/dist/index.mjs +609 -0
- package/package.json +42 -0
- package/src/addBusinessCredit.ts +31 -0
- package/src/addStripePayment.ts +18 -0
- package/src/addTripNote.test.ts +67 -0
- package/src/addTripNote.ts +30 -0
- package/src/addUserToBusiness.test.ts +74 -0
- package/src/addUserToBusiness.ts +49 -0
- package/src/archiveBusinessProfile.ts +28 -0
- package/src/bulkAddBusinessUsers.ts +27 -0
- package/src/businessDelegatedAdmin.test.ts +68 -0
- package/src/businessDelegatedAdmin.ts +32 -0
- package/src/businessOwner.test.ts +68 -0
- package/src/businessOwner.ts +32 -0
- package/src/chargeBusinessProduct.ts +31 -0
- package/src/createBusiness.test.ts +54 -0
- package/src/createBusiness.ts +23 -0
- package/src/createBusinessCostCenter.test.ts +61 -0
- package/src/createBusinessCostCenter.ts +34 -0
- package/src/deactivateBusinessProfile.ts +22 -0
- package/src/deleteBusinessCostCenter.test.ts +45 -0
- package/src/deleteBusinessCostCenter.ts +23 -0
- package/src/deleteInvitationRequest.test.ts +45 -0
- package/src/deleteInvitationRequest.ts +13 -0
- package/src/getBillingGroups.ts +9 -0
- package/src/getBusinessById.test.ts +47 -0
- package/src/getBusinessById.ts +15 -0
- package/src/getBusinessContacts.ts +17 -0
- package/src/getBusinessCostCenterById.ts +27 -0
- package/src/getBusinessCostCenters.ts +18 -0
- package/src/getBusinessInviteLink.ts +17 -0
- package/src/getBusinessInvoiceProducts.ts +24 -0
- package/src/getBusinessInvoiceTrips.ts +20 -0
- package/src/getBusinessInvoices.test.ts +92 -0
- package/src/getBusinessInvoices.ts +43 -0
- package/src/getBusinessPaymentDetails.ts +20 -0
- package/src/getBusinessProducts.ts +9 -0
- package/src/getBusinessTripById.ts +15 -0
- package/src/getBusinessUserById.ts +26 -0
- package/src/getBusinessUserGlobalById.ts +15 -0
- package/src/getBusinessUsers.test.ts +70 -0
- package/src/getBusinessUsers.ts +43 -0
- package/src/getBusinessWallet.test.ts +46 -0
- package/src/getBusinessWallet.ts +17 -0
- package/src/getBusinesses.test.ts +133 -0
- package/src/getBusinesses.ts +36 -0
- package/src/getEntityBalance.ts +17 -0
- package/src/getEntityProducts.ts +15 -0
- package/src/getEntityTrips.ts +13 -0
- package/src/getEntityTripsCost.ts +17 -0
- package/src/getInvitationRequest.test.ts +46 -0
- package/src/getInvitationRequest.ts +17 -0
- package/src/getInvoicePdf.test.ts +62 -0
- package/src/getInvoicePdf.ts +16 -0
- package/src/getInvoiceRefundNote.ts +17 -0
- package/src/getInvoiceRefundableAmount.ts +20 -0
- package/src/getOngoingTripNotes.ts +17 -0
- package/src/getOngoingTrips.test.ts +43 -0
- package/src/getOngoingTrips.ts +9 -0
- package/src/getStripePublishableKey.ts +9 -0
- package/src/getStripeSetup.ts +17 -0
- package/src/index.ts +58 -0
- package/src/inviteBusinessUser.ts +31 -0
- package/src/listBusinessUsersGlobal.test.ts +65 -0
- package/src/listBusinessUsersGlobal.ts +26 -0
- package/src/redeemBusinessPromoCode.ts +18 -0
- package/src/refundInvoice.test.ts +72 -0
- package/src/refundInvoice.ts +33 -0
- package/src/refundInvoiceAmount.ts +20 -0
- package/src/searchBusinessUsersByName.ts +27 -0
- package/src/searchBusinessUsersGlobal.ts +18 -0
- package/src/sendBusinessIban.ts +29 -0
- package/src/setInvoiceExternalPayment.ts +33 -0
- package/src/types.ts +163 -0
- package/src/updateBusiness.test.ts +65 -0
- package/src/updateBusiness.ts +35 -0
- package/src/updateBusinessCostCenter.ts +41 -0
- package/src/updateBusinessProfileStatus.ts +22 -0
- package/src/updateBusinessUserProfile.ts +51 -0
- package/src/updateInvoiceStatus.test.ts +54 -0
- package/src/updateInvoiceStatus.ts +19 -0
- package/tsconfig.json +9 -0
- package/tsdown.config.ts +8 -0
- package/vitest.config.ts +1 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import { Client } from "@vulog/aima-client";
|
|
2
|
+
import { PaginableOptions, PaginableResponse } from "@vulog/aima-core";
|
|
3
|
+
|
|
4
|
+
//#region src/addBusinessCredit.d.ts
|
|
5
|
+
type AddBusinessCreditBody = {
|
|
6
|
+
amount: number;
|
|
7
|
+
};
|
|
8
|
+
declare const addBusinessCredit: (client: Client, businessId: string, body: AddBusinessCreditBody) => Promise<void>;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/types.d.ts
|
|
11
|
+
/** Represents a business entity */
|
|
12
|
+
type Business = {
|
|
13
|
+
/** Unique identifier */id: string; /** Business name */
|
|
14
|
+
name: string; /** Business status */
|
|
15
|
+
status: string;
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
/** Represents a contact within a business */
|
|
19
|
+
type BusinessContact = {
|
|
20
|
+
/** Contact identifier */id: string; /** Contact name */
|
|
21
|
+
name: string; /** Contact email */
|
|
22
|
+
email: string;
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
};
|
|
25
|
+
/** Represents a cost center within a business */
|
|
26
|
+
type CostCenter = {
|
|
27
|
+
/** Unique identifier */id: string; /** Cost center name */
|
|
28
|
+
name: string; /** Parent business identifier */
|
|
29
|
+
businessId: string;
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
};
|
|
32
|
+
/** Represents payment details for a business */
|
|
33
|
+
type BusinessPaymentDetails = {
|
|
34
|
+
/** Payment method type */paymentMethod: string;
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
};
|
|
37
|
+
/** Represents a user linked to a business */
|
|
38
|
+
type BusinessUser = {
|
|
39
|
+
/** User identifier */userId: string; /** Business identifier */
|
|
40
|
+
businessId: string; /** User role within the business */
|
|
41
|
+
role: string;
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
};
|
|
44
|
+
/** Represents an invitation link for a business */
|
|
45
|
+
type BusinessInviteLink = {
|
|
46
|
+
/** Invitation URL */url: string;
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
};
|
|
49
|
+
/** Represents entity balance information */
|
|
50
|
+
type EntityBalance = {
|
|
51
|
+
/** Entity identifier */entityId: string; /** Current balance */
|
|
52
|
+
balance: number;
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
};
|
|
55
|
+
/** Represents the total cost of trips for an entity */
|
|
56
|
+
type EntityTripsCost = {
|
|
57
|
+
/** Total cost */totalCost: number;
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
};
|
|
60
|
+
/** Represents a billing group in the business context */
|
|
61
|
+
type BusinessBillingGroup = {
|
|
62
|
+
/** Group identifier */id: string; /** Group name */
|
|
63
|
+
name: string;
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
};
|
|
66
|
+
/** Represents a Stripe setup response */
|
|
67
|
+
type StripeSetup = {
|
|
68
|
+
/** Client secret for Stripe */clientSecret: string;
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
};
|
|
71
|
+
/** Represents Stripe configuration */
|
|
72
|
+
type StripeConfig = {
|
|
73
|
+
/** Stripe publishable key */publishableKey: string;
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
};
|
|
76
|
+
/** Represents a business invoice */
|
|
77
|
+
type BusinessInvoice = {
|
|
78
|
+
/** Invoice identifier */id: string; /** Invoice amount */
|
|
79
|
+
amount: number; /** Invoice status */
|
|
80
|
+
status: string;
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
};
|
|
83
|
+
/** Represents the refund note for an invoice */
|
|
84
|
+
type InvoiceRefundNote = {
|
|
85
|
+
[key: string]: any;
|
|
86
|
+
};
|
|
87
|
+
/** Represents the refundable amount for an invoice */
|
|
88
|
+
type InvoiceRefundableAmount = {
|
|
89
|
+
/** Invoice identifier */invoiceId: string; /** Refundable amount */
|
|
90
|
+
refundableAmount: number;
|
|
91
|
+
[key: string]: any;
|
|
92
|
+
};
|
|
93
|
+
/** Represents a business trip */
|
|
94
|
+
type BusinessTrip = {
|
|
95
|
+
/** Trip identifier */tripId: string;
|
|
96
|
+
[key: string]: any;
|
|
97
|
+
};
|
|
98
|
+
/** Represents a note on a trip */
|
|
99
|
+
type TripNote = {
|
|
100
|
+
/** Note identifier */id: string; /** Note content */
|
|
101
|
+
content: string;
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
};
|
|
104
|
+
/** Represents a product in the business context */
|
|
105
|
+
type BusinessProduct = {
|
|
106
|
+
/** Product identifier */id: string; /** Product name */
|
|
107
|
+
name: string;
|
|
108
|
+
[key: string]: any;
|
|
109
|
+
};
|
|
110
|
+
/** Represents an invitation request */
|
|
111
|
+
type InvitationRequest = {
|
|
112
|
+
/** Invitation request identifier */id: string;
|
|
113
|
+
[key: string]: any;
|
|
114
|
+
};
|
|
115
|
+
/** Represents a business wallet */
|
|
116
|
+
type BusinessWallet = {
|
|
117
|
+
[key: string]: any;
|
|
118
|
+
};
|
|
119
|
+
/** Represents a business user profile */
|
|
120
|
+
type BusinessUserProfile = {
|
|
121
|
+
[key: string]: any;
|
|
122
|
+
};
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/addStripePayment.d.ts
|
|
125
|
+
/** @deprecated */
|
|
126
|
+
declare const addStripePayment: (client: Client, businessId: string) => Promise<StripeSetup>;
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/addTripNote.d.ts
|
|
129
|
+
type AddTripNoteBody = {
|
|
130
|
+
content: string;
|
|
131
|
+
};
|
|
132
|
+
declare const addTripNote: (client: Client, tripId: string, body: AddTripNoteBody) => Promise<TripNote>;
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/addUserToBusiness.d.ts
|
|
135
|
+
type AddUserToBusinessBody = {
|
|
136
|
+
email?: string;
|
|
137
|
+
emailConsent?: boolean;
|
|
138
|
+
requestId?: string;
|
|
139
|
+
costCenterId?: string;
|
|
140
|
+
};
|
|
141
|
+
declare const addUserToBusiness: (client: Client, businessId: string, userId: string, data?: AddUserToBusinessBody) => Promise<BusinessUserProfile>;
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region src/archiveBusinessProfile.d.ts
|
|
144
|
+
declare const archiveBusinessProfile: (client: Client, businessId: string, userId: string, profileId: string) => Promise<void>;
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region src/bulkAddBusinessUsers.d.ts
|
|
147
|
+
type BulkAddBusinessUsersBody = {
|
|
148
|
+
userIds: string[];
|
|
149
|
+
};
|
|
150
|
+
declare const bulkAddBusinessUsers: (client: Client, businessId: string, body: BulkAddBusinessUsersBody) => Promise<void>;
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/businessDelegatedAdmin.d.ts
|
|
153
|
+
declare const setDelegatedAdmin: (client: Client, businessId: string, userId: string) => Promise<void>;
|
|
154
|
+
declare const removeDelegatedAdmin: (client: Client, businessId: string, userId: string) => Promise<void>;
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/businessOwner.d.ts
|
|
157
|
+
declare const setBusinessOwner: (client: Client, businessId: string, userId: string) => Promise<void>;
|
|
158
|
+
declare const removeBusinessOwner: (client: Client, businessId: string, userId: string) => Promise<void>;
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region src/chargeBusinessProduct.d.ts
|
|
161
|
+
type ChargeBusinessProductBody = {
|
|
162
|
+
productId: string;
|
|
163
|
+
};
|
|
164
|
+
declare const chargeBusinessProduct: (client: Client, businessId: string, body: ChargeBusinessProductBody) => Promise<void>;
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region src/createBusiness.d.ts
|
|
167
|
+
type CreateBusinessBody = {
|
|
168
|
+
name: string;
|
|
169
|
+
};
|
|
170
|
+
declare const createBusiness: (client: Client, body: CreateBusinessBody) => Promise<Business>;
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region src/createBusinessCostCenter.d.ts
|
|
173
|
+
type CreateCostCenterBody = {
|
|
174
|
+
name: string;
|
|
175
|
+
};
|
|
176
|
+
declare const createBusinessCostCenter: (client: Client, businessId: string, body: CreateCostCenterBody) => Promise<CostCenter>;
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region src/deactivateBusinessProfile.d.ts
|
|
179
|
+
declare const deactivateBusinessProfile: (client: Client, businessId: string, profileId: string) => Promise<void>;
|
|
180
|
+
//#endregion
|
|
181
|
+
//#region src/deleteBusinessCostCenter.d.ts
|
|
182
|
+
declare const deleteBusinessCostCenter: (client: Client, businessId: string, costCenterId: string) => Promise<void>;
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/deleteInvitationRequest.d.ts
|
|
185
|
+
declare const deleteInvitationRequest: (client: Client, invitationId: string) => Promise<void>;
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region src/getBillingGroups.d.ts
|
|
188
|
+
declare const getBusinessBillingGroups: (client: Client) => Promise<BusinessBillingGroup[]>;
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region src/getBusinessById.d.ts
|
|
191
|
+
declare const getBusinessById: (client: Client, businessId: string) => Promise<Business>;
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/getBusinessContacts.d.ts
|
|
194
|
+
declare const getBusinessContacts: (client: Client, businessId: string) => Promise<BusinessContact[]>;
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region src/getBusinessCostCenterById.d.ts
|
|
197
|
+
declare const getBusinessCostCenterById: (client: Client, businessId: string, costCenterId: string) => Promise<CostCenter>;
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region src/getBusinessCostCenters.d.ts
|
|
200
|
+
declare const getBusinessCostCenters: (client: Client, businessId: string) => Promise<CostCenter[]>;
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/getBusinesses.d.ts
|
|
203
|
+
declare const getBusinesses: (client: Client, options?: PaginableOptions) => Promise<PaginableResponse<Business>>;
|
|
204
|
+
//#endregion
|
|
205
|
+
//#region src/getBusinessInviteLink.d.ts
|
|
206
|
+
declare const getBusinessInviteLink: (client: Client, businessId: string) => Promise<BusinessInviteLink>;
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region src/getBusinessInvoiceProducts.d.ts
|
|
209
|
+
declare const getBusinessInvoiceProducts: (client: Client, entityId: string, invoiceId: string) => Promise<any[]>;
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region src/getBusinessInvoices.d.ts
|
|
212
|
+
declare const getBusinessInvoices: (client: Client, entityId: string, options?: PaginableOptions) => Promise<PaginableResponse<BusinessInvoice>>;
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region src/getBusinessInvoiceTrips.d.ts
|
|
215
|
+
declare const getBusinessInvoiceTrips: (client: Client, entityId: string, invoiceId: string) => Promise<any[]>;
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region src/getBusinessPaymentDetails.d.ts
|
|
218
|
+
declare const getBusinessPaymentDetails: (client: Client, businessId: string) => Promise<BusinessPaymentDetails>;
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region src/getBusinessProducts.d.ts
|
|
221
|
+
declare const getBusinessProducts: (client: Client) => Promise<BusinessProduct[]>;
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region src/getBusinessTripById.d.ts
|
|
224
|
+
declare const getBusinessTripById: (client: Client, tripId: string) => Promise<BusinessTrip>;
|
|
225
|
+
//#endregion
|
|
226
|
+
//#region src/getBusinessUserById.d.ts
|
|
227
|
+
declare const getBusinessUserById: (client: Client, businessId: string, userId: string) => Promise<BusinessUser>;
|
|
228
|
+
//#endregion
|
|
229
|
+
//#region src/getBusinessUserGlobalById.d.ts
|
|
230
|
+
declare const getBusinessUserGlobalById: (client: Client, userId: string) => Promise<BusinessUser>;
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region src/getBusinessUsers.d.ts
|
|
233
|
+
declare const getBusinessUsers: (client: Client, businessId: string, options?: PaginableOptions) => Promise<PaginableResponse<BusinessUser>>;
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region src/getBusinessWallet.d.ts
|
|
236
|
+
declare const getBusinessWallet: (client: Client, businessId: string) => Promise<BusinessWallet>;
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region src/getEntityBalance.d.ts
|
|
239
|
+
declare const getEntityBalance: (client: Client, entityId: string) => Promise<EntityBalance>;
|
|
240
|
+
//#endregion
|
|
241
|
+
//#region src/getEntityProducts.d.ts
|
|
242
|
+
declare const getEntityProducts: (client: Client, entityId: string) => Promise<any[]>;
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region src/getEntityTrips.d.ts
|
|
245
|
+
declare const getEntityTrips: (client: Client, entityId: string) => Promise<any[]>;
|
|
246
|
+
//#endregion
|
|
247
|
+
//#region src/getEntityTripsCost.d.ts
|
|
248
|
+
declare const getEntityTripsCost: (client: Client, entityId: string) => Promise<EntityTripsCost>;
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region src/getInvitationRequest.d.ts
|
|
251
|
+
declare const getInvitationRequest: (client: Client, invitationId: string) => Promise<InvitationRequest>;
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region src/getInvoicePdf.d.ts
|
|
254
|
+
declare const getInvoicePdf: (client: Client, invoiceId: string) => Promise<ArrayBuffer | null>;
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region src/getInvoiceRefundableAmount.d.ts
|
|
257
|
+
declare const getInvoiceRefundableAmount: (client: Client, invoiceId: string) => Promise<InvoiceRefundableAmount>;
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region src/getInvoiceRefundNote.d.ts
|
|
260
|
+
declare const getInvoiceRefundNote: (client: Client, invoiceId: string) => Promise<InvoiceRefundNote>;
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region src/getOngoingTripNotes.d.ts
|
|
263
|
+
declare const getOngoingTripNotes: (client: Client, tripId: string) => Promise<TripNote[]>;
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region src/getOngoingTrips.d.ts
|
|
266
|
+
declare const getOngoingTrips: (client: Client) => Promise<BusinessTrip[]>;
|
|
267
|
+
//#endregion
|
|
268
|
+
//#region src/getStripePublishableKey.d.ts
|
|
269
|
+
declare const getStripePublishableKey: (client: Client) => Promise<StripeConfig>;
|
|
270
|
+
//#endregion
|
|
271
|
+
//#region src/getStripeSetup.d.ts
|
|
272
|
+
declare const getStripeSetup: (client: Client, businessId: string) => Promise<StripeSetup>;
|
|
273
|
+
//#endregion
|
|
274
|
+
//#region src/inviteBusinessUser.d.ts
|
|
275
|
+
type InviteBusinessUserBody = {
|
|
276
|
+
email: string;
|
|
277
|
+
costCenterId?: string;
|
|
278
|
+
};
|
|
279
|
+
declare const inviteBusinessUser: (client: Client, businessId: string, body: InviteBusinessUserBody) => Promise<void>;
|
|
280
|
+
//#endregion
|
|
281
|
+
//#region src/listBusinessUsersGlobal.d.ts
|
|
282
|
+
type ListBusinessUsersGlobalBody = {
|
|
283
|
+
userIds: string[];
|
|
284
|
+
};
|
|
285
|
+
declare const listBusinessUsersGlobal: (client: Client, body: ListBusinessUsersGlobalBody) => Promise<BusinessUser[]>;
|
|
286
|
+
//#endregion
|
|
287
|
+
//#region src/redeemBusinessPromoCode.d.ts
|
|
288
|
+
declare const redeemBusinessPromoCode: (client: Client, businessId: string, reference: string) => Promise<void>;
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region src/refundInvoice.d.ts
|
|
291
|
+
type RefundInvoiceBody = {
|
|
292
|
+
amount?: number;
|
|
293
|
+
note?: string | null;
|
|
294
|
+
};
|
|
295
|
+
declare const refundInvoice: (client: Client, invoiceId: string, body?: RefundInvoiceBody) => Promise<void>;
|
|
296
|
+
//#endregion
|
|
297
|
+
//#region src/refundInvoiceAmount.d.ts
|
|
298
|
+
/** @deprecated Use refundInvoice instead */
|
|
299
|
+
declare const refundInvoiceAmount: (client: Client, invoiceId: string, amount: number) => Promise<void>;
|
|
300
|
+
//#endregion
|
|
301
|
+
//#region src/searchBusinessUsersByName.d.ts
|
|
302
|
+
declare const searchBusinessUsersByName: (client: Client, businessId: string, name: string) => Promise<BusinessUser[]>;
|
|
303
|
+
//#endregion
|
|
304
|
+
//#region src/searchBusinessUsersGlobal.d.ts
|
|
305
|
+
declare const searchBusinessUsersGlobal: (client: Client, query: string) => Promise<BusinessUser[]>;
|
|
306
|
+
//#endregion
|
|
307
|
+
//#region src/sendBusinessIban.d.ts
|
|
308
|
+
type SendBusinessIbanBody = {
|
|
309
|
+
iban: string;
|
|
310
|
+
};
|
|
311
|
+
declare const sendBusinessIban: (client: Client, businessId: string, body: SendBusinessIbanBody) => Promise<void>;
|
|
312
|
+
//#endregion
|
|
313
|
+
//#region src/setInvoiceExternalPayment.d.ts
|
|
314
|
+
type SetInvoiceExternalPaymentBody = {
|
|
315
|
+
paymentReference?: string;
|
|
316
|
+
paymentDate?: string;
|
|
317
|
+
};
|
|
318
|
+
declare const setInvoiceExternalPayment: (client: Client, invoiceId: string, body: SetInvoiceExternalPaymentBody) => Promise<void>;
|
|
319
|
+
//#endregion
|
|
320
|
+
//#region src/updateBusiness.d.ts
|
|
321
|
+
type UpdateBusinessBody = {
|
|
322
|
+
name?: string;
|
|
323
|
+
};
|
|
324
|
+
declare const updateBusiness: (client: Client, businessId: string, body: UpdateBusinessBody) => Promise<Business>;
|
|
325
|
+
//#endregion
|
|
326
|
+
//#region src/updateBusinessCostCenter.d.ts
|
|
327
|
+
type UpdateCostCenterBody = {
|
|
328
|
+
name?: string;
|
|
329
|
+
};
|
|
330
|
+
declare const updateBusinessCostCenter: (client: Client, businessId: string, costCenterId: string, body: UpdateCostCenterBody) => Promise<CostCenter>;
|
|
331
|
+
//#endregion
|
|
332
|
+
//#region src/updateBusinessProfileStatus.d.ts
|
|
333
|
+
declare const updateBusinessProfileStatus: (client: Client, businessId: string, status: string) => Promise<void>;
|
|
334
|
+
//#endregion
|
|
335
|
+
//#region src/updateBusinessUserProfile.d.ts
|
|
336
|
+
type UpdateBusinessUserProfileBody = {
|
|
337
|
+
email?: string;
|
|
338
|
+
emailConsent?: boolean;
|
|
339
|
+
costCenterId?: string;
|
|
340
|
+
};
|
|
341
|
+
declare const updateBusinessUserProfile: (client: Client, businessId: string, userId: string, profileId: string, body: UpdateBusinessUserProfileBody) => Promise<BusinessUserProfile>;
|
|
342
|
+
//#endregion
|
|
343
|
+
//#region src/updateInvoiceStatus.d.ts
|
|
344
|
+
declare const updateInvoiceStatus: (client: Client, invoiceId: string, status: string) => Promise<void>;
|
|
345
|
+
//#endregion
|
|
346
|
+
export { AddBusinessCreditBody, AddTripNoteBody, AddUserToBusinessBody, BulkAddBusinessUsersBody, Business, BusinessBillingGroup, BusinessContact, BusinessInviteLink, BusinessInvoice, BusinessPaymentDetails, BusinessProduct, BusinessTrip, BusinessUser, BusinessUserProfile, BusinessWallet, ChargeBusinessProductBody, CostCenter, CreateBusinessBody, CreateCostCenterBody, EntityBalance, EntityTripsCost, InvitationRequest, InviteBusinessUserBody, InvoiceRefundNote, InvoiceRefundableAmount, ListBusinessUsersGlobalBody, RefundInvoiceBody, SendBusinessIbanBody, SetInvoiceExternalPaymentBody, StripeConfig, StripeSetup, TripNote, UpdateBusinessBody, UpdateBusinessUserProfileBody, UpdateCostCenterBody, addBusinessCredit, addStripePayment, addTripNote, addUserToBusiness, archiveBusinessProfile, bulkAddBusinessUsers, chargeBusinessProduct, createBusiness, createBusinessCostCenter, deactivateBusinessProfile, deleteBusinessCostCenter, deleteInvitationRequest, getBusinessBillingGroups, getBusinessById, getBusinessContacts, getBusinessCostCenterById, getBusinessCostCenters, getBusinessInviteLink, getBusinessInvoiceProducts, getBusinessInvoiceTrips, getBusinessInvoices, getBusinessPaymentDetails, getBusinessProducts, getBusinessTripById, getBusinessUserById, getBusinessUserGlobalById, getBusinessUsers, getBusinessWallet, getBusinesses, getEntityBalance, getEntityProducts, getEntityTrips, getEntityTripsCost, getInvitationRequest, getInvoicePdf, getInvoiceRefundNote, getInvoiceRefundableAmount, getOngoingTripNotes, getOngoingTrips, getStripePublishableKey, getStripeSetup, inviteBusinessUser, listBusinessUsersGlobal, redeemBusinessPromoCode, refundInvoice, refundInvoiceAmount, removeBusinessOwner, removeDelegatedAdmin, searchBusinessUsersByName, searchBusinessUsersGlobal, sendBusinessIban, setBusinessOwner, setDelegatedAdmin, setInvoiceExternalPayment, updateBusiness, updateBusinessCostCenter, updateBusinessProfileStatus, updateBusinessUserProfile, updateInvoiceStatus };
|