@gnosticdev/highlevel-sdk
Version:
SDK for the HighLevel API
1,604 lines (1,603 loc) • 142 kB
text/typescript
type paths = {
'/invoices/': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* List invoices
* @description API to get list of invoices
*/
get: operations['list-invoices'];
put?: never;
/**
* Create Invoice
* @description API to create an invoice
*/
post: operations['create-invoice'];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
'/invoices/{invoiceId}': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Get invoice
* @description API to get invoice by invoice id
*/
get: operations['get-invoice'];
/**
* Update invoice
* @description API to update invoice by invoice id
*/
put: operations['update-invoice'];
post?: never;
/**
* Delete invoice
* @description API to delete invoice by invoice id
*/
delete: operations['delete-invoice'];
options?: never;
head?: never;
patch?: never;
trace?: never;
};
'/invoices/{invoiceId}/record-payment': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Record a manual payment for an invoice
* @description API to record manual payment for an invoice by invoice id
*/
post: operations['record-invoice'];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
'/invoices/{invoiceId}/send': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Send invoice
* @description API to send invoice by invoice id
*/
post: operations['send-invoice'];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
'/invoices/{invoiceId}/void': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Void invoice
* @description API to delete invoice by invoice id
*/
post: operations['void-invoice'];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
'/invoices/generate-invoice-number': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Generate Invoice Number
* @description Get the next invoice number for the given location
*/
get: operations['generate-invoice-number'];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
'/invoices/schedule': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* List schedules
* @description API to get list of schedules
*/
get: operations['list-invoice-schedules'];
put?: never;
/**
* Create Invoice Schedule
* @description API to create an invoice Schedule
*/
post: operations['create-invoice-schedule'];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
'/invoices/schedule/{scheduleId}': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Get an schedule
* @description API to get an schedule by schedule id
*/
get: operations['get-invoice-schedule'];
/**
* Update schedule
* @description API to update an schedule by schedule id
*/
put: operations['update-invoice-schedule'];
post?: never;
/**
* Delete schedule
* @description API to delete an schedule by schedule id
*/
delete: operations['delete-invoice-schedule'];
options?: never;
head?: never;
patch?: never;
trace?: never;
};
'/invoices/schedule/{scheduleId}/auto-payment': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Manage Auto payment for an schedule invoice
* @description API to manage auto payment for a schedule
*/
post: operations['auto-payment-invoice-schedule'];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
'/invoices/schedule/{scheduleId}/cancel': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Cancel an scheduled invoice
* @description API to cancel a scheduled invoice by schedule id
*/
post: operations['cancel-invoice-schedule'];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
'/invoices/schedule/{scheduleId}/schedule': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Schedule an schedule invoice
* @description API to schedule an schedule invoice to start sending to the customer
*/
post: operations['schedule-invoice-schedule'];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
'/invoices/template': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* List templates
* @description API to get list of templates
*/
get: operations['list-invoice-templates'];
put?: never;
/**
* Create template
* @description API to create a template
*/
post: operations['create-invoice-template'];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
'/invoices/template/{templateId}': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Get an template
* @description API to get an template by template id
*/
get: operations['get-invoice-template'];
/**
* Update template
* @description API to update an template by template id
*/
put: operations['update-invoice-template'];
post?: never;
/**
* Delete template
* @description API to update an template by template id
*/
delete: operations['delete-invoice-template'];
options?: never;
head?: never;
patch?: never;
trace?: never;
};
'/invoices/text2pay': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Create & Send
* @description API to create or update a text2pay invoice
*/
post: operations['text2pay-invoice'];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
};
type webhooks = Record<string, never>;
type components = {
schemas: {
AdditionalEmailsDto: {
/** @example alex@example.com */
email: string;
};
AddressDto: {
/**
* @description Address Line 1
* @example 9931 Beechwood
*/
addressLine1?: string;
/**
* @description Address Line 2
* @example Beechwood
*/
addressLine2?: string;
/**
* @description City
* @example St. Houston
*/
city?: string;
/**
* @description Country Code
* @example US
*/
countryCode?: string;
/**
* @description Postal Code
* @example 559-6993
*/
postalCode?: string;
/**
* @description State
* @example TX
*/
state?: string;
};
AutoPaymentDetailsDto: {
card?: components['schemas']['CardDto'];
customerId?: string;
enable: boolean;
paymentMethodId?: string;
type?: string;
usBankAccount?: components['schemas']['USBankAccountDto'];
};
AutoPaymentInvoiceScheduleResponseDto: {
/**
* @description Schedule Id
* @example 6578278e879ad2646715ba9c
*/
_id: string;
/**
* @description Location Id or Agency Id
* @example 6578278e879ad2646715ba9c
*/
altId: string;
/** @enum {string} */
altType: 'location';
/**
* @description Business Details
* @example {
* "address": {
* "addressLine1": "9931 Beechwood",
* "city": "St. Houston",
* "countryCode": "USA",
* "postalCode": "559-6993",
* "state": "TX"
* },
* "name": "Alex",
* "phoneNo": "+1-214-559-6993",
* "website": "www.example.com"
* }
*/
businessDetails: components['schemas']['BusinessDetailsDto'];
/**
* @description Compiled terms notes
* @example Confidential
*/
compiledTermsNotes: string;
/**
* @description Contact Details
* @example {
* "address": {
* "countryCode": "US"
* },
* "customFields": [],
* "email": "alex@example.com",
* "id": "c6tZZU0rJBf30ZXx9Gli",
* "name": "Alex",
* "phoneNo": "+1-214-559-6993"
* }
*/
contactDetails: components['schemas']['ContactDetailsDto'];
/**
* @description created at
* @example 2023-12-12T09:27:42.355Z
*/
createdAt: string;
/**
* @description Currency
* @example USD
*/
currency: string;
/**
* @description Discount
* @example {
* "type": "percentage",
* "value": 0
* }
*/
discount?: components['schemas']['DiscountDto'];
/** @description List of invoices */
invoices: components['schemas']['DefaultInvoiceResponseDto'][];
/**
* @description Invoice Items
* @example [
* {
* "_id": "c6tZZU0rJBf30ZXx9Gli",
* "amount": 999,
* "currency": "USD",
* "name": "Macbook Pro",
* "priceId": "c6tZZU0rJBf30ZXx9Gli",
* "productId": "c6tZZU0rJBf30ZXx9Gli",
* "qty": 1,
* "taxes": []
* }
* ]
*/
items: string[];
/**
* @description Live Mode
* @example false
*/
liveMode: boolean;
/**
* @description Name of the invoice
* @example New Invoice
*/
name: string;
schedule?: components['schemas']['ScheduleOptionsDto'];
/**
* @description Schedule Status
* @example draft
*/
status: Record<string, never>;
/**
* @description Terms notes
* @example Confidential
*/
termsNotes: string;
/**
* @description Title
* @example INVOICE
*/
title: string;
/**
* @description Total Amount
* @example 999
*/
total: number;
/**
* @description updated at
* @example 2023-12-12T09:27:42.355Z
*/
updatedAt: string;
};
AutoPaymentScheduleDto: {
/**
* @description location Id / company Id based on altType
* @example 6578278e879ad2646715ba9c
*/
altId: string;
/**
* @description Alt Type
* @example location
* @enum {string}
*/
altType: 'location';
/** @description auto-payment configuration */
autoPayment: components['schemas']['AutoPaymentDetailsDto'];
id: string;
};
BadRequestDTO: {
/** @example Bad Request */
message?: string;
/** @example 400 */
statusCode?: number;
};
BusinessDetailsDto: {
/**
* @description Business Address
* @example 9931 Beechwood, TX
*/
address?: components['schemas']['AddressDto'];
/** @description Custom Values */
customValues?: string[];
/**
* @description Business Logo URL
* @example https://example.com/logo.png
*/
logoUrl?: string;
/**
* @description Business Name
* @example ABC Corp.
*/
name?: string;
/**
* @description Business Phone Number
* @example +1-214-559-6993
*/
phoneNo?: string;
/**
* @description Business Website Link
* @example wwww.example.com
*/
website?: string;
};
CancelInvoiceScheduleDto: {
/**
* @description location Id / company Id based on altType
* @example 6578278e879ad2646715ba9c
*/
altId: string;
/**
* @description Alt Type
* @example location
* @enum {string}
*/
altType: 'location';
};
CancelInvoiceScheduleResponseDto: {
/**
* @description Schedule Id
* @example 6578278e879ad2646715ba9c
*/
_id: string;
/**
* @description Location Id or Agency Id
* @example 6578278e879ad2646715ba9c
*/
altId: string;
/** @enum {string} */
altType: 'location';
/**
* @description Business Details
* @example {
* "address": {
* "addressLine1": "9931 Beechwood",
* "city": "St. Houston",
* "countryCode": "USA",
* "postalCode": "559-6993",
* "state": "TX"
* },
* "name": "Alex",
* "phoneNo": "+1-214-559-6993",
* "website": "www.example.com"
* }
*/
businessDetails: components['schemas']['BusinessDetailsDto'];
/**
* @description Compiled terms notes
* @example Confidential
*/
compiledTermsNotes: string;
/**
* @description Contact Details
* @example {
* "address": {
* "countryCode": "US"
* },
* "customFields": [],
* "email": "alex@example.com",
* "id": "c6tZZU0rJBf30ZXx9Gli",
* "name": "Alex",
* "phoneNo": "+1-214-559-6993"
* }
*/
contactDetails: components['schemas']['ContactDetailsDto'];
/**
* @description created at
* @example 2023-12-12T09:27:42.355Z
*/
createdAt: string;
/**
* @description Currency
* @example USD
*/
currency: string;
/**
* @description Discount
* @example {
* "type": "percentage",
* "value": 0
* }
*/
discount?: components['schemas']['DiscountDto'];
/** @description List of invoices */
invoices: components['schemas']['DefaultInvoiceResponseDto'][];
/**
* @description Invoice Items
* @example [
* {
* "_id": "c6tZZU0rJBf30ZXx9Gli",
* "amount": 999,
* "currency": "USD",
* "name": "Macbook Pro",
* "priceId": "c6tZZU0rJBf30ZXx9Gli",
* "productId": "c6tZZU0rJBf30ZXx9Gli",
* "qty": 1,
* "taxes": []
* }
* ]
*/
items: string[];
/**
* @description Live Mode
* @example false
*/
liveMode: boolean;
/**
* @description Name of the invoice
* @example New Invoice
*/
name: string;
schedule?: components['schemas']['ScheduleOptionsDto'];
/**
* @description Schedule Status
* @example draft
*/
status: Record<string, never>;
/**
* @description Terms notes
* @example Confidential
*/
termsNotes: string;
/**
* @description Title
* @example INVOICE
*/
title: string;
/**
* @description Total Amount
* @example 999
*/
total: number;
/**
* @description updated at
* @example 2023-12-12T09:27:42.355Z
*/
updatedAt: string;
};
CardDto: {
brand: string;
last4: string;
};
ChequeDto: {
/**
* @description check number
* @example 129-129-129-912
*/
number: string;
};
ContactDetailsDto: {
/** @description Secondary email addresses for the contact to be saved */
additionalEmails?: components['schemas']['AdditionalEmailsDto'][];
address?: components['schemas']['AddressDto'];
/**
* @description Contact Company Name
* @example ABC Corp.
*/
companyName?: string;
/** @description Custom Values */
customFields?: string[];
/**
* @description Contact Email
* @example alex@example.com
*/
email?: string;
/**
* @description Contact ID
* @example 6578278e879ad2646715ba9c
*/
id: string;
/**
* @description Contact Name
* @example Alex
*/
name: string;
/**
* @description Contact Phone Number
* @example +1-214-559-6993
*/
phoneNo?: string;
};
CreateInvoiceDto: {
/**
* @description location Id / company Id based on altType
* @example 6578278e879ad2646715ba9c
*/
altId: string;
/**
* @description Alt Type
* @example location
* @enum {string}
*/
altType: 'location';
businessDetails: components['schemas']['BusinessDetailsDto'];
/** @description Contact information to send the invoice to */
contactDetails: components['schemas']['ContactDetailsDto'];
/**
* @description Currency code
* @example USD
*/
currency: string;
discount: components['schemas']['DiscountDto'];
/**
* @description Due date in YYYY-MM-DD format
* @example 2023-01-14
*/
dueDate?: string;
/**
* @description Invoice Number
* @example 1001
*/
invoiceNumber?: string;
/**
* @description Issue date in YYYY-MM-DD format
* @example 2023-01-01
*/
issueDate: string;
/** @description An array of items for the invoice. */
items: components['schemas']['InvoiceItemDto'][];
liveMode: boolean;
/**
* @description Invoice Name
* @example New Invoice
*/
name: string;
sentTo: components['schemas']['SentToDto'];
/**
* @description Terms notes, Also supports HTML markups
* @example <p>This is a default terms.</p>
*/
termsNotes?: string;
/**
* @description Title for the invoice
* @example INVOICE
*/
title?: string;
};
CreateInvoiceResponseDto: {
/**
* @description Invoice Id
* @example 6578278e879ad2646715ba9c
*/
_id: string;
/**
* @description Location Id or Agency Id
* @example 6578278e879ad2646715ba9c
*/
altId: string;
/** @enum {string} */
altType: 'location';
/**
* @description Total Amount Due
* @example 999
*/
amountDue: number;
/**
* @description Amount Paid
* @example 0
*/
amountPaid: number;
/**
* @description Business Details
* @example {
* "address": {
* "addressLine1": "9931 Beechwood",
* "city": "St. Houston",
* "countryCode": "USA",
* "postalCode": "559-6993",
* "state": "TX"
* },
* "name": "Alex",
* "phoneNo": "+1-214-559-6993",
* "website": "www.example.com"
* }
*/
businessDetails: components['schemas']['BusinessDetailsDto'];
/**
* @description Contact Details
* @example {
* "address": {
* "countryCode": "US"
* },
* "customFields": [],
* "email": "alex@example.com",
* "id": "c6tZZU0rJBf30ZXx9Gli",
* "name": "Alex",
* "phoneNo": "+1-214-559-6993"
* }
*/
contactDetails: components['schemas']['ContactDetailsDto'];
/**
* @description created at
* @example 2023-12-12T09:27:42.355Z
*/
createdAt: string;
/**
* @description Currency
* @example USD
*/
currency: string;
/**
* @description Discount
* @example {
* "type": "percentage",
* "value": 0
* }
*/
discount?: components['schemas']['DiscountDto'];
/**
* @description Due date in YYYY-MM-DD format
* @example 2023-01-01
*/
dueDate: string;
/**
* @description Invoice Items
* @example [
* {
* "_id": "c6tZZU0rJBf30ZXx9Gli",
* "amount": 999,
* "currency": "USD",
* "name": "Macbook Pro",
* "priceId": "c6tZZU0rJBf30ZXx9Gli",
* "productId": "c6tZZU0rJBf30ZXx9Gli",
* "qty": 1,
* "taxes": []
* }
* ]
*/
invoiceItems: string[];
/**
* @description Invoice Number
* @example 19
*/
invoiceNumber: number;
/**
* @description Issue date in YYYY-MM-DD format
* @example 2023-01-01
*/
issueDate: string;
/**
* @description Live Mode
* @example false
*/
liveMode: boolean;
/**
* @description Name of the invoice
* @example New Invoice
*/
name: string;
/**
* @description Invoice Status
* @example draft
* @enum {string}
*/
status: 'draft' | 'sent' | 'payment_processing' | 'paid' | 'void' | 'partially_paid';
/**
* @description Title
* @example INVOICE
*/
title: string;
/**
* @description Total Amount
* @example 999
*/
total: number;
/**
* @description updated at
* @example 2023-12-12T09:27:42.355Z
*/
updatedAt: string;
};
CreateInvoiceScheduleDto: {
/**
* @description location Id / company Id based on altType
* @example 6578278e879ad2646715ba9c
*/
altId: string;
/**
* @description Alt Type
* @example location
* @enum {string}
*/
altType: 'location';
businessDetails: components['schemas']['BusinessDetailsDto'];
contactDetails: components['schemas']['ContactDetailsDto'];
currency: string;
discount: components['schemas']['DiscountDto'];
items: components['schemas']['InvoiceItemDto'][];
liveMode: boolean;
name: string;
schedule: components['schemas']['ScheduleOptionsDto'];
termsNotes?: string;
title?: string;
};
CreateInvoiceScheduleResponseDto: {
/**
* @description Schedule Id
* @example 6578278e879ad2646715ba9c
*/
_id: string;
/**
* @description Location Id or Agency Id
* @example 6578278e879ad2646715ba9c
*/
altId: string;
/** @enum {string} */
altType: 'location';
/**
* @description Business Details
* @example {
* "address": {
* "addressLine1": "9931 Beechwood",
* "city": "St. Houston",
* "countryCode": "USA",
* "postalCode": "559-6993",
* "state": "TX"
* },
* "name": "Alex",
* "phoneNo": "+1-214-559-6993",
* "website": "www.example.com"
* }
*/
businessDetails: components['schemas']['BusinessDetailsDto'];
/**
* @description Compiled terms notes
* @example Confidential
*/
compiledTermsNotes: string;
/**
* @description Contact Details
* @example {
* "address": {
* "countryCode": "US"
* },
* "customFields": [],
* "email": "alex@example.com",
* "id": "c6tZZU0rJBf30ZXx9Gli",
* "name": "Alex",
* "phoneNo": "+1-214-559-6993"
* }
*/
contactDetails: components['schemas']['ContactDetailsDto'];
/**
* @description created at
* @example 2023-12-12T09:27:42.355Z
*/
createdAt: string;
/**
* @description Currency
* @example USD
*/
currency: string;
/**
* @description Discount
* @example {
* "type": "percentage",
* "value": 0
* }
*/
discount?: components['schemas']['DiscountDto'];
/** @description List of invoices */
invoices: components['schemas']['DefaultInvoiceResponseDto'][];
/**
* @description Invoice Items
* @example [
* {
* "_id": "c6tZZU0rJBf30ZXx9Gli",
* "amount": 999,
* "currency": "USD",
* "name": "Macbook Pro",
* "priceId": "c6tZZU0rJBf30ZXx9Gli",
* "productId": "c6tZZU0rJBf30ZXx9Gli",
* "qty": 1,
* "taxes": []
* }
* ]
*/
items: string[];
/**
* @description Live Mode
* @example false
*/
liveMode: boolean;
/**
* @description Name of the invoice
* @example New Invoice
*/
name: string;
schedule?: components['schemas']['ScheduleOptionsDto'];
/**
* @description Schedule Status
* @example draft
*/
status: Record<string, never>;
/**
* @description Terms notes
* @example Confidential
*/
termsNotes: string;
/**
* @description Title
* @example INVOICE
*/
title: string;
/**
* @description Total Amount
* @example 999
*/
total: number;
/**
* @description updated at
* @example 2023-12-12T09:27:42.355Z
*/
updatedAt: string;
};
CreateInvoiceTemplateDto: {
/**
* @description location Id / company Id based on altType
* @example 6578278e879ad2646715ba9c
*/
altId: string;
/**
* @description Alt Type
* @example location
* @enum {string}
*/
altType: 'location';
businessDetails: components['schemas']['BusinessDetailsDto'];
currency: string;
discount?: components['schemas']['DiscountDto'];
internal?: boolean;
items: components['schemas']['InvoiceItemDto'][];
/**
* @description Name of the template
* @example New Template
*/
name: string;
termsNotes?: string;
/**
* @description Template title
* @example New Template
*/
title?: string;
};
CreateInvoiceTemplateResponseDto: {
/**
* @description Template Id
* @example 6578278e879ad2646715ba9c
*/
_id: string;
/**
* @description Location Id or Agency Id
* @example 6578278e879ad2646715ba9c
*/
altId: string;
/** @enum {string} */
altType: 'location';
/**
* @description Business Details
* @example {
* "address": {
* "addressLine1": "9931 Beechwood",
* "city": "St. Houston",
* "countryCode": "USA",
* "postalCode": "559-6993",
* "state": "TX"
* },
* "name": "Alex",
* "phoneNo": "+1-214-559-6993",
* "website": "www.example.com"
* }
*/
businessDetails: components['schemas']['BusinessDetailsDto'];
/**
* @description created at
* @example 2023-12-12T09:27:42.355Z
*/
createdAt: string;
/**
* @description Currency
* @example USD
*/
currency: string;
/**
* @description Discount
* @example {
* "type": "percentage",
* "value": 0
* }
*/
discount?: components['schemas']['DiscountDto'];
/**
* @description Invoice Items
* @example [
* {
* "_id": "c6tZZU0rJBf30ZXx9Gli",
* "amount": 999,
* "currency": "USD",
* "name": "Macbook Pro",
* "priceId": "c6tZZU0rJBf30ZXx9Gli",
* "productId": "c6tZZU0rJBf30ZXx9Gli",
* "qty": 1,
* "taxes": []
* }
* ]
*/
items: string[];
/**
* @description Name of the Template
* @example New Template
*/
name: string;
/**
* @description Total Amount
* @example 999
*/
total: number;
/**
* @description updated at
* @example 2023-12-12T09:27:42.355Z
*/
updatedAt: string;
};
CustomRRuleOptionsDto: {
/**
* @description Max number of task executions
* @example 10
*/
count?: number;
/**
* @description -1, 1, 2, 3, ..., 27, 28
* @example 15
*/
dayOfMonth?: number;
/**
* @example mo
* @enum {string}
*/
dayOfWeek?: 'mo' | 'tu' | 'we' | 'th' | 'fr' | 'sa' | 'su';
/**
* @description Execute task number of days before
* @example 5
*/
daysBefore?: number;
/**
* @description End date in YYYY-MM-DD format
* @example 2029-11-01
*/
endDate?: string;
/**
* @description End time in HH:mm:ss format
* @example 18:45:00
*/
endTime?: string;
/** @example 2 */
interval: number;
/**
* @example monthly
* @enum {string}
*/
intervalType: 'yearly' | 'monthly' | 'weekly' | 'daily' | 'hourly' | 'minutely' | 'secondly';
/**
* @example jan
* @enum {string}
*/
monthOfYear?: 'jan' | 'feb' | 'mar' | 'apr' | 'may' | 'jun' | 'jul' | 'aug' | 'sep' | 'oct' | 'nov' | 'dec';
/**
* @description -1, 1, 2, 3, 4
* @example -1
*/
numOfWeek?: number;
/**
* @description Start date in YYYY-MM-DD format
* @example 2023-01-01
*/
startDate: string;
/**
* @description Start time in HH:mm:ss format
* @example 20:45:00
*/
startTime?: string;
};
DefaultInvoiceResponseDto: {
/**
* @description Invoice Id
* @example 6578278e879ad2646715ba9c
*/
_id: string;
/**
* @description Location Id or Agency Id
* @example 6578278e879ad2646715ba9c
*/
altId: string;
/** @enum {string} */
altType: 'location';
/**
* @description Total Amount Due
* @example 999
*/
amountDue: number;
/**
* @description Amount Paid
* @example 0
*/
amountPaid: number;
/**
* @description Business Details
* @example {
* "address": {
* "addressLine1": "9931 Beechwood",
* "city": "St. Houston",
* "countryCode": "USA",
* "postalCode": "559-6993",
* "state": "TX"
* },
* "name": "Alex",
* "phoneNo": "+1-214-559-6993",
* "website": "www.example.com"
* }
*/
businessDetails: components['schemas']['BusinessDetailsDto'];
/**
* @description Contact Details
* @example {
* "address": {
* "countryCode": "US"
* },
* "customFields": [],
* "email": "alex@example.com",
* "id": "c6tZZU0rJBf30ZXx9Gli",
* "name": "Alex",
* "phoneNo": "+1-214-559-6993"
* }
*/
contactDetails: components['schemas']['ContactDetailsDto'];
/**
* @description created at
* @example 2023-12-12T09:27:42.355Z
*/
createdAt: string;
/**
* @description Currency
* @example USD
*/
currency: string;
/**
* @description Discount
* @example {
* "type": "percentage",
* "value": 0
* }
*/
discount?: components['schemas']['DiscountDto'];
/**
* @description Due date in YYYY-MM-DD format
* @example 2023-01-01
*/
dueDate: string;
/**
* @description Invoice Items
* @example [
* {
* "_id": "c6tZZU0rJBf30ZXx9Gli",
* "amount": 999,
* "currency": "USD",
* "name": "Macbook Pro",
* "priceId": "c6tZZU0rJBf30ZXx9Gli",
* "productId": "c6tZZU0rJBf30ZXx9Gli",
* "qty": 1,
* "taxes": []
* }
* ]
*/
invoiceItems: string[];
/**
* @description Invoice Number
* @example 19
*/
invoiceNumber: number;
/**
* @description Issue date in YYYY-MM-DD format
* @example 2023-01-01
*/
issueDate: string;
/**
* @description Live Mode
* @example false
*/
liveMode: boolean;
/**
* @description Name of the invoice
* @example New Invoice
*/
name: string;
/**
* @description Invoice Status
* @example draft
* @enum {string}
*/
status: 'draft' | 'sent' | 'payment_processing' | 'paid' | 'void' | 'partially_paid';
/**
* @description Title
* @example INVOICE
*/
title: string;
/**
* @description Total Amount
* @example 999
*/
total: number;
/**
* @description updated at
* @example 2023-12-12T09:27:42.355Z
*/
updatedAt: string;
};
DeleteInvoiceResponseDto: {
/**
* @description Invoice Id
* @example 6578278e879ad2646715ba9c
*/
_id: string;
/**
* @description Location Id or Agency Id
* @example 6578278e879ad2646715ba9c
*/
altId: string;
/** @enum {string} */
altType: 'location';
/**
* @description Total Amount Due
* @example 999
*/
amountDue: number;
/**
* @description Amount Paid
* @example 0
*/
amountPaid: number;
/**
* @description Business Details
* @example {
* "address": {
* "addressLine1": "9931 Beechwood",
* "city": "St. Houston",
* "countryCode": "USA",
* "postalCode": "559-6993",
* "state": "TX"
* },
* "name": "Alex",
* "phoneNo": "+1-214-559-6993",
* "website": "www.example.com"
* }
*/
businessDetails: components['schemas']['BusinessDetailsDto'];
/**
* @description Contact Details
* @example {
* "address": {
* "countryCode": "US"
* },
* "customFields": [],
* "email": "alex@example.com",
* "id": "c6tZZU0rJBf30ZXx9Gli",
* "name": "Alex",
* "phoneNo": "+1-214-559-6993"
* }
*/
contactDetails: components['schemas']['ContactDetailsDto'];
/**
* @description created at
* @example 2023-12-12T09:27:42.355Z
*/
createdAt: string;
/**
* @description Currency
* @example USD
*/
currency: string;
/**
* @description Discount
* @example {
* "type": "percentage",
* "value": 0
* }
*/
discount?: components['schemas']['DiscountDto'];
/**
* @description Due date in YYYY-MM-DD format
* @example 2023-01-01
*/
dueDate: string;
/**
* @description Invoice Items
* @example [
* {
* "_id": "c6tZZU0rJBf30ZXx9Gli",
* "amount": 999,
* "currency": "USD",
* "name": "Macbook Pro",
* "priceId": "c6tZZU0rJBf30ZXx9Gli",
* "productId": "c6tZZU0rJBf30ZXx9Gli",
* "qty": 1,
* "taxes": []
* }
* ]
*/
invoiceItems: string[];
/**
* @description Invoice Number
* @example 19
*/
invoiceNumber: number;
/**
* @description Issue date in YYYY-MM-DD format
* @example 2023-01-01
*/
issueDate: string;
/**
* @description Live Mode
* @example false
*/
liveMode: boolean;
/**
* @description Name of the invoice
* @example New Invoice
*/
name: string;
/**
* @description Invoice Status
* @example draft
* @enum {string}
*/
status: 'draft' | 'sent' | 'payment_processing' | 'paid' | 'void' | 'partially_paid';
/**
* @description Title
* @example INVOICE
*/
title: string;
/**
* @description Total Amount
* @example 999
*/
total: number;
/**
* @description updated at
* @example 2023-12-12T09:27:42.355Z
*/
updatedAt: string;
};
DeleteInvoiceScheduleResponseDto: {
/**
* @description success
* @example true
*/
success: boolean;
};
DeleteInvoiceTemplateResponseDto: {
/**
* @description success
* @example true
*/
success: boolean;
};
DiscountDto: {
/**
* @description Discount type
* @default percentage
* @example percentage
* @enum {string}
*/
type: 'percentage' | 'fixed';
/**
* @description Discount Value
* @default 0
* @example 10
*/
value: number;
};
GenerateInvoiceNumberResponseDto: {
/**
* @description Invoice Number
* @example 19
*/
invoiceNumber?: number;
};
GetInvoiceResponseDto: {
/**
* @description Invoice Id
* @example 6578278e879ad2646715ba9c
*/
_id: string;
/**
* @description Location Id or Agency Id
* @example 6578278e879ad2646715ba9c
*/
altId: string;
/** @enum {string} */
altType: 'location';
/**
* @description Total Amount Due
* @example 999
*/
amountDue: number;
/**
* @description Amount Paid
* @example 0
*/
amountPaid: number;
/**
* @description Business Details
* @example {
* "address": {
* "addressLine1": "9931 Beechwood",
* "city": "St. Houston",
* "countryCode": "USA",
* "postalCode": "559-6993",
* "state": "TX"
* },
* "name": "Alex",
* "phoneNo": "+1-214-559-6993",
* "website": "www.example.com"
* }
*/
businessDetails: components['schemas']['BusinessDetailsDto'];
/**
* @description Contact Details
* @example {
* "address": {
* "countryCode": "US"
* },
* "customFields": [],
* "email": "alex@example.com",
* "id": "c6tZZU0rJBf30ZXx9Gli",
* "name": "Alex",
* "phoneNo": "+1-214-559-6993"
* }
*/
contactDetails: components['schemas']['ContactDetailsDto'];
/**
* @description created at
* @example 2023-12-12T09:27:42.355Z
*/
createdAt: string;
/**
* @description Currency
* @example USD
*/
currency: string;
/**
* @description Discount
* @example {
* "type": "percentage",
* "value": 0
* }
*/
discount?: components['schemas']['DiscountDto'];
/**
* @description Due date in YYYY-MM-DD format
* @example 2023-01-01
*/
dueDate: string;
/**
* @description Invoice Items
* @example [
* {
* "_id": "c6tZZU0rJBf30ZXx9Gli",
* "amount": 999,
* "currency": "USD",
* "name": "Macbook Pro",