@smartbills/sdk 1.1.0-alpha.16 → 1.1.0-alpha.18
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/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/index.d.ts +554 -70
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -1393,7 +1393,7 @@ interface SBSubscription {
|
|
|
1393
1393
|
canceledAt?: string;
|
|
1394
1394
|
}
|
|
1395
1395
|
/** Represents a billing invoice issued to the business. */
|
|
1396
|
-
interface
|
|
1396
|
+
interface SBBillingInvoice {
|
|
1397
1397
|
id: string;
|
|
1398
1398
|
number?: string;
|
|
1399
1399
|
status: string;
|
|
@@ -1416,10 +1416,10 @@ interface SBUpcomingInvoice {
|
|
|
1416
1416
|
currency: string;
|
|
1417
1417
|
periodStart?: string;
|
|
1418
1418
|
periodEnd?: string;
|
|
1419
|
-
lines?:
|
|
1419
|
+
lines?: SBBillingInvoiceLine[];
|
|
1420
1420
|
}
|
|
1421
|
-
/** A single line item on
|
|
1422
|
-
interface
|
|
1421
|
+
/** A single line item on a billing invoice. */
|
|
1422
|
+
interface SBBillingInvoiceLine {
|
|
1423
1423
|
description?: string;
|
|
1424
1424
|
amount: number;
|
|
1425
1425
|
currency: string;
|
|
@@ -1455,7 +1455,7 @@ interface SBPortalSession {
|
|
|
1455
1455
|
url: string;
|
|
1456
1456
|
}
|
|
1457
1457
|
/** Query parameters for listing billing invoices. */
|
|
1458
|
-
interface
|
|
1458
|
+
interface BillingInvoiceListRequest {
|
|
1459
1459
|
page?: number;
|
|
1460
1460
|
pageSize?: number;
|
|
1461
1461
|
}
|
|
@@ -1508,9 +1508,9 @@ declare class BillingService extends BaseService {
|
|
|
1508
1508
|
/** Validates whether the business can downgrade to a lower plan without losing features. */
|
|
1509
1509
|
validateDowngrade(data: UpgradeSubscriptionRequest, options?: RequestOptions): Promise<SBDowngradeValidation>;
|
|
1510
1510
|
/** Lists billing invoices for the business with pagination support. */
|
|
1511
|
-
listInvoices(params?:
|
|
1511
|
+
listInvoices(params?: BillingInvoiceListRequest, options?: RequestOptions): Promise<SBListResponse<SBBillingInvoice>>;
|
|
1512
1512
|
/** Retrieves a specific billing invoice by its Stripe ID. */
|
|
1513
|
-
getInvoice(invoiceId: string, options?: RequestOptions): Promise<
|
|
1513
|
+
getInvoice(invoiceId: string, options?: RequestOptions): Promise<SBBillingInvoice>;
|
|
1514
1514
|
/** Retrieves the upcoming invoice preview based on the current subscription. */
|
|
1515
1515
|
getUpcomingInvoice(options?: RequestOptions): Promise<SBUpcomingInvoice>;
|
|
1516
1516
|
/** Retrieves current usage across all quota keys for the business. */
|
|
@@ -6209,80 +6209,108 @@ declare class DepartmentService extends BaseService {
|
|
|
6209
6209
|
delete(id: number, options?: RequestOptions): Promise<void>;
|
|
6210
6210
|
}
|
|
6211
6211
|
|
|
6212
|
-
/** Represents a product or service offered by the business. */
|
|
6213
6212
|
interface SBProduct extends SBEntity, SBTimestamps {
|
|
6214
6213
|
name: string;
|
|
6215
6214
|
description?: string;
|
|
6216
6215
|
price?: number;
|
|
6216
|
+
compareAtPrice?: number;
|
|
6217
|
+
cost?: number;
|
|
6217
6218
|
sku?: string;
|
|
6219
|
+
barcode?: string;
|
|
6220
|
+
image?: string;
|
|
6221
|
+
images?: SBProductImage[];
|
|
6222
|
+
category?: string;
|
|
6223
|
+
isActive?: boolean;
|
|
6224
|
+
taxable?: boolean;
|
|
6225
|
+
taxCode?: string;
|
|
6226
|
+
trackInventory?: boolean;
|
|
6227
|
+
stockQuantity?: number;
|
|
6228
|
+
lowStockThreshold?: number;
|
|
6229
|
+
weight?: number;
|
|
6230
|
+
weightUnit?: string;
|
|
6231
|
+
currency?: string;
|
|
6232
|
+
status?: string;
|
|
6233
|
+
active?: boolean;
|
|
6234
|
+
}
|
|
6235
|
+
interface SBProductImage {
|
|
6236
|
+
id?: number;
|
|
6237
|
+
src: string;
|
|
6238
|
+
position?: number;
|
|
6218
6239
|
}
|
|
6219
|
-
/** Query parameters for listing products with optional search. */
|
|
6220
6240
|
interface ProductListRequest extends PaginationRequest {
|
|
6221
6241
|
search?: string;
|
|
6222
6242
|
}
|
|
6243
|
+
interface ProductCreateRequest {
|
|
6244
|
+
name: string;
|
|
6245
|
+
description?: string;
|
|
6246
|
+
price?: number;
|
|
6247
|
+
compareAtPrice?: number;
|
|
6248
|
+
cost?: number;
|
|
6249
|
+
sku?: string;
|
|
6250
|
+
barcode?: string;
|
|
6251
|
+
category?: string;
|
|
6252
|
+
taxable?: boolean;
|
|
6253
|
+
taxCode?: string;
|
|
6254
|
+
trackInventory?: boolean;
|
|
6255
|
+
stockQuantity?: number;
|
|
6256
|
+
}
|
|
6257
|
+
interface ProductUpdateRequest {
|
|
6258
|
+
name?: string;
|
|
6259
|
+
description?: string;
|
|
6260
|
+
price?: number;
|
|
6261
|
+
compareAtPrice?: number;
|
|
6262
|
+
cost?: number;
|
|
6263
|
+
sku?: string;
|
|
6264
|
+
barcode?: string;
|
|
6265
|
+
category?: string;
|
|
6266
|
+
taxable?: boolean;
|
|
6267
|
+
taxCode?: string;
|
|
6268
|
+
trackInventory?: boolean;
|
|
6269
|
+
stockQuantity?: number;
|
|
6270
|
+
}
|
|
6223
6271
|
|
|
6224
|
-
/**
|
|
6225
|
-
* Service for managing products within a business.
|
|
6226
|
-
*
|
|
6227
|
-
* Products represent the goods or services sold by the business
|
|
6228
|
-
* and appear on receipts and invoices.
|
|
6229
|
-
*/
|
|
6230
6272
|
declare class ProductService extends BaseService {
|
|
6231
|
-
/**
|
|
6232
|
-
* Retrieves a paginated list of products.
|
|
6233
|
-
*
|
|
6234
|
-
* @param params - Optional filters, search, and pagination parameters
|
|
6235
|
-
* @param options - Request options including business context and abort signal
|
|
6236
|
-
* @returns A paginated list of products
|
|
6237
|
-
*/
|
|
6238
6273
|
list(params?: ProductListRequest, options?: RequestOptions): Promise<SBListResponse<SBProduct>>;
|
|
6239
|
-
/**
|
|
6240
|
-
* Retrieves a single product by ID.
|
|
6241
|
-
*
|
|
6242
|
-
* @param id - The product ID
|
|
6243
|
-
* @param options - Request options including business context and abort signal
|
|
6244
|
-
* @returns The product
|
|
6245
|
-
* @throws {SmartbillsNotFoundError} If the product is not found
|
|
6246
|
-
*/
|
|
6247
6274
|
getById(id: number, options?: RequestOptions): Promise<SBProduct>;
|
|
6275
|
+
create(data: ProductCreateRequest, options?: RequestOptions): Promise<SBProduct>;
|
|
6276
|
+
update(id: number, data: ProductUpdateRequest, options?: RequestOptions): Promise<SBProduct>;
|
|
6277
|
+
delete(id: number, options?: RequestOptions): Promise<void>;
|
|
6248
6278
|
}
|
|
6249
6279
|
|
|
6250
|
-
/** Represents a tax rate configured for a business. */
|
|
6251
6280
|
interface SBTax extends SBEntity, SBTimestamps {
|
|
6252
6281
|
name: string;
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6282
|
+
percentage: number;
|
|
6283
|
+
description?: string;
|
|
6284
|
+
country?: string;
|
|
6285
|
+
state?: string;
|
|
6286
|
+
jurisdiction?: string;
|
|
6287
|
+
type?: string;
|
|
6288
|
+
inclusive?: boolean;
|
|
6289
|
+
isActive?: boolean;
|
|
6290
|
+
taxIdentificationNumber?: string;
|
|
6256
6291
|
}
|
|
6257
|
-
/** Query parameters for listing tax rates with optional search. */
|
|
6258
6292
|
interface TaxListRequest extends PaginationRequest {
|
|
6259
6293
|
search?: string;
|
|
6260
6294
|
}
|
|
6295
|
+
interface TaxCreateRequest {
|
|
6296
|
+
name: string;
|
|
6297
|
+
percentage: number;
|
|
6298
|
+
description?: string;
|
|
6299
|
+
country?: string;
|
|
6300
|
+
state?: string;
|
|
6301
|
+
jurisdiction?: string;
|
|
6302
|
+
type?: string;
|
|
6303
|
+
inclusive?: boolean;
|
|
6304
|
+
taxIdentificationNumber?: string;
|
|
6305
|
+
}
|
|
6306
|
+
type TaxUpdateRequest = Partial<TaxCreateRequest>;
|
|
6261
6307
|
|
|
6262
|
-
/**
|
|
6263
|
-
* Service for managing tax configurations within a business.
|
|
6264
|
-
*
|
|
6265
|
-
* Taxes define the tax rates applied to receipts, invoices, and
|
|
6266
|
-
* expense items (e.g., GST, HST, PST, VAT).
|
|
6267
|
-
*/
|
|
6268
6308
|
declare class TaxService extends BaseService {
|
|
6269
|
-
/**
|
|
6270
|
-
* Retrieves a paginated list of tax configurations.
|
|
6271
|
-
*
|
|
6272
|
-
* @param params - Optional filters and pagination parameters
|
|
6273
|
-
* @param options - Request options including business context and abort signal
|
|
6274
|
-
* @returns A paginated list of tax configurations
|
|
6275
|
-
*/
|
|
6276
6309
|
list(params?: TaxListRequest, options?: RequestOptions): Promise<SBListResponse<SBTax>>;
|
|
6277
|
-
/**
|
|
6278
|
-
* Retrieves a single tax configuration by ID.
|
|
6279
|
-
*
|
|
6280
|
-
* @param id - The tax ID
|
|
6281
|
-
* @param options - Request options including business context and abort signal
|
|
6282
|
-
* @returns The tax configuration
|
|
6283
|
-
* @throws {SmartbillsNotFoundError} If the tax is not found
|
|
6284
|
-
*/
|
|
6285
6310
|
getById(id: number, options?: RequestOptions): Promise<SBTax>;
|
|
6311
|
+
create(data: TaxCreateRequest, options?: RequestOptions): Promise<SBTax>;
|
|
6312
|
+
update(id: number, data: TaxUpdateRequest, options?: RequestOptions): Promise<SBTax>;
|
|
6313
|
+
delete(id: number, options?: RequestOptions): Promise<void>;
|
|
6286
6314
|
}
|
|
6287
6315
|
|
|
6288
6316
|
/** Represents a promotional code that can be applied to receipts or transactions. */
|
|
@@ -6311,7 +6339,10 @@ declare class PromoCodeService extends BaseService {
|
|
|
6311
6339
|
getById(id: number, options?: RequestOptions): Promise<SBPromoCode>;
|
|
6312
6340
|
}
|
|
6313
6341
|
|
|
6314
|
-
|
|
6342
|
+
interface CategoryListRequest extends PaginationRequest {
|
|
6343
|
+
search?: string;
|
|
6344
|
+
isVisible?: boolean;
|
|
6345
|
+
}
|
|
6315
6346
|
interface SBCategory extends SBEntity, SBTimestamps {
|
|
6316
6347
|
name: string;
|
|
6317
6348
|
code?: string;
|
|
@@ -6319,27 +6350,16 @@ interface SBCategory extends SBEntity, SBTimestamps {
|
|
|
6319
6350
|
businessId?: number;
|
|
6320
6351
|
userId?: number;
|
|
6321
6352
|
}
|
|
6322
|
-
/** Payload for creating a new expense category. */
|
|
6323
6353
|
interface CategoryCreateRequest {
|
|
6324
6354
|
name: string;
|
|
6325
6355
|
code?: string;
|
|
6326
6356
|
isVisible?: boolean;
|
|
6327
6357
|
}
|
|
6328
|
-
/** Payload for updating an existing expense category. */
|
|
6329
6358
|
interface CategoryUpdateRequest {
|
|
6330
6359
|
name?: string;
|
|
6331
6360
|
code?: string;
|
|
6332
6361
|
isVisible?: boolean;
|
|
6333
6362
|
}
|
|
6334
|
-
/** Query parameters for listing categories with optional filters. */
|
|
6335
|
-
interface CategoryListRequest extends PaginationRequest {
|
|
6336
|
-
search?: string;
|
|
6337
|
-
isVisible?: boolean;
|
|
6338
|
-
}
|
|
6339
|
-
/** Request parameters for listing expense categories. */
|
|
6340
|
-
interface CategoryListRequest {
|
|
6341
|
-
search?: string;
|
|
6342
|
-
}
|
|
6343
6363
|
|
|
6344
6364
|
/**
|
|
6345
6365
|
* Service for managing expense categories within a business.
|
|
@@ -6840,6 +6860,466 @@ declare class LoyaltyService extends BaseService {
|
|
|
6840
6860
|
delete(id: string, options?: RequestOptions): Promise<void>;
|
|
6841
6861
|
}
|
|
6842
6862
|
|
|
6863
|
+
declare enum InvoiceStatus {
|
|
6864
|
+
DRAFT = "Draft",
|
|
6865
|
+
SENT = "Sent",
|
|
6866
|
+
VIEWED = "Viewed",
|
|
6867
|
+
PARTIALLY_PAID = "PartiallyPaid",
|
|
6868
|
+
PAID = "Paid",
|
|
6869
|
+
MARKED_PAID = "MarkedPaid",
|
|
6870
|
+
OVERDUE = "Overdue",
|
|
6871
|
+
CANCELLED = "Cancelled",
|
|
6872
|
+
VOID = "Void"
|
|
6873
|
+
}
|
|
6874
|
+
interface SBInvoiceCustomer {
|
|
6875
|
+
id?: number;
|
|
6876
|
+
firstName?: string;
|
|
6877
|
+
lastName?: string;
|
|
6878
|
+
email?: string;
|
|
6879
|
+
phoneNumber?: string;
|
|
6880
|
+
company?: string;
|
|
6881
|
+
}
|
|
6882
|
+
interface SBInvoiceLineItemTax {
|
|
6883
|
+
id?: number;
|
|
6884
|
+
name?: string;
|
|
6885
|
+
rate?: number;
|
|
6886
|
+
amount?: SBMoney;
|
|
6887
|
+
taxId?: number;
|
|
6888
|
+
}
|
|
6889
|
+
interface SBInvoiceLineItem {
|
|
6890
|
+
id?: number;
|
|
6891
|
+
description?: string;
|
|
6892
|
+
quantity?: number;
|
|
6893
|
+
unitPrice?: number;
|
|
6894
|
+
price?: SBMoney;
|
|
6895
|
+
subTotal?: SBMoney;
|
|
6896
|
+
total?: SBMoney;
|
|
6897
|
+
amount?: number;
|
|
6898
|
+
productId?: number;
|
|
6899
|
+
product?: {
|
|
6900
|
+
id?: number;
|
|
6901
|
+
name?: string;
|
|
6902
|
+
sku?: string;
|
|
6903
|
+
};
|
|
6904
|
+
taxable?: boolean;
|
|
6905
|
+
taxIds?: number[];
|
|
6906
|
+
taxes?: SBInvoiceLineItemTax[];
|
|
6907
|
+
}
|
|
6908
|
+
interface SBInvoice extends SBEntity, SBTimestamps {
|
|
6909
|
+
invoiceNumber?: string;
|
|
6910
|
+
billStatus?: string;
|
|
6911
|
+
dueDate?: string;
|
|
6912
|
+
date?: string;
|
|
6913
|
+
billingPeriodStartDate?: string;
|
|
6914
|
+
billingPeriodEndDate?: string;
|
|
6915
|
+
autoPaymentDate?: string;
|
|
6916
|
+
amountDue?: SBMoney;
|
|
6917
|
+
balanceForward?: SBMoney;
|
|
6918
|
+
isOverdue?: boolean;
|
|
6919
|
+
isPaid?: boolean;
|
|
6920
|
+
paymentLinkToken?: string;
|
|
6921
|
+
paymentLinkUrl?: string;
|
|
6922
|
+
stripePaymentIntentId?: string;
|
|
6923
|
+
sentAt?: string;
|
|
6924
|
+
viewedAt?: string;
|
|
6925
|
+
voidedAt?: string;
|
|
6926
|
+
paidOn?: string;
|
|
6927
|
+
customerId?: number;
|
|
6928
|
+
vendorId?: number;
|
|
6929
|
+
total?: SBMoney;
|
|
6930
|
+
subTotal?: SBMoney;
|
|
6931
|
+
totalTaxes?: SBMoney;
|
|
6932
|
+
totalDiscounts?: SBMoney;
|
|
6933
|
+
totalFees?: SBMoney;
|
|
6934
|
+
totalBeforeTax?: SBMoney;
|
|
6935
|
+
currency?: string;
|
|
6936
|
+
hostedUrl?: string;
|
|
6937
|
+
shortUrl?: string;
|
|
6938
|
+
note?: string;
|
|
6939
|
+
lineItems?: SBInvoiceLineItem[];
|
|
6940
|
+
billingAddress?: SBAddress;
|
|
6941
|
+
shippingAddress?: SBAddress;
|
|
6942
|
+
reminders?: InvoiceReminder[];
|
|
6943
|
+
customer?: SBInvoiceCustomer;
|
|
6944
|
+
}
|
|
6945
|
+
interface InvoiceListRequest extends PaginationRequest {
|
|
6946
|
+
status?: string;
|
|
6947
|
+
customerId?: number;
|
|
6948
|
+
dateFrom?: string;
|
|
6949
|
+
dateTo?: string;
|
|
6950
|
+
minAmount?: number;
|
|
6951
|
+
maxAmount?: number;
|
|
6952
|
+
search?: string;
|
|
6953
|
+
}
|
|
6954
|
+
declare enum InvoiceReminderFrequency {
|
|
6955
|
+
ONCE = "ONCE",
|
|
6956
|
+
WEEKLY = "WEEKLY",
|
|
6957
|
+
BIWEEKLY = "BIWEEKLY",
|
|
6958
|
+
MONTHLY = "MONTHLY"
|
|
6959
|
+
}
|
|
6960
|
+
declare enum InvoiceReminderTiming {
|
|
6961
|
+
BEFORE_DUE = "BEFORE_DUE",
|
|
6962
|
+
ON_DUE = "ON_DUE",
|
|
6963
|
+
AFTER_DUE = "AFTER_DUE"
|
|
6964
|
+
}
|
|
6965
|
+
interface InvoiceReminder {
|
|
6966
|
+
id?: number;
|
|
6967
|
+
enabled: boolean;
|
|
6968
|
+
timing: InvoiceReminderTiming;
|
|
6969
|
+
daysOffset: number;
|
|
6970
|
+
frequency: InvoiceReminderFrequency;
|
|
6971
|
+
maxReminders: number;
|
|
6972
|
+
message?: string;
|
|
6973
|
+
}
|
|
6974
|
+
interface InvoiceCreateRequest {
|
|
6975
|
+
invoiceNumber?: string;
|
|
6976
|
+
date?: string;
|
|
6977
|
+
dueDate?: string;
|
|
6978
|
+
billingPeriodStartDate?: string;
|
|
6979
|
+
billingPeriodEndDate?: string;
|
|
6980
|
+
autoPaymentDate?: string;
|
|
6981
|
+
amountDue?: SBMoney;
|
|
6982
|
+
balanceForward?: SBMoney;
|
|
6983
|
+
paymentLinkUrl?: string;
|
|
6984
|
+
customerId?: number;
|
|
6985
|
+
vendorId?: number;
|
|
6986
|
+
currency?: string;
|
|
6987
|
+
note?: string;
|
|
6988
|
+
lineItems?: Omit<SBInvoiceLineItem, "id" | "product" | "taxes" | "price" | "subTotal" | "total">[];
|
|
6989
|
+
billingAddress?: SBAddress;
|
|
6990
|
+
shippingAddress?: SBAddress;
|
|
6991
|
+
reminders?: InvoiceReminder[];
|
|
6992
|
+
}
|
|
6993
|
+
type InvoiceUpdateRequest = Partial<InvoiceCreateRequest>;
|
|
6994
|
+
interface InvoiceSummary {
|
|
6995
|
+
totalRevenue: number;
|
|
6996
|
+
outstanding: number;
|
|
6997
|
+
overdueCount: number;
|
|
6998
|
+
paidThisMonth: number;
|
|
6999
|
+
totalCount: number;
|
|
7000
|
+
draftCount: number;
|
|
7001
|
+
sentCount: number;
|
|
7002
|
+
paidCount: number;
|
|
7003
|
+
}
|
|
7004
|
+
|
|
7005
|
+
declare class InvoiceService extends BaseService {
|
|
7006
|
+
list(params?: InvoiceListRequest, options?: RequestOptions): Promise<SBListResponse<SBInvoice>>;
|
|
7007
|
+
getById(id: number, options?: RequestOptions): Promise<SBInvoice>;
|
|
7008
|
+
create(data: InvoiceCreateRequest, options?: RequestOptions): Promise<SBInvoice>;
|
|
7009
|
+
update(id: number, data: InvoiceUpdateRequest, options?: RequestOptions): Promise<SBInvoice>;
|
|
7010
|
+
delete(id: number, options?: RequestOptions): Promise<void>;
|
|
7011
|
+
send(id: number, options?: RequestOptions): Promise<SBInvoice>;
|
|
7012
|
+
void(id: number, options?: RequestOptions): Promise<SBInvoice>;
|
|
7013
|
+
markPaid(id: number, options?: RequestOptions): Promise<SBInvoice>;
|
|
7014
|
+
duplicate(id: number, options?: RequestOptions): Promise<SBInvoice>;
|
|
7015
|
+
getSummary(options?: RequestOptions): Promise<InvoiceSummary>;
|
|
7016
|
+
downloadPdf(id: number, options?: RequestOptions): Promise<Blob>;
|
|
7017
|
+
getByPaymentToken(token: string): Promise<SBInvoice>;
|
|
7018
|
+
}
|
|
7019
|
+
|
|
7020
|
+
declare enum ConnectedAccountStatus {
|
|
7021
|
+
PENDING = "PENDING",
|
|
7022
|
+
RESTRICTED = "RESTRICTED",
|
|
7023
|
+
ENABLED = "ENABLED",
|
|
7024
|
+
DISABLED = "DISABLED",
|
|
7025
|
+
REJECTED = "REJECTED"
|
|
7026
|
+
}
|
|
7027
|
+
declare enum ConnectedAccountType {
|
|
7028
|
+
EXPRESS = "EXPRESS",
|
|
7029
|
+
STANDARD = "STANDARD",
|
|
7030
|
+
CUSTOM = "CUSTOM"
|
|
7031
|
+
}
|
|
7032
|
+
interface SBConnectedAccount extends SBEntity, SBTimestamps {
|
|
7033
|
+
businessId: number;
|
|
7034
|
+
stripeAccountId?: string;
|
|
7035
|
+
accountType: ConnectedAccountType;
|
|
7036
|
+
status: ConnectedAccountStatus;
|
|
7037
|
+
chargesEnabled: boolean;
|
|
7038
|
+
payoutsEnabled: boolean;
|
|
7039
|
+
detailsSubmitted: boolean;
|
|
7040
|
+
businessName?: string;
|
|
7041
|
+
businessUrl?: string;
|
|
7042
|
+
country?: string;
|
|
7043
|
+
defaultCurrency?: string;
|
|
7044
|
+
email?: string;
|
|
7045
|
+
applicationFeePercent: number;
|
|
7046
|
+
applicationFeeFixedAmount: number;
|
|
7047
|
+
applicationFeeCurrency: string;
|
|
7048
|
+
disabledReason?: string;
|
|
7049
|
+
currentlyDue?: string;
|
|
7050
|
+
pastDue?: string;
|
|
7051
|
+
bankAccountLast4?: string;
|
|
7052
|
+
bankAccountBankName?: string;
|
|
7053
|
+
bankAccountCurrency?: string;
|
|
7054
|
+
bankAccountCountry?: string;
|
|
7055
|
+
bankAccountRoutingLast4?: string;
|
|
7056
|
+
stripeDashboardUrl?: string;
|
|
7057
|
+
acceptedPaymentMethods: string;
|
|
7058
|
+
defaultPaymentTermsDays: number;
|
|
7059
|
+
smsNotificationsEnabled: boolean;
|
|
7060
|
+
automaticTaxEnabled: boolean;
|
|
7061
|
+
}
|
|
7062
|
+
interface ConnectedAccountOnboardingRequest {
|
|
7063
|
+
returnUrl: string;
|
|
7064
|
+
refreshUrl: string;
|
|
7065
|
+
businessName?: string;
|
|
7066
|
+
email?: string;
|
|
7067
|
+
country?: string;
|
|
7068
|
+
businessUrl?: string;
|
|
7069
|
+
}
|
|
7070
|
+
interface ConnectedAccountOnboardingResult {
|
|
7071
|
+
onboardingUrl: string;
|
|
7072
|
+
expiresAt: string;
|
|
7073
|
+
account: SBConnectedAccount;
|
|
7074
|
+
}
|
|
7075
|
+
interface FeeConfigurationRequest {
|
|
7076
|
+
applicationFeePercent: number;
|
|
7077
|
+
applicationFeeFixedAmount: number;
|
|
7078
|
+
applicationFeeCurrency: string;
|
|
7079
|
+
}
|
|
7080
|
+
interface ConnectedAccountSettingsRequest {
|
|
7081
|
+
acceptedPaymentMethods?: string;
|
|
7082
|
+
defaultPaymentTermsDays?: number;
|
|
7083
|
+
smsNotificationsEnabled?: boolean;
|
|
7084
|
+
automaticTaxEnabled?: boolean;
|
|
7085
|
+
}
|
|
7086
|
+
|
|
7087
|
+
declare class ConnectedAccountService extends BaseService {
|
|
7088
|
+
get(options?: RequestOptions): Promise<SBConnectedAccount>;
|
|
7089
|
+
getStatus(options?: RequestOptions): Promise<SBConnectedAccount>;
|
|
7090
|
+
createOnboardingLink(data: ConnectedAccountOnboardingRequest, options?: RequestOptions): Promise<ConnectedAccountOnboardingResult>;
|
|
7091
|
+
refreshOnboardingLink(data: Pick<ConnectedAccountOnboardingRequest, "returnUrl" | "refreshUrl">, options?: RequestOptions): Promise<{
|
|
7092
|
+
url: string;
|
|
7093
|
+
}>;
|
|
7094
|
+
createLoginLink(options?: RequestOptions): Promise<{
|
|
7095
|
+
url: string;
|
|
7096
|
+
}>;
|
|
7097
|
+
updateFees(data: FeeConfigurationRequest, options?: RequestOptions): Promise<SBConnectedAccount>;
|
|
7098
|
+
updateSettings(data: ConnectedAccountSettingsRequest, options?: RequestOptions): Promise<SBConnectedAccount>;
|
|
7099
|
+
disable(options?: RequestOptions): Promise<void>;
|
|
7100
|
+
}
|
|
7101
|
+
|
|
7102
|
+
declare enum InvoicePaymentStatus {
|
|
7103
|
+
PENDING = "Pending",
|
|
7104
|
+
PROCESSING = "Processing",
|
|
7105
|
+
SUCCEEDED = "Succeeded",
|
|
7106
|
+
FAILED = "Failed",
|
|
7107
|
+
CANCELED = "Canceled",
|
|
7108
|
+
REFUNDED = "Refunded",
|
|
7109
|
+
PARTIALLY_REFUNDED = "PartiallyRefunded",
|
|
7110
|
+
DISPUTED = "Disputed",
|
|
7111
|
+
EXPIRED = "Expired"
|
|
7112
|
+
}
|
|
7113
|
+
interface SBInvoicePayment extends SBEntity, SBTimestamps {
|
|
7114
|
+
connectedAccountId: number;
|
|
7115
|
+
businessId: number;
|
|
7116
|
+
invoiceId: number;
|
|
7117
|
+
externalInvoiceId?: string;
|
|
7118
|
+
status: InvoicePaymentStatus;
|
|
7119
|
+
amount: number;
|
|
7120
|
+
tipAmount: number;
|
|
7121
|
+
applicationFeeAmount: number;
|
|
7122
|
+
netAmount: number;
|
|
7123
|
+
currency: string;
|
|
7124
|
+
stripePaymentIntentId?: string;
|
|
7125
|
+
stripeCheckoutSessionId?: string;
|
|
7126
|
+
checkoutUrl?: string;
|
|
7127
|
+
paymentMethodType?: string;
|
|
7128
|
+
paymentMethodLast4?: string;
|
|
7129
|
+
paymentMethodBrand?: string;
|
|
7130
|
+
customerEmail?: string;
|
|
7131
|
+
customerName?: string;
|
|
7132
|
+
failureCode?: string;
|
|
7133
|
+
failureMessage?: string;
|
|
7134
|
+
clientSecret?: string;
|
|
7135
|
+
paidAt?: string;
|
|
7136
|
+
}
|
|
7137
|
+
interface CheckoutLineItem {
|
|
7138
|
+
description: string;
|
|
7139
|
+
quantity: number;
|
|
7140
|
+
unitAmount: number;
|
|
7141
|
+
taxRateIds?: string[];
|
|
7142
|
+
}
|
|
7143
|
+
interface InvoicePaymentCreateRequest {
|
|
7144
|
+
invoiceId: number;
|
|
7145
|
+
amount: number;
|
|
7146
|
+
tipAmount?: number;
|
|
7147
|
+
currency?: string;
|
|
7148
|
+
customerEmail?: string;
|
|
7149
|
+
customerName?: string;
|
|
7150
|
+
successUrl?: string;
|
|
7151
|
+
cancelUrl?: string;
|
|
7152
|
+
invoiceNumber?: string;
|
|
7153
|
+
lineItems?: CheckoutLineItem[];
|
|
7154
|
+
}
|
|
7155
|
+
interface InvoicePaymentFilterRequest {
|
|
7156
|
+
status?: InvoicePaymentStatus;
|
|
7157
|
+
dateFrom?: string;
|
|
7158
|
+
dateTo?: string;
|
|
7159
|
+
page?: number;
|
|
7160
|
+
pageSize?: number;
|
|
7161
|
+
}
|
|
7162
|
+
interface SBRefund extends SBEntity, SBTimestamps {
|
|
7163
|
+
invoicePaymentId: number;
|
|
7164
|
+
stripeRefundId?: string;
|
|
7165
|
+
amount: number;
|
|
7166
|
+
currency: string;
|
|
7167
|
+
reason?: string;
|
|
7168
|
+
status: string;
|
|
7169
|
+
failureReason?: string;
|
|
7170
|
+
notes?: string;
|
|
7171
|
+
applicationFeeReversed: boolean;
|
|
7172
|
+
}
|
|
7173
|
+
interface RefundCreateRequest {
|
|
7174
|
+
amount?: number;
|
|
7175
|
+
reason?: string;
|
|
7176
|
+
notes?: string;
|
|
7177
|
+
}
|
|
7178
|
+
interface SBDispute extends SBEntity, SBTimestamps {
|
|
7179
|
+
invoicePaymentId: number;
|
|
7180
|
+
stripeDisputeId?: string;
|
|
7181
|
+
amount: number;
|
|
7182
|
+
currency: string;
|
|
7183
|
+
reason?: string;
|
|
7184
|
+
status: string;
|
|
7185
|
+
evidenceDueBy?: string;
|
|
7186
|
+
isEvidenceSubmitted: boolean;
|
|
7187
|
+
}
|
|
7188
|
+
interface DisputeEvidenceRequest {
|
|
7189
|
+
uncategorizedText?: string;
|
|
7190
|
+
customerCommunication?: string;
|
|
7191
|
+
serviceDocumentation?: string;
|
|
7192
|
+
}
|
|
7193
|
+
interface LedgerSummary {
|
|
7194
|
+
grossRevenue: number;
|
|
7195
|
+
smartbillsFees: number;
|
|
7196
|
+
stripeProcessingFees: number;
|
|
7197
|
+
refundsIssued: number;
|
|
7198
|
+
disputedAmount: number;
|
|
7199
|
+
netRevenue: number;
|
|
7200
|
+
currency: string;
|
|
7201
|
+
periodStart: string;
|
|
7202
|
+
periodEnd: string;
|
|
7203
|
+
}
|
|
7204
|
+
interface LedgerEntry {
|
|
7205
|
+
id: number;
|
|
7206
|
+
type: string;
|
|
7207
|
+
description: string;
|
|
7208
|
+
invoicePaymentId?: number;
|
|
7209
|
+
grossAmount: number;
|
|
7210
|
+
feeAmount: number;
|
|
7211
|
+
netAmount: number;
|
|
7212
|
+
currency: string;
|
|
7213
|
+
status: string;
|
|
7214
|
+
stripeId?: string;
|
|
7215
|
+
createdAt: string;
|
|
7216
|
+
}
|
|
7217
|
+
interface Payout {
|
|
7218
|
+
stripePayoutId: string;
|
|
7219
|
+
amount: number;
|
|
7220
|
+
currency: string;
|
|
7221
|
+
status: string;
|
|
7222
|
+
arrivalDate?: string;
|
|
7223
|
+
bankAccountLast4?: string;
|
|
7224
|
+
description?: string;
|
|
7225
|
+
createdAt: string;
|
|
7226
|
+
}
|
|
7227
|
+
interface PagedResult<T> {
|
|
7228
|
+
items: T[];
|
|
7229
|
+
totalCount: number;
|
|
7230
|
+
page: number;
|
|
7231
|
+
pageSize: number;
|
|
7232
|
+
totalPages: number;
|
|
7233
|
+
}
|
|
7234
|
+
|
|
7235
|
+
declare class InvoicePaymentService extends BaseService {
|
|
7236
|
+
create(data: InvoicePaymentCreateRequest, options?: RequestOptions): Promise<SBInvoicePayment>;
|
|
7237
|
+
list(params?: InvoicePaymentFilterRequest, options?: RequestOptions): Promise<PagedResult<SBInvoicePayment>>;
|
|
7238
|
+
getById(id: number, options?: RequestOptions): Promise<SBInvoicePayment>;
|
|
7239
|
+
cancel(id: number, options?: RequestOptions): Promise<SBInvoicePayment>;
|
|
7240
|
+
createRefund(paymentId: number, data: RefundCreateRequest, options?: RequestOptions): Promise<SBRefund>;
|
|
7241
|
+
listRefunds(paymentId: number, options?: RequestOptions): Promise<SBRefund[]>;
|
|
7242
|
+
listDisputes(params?: {
|
|
7243
|
+
page?: number;
|
|
7244
|
+
pageSize?: number;
|
|
7245
|
+
}, options?: RequestOptions): Promise<SBDispute[]>;
|
|
7246
|
+
submitEvidence(disputeId: number, data: DisputeEvidenceRequest, options?: RequestOptions): Promise<SBDispute>;
|
|
7247
|
+
acceptDispute(disputeId: number, options?: RequestOptions): Promise<SBDispute>;
|
|
7248
|
+
getLedgerSummary(from: string, to: string, options?: RequestOptions): Promise<LedgerSummary>;
|
|
7249
|
+
getLedgerEntries(params?: Record<string, unknown>, options?: RequestOptions): Promise<LedgerEntry[]>;
|
|
7250
|
+
getPayouts(params?: Record<string, unknown>, options?: RequestOptions): Promise<Payout[]>;
|
|
7251
|
+
exportLedgerCsv(from: string, to: string, options?: RequestOptions): Promise<Blob>;
|
|
7252
|
+
}
|
|
7253
|
+
|
|
7254
|
+
declare enum PayoutStatus {
|
|
7255
|
+
PAID = "paid",
|
|
7256
|
+
PENDING = "pending",
|
|
7257
|
+
IN_TRANSIT = "in_transit",
|
|
7258
|
+
CANCELED = "canceled",
|
|
7259
|
+
FAILED = "failed"
|
|
7260
|
+
}
|
|
7261
|
+
declare enum PayoutInterval {
|
|
7262
|
+
DAILY = "daily",
|
|
7263
|
+
WEEKLY = "weekly",
|
|
7264
|
+
MONTHLY = "monthly",
|
|
7265
|
+
MANUAL = "manual"
|
|
7266
|
+
}
|
|
7267
|
+
interface SBPayout {
|
|
7268
|
+
id: string;
|
|
7269
|
+
amount: number;
|
|
7270
|
+
currency: string;
|
|
7271
|
+
status: string;
|
|
7272
|
+
arrivalDate: string;
|
|
7273
|
+
method?: string;
|
|
7274
|
+
description?: string;
|
|
7275
|
+
failureCode?: string;
|
|
7276
|
+
failureMessage?: string;
|
|
7277
|
+
createdAt: string;
|
|
7278
|
+
}
|
|
7279
|
+
interface PayoutListRequest {
|
|
7280
|
+
page?: number;
|
|
7281
|
+
pageSize?: number;
|
|
7282
|
+
startingAfter?: string;
|
|
7283
|
+
endingBefore?: string;
|
|
7284
|
+
}
|
|
7285
|
+
interface PayoutListResponse {
|
|
7286
|
+
data: SBPayout[];
|
|
7287
|
+
hasMore: boolean;
|
|
7288
|
+
}
|
|
7289
|
+
interface CreatePayoutRequest {
|
|
7290
|
+
amount: number;
|
|
7291
|
+
currency?: string;
|
|
7292
|
+
description?: string;
|
|
7293
|
+
}
|
|
7294
|
+
interface PayoutSchedule {
|
|
7295
|
+
interval: string;
|
|
7296
|
+
delayDays?: number;
|
|
7297
|
+
weeklyAnchor?: string;
|
|
7298
|
+
monthlyAnchor?: number;
|
|
7299
|
+
}
|
|
7300
|
+
interface UpdatePayoutScheduleRequest {
|
|
7301
|
+
interval: string;
|
|
7302
|
+
weeklyAnchor?: string;
|
|
7303
|
+
monthlyAnchor?: number;
|
|
7304
|
+
delayDays?: number;
|
|
7305
|
+
}
|
|
7306
|
+
interface BalanceAmount {
|
|
7307
|
+
amount: number;
|
|
7308
|
+
currency: string;
|
|
7309
|
+
}
|
|
7310
|
+
interface SBBalance {
|
|
7311
|
+
available: BalanceAmount[];
|
|
7312
|
+
pending: BalanceAmount[];
|
|
7313
|
+
}
|
|
7314
|
+
|
|
7315
|
+
declare class PayoutService extends BaseService {
|
|
7316
|
+
list(params?: PayoutListRequest, options?: RequestOptions): Promise<PayoutListResponse>;
|
|
7317
|
+
create(data: CreatePayoutRequest, options?: RequestOptions): Promise<SBPayout>;
|
|
7318
|
+
getSchedule(options?: RequestOptions): Promise<PayoutSchedule>;
|
|
7319
|
+
updateSchedule(data: UpdatePayoutScheduleRequest, options?: RequestOptions): Promise<PayoutSchedule>;
|
|
7320
|
+
getBalance(options?: RequestOptions): Promise<SBBalance>;
|
|
7321
|
+
}
|
|
7322
|
+
|
|
6843
7323
|
/**
|
|
6844
7324
|
* Configuration options for initializing a {@link SmartbillsClient}.
|
|
6845
7325
|
*/
|
|
@@ -6920,6 +7400,10 @@ declare class SmartbillsClient {
|
|
|
6920
7400
|
readonly emailForwarding: EmailForwardingService;
|
|
6921
7401
|
readonly authorizedSenders: AuthorizedSenderService;
|
|
6922
7402
|
readonly loyalty: LoyaltyService;
|
|
7403
|
+
readonly invoices: InvoiceService;
|
|
7404
|
+
readonly connectedAccounts: ConnectedAccountService;
|
|
7405
|
+
readonly invoicePayments: InvoicePaymentService;
|
|
7406
|
+
readonly payouts: PayoutService;
|
|
6923
7407
|
/**
|
|
6924
7408
|
* Creates a new Smartbills client instance.
|
|
6925
7409
|
*
|
|
@@ -7111,5 +7595,5 @@ declare function isRetryableError(error: unknown): boolean;
|
|
|
7111
7595
|
|
|
7112
7596
|
declare function uploadFileToS3(uploadUrl: string, file: Blob | ArrayBuffer, contentType: string): Promise<void>;
|
|
7113
7597
|
|
|
7114
|
-
export { AccessToken, AppInstallationService, AppInstallationStatus, ApprobationService, AttachmentService, AuthorizedSenderService, BaseService, BillApprovalStatus, BillApprovalType, BillService, BillStatus, BillingService, BusinessService, BusinessUserService, CategoryService, CheckoutDocumentType, CheckoutPaymentStatus, CheckoutService, CheckoutStatus, ConnectAccountStatus, ConnectService, CustomerService, DEFAULT_BASE_URL, DepartmentService, EmailAccountService, EmailAccountStatus, EmailAccountSyncStatus, EmailAccountType, EmailForwardingService, EmployeeService, ErrorCode, ExpenseItemStatus, ExpenseJobService, ExpenseReportAuditLogAction, ExpenseReportExpenseService, ExpenseReportPaymentService, ExpenseReportService, ExpenseReportStatus, ExpenseService, ExpenseSplitType, HttpClient, IntegrationService, IntegrationStatus, InvitationService, InvitationStatus, LocationService, LoyaltyService, MailboxType, MembershipRole, MembershipService, NotificationService, NotificationType, PayerType, PaymentMethodService, ProductService, PromoCodeService, ReceiptPaymentStatus, ReceiptPaymentType, ReceiptService, ReceiptSource, ReceiptType, ReportingService, SmartbillsApiError, SmartbillsAuthenticationError, SmartbillsClient, SmartbillsConflictError, SmartbillsError, SmartbillsNetworkError, SmartbillsNotFoundError, SmartbillsPermissionError, SmartbillsQuotaError, SmartbillsRateLimitError, SmartbillsValidationError, SyncTriggerType, TableService, TaxService, TransactionService, TransactionType, UserService, VendorConnectionService, VendorConnectionStatus, VendorService, WorkflowService, WorkflowTriggerType, isApiError, isAuthenticationError, isConflictError, isNetworkError, isNotFoundError, isPermissionError, isQuotaError, isRateLimitError, isRetryableError, isSmartbillsError, isValidationError, uploadFileToS3 };
|
|
7115
|
-
export type { AddExpenseToReportRequest, AddExpensesToReportBatchRequest, ApprobationListRequest, AssociateExpenseReportUpdateRequest, AttachmentListRequest, AttachmentRenameRequest, BillApprovalRequest, BillBatchUpdateRequest, BillCancelRequest, BillCreateRequest, BillListRequest, BillMarkPaidRequest, BillReschedulePaymentRequest, BillRetryPaymentRequest, BillSchedulePaymentRequest, BillSubmitForApprovalRequest, BillTransitionRequest, BillUpdateRequest, BulkApproveApprobationsRequest, BulkAssignCategoryRequest, BulkAssignExpenseReportRequest, BulkAssignPayerTypeRequest, BulkAssignReportCategoryRequest, BulkAssignVendorRequest, BulkBillApproveRequest, BulkBillCancelPaymentRequest, BulkBillDeleteRequest, BulkBillMarkPaidRequest, BulkBillRemindRequest, BulkBillRetryPaymentRequest, BulkBillSchedulePaymentRequest, BulkBillUnscheduleRequest, BulkBillUpdateRequest, BulkDeleteExpenseReportsRequest, BulkDeleteExpensesRequest, BulkDeleteVendorsRequest, BulkMarkReimbursedApprobationsRequest, BulkPlanReimbursementApprobationsRequest, BulkRecallExpenseReportsRequest, BulkRejectApprobationsRequest, BulkRemoveReportExpensesRequest, BulkRequestChangesApprobationsRequest, BulkRevertToReviewApprobationsRequest, BulkSetNoteRequest, BulkSubmitExpenseReportsRequest, BusinessBatchUpdateRequest, BusinessBrandCreateRequest, BusinessBrandUpdateRequest, BusinessCreateRequest, BusinessUpdateRequest, CategoryCreateRequest, CategoryListRequest, CategoryUpdateRequest, ConfirmUploadFileRequest, ConfirmUploadRequest, ConnectOnboardingRequest, CreateAuthorizedSenderRequest, CreateCheckoutPaymentIntentRequest, CreatePaymentMethodRequest, CreatePortalSessionRequest, CredentialProvider, CustomerCreateRequest, CustomerListRequest, CustomerUpdateRequest, DepartmentCreateRequest, DepartmentListRequest, DepartmentUpdateRequest, EditExpenseInReportRequest, EmailAccountImapCreateRequest, EmailAccountListRequest, EmailAccountOAuth2CreateRequest, EmailAccountUpdateRequest, EmailForwardingConfigRequest, EmployeeBulkAssignManagerRequest, EmployeeCreateRequest, EmployeeListRequest, EmployeeSetManagerRequest, EmployeeUpdateRequest, ErrorCodeType, ExpenseAttachmentDownloadRequest, ExpenseCategoryUpdateRequest, ExpenseExportRequest, ExpenseJobListRequest, ExpenseListRequest, ExpenseNoteUpdateRequest, ExpenseOverTimeRequest, ExpenseReportApproveRequest, ExpenseReportAssignLedgerAccountRequest, ExpenseReportCommentCreateRequest, ExpenseReportCreateRequest, ExpenseReportExportRequest, ExpenseReportListRequest, ExpenseReportPartialReimburseRequest, ExpenseReportPlanReimbursementRequest, ExpenseReportRecallRequest, ExpenseReportReimburseRequest, ExpenseReportRejectRequest, ExpenseReportRequestChangesRequest, ExpenseReportUpdateRequest, ExpenseReviewUpdateRequest, ExpenseSplitItem, ExpenseSplitLineItem, ExpenseSplitRequest, HistoricalSyncRequest, HttpClientConfig, IntegrationCallbackRequest, IntegrationListRequest, InvitationCreateRequest, InvitationListRequest, InvoiceListRequest, LocationBatchCreateRequest, LocationBatchUpdateRequest, LocationCreateRequest, LocationImageUrlRequest, LocationListRequest, LocationUpdateRequest, LoyaltyProgramCreateRequest, LoyaltyProgramListRequest, LoyaltyProgramStatus, LoyaltyProgramUpdateRequest, LoyaltyRewardType, LoyaltyRuleType, MailboxUpdateRequest, MembershipCreateRequest, MembershipEmailInviteRequest, MembershipListRequest, MembershipRoleUpdateRequest, NotificationListRequest, PaginateBusinessRequest, PaginateTransactionRequest, PaginationRequest, PaymentMethodListRequest, PresignedUploadFileRequest, PresignedUploadFileResponse, PresignedUploadRequest, PresignedUploadResponse, ProductListRequest, ReceiptCreateRequest, ReceiptListRequest, ReceiptOCRCreateRequest, ReceiptUpdateRequest, RefundCheckoutPaymentRequest, ReportDateRange, ReportingRequest, RequestOptions, SBAddress, SBAppInstallation, SBApprobationSummary, SBAttachment, SBAuthorizedSender, SBBatchResponse, SBBill, SBBillApproval, SBBillApprovalHistoryItem, SBBillAttachment, SBBillBulkActionResponse, SBBillLineItem, SBBillStatusSummary, SBBillTax, SBBillTransitionResponse, SBBillingAddress, SBBillingPaymentMethod, SBBillingPlan, SBBillingUsage, SBBulkActionResponse, SBBulkActionResult, SBBusiness, SBBusinessBrand, SBBusinessPlan, SBCategory, SBCategoryRuleData, SBCheckoutLineItem, SBCheckoutPayment, SBCheckoutPaymentDispute, SBCheckoutPaymentRefund, SBCheckoutTax, SBCheckoutTransactionResponse, SBConnectAccount, SBConnectAccountRequirements, SBConnectDashboardResponse, SBConnectOnboardingResponse, SBCoordinate, SBCreateCheckoutPaymentIntentResponse, SBCustomer, SBDepartment, SBDepartmentMember, SBDowngradeValidation, SBEmailAccount, SBEmailAccountAuthorizeResponse, SBEmailForwardingConfig, SBEmployee, SBEmployeeCategoryBreakdownReport, SBEmployeeDepartment, SBEmployeeLocation, SBEmployeeManager, SBEntity, SBExpenseBulkActionResponse, SBExpenseByCategoryReport, SBExpenseByDayReport, SBExpenseByEmployeeReport, SBExpenseByVendorReport, SBExpenseJob, SBExpenseMonthlySummary, SBExpenseOverTimeDataPoint, SBExpenseOverTimeReport, SBExpenseReport, SBExpenseReportAuditLogEntry, SBExpenseReportBulkActionResponse, SBExpenseReportComment, SBExpenseReportItem, SBExpenseReportSummary, SBExpenseReportTimelineEntry, SBExpenseValidateResponse, SBFileDownloadResponse, SBHistoricalSyncResponse, SBIntegration, SBIntegrationAuthorizeResponse, SBInvitation, SBInvoice,
|
|
7598
|
+
export { AccessToken, AppInstallationService, AppInstallationStatus, ApprobationService, AttachmentService, AuthorizedSenderService, BaseService, BillApprovalStatus, BillApprovalType, BillService, BillStatus, BillingService, BusinessService, BusinessUserService, CategoryService, CheckoutDocumentType, CheckoutPaymentStatus, CheckoutService, CheckoutStatus, ConnectAccountStatus, ConnectService, ConnectedAccountService, ConnectedAccountStatus, ConnectedAccountType, CustomerService, DEFAULT_BASE_URL, DepartmentService, EmailAccountService, EmailAccountStatus, EmailAccountSyncStatus, EmailAccountType, EmailForwardingService, EmployeeService, ErrorCode, ExpenseItemStatus, ExpenseJobService, ExpenseReportAuditLogAction, ExpenseReportExpenseService, ExpenseReportPaymentService, ExpenseReportService, ExpenseReportStatus, ExpenseService, ExpenseSplitType, HttpClient, IntegrationService, IntegrationStatus, InvitationService, InvitationStatus, InvoicePaymentService, InvoicePaymentStatus, InvoiceReminderFrequency, InvoiceReminderTiming, InvoiceService, InvoiceStatus, LocationService, LoyaltyService, MailboxType, MembershipRole, MembershipService, NotificationService, NotificationType, PayerType, PaymentMethodService, PayoutInterval, PayoutService, PayoutStatus, ProductService, PromoCodeService, ReceiptPaymentStatus, ReceiptPaymentType, ReceiptService, ReceiptSource, ReceiptType, ReportingService, SmartbillsApiError, SmartbillsAuthenticationError, SmartbillsClient, SmartbillsConflictError, SmartbillsError, SmartbillsNetworkError, SmartbillsNotFoundError, SmartbillsPermissionError, SmartbillsQuotaError, SmartbillsRateLimitError, SmartbillsValidationError, SyncTriggerType, TableService, TaxService, TransactionService, TransactionType, UserService, VendorConnectionService, VendorConnectionStatus, VendorService, WorkflowService, WorkflowTriggerType, isApiError, isAuthenticationError, isConflictError, isNetworkError, isNotFoundError, isPermissionError, isQuotaError, isRateLimitError, isRetryableError, isSmartbillsError, isValidationError, uploadFileToS3 };
|
|
7599
|
+
export type { AddExpenseToReportRequest, AddExpensesToReportBatchRequest, ApprobationListRequest, AssociateExpenseReportUpdateRequest, AttachmentListRequest, AttachmentRenameRequest, BalanceAmount, BillApprovalRequest, BillBatchUpdateRequest, BillCancelRequest, BillCreateRequest, BillListRequest, BillMarkPaidRequest, BillReschedulePaymentRequest, BillRetryPaymentRequest, BillSchedulePaymentRequest, BillSubmitForApprovalRequest, BillTransitionRequest, BillUpdateRequest, BillingInvoiceListRequest, BulkApproveApprobationsRequest, BulkAssignCategoryRequest, BulkAssignExpenseReportRequest, BulkAssignPayerTypeRequest, BulkAssignReportCategoryRequest, BulkAssignVendorRequest, BulkBillApproveRequest, BulkBillCancelPaymentRequest, BulkBillDeleteRequest, BulkBillMarkPaidRequest, BulkBillRemindRequest, BulkBillRetryPaymentRequest, BulkBillSchedulePaymentRequest, BulkBillUnscheduleRequest, BulkBillUpdateRequest, BulkDeleteExpenseReportsRequest, BulkDeleteExpensesRequest, BulkDeleteVendorsRequest, BulkMarkReimbursedApprobationsRequest, BulkPlanReimbursementApprobationsRequest, BulkRecallExpenseReportsRequest, BulkRejectApprobationsRequest, BulkRemoveReportExpensesRequest, BulkRequestChangesApprobationsRequest, BulkRevertToReviewApprobationsRequest, BulkSetNoteRequest, BulkSubmitExpenseReportsRequest, BusinessBatchUpdateRequest, BusinessBrandCreateRequest, BusinessBrandUpdateRequest, BusinessCreateRequest, BusinessUpdateRequest, CategoryCreateRequest, CategoryListRequest, CategoryUpdateRequest, CheckoutLineItem, ConfirmUploadFileRequest, ConfirmUploadRequest, ConnectOnboardingRequest, ConnectedAccountOnboardingRequest, ConnectedAccountOnboardingResult, ConnectedAccountSettingsRequest, CreateAuthorizedSenderRequest, CreateCheckoutPaymentIntentRequest, CreatePaymentMethodRequest, CreatePayoutRequest, CreatePortalSessionRequest, CredentialProvider, CustomerCreateRequest, CustomerListRequest, CustomerUpdateRequest, DepartmentCreateRequest, DepartmentListRequest, DepartmentUpdateRequest, DisputeEvidenceRequest, EditExpenseInReportRequest, EmailAccountImapCreateRequest, EmailAccountListRequest, EmailAccountOAuth2CreateRequest, EmailAccountUpdateRequest, EmailForwardingConfigRequest, EmployeeBulkAssignManagerRequest, EmployeeCreateRequest, EmployeeListRequest, EmployeeSetManagerRequest, EmployeeUpdateRequest, ErrorCodeType, ExpenseAttachmentDownloadRequest, ExpenseCategoryUpdateRequest, ExpenseExportRequest, ExpenseJobListRequest, ExpenseListRequest, ExpenseNoteUpdateRequest, ExpenseOverTimeRequest, ExpenseReportApproveRequest, ExpenseReportAssignLedgerAccountRequest, ExpenseReportCommentCreateRequest, ExpenseReportCreateRequest, ExpenseReportExportRequest, ExpenseReportListRequest, ExpenseReportPartialReimburseRequest, ExpenseReportPlanReimbursementRequest, ExpenseReportRecallRequest, ExpenseReportReimburseRequest, ExpenseReportRejectRequest, ExpenseReportRequestChangesRequest, ExpenseReportUpdateRequest, ExpenseReviewUpdateRequest, ExpenseSplitItem, ExpenseSplitLineItem, ExpenseSplitRequest, FeeConfigurationRequest, HistoricalSyncRequest, HttpClientConfig, IntegrationCallbackRequest, IntegrationListRequest, InvitationCreateRequest, InvitationListRequest, InvoiceCreateRequest, InvoiceListRequest, InvoicePaymentCreateRequest, InvoicePaymentFilterRequest, InvoiceReminder, InvoiceSummary, InvoiceUpdateRequest, LedgerEntry, LedgerSummary, LocationBatchCreateRequest, LocationBatchUpdateRequest, LocationCreateRequest, LocationImageUrlRequest, LocationListRequest, LocationUpdateRequest, LoyaltyProgramCreateRequest, LoyaltyProgramListRequest, LoyaltyProgramStatus, LoyaltyProgramUpdateRequest, LoyaltyRewardType, LoyaltyRuleType, MailboxUpdateRequest, MembershipCreateRequest, MembershipEmailInviteRequest, MembershipListRequest, MembershipRoleUpdateRequest, NotificationListRequest, PagedResult, PaginateBusinessRequest, PaginateTransactionRequest, PaginationRequest, PaymentMethodListRequest, Payout, PayoutListRequest, PayoutListResponse, PayoutSchedule, PresignedUploadFileRequest, PresignedUploadFileResponse, PresignedUploadRequest, PresignedUploadResponse, ProductCreateRequest, ProductListRequest, ProductUpdateRequest, ReceiptCreateRequest, ReceiptListRequest, ReceiptOCRCreateRequest, ReceiptUpdateRequest, RefundCheckoutPaymentRequest, RefundCreateRequest, ReportDateRange, ReportingRequest, RequestOptions, SBAddress, SBAppInstallation, SBApprobationSummary, SBAttachment, SBAuthorizedSender, SBBalance, SBBatchResponse, SBBill, SBBillApproval, SBBillApprovalHistoryItem, SBBillAttachment, SBBillBulkActionResponse, SBBillLineItem, SBBillStatusSummary, SBBillTax, SBBillTransitionResponse, SBBillingAddress, SBBillingInvoice, SBBillingInvoiceLine, SBBillingPaymentMethod, SBBillingPlan, SBBillingUsage, SBBulkActionResponse, SBBulkActionResult, SBBusiness, SBBusinessBrand, SBBusinessPlan, SBCategory, SBCategoryRuleData, SBCheckoutLineItem, SBCheckoutPayment, SBCheckoutPaymentDispute, SBCheckoutPaymentRefund, SBCheckoutTax, SBCheckoutTransactionResponse, SBConnectAccount, SBConnectAccountRequirements, SBConnectDashboardResponse, SBConnectOnboardingResponse, SBConnectedAccount, SBCoordinate, SBCreateCheckoutPaymentIntentResponse, SBCustomer, SBDepartment, SBDepartmentMember, SBDispute, SBDowngradeValidation, SBEmailAccount, SBEmailAccountAuthorizeResponse, SBEmailForwardingConfig, SBEmployee, SBEmployeeCategoryBreakdownReport, SBEmployeeDepartment, SBEmployeeLocation, SBEmployeeManager, SBEntity, SBExpenseBulkActionResponse, SBExpenseByCategoryReport, SBExpenseByDayReport, SBExpenseByEmployeeReport, SBExpenseByVendorReport, SBExpenseJob, SBExpenseMonthlySummary, SBExpenseOverTimeDataPoint, SBExpenseOverTimeReport, SBExpenseReport, SBExpenseReportAuditLogEntry, SBExpenseReportBulkActionResponse, SBExpenseReportComment, SBExpenseReportItem, SBExpenseReportSummary, SBExpenseReportTimelineEntry, SBExpenseValidateResponse, SBFileDownloadResponse, SBHistoricalSyncResponse, SBIntegration, SBIntegrationAuthorizeResponse, SBInvitation, SBInvoice, SBInvoiceCustomer, SBInvoiceLineItem, SBInvoiceLineItemTax, SBInvoicePayment, SBItemVariationRuleData, SBListResponse, SBLocation, SBLocationImage, SBLoyaltyProgram, SBLoyaltyRule, SBLoyaltyRuleBase, SBMailbox, SBMarketplaceApp, SBMembership, SBMembershipBusinessSummary, SBMembershipUserSummary, SBMerchantLedger, SBMoney, SBNotification, SBPagination, SBPaymentMethod, SBPaymentMethodBillingDetails, SBPaymentMethodSetupIntentResponse, SBPayout, SBPortalSession, SBProduct, SBProductImage, SBPromoCode, SBReceipt, SBReceiptBarcode, SBReceiptBusiness, SBReceiptCustomer, SBReceiptDiscount, SBReceiptDocument, SBReceiptFee, SBReceiptLineItem, SBReceiptPayment, SBReceiptPaymentCard, SBReceiptRefund, SBReceiptTax, SBReceiptTransaction, SBReceiptVendor, SBRefund, SBSessionTokenResponse, SBSetupIntent, SBSharedMailbox, SBSpendRuleData, SBSubscription, SBSyncSession, SBTable, SBTableColumn, SBTableRow, SBTax, SBTaxByCategoryReport, SBTaxByTypeReport, SBTaxByVendorReport, SBTaxSummaryReport, SBTimestamps, SBTransaction, SBTransactionAttachment, SBTransactionMerchant, SBTransactionTax, SBTransactionUploadResponse, SBTransactionVendor, SBUpcomingInvoice, SBUserAccount, SBValidateEmailResponse, SBValidateSharedMailboxResponse, SBVendor, SBVendorBulkActionResponse, SBVendorConnectResponse, SBVendorConnection, SBVendorImportResult, SBVisitRuleData, SBWorkflow, SBWorkflowCondition, SBWorkflowStep, SBWorkflowTestResponse, SmartbillsClientOptions, SmartbillsFieldError, SubmitDisputeEvidenceRequest, SyncSessionListRequest, TableCreateRequest, TableListRequest, TableUpdateRequest, TaxCreateRequest, TaxListRequest, TaxUpdateRequest, TransactionBatchUpdateRequest, TransactionUpdateRequest, UpdateInstallationStatusRequest, UpdatePayoutScheduleRequest, UpgradeSubscriptionRequest, UsageHistoryRequest, UserUpdateRequest, VendorBatchUpdateRequest, VendorConnectRequest, VendorCreateRequest, VendorListRequest, VendorMergeRequest, VendorUpdateRequest, WorkflowCreateRequest, WorkflowListRequest, WorkflowTestRequest, WorkflowUpdateRequest };
|