bukku-client 0.1.0-test.0
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/LICENSE +674 -0
- package/README.md +85 -0
- package/dist/accounting/accounts/index.d.ts +52 -0
- package/dist/accounting/accounts/index.d.ts.map +1 -0
- package/dist/accounting/accounts/index.js +72 -0
- package/dist/accounting/accounts/index.js.map +1 -0
- package/dist/accounting/accounts/type.d.ts +125 -0
- package/dist/accounting/accounts/type.d.ts.map +1 -0
- package/dist/accounting/accounts/type.js +4 -0
- package/dist/accounting/accounts/type.js.map +1 -0
- package/dist/accounting/index.d.ts +10 -0
- package/dist/accounting/index.d.ts.map +1 -0
- package/dist/accounting/index.js +16 -0
- package/dist/accounting/index.js.map +1 -0
- package/dist/accounting/journal-entries/index.d.ts +52 -0
- package/dist/accounting/journal-entries/index.d.ts.map +1 -0
- package/dist/accounting/journal-entries/index.js +72 -0
- package/dist/accounting/journal-entries/index.js.map +1 -0
- package/dist/accounting/journal-entries/type.d.ts +151 -0
- package/dist/accounting/journal-entries/type.d.ts.map +1 -0
- package/dist/accounting/journal-entries/type.js +4 -0
- package/dist/accounting/journal-entries/type.js.map +1 -0
- package/dist/common/type.d.ts +105 -0
- package/dist/common/type.d.ts.map +1 -0
- package/dist/common/type.js +3 -0
- package/dist/common/type.js.map +1 -0
- package/dist/contacts/contacts/index.d.ts +57 -0
- package/dist/contacts/contacts/index.d.ts.map +1 -0
- package/dist/contacts/contacts/index.js +82 -0
- package/dist/contacts/contacts/index.js.map +1 -0
- package/dist/contacts/contacts/type.d.ts +286 -0
- package/dist/contacts/contacts/type.d.ts.map +1 -0
- package/dist/contacts/contacts/type.js +4 -0
- package/dist/contacts/contacts/type.js.map +1 -0
- package/dist/contacts/groups/index.d.ts +42 -0
- package/dist/contacts/groups/index.d.ts.map +1 -0
- package/dist/contacts/groups/index.js +59 -0
- package/dist/contacts/groups/index.js.map +1 -0
- package/dist/contacts/groups/type.d.ts +34 -0
- package/dist/contacts/groups/type.d.ts.map +1 -0
- package/dist/contacts/groups/type.js +4 -0
- package/dist/contacts/groups/type.js.map +1 -0
- package/dist/contacts/index.d.ts +10 -0
- package/dist/contacts/index.d.ts.map +1 -0
- package/dist/contacts/index.js +15 -0
- package/dist/contacts/index.js.map +1 -0
- package/dist/control-panel/index.d.ts +15 -0
- package/dist/control-panel/index.d.ts.map +1 -0
- package/dist/control-panel/index.js +35 -0
- package/dist/control-panel/index.js.map +1 -0
- package/dist/control-panel/locations/index.d.ts +51 -0
- package/dist/control-panel/locations/index.d.ts.map +1 -0
- package/dist/control-panel/locations/index.js +70 -0
- package/dist/control-panel/locations/index.js.map +1 -0
- package/dist/control-panel/locations/type.d.ts +91 -0
- package/dist/control-panel/locations/type.d.ts.map +1 -0
- package/dist/control-panel/locations/type.js +4 -0
- package/dist/control-panel/locations/type.js.map +1 -0
- package/dist/control-panel/tag-groups/index.d.ts +44 -0
- package/dist/control-panel/tag-groups/index.d.ts.map +1 -0
- package/dist/control-panel/tag-groups/index.js +63 -0
- package/dist/control-panel/tag-groups/index.js.map +1 -0
- package/dist/control-panel/tag-groups/type.d.ts +64 -0
- package/dist/control-panel/tag-groups/type.d.ts.map +1 -0
- package/dist/control-panel/tag-groups/type.js +4 -0
- package/dist/control-panel/tag-groups/type.js.map +1 -0
- package/dist/control-panel/tags/index.d.ts +43 -0
- package/dist/control-panel/tags/index.d.ts.map +1 -0
- package/dist/control-panel/tags/index.js +60 -0
- package/dist/control-panel/tags/index.js.map +1 -0
- package/dist/control-panel/tags/type.d.ts +60 -0
- package/dist/control-panel/tags/type.d.ts.map +1 -0
- package/dist/control-panel/tags/type.js +4 -0
- package/dist/control-panel/tags/type.js.map +1 -0
- package/dist/files/index.d.ts +29 -0
- package/dist/files/index.d.ts.map +1 -0
- package/dist/files/index.js +42 -0
- package/dist/files/index.js.map +1 -0
- package/dist/files/type.d.ts +50 -0
- package/dist/files/type.d.ts.map +1 -0
- package/dist/files/type.js +4 -0
- package/dist/files/type.js.map +1 -0
- package/dist/index.d.ts +73 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +130 -0
- package/dist/index.js.map +1 -0
- package/dist/lists/index.d.ts +24 -0
- package/dist/lists/index.d.ts.map +1 -0
- package/dist/lists/index.js +33 -0
- package/dist/lists/index.js.map +1 -0
- package/dist/lists/type.d.ts +781 -0
- package/dist/lists/type.d.ts.map +1 -0
- package/dist/lists/type.js +3 -0
- package/dist/lists/type.js.map +1 -0
- package/dist/products/groups/index.d.ts +42 -0
- package/dist/products/groups/index.d.ts.map +1 -0
- package/dist/products/groups/index.js +59 -0
- package/dist/products/groups/index.js.map +1 -0
- package/dist/products/groups/type.d.ts +53 -0
- package/dist/products/groups/type.d.ts.map +1 -0
- package/dist/products/groups/type.js +5 -0
- package/dist/products/groups/type.js.map +1 -0
- package/dist/products/index.d.ts +10 -0
- package/dist/products/index.d.ts.map +1 -0
- package/dist/products/index.js +15 -0
- package/dist/products/index.js.map +1 -0
- package/dist/products/products/index.d.ts +51 -0
- package/dist/products/products/index.d.ts.map +1 -0
- package/dist/products/products/index.js +70 -0
- package/dist/products/products/index.js.map +1 -0
- package/dist/products/products/type.d.ts +270 -0
- package/dist/products/products/type.d.ts.map +1 -0
- package/dist/products/products/type.js +4 -0
- package/dist/products/products/type.js.map +1 -0
- package/dist/purchases/bills/index.d.ts +51 -0
- package/dist/purchases/bills/index.d.ts.map +1 -0
- package/dist/purchases/bills/index.js +75 -0
- package/dist/purchases/bills/index.js.map +1 -0
- package/dist/purchases/bills/type.d.ts +254 -0
- package/dist/purchases/bills/type.d.ts.map +1 -0
- package/dist/purchases/bills/type.js +4 -0
- package/dist/purchases/bills/type.js.map +1 -0
- package/dist/purchases/credit-notes/index.d.ts +51 -0
- package/dist/purchases/credit-notes/index.d.ts.map +1 -0
- package/dist/purchases/credit-notes/index.js +71 -0
- package/dist/purchases/credit-notes/index.js.map +1 -0
- package/dist/purchases/credit-notes/type.d.ts +204 -0
- package/dist/purchases/credit-notes/type.d.ts.map +1 -0
- package/dist/purchases/credit-notes/type.js +4 -0
- package/dist/purchases/credit-notes/type.js.map +1 -0
- package/dist/purchases/goods-received-notes/index.d.ts +51 -0
- package/dist/purchases/goods-received-notes/index.d.ts.map +1 -0
- package/dist/purchases/goods-received-notes/index.js +71 -0
- package/dist/purchases/goods-received-notes/index.js.map +1 -0
- package/dist/purchases/goods-received-notes/type.d.ts +184 -0
- package/dist/purchases/goods-received-notes/type.d.ts.map +1 -0
- package/dist/purchases/goods-received-notes/type.js +4 -0
- package/dist/purchases/goods-received-notes/type.js.map +1 -0
- package/dist/purchases/index.d.ts +18 -0
- package/dist/purchases/index.d.ts.map +1 -0
- package/dist/purchases/index.js +23 -0
- package/dist/purchases/index.js.map +1 -0
- package/dist/purchases/payments/index.d.ts +51 -0
- package/dist/purchases/payments/index.d.ts.map +1 -0
- package/dist/purchases/payments/index.js +71 -0
- package/dist/purchases/payments/index.js.map +1 -0
- package/dist/purchases/payments/type.d.ts +183 -0
- package/dist/purchases/payments/type.d.ts.map +1 -0
- package/dist/purchases/payments/type.js +4 -0
- package/dist/purchases/payments/type.js.map +1 -0
- package/dist/purchases/purchase-orders/index.d.ts +51 -0
- package/dist/purchases/purchase-orders/index.d.ts.map +1 -0
- package/dist/purchases/purchase-orders/index.js +71 -0
- package/dist/purchases/purchase-orders/index.js.map +1 -0
- package/dist/purchases/purchase-orders/type.d.ts +182 -0
- package/dist/purchases/purchase-orders/type.d.ts.map +1 -0
- package/dist/purchases/purchase-orders/type.js +4 -0
- package/dist/purchases/purchase-orders/type.js.map +1 -0
- package/dist/purchases/refunds/index.d.ts +51 -0
- package/dist/purchases/refunds/index.d.ts.map +1 -0
- package/dist/purchases/refunds/index.js +71 -0
- package/dist/purchases/refunds/index.js.map +1 -0
- package/dist/purchases/refunds/type.d.ts +181 -0
- package/dist/purchases/refunds/type.d.ts.map +1 -0
- package/dist/purchases/refunds/type.js +4 -0
- package/dist/purchases/refunds/type.js.map +1 -0
- package/dist/sales/credit-notes/index.d.ts +52 -0
- package/dist/sales/credit-notes/index.d.ts.map +1 -0
- package/dist/sales/credit-notes/index.js +72 -0
- package/dist/sales/credit-notes/index.js.map +1 -0
- package/dist/sales/credit-notes/type.d.ts +304 -0
- package/dist/sales/credit-notes/type.d.ts.map +1 -0
- package/dist/sales/credit-notes/type.js +4 -0
- package/dist/sales/credit-notes/type.js.map +1 -0
- package/dist/sales/delivery-orders/index.d.ts +51 -0
- package/dist/sales/delivery-orders/index.d.ts.map +1 -0
- package/dist/sales/delivery-orders/index.js +72 -0
- package/dist/sales/delivery-orders/index.js.map +1 -0
- package/dist/sales/delivery-orders/type.d.ts +212 -0
- package/dist/sales/delivery-orders/type.d.ts.map +1 -0
- package/dist/sales/delivery-orders/type.js +4 -0
- package/dist/sales/delivery-orders/type.js.map +1 -0
- package/dist/sales/index.d.ts +20 -0
- package/dist/sales/index.d.ts.map +1 -0
- package/dist/sales/index.js +24 -0
- package/dist/sales/index.js.map +1 -0
- package/dist/sales/invoices/index.d.ts +52 -0
- package/dist/sales/invoices/index.d.ts.map +1 -0
- package/dist/sales/invoices/index.js +73 -0
- package/dist/sales/invoices/index.js.map +1 -0
- package/dist/sales/invoices/type.d.ts +335 -0
- package/dist/sales/invoices/type.d.ts.map +1 -0
- package/dist/sales/invoices/type.js +4 -0
- package/dist/sales/invoices/type.js.map +1 -0
- package/dist/sales/payments/index.d.ts +52 -0
- package/dist/sales/payments/index.d.ts.map +1 -0
- package/dist/sales/payments/index.js +72 -0
- package/dist/sales/payments/index.js.map +1 -0
- package/dist/sales/payments/type.d.ts +242 -0
- package/dist/sales/payments/type.d.ts.map +1 -0
- package/dist/sales/payments/type.js +4 -0
- package/dist/sales/payments/type.js.map +1 -0
- package/dist/sales/quotations/index.d.ts +51 -0
- package/dist/sales/quotations/index.d.ts.map +1 -0
- package/dist/sales/quotations/index.js +71 -0
- package/dist/sales/quotations/index.js.map +1 -0
- package/dist/sales/quotations/type.d.ts +202 -0
- package/dist/sales/quotations/type.d.ts.map +1 -0
- package/dist/sales/quotations/type.js +3 -0
- package/dist/sales/quotations/type.js.map +1 -0
- package/dist/sales/refunds/index.d.ts +52 -0
- package/dist/sales/refunds/index.d.ts.map +1 -0
- package/dist/sales/refunds/index.js +72 -0
- package/dist/sales/refunds/index.js.map +1 -0
- package/dist/sales/refunds/type.d.ts +225 -0
- package/dist/sales/refunds/type.d.ts.map +1 -0
- package/dist/sales/refunds/type.js +4 -0
- package/dist/sales/refunds/type.js.map +1 -0
- package/dist/sales/sales-orders/index.d.ts +52 -0
- package/dist/sales/sales-orders/index.d.ts.map +1 -0
- package/dist/sales/sales-orders/index.js +72 -0
- package/dist/sales/sales-orders/index.js.map +1 -0
- package/dist/sales/sales-orders/type.d.ts +202 -0
- package/dist/sales/sales-orders/type.d.ts.map +1 -0
- package/dist/sales/sales-orders/type.js +4 -0
- package/dist/sales/sales-orders/type.js.map +1 -0
- package/dist/types.d.ts +17 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// src/sales/refunds/index.ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RefundsAPI = void 0;
|
|
5
|
+
class RefundsAPI {
|
|
6
|
+
constructor(_request) {
|
|
7
|
+
this._request = _request;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new refund.
|
|
11
|
+
* Endpoint: POST /sales/refunds
|
|
12
|
+
* @param data - The data for the new refund.
|
|
13
|
+
* @returns A promise that resolves to the created refund.
|
|
14
|
+
*/
|
|
15
|
+
async create(data) {
|
|
16
|
+
const response = await this._request("/sales/refunds", "POST", data);
|
|
17
|
+
return response.transaction;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves a paginated list of refunds.
|
|
21
|
+
* Endpoint: GET /sales/refunds
|
|
22
|
+
* @param params - Optional parameters for filtering and pagination.
|
|
23
|
+
* @returns A promise that resolves to the API response for listing refunds.
|
|
24
|
+
*/
|
|
25
|
+
async list(params) {
|
|
26
|
+
return this._request("/sales/refunds", "GET", undefined, params);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Retrieves a specific refund by its ID.
|
|
30
|
+
* Endpoint: GET /sales/refunds/{id}
|
|
31
|
+
* @param id - The ID of the refund to retrieve.
|
|
32
|
+
* @returns A promise that resolves to the refund.
|
|
33
|
+
*/
|
|
34
|
+
async get(id) {
|
|
35
|
+
const response = await this._request(`/sales/refunds/${id}`, "GET");
|
|
36
|
+
return response.transaction;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Updates an existing refund.
|
|
40
|
+
* Endpoint: PUT /sales/refunds/{id}
|
|
41
|
+
* @param id - The ID of the refund to update.
|
|
42
|
+
* @param data - The data to update the refund with.
|
|
43
|
+
* @returns A promise that resolves to the updated refund.
|
|
44
|
+
*/
|
|
45
|
+
async update(id, data) {
|
|
46
|
+
const response = await this._request(`/sales/refunds/${id}`, "PUT", data);
|
|
47
|
+
return response.transaction;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Deletes a refund.
|
|
51
|
+
* Endpoint: DELETE /sales/refunds/{id}
|
|
52
|
+
* Note: Only transactions with draft and void statuses can be deleted.
|
|
53
|
+
* @param id - The ID of the refund to delete.
|
|
54
|
+
* @returns A promise that resolves when the refund is deleted.
|
|
55
|
+
*/
|
|
56
|
+
async delete(id) {
|
|
57
|
+
await this._request(`/sales/refunds/${id}`, "DELETE");
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Updates the status of an existing refund.
|
|
61
|
+
* Endpoint: PATCH /sales/refunds/{id}
|
|
62
|
+
* @param id - The ID of the refund to update.
|
|
63
|
+
* @param data - The data containing the new status.
|
|
64
|
+
* @returns A promise that resolves to the updated refund.
|
|
65
|
+
*/
|
|
66
|
+
async updateStatus(id, data) {
|
|
67
|
+
const response = await this._request(`/sales/refunds/${id}`, "PATCH", data);
|
|
68
|
+
return response.transaction;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.RefundsAPI = RefundsAPI;
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sales/refunds/index.ts"],"names":[],"mappings":";AAAA,6BAA6B;;;AAa7B,MAAa,UAAU;IACrB,YAAoB,QAAiC;QAAjC,aAAQ,GAAR,QAAQ,CAAyB;IAAG,CAAC;IAEzD;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CAAC,IAA6B;QACxC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAClC,gBAAgB,EAChB,MAAM,EACN,IAAI,CACL,CAAC;QACF,OAAO,QAAQ,CAAC,WAAW,CAAC;IAC9B,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,MAA8B;QAE9B,OAAO,IAAI,CAAC,QAAQ,CAClB,gBAAgB,EAChB,KAAK,EACL,SAAS,EACT,MAAM,CACP,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CAAC,EAAmB;QAC3B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAClC,kBAAkB,EAAE,EAAE,EACtB,KAAK,CACN,CAAC;QACF,OAAO,QAAQ,CAAC,WAAW,CAAC;IAC9B,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CACV,EAAmB,EACnB,IAA6B;QAE7B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAClC,kBAAkB,EAAE,EAAE,EACtB,KAAK,EACL,IAAI,CACL,CAAC;QACF,OAAO,QAAQ,CAAC,WAAW,CAAC;IAC9B,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CAAC,EAAmB;QAC9B,MAAM,IAAI,CAAC,QAAQ,CAAO,kBAAkB,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,YAAY,CAChB,EAAmB,EACnB,IAAmC;QAEnC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAClC,kBAAkB,EAAE,EAAE,EACtB,OAAO,EACP,IAAI,CACL,CAAC;QACF,OAAO,QAAQ,CAAC,WAAW,CAAC;IAC9B,CAAC;CACF;AAjGD,gCAiGC"}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { BukkuEmailDetails, BukkuFileAttachment, BukkuListPagination } from "../../common/type";
|
|
2
|
+
/**
|
|
3
|
+
* Represents a link item for creating/updating a Bukku Refund, specifying where credit is applied from or to.
|
|
4
|
+
* (Typically, a refund itself is a source of credit, so these might link to invoices or other documents being refunded).
|
|
5
|
+
*/
|
|
6
|
+
export interface BukkuRefundLinkItemCreateParams {
|
|
7
|
+
/** The id of the link item, required when you're updating an item. */
|
|
8
|
+
id?: number;
|
|
9
|
+
/** The target transaction to apply the amount to (e.g., an invoice being paid by this refund, or a credit note being consumed). */
|
|
10
|
+
target_transaction_id: number;
|
|
11
|
+
/** The amount to apply. */
|
|
12
|
+
apply_amount: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Represents a deposit item for creating/updating a Bukku Refund (how the money is being returned).
|
|
16
|
+
*/
|
|
17
|
+
export interface BukkuRefundDepositItemCreateParams {
|
|
18
|
+
/** The id of the deposit item, required when you're updating an item. */
|
|
19
|
+
id?: number;
|
|
20
|
+
/** The id of the payment method. */
|
|
21
|
+
payment_method_id?: number;
|
|
22
|
+
/** The deposit account for the payment (e.g., bank account money is paid from). */
|
|
23
|
+
account_id: number;
|
|
24
|
+
/** The amount refunded/paid out via this method. */
|
|
25
|
+
amount: number;
|
|
26
|
+
/** The payment reference number for this deposit item. */
|
|
27
|
+
number?: string;
|
|
28
|
+
/** The fee incurred for this part of the refund. Include '%', if it's a percentage. */
|
|
29
|
+
fee_text?: string;
|
|
30
|
+
/** The account for the fee incurred, required if the fee_text is present. */
|
|
31
|
+
fee_account_id?: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Parameters for creating a Bukku Refund.
|
|
35
|
+
* Based on POST /sales/refunds
|
|
36
|
+
*/
|
|
37
|
+
export interface BukkuRefundCreateParams {
|
|
38
|
+
contact_id: number;
|
|
39
|
+
number?: string;
|
|
40
|
+
number2?: string;
|
|
41
|
+
date: string;
|
|
42
|
+
currency_code: string;
|
|
43
|
+
exchange_rate: number;
|
|
44
|
+
tag_ids?: number[];
|
|
45
|
+
description?: string;
|
|
46
|
+
remarks?: string;
|
|
47
|
+
link_items?: Array<BukkuRefundLinkItemCreateParams>;
|
|
48
|
+
deposit_items: Array<BukkuRefundDepositItemCreateParams>;
|
|
49
|
+
status: "draft" | "pending_approval" | "ready";
|
|
50
|
+
email?: BukkuEmailDetails;
|
|
51
|
+
files?: Array<BukkuFileAttachment>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Represents a link item in a Bukku Refund response (e.g., an invoice this refund is paying off).
|
|
55
|
+
* Based on `link_items` in the sample response.
|
|
56
|
+
*/
|
|
57
|
+
export interface BukkuRefundLinkItem {
|
|
58
|
+
id: number;
|
|
59
|
+
target_transaction_id: number;
|
|
60
|
+
type: string;
|
|
61
|
+
number: string;
|
|
62
|
+
date: string;
|
|
63
|
+
description?: string;
|
|
64
|
+
amount: number;
|
|
65
|
+
balance: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Represents a deposit item within a Bukku Refund response.
|
|
69
|
+
*/
|
|
70
|
+
export interface BukkuRefundDepositItem {
|
|
71
|
+
id: number;
|
|
72
|
+
line: number;
|
|
73
|
+
payment_method_id: number | null;
|
|
74
|
+
account_id: number;
|
|
75
|
+
amount: number;
|
|
76
|
+
number: string | null;
|
|
77
|
+
fee_text: number | string | null;
|
|
78
|
+
fee_account_id: number | null;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Represents the detailed file information within a Bukku Refund's file entry.
|
|
82
|
+
*/
|
|
83
|
+
export interface BukkuRefundFileDetail {
|
|
84
|
+
id: number;
|
|
85
|
+
url: string;
|
|
86
|
+
filename: string;
|
|
87
|
+
mime_type: string;
|
|
88
|
+
size: number;
|
|
89
|
+
created_at: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Represents a file entry attached to a Bukku Refund.
|
|
93
|
+
*/
|
|
94
|
+
export interface BukkuRefundFileEntry {
|
|
95
|
+
id: number;
|
|
96
|
+
file_id: number;
|
|
97
|
+
file: BukkuRefundFileDetail[];
|
|
98
|
+
is_shared: boolean;
|
|
99
|
+
created_at: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Represents a Bukku Refund object as returned by the API.
|
|
103
|
+
*/
|
|
104
|
+
export interface BukkuRefund {
|
|
105
|
+
id: number;
|
|
106
|
+
contact_id: number;
|
|
107
|
+
contact_name: string;
|
|
108
|
+
date: string;
|
|
109
|
+
currency_code: string;
|
|
110
|
+
currency_symbol: string;
|
|
111
|
+
exchange_rate: number;
|
|
112
|
+
number: string;
|
|
113
|
+
number2: string | null;
|
|
114
|
+
tag_ids: number[];
|
|
115
|
+
tag_names: string[];
|
|
116
|
+
link_items: BukkuRefundLinkItem[];
|
|
117
|
+
deposit_items: BukkuRefundDepositItem[];
|
|
118
|
+
remarks: string | null;
|
|
119
|
+
description: string | null;
|
|
120
|
+
amount: number;
|
|
121
|
+
balance: number;
|
|
122
|
+
status: string;
|
|
123
|
+
type: string;
|
|
124
|
+
short_link: string;
|
|
125
|
+
files: BukkuRefundFileEntry[];
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Represents the API response structure when a refund is created or retrieved.
|
|
129
|
+
*/
|
|
130
|
+
export interface BukkuRefundResponse {
|
|
131
|
+
transaction: BukkuRefund;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Parameters for updating a Bukku Refund.
|
|
135
|
+
* 'status' is typically managed by a separate PATCH endpoint.
|
|
136
|
+
* 'number' becomes a required field for update.
|
|
137
|
+
*/
|
|
138
|
+
export interface BukkuRefundUpdateParams {
|
|
139
|
+
contact_id: number;
|
|
140
|
+
number: string;
|
|
141
|
+
number2?: string;
|
|
142
|
+
date: string;
|
|
143
|
+
currency_code: string;
|
|
144
|
+
exchange_rate: number;
|
|
145
|
+
tag_ids?: number[];
|
|
146
|
+
description?: string;
|
|
147
|
+
remarks?: string;
|
|
148
|
+
link_items?: Array<BukkuRefundLinkItemCreateParams>;
|
|
149
|
+
deposit_items: Array<BukkuRefundDepositItemCreateParams>;
|
|
150
|
+
email?: BukkuEmailDetails;
|
|
151
|
+
files?: Array<BukkuFileAttachment>;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Parameters for updating the status of a Bukku Refund.
|
|
155
|
+
*/
|
|
156
|
+
export interface BukkuRefundStatusUpdateParams {
|
|
157
|
+
/** The new status for the refund. */
|
|
158
|
+
status: "ready" | "draft" | "pending_approval" | "void";
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Parameters for listing Bukku Refunds (GET /sales/refunds - assumed endpoint naming convention).
|
|
162
|
+
*/
|
|
163
|
+
export interface BukkuRefundListParams {
|
|
164
|
+
/** Search for keywords in No., Reference No., Title, Remarks, Description, Contact Name, Billing Party & Shipping Party. Max 100 chars. */
|
|
165
|
+
search?: string;
|
|
166
|
+
/** Search for keywords within custom fields. Max 100 chars. */
|
|
167
|
+
custom_search?: string;
|
|
168
|
+
/** Search by contact ID. */
|
|
169
|
+
contact_id?: number;
|
|
170
|
+
/** Search for transactions on and after the date (YYYY-MM-DD). */
|
|
171
|
+
date_from?: string;
|
|
172
|
+
/** Search for transactions on and before the date (YYYY-MM-DD). */
|
|
173
|
+
date_to?: string;
|
|
174
|
+
/** Search by status, default to All but Void. */
|
|
175
|
+
status?: "all" | "draft" | "pending_approval" | "ready" | "void";
|
|
176
|
+
/** Filter by payment status. */
|
|
177
|
+
payment_status?: "paid" | "outstanding";
|
|
178
|
+
/** Search by the latest email status. */
|
|
179
|
+
email_status?: "UNSENT" | "PENDING" | "SENT" | "BOUNCED" | "OPENED" | "VIEWED";
|
|
180
|
+
/** Filter by accounts in Current Assets, Non-Current Assets, Current Liabilities and Equity. */
|
|
181
|
+
account_id?: string;
|
|
182
|
+
/** Sort by field. */
|
|
183
|
+
sort_by?: "number" | "date" | "contact_name" | "number2" | "description" | "amount" | "created_at";
|
|
184
|
+
/** Sort the list in ascending or descending order. */
|
|
185
|
+
sort_dir?: "asc" | "desc";
|
|
186
|
+
/** The current page number. Default: 1, Min: 1. */
|
|
187
|
+
page?: number;
|
|
188
|
+
/** Number of records per page. Default: 30. */
|
|
189
|
+
page_size?: number;
|
|
190
|
+
[key: string]: any;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Represents a summary of a Bukku Refund as it appears in a list.
|
|
194
|
+
*/
|
|
195
|
+
export interface BukkuRefundListItem {
|
|
196
|
+
id: number;
|
|
197
|
+
number: string;
|
|
198
|
+
number2: string | null;
|
|
199
|
+
contact_id: number;
|
|
200
|
+
contact_name: string;
|
|
201
|
+
contact_email?: string;
|
|
202
|
+
date: string;
|
|
203
|
+
tag_names?: string[];
|
|
204
|
+
description: string | null;
|
|
205
|
+
currency_code: string;
|
|
206
|
+
currency_symbol: string;
|
|
207
|
+
exchange_rate: number;
|
|
208
|
+
amount: number;
|
|
209
|
+
balance?: number;
|
|
210
|
+
status: string;
|
|
211
|
+
email_status?: string;
|
|
212
|
+
file_count?: number;
|
|
213
|
+
short_link?: string;
|
|
214
|
+
created_by?: string;
|
|
215
|
+
created_at: string;
|
|
216
|
+
updated_at: string;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Represents the API response structure for listing refunds.
|
|
220
|
+
*/
|
|
221
|
+
export interface BukkuRefundListApiResponse {
|
|
222
|
+
paging: BukkuListPagination;
|
|
223
|
+
transactions: BukkuRefundListItem[];
|
|
224
|
+
}
|
|
225
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/sales/refunds/type.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAI3B;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC9C,sEAAsE;IACtE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,mIAAmI;IACnI,qBAAqB,EAAE,MAAM,CAAC;IAC9B,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD,yEAAyE;IACzE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oCAAoC;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mFAAmF;IACnF,UAAU,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uFAAuF;IACvF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IAC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AAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,YAAY,EAAE,mBAAmB,EAAE,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/sales/refunds/type.ts"],"names":[],"mappings":";AAAA,4BAA4B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { BukkuAPIRequestFunction } from "../../types";
|
|
2
|
+
import { BukkuSalesOrderCreateParams, BukkuSalesOrder, BukkuSalesOrderListParams, BukkuSalesOrderListApiResponse, BukkuSalesOrderUpdateParams, BukkuSalesOrderStatusUpdateParams } from "./type";
|
|
3
|
+
export declare class SalesOrdersAPI {
|
|
4
|
+
private _request;
|
|
5
|
+
constructor(_request: BukkuAPIRequestFunction);
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new sales order.
|
|
8
|
+
* Endpoint: POST /sales/orders
|
|
9
|
+
* @param data - The data for the new sales order.
|
|
10
|
+
* @returns A promise that resolves to the created sales order.
|
|
11
|
+
*/
|
|
12
|
+
create(data: BukkuSalesOrderCreateParams): Promise<BukkuSalesOrder>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves a paginated list of sales orders.
|
|
15
|
+
* Endpoint: GET /sales/orders
|
|
16
|
+
* @param params - Optional parameters for filtering and pagination.
|
|
17
|
+
* @returns A promise that resolves to the API response for listing sales orders.
|
|
18
|
+
*/
|
|
19
|
+
list(params?: BukkuSalesOrderListParams): Promise<BukkuSalesOrderListApiResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves a specific sales order by its ID.
|
|
22
|
+
* Endpoint: GET /sales/orders/{id}
|
|
23
|
+
* @param id - The ID of the sales order to retrieve.
|
|
24
|
+
* @returns A promise that resolves to the sales order.
|
|
25
|
+
*/
|
|
26
|
+
get(id: number | string): Promise<BukkuSalesOrder>;
|
|
27
|
+
/**
|
|
28
|
+
* Updates an existing sales order.
|
|
29
|
+
* Endpoint: PUT /sales/orders/{id}
|
|
30
|
+
* @param id - The ID of the sales order to update.
|
|
31
|
+
* @param data - The data to update the sales order with.
|
|
32
|
+
* @returns A promise that resolves to the updated sales order.
|
|
33
|
+
*/
|
|
34
|
+
update(id: number | string, data: BukkuSalesOrderUpdateParams): Promise<BukkuSalesOrder>;
|
|
35
|
+
/**
|
|
36
|
+
* Updates the status of an existing sales order.
|
|
37
|
+
* Endpoint: PATCH /sales/orders/{id}
|
|
38
|
+
* @param id - The ID of the sales order to update.
|
|
39
|
+
* @param data - The data containing the new status.
|
|
40
|
+
* @returns A promise that resolves to the updated sales order.
|
|
41
|
+
*/
|
|
42
|
+
updateStatus(id: number | string, data: BukkuSalesOrderStatusUpdateParams): Promise<BukkuSalesOrder>;
|
|
43
|
+
/**
|
|
44
|
+
* Deletes a sales order.
|
|
45
|
+
* Endpoint: DELETE /sales/orders/{id}
|
|
46
|
+
* Note: Only transactions with draft and void statuses can be deleted.
|
|
47
|
+
* @param id - The ID of the sales order to delete.
|
|
48
|
+
* @returns A promise that resolves when the sales order is deleted.
|
|
49
|
+
*/
|
|
50
|
+
delete(id: number | string): Promise<void>;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sales/sales-orders/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,2BAA2B,EAC3B,eAAe,EAEf,yBAAyB,EACzB,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EAClC,MAAM,QAAQ,CAAC;AAEhB,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ;gBAAR,QAAQ,EAAE,uBAAuB;IAErD;;;;;OAKG;IACG,MAAM,CACV,IAAI,EAAE,2BAA2B,GAChC,OAAO,CAAC,eAAe,CAAC;IAS3B;;;;;OAKG;IACG,IAAI,CACR,MAAM,CAAC,EAAE,yBAAyB,GACjC,OAAO,CAAC,8BAA8B,CAAC;IAS1C;;;;;OAKG;IACG,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAQxD;;;;;;OAMG;IACG,MAAM,CACV,EAAE,EAAE,MAAM,GAAG,MAAM,EACnB,IAAI,EAAE,2BAA2B,GAChC,OAAO,CAAC,eAAe,CAAC;IAS3B;;;;;;OAMG;IACG,YAAY,CAChB,EAAE,EAAE,MAAM,GAAG,MAAM,EACnB,IAAI,EAAE,iCAAiC,GACtC,OAAO,CAAC,eAAe,CAAC;IAS3B;;;;;;OAMG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjD"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// src/sales/sales-orders/index.ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SalesOrdersAPI = void 0;
|
|
5
|
+
class SalesOrdersAPI {
|
|
6
|
+
constructor(_request) {
|
|
7
|
+
this._request = _request;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new sales order.
|
|
11
|
+
* Endpoint: POST /sales/orders
|
|
12
|
+
* @param data - The data for the new sales order.
|
|
13
|
+
* @returns A promise that resolves to the created sales order.
|
|
14
|
+
*/
|
|
15
|
+
async create(data) {
|
|
16
|
+
const response = await this._request("/sales/orders", "POST", data);
|
|
17
|
+
return response.transaction;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves a paginated list of sales orders.
|
|
21
|
+
* Endpoint: GET /sales/orders
|
|
22
|
+
* @param params - Optional parameters for filtering and pagination.
|
|
23
|
+
* @returns A promise that resolves to the API response for listing sales orders.
|
|
24
|
+
*/
|
|
25
|
+
async list(params) {
|
|
26
|
+
return this._request("/sales/orders", "GET", undefined, params);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Retrieves a specific sales order by its ID.
|
|
30
|
+
* Endpoint: GET /sales/orders/{id}
|
|
31
|
+
* @param id - The ID of the sales order to retrieve.
|
|
32
|
+
* @returns A promise that resolves to the sales order.
|
|
33
|
+
*/
|
|
34
|
+
async get(id) {
|
|
35
|
+
const response = await this._request(`/sales/orders/${id}`, "GET");
|
|
36
|
+
return response.transaction;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Updates an existing sales order.
|
|
40
|
+
* Endpoint: PUT /sales/orders/{id}
|
|
41
|
+
* @param id - The ID of the sales order to update.
|
|
42
|
+
* @param data - The data to update the sales order with.
|
|
43
|
+
* @returns A promise that resolves to the updated sales order.
|
|
44
|
+
*/
|
|
45
|
+
async update(id, data) {
|
|
46
|
+
const response = await this._request(`/sales/orders/${id}`, "PUT", data);
|
|
47
|
+
return response.transaction;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Updates the status of an existing sales order.
|
|
51
|
+
* Endpoint: PATCH /sales/orders/{id}
|
|
52
|
+
* @param id - The ID of the sales order to update.
|
|
53
|
+
* @param data - The data containing the new status.
|
|
54
|
+
* @returns A promise that resolves to the updated sales order.
|
|
55
|
+
*/
|
|
56
|
+
async updateStatus(id, data) {
|
|
57
|
+
const response = await this._request(`/sales/orders/${id}`, "PATCH", data);
|
|
58
|
+
return response.transaction;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Deletes a sales order.
|
|
62
|
+
* Endpoint: DELETE /sales/orders/{id}
|
|
63
|
+
* Note: Only transactions with draft and void statuses can be deleted.
|
|
64
|
+
* @param id - The ID of the sales order to delete.
|
|
65
|
+
* @returns A promise that resolves when the sales order is deleted.
|
|
66
|
+
*/
|
|
67
|
+
async delete(id) {
|
|
68
|
+
await this._request(`/sales/orders/${id}`, "DELETE");
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.SalesOrdersAPI = SalesOrdersAPI;
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sales/sales-orders/index.ts"],"names":[],"mappings":";AAAA,kCAAkC;;;AAalC,MAAa,cAAc;IACzB,YAAoB,QAAiC;QAAjC,aAAQ,GAAR,QAAQ,CAAyB;IAAG,CAAC;IAEzD;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,IAAiC;QAEjC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAClC,eAAe,EACf,MAAM,EACN,IAAI,CACL,CAAC;QACF,OAAO,QAAQ,CAAC,WAAW,CAAC;IAC9B,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,MAAkC;QAElC,OAAO,IAAI,CAAC,QAAQ,CAClB,eAAe,EACf,KAAK,EACL,SAAS,EACT,MAAM,CACP,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CAAC,EAAmB;QAC3B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAClC,iBAAiB,EAAE,EAAE,EACrB,KAAK,CACN,CAAC;QACF,OAAO,QAAQ,CAAC,WAAW,CAAC;IAC9B,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CACV,EAAmB,EACnB,IAAiC;QAEjC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAClC,iBAAiB,EAAE,EAAE,EACrB,KAAK,EACL,IAAI,CACL,CAAC;QACF,OAAO,QAAQ,CAAC,WAAW,CAAC;IAC9B,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,YAAY,CAChB,EAAmB,EACnB,IAAuC;QAEvC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAClC,iBAAiB,EAAE,EAAE,EACrB,OAAO,EACP,IAAI,CACL,CAAC;QACF,OAAO,QAAQ,CAAC,WAAW,CAAC;IAC9B,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CAAC,EAAmB;QAC9B,MAAM,IAAI,CAAC,QAAQ,CAAO,iBAAiB,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAC;IAC7D,CAAC;CACF;AAnGD,wCAmGC"}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { BukkuEmailDetails, BukkuFileAttachment, BukkuAttachedFileResponse, BukkuListPagination, BukkuFormItem } from "../../common/type";
|
|
2
|
+
/**
|
|
3
|
+
* Parameters for creating a Bukku Sales Order.
|
|
4
|
+
* Based on POST /sales/orders
|
|
5
|
+
*/
|
|
6
|
+
export interface BukkuSalesOrderCreateParams {
|
|
7
|
+
contact_id: number;
|
|
8
|
+
number?: string;
|
|
9
|
+
number2?: string;
|
|
10
|
+
date: string;
|
|
11
|
+
currency_code: string;
|
|
12
|
+
exchange_rate: number;
|
|
13
|
+
billing_party?: string;
|
|
14
|
+
show_shipping?: boolean;
|
|
15
|
+
shipping_party?: string;
|
|
16
|
+
shipping_info?: string;
|
|
17
|
+
tag_ids?: number[];
|
|
18
|
+
term_id?: number;
|
|
19
|
+
title?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
remarks?: string;
|
|
22
|
+
tax_mode: "inclusive" | "exclusive";
|
|
23
|
+
form_items: Array<BukkuSalesOrderFormItemCreateParams>;
|
|
24
|
+
status: "draft" | "pending_approval" | "ready";
|
|
25
|
+
email?: BukkuEmailDetails;
|
|
26
|
+
files?: Array<BukkuFileAttachment>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Represents a form item for creating a Bukku Sales Order.
|
|
30
|
+
*/
|
|
31
|
+
export interface BukkuSalesOrderFormItemCreateParams {
|
|
32
|
+
/** The id of the item, required when you're updating an item. */
|
|
33
|
+
id?: number;
|
|
34
|
+
/** The transferred item's id, required for transfer items. Obtained from the to be transferred transaction's form_item's ID. */
|
|
35
|
+
transfer_item_id?: number;
|
|
36
|
+
/** The type of the item, leave null for normal item. */
|
|
37
|
+
type?: null | "bundle" | "subtitle" | "subtotal";
|
|
38
|
+
/** The account of the item, required for normal item. */
|
|
39
|
+
account_id?: number;
|
|
40
|
+
/** The description of the item, required for normal / bundle & subtitle items. */
|
|
41
|
+
description?: string;
|
|
42
|
+
/** The service date of the item, following format YYYY-MM-DD. */
|
|
43
|
+
service_date?: string;
|
|
44
|
+
/** The product of the item. */
|
|
45
|
+
product_id?: number;
|
|
46
|
+
/** The product unit / UOM of the product, leave blank to use the product's default unit. */
|
|
47
|
+
product_unit_id?: number;
|
|
48
|
+
/** The location of the product, used for inventory product, leave blank to use the system default location. */
|
|
49
|
+
location_id?: number;
|
|
50
|
+
/** The unit price of the item, supports up to 4 decimal points, required for normal items. */
|
|
51
|
+
unit_price?: number;
|
|
52
|
+
/** The quantity of the item, supports up to 4 decimal points, required for normal items. */
|
|
53
|
+
quantity?: number;
|
|
54
|
+
/** The discount of the item, supports value (eg. 255.12) or percentage (eg. 10%). Max 14 chars. */
|
|
55
|
+
discount?: string;
|
|
56
|
+
/** The tax code of the item. */
|
|
57
|
+
tax_code_id?: number;
|
|
58
|
+
/** The child items, used by bundle. */
|
|
59
|
+
children?: BukkuSalesOrderFormItemCreateParams[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Represents a Bukku Sales Order object as returned by the API (e.g., in the 'transaction' field of a response).
|
|
63
|
+
*/
|
|
64
|
+
export interface BukkuSalesOrder {
|
|
65
|
+
id: number;
|
|
66
|
+
contact_id: number;
|
|
67
|
+
contact_name?: string;
|
|
68
|
+
number?: string;
|
|
69
|
+
number2?: string;
|
|
70
|
+
date: string;
|
|
71
|
+
currency_code: string;
|
|
72
|
+
currency_symbol?: string;
|
|
73
|
+
exchange_rate: number;
|
|
74
|
+
billing_party?: string;
|
|
75
|
+
show_shipping?: boolean;
|
|
76
|
+
shipping_info?: string;
|
|
77
|
+
shipping_party?: string;
|
|
78
|
+
tag_ids?: number[];
|
|
79
|
+
tag_names?: string[];
|
|
80
|
+
term_id?: number;
|
|
81
|
+
term_name?: string;
|
|
82
|
+
title?: string;
|
|
83
|
+
description?: string;
|
|
84
|
+
remarks?: string;
|
|
85
|
+
tax_mode: "inclusive" | "exclusive";
|
|
86
|
+
form_items: BukkuFormItem[];
|
|
87
|
+
amount?: number;
|
|
88
|
+
status: string;
|
|
89
|
+
type?: string;
|
|
90
|
+
short_link?: string;
|
|
91
|
+
files?: BukkuAttachedFileResponse[];
|
|
92
|
+
created_at?: string;
|
|
93
|
+
updated_at?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Represents the API response structure when a sales order is created or retrieved.
|
|
97
|
+
*/
|
|
98
|
+
export interface BukkuSalesOrderResponse {
|
|
99
|
+
transaction: BukkuSalesOrder;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Parameters for updating a Bukku Sales Order.
|
|
103
|
+
* Based on PUT /sales/orders/{id}
|
|
104
|
+
* Similar to CreateParams, but 'number' is required and 'status' is omitted.
|
|
105
|
+
*/
|
|
106
|
+
export interface BukkuSalesOrderUpdateParams {
|
|
107
|
+
contact_id: number;
|
|
108
|
+
number: string;
|
|
109
|
+
number2?: string;
|
|
110
|
+
date: string;
|
|
111
|
+
currency_code: string;
|
|
112
|
+
exchange_rate: number;
|
|
113
|
+
billing_party?: string;
|
|
114
|
+
show_shipping?: boolean;
|
|
115
|
+
shipping_party?: string;
|
|
116
|
+
shipping_info?: string;
|
|
117
|
+
tag_ids?: number[];
|
|
118
|
+
term_id?: number;
|
|
119
|
+
title?: string;
|
|
120
|
+
description?: string;
|
|
121
|
+
remarks?: string;
|
|
122
|
+
tax_mode: "inclusive" | "exclusive";
|
|
123
|
+
form_items: Array<BukkuSalesOrderFormItemCreateParams>;
|
|
124
|
+
email?: BukkuEmailDetails;
|
|
125
|
+
files?: Array<BukkuFileAttachment>;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Parameters for updating the status of a Bukku Sales Order.
|
|
129
|
+
* Based on PATCH /sales/orders/{id}
|
|
130
|
+
*/
|
|
131
|
+
export interface BukkuSalesOrderStatusUpdateParams {
|
|
132
|
+
/** The new status for the sales order. */
|
|
133
|
+
status: "ready" | "draft" | "pending_approval" | "void";
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Parameters for listing Bukku Sales Orders (GET /sales/orders).
|
|
137
|
+
*/
|
|
138
|
+
export interface BukkuSalesOrderListParams {
|
|
139
|
+
/** Search for keywords in No., Reference No., Title, Remarks, Description, Contact Name, Billing Party & Shipping Party. Max 100 chars. */
|
|
140
|
+
search?: string;
|
|
141
|
+
/** Search for keywords within custom fields, use format DD/MM/YYYY for a date. Max 100 chars. */
|
|
142
|
+
custom_search?: string;
|
|
143
|
+
/** Search by contact ID. */
|
|
144
|
+
contact_id?: number;
|
|
145
|
+
/** Search for transactions on and after the date (YYYY-MM-DD). */
|
|
146
|
+
date_from?: string;
|
|
147
|
+
/** Search for transactions on and before the date (YYYY-MM-DD). */
|
|
148
|
+
date_to?: string;
|
|
149
|
+
/** Search by status, default to All but Void. */
|
|
150
|
+
status?: "all" | "draft" | "pending_approval" | "ready" | "void";
|
|
151
|
+
/** Search by the latest email status. */
|
|
152
|
+
email_status?: "UNSENT" | "PENDING" | "SENT" | "BOUNCED" | "OPENED" | "VIEWED";
|
|
153
|
+
/** Search by transfer status. */
|
|
154
|
+
transfer_status?: "ALL" | "NOT_TRANSFERRED" | "PARTIAL_TRANSFERRED" | "TRANSFERRED";
|
|
155
|
+
/** The current page number. Default: 1, Min: 1. */
|
|
156
|
+
page?: number;
|
|
157
|
+
/** Number of records per page. Default: 30. */
|
|
158
|
+
page_size?: number;
|
|
159
|
+
/** Sort by field. */
|
|
160
|
+
sort_by?: "number" | "date" | "contact_name" | "number2" | "title" | "description" | "amount" | "created_at";
|
|
161
|
+
/** Sort the list in ascending or descending order. */
|
|
162
|
+
sort_dir?: "asc" | "desc";
|
|
163
|
+
[key: string]: any;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Represents a summary of a Bukku Sales Order as it appears in a list.
|
|
167
|
+
* This structure is an assumption based on typical list item summaries and quotation list items.
|
|
168
|
+
*/
|
|
169
|
+
export interface BukkuSalesOrderListItem {
|
|
170
|
+
id: number;
|
|
171
|
+
number?: string;
|
|
172
|
+
number2?: string;
|
|
173
|
+
contact_id: number;
|
|
174
|
+
contact_name?: string;
|
|
175
|
+
contact_email?: string;
|
|
176
|
+
date: string;
|
|
177
|
+
billing_party?: string;
|
|
178
|
+
shipping_party?: string;
|
|
179
|
+
tag_names?: string[];
|
|
180
|
+
title?: string;
|
|
181
|
+
description?: string;
|
|
182
|
+
currency_code: string;
|
|
183
|
+
currency_symbol?: string;
|
|
184
|
+
exchange_rate: number;
|
|
185
|
+
amount?: number;
|
|
186
|
+
status: string;
|
|
187
|
+
transfer_status?: string;
|
|
188
|
+
email_status?: string;
|
|
189
|
+
file_count?: number;
|
|
190
|
+
short_link?: string;
|
|
191
|
+
created_by?: string;
|
|
192
|
+
created_at: string;
|
|
193
|
+
updated_at: string;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Represents the API response structure for listing sales orders.
|
|
197
|
+
*/
|
|
198
|
+
export interface BukkuSalesOrderListApiResponse {
|
|
199
|
+
paging: BukkuListPagination;
|
|
200
|
+
transactions: BukkuSalesOrderListItem[];
|
|
201
|
+
}
|
|
202
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/sales/sales-orders/type.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,aAAa,EACd,MAAM,mBAAmB,CAAC;AAE3B;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,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