@smartbills/sdk 0.0.2-alpha.44 → 0.0.2-alpha.46
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/@types/client/SBClient.d.ts +80 -0
- package/dist/@types/client/SBClient.d.ts.map +1 -0
- package/dist/@types/client/SBClientOptions.d.ts +19 -0
- package/dist/@types/client/SBClientOptions.d.ts.map +1 -0
- package/dist/@types/client/SBCredentials.d.ts +29 -0
- package/dist/@types/client/SBCredentials.d.ts.map +1 -0
- package/dist/@types/client/SBEnvironment.d.ts +8 -0
- package/dist/@types/client/SBEnvironment.d.ts.map +1 -0
- package/dist/@types/client/SBError.d.ts +9 -0
- package/dist/@types/client/SBError.d.ts.map +1 -0
- package/dist/@types/client/SBErrorResponse.d.ts +11 -0
- package/dist/@types/client/SBErrorResponse.d.ts.map +1 -0
- package/dist/@types/client/SBException.d.ts +17 -0
- package/dist/@types/client/SBException.d.ts.map +1 -0
- package/dist/@types/client/SBInstance.d.ts +12 -0
- package/dist/@types/client/SBInstance.d.ts.map +1 -0
- package/dist/@types/client/SBLogger.d.ts +8 -0
- package/dist/@types/client/SBLogger.d.ts.map +1 -0
- package/dist/@types/client/SBPermission.d.ts +49 -0
- package/dist/@types/client/SBPermission.d.ts.map +1 -0
- package/dist/@types/client/SBRequestOption.d.ts +14 -0
- package/dist/@types/client/SBRequestOption.d.ts.map +1 -0
- package/dist/@types/client/SBServiceOptions.d.ts +11 -0
- package/dist/@types/client/SBServiceOptions.d.ts.map +1 -0
- package/dist/@types/constants/login/LoginError.d.ts +8 -0
- package/dist/@types/constants/login/LoginError.d.ts.map +1 -0
- package/dist/@types/entities/account/SBExternalProvider.d.ts +8 -0
- package/dist/@types/entities/account/SBExternalProvider.d.ts.map +1 -0
- package/dist/@types/entities/account/SBGenderEnum.d.ts +8 -0
- package/dist/@types/entities/account/SBGenderEnum.d.ts.map +1 -0
- package/dist/@types/entities/account/SBUserAccount.d.ts +24 -0
- package/dist/@types/entities/account/SBUserAccount.d.ts.map +1 -0
- package/dist/@types/entities/address/SBAddress.d.ts +18 -0
- package/dist/@types/entities/address/SBAddress.d.ts.map +1 -0
- package/dist/@types/entities/address/SBBillingAddress.d.ts +14 -0
- package/dist/@types/entities/address/SBBillingAddress.d.ts.map +1 -0
- package/dist/@types/entities/address/SBCoordinate.d.ts +9 -0
- package/dist/@types/entities/address/SBCoordinate.d.ts.map +1 -0
- package/dist/@types/entities/api-logs/SBLog.d.ts +19 -0
- package/dist/@types/entities/api-logs/SBLog.d.ts.map +1 -0
- package/dist/@types/entities/attachments/SBAttachment.d.ts +27 -0
- package/dist/@types/entities/attachments/SBAttachment.d.ts.map +1 -0
- package/dist/@types/entities/banks/SBBalanceHistory.d.ts +11 -0
- package/dist/@types/entities/banks/SBBalanceHistory.d.ts.map +1 -0
- package/dist/@types/entities/banks/SBBank.d.ts +18 -0
- package/dist/@types/entities/banks/SBBank.d.ts.map +1 -0
- package/dist/@types/entities/banks/SBBankAccount.d.ts +19 -0
- package/dist/@types/entities/banks/SBBankAccount.d.ts.map +1 -0
- package/dist/@types/entities/banks/SBBankBalance.d.ts +11 -0
- package/dist/@types/entities/banks/SBBankBalance.d.ts.map +1 -0
- package/dist/@types/entities/banks/SBBankInstitution.d.ts +12 -0
- package/dist/@types/entities/banks/SBBankInstitution.d.ts.map +1 -0
- package/dist/@types/entities/banks/SBBankState.d.ts +9 -0
- package/dist/@types/entities/banks/SBBankState.d.ts.map +1 -0
- package/dist/@types/entities/banks/SBBankTransaction.d.ts +36 -0
- package/dist/@types/entities/banks/SBBankTransaction.d.ts.map +1 -0
- package/dist/@types/entities/barcode/SBBarcode.d.ts +10 -0
- package/dist/@types/entities/barcode/SBBarcode.d.ts.map +1 -0
- package/dist/@types/entities/barcode/SBBarcodeType.d.ts +27 -0
- package/dist/@types/entities/barcode/SBBarcodeType.d.ts.map +1 -0
- package/dist/@types/entities/base.d.ts +58 -0
- package/dist/@types/entities/base.d.ts.map +1 -0
- package/dist/@types/entities/batches/SBBatch.d.ts +6 -0
- package/dist/@types/entities/batches/SBBatch.d.ts.map +1 -0
- package/dist/@types/entities/businesses/SBBusiness.d.ts +19 -0
- package/dist/@types/entities/businesses/SBBusiness.d.ts.map +1 -0
- package/dist/@types/entities/businesses/brands/SBBusinessBrand.d.ts +11 -0
- package/dist/@types/entities/businesses/brands/SBBusinessBrand.d.ts.map +1 -0
- package/dist/@types/entities/businesses/customers/SBCustomer.d.ts +35 -0
- package/dist/@types/entities/businesses/customers/SBCustomer.d.ts.map +1 -0
- package/dist/@types/entities/businesses/customers/balance-transactions/SBCustomerBalanceTransaction.d.ts +12 -0
- package/dist/@types/entities/businesses/customers/balance-transactions/SBCustomerBalanceTransaction.d.ts.map +1 -0
- package/dist/@types/entities/businesses/departments/SBDepartment.d.ts +35 -0
- package/dist/@types/entities/businesses/departments/SBDepartment.d.ts.map +1 -0
- package/dist/@types/entities/businesses/departments/SBDepartmentTeamMember.d.ts +22 -0
- package/dist/@types/entities/businesses/departments/SBDepartmentTeamMember.d.ts.map +1 -0
- package/dist/@types/entities/businesses/fees/SBFee.d.ts +12 -0
- package/dist/@types/entities/businesses/fees/SBFee.d.ts.map +1 -0
- package/dist/@types/entities/businesses/fees/SBFeeType.d.ts +7 -0
- package/dist/@types/entities/businesses/fees/SBFeeType.d.ts.map +1 -0
- package/dist/@types/entities/businesses/locations/SBLocation.d.ts +16 -0
- package/dist/@types/entities/businesses/locations/SBLocation.d.ts.map +1 -0
- package/dist/@types/entities/businesses/locations/SBLocationBatch.d.ts +9 -0
- package/dist/@types/entities/businesses/locations/SBLocationBatch.d.ts.map +1 -0
- package/dist/@types/entities/businesses/products/SBProduct.d.ts +21 -0
- package/dist/@types/entities/businesses/products/SBProduct.d.ts.map +1 -0
- package/dist/@types/entities/businesses/products/SBProductImage.d.ts +8 -0
- package/dist/@types/entities/businesses/products/SBProductImage.d.ts.map +1 -0
- package/dist/@types/entities/businesses/products/SBProductTranslation.d.ts +11 -0
- package/dist/@types/entities/businesses/products/SBProductTranslation.d.ts.map +1 -0
- package/dist/@types/entities/businesses/products/SBProductVariant.d.ts +18 -0
- package/dist/@types/entities/businesses/products/SBProductVariant.d.ts.map +1 -0
- package/dist/@types/entities/businesses/products/SBProductVariantOption.d.ts +7 -0
- package/dist/@types/entities/businesses/products/SBProductVariantOption.d.ts.map +1 -0
- package/dist/@types/entities/businesses/products/SBProductVendor.d.ts +7 -0
- package/dist/@types/entities/businesses/products/SBProductVendor.d.ts.map +1 -0
- package/dist/@types/entities/businesses/products/modifiers/SBProductModifier.d.ts +10 -0
- package/dist/@types/entities/businesses/products/modifiers/SBProductModifier.d.ts.map +1 -0
- package/dist/@types/entities/businesses/products/options/SBProductOption.d.ts +33 -0
- package/dist/@types/entities/businesses/products/options/SBProductOption.d.ts.map +1 -0
- package/dist/@types/entities/businesses/promo-codes/SBPromoCode.d.ts +13 -0
- package/dist/@types/entities/businesses/promo-codes/SBPromoCode.d.ts.map +1 -0
- package/dist/@types/entities/businesses/promo-codes/SBPromoCodeType.d.ts +4 -0
- package/dist/@types/entities/businesses/promo-codes/SBPromoCodeType.d.ts.map +1 -0
- package/dist/@types/entities/businesses/reviews/SBBusinessReview.d.ts +9 -0
- package/dist/@types/entities/businesses/reviews/SBBusinessReview.d.ts.map +1 -0
- package/dist/@types/entities/businesses/tables/SBTable.d.ts +15 -0
- package/dist/@types/entities/businesses/tables/SBTable.d.ts.map +1 -0
- package/dist/@types/entities/businesses/taxes/SBReceiptItemTax.d.ts +10 -0
- package/dist/@types/entities/businesses/taxes/SBReceiptItemTax.d.ts.map +1 -0
- package/dist/@types/entities/businesses/taxes/SBReceiptTax.d.ts +12 -0
- package/dist/@types/entities/businesses/taxes/SBReceiptTax.d.ts.map +1 -0
- package/dist/@types/entities/businesses/taxes/SBTax.d.ts +17 -0
- package/dist/@types/entities/businesses/taxes/SBTax.d.ts.map +1 -0
- package/dist/@types/entities/businesses/taxes/SBTaxType.d.ts +4 -0
- package/dist/@types/entities/businesses/taxes/SBTaxType.d.ts.map +1 -0
- package/dist/@types/entities/businesses/team/invitations/SBTeamMemberInvitation.d.ts +17 -0
- package/dist/@types/entities/businesses/team/invitations/SBTeamMemberInvitation.d.ts.map +1 -0
- package/dist/@types/entities/businesses/team/invitations/SBTeamMemberInvitationStatus.d.ts +9 -0
- package/dist/@types/entities/businesses/team/invitations/SBTeamMemberInvitationStatus.d.ts.map +1 -0
- package/dist/@types/entities/businesses/team/members/SBTeamMember.d.ts +22 -0
- package/dist/@types/entities/businesses/team/members/SBTeamMember.d.ts.map +1 -0
- package/dist/@types/entities/businesses/team/members/SBTeamMemberRole.d.ts +10 -0
- package/dist/@types/entities/businesses/team/members/SBTeamMemberRole.d.ts.map +1 -0
- package/dist/@types/entities/businesses/team/members/SBTeamMemberStatus.d.ts +10 -0
- package/dist/@types/entities/businesses/team/members/SBTeamMemberStatus.d.ts.map +1 -0
- package/dist/@types/entities/cards/SBCard.d.ts +20 -0
- package/dist/@types/entities/cards/SBCard.d.ts.map +1 -0
- package/dist/@types/entities/cards/SBCardSetupIntent.d.ts +7 -0
- package/dist/@types/entities/cards/SBCardSetupIntent.d.ts.map +1 -0
- package/dist/@types/entities/cards/SBCardType.d.ts +9 -0
- package/dist/@types/entities/cards/SBCardType.d.ts.map +1 -0
- package/dist/@types/entities/common/ImageUploadRequest.d.ts +8 -0
- package/dist/@types/entities/common/ImageUploadRequest.d.ts.map +1 -0
- package/dist/@types/entities/documents/SBDocument.d.ts +16 -0
- package/dist/@types/entities/documents/SBDocument.d.ts.map +1 -0
- package/dist/@types/entities/documents/SBDocumentUpload.d.ts +8 -0
- package/dist/@types/entities/documents/SBDocumentUpload.d.ts.map +1 -0
- package/dist/@types/entities/documents/ocr/SBBoundingBox.d.ts +10 -0
- package/dist/@types/entities/documents/ocr/SBBoundingBox.d.ts.map +1 -0
- package/dist/@types/entities/documents/ocr/SBDocumentOCR.d.ts +10 -0
- package/dist/@types/entities/documents/ocr/SBDocumentOCR.d.ts.map +1 -0
- package/dist/@types/entities/documents/ocr/SBExpenseDetection.d.ts +11 -0
- package/dist/@types/entities/documents/ocr/SBExpenseDetection.d.ts.map +1 -0
- package/dist/@types/entities/documents/ocr/SBExpenseField.d.ts +13 -0
- package/dist/@types/entities/documents/ocr/SBExpenseField.d.ts.map +1 -0
- package/dist/@types/entities/documents/ocr/SBExpenseType.d.ts +8 -0
- package/dist/@types/entities/documents/ocr/SBExpenseType.d.ts.map +1 -0
- package/dist/@types/entities/documents/ocr/SBGeometry.d.ts +11 -0
- package/dist/@types/entities/documents/ocr/SBGeometry.d.ts.map +1 -0
- package/dist/@types/entities/documents/ocr/SBLineItemFields.d.ts +9 -0
- package/dist/@types/entities/documents/ocr/SBLineItemFields.d.ts.map +1 -0
- package/dist/@types/entities/documents/ocr/SBLineItemGroup.d.ts +10 -0
- package/dist/@types/entities/documents/ocr/SBLineItemGroup.d.ts.map +1 -0
- package/dist/@types/entities/documents/ocr/SBOCRResult.d.ts +12 -0
- package/dist/@types/entities/documents/ocr/SBOCRResult.d.ts.map +1 -0
- package/dist/@types/entities/documents/ocr/SBPoint.d.ts +7 -0
- package/dist/@types/entities/documents/ocr/SBPoint.d.ts.map +1 -0
- package/dist/@types/entities/domains/SBDomain.d.ts +10 -0
- package/dist/@types/entities/domains/SBDomain.d.ts.map +1 -0
- package/dist/@types/entities/expense-groups/SBExpenseGroup.d.ts +15 -0
- package/dist/@types/entities/expense-groups/SBExpenseGroup.d.ts.map +1 -0
- package/dist/@types/entities/expense-groups/SBExpenseGroupAutomation.d.ts +5 -0
- package/dist/@types/entities/expense-groups/SBExpenseGroupAutomation.d.ts.map +1 -0
- package/dist/@types/entities/expense-groups/SBExpenseGroupBudget.d.ts +7 -0
- package/dist/@types/entities/expense-groups/SBExpenseGroupBudget.d.ts.map +1 -0
- package/dist/@types/entities/expense-groups/SBExpenseGroupForm.d.ts +12 -0
- package/dist/@types/entities/expense-groups/SBExpenseGroupForm.d.ts.map +1 -0
- package/dist/@types/entities/explore/SBExploreBusiness.d.ts +14 -0
- package/dist/@types/entities/explore/SBExploreBusiness.d.ts.map +1 -0
- package/dist/@types/entities/friends/SBFriend.d.ts +10 -0
- package/dist/@types/entities/friends/SBFriend.d.ts.map +1 -0
- package/dist/@types/entities/friends/SBFriendRequest.d.ts +10 -0
- package/dist/@types/entities/friends/SBFriendRequest.d.ts.map +1 -0
- package/dist/@types/entities/fulfillment/SBFulfillment.d.ts +24 -0
- package/dist/@types/entities/fulfillment/SBFulfillment.d.ts.map +1 -0
- package/dist/@types/entities/fulfillment/SBFulfillmentItem.d.ts +13 -0
- package/dist/@types/entities/fulfillment/SBFulfillmentItem.d.ts.map +1 -0
- package/dist/@types/entities/images/SBImage.d.ts +13 -0
- package/dist/@types/entities/images/SBImage.d.ts.map +1 -0
- package/dist/@types/entities/integrations/SBIntegration.d.ts +16 -0
- package/dist/@types/entities/integrations/SBIntegration.d.ts.map +1 -0
- package/dist/@types/entities/invoices/SBInvoice.d.ts +7 -0
- package/dist/@types/entities/invoices/SBInvoice.d.ts.map +1 -0
- package/dist/@types/entities/loyalty.d.ts +266 -0
- package/dist/@types/entities/loyalty.d.ts.map +1 -0
- package/dist/@types/entities/money/SBMoney.d.ts +7 -0
- package/dist/@types/entities/money/SBMoney.d.ts.map +1 -0
- package/dist/@types/entities/notifications/SBNotification.d.ts +29 -0
- package/dist/@types/entities/notifications/SBNotification.d.ts.map +1 -0
- package/dist/@types/entities/oauth/JwtToken.d.ts +10 -0
- package/dist/@types/entities/oauth/JwtToken.d.ts.map +1 -0
- package/dist/@types/entities/payment-methods/SBPaymentMethod.d.ts +25 -0
- package/dist/@types/entities/payment-methods/SBPaymentMethod.d.ts.map +1 -0
- package/dist/@types/entities/payment-methods/SBPaymentMethodBank.d.ts +10 -0
- package/dist/@types/entities/payment-methods/SBPaymentMethodBank.d.ts.map +1 -0
- package/dist/@types/entities/payment-methods/SBPaymentMethodCard.d.ts +19 -0
- package/dist/@types/entities/payment-methods/SBPaymentMethodCard.d.ts.map +1 -0
- package/dist/@types/entities/payment-methods/SBPaymentMethodFingerprint.d.ts +7 -0
- package/dist/@types/entities/payment-methods/SBPaymentMethodFingerprint.d.ts.map +1 -0
- package/dist/@types/entities/payment-methods/SBPaymentMethodFingerprintProvider.d.ts +7 -0
- package/dist/@types/entities/payment-methods/SBPaymentMethodFingerprintProvider.d.ts.map +1 -0
- package/dist/@types/entities/payment-methods/SBPaymentMethodSetup.d.ts +8 -0
- package/dist/@types/entities/payment-methods/SBPaymentMethodSetup.d.ts.map +1 -0
- package/dist/@types/entities/payments/SBPaymentStatus.d.ts +28 -0
- package/dist/@types/entities/payments/SBPaymentStatus.d.ts.map +1 -0
- package/dist/@types/entities/prices/SBPrice.d.ts +13 -0
- package/dist/@types/entities/prices/SBPrice.d.ts.map +1 -0
- package/dist/@types/entities/receipts/SBReceipt.d.ts +65 -0
- package/dist/@types/entities/receipts/SBReceipt.d.ts.map +1 -0
- package/dist/@types/entities/receipts/SBReceiptBatch.d.ts +8 -0
- package/dist/@types/entities/receipts/SBReceiptBatch.d.ts.map +1 -0
- package/dist/@types/entities/receipts/SBReceiptFee.d.ts +11 -0
- package/dist/@types/entities/receipts/SBReceiptFee.d.ts.map +1 -0
- package/dist/@types/entities/receipts/SBReceiptItem.d.ts +23 -0
- package/dist/@types/entities/receipts/SBReceiptItem.d.ts.map +1 -0
- package/dist/@types/entities/receipts/SBReceiptItemSplit.d.ts +14 -0
- package/dist/@types/entities/receipts/SBReceiptItemSplit.d.ts.map +1 -0
- package/dist/@types/entities/receipts/SBReceiptSource.d.ts +10 -0
- package/dist/@types/entities/receipts/SBReceiptSource.d.ts.map +1 -0
- package/dist/@types/entities/receipts/SBReceiptTransaction.d.ts +23 -0
- package/dist/@types/entities/receipts/SBReceiptTransaction.d.ts.map +1 -0
- package/dist/@types/entities/receipts/SBReceiptType.d.ts +9 -0
- package/dist/@types/entities/receipts/SBReceiptType.d.ts.map +1 -0
- package/dist/@types/entities/receipts/SBReceiptUser.d.ts +12 -0
- package/dist/@types/entities/receipts/SBReceiptUser.d.ts.map +1 -0
- package/dist/@types/entities/receipts/discounts/SBReceiptDiscount.d.ts +14 -0
- package/dist/@types/entities/receipts/discounts/SBReceiptDiscount.d.ts.map +1 -0
- package/dist/@types/entities/receipts/metadata/SBBrowserMetadata.d.ts +11 -0
- package/dist/@types/entities/receipts/metadata/SBBrowserMetadata.d.ts.map +1 -0
- package/dist/@types/entities/receipts/metadata/SBMetadata.d.ts +4 -0
- package/dist/@types/entities/receipts/metadata/SBMetadata.d.ts.map +1 -0
- package/dist/@types/entities/receipts/metadata/SBReceiptMetadata.d.ts +15 -0
- package/dist/@types/entities/receipts/metadata/SBReceiptMetadata.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPayment.d.ts +40 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPayment.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentBalance.d.ts +5 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentBalance.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentBankAccount.d.ts +12 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentBankAccount.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCard.d.ts +23 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCard.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardAvsResult.d.ts +15 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardAvsResult.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardCvvResult.d.ts +8 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardCvvResult.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardEMV.d.ts +5 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardEMV.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardEntryMethod.d.ts +10 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardEntryMethod.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardError.d.ts +7 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardError.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardTimeline.d.ts +8 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardTimeline.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCash.d.ts +9 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCash.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentExternal.d.ts +12 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentExternal.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentExternalType.d.ts +17 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentExternalType.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentMethodCard.d.ts +19 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentMethodCard.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentRefund.d.ts +7 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentRefund.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentRiskEvaluation.d.ts +9 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentRiskEvaluation.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentRiskLevel.d.ts +8 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentRiskLevel.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentStatus.d.ts +10 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentStatus.d.ts.map +1 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentType.d.ts +11 -0
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentType.d.ts.map +1 -0
- package/dist/@types/entities/receipts/transactions/SBPaymentDetail.d.ts +11 -0
- package/dist/@types/entities/receipts/transactions/SBPaymentDetail.d.ts.map +1 -0
- package/dist/@types/entities/refund/SBReceiptItemRefund.d.ts +17 -0
- package/dist/@types/entities/refund/SBReceiptItemRefund.d.ts.map +1 -0
- package/dist/@types/entities/refund/SBRefund.d.ts +18 -0
- package/dist/@types/entities/refund/SBRefund.d.ts.map +1 -0
- package/dist/@types/entities/refund/SBRefundAjustment.d.ts +15 -0
- package/dist/@types/entities/refund/SBRefundAjustment.d.ts.map +1 -0
- package/dist/@types/entities/reports/SBDateRange.d.ts +7 -0
- package/dist/@types/entities/reports/SBDateRange.d.ts.map +1 -0
- package/dist/@types/entities/reports/SBPeriodReport.d.ts +9 -0
- package/dist/@types/entities/reports/SBPeriodReport.d.ts.map +1 -0
- package/dist/@types/entities/reports/SBPeriodReportData.d.ts +9 -0
- package/dist/@types/entities/reports/SBPeriodReportData.d.ts.map +1 -0
- package/dist/@types/entities/settlements/SBSettlement.d.ts +18 -0
- package/dist/@types/entities/settlements/SBSettlement.d.ts.map +1 -0
- package/dist/@types/entities/settlements/SBSettlementPayment.d.ts +15 -0
- package/dist/@types/entities/settlements/SBSettlementPayment.d.ts.map +1 -0
- package/dist/@types/entities/subscriptions/SBSubscription.d.ts +43 -0
- package/dist/@types/entities/subscriptions/SBSubscription.d.ts.map +1 -0
- package/dist/@types/entities/transactions/SBTransaction.d.ts +22 -0
- package/dist/@types/entities/transactions/SBTransaction.d.ts.map +1 -0
- package/dist/@types/entities/transactions/SBTransactionType.d.ts +9 -0
- package/dist/@types/entities/transactions/SBTransactionType.d.ts.map +1 -0
- package/dist/@types/entities/users/SBUser.d.ts +10 -0
- package/dist/@types/entities/users/SBUser.d.ts.map +1 -0
- package/dist/@types/entities/vendors/SBVendor.d.ts +15 -0
- package/dist/@types/entities/vendors/SBVendor.d.ts.map +1 -0
- package/dist/@types/entities/wallet/SBWallet.d.ts +27 -0
- package/dist/@types/entities/wallet/SBWallet.d.ts.map +1 -0
- package/dist/@types/index.d.ts +348 -0
- package/dist/@types/index.d.ts.map +1 -0
- package/dist/@types/interfaces/IBatchable.d.ts +40 -0
- package/dist/@types/interfaces/IBatchable.d.ts.map +1 -0
- package/dist/@types/interfaces/ICreatable.d.ts +37 -0
- package/dist/@types/interfaces/ICreatable.d.ts.map +1 -0
- package/dist/@types/interfaces/IDeletable.d.ts +35 -0
- package/dist/@types/interfaces/IDeletable.d.ts.map +1 -0
- package/dist/@types/interfaces/IListable.d.ts +38 -0
- package/dist/@types/interfaces/IListable.d.ts.map +1 -0
- package/dist/@types/interfaces/IRetrievable.d.ts +35 -0
- package/dist/@types/interfaces/IRetrievable.d.ts.map +1 -0
- package/dist/@types/interfaces/IRetrievableById.d.ts +50 -0
- package/dist/@types/interfaces/IRetrievableById.d.ts.map +1 -0
- package/dist/@types/interfaces/ITimestamp.d.ts +13 -0
- package/dist/@types/interfaces/ITimestamp.d.ts.map +1 -0
- package/dist/@types/interfaces/IUpdatable.d.ts +39 -0
- package/dist/@types/interfaces/IUpdatable.d.ts.map +1 -0
- package/dist/@types/services/BatchUpsertRequest.d.ts +17 -0
- package/dist/@types/services/BatchUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/ListRequest.d.ts +21 -0
- package/dist/@types/services/ListRequest.d.ts.map +1 -0
- package/dist/@types/services/SBService.d.ts +88 -0
- package/dist/@types/services/SBService.d.ts.map +1 -0
- package/dist/@types/services/UpsertRequest.d.ts +20 -0
- package/dist/@types/services/UpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/addresses/AddressRequest.d.ts +13 -0
- package/dist/@types/services/addresses/AddressRequest.d.ts.map +1 -0
- package/dist/@types/services/addresses/BillingAddressRequest.d.ts +12 -0
- package/dist/@types/services/addresses/BillingAddressRequest.d.ts.map +1 -0
- package/dist/@types/services/api-logs/LogListRequest.d.ts +7 -0
- package/dist/@types/services/api-logs/LogListRequest.d.ts.map +1 -0
- package/dist/@types/services/api-logs/LogService.d.ts +18 -0
- package/dist/@types/services/api-logs/LogService.d.ts.map +1 -0
- package/dist/@types/services/attachments/AttachmentCreateRequest.d.ts +20 -0
- package/dist/@types/services/attachments/AttachmentCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/attachments/AttachmentListRequest.d.ts +19 -0
- package/dist/@types/services/attachments/AttachmentListRequest.d.ts.map +1 -0
- package/dist/@types/services/attachments/AttachmentService.d.ts +85 -0
- package/dist/@types/services/attachments/AttachmentService.d.ts.map +1 -0
- package/dist/@types/services/attachments/AttachmentUpdateRequest.d.ts +23 -0
- package/dist/@types/services/attachments/AttachmentUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/attachments/AttachmentUpsertRequest.d.ts +23 -0
- package/dist/@types/services/attachments/AttachmentUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/banks/BankCreateRequest.d.ts +32 -0
- package/dist/@types/services/banks/BankCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/banks/BankLinkResponse.d.ts +7 -0
- package/dist/@types/services/banks/BankLinkResponse.d.ts.map +1 -0
- package/dist/@types/services/banks/BankLinkTokenResponse.d.ts +7 -0
- package/dist/@types/services/banks/BankLinkTokenResponse.d.ts.map +1 -0
- package/dist/@types/services/banks/BankListRequest.d.ts +13 -0
- package/dist/@types/services/banks/BankListRequest.d.ts.map +1 -0
- package/dist/@types/services/banks/BankService.d.ts +169 -0
- package/dist/@types/services/banks/BankService.d.ts.map +1 -0
- package/dist/@types/services/banks/BankUpdateRequest.d.ts +9 -0
- package/dist/@types/services/banks/BankUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/banks/accounts/BankAccountCreateRequest.d.ts +11 -0
- package/dist/@types/services/banks/accounts/BankAccountCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/banks/accounts/BankAccountListRequest.d.ts +5 -0
- package/dist/@types/services/banks/accounts/BankAccountListRequest.d.ts.map +1 -0
- package/dist/@types/services/banks/accounts/BankAccountService.d.ts +22 -0
- package/dist/@types/services/banks/accounts/BankAccountService.d.ts.map +1 -0
- package/dist/@types/services/banks/accounts/BankAccountUpdateRequest.d.ts +10 -0
- package/dist/@types/services/banks/accounts/BankAccountUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/banks/institutions/BankInstitutionListRequest.d.ts +7 -0
- package/dist/@types/services/banks/institutions/BankInstitutionListRequest.d.ts.map +1 -0
- package/dist/@types/services/banks/institutions/BankInstitutionService.d.ts +18 -0
- package/dist/@types/services/banks/institutions/BankInstitutionService.d.ts.map +1 -0
- package/dist/@types/services/banks/transactions/BankTransactionListRequest.d.ts +8 -0
- package/dist/@types/services/banks/transactions/BankTransactionListRequest.d.ts.map +1 -0
- package/dist/@types/services/banks/transactions/BankTransactionService.d.ts +24 -0
- package/dist/@types/services/banks/transactions/BankTransactionService.d.ts.map +1 -0
- package/dist/@types/services/billing/subscriptions/SubscriptionCreateRequest.d.ts +28 -0
- package/dist/@types/services/billing/subscriptions/SubscriptionCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/billing/subscriptions/SubscriptionListRequest.d.ts +31 -0
- package/dist/@types/services/billing/subscriptions/SubscriptionListRequest.d.ts.map +1 -0
- package/dist/@types/services/billing/subscriptions/SubscriptionService.d.ts +120 -0
- package/dist/@types/services/billing/subscriptions/SubscriptionService.d.ts.map +1 -0
- package/dist/@types/services/billing/subscriptions/SubscriptionUpdateRequest.d.ts +29 -0
- package/dist/@types/services/billing/subscriptions/SubscriptionUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/billing/subscriptions/SubscriptionUpsertRequest.d.ts +33 -0
- package/dist/@types/services/billing/subscriptions/SubscriptionUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/BusinessCreateRequest.d.ts +37 -0
- package/dist/@types/services/businesses/BusinessCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/BusinessInvitationRequest.d.ts +7 -0
- package/dist/@types/services/businesses/BusinessInvitationRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/BusinessListRequest.d.ts +7 -0
- package/dist/@types/services/businesses/BusinessListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/BusinessService.d.ts +66 -0
- package/dist/@types/services/businesses/BusinessService.d.ts.map +1 -0
- package/dist/@types/services/businesses/BusinessUpdateRequest.d.ts +36 -0
- package/dist/@types/services/businesses/BusinessUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/brands/BrandCreateRequest.d.ts +16 -0
- package/dist/@types/services/businesses/brands/BrandCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/brands/BrandService.d.ts +31 -0
- package/dist/@types/services/businesses/brands/BrandService.d.ts.map +1 -0
- package/dist/@types/services/businesses/customers/CustomerBatchUpsertRequest.d.ts +8 -0
- package/dist/@types/services/businesses/customers/CustomerBatchUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/customers/CustomerCreateRequest.d.ts +19 -0
- package/dist/@types/services/businesses/customers/CustomerCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/customers/CustomerListRequest.d.ts +8 -0
- package/dist/@types/services/businesses/customers/CustomerListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/customers/CustomerService.d.ts +94 -0
- package/dist/@types/services/businesses/customers/CustomerService.d.ts.map +1 -0
- package/dist/@types/services/businesses/customers/CustomerUpdateRequest.d.ts +5 -0
- package/dist/@types/services/businesses/customers/CustomerUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/customers/CustomerUpsertRequest.d.ts +8 -0
- package/dist/@types/services/businesses/customers/CustomerUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionCreateRequest.d.ts +10 -0
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionListRequest.d.ts +7 -0
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionService.d.ts +75 -0
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionService.d.ts.map +1 -0
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionUpdateRequest.d.ts +6 -0
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodCreateRequest.d.ts +5 -0
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodListRequest.d.ts +7 -0
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodService.d.ts +75 -0
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodService.d.ts.map +1 -0
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodUpdateRequest.d.ts +5 -0
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/departments/DepartmentBatchUpsertRequest.d.ts +11 -0
- package/dist/@types/services/businesses/departments/DepartmentBatchUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/departments/DepartmentCreateRequest.d.ts +36 -0
- package/dist/@types/services/businesses/departments/DepartmentCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/departments/DepartmentService.d.ts +149 -0
- package/dist/@types/services/businesses/departments/DepartmentService.d.ts.map +1 -0
- package/dist/@types/services/businesses/departments/DepartmentUpdateRequest.d.ts +40 -0
- package/dist/@types/services/businesses/departments/DepartmentUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/departments/DepartmentUpsertRequest.d.ts +8 -0
- package/dist/@types/services/businesses/departments/DepartmentUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/departments/DepartmentsListRequest.d.ts +26 -0
- package/dist/@types/services/businesses/departments/DepartmentsListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeCreateRequest.d.ts +9 -0
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeListRequest.d.ts +11 -0
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeService.d.ts +75 -0
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeService.d.ts.map +1 -0
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeUpdateRequest.d.ts +10 -0
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/domains/CreateDomainRequest.d.ts +6 -0
- package/dist/@types/services/businesses/domains/CreateDomainRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/domains/DomainService.d.ts +21 -0
- package/dist/@types/services/businesses/domains/DomainService.d.ts.map +1 -0
- package/dist/@types/services/businesses/domains/GetDomainsRequest.d.ts +7 -0
- package/dist/@types/services/businesses/domains/GetDomainsRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/fees/FeeCreateRequest.d.ts +12 -0
- package/dist/@types/services/businesses/fees/FeeCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/fees/FeeListRequest.d.ts +7 -0
- package/dist/@types/services/businesses/fees/FeeListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/fees/FeeService.d.ts +93 -0
- package/dist/@types/services/businesses/fees/FeeService.d.ts.map +1 -0
- package/dist/@types/services/businesses/fees/FeeUpdateRequest.d.ts +9 -0
- package/dist/@types/services/businesses/fees/FeeUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/fees/FeeUpsertRequest.d.ts +8 -0
- package/dist/@types/services/businesses/fees/FeeUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/locations/LocationBatchUpsertRequest.d.ts +8 -0
- package/dist/@types/services/businesses/locations/LocationBatchUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/locations/LocationCreateRequest.d.ts +13 -0
- package/dist/@types/services/businesses/locations/LocationCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/locations/LocationService.d.ts +126 -0
- package/dist/@types/services/businesses/locations/LocationService.d.ts.map +1 -0
- package/dist/@types/services/businesses/locations/LocationUpdateRequest.d.ts +11 -0
- package/dist/@types/services/businesses/locations/LocationUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/locations/LocationUpsertRequest.d.ts +8 -0
- package/dist/@types/services/businesses/locations/LocationUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/locations/LocationsListRequest.d.ts +7 -0
- package/dist/@types/services/businesses/locations/LocationsListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/prices/PriceCreateRequest.d.ts +5 -0
- package/dist/@types/services/businesses/prices/PriceCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/prices/PriceService.d.ts +23 -0
- package/dist/@types/services/businesses/prices/PriceService.d.ts.map +1 -0
- package/dist/@types/services/businesses/prices/PriceUpdateRequest.d.ts +5 -0
- package/dist/@types/services/businesses/prices/PriceUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/prices/PricesListRequest.d.ts +7 -0
- package/dist/@types/services/businesses/prices/PricesListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/ListImageRequest.d.ts +5 -0
- package/dist/@types/services/businesses/products/ListImageRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/ProductBatchUpsertRequest.d.ts +8 -0
- package/dist/@types/services/businesses/products/ProductBatchUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/ProductCreateRequest.d.ts +19 -0
- package/dist/@types/services/businesses/products/ProductCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/ProductListRequest.d.ts +7 -0
- package/dist/@types/services/businesses/products/ProductListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/ProductService.d.ts +118 -0
- package/dist/@types/services/businesses/products/ProductService.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/ProductUpdateRequest.d.ts +17 -0
- package/dist/@types/services/businesses/products/ProductUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/ProductUpsertRequest.d.ts +8 -0
- package/dist/@types/services/businesses/products/ProductUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/images/ProductImageCreateRequest.d.ts +8 -0
- package/dist/@types/services/businesses/products/images/ProductImageCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/images/ProductImageListRequest.d.ts +7 -0
- package/dist/@types/services/businesses/products/images/ProductImageListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/images/ProductImageService.d.ts +75 -0
- package/dist/@types/services/businesses/products/images/ProductImageService.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/images/ProductImageUpdateRequest.d.ts +5 -0
- package/dist/@types/services/businesses/products/images/ProductImageUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/modifiers/ProductModifierCreateRequest.d.ts +28 -0
- package/dist/@types/services/businesses/products/modifiers/ProductModifierCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/modifiers/ProductModifierListRequest.d.ts +26 -0
- package/dist/@types/services/businesses/products/modifiers/ProductModifierListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/modifiers/ProductModifierService.d.ts +88 -0
- package/dist/@types/services/businesses/products/modifiers/ProductModifierService.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/modifiers/ProductModifierUpdateRequest.d.ts +28 -0
- package/dist/@types/services/businesses/products/modifiers/ProductModifierUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/modifiers/ProductModifierUpsertRequest.d.ts +30 -0
- package/dist/@types/services/businesses/products/modifiers/ProductModifierUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/options/ProductOptionCreateRequest.d.ts +28 -0
- package/dist/@types/services/businesses/products/options/ProductOptionCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/options/ProductOptionListRequest.d.ts +26 -0
- package/dist/@types/services/businesses/products/options/ProductOptionListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/options/ProductOptionService.d.ts +88 -0
- package/dist/@types/services/businesses/products/options/ProductOptionService.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/options/ProductOptionUpdateRequest.d.ts +28 -0
- package/dist/@types/services/businesses/products/options/ProductOptionUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/options/ProductOptionUpsertRequest.d.ts +30 -0
- package/dist/@types/services/businesses/products/options/ProductOptionUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/variants/ProductVariantCreateRequest.d.ts +14 -0
- package/dist/@types/services/businesses/products/variants/ProductVariantCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/variants/ProductVariantListRequest.d.ts +7 -0
- package/dist/@types/services/businesses/products/variants/ProductVariantListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/variants/ProductVariantService.d.ts +75 -0
- package/dist/@types/services/businesses/products/variants/ProductVariantService.d.ts.map +1 -0
- package/dist/@types/services/businesses/products/variants/ProductVariantUpdateRequest.d.ts +5 -0
- package/dist/@types/services/businesses/products/variants/ProductVariantUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/promo-codes/PromoCodeBatchUpsertRequest.d.ts +8 -0
- package/dist/@types/services/businesses/promo-codes/PromoCodeBatchUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/promo-codes/PromoCodeCreateRequest.d.ts +11 -0
- package/dist/@types/services/businesses/promo-codes/PromoCodeCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/promo-codes/PromoCodeListRequest.d.ts +7 -0
- package/dist/@types/services/businesses/promo-codes/PromoCodeListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/promo-codes/PromoCodeService.d.ts +94 -0
- package/dist/@types/services/businesses/promo-codes/PromoCodeService.d.ts.map +1 -0
- package/dist/@types/services/businesses/promo-codes/PromoCodeUpdateRequest.d.ts +6 -0
- package/dist/@types/services/businesses/promo-codes/PromoCodeUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/promo-codes/PromoCodeUpsertRequest.d.ts +8 -0
- package/dist/@types/services/businesses/promo-codes/PromoCodeUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/reviews/BusinessReviewCreateRequest.d.ts +8 -0
- package/dist/@types/services/businesses/reviews/BusinessReviewCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/reviews/BusinessReviewListRequest.d.ts +10 -0
- package/dist/@types/services/businesses/reviews/BusinessReviewListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/reviews/BusinessReviewService.d.ts +30 -0
- package/dist/@types/services/businesses/reviews/BusinessReviewService.d.ts.map +1 -0
- package/dist/@types/services/businesses/reviews/BusinessReviewUpdateRequest.d.ts +7 -0
- package/dist/@types/services/businesses/reviews/BusinessReviewUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/tables/TableCreateRequest.d.ts +9 -0
- package/dist/@types/services/businesses/tables/TableCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/tables/TableService.d.ts +23 -0
- package/dist/@types/services/businesses/tables/TableService.d.ts.map +1 -0
- package/dist/@types/services/businesses/tables/TableUpdateRequest.d.ts +14 -0
- package/dist/@types/services/businesses/tables/TableUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/taxes/TaxBatchUpsertRequest.d.ts +8 -0
- package/dist/@types/services/businesses/taxes/TaxBatchUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/taxes/TaxCreateRequest.d.ts +17 -0
- package/dist/@types/services/businesses/taxes/TaxCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/taxes/TaxListRequest.d.ts +9 -0
- package/dist/@types/services/businesses/taxes/TaxListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/taxes/TaxService.d.ts +89 -0
- package/dist/@types/services/businesses/taxes/TaxService.d.ts.map +1 -0
- package/dist/@types/services/businesses/taxes/TaxUpdateRequest.d.ts +12 -0
- package/dist/@types/services/businesses/taxes/TaxUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/taxes/TaxUpsertRequest.d.ts +8 -0
- package/dist/@types/services/businesses/taxes/TaxUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationCreateRequest.d.ts +13 -0
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationListRequest.d.ts +7 -0
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationRequest.d.ts +9 -0
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationResponseRequest.d.ts +8 -0
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationResponseRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationService.d.ts +25 -0
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationService.d.ts.map +1 -0
- package/dist/@types/services/businesses/team/members/TeamMemberListRequest.d.ts +10 -0
- package/dist/@types/services/businesses/team/members/TeamMemberListRequest.d.ts.map +1 -0
- package/dist/@types/services/businesses/team/members/TeamMemberService.d.ts +20 -0
- package/dist/@types/services/businesses/team/members/TeamMemberService.d.ts.map +1 -0
- package/dist/@types/services/businesses/vendors/VendorService.d.ts +85 -0
- package/dist/@types/services/businesses/vendors/VendorService.d.ts.map +1 -0
- package/dist/@types/services/cards/AttachCardRequest.d.ts +12 -0
- package/dist/@types/services/cards/AttachCardRequest.d.ts.map +1 -0
- package/dist/@types/services/cards/CardService.d.ts +28 -0
- package/dist/@types/services/cards/CardService.d.ts.map +1 -0
- package/dist/@types/services/cards/CreateCardRequest.d.ts +15 -0
- package/dist/@types/services/cards/CreateCardRequest.d.ts.map +1 -0
- package/dist/@types/services/cards/GetCardRequest.d.ts +5 -0
- package/dist/@types/services/cards/GetCardRequest.d.ts.map +1 -0
- package/dist/@types/services/cards/ListCardRequest.d.ts +5 -0
- package/dist/@types/services/cards/ListCardRequest.d.ts.map +1 -0
- package/dist/@types/services/documents/DocumentListRequest.d.ts +7 -0
- package/dist/@types/services/documents/DocumentListRequest.d.ts.map +1 -0
- package/dist/@types/services/documents/DocumentRenameRequest.d.ts +6 -0
- package/dist/@types/services/documents/DocumentRenameRequest.d.ts.map +1 -0
- package/dist/@types/services/documents/DocumentService.d.ts +24 -0
- package/dist/@types/services/documents/DocumentService.d.ts.map +1 -0
- package/dist/@types/services/documents/DocumentUploadRequest.d.ts +10 -0
- package/dist/@types/services/documents/DocumentUploadRequest.d.ts.map +1 -0
- package/dist/@types/services/expenses/ExpenseService.d.ts +20 -0
- package/dist/@types/services/expenses/ExpenseService.d.ts.map +1 -0
- package/dist/@types/services/expenses/ExpenseUploadRequest.d.ts +9 -0
- package/dist/@types/services/expenses/ExpenseUploadRequest.d.ts.map +1 -0
- package/dist/@types/services/explore/ExploreService.d.ts +13 -0
- package/dist/@types/services/explore/ExploreService.d.ts.map +1 -0
- package/dist/@types/services/friends/FriendListRequest.d.ts +7 -0
- package/dist/@types/services/friends/FriendListRequest.d.ts.map +1 -0
- package/dist/@types/services/friends/FriendRequestListRequest.d.ts +7 -0
- package/dist/@types/services/friends/FriendRequestListRequest.d.ts.map +1 -0
- package/dist/@types/services/friends/FriendService.d.ts +22 -0
- package/dist/@types/services/friends/FriendService.d.ts.map +1 -0
- package/dist/@types/services/images/ImageBase64CreateRequest.d.ts +8 -0
- package/dist/@types/services/images/ImageBase64CreateRequest.d.ts.map +1 -0
- package/dist/@types/services/images/ImageBaseCreateRequest.d.ts +6 -0
- package/dist/@types/services/images/ImageBaseCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/images/ImageCreateRequest.d.ts +7 -0
- package/dist/@types/services/images/ImageCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/images/ImageUrlCreateRequest.d.ts +8 -0
- package/dist/@types/services/images/ImageUrlCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/integrations/IntegrationListRequest.d.ts +8 -0
- package/dist/@types/services/integrations/IntegrationListRequest.d.ts.map +1 -0
- package/dist/@types/services/integrations/IntegrationService.d.ts +20 -0
- package/dist/@types/services/integrations/IntegrationService.d.ts.map +1 -0
- package/dist/@types/services/invoices/InvoiceBatchUpsertRequest.d.ts +8 -0
- package/dist/@types/services/invoices/InvoiceBatchUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/invoices/InvoiceCreateRequest.d.ts +118 -0
- package/dist/@types/services/invoices/InvoiceCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/invoices/InvoiceListRequest.d.ts +11 -0
- package/dist/@types/services/invoices/InvoiceListRequest.d.ts.map +1 -0
- package/dist/@types/services/invoices/InvoiceService.d.ts +216 -0
- package/dist/@types/services/invoices/InvoiceService.d.ts.map +1 -0
- package/dist/@types/services/invoices/InvoiceUpdateRequest.d.ts +73 -0
- package/dist/@types/services/invoices/InvoiceUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/invoices/InvoiceUpsertRequest.d.ts +5 -0
- package/dist/@types/services/invoices/InvoiceUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/loyalty/LoyaltyProgramService.d.ts +172 -0
- package/dist/@types/services/loyalty/LoyaltyProgramService.d.ts.map +1 -0
- package/dist/@types/services/notifications/NotificationCreateRequest.d.ts +20 -0
- package/dist/@types/services/notifications/NotificationCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/notifications/NotificationService.d.ts +66 -0
- package/dist/@types/services/notifications/NotificationService.d.ts.map +1 -0
- package/dist/@types/services/oauth/AccessTokenResponse.d.ts +10 -0
- package/dist/@types/services/oauth/AccessTokenResponse.d.ts.map +1 -0
- package/dist/@types/services/oauth/AuthorizationCodeResponse.d.ts +11 -0
- package/dist/@types/services/oauth/AuthorizationCodeResponse.d.ts.map +1 -0
- package/dist/@types/services/oauth/AuthorizeRequest.d.ts +18 -0
- package/dist/@types/services/oauth/AuthorizeRequest.d.ts.map +1 -0
- package/dist/@types/services/oauth/OAuthService.d.ts +17 -0
- package/dist/@types/services/oauth/OAuthService.d.ts.map +1 -0
- package/dist/@types/services/oauth/RefreshTokenRequest.d.ts +9 -0
- package/dist/@types/services/oauth/RefreshTokenRequest.d.ts.map +1 -0
- package/dist/@types/services/oauth/TokenExchangeRequest.d.ts +15 -0
- package/dist/@types/services/oauth/TokenExchangeRequest.d.ts.map +1 -0
- package/dist/@types/services/payment-methods/PaymentMethodBankCreateRequest.d.ts +14 -0
- package/dist/@types/services/payment-methods/PaymentMethodBankCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/payment-methods/PaymentMethodCardCreateRequest.d.ts +19 -0
- package/dist/@types/services/payment-methods/PaymentMethodCardCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/payment-methods/PaymentMethodCreateRequest.d.ts +16 -0
- package/dist/@types/services/payment-methods/PaymentMethodCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/payment-methods/PaymentMethodListRequest.d.ts +5 -0
- package/dist/@types/services/payment-methods/PaymentMethodListRequest.d.ts.map +1 -0
- package/dist/@types/services/payment-methods/PaymentMethodService.d.ts +29 -0
- package/dist/@types/services/payment-methods/PaymentMethodService.d.ts.map +1 -0
- package/dist/@types/services/payment-methods/PaymentMethodVerifyRequest.d.ts +6 -0
- package/dist/@types/services/payment-methods/PaymentMethodVerifyRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/BankTransactionAssociateRequest.d.ts +6 -0
- package/dist/@types/services/receipts/BankTransactionAssociateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/ListReceiptRequest.d.ts +5 -0
- package/dist/@types/services/receipts/ListReceiptRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/ReceipTransactionPaymentDetailCreateRequest.d.ts +24 -0
- package/dist/@types/services/receipts/ReceipTransactionPaymentDetailCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/ReceiptBatchUpsertRequest.d.ts +8 -0
- package/dist/@types/services/receipts/ReceiptBatchUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/ReceiptBulkJobCreateRequest.d.ts +6 -0
- package/dist/@types/services/receipts/ReceiptBulkJobCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/ReceiptCreateRequest.d.ts +118 -0
- package/dist/@types/services/receipts/ReceiptCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/ReceiptListRequest.d.ts +12 -0
- package/dist/@types/services/receipts/ReceiptListRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/ReceiptService.d.ts +250 -0
- package/dist/@types/services/receipts/ReceiptService.d.ts.map +1 -0
- package/dist/@types/services/receipts/ReceiptUpdateRequest.d.ts +73 -0
- package/dist/@types/services/receipts/ReceiptUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/ReceiptUpsertRequest.d.ts +8 -0
- package/dist/@types/services/receipts/ReceiptUpsertRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/discounts/ReceiptDiscountCreateRequest.d.ts +6 -0
- package/dist/@types/services/receipts/discounts/ReceiptDiscountCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/discounts/ReceiptDiscountUpdateRequest.d.ts +6 -0
- package/dist/@types/services/receipts/discounts/ReceiptDiscountUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/fees/ReceiptFeeCreateRequest.d.ts +11 -0
- package/dist/@types/services/receipts/fees/ReceiptFeeCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/fees/ReceiptFeeUpdateRequest.d.ts +5 -0
- package/dist/@types/services/receipts/fees/ReceiptFeeUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/line-items/ReceiptLineItemCreateRequest.d.ts +18 -0
- package/dist/@types/services/receipts/line-items/ReceiptLineItemCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/line-items/ReceiptLineItemUpdateRequest.d.ts +13 -0
- package/dist/@types/services/receipts/line-items/ReceiptLineItemUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/metadata/BrowserMetadataCreateRequest.d.ts +29 -0
- package/dist/@types/services/receipts/metadata/BrowserMetadataCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/metadata/ReceiptMetadataCreateRequest.d.ts +36 -0
- package/dist/@types/services/receipts/metadata/ReceiptMetadataCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/payments/ReceiptPaymentUpdateRequest.d.ts +31 -0
- package/dist/@types/services/receipts/payments/ReceiptPaymentUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/payments/ReceiptTransactionCreateRequest.d.ts +48 -0
- package/dist/@types/services/receipts/payments/ReceiptTransactionCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/payments/ReceiptTransactionUpdateRequest.d.ts +20 -0
- package/dist/@types/services/receipts/payments/ReceiptTransactionUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/reviews/ReceiptReviewCreateRequest.d.ts +8 -0
- package/dist/@types/services/receipts/reviews/ReceiptReviewCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/reviews/ReceiptReviewUpdateRequest.d.ts +8 -0
- package/dist/@types/services/receipts/reviews/ReceiptReviewUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/taxes/ReceiptTaxCreateRequest.d.ts +7 -0
- package/dist/@types/services/receipts/taxes/ReceiptTaxCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/receipts/taxes/ReceiptTaxUpdateRequest.d.ts +9 -0
- package/dist/@types/services/receipts/taxes/ReceiptTaxUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/settlements/SettlementListRequest.d.ts +9 -0
- package/dist/@types/services/settlements/SettlementListRequest.d.ts.map +1 -0
- package/dist/@types/services/settlements/SettlementPayRequest.d.ts +6 -0
- package/dist/@types/services/settlements/SettlementPayRequest.d.ts.map +1 -0
- package/dist/@types/services/settlements/SettlementService.d.ts +25 -0
- package/dist/@types/services/settlements/SettlementService.d.ts.map +1 -0
- package/dist/@types/services/transactions/ListTransactionRequest.d.ts +10 -0
- package/dist/@types/services/transactions/ListTransactionRequest.d.ts.map +1 -0
- package/dist/@types/services/transactions/TransactionService.d.ts +20 -0
- package/dist/@types/services/transactions/TransactionService.d.ts.map +1 -0
- package/dist/@types/services/user/UserService.d.ts +22 -0
- package/dist/@types/services/user/UserService.d.ts.map +1 -0
- package/dist/@types/services/user/UserUpdateRequest.d.ts +12 -0
- package/dist/@types/services/user/UserUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/users/SearchUsersRequest.d.ts +8 -0
- package/dist/@types/services/users/SearchUsersRequest.d.ts.map +1 -0
- package/dist/@types/services/users/UserService.d.ts +21 -0
- package/dist/@types/services/users/UserService.d.ts.map +1 -0
- package/dist/@types/services/users/UserUpdateRequest.d.ts +12 -0
- package/dist/@types/services/users/UserUpdateRequest.d.ts.map +1 -0
- package/dist/@types/services/vendors/VendorConnectRequest.d.ts +17 -0
- package/dist/@types/services/vendors/VendorConnectRequest.d.ts.map +1 -0
- package/dist/@types/services/vendors/VendorConnectResponse.d.ts +6 -0
- package/dist/@types/services/vendors/VendorConnectResponse.d.ts.map +1 -0
- package/dist/@types/services/vendors/VendorCreateRequest.d.ts +20 -0
- package/dist/@types/services/vendors/VendorCreateRequest.d.ts.map +1 -0
- package/dist/@types/services/vendors/VendorListRequest.d.ts +7 -0
- package/dist/@types/services/vendors/VendorListRequest.d.ts.map +1 -0
- package/dist/@types/services/vendors/VendorService.d.ts +34 -0
- package/dist/@types/services/vendors/VendorService.d.ts.map +1 -0
- package/dist/@types/services/vendors/VendorUpdateRequest.d.ts +20 -0
- package/dist/@types/services/vendors/VendorUpdateRequest.d.ts.map +1 -0
- package/dist/@types/utilities/FileFormData.d.ts +8 -0
- package/dist/@types/utilities/FileFormData.d.ts.map +1 -0
- package/dist/@types/utilities/SBAbortSignal.d.ts +6 -0
- package/dist/@types/utilities/SBAbortSignal.d.ts.map +1 -0
- package/dist/cjs/_virtual/__polyfill-node.util.cjs +11 -0
- package/dist/cjs/_virtual/__polyfill-node.util.cjs.map +1 -0
- package/dist/cjs/_virtual/_commonjsHelpers.cjs +37 -0
- package/dist/cjs/_virtual/_commonjsHelpers.cjs.map +1 -0
- package/dist/cjs/_virtual/_polyfill-node._inherits.cjs +28 -0
- package/dist/cjs/_virtual/_polyfill-node._inherits.cjs.map +1 -0
- package/dist/cjs/_virtual/_polyfill-node.buffer.cjs +1985 -0
- package/dist/cjs/_virtual/_polyfill-node.buffer.cjs.map +1 -0
- package/dist/cjs/_virtual/_polyfill-node.global.cjs +10 -0
- package/dist/cjs/_virtual/_polyfill-node.global.cjs.map +1 -0
- package/dist/cjs/_virtual/_polyfill-node.process.cjs +253 -0
- package/dist/cjs/_virtual/_polyfill-node.process.cjs.map +1 -0
- package/dist/cjs/_virtual/_polyfill-node.util.cjs +710 -0
- package/dist/cjs/_virtual/_polyfill-node.util.cjs.map +1 -0
- package/dist/cjs/_virtual/index.cjs +6 -0
- package/dist/cjs/_virtual/index.cjs.map +1 -0
- package/dist/cjs/client/SBClient.cjs +261 -0
- package/dist/cjs/client/SBClient.cjs.map +1 -0
- package/dist/cjs/client/SBCredentials.cjs +60 -0
- package/dist/cjs/client/SBCredentials.cjs.map +1 -0
- package/dist/cjs/client/SBEnvironment.cjs +15 -0
- package/dist/cjs/client/SBEnvironment.cjs.map +1 -0
- package/dist/cjs/client/SBException.cjs +38 -0
- package/dist/cjs/client/SBException.cjs.map +1 -0
- package/dist/cjs/client/SBInstance.cjs +59 -0
- package/dist/cjs/client/SBInstance.cjs.map +1 -0
- package/dist/cjs/client/SBLogger.cjs +16 -0
- package/dist/cjs/client/SBLogger.cjs.map +1 -0
- package/dist/cjs/client/SBPermission.cjs +50 -0
- package/dist/cjs/client/SBPermission.cjs.map +1 -0
- package/dist/cjs/client/SBServiceOptions.cjs +22 -0
- package/dist/cjs/client/SBServiceOptions.cjs.map +1 -0
- package/dist/cjs/client/constants.cjs +8 -0
- package/dist/cjs/client/constants.cjs.map +1 -0
- package/dist/cjs/constants/login/LoginError.cjs +9 -0
- package/dist/cjs/constants/login/LoginError.cjs.map +1 -0
- package/dist/cjs/entities/account/SBGenderEnum.cjs +9 -0
- package/dist/cjs/entities/account/SBGenderEnum.cjs.map +1 -0
- package/dist/cjs/entities/banks/SBBankState.cjs +10 -0
- package/dist/cjs/entities/banks/SBBankState.cjs.map +1 -0
- package/dist/cjs/entities/barcode/SBBarcodeType.cjs +28 -0
- package/dist/cjs/entities/barcode/SBBarcodeType.cjs.map +1 -0
- package/dist/cjs/entities/businesses/fees/SBFeeType.cjs +8 -0
- package/dist/cjs/entities/businesses/fees/SBFeeType.cjs.map +1 -0
- package/dist/cjs/entities/businesses/team/invitations/SBTeamMemberInvitationStatus.cjs +10 -0
- package/dist/cjs/entities/businesses/team/invitations/SBTeamMemberInvitationStatus.cjs.map +1 -0
- package/dist/cjs/entities/businesses/team/members/SBTeamMemberRole.cjs +11 -0
- package/dist/cjs/entities/businesses/team/members/SBTeamMemberRole.cjs.map +1 -0
- package/dist/cjs/entities/businesses/team/members/SBTeamMemberStatus.cjs +11 -0
- package/dist/cjs/entities/businesses/team/members/SBTeamMemberStatus.cjs.map +1 -0
- package/dist/cjs/entities/cards/SBCardType.cjs +10 -0
- package/dist/cjs/entities/cards/SBCardType.cjs.map +1 -0
- package/dist/cjs/entities/payment-methods/SBPaymentMethod.cjs +8 -0
- package/dist/cjs/entities/payment-methods/SBPaymentMethod.cjs.map +1 -0
- package/dist/cjs/entities/payment-methods/SBPaymentMethodFingerprintProvider.cjs +8 -0
- package/dist/cjs/entities/payment-methods/SBPaymentMethodFingerprintProvider.cjs.map +1 -0
- package/dist/cjs/entities/receipts/SBReceiptSource.cjs +11 -0
- package/dist/cjs/entities/receipts/SBReceiptSource.cjs.map +1 -0
- package/dist/cjs/entities/receipts/SBReceiptType.cjs +10 -0
- package/dist/cjs/entities/receipts/SBReceiptType.cjs.map +1 -0
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentCardAvsResult.cjs +16 -0
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentCardAvsResult.cjs.map +1 -0
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentCardCvvResult.cjs +9 -0
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentCardCvvResult.cjs.map +1 -0
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentCardEntryMethod.cjs +11 -0
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentCardEntryMethod.cjs.map +1 -0
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentExternalType.cjs +18 -0
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentExternalType.cjs.map +1 -0
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentRiskLevel.cjs +9 -0
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentRiskLevel.cjs.map +1 -0
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentStatus.cjs +11 -0
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentStatus.cjs.map +1 -0
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentType.cjs +12 -0
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentType.cjs.map +1 -0
- package/dist/cjs/entities/transactions/SBTransactionType.cjs +10 -0
- package/dist/cjs/entities/transactions/SBTransactionType.cjs.map +1 -0
- package/dist/cjs/index.cjs +224 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +17 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs.map +1 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +19 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs.map +1 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +14 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs.map +1 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/typeof.cjs +16 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/typeof.cjs.map +1 -0
- package/dist/cjs/node_modules/call-bind/index.cjs +31 -0
- package/dist/cjs/node_modules/call-bind/index.cjs.map +1 -0
- package/dist/cjs/node_modules/call-bind-apply-helpers/actualApply.cjs +17 -0
- package/dist/cjs/node_modules/call-bind-apply-helpers/actualApply.cjs.map +1 -0
- package/dist/cjs/node_modules/call-bind-apply-helpers/applyBind.cjs +17 -0
- package/dist/cjs/node_modules/call-bind-apply-helpers/applyBind.cjs.map +1 -0
- package/dist/cjs/node_modules/call-bind-apply-helpers/functionApply.cjs +15 -0
- package/dist/cjs/node_modules/call-bind-apply-helpers/functionApply.cjs.map +1 -0
- package/dist/cjs/node_modules/call-bind-apply-helpers/functionCall.cjs +15 -0
- package/dist/cjs/node_modules/call-bind-apply-helpers/functionCall.cjs.map +1 -0
- package/dist/cjs/node_modules/call-bind-apply-helpers/index.cjs +22 -0
- package/dist/cjs/node_modules/call-bind-apply-helpers/index.cjs.map +1 -0
- package/dist/cjs/node_modules/call-bind-apply-helpers/reflectApply.cjs +7 -0
- package/dist/cjs/node_modules/call-bind-apply-helpers/reflectApply.cjs.map +1 -0
- package/dist/cjs/node_modules/call-bound/index.cjs +23 -0
- package/dist/cjs/node_modules/call-bound/index.cjs.map +1 -0
- package/dist/cjs/node_modules/define-data-property/index.cjs +56 -0
- package/dist/cjs/node_modules/define-data-property/index.cjs.map +1 -0
- package/dist/cjs/node_modules/dunder-proto/get.cjs +31 -0
- package/dist/cjs/node_modules/dunder-proto/get.cjs.map +1 -0
- package/dist/cjs/node_modules/es-define-property/index.cjs +18 -0
- package/dist/cjs/node_modules/es-define-property/index.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/eval.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/eval.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/index.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/index.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/range.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/range.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/ref.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/ref.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/syntax.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/syntax.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/type.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/type.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/uri.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/uri.cjs.map +1 -0
- package/dist/cjs/node_modules/function-bind/implementation.cjs +77 -0
- package/dist/cjs/node_modules/function-bind/implementation.cjs.map +1 -0
- package/dist/cjs/node_modules/function-bind/index.cjs +16 -0
- package/dist/cjs/node_modules/function-bind/index.cjs.map +1 -0
- package/dist/cjs/node_modules/get-intrinsic/index.cjs +341 -0
- package/dist/cjs/node_modules/get-intrinsic/index.cjs.map +1 -0
- package/dist/cjs/node_modules/gopd/gOPD.cjs +7 -0
- package/dist/cjs/node_modules/gopd/gOPD.cjs.map +1 -0
- package/dist/cjs/node_modules/gopd/index.cjs +18 -0
- package/dist/cjs/node_modules/gopd/index.cjs.map +1 -0
- package/dist/cjs/node_modules/has-property-descriptors/index.cjs +26 -0
- package/dist/cjs/node_modules/has-property-descriptors/index.cjs.map +1 -0
- package/dist/cjs/node_modules/has-symbols/index.cjs +33 -0
- package/dist/cjs/node_modules/has-symbols/index.cjs.map +1 -0
- package/dist/cjs/node_modules/has-symbols/shams.cjs +72 -0
- package/dist/cjs/node_modules/has-symbols/shams.cjs.map +1 -0
- package/dist/cjs/node_modules/hasown/index.cjs +20 -0
- package/dist/cjs/node_modules/hasown/index.cjs.map +1 -0
- package/dist/cjs/node_modules/object-inspect/index.cjs +535 -0
- package/dist/cjs/node_modules/object-inspect/index.cjs.map +1 -0
- package/dist/cjs/node_modules/object-inspect/util.inspect.cjs +8 -0
- package/dist/cjs/node_modules/object-inspect/util.inspect.cjs.map +1 -0
- package/dist/cjs/node_modules/qs/lib/formats.cjs +24 -0
- package/dist/cjs/node_modules/qs/lib/formats.cjs.map +1 -0
- package/dist/cjs/node_modules/qs/lib/index.cjs +21 -0
- package/dist/cjs/node_modules/qs/lib/index.cjs.map +1 -0
- package/dist/cjs/node_modules/qs/lib/parse.cjs +265 -0
- package/dist/cjs/node_modules/qs/lib/parse.cjs.map +1 -0
- package/dist/cjs/node_modules/qs/lib/stringify.cjs +253 -0
- package/dist/cjs/node_modules/qs/lib/stringify.cjs.map +1 -0
- package/dist/cjs/node_modules/qs/lib/utils.cjs +231 -0
- package/dist/cjs/node_modules/qs/lib/utils.cjs.map +1 -0
- package/dist/cjs/node_modules/set-function-length/index.cjs +47 -0
- package/dist/cjs/node_modules/set-function-length/index.cjs.map +1 -0
- package/dist/cjs/node_modules/side-channel/index.cjs +50 -0
- package/dist/cjs/node_modules/side-channel/index.cjs.map +1 -0
- package/dist/cjs/node_modules/side-channel-list/index.cjs +119 -0
- package/dist/cjs/node_modules/side-channel-list/index.cjs.map +1 -0
- package/dist/cjs/node_modules/side-channel-map/index.cjs +76 -0
- package/dist/cjs/node_modules/side-channel-map/index.cjs.map +1 -0
- package/dist/cjs/node_modules/side-channel-weakmap/index.cjs +92 -0
- package/dist/cjs/node_modules/side-channel-weakmap/index.cjs.map +1 -0
- package/dist/cjs/packages/sdk/package.json.cjs +6 -0
- package/dist/cjs/packages/sdk/package.json.cjs.map +1 -0
- package/dist/cjs/services/SBService.cjs +161 -0
- package/dist/cjs/services/SBService.cjs.map +1 -0
- package/dist/cjs/services/api-logs/LogService.cjs +19 -0
- package/dist/cjs/services/api-logs/LogService.cjs.map +1 -0
- package/dist/cjs/services/attachments/AttachmentService.cjs +86 -0
- package/dist/cjs/services/attachments/AttachmentService.cjs.map +1 -0
- package/dist/cjs/services/banks/BankService.cjs +183 -0
- package/dist/cjs/services/banks/BankService.cjs.map +1 -0
- package/dist/cjs/services/banks/accounts/BankAccountService.cjs +25 -0
- package/dist/cjs/services/banks/accounts/BankAccountService.cjs.map +1 -0
- package/dist/cjs/services/banks/institutions/BankInstitutionService.cjs +19 -0
- package/dist/cjs/services/banks/institutions/BankInstitutionService.cjs.map +1 -0
- package/dist/cjs/services/banks/transactions/BankTransactionService.cjs +28 -0
- package/dist/cjs/services/banks/transactions/BankTransactionService.cjs.map +1 -0
- package/dist/cjs/services/billing/subscriptions/SubscriptionService.cjs +129 -0
- package/dist/cjs/services/billing/subscriptions/SubscriptionService.cjs.map +1 -0
- package/dist/cjs/services/businesses/BusinessService.cjs +98 -0
- package/dist/cjs/services/businesses/BusinessService.cjs.map +1 -0
- package/dist/cjs/services/businesses/brands/BrandService.cjs +33 -0
- package/dist/cjs/services/businesses/brands/BrandService.cjs.map +1 -0
- package/dist/cjs/services/businesses/customers/CustomerService.cjs +94 -0
- package/dist/cjs/services/businesses/customers/CustomerService.cjs.map +1 -0
- package/dist/cjs/services/businesses/customers/balance-transactions/CustomerBalanceTransactionService.cjs +82 -0
- package/dist/cjs/services/businesses/customers/balance-transactions/CustomerBalanceTransactionService.cjs.map +1 -0
- package/dist/cjs/services/businesses/customers/payment-methods/CustomerPaymentMethodService.cjs +82 -0
- package/dist/cjs/services/businesses/customers/payment-methods/CustomerPaymentMethodService.cjs.map +1 -0
- package/dist/cjs/services/businesses/departments/DepartmentService.cjs +159 -0
- package/dist/cjs/services/businesses/departments/DepartmentService.cjs.map +1 -0
- package/dist/cjs/services/businesses/departments/Employees/DepartmentEmployeeService.cjs +81 -0
- package/dist/cjs/services/businesses/departments/Employees/DepartmentEmployeeService.cjs.map +1 -0
- package/dist/cjs/services/businesses/domains/DomainService.cjs +21 -0
- package/dist/cjs/services/businesses/domains/DomainService.cjs.map +1 -0
- package/dist/cjs/services/businesses/fees/FeeService.cjs +93 -0
- package/dist/cjs/services/businesses/fees/FeeService.cjs.map +1 -0
- package/dist/cjs/services/businesses/locations/LocationService.cjs +139 -0
- package/dist/cjs/services/businesses/locations/LocationService.cjs.map +1 -0
- package/dist/cjs/services/businesses/prices/PriceService.cjs +24 -0
- package/dist/cjs/services/businesses/prices/PriceService.cjs.map +1 -0
- package/dist/cjs/services/businesses/products/ProductService.cjs +123 -0
- package/dist/cjs/services/businesses/products/ProductService.cjs.map +1 -0
- package/dist/cjs/services/businesses/products/images/ProductImageService.cjs +99 -0
- package/dist/cjs/services/businesses/products/images/ProductImageService.cjs.map +1 -0
- package/dist/cjs/services/businesses/products/modifiers/ProductModifierService.cjs +94 -0
- package/dist/cjs/services/businesses/products/modifiers/ProductModifierService.cjs.map +1 -0
- package/dist/cjs/services/businesses/products/options/ProductOptionService.cjs +94 -0
- package/dist/cjs/services/businesses/products/options/ProductOptionService.cjs.map +1 -0
- package/dist/cjs/services/businesses/products/variants/ProductVariantService.cjs +83 -0
- package/dist/cjs/services/businesses/products/variants/ProductVariantService.cjs.map +1 -0
- package/dist/cjs/services/businesses/promo-codes/PromoCodeService.cjs +94 -0
- package/dist/cjs/services/businesses/promo-codes/PromoCodeService.cjs.map +1 -0
- package/dist/cjs/services/businesses/reviews/BusinessReviewService.cjs +32 -0
- package/dist/cjs/services/businesses/reviews/BusinessReviewService.cjs.map +1 -0
- package/dist/cjs/services/businesses/tables/TableService.cjs +29 -0
- package/dist/cjs/services/businesses/tables/TableService.cjs.map +1 -0
- package/dist/cjs/services/businesses/taxes/TaxService.cjs +89 -0
- package/dist/cjs/services/businesses/taxes/TaxService.cjs.map +1 -0
- package/dist/cjs/services/businesses/team/invitations/TeamMemberInvitationService.cjs +34 -0
- package/dist/cjs/services/businesses/team/invitations/TeamMemberInvitationService.cjs.map +1 -0
- package/dist/cjs/services/businesses/team/members/TeamMemberService.cjs +26 -0
- package/dist/cjs/services/businesses/team/members/TeamMemberService.cjs.map +1 -0
- package/dist/cjs/services/businesses/vendors/VendorService.cjs +91 -0
- package/dist/cjs/services/businesses/vendors/VendorService.cjs.map +1 -0
- package/dist/cjs/services/cards/CardService.cjs +40 -0
- package/dist/cjs/services/cards/CardService.cjs.map +1 -0
- package/dist/cjs/services/documents/DocumentService.cjs +40 -0
- package/dist/cjs/services/documents/DocumentService.cjs.map +1 -0
- package/dist/cjs/services/expenses/ExpenseService.cjs +68 -0
- package/dist/cjs/services/expenses/ExpenseService.cjs.map +1 -0
- package/dist/cjs/services/explore/ExploreService.cjs +16 -0
- package/dist/cjs/services/explore/ExploreService.cjs.map +1 -0
- package/dist/cjs/services/friends/FriendService.cjs +28 -0
- package/dist/cjs/services/friends/FriendService.cjs.map +1 -0
- package/dist/cjs/services/integrations/IntegrationService.cjs +27 -0
- package/dist/cjs/services/integrations/IntegrationService.cjs.map +1 -0
- package/dist/cjs/services/invoices/InvoiceService.cjs +271 -0
- package/dist/cjs/services/invoices/InvoiceService.cjs.map +1 -0
- package/dist/cjs/services/loyalty/LoyaltyProgramService.cjs +197 -0
- package/dist/cjs/services/loyalty/LoyaltyProgramService.cjs.map +1 -0
- package/dist/cjs/services/notifications/NotificationService.cjs +75 -0
- package/dist/cjs/services/notifications/NotificationService.cjs.map +1 -0
- package/dist/cjs/services/oauth/AccessTokenResponse.cjs +16 -0
- package/dist/cjs/services/oauth/AccessTokenResponse.cjs.map +1 -0
- package/dist/cjs/services/oauth/AuthorizationCodeResponse.cjs +25 -0
- package/dist/cjs/services/oauth/AuthorizationCodeResponse.cjs.map +1 -0
- package/dist/cjs/services/oauth/OAuthService.cjs +44 -0
- package/dist/cjs/services/oauth/OAuthService.cjs.map +1 -0
- package/dist/cjs/services/payment-methods/PaymentMethodService.cjs +40 -0
- package/dist/cjs/services/payment-methods/PaymentMethodService.cjs.map +1 -0
- package/dist/cjs/services/receipts/ReceiptService.cjs +294 -0
- package/dist/cjs/services/receipts/ReceiptService.cjs.map +1 -0
- package/dist/cjs/services/settlements/SettlementService.cjs +29 -0
- package/dist/cjs/services/settlements/SettlementService.cjs.map +1 -0
- package/dist/cjs/services/transactions/TransactionService.cjs +20 -0
- package/dist/cjs/services/transactions/TransactionService.cjs.map +1 -0
- package/dist/cjs/services/user/UserService.cjs +42 -0
- package/dist/cjs/services/user/UserService.cjs.map +1 -0
- package/dist/cjs/services/users/UserService.cjs +34 -0
- package/dist/cjs/services/users/UserService.cjs.map +1 -0
- package/dist/cjs/services/vendors/VendorService.cjs +46 -0
- package/dist/cjs/services/vendors/VendorService.cjs.map +1 -0
- package/dist/esm/_virtual/__polyfill-node.util.mjs +7 -0
- package/dist/esm/_virtual/__polyfill-node.util.mjs.map +1 -0
- package/dist/esm/_virtual/_commonjsHelpers.mjs +33 -0
- package/dist/esm/_virtual/_commonjsHelpers.mjs.map +1 -0
- package/dist/esm/_virtual/_polyfill-node._inherits.mjs +26 -0
- package/dist/esm/_virtual/_polyfill-node._inherits.mjs.map +1 -0
- package/dist/esm/_virtual/_polyfill-node.buffer.mjs +1981 -0
- package/dist/esm/_virtual/_polyfill-node.buffer.mjs.map +1 -0
- package/dist/esm/_virtual/_polyfill-node.global.mjs +6 -0
- package/dist/esm/_virtual/_polyfill-node.global.mjs.map +1 -0
- package/dist/esm/_virtual/_polyfill-node.process.mjs +226 -0
- package/dist/esm/_virtual/_polyfill-node.process.mjs.map +1 -0
- package/dist/esm/_virtual/_polyfill-node.util.mjs +679 -0
- package/dist/esm/_virtual/_polyfill-node.util.mjs.map +1 -0
- package/dist/esm/_virtual/index.mjs +4 -0
- package/dist/esm/_virtual/index.mjs.map +1 -0
- package/dist/esm/client/SBClient.mjs +259 -0
- package/dist/esm/client/SBClient.mjs.map +1 -0
- package/dist/esm/client/SBCredentials.mjs +57 -0
- package/dist/esm/client/SBCredentials.mjs.map +1 -0
- package/dist/esm/client/SBEnvironment.mjs +13 -0
- package/dist/esm/client/SBEnvironment.mjs.map +1 -0
- package/dist/esm/client/SBException.mjs +35 -0
- package/dist/esm/client/SBException.mjs.map +1 -0
- package/dist/esm/client/SBInstance.mjs +57 -0
- package/dist/esm/client/SBInstance.mjs.map +1 -0
- package/dist/esm/client/SBLogger.mjs +14 -0
- package/dist/esm/client/SBLogger.mjs.map +1 -0
- package/dist/esm/client/SBPermission.mjs +50 -0
- package/dist/esm/client/SBPermission.mjs.map +1 -0
- package/dist/esm/client/SBServiceOptions.mjs +19 -0
- package/dist/esm/client/SBServiceOptions.mjs.map +1 -0
- package/dist/esm/client/constants.mjs +5 -0
- package/dist/esm/client/constants.mjs.map +1 -0
- package/dist/esm/constants/login/LoginError.mjs +9 -0
- package/dist/esm/constants/login/LoginError.mjs.map +1 -0
- package/dist/esm/entities/account/SBGenderEnum.mjs +9 -0
- package/dist/esm/entities/account/SBGenderEnum.mjs.map +1 -0
- package/dist/esm/entities/banks/SBBankState.mjs +10 -0
- package/dist/esm/entities/banks/SBBankState.mjs.map +1 -0
- package/dist/esm/entities/barcode/SBBarcodeType.mjs +28 -0
- package/dist/esm/entities/barcode/SBBarcodeType.mjs.map +1 -0
- package/dist/esm/entities/businesses/fees/SBFeeType.mjs +8 -0
- package/dist/esm/entities/businesses/fees/SBFeeType.mjs.map +1 -0
- package/dist/esm/entities/businesses/team/invitations/SBTeamMemberInvitationStatus.mjs +10 -0
- package/dist/esm/entities/businesses/team/invitations/SBTeamMemberInvitationStatus.mjs.map +1 -0
- package/dist/esm/entities/businesses/team/members/SBTeamMemberRole.mjs +11 -0
- package/dist/esm/entities/businesses/team/members/SBTeamMemberRole.mjs.map +1 -0
- package/dist/esm/entities/businesses/team/members/SBTeamMemberStatus.mjs +11 -0
- package/dist/esm/entities/businesses/team/members/SBTeamMemberStatus.mjs.map +1 -0
- package/dist/esm/entities/cards/SBCardType.mjs +10 -0
- package/dist/esm/entities/cards/SBCardType.mjs.map +1 -0
- package/dist/esm/entities/payment-methods/SBPaymentMethod.mjs +8 -0
- package/dist/esm/entities/payment-methods/SBPaymentMethod.mjs.map +1 -0
- package/dist/esm/entities/payment-methods/SBPaymentMethodFingerprintProvider.mjs +8 -0
- package/dist/esm/entities/payment-methods/SBPaymentMethodFingerprintProvider.mjs.map +1 -0
- package/dist/esm/entities/receipts/SBReceiptSource.mjs +11 -0
- package/dist/esm/entities/receipts/SBReceiptSource.mjs.map +1 -0
- package/dist/esm/entities/receipts/SBReceiptType.mjs +8 -0
- package/dist/esm/entities/receipts/SBReceiptType.mjs.map +1 -0
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentCardAvsResult.mjs +16 -0
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentCardAvsResult.mjs.map +1 -0
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentCardCvvResult.mjs +9 -0
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentCardCvvResult.mjs.map +1 -0
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentCardEntryMethod.mjs +11 -0
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentCardEntryMethod.mjs.map +1 -0
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentExternalType.mjs +18 -0
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentExternalType.mjs.map +1 -0
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentRiskLevel.mjs +9 -0
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentRiskLevel.mjs.map +1 -0
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentStatus.mjs +11 -0
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentStatus.mjs.map +1 -0
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentType.mjs +12 -0
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentType.mjs.map +1 -0
- package/dist/esm/entities/transactions/SBTransactionType.mjs +10 -0
- package/dist/esm/entities/transactions/SBTransactionType.mjs.map +1 -0
- package/dist/esm/index.mjs +77 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +13 -0
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs.map +1 -0
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +15 -0
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs.map +1 -0
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +10 -0
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs.map +1 -0
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/typeof.mjs +12 -0
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/typeof.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind/index.mjs +29 -0
- package/dist/esm/node_modules/call-bind/index.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/actualApply.mjs +15 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/actualApply.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/applyBind.mjs +15 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/applyBind.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/functionApply.mjs +13 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/functionApply.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/functionCall.mjs +13 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/functionCall.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/index.mjs +20 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/index.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/reflectApply.mjs +5 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/reflectApply.mjs.map +1 -0
- package/dist/esm/node_modules/call-bound/index.mjs +21 -0
- package/dist/esm/node_modules/call-bound/index.mjs.map +1 -0
- package/dist/esm/node_modules/define-data-property/index.mjs +54 -0
- package/dist/esm/node_modules/define-data-property/index.mjs.map +1 -0
- package/dist/esm/node_modules/dunder-proto/get.mjs +29 -0
- package/dist/esm/node_modules/dunder-proto/get.mjs.map +1 -0
- package/dist/esm/node_modules/es-define-property/index.mjs +16 -0
- package/dist/esm/node_modules/es-define-property/index.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/eval.mjs +5 -0
- package/dist/esm/node_modules/es-errors/eval.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/index.mjs +5 -0
- package/dist/esm/node_modules/es-errors/index.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/range.mjs +5 -0
- package/dist/esm/node_modules/es-errors/range.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/ref.mjs +5 -0
- package/dist/esm/node_modules/es-errors/ref.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/syntax.mjs +5 -0
- package/dist/esm/node_modules/es-errors/syntax.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/type.mjs +5 -0
- package/dist/esm/node_modules/es-errors/type.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/uri.mjs +5 -0
- package/dist/esm/node_modules/es-errors/uri.mjs.map +1 -0
- package/dist/esm/node_modules/function-bind/implementation.mjs +75 -0
- package/dist/esm/node_modules/function-bind/implementation.mjs.map +1 -0
- package/dist/esm/node_modules/function-bind/index.mjs +14 -0
- package/dist/esm/node_modules/function-bind/index.mjs.map +1 -0
- package/dist/esm/node_modules/get-intrinsic/index.mjs +339 -0
- package/dist/esm/node_modules/get-intrinsic/index.mjs.map +1 -0
- package/dist/esm/node_modules/gopd/gOPD.mjs +5 -0
- package/dist/esm/node_modules/gopd/gOPD.mjs.map +1 -0
- package/dist/esm/node_modules/gopd/index.mjs +16 -0
- package/dist/esm/node_modules/gopd/index.mjs.map +1 -0
- package/dist/esm/node_modules/has-property-descriptors/index.mjs +24 -0
- package/dist/esm/node_modules/has-property-descriptors/index.mjs.map +1 -0
- package/dist/esm/node_modules/has-symbols/index.mjs +31 -0
- package/dist/esm/node_modules/has-symbols/index.mjs.map +1 -0
- package/dist/esm/node_modules/has-symbols/shams.mjs +70 -0
- package/dist/esm/node_modules/has-symbols/shams.mjs.map +1 -0
- package/dist/esm/node_modules/hasown/index.mjs +18 -0
- package/dist/esm/node_modules/hasown/index.mjs.map +1 -0
- package/dist/esm/node_modules/object-inspect/index.mjs +533 -0
- package/dist/esm/node_modules/object-inspect/index.mjs.map +1 -0
- package/dist/esm/node_modules/object-inspect/util.inspect.mjs +6 -0
- package/dist/esm/node_modules/object-inspect/util.inspect.mjs.map +1 -0
- package/dist/esm/node_modules/qs/lib/formats.mjs +22 -0
- package/dist/esm/node_modules/qs/lib/formats.mjs.map +1 -0
- package/dist/esm/node_modules/qs/lib/index.mjs +17 -0
- package/dist/esm/node_modules/qs/lib/index.mjs.map +1 -0
- package/dist/esm/node_modules/qs/lib/parse.mjs +263 -0
- package/dist/esm/node_modules/qs/lib/parse.mjs.map +1 -0
- package/dist/esm/node_modules/qs/lib/stringify.mjs +251 -0
- package/dist/esm/node_modules/qs/lib/stringify.mjs.map +1 -0
- package/dist/esm/node_modules/qs/lib/utils.mjs +229 -0
- package/dist/esm/node_modules/qs/lib/utils.mjs.map +1 -0
- package/dist/esm/node_modules/set-function-length/index.mjs +45 -0
- package/dist/esm/node_modules/set-function-length/index.mjs.map +1 -0
- package/dist/esm/node_modules/side-channel/index.mjs +48 -0
- package/dist/esm/node_modules/side-channel/index.mjs.map +1 -0
- package/dist/esm/node_modules/side-channel-list/index.mjs +117 -0
- package/dist/esm/node_modules/side-channel-list/index.mjs.map +1 -0
- package/dist/esm/node_modules/side-channel-map/index.mjs +74 -0
- package/dist/esm/node_modules/side-channel-map/index.mjs.map +1 -0
- package/dist/esm/node_modules/side-channel-weakmap/index.mjs +90 -0
- package/dist/esm/node_modules/side-channel-weakmap/index.mjs.map +1 -0
- package/dist/esm/packages/sdk/package.json.mjs +4 -0
- package/dist/esm/packages/sdk/package.json.mjs.map +1 -0
- package/dist/esm/services/SBService.mjs +159 -0
- package/dist/esm/services/SBService.mjs.map +1 -0
- package/dist/esm/services/api-logs/LogService.mjs +17 -0
- package/dist/esm/services/api-logs/LogService.mjs.map +1 -0
- package/dist/esm/services/attachments/AttachmentService.mjs +84 -0
- package/dist/esm/services/attachments/AttachmentService.mjs.map +1 -0
- package/dist/esm/services/banks/BankService.mjs +181 -0
- package/dist/esm/services/banks/BankService.mjs.map +1 -0
- package/dist/esm/services/banks/accounts/BankAccountService.mjs +23 -0
- package/dist/esm/services/banks/accounts/BankAccountService.mjs.map +1 -0
- package/dist/esm/services/banks/institutions/BankInstitutionService.mjs +17 -0
- package/dist/esm/services/banks/institutions/BankInstitutionService.mjs.map +1 -0
- package/dist/esm/services/banks/transactions/BankTransactionService.mjs +26 -0
- package/dist/esm/services/banks/transactions/BankTransactionService.mjs.map +1 -0
- package/dist/esm/services/billing/subscriptions/SubscriptionService.mjs +127 -0
- package/dist/esm/services/billing/subscriptions/SubscriptionService.mjs.map +1 -0
- package/dist/esm/services/businesses/BusinessService.mjs +96 -0
- package/dist/esm/services/businesses/BusinessService.mjs.map +1 -0
- package/dist/esm/services/businesses/brands/BrandService.mjs +31 -0
- package/dist/esm/services/businesses/brands/BrandService.mjs.map +1 -0
- package/dist/esm/services/businesses/customers/CustomerService.mjs +92 -0
- package/dist/esm/services/businesses/customers/CustomerService.mjs.map +1 -0
- package/dist/esm/services/businesses/customers/balance-transactions/CustomerBalanceTransactionService.mjs +80 -0
- package/dist/esm/services/businesses/customers/balance-transactions/CustomerBalanceTransactionService.mjs.map +1 -0
- package/dist/esm/services/businesses/customers/payment-methods/CustomerPaymentMethodService.mjs +80 -0
- package/dist/esm/services/businesses/customers/payment-methods/CustomerPaymentMethodService.mjs.map +1 -0
- package/dist/esm/services/businesses/departments/DepartmentService.mjs +157 -0
- package/dist/esm/services/businesses/departments/DepartmentService.mjs.map +1 -0
- package/dist/esm/services/businesses/departments/Employees/DepartmentEmployeeService.mjs +79 -0
- package/dist/esm/services/businesses/departments/Employees/DepartmentEmployeeService.mjs.map +1 -0
- package/dist/esm/services/businesses/domains/DomainService.mjs +19 -0
- package/dist/esm/services/businesses/domains/DomainService.mjs.map +1 -0
- package/dist/esm/services/businesses/fees/FeeService.mjs +91 -0
- package/dist/esm/services/businesses/fees/FeeService.mjs.map +1 -0
- package/dist/esm/services/businesses/locations/LocationService.mjs +137 -0
- package/dist/esm/services/businesses/locations/LocationService.mjs.map +1 -0
- package/dist/esm/services/businesses/prices/PriceService.mjs +22 -0
- package/dist/esm/services/businesses/prices/PriceService.mjs.map +1 -0
- package/dist/esm/services/businesses/products/ProductService.mjs +121 -0
- package/dist/esm/services/businesses/products/ProductService.mjs.map +1 -0
- package/dist/esm/services/businesses/products/images/ProductImageService.mjs +97 -0
- package/dist/esm/services/businesses/products/images/ProductImageService.mjs.map +1 -0
- package/dist/esm/services/businesses/products/modifiers/ProductModifierService.mjs +92 -0
- package/dist/esm/services/businesses/products/modifiers/ProductModifierService.mjs.map +1 -0
- package/dist/esm/services/businesses/products/options/ProductOptionService.mjs +92 -0
- package/dist/esm/services/businesses/products/options/ProductOptionService.mjs.map +1 -0
- package/dist/esm/services/businesses/products/variants/ProductVariantService.mjs +81 -0
- package/dist/esm/services/businesses/products/variants/ProductVariantService.mjs.map +1 -0
- package/dist/esm/services/businesses/promo-codes/PromoCodeService.mjs +92 -0
- package/dist/esm/services/businesses/promo-codes/PromoCodeService.mjs.map +1 -0
- package/dist/esm/services/businesses/reviews/BusinessReviewService.mjs +30 -0
- package/dist/esm/services/businesses/reviews/BusinessReviewService.mjs.map +1 -0
- package/dist/esm/services/businesses/tables/TableService.mjs +27 -0
- package/dist/esm/services/businesses/tables/TableService.mjs.map +1 -0
- package/dist/esm/services/businesses/taxes/TaxService.mjs +87 -0
- package/dist/esm/services/businesses/taxes/TaxService.mjs.map +1 -0
- package/dist/esm/services/businesses/team/invitations/TeamMemberInvitationService.mjs +32 -0
- package/dist/esm/services/businesses/team/invitations/TeamMemberInvitationService.mjs.map +1 -0
- package/dist/esm/services/businesses/team/members/TeamMemberService.mjs +24 -0
- package/dist/esm/services/businesses/team/members/TeamMemberService.mjs.map +1 -0
- package/dist/esm/services/businesses/vendors/VendorService.mjs +89 -0
- package/dist/esm/services/businesses/vendors/VendorService.mjs.map +1 -0
- package/dist/esm/services/cards/CardService.mjs +38 -0
- package/dist/esm/services/cards/CardService.mjs.map +1 -0
- package/dist/esm/services/documents/DocumentService.mjs +38 -0
- package/dist/esm/services/documents/DocumentService.mjs.map +1 -0
- package/dist/esm/services/expenses/ExpenseService.mjs +66 -0
- package/dist/esm/services/expenses/ExpenseService.mjs.map +1 -0
- package/dist/esm/services/explore/ExploreService.mjs +14 -0
- package/dist/esm/services/explore/ExploreService.mjs.map +1 -0
- package/dist/esm/services/friends/FriendService.mjs +26 -0
- package/dist/esm/services/friends/FriendService.mjs.map +1 -0
- package/dist/esm/services/integrations/IntegrationService.mjs +25 -0
- package/dist/esm/services/integrations/IntegrationService.mjs.map +1 -0
- package/dist/esm/services/invoices/InvoiceService.mjs +269 -0
- package/dist/esm/services/invoices/InvoiceService.mjs.map +1 -0
- package/dist/esm/services/loyalty/LoyaltyProgramService.mjs +195 -0
- package/dist/esm/services/loyalty/LoyaltyProgramService.mjs.map +1 -0
- package/dist/esm/services/notifications/NotificationService.mjs +73 -0
- package/dist/esm/services/notifications/NotificationService.mjs.map +1 -0
- package/dist/esm/services/oauth/AccessTokenResponse.mjs +14 -0
- package/dist/esm/services/oauth/AccessTokenResponse.mjs.map +1 -0
- package/dist/esm/services/oauth/AuthorizationCodeResponse.mjs +23 -0
- package/dist/esm/services/oauth/AuthorizationCodeResponse.mjs.map +1 -0
- package/dist/esm/services/oauth/OAuthService.mjs +42 -0
- package/dist/esm/services/oauth/OAuthService.mjs.map +1 -0
- package/dist/esm/services/payment-methods/PaymentMethodService.mjs +38 -0
- package/dist/esm/services/payment-methods/PaymentMethodService.mjs.map +1 -0
- package/dist/esm/services/receipts/ReceiptService.mjs +292 -0
- package/dist/esm/services/receipts/ReceiptService.mjs.map +1 -0
- package/dist/esm/services/settlements/SettlementService.mjs +27 -0
- package/dist/esm/services/settlements/SettlementService.mjs.map +1 -0
- package/dist/esm/services/transactions/TransactionService.mjs +18 -0
- package/dist/esm/services/transactions/TransactionService.mjs.map +1 -0
- package/dist/esm/services/user/UserService.mjs +40 -0
- package/dist/esm/services/user/UserService.mjs.map +1 -0
- package/dist/esm/services/users/UserService.mjs +32 -0
- package/dist/esm/services/users/UserService.mjs.map +1 -0
- package/dist/esm/services/vendors/VendorService.mjs +44 -0
- package/dist/esm/services/vendors/VendorService.mjs.map +1 -0
- package/dist/umd/index.js +9493 -0
- package/dist/umd/index.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var SBServiceOptions = require('../../client/SBServiceOptions.cjs');
|
|
4
|
+
var SBService = require('../SBService.cjs');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Service for managing invoices in the Smartbills system
|
|
8
|
+
* Provides functionality for CRUD operations on invoices
|
|
9
|
+
**/
|
|
10
|
+
class InvoiceService extends SBService.SBService {
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new instance of the invoice service
|
|
13
|
+
* @param options - Service configuration options
|
|
14
|
+
*/
|
|
15
|
+
constructor(options = SBServiceOptions.defaultAPIServiceOptions) {
|
|
16
|
+
super(options);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves an invoice by its ID
|
|
20
|
+
* @param id - The invoice ID
|
|
21
|
+
* @param options - Request options
|
|
22
|
+
* @param config - Axios request configuration
|
|
23
|
+
* @returns Promise that resolves with the invoice data
|
|
24
|
+
*/
|
|
25
|
+
async getByIdAsync(id, options, config) {
|
|
26
|
+
return await super.getEntityById(`/v1/invoices/${id}`, options, config);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Lists invoices with pagination
|
|
30
|
+
* @param request - List request parameters
|
|
31
|
+
* @param options - Request options
|
|
32
|
+
* @param config - Axios request configuration
|
|
33
|
+
* @returns Promise that resolves with paginated invoice data
|
|
34
|
+
*/
|
|
35
|
+
async listAsync(request, options, config) {
|
|
36
|
+
return await super.listEntities("/v1/invoices", request, options, config);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Creates a new invoice
|
|
40
|
+
* @param request - Invoice creation request data
|
|
41
|
+
* @param options - Request options
|
|
42
|
+
* @param config - Axios request configuration
|
|
43
|
+
* @returns Promise that resolves with the created invoice
|
|
44
|
+
*/
|
|
45
|
+
async createAsync(request, options, config) {
|
|
46
|
+
return await super.createEntity("/v1/invoices", request, options, config);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Updates an existing invoice
|
|
50
|
+
* @param id - The invoice ID
|
|
51
|
+
* @param invoice - Invoice update request data
|
|
52
|
+
* @param options - Request options
|
|
53
|
+
* @param config - Axios request configuration
|
|
54
|
+
* @returns Promise that resolves with the updated invoice
|
|
55
|
+
*/
|
|
56
|
+
async updateAsync(id, invoice, options, config) {
|
|
57
|
+
return await super.updateEntity(`/v1/invoices/${id}`, invoice, options, config);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Deletes an invoice
|
|
61
|
+
* @param id - The invoice ID
|
|
62
|
+
* @param options - Request options
|
|
63
|
+
* @param config - Axios request configuration
|
|
64
|
+
* @returns Promise that resolves with the deleted invoice
|
|
65
|
+
*/
|
|
66
|
+
async deleteAsync(id, options, config) {
|
|
67
|
+
return await super.deleteEntity(`/v1/invoices/${id}`, options, config);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Generates a QR code for a public invoice
|
|
71
|
+
* @param token - Public invoice token
|
|
72
|
+
* @param options - Request options
|
|
73
|
+
* @param config - Axios request configuration
|
|
74
|
+
* @returns Promise that resolves with the QR code string
|
|
75
|
+
*/
|
|
76
|
+
async generateQRCode(token, options, config) {
|
|
77
|
+
config = config || {};
|
|
78
|
+
if (!config.params) config.params = {};
|
|
79
|
+
config.params.token = token;
|
|
80
|
+
return await super.getEntityById("/v1/invoices/public", options, config);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Creates a barcode for an invoice
|
|
84
|
+
* @param id - The invoice ID
|
|
85
|
+
* @param request - Barcode creation request data
|
|
86
|
+
* @param options - Request options
|
|
87
|
+
* @param config - Axios request configuration
|
|
88
|
+
* @returns Promise that resolves with the updated invoice
|
|
89
|
+
*/
|
|
90
|
+
async createBarcode(id, request, options, config) {
|
|
91
|
+
return await super.createEntity(`/v1/invoices/${id}/barcode`, request, options, config);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Deletes a barcode from an invoice
|
|
95
|
+
* @param id - The invoice ID
|
|
96
|
+
* @param options - Request options
|
|
97
|
+
* @param config - Axios request configuration
|
|
98
|
+
* @returns Promise that resolves with the updated invoice
|
|
99
|
+
*/
|
|
100
|
+
async deleteBarcode(id, options, config) {
|
|
101
|
+
return await super.deleteEntity(`/v1/invoices/${id}/barcode`, options, config);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Uploads a document attachment to an invoice
|
|
105
|
+
* @param id - The invoice ID
|
|
106
|
+
* @param file - File to upload
|
|
107
|
+
* @param options - Request options
|
|
108
|
+
* @param config - Axios request configuration
|
|
109
|
+
* @returns Promise that resolves with the created document
|
|
110
|
+
*/
|
|
111
|
+
async uploadDocument(id, file, options, config) {
|
|
112
|
+
const formData = new FormData();
|
|
113
|
+
formData.append("file", file);
|
|
114
|
+
return await super.createEntity(`/v1/invoices/${id}/attachments`, formData, options, {
|
|
115
|
+
...(config || {}),
|
|
116
|
+
headers: {
|
|
117
|
+
"Content-Type": "multipart/form-data"
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Associates a bank transaction with an invoice
|
|
123
|
+
* @param id - The invoice ID
|
|
124
|
+
* @param request - Bank transaction association request data
|
|
125
|
+
* @param options - Request options
|
|
126
|
+
* @param config - Axios request configuration
|
|
127
|
+
* @returns Promise that resolves with the updated invoice
|
|
128
|
+
*/
|
|
129
|
+
async associateBankTransaction(id, request, options, config) {
|
|
130
|
+
return await super.createEntity(`/v1/invoices/${id}/bank-transaction`, request, options, config);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Batch creates multiple invoices
|
|
134
|
+
* @param request - Array of invoice creation requests
|
|
135
|
+
* @param options - Request options
|
|
136
|
+
* @param config - Axios request configuration
|
|
137
|
+
* @returns Promise that resolves with an array of created invoices
|
|
138
|
+
*/
|
|
139
|
+
async batchCreate(request, options, config) {
|
|
140
|
+
return await super.createEntity("/v1/invoices/batch", request, options, config);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Batch updates multiple invoices
|
|
144
|
+
* @param request - Array of invoice update requests
|
|
145
|
+
* @param options - Request options
|
|
146
|
+
* @param config - Axios request configuration
|
|
147
|
+
* @returns Promise that resolves with an array of updated invoices
|
|
148
|
+
*/
|
|
149
|
+
async batchUpdate(request, options, config) {
|
|
150
|
+
return await super.updateEntity("/v1/invoices/batch", request, options, config);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Exports an invoice as JSON
|
|
154
|
+
* @param id - The invoice ID
|
|
155
|
+
* @param options - Request options
|
|
156
|
+
* @param config - Axios request configuration
|
|
157
|
+
* @returns Promise that resolves with the invoice data as a Blob
|
|
158
|
+
*/
|
|
159
|
+
async exportAsJson(id, options, config) {
|
|
160
|
+
config = {
|
|
161
|
+
...(config || {}),
|
|
162
|
+
responseType: "blob"
|
|
163
|
+
};
|
|
164
|
+
return await super.getEntityById(`/v1/invoices/${id}/export`, options, config);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Shares an invoice
|
|
168
|
+
* @param id - The invoice ID
|
|
169
|
+
* @param options - Request options
|
|
170
|
+
* @param config - Axios request configuration
|
|
171
|
+
* @returns Promise that resolves with the updated invoice
|
|
172
|
+
*/
|
|
173
|
+
async share(id, options, config) {
|
|
174
|
+
return await super.createEntity(`/v1/invoices/${id}/share`, {}, options, config);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Retrieves the public token for an invoice
|
|
178
|
+
* @param id - The invoice ID
|
|
179
|
+
* @param options - Request options
|
|
180
|
+
* @param config - Axios request configuration
|
|
181
|
+
* @returns Promise that resolves with the token
|
|
182
|
+
*/
|
|
183
|
+
async retrievePublicToken(id, options, config) {
|
|
184
|
+
return await super.getEntityById(`/v1/invoices/${id}/token`, options, config);
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Creates a review for an invoice
|
|
188
|
+
* @param id - The invoice ID
|
|
189
|
+
* @param request - Review creation request data
|
|
190
|
+
* @param options - Request options
|
|
191
|
+
* @param config - Axios request configuration
|
|
192
|
+
* @returns Promise that resolves with the updated invoice
|
|
193
|
+
*/
|
|
194
|
+
async createReview(id, request, options, config) {
|
|
195
|
+
return await super.createEntity(`/v1/invoices/${id}/review`, request, options, config);
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Adds a payment transaction to an invoice
|
|
199
|
+
* @param id - The invoice ID
|
|
200
|
+
* @param request - Transaction creation request data
|
|
201
|
+
* @param options - Request options
|
|
202
|
+
* @param config - Axios request configuration
|
|
203
|
+
* @returns Promise that resolves with the updated invoice
|
|
204
|
+
*/
|
|
205
|
+
async addTransaction(id, request, options, config) {
|
|
206
|
+
return await super.createEntity(`/v1/invoices/${id}/transactions`, request, options, config);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Updates a payment transaction in an invoice
|
|
210
|
+
* @param id - The invoice ID
|
|
211
|
+
* @param transactionId - The transaction ID
|
|
212
|
+
* @param request - Transaction update request data
|
|
213
|
+
* @param options - Request options
|
|
214
|
+
* @param config - Axios request configuration
|
|
215
|
+
* @returns Promise that resolves with the updated invoice
|
|
216
|
+
*/
|
|
217
|
+
async updateTransaction(id, transactionId, request, options, config) {
|
|
218
|
+
return await super.updateEntity(`/v1/invoices/${id}/transactions/${transactionId}`, request, options, config);
|
|
219
|
+
}
|
|
220
|
+
// /**
|
|
221
|
+
// * Creates a bulk job for processing multiple invoices
|
|
222
|
+
// * @param request - Bulk job creation request data
|
|
223
|
+
// * @param options - Request options
|
|
224
|
+
// * @param config - Axios request configuration
|
|
225
|
+
// * @returns Promise that resolves with the created batch
|
|
226
|
+
// */
|
|
227
|
+
// public async createBulkJob(
|
|
228
|
+
// request: InvoiceBulkJobCreateRequest,
|
|
229
|
+
// options?: SBRequestOptions,
|
|
230
|
+
// config?: AxiosRequestConfig,
|
|
231
|
+
// ): Promise<SBInvoiceBatch> {
|
|
232
|
+
// return await super.createEntity<
|
|
233
|
+
// InvoiceBulkJobCreateRequest,
|
|
234
|
+
// SBInvoiceBatch
|
|
235
|
+
// >("/v1/invoices/batch", request, options, config);
|
|
236
|
+
// }
|
|
237
|
+
/**
|
|
238
|
+
* Uploads an invoice to an existing bulk job
|
|
239
|
+
* @param id - The bulk job ID
|
|
240
|
+
* @param request - Invoice batch upsert request
|
|
241
|
+
* @param options - Request options
|
|
242
|
+
* @param config - Axios request configuration
|
|
243
|
+
* @returns Promise that resolves with the created invoice
|
|
244
|
+
*/
|
|
245
|
+
async uploadToBulkJob(id, request, options, config) {
|
|
246
|
+
return await super.createEntity(`/v1/invoices/batch/${id}`, request, options, config);
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Completes a bulk job
|
|
250
|
+
* @param id - The bulk job ID
|
|
251
|
+
* @param options - Request options
|
|
252
|
+
* @param config - Axios request configuration
|
|
253
|
+
* @returns Promise that resolves with the completed invoice
|
|
254
|
+
*/
|
|
255
|
+
async completeBulkJob(id, options, config) {
|
|
256
|
+
return await super.updateEntity(`/v1/invoices/batch/${id}/complete`, null, options, config);
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Performs a batch operation on invoices
|
|
260
|
+
* @param request - Batch upsert request data
|
|
261
|
+
* @param options - Request options
|
|
262
|
+
* @param config - Axios request configuration
|
|
263
|
+
* @returns Promise that resolves with the batch result
|
|
264
|
+
*/
|
|
265
|
+
async batch(request, options, config) {
|
|
266
|
+
return await super.createEntity("/v1/invoices/batch", request, options, config);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
exports.InvoiceService = InvoiceService;
|
|
271
|
+
//# sourceMappingURL=InvoiceService.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvoiceService.cjs","sources":["../../../../src/services/invoices/InvoiceService.ts"],"sourcesContent":["import {\n\tSBServiceOptions,\n\tdefaultAPIServiceOptions,\n} from \"@/client/SBServiceOptions\";\nimport { IListable } from \"@/interfaces/IListable\";\nimport { IUpdatable } from \"@/interfaces/IUpdatable\";\n\nimport { SBBarcode, SBBatch } from \"@/entities\";\nimport { SBDocument } from \"@/entities/documents\";\nimport {\n\tIBatchable,\n\tICreatable,\n\tIDeletable,\n\tIRetrievableById,\n} from \"@/interfaces\";\nimport { SBService } from \"@/services/SBService\";\nimport { ReceiptTransactionUpdateRequest } from \"@/services/receipts/payments\";\nimport { SBList } from \"@/entities/base\";\nimport { ReceiptPaymentCreateRequest } from \"@/services/receipts/payments/ReceiptTransactionCreateRequest\";\nimport { BankTransactionAssociateRequest } from \"@/services/receipts/BankTransactionAssociateRequest\";\nimport { ReceiptReviewCreateRequest } from \"@/services/receipts/reviews/ReceiptReviewCreateRequest\";\nimport { InvoiceUpdateRequest } from \"./InvoiceUpdateRequest\";\nimport { AxiosRequestConfig } from \"axios\";\nimport { SBRequestOptions } from \"@/client/SBRequestOption\";\nimport { SBInvoice } from \"@/entities/invoices\";\nimport { InvoiceCreateRequest } from \"./InvoiceCreateRequest\";\nimport { InvoiceBatchUpsertRequest } from \"./InvoiceBatchUpsertRequest\";\nimport { InvoiceListRequest } from \"./InvoiceListRequest\";\n\n/**\n * Service for managing invoices in the Smartbills system\n * Provides functionality for CRUD operations on invoices\n **/\nexport class InvoiceService\n\textends SBService\n\timplements\n\t\tIListable<InvoiceListRequest, SBInvoice>,\n\t\tIRetrievableById<SBInvoice>,\n\t\tIDeletable<SBInvoice>,\n\t\tICreatable<InvoiceCreateRequest, SBInvoice>,\n\t\tIUpdatable<InvoiceUpdateRequest, SBInvoice>\n{\n\t/**\n\t * Creates a new instance of the invoice service\n\t * @param options - Service configuration options\n\t */\n\tpublic constructor(options: SBServiceOptions = defaultAPIServiceOptions) {\n\t\tsuper(options);\n\t}\n\n\t/**\n\t * Retrieves an invoice by its ID\n\t * @param id - The invoice ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the invoice data\n\t */\n\tpublic async getByIdAsync(\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBInvoice> {\n\t\treturn await super.getEntityById(`/v1/invoices/${id}`, options, config);\n\t}\n\n\t/**\n\t * Lists invoices with pagination\n\t * @param request - List request parameters\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with paginated invoice data\n\t */\n\tpublic async listAsync(\n\t\trequest: InvoiceListRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBList<SBInvoice>> {\n\t\treturn await super.listEntities(\n\t\t\t\"/v1/invoices\",\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Creates a new invoice\n\t * @param request - Invoice creation request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the created invoice\n\t */\n\tpublic async createAsync(\n\t\trequest: InvoiceCreateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBInvoice> {\n\t\treturn await super.createEntity(\n\t\t\t\"/v1/invoices\",\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Updates an existing invoice\n\t * @param id - The invoice ID\n\t * @param invoice - Invoice update request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the updated invoice\n\t */\n\tpublic async updateAsync(\n\t\tid: number,\n\t\tinvoice: InvoiceUpdateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBInvoice> {\n\t\treturn await super.updateEntity(\n\t\t\t`/v1/invoices/${id}`,\n\t\t\tinvoice,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Deletes an invoice\n\t * @param id - The invoice ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the deleted invoice\n\t */\n\tpublic async deleteAsync(\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBInvoice> {\n\t\treturn await super.deleteEntity(`/v1/invoices/${id}`, options, config);\n\t}\n\n\t/**\n\t * Generates a QR code for a public invoice\n\t * @param token - Public invoice token\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the QR code string\n\t */\n\tpublic async generateQRCode(\n\t\ttoken: string,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<string> {\n\t\tconfig = config || {};\n\t\tif (!config.params) config.params = {};\n\t\tconfig.params.token = token;\n\t\treturn await super.getEntityById<string>(\n\t\t\t\"/v1/invoices/public\",\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Creates a barcode for an invoice\n\t * @param id - The invoice ID\n\t * @param request - Barcode creation request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the updated invoice\n\t */\n\tpublic async createBarcode(\n\t\tid: number,\n\t\trequest: SBBarcode,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBInvoice> {\n\t\treturn await super.createEntity<SBBarcode, SBInvoice>(\n\t\t\t`/v1/invoices/${id}/barcode`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Deletes a barcode from an invoice\n\t * @param id - The invoice ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the updated invoice\n\t */\n\tpublic async deleteBarcode(\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBInvoice> {\n\t\treturn await super.deleteEntity<SBInvoice>(\n\t\t\t`/v1/invoices/${id}/barcode`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Uploads a document attachment to an invoice\n\t * @param id - The invoice ID\n\t * @param file - File to upload\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the created document\n\t */\n\tpublic async uploadDocument(\n\t\tid: number,\n\t\tfile: File,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBDocument> {\n\t\tconst formData = new FormData();\n\t\tformData.append(\"file\", file);\n\t\treturn await super.createEntity<FormData, SBDocument>(\n\t\t\t`/v1/invoices/${id}/attachments`,\n\t\t\tformData,\n\t\t\toptions,\n\t\t\t{\n\t\t\t\t...(config || {}),\n\t\t\t\theaders: { \"Content-Type\": \"multipart/form-data\" },\n\t\t\t},\n\t\t);\n\t}\n\n\t/**\n\t * Associates a bank transaction with an invoice\n\t * @param id - The invoice ID\n\t * @param request - Bank transaction association request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the updated invoice\n\t */\n\tpublic async associateBankTransaction(\n\t\tid: number,\n\t\trequest: BankTransactionAssociateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBInvoice> {\n\t\treturn await super.createEntity<\n\t\t\tBankTransactionAssociateRequest,\n\t\t\tSBInvoice\n\t\t>(`/v1/invoices/${id}/bank-transaction`, request, options, config);\n\t}\n\n\t/**\n\t * Batch creates multiple invoices\n\t * @param request - Array of invoice creation requests\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with an array of created invoices\n\t */\n\tpublic async batchCreate(\n\t\trequest: InvoiceCreateRequest[],\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBInvoice[]> {\n\t\treturn await super.createEntity<InvoiceCreateRequest[], SBInvoice[]>(\n\t\t\t\"/v1/invoices/batch\",\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Batch updates multiple invoices\n\t * @param request - Array of invoice update requests\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with an array of updated invoices\n\t */\n\tpublic async batchUpdate(\n\t\trequest: InvoiceBatchUpsertRequest[],\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBInvoice[]> {\n\t\treturn await super.updateEntity<\n\t\t\tInvoiceBatchUpsertRequest[],\n\t\t\tSBInvoice[]\n\t\t>(\"/v1/invoices/batch\", request, options, config);\n\t}\n\n\t/**\n\t * Exports an invoice as JSON\n\t * @param id - The invoice ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the invoice data as a Blob\n\t */\n\tpublic async exportAsJson(\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<Blob> {\n\t\tconfig = {\n\t\t\t...(config || {}),\n\t\t\tresponseType: \"blob\",\n\t\t};\n\t\treturn await super.getEntityById<Blob>(\n\t\t\t`/v1/invoices/${id}/export`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Shares an invoice\n\t * @param id - The invoice ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the updated invoice\n\t */\n\tpublic async share(\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBInvoice> {\n\t\treturn await super.createEntity<any, SBInvoice>(\n\t\t\t`/v1/invoices/${id}/share`,\n\t\t\t{},\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Retrieves the public token for an invoice\n\t * @param id - The invoice ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the token\n\t */\n\tpublic async retrievePublicToken(\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<{ token: string }> {\n\t\treturn await super.getEntityById<{ token: string }>(\n\t\t\t`/v1/invoices/${id}/token`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Creates a review for an invoice\n\t * @param id - The invoice ID\n\t * @param request - Review creation request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the updated invoice\n\t */\n\tpublic async createReview(\n\t\tid: number,\n\t\trequest: ReceiptReviewCreateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBInvoice> {\n\t\treturn await super.createEntity<ReceiptReviewCreateRequest, SBInvoice>(\n\t\t\t`/v1/invoices/${id}/review`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Adds a payment transaction to an invoice\n\t * @param id - The invoice ID\n\t * @param request - Transaction creation request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the updated invoice\n\t */\n\tpublic async addTransaction(\n\t\tid: number,\n\t\trequest: ReceiptPaymentCreateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBInvoice> {\n\t\treturn await super.createEntity<ReceiptPaymentCreateRequest, SBInvoice>(\n\t\t\t`/v1/invoices/${id}/transactions`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Updates a payment transaction in an invoice\n\t * @param id - The invoice ID\n\t * @param transactionId - The transaction ID\n\t * @param request - Transaction update request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the updated invoice\n\t */\n\tpublic async updateTransaction(\n\t\tid: number,\n\t\ttransactionId: number,\n\t\trequest: ReceiptTransactionUpdateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBInvoice> {\n\t\treturn await super.updateEntity<\n\t\t\tReceiptTransactionUpdateRequest,\n\t\t\tSBInvoice\n\t\t>(\n\t\t\t`/v1/invoices/${id}/transactions/${transactionId}`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t// /**\n\t// * Creates a bulk job for processing multiple invoices\n\t// * @param request - Bulk job creation request data\n\t// * @param options - Request options\n\t// * @param config - Axios request configuration\n\t// * @returns Promise that resolves with the created batch\n\t// */\n\t// public async createBulkJob(\n\t// \trequest: InvoiceBulkJobCreateRequest,\n\t// \toptions?: SBRequestOptions,\n\t// \tconfig?: AxiosRequestConfig,\n\t// ): Promise<SBInvoiceBatch> {\n\t// \treturn await super.createEntity<\n\t// \t\tInvoiceBulkJobCreateRequest,\n\t// \t\tSBInvoiceBatch\n\t// \t>(\"/v1/invoices/batch\", request, options, config);\n\t// }\n\n\t/**\n\t * Uploads an invoice to an existing bulk job\n\t * @param id - The bulk job ID\n\t * @param request - Invoice batch upsert request\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the created invoice\n\t */\n\tpublic async uploadToBulkJob(\n\t\tid: number,\n\t\trequest: InvoiceBatchUpsertRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBInvoice> {\n\t\treturn await super.createEntity<InvoiceBatchUpsertRequest, SBInvoice>(\n\t\t\t`/v1/invoices/batch/${id}`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Completes a bulk job\n\t * @param id - The bulk job ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the completed invoice\n\t */\n\tpublic async completeBulkJob(\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBInvoice> {\n\t\treturn await super.updateEntity<null, SBInvoice>(\n\t\t\t`/v1/invoices/batch/${id}/complete`,\n\t\t\tnull,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Performs a batch operation on invoices\n\t * @param request - Batch upsert request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the batch result\n\t */\n\tpublic async batch(\n\t\trequest: InvoiceBatchUpsertRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBBatch<SBInvoice>> {\n\t\treturn await super.createEntity<\n\t\t\tInvoiceBatchUpsertRequest,\n\t\t\tSBBatch<SBInvoice>\n\t\t>(\"/v1/invoices/batch\", request, options, config);\n\t}\n}\n"],"names":["InvoiceService","SBService","constructor","options","defaultAPIServiceOptions","getByIdAsync","id","config","getEntityById","listAsync","request","listEntities","createAsync","createEntity","updateAsync","invoice","updateEntity","deleteAsync","deleteEntity","generateQRCode","token","params","createBarcode","deleteBarcode","uploadDocument","file","formData","FormData","append","headers","associateBankTransaction","batchCreate","batchUpdate","exportAsJson","responseType","share","retrievePublicToken","createReview","addTransaction","updateTransaction","transactionId","uploadToBulkJob","completeBulkJob","batch"],"mappings":"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"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var SBServiceOptions = require('../../client/SBServiceOptions.cjs');
|
|
4
|
+
var SBService = require('../SBService.cjs');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Service for managing loyalty programs in the Smartbills system
|
|
8
|
+
* Provides functionality for CRUD operations on loyalty programs, accounts, rewards and points
|
|
9
|
+
* @implements INestedRetrievableById<SBLoyaltyProgramResponse> - Allows retrieving loyalty programs by ID
|
|
10
|
+
* @implements INestedListable<LoyaltyProgramListRequest, SBLoyaltyProgramResponse> - Allows listing loyalty programs
|
|
11
|
+
* @implements INestedCreatable<LoyaltyProgramCreateRequest, SBLoyaltyProgramResponse> - Allows creating loyalty programs
|
|
12
|
+
* @implements INestedUpdatable<LoyaltyProgramUpdateRequest, SBLoyaltyProgramResponse> - Allows updating loyalty programs
|
|
13
|
+
* @implements INestedDeletable<SBLoyaltyProgramResponse> - Allows deleting loyalty programs
|
|
14
|
+
*/
|
|
15
|
+
class LoyaltyProgramService extends SBService.SBService {
|
|
16
|
+
/**
|
|
17
|
+
* Creates a new instance of the loyalty program service
|
|
18
|
+
* @param options - Service configuration options
|
|
19
|
+
*/
|
|
20
|
+
constructor(options = SBServiceOptions.defaultAPIServiceOptions) {
|
|
21
|
+
super(options);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Create a new loyalty program
|
|
25
|
+
* @param businessId - The business ID
|
|
26
|
+
* @param request - The loyalty program creation request
|
|
27
|
+
* @param options - Request options
|
|
28
|
+
* @param config - Axios request configuration
|
|
29
|
+
* @returns Promise that resolves with the created loyalty program
|
|
30
|
+
*/
|
|
31
|
+
async createAsync(businessId, request, options, config) {
|
|
32
|
+
return await this.createEntity(`/v1/business/${businessId}/loyalty/programs`, request, options, config);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get a loyalty program by ID
|
|
36
|
+
* @param businessId - The business ID
|
|
37
|
+
* @param id - The loyalty program ID
|
|
38
|
+
* @param options - Request options
|
|
39
|
+
* @param config - Axios request configuration
|
|
40
|
+
* @returns Promise that resolves with the loyalty program
|
|
41
|
+
*/
|
|
42
|
+
async getByIdAsync(businessId, id, options, config) {
|
|
43
|
+
return await this.getEntityById(`/v1/business/${businessId}/loyalty/programs/${id}`, options, config);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Update a loyalty program
|
|
47
|
+
* @param businessId - The business ID
|
|
48
|
+
* @param id - The loyalty program ID
|
|
49
|
+
* @param request - The update request
|
|
50
|
+
* @param options - Request options
|
|
51
|
+
* @param config - Axios request configuration
|
|
52
|
+
* @returns Promise that resolves with the updated loyalty program
|
|
53
|
+
*/
|
|
54
|
+
async updateAsync(businessId, id, request, options, config) {
|
|
55
|
+
return await this.updateEntity(`/v1/business/${businessId}/loyalty/programs/${id}`, request, options, config);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* List loyalty programs with pagination
|
|
59
|
+
* @param businessId - The business ID
|
|
60
|
+
* @param request - The pagination request
|
|
61
|
+
* @param options - Request options
|
|
62
|
+
* @param config - Axios request configuration
|
|
63
|
+
* @returns Promise that resolves with list of loyalty programs
|
|
64
|
+
*/
|
|
65
|
+
async listAsync(businessId, request, options, config) {
|
|
66
|
+
return await this.listEntities(`/v1/business/${businessId}/loyalty/programs`, request, options, config);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Delete a loyalty program
|
|
70
|
+
* @param businessId - The business ID
|
|
71
|
+
* @param id - The loyalty program ID
|
|
72
|
+
* @param options - Request options
|
|
73
|
+
* @param config - Axios request configuration
|
|
74
|
+
* @returns Promise that resolves with the deleted loyalty program
|
|
75
|
+
*/
|
|
76
|
+
async deleteAsync(businessId, id, options, config) {
|
|
77
|
+
return await this.deleteEntity(`/v1/business/${businessId}/loyalty/programs/${id}`, options, config);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Create a loyalty program account
|
|
81
|
+
* @param businessId - The business ID
|
|
82
|
+
* @param programId - The loyalty program ID
|
|
83
|
+
* @param request - The account creation request
|
|
84
|
+
* @param options - Request options
|
|
85
|
+
* @param config - Axios request configuration
|
|
86
|
+
* @returns Promise that resolves with the created loyalty account
|
|
87
|
+
*/
|
|
88
|
+
async createAccount(businessId, programId, request, options, config) {
|
|
89
|
+
return await this.createEntity(`/v1/business/${businessId}/loyalty/programs/${programId}/accounts`, request, options, config);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Get a loyalty program account by ID
|
|
93
|
+
* @param businessId - The business ID
|
|
94
|
+
* @param programId - The loyalty program ID
|
|
95
|
+
* @param accountId - The account ID
|
|
96
|
+
* @param options - Request options
|
|
97
|
+
* @param config - Axios request configuration
|
|
98
|
+
* @returns Promise that resolves with the loyalty account
|
|
99
|
+
*/
|
|
100
|
+
async getAccount(businessId, programId, accountId, options, config) {
|
|
101
|
+
return await this.getEntityById(`/v1/business/${businessId}/loyalty/programs/${programId}/accounts/${accountId}`, options, config);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Delete a loyalty program account
|
|
105
|
+
* @param businessId - The business ID
|
|
106
|
+
* @param programId - The loyalty program ID
|
|
107
|
+
* @param accountId - The account ID
|
|
108
|
+
* @param options - Request options
|
|
109
|
+
* @param config - Axios request configuration
|
|
110
|
+
* @returns Promise that resolves with the deleted loyalty account
|
|
111
|
+
*/
|
|
112
|
+
async deleteAccount(businessId, programId, accountId, options, config) {
|
|
113
|
+
return await this.deleteEntity(`/v1/business/${businessId}/loyalty/programs/${programId}/accounts/${accountId}`, options, config);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* List loyalty program accounts
|
|
117
|
+
* @param businessId - The business ID
|
|
118
|
+
* @param programId - The loyalty program ID
|
|
119
|
+
* @param request - The pagination request
|
|
120
|
+
* @param options - Request options
|
|
121
|
+
* @param config - Axios request configuration
|
|
122
|
+
* @returns Promise that resolves with list of loyalty accounts
|
|
123
|
+
*/
|
|
124
|
+
async listAccounts(businessId, programId, request, options, config) {
|
|
125
|
+
return await this.listEntities(`/v1/business/${businessId}/loyalty/programs/${programId}/accounts`, request, options, config);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Accumulate points for a loyalty program
|
|
129
|
+
* @param businessId - The business ID
|
|
130
|
+
* @param request - The points accumulation request
|
|
131
|
+
* @param options - Request options
|
|
132
|
+
* @param config - Axios request configuration
|
|
133
|
+
* @returns Promise that resolves with the points response
|
|
134
|
+
*/
|
|
135
|
+
async accumulatePoints(businessId, request, options, config) {
|
|
136
|
+
return await this.createEntity(`/v1/business/${businessId}/loyalty/points/accumulate`, request, options, config);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Adjust points for a loyalty program
|
|
140
|
+
* @param businessId - The business ID
|
|
141
|
+
* @param request - The points adjustment request
|
|
142
|
+
* @param options - Request options
|
|
143
|
+
* @param config - Axios request configuration
|
|
144
|
+
* @returns Promise that resolves with the points response
|
|
145
|
+
*/
|
|
146
|
+
async adjustPoints(businessId, request, options, config) {
|
|
147
|
+
return await this.createEntity(`/v1/business/${businessId}/loyalty/points/adjust`, request, options, config);
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Issue points to a loyalty program
|
|
151
|
+
* @param businessId - The business ID
|
|
152
|
+
* @param request - The points issue request
|
|
153
|
+
* @param options - Request options
|
|
154
|
+
* @param config - Axios request configuration
|
|
155
|
+
* @returns Promise that resolves with the points response
|
|
156
|
+
*/
|
|
157
|
+
async issuePoints(businessId, request, options, config) {
|
|
158
|
+
return await this.createEntity(`/v1/business/${businessId}/loyalty/points/issue`, request, options, config);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Create a loyalty reward
|
|
162
|
+
* @param businessId - The business ID
|
|
163
|
+
* @param request - The reward creation request
|
|
164
|
+
* @param options - Request options
|
|
165
|
+
* @param config - Axios request configuration
|
|
166
|
+
* @returns Promise that resolves with the created reward
|
|
167
|
+
*/
|
|
168
|
+
async createReward(businessId, request, options, config) {
|
|
169
|
+
return await this.createEntity(`/v1/business/${businessId}/loyalty/rewards`, request, options, config);
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Get reward by ID
|
|
173
|
+
* @param businessId - The business ID
|
|
174
|
+
* @param id - The reward ID
|
|
175
|
+
* @param options - Request options
|
|
176
|
+
* @param config - Axios request configuration
|
|
177
|
+
* @returns Promise that resolves with the reward details
|
|
178
|
+
*/
|
|
179
|
+
async getReward(businessId, id, options, config) {
|
|
180
|
+
return await this.getEntityById(`/v1/business/${businessId}/loyalty/rewards/${id}`, options, config);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Redeem a loyalty reward
|
|
184
|
+
* @param businessId - The business ID
|
|
185
|
+
* @param id - The reward ID
|
|
186
|
+
* @param request - The reward redemption request
|
|
187
|
+
* @param options - Request options
|
|
188
|
+
* @param config - Axios request configuration
|
|
189
|
+
* @returns Promise that resolves with success message
|
|
190
|
+
*/
|
|
191
|
+
async redeemReward(businessId, id, request, options, config) {
|
|
192
|
+
return await this.createEntity(`/v1/business/${businessId}/loyalty/rewards/${id}/redeem`, request, options, config);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
exports.LoyaltyProgramService = LoyaltyProgramService;
|
|
197
|
+
//# sourceMappingURL=LoyaltyProgramService.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoyaltyProgramService.cjs","sources":["../../../../src/services/loyalty/LoyaltyProgramService.ts"],"sourcesContent":["import { SBRequestOptions } from \"@/client/SBRequestOption\";\nimport {\n\tSBServiceOptions,\n\tdefaultAPIServiceOptions,\n} from \"@/client/SBServiceOptions\";\nimport { SBService } from \"@/services/SBService\";\nimport {\n\tLoyaltyProgramCreateRequest,\n\tLoyaltyProgramUpdateRequest,\n\tLoyaltyProgramListRequest,\n\tSBLoyaltyProgramResponse,\n\tLoyaltyAccountCreateRequest,\n\tSBLoyaltyProgramAccountResponse,\n\tLoyaltyProgramPointsAccumulateRequest,\n\tLoyaltyProgramPointsAdjustRequest,\n\tSBLoyaltyProgramPointResponse,\n\tLoyaltyRewardCreateRequest,\n\tSBLoyaltyRewardResponse,\n\tLoyaltyRewardRedeemRequest,\n} from \"@/entities/loyalty\";\nimport {\n\tINestedCreatable,\n\tINestedDeletable,\n\tINestedListable,\n\tINestedRetrievableById,\n\tINestedUpdatable,\n} from \"@/interfaces\";\nimport { AxiosRequestConfig } from \"axios\";\nimport { SBList } from \"../../entities/base\";\n\n/**\n * Service for managing loyalty programs in the Smartbills system\n * Provides functionality for CRUD operations on loyalty programs, accounts, rewards and points\n * @implements INestedRetrievableById<SBLoyaltyProgramResponse> - Allows retrieving loyalty programs by ID\n * @implements INestedListable<LoyaltyProgramListRequest, SBLoyaltyProgramResponse> - Allows listing loyalty programs\n * @implements INestedCreatable<LoyaltyProgramCreateRequest, SBLoyaltyProgramResponse> - Allows creating loyalty programs\n * @implements INestedUpdatable<LoyaltyProgramUpdateRequest, SBLoyaltyProgramResponse> - Allows updating loyalty programs\n * @implements INestedDeletable<SBLoyaltyProgramResponse> - Allows deleting loyalty programs\n */\nexport class LoyaltyProgramService\n\textends SBService\n\timplements\n\t\tINestedRetrievableById<SBLoyaltyProgramResponse>,\n\t\tINestedListable<LoyaltyProgramListRequest, SBLoyaltyProgramResponse>,\n\t\tINestedCreatable<LoyaltyProgramCreateRequest, SBLoyaltyProgramResponse>,\n\t\tINestedUpdatable<LoyaltyProgramUpdateRequest, SBLoyaltyProgramResponse>,\n\t\tINestedDeletable<SBLoyaltyProgramResponse>\n{\n\t/**\n\t * Creates a new instance of the loyalty program service\n\t * @param options - Service configuration options\n\t */\n\tpublic constructor(options: SBServiceOptions = defaultAPIServiceOptions) {\n\t\tsuper(options);\n\t}\n\n\t/**\n\t * Create a new loyalty program\n\t * @param businessId - The business ID\n\t * @param request - The loyalty program creation request\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the created loyalty program\n\t */\n\tpublic async createAsync(\n\t\tbusinessId: number,\n\t\trequest: LoyaltyProgramCreateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<LoyaltyProgramCreateRequest>,\n\t): Promise<SBLoyaltyProgramResponse> {\n\t\treturn await this.createEntity(\n\t\t\t`/v1/business/${businessId}/loyalty/programs`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Get a loyalty program by ID\n\t * @param businessId - The business ID\n\t * @param id - The loyalty program ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the loyalty program\n\t */\n\tpublic async getByIdAsync(\n\t\tbusinessId: number,\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBLoyaltyProgramResponse> {\n\t\treturn await this.getEntityById(\n\t\t\t`/v1/business/${businessId}/loyalty/programs/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Update a loyalty program\n\t * @param businessId - The business ID\n\t * @param id - The loyalty program ID\n\t * @param request - The update request\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the updated loyalty program\n\t */\n\tpublic async updateAsync(\n\t\tbusinessId: number,\n\t\tid: number,\n\t\trequest: LoyaltyProgramUpdateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<LoyaltyProgramUpdateRequest>,\n\t): Promise<SBLoyaltyProgramResponse> {\n\t\treturn await this.updateEntity(\n\t\t\t`/v1/business/${businessId}/loyalty/programs/${id}`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * List loyalty programs with pagination\n\t * @param businessId - The business ID\n\t * @param request - The pagination request\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with list of loyalty programs\n\t */\n\tpublic async listAsync(\n\t\tbusinessId: number,\n\t\trequest: LoyaltyProgramListRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<LoyaltyProgramListRequest>,\n\t): Promise<SBList<SBLoyaltyProgramResponse>> {\n\t\treturn await this.listEntities(\n\t\t\t`/v1/business/${businessId}/loyalty/programs`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Delete a loyalty program\n\t * @param businessId - The business ID\n\t * @param id - The loyalty program ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the deleted loyalty program\n\t */\n\tpublic async deleteAsync(\n\t\tbusinessId: number,\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBLoyaltyProgramResponse> {\n\t\treturn await this.deleteEntity(\n\t\t\t`/v1/business/${businessId}/loyalty/programs/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Create a loyalty program account\n\t * @param businessId - The business ID\n\t * @param programId - The loyalty program ID\n\t * @param request - The account creation request\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the created loyalty account\n\t */\n\tpublic async createAccount(\n\t\tbusinessId: number,\n\t\tprogramId: number,\n\t\trequest: LoyaltyAccountCreateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<LoyaltyAccountCreateRequest>,\n\t): Promise<SBLoyaltyProgramAccountResponse> {\n\t\treturn await this.createEntity(\n\t\t\t`/v1/business/${businessId}/loyalty/programs/${programId}/accounts`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Get a loyalty program account by ID\n\t * @param businessId - The business ID\n\t * @param programId - The loyalty program ID\n\t * @param accountId - The account ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the loyalty account\n\t */\n\tpublic async getAccount(\n\t\tbusinessId: number,\n\t\tprogramId: number,\n\t\taccountId: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBLoyaltyProgramAccountResponse> {\n\t\treturn await this.getEntityById(\n\t\t\t`/v1/business/${businessId}/loyalty/programs/${programId}/accounts/${accountId}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Delete a loyalty program account\n\t * @param businessId - The business ID\n\t * @param programId - The loyalty program ID\n\t * @param accountId - The account ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the deleted loyalty account\n\t */\n\tpublic async deleteAccount(\n\t\tbusinessId: number,\n\t\tprogramId: number,\n\t\taccountId: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBLoyaltyProgramAccountResponse> {\n\t\treturn await this.deleteEntity(\n\t\t\t`/v1/business/${businessId}/loyalty/programs/${programId}/accounts/${accountId}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * List loyalty program accounts\n\t * @param businessId - The business ID\n\t * @param programId - The loyalty program ID\n\t * @param request - The pagination request\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with list of loyalty accounts\n\t */\n\tpublic async listAccounts(\n\t\tbusinessId: number,\n\t\tprogramId: number,\n\t\trequest: LoyaltyProgramListRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<LoyaltyProgramListRequest>,\n\t): Promise<SBList<SBLoyaltyProgramAccountResponse>> {\n\t\treturn await this.listEntities(\n\t\t\t`/v1/business/${businessId}/loyalty/programs/${programId}/accounts`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Accumulate points for a loyalty program\n\t * @param businessId - The business ID\n\t * @param request - The points accumulation request\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the points response\n\t */\n\tpublic async accumulatePoints(\n\t\tbusinessId: number,\n\t\trequest: LoyaltyProgramPointsAccumulateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<LoyaltyProgramPointsAccumulateRequest>,\n\t): Promise<SBLoyaltyProgramPointResponse> {\n\t\treturn await this.createEntity(\n\t\t\t`/v1/business/${businessId}/loyalty/points/accumulate`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Adjust points for a loyalty program\n\t * @param businessId - The business ID\n\t * @param request - The points adjustment request\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the points response\n\t */\n\tpublic async adjustPoints(\n\t\tbusinessId: number,\n\t\trequest: LoyaltyProgramPointsAdjustRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<LoyaltyProgramPointsAdjustRequest>,\n\t): Promise<SBLoyaltyProgramPointResponse> {\n\t\treturn await this.createEntity(\n\t\t\t`/v1/business/${businessId}/loyalty/points/adjust`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Issue points to a loyalty program\n\t * @param businessId - The business ID\n\t * @param request - The points issue request\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the points response\n\t */\n\tpublic async issuePoints(\n\t\tbusinessId: number,\n\t\trequest: LoyaltyProgramPointsAccumulateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<LoyaltyProgramPointsAccumulateRequest>,\n\t): Promise<SBLoyaltyProgramPointResponse> {\n\t\treturn await this.createEntity(\n\t\t\t`/v1/business/${businessId}/loyalty/points/issue`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Create a loyalty reward\n\t * @param businessId - The business ID\n\t * @param request - The reward creation request\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the created reward\n\t */\n\tpublic async createReward(\n\t\tbusinessId: number,\n\t\trequest: LoyaltyRewardCreateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<LoyaltyRewardCreateRequest>,\n\t): Promise<SBLoyaltyRewardResponse> {\n\t\treturn await this.createEntity(\n\t\t\t`/v1/business/${businessId}/loyalty/rewards`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Get reward by ID\n\t * @param businessId - The business ID\n\t * @param id - The reward ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the reward details\n\t */\n\tpublic async getReward(\n\t\tbusinessId: number,\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBLoyaltyRewardResponse> {\n\t\treturn await this.getEntityById(\n\t\t\t`/v1/business/${businessId}/loyalty/rewards/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Redeem a loyalty reward\n\t * @param businessId - The business ID\n\t * @param id - The reward ID\n\t * @param request - The reward redemption request\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with success message\n\t */\n\tpublic async redeemReward(\n\t\tbusinessId: number,\n\t\tid: number,\n\t\trequest: LoyaltyRewardRedeemRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<LoyaltyRewardRedeemRequest>,\n\t): Promise<string> {\n\t\treturn await this.createEntity(\n\t\t\t`/v1/business/${businessId}/loyalty/rewards/${id}/redeem`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n}\n"],"names":["LoyaltyProgramService","SBService","constructor","options","defaultAPIServiceOptions","createAsync","businessId","request","config","createEntity","getByIdAsync","id","getEntityById","updateAsync","updateEntity","listAsync","listEntities","deleteAsync","deleteEntity","createAccount","programId","getAccount","accountId","deleteAccount","listAccounts","accumulatePoints","adjustPoints","issuePoints","createReward","getReward","redeemReward"],"mappings":"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"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var SBServiceOptions = require('../../client/SBServiceOptions.cjs');
|
|
4
|
+
var SBService = require('../SBService.cjs');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Service for managing notifications in the Smartbills system
|
|
8
|
+
* Provides functionality for retrieving, creating, and managing notifications
|
|
9
|
+
* @implements IRetrievableById<SBNotification> - Allows retrieving notifications by ID
|
|
10
|
+
* @implements ICreatable<NotificationCreateRequest, SBNotification> - Allows creating new notifications
|
|
11
|
+
*/
|
|
12
|
+
class NotificationService extends SBService.SBService {
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new instance of the notification service
|
|
15
|
+
* @param options - Service configuration options
|
|
16
|
+
*/
|
|
17
|
+
constructor(options = SBServiceOptions.defaultAPIServiceOptions) {
|
|
18
|
+
super(options);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves a notification by its ID
|
|
22
|
+
* @param id - The notification ID
|
|
23
|
+
* @param options - Request options
|
|
24
|
+
* @param config - Axios request configuration
|
|
25
|
+
* @returns Promise that resolves with the notification data
|
|
26
|
+
*/
|
|
27
|
+
async getByIdAsync(id, options, config) {
|
|
28
|
+
return await this.getEntityById(`/v1/notifications/${id}`, options, config);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Lists notifications with pagination
|
|
32
|
+
* @param request - Pagination parameters
|
|
33
|
+
* @param options - Request options
|
|
34
|
+
* @param config - Axios request configuration
|
|
35
|
+
* @returns Promise that resolves with paginated notification data
|
|
36
|
+
*/
|
|
37
|
+
async listAsync(request, options, config) {
|
|
38
|
+
return await this.listEntities("/v1/notifications", request || {
|
|
39
|
+
page: 1,
|
|
40
|
+
pageSize: 25
|
|
41
|
+
}, options, config);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Creates a new notification
|
|
45
|
+
* @param request - Notification creation request data
|
|
46
|
+
* @param options - Request options
|
|
47
|
+
* @param config - Axios request configuration
|
|
48
|
+
* @returns Promise that resolves with the created notification
|
|
49
|
+
*/
|
|
50
|
+
async createAsync(request, options, config) {
|
|
51
|
+
return await this.createEntity("/v1/notifications", request, options, config);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Marks a notification as read
|
|
55
|
+
* @param id - The notification ID
|
|
56
|
+
* @param options - Request options
|
|
57
|
+
* @param config - Axios request configuration
|
|
58
|
+
* @returns Promise that resolves with the updated notification
|
|
59
|
+
*/
|
|
60
|
+
async markAsRead(id, options, config) {
|
|
61
|
+
return await this.updateEntity(`/v1/notifications/${id}/read`, null, options, config);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Marks all notifications as read
|
|
65
|
+
* @param options - Request options
|
|
66
|
+
* @param config - Axios request configuration
|
|
67
|
+
* @returns Promise that resolves when all notifications are marked as read
|
|
68
|
+
*/
|
|
69
|
+
async markAllAsRead(options, config) {
|
|
70
|
+
return await this.updateEntity("/v1/notifications/read", null, options, config);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
exports.NotificationService = NotificationService;
|
|
75
|
+
//# sourceMappingURL=NotificationService.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationService.cjs","sources":["../../../../src/services/notifications/NotificationService.ts"],"sourcesContent":["import { SBRequestOptions } from \"@/client/SBRequestOption\";\nimport {\n\tSBServiceOptions,\n\tdefaultAPIServiceOptions,\n} from \"@/client/SBServiceOptions\";\nimport { AxiosRequestConfig } from \"axios\";\nimport { SBService } from \"@/services/SBService\";\nimport { SBNotification } from \"@/entities/notifications/SBNotification\";\nimport { ICreatable, IRetrievableById } from \"@/interfaces\";\nimport { SBList } from \"@/entities/base\";\nimport { NotificationCreateRequest } from \"./NotificationCreateRequest\";\nimport { ListRequest } from \"@/services/ListRequest\";\n\n/**\n * Service for managing notifications in the Smartbills system\n * Provides functionality for retrieving, creating, and managing notifications\n * @implements IRetrievableById<SBNotification> - Allows retrieving notifications by ID\n * @implements ICreatable<NotificationCreateRequest, SBNotification> - Allows creating new notifications\n */\nexport class NotificationService\n\textends SBService\n\timplements\n\t\tIRetrievableById<SBNotification>,\n\t\tICreatable<NotificationCreateRequest, SBNotification>\n{\n\t/**\n\t * Creates a new instance of the notification service\n\t * @param options - Service configuration options\n\t */\n\tconstructor(options: SBServiceOptions = defaultAPIServiceOptions) {\n\t\tsuper(options);\n\t}\n\n\t/**\n\t * Retrieves a notification by its ID\n\t * @param id - The notification ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the notification data\n\t */\n\tasync getByIdAsync(\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBNotification> {\n\t\treturn await this.getEntityById(\n\t\t\t`/v1/notifications/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Lists notifications with pagination\n\t * @param request - Pagination parameters\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with paginated notification data\n\t */\n\tasync listAsync(\n\t\trequest?: ListRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBList<SBNotification>> {\n\t\treturn await this.listEntities(\n\t\t\t\"/v1/notifications\",\n\t\t\trequest || { page: 1, pageSize: 25 },\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Creates a new notification\n\t * @param request - Notification creation request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the created notification\n\t */\n\tasync createAsync(\n\t\trequest: NotificationCreateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBNotification> {\n\t\treturn await this.createEntity(\n\t\t\t\"/v1/notifications\",\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Marks a notification as read\n\t * @param id - The notification ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the updated notification\n\t */\n\tasync markAsRead(\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBNotification> {\n\t\treturn await this.updateEntity(\n\t\t\t`/v1/notifications/${id}/read`,\n\t\t\tnull,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Marks all notifications as read\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves when all notifications are marked as read\n\t */\n\tasync markAllAsRead(\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<void> {\n\t\treturn await this.updateEntity(\n\t\t\t\"/v1/notifications/read\",\n\t\t\tnull,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n}\n"],"names":["NotificationService","SBService","constructor","options","defaultAPIServiceOptions","getByIdAsync","id","config","getEntityById","listAsync","request","listEntities","page","pageSize","createAsync","createEntity","markAsRead","updateEntity","markAllAsRead"],"mappings":";;;;;AAaA;;;;;AAKG;AACG,MAAOA,mBACZ,SAAQC,mBAAS,CAAA;AAKjB;;;AAGG;AACHC,EAAAA,WAAAA,CAAYC,UAA4BC,yCAAwB,EAAA;IAC/D,KAAK,CAACD,OAAO,CAAC;AACf;AAEA;;;;;;AAMG;AACH,EAAA,MAAME,YAAYA,CACjBC,EAAU,EACVH,OAA0B,EAC1BI,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACC,aAAa,CAC9B,CAAA,kBAAA,EAAqBF,EAAE,CAAA,CAAE,EACzBH,OAAO,EACPI,MAAM,CACN;AACF;AAEA;;;;;;AAMG;AACH,EAAA,MAAME,SAASA,CACdC,OAAqB,EACrBP,OAA0B,EAC1BI,MAA2B,EAAA;IAE3B,OAAO,MAAM,IAAI,CAACI,YAAY,CAC7B,mBAAmB,EACnBD,OAAO,IAAI;AAAEE,MAAAA,IAAI,EAAE,CAAC;AAAEC,MAAAA,QAAQ,EAAE;AAAE,KAAE,EACpCV,OAAO,EACPI,MAAM,CACN;AACF;AAEA;;;;;;AAMG;AACH,EAAA,MAAMO,WAAWA,CAChBJ,OAAkC,EAClCP,OAA0B,EAC1BI,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACQ,YAAY,CAC7B,mBAAmB,EACnBL,OAAO,EACPP,OAAO,EACPI,MAAM,CACN;AACF;AAEA;;;;;;AAMG;AACH,EAAA,MAAMS,UAAUA,CACfV,EAAU,EACVH,OAA0B,EAC1BI,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACU,YAAY,CAC7B,CAAqBX,kBAAAA,EAAAA,EAAE,CAAO,KAAA,CAAA,EAC9B,IAAI,EACJH,OAAO,EACPI,MAAM,CACN;AACF;AAEA;;;;;AAKG;AACH,EAAA,MAAMW,aAAaA,CAClBf,OAA0B,EAC1BI,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACU,YAAY,CAC7B,wBAAwB,EACxB,IAAI,EACJd,OAAO,EACPI,MAAM,CACN;AACF;AACA;;;;"}
|