@servicetitan/moneyout-api-client 1.35.0-beta.152 → 1.35.0-beta.154
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/card-transactions.api.d.ts +135 -0
- package/dist/card-transactions.api.d.ts.map +1 -0
- package/dist/card-transactions.api.js +140 -0
- package/dist/card-transactions.api.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { AxiosPromise, CancelToken } from 'axios';
|
|
2
|
+
export interface ICardTransactions {
|
|
3
|
+
/**
|
|
4
|
+
* List card transactions with optional filters.
|
|
5
|
+
* @ids (optional) Filter by row id — the `card_transactions` parent's own id (the id every row in this
|
|
6
|
+
endpoint's response carries), not the linked expense transaction's id.
|
|
7
|
+
* @vendorIds (optional) Filter by vendor IDs. Matches Expense rows only; never matches BillPayment rows.
|
|
8
|
+
* @jobIds (optional) Filter by job IDs. Matches Expense rows only.
|
|
9
|
+
* @projectIds (optional) Filter by project IDs. Matches Expense rows only.
|
|
10
|
+
* @cardholderIds (optional) Filter by cardholder directory IDs. Matches Expense rows only. An unknown, foreign, or retired
|
|
11
|
+
id matches nothing (no existence check) — same behavior as Ids.
|
|
12
|
+
* @purchaseOrderIds (optional) Filter by purchase order IDs. Matches Expense rows only; never matches BillPayment rows (no
|
|
13
|
+
linked purchase order to compare against). An unknown, foreign, or retired id matches nothing
|
|
14
|
+
(no existence check).
|
|
15
|
+
* @syncStatuses (optional) Filter by sync statuses (e.g. "Pending", "Posted", "Exported"). Matches Expense rows only.
|
|
16
|
+
* @transactionStatuses (optional) Filter by transaction statuses (e.g. "Pending", "Complete", "Declined"). Matches Expense rows only.
|
|
17
|
+
* @receiptStatuses (optional) Filter by receipt statuses (e.g. "Missing", "Attached", "Verified"). Matches Expense rows only.
|
|
18
|
+
* @dateFrom (optional) Filter by transaction date (inclusive start).
|
|
19
|
+
* @dateTo (optional) Filter by transaction date (inclusive end).
|
|
20
|
+
* @businessUnitIds (optional) Filter by business unit IDs. Matches Expense rows only.
|
|
21
|
+
* @needsReview (optional) Filter by review state. Matches Expense rows only; see NeedsReview for the tri-state semantics this mirrors.
|
|
22
|
+
* @searchTerm (optional) Case-insensitive substring search across the raw merchant/cardholder name (every row) and — for
|
|
23
|
+
Expense rows only — vendor name, job/project number (`StReferenceNumber`), and PO number.
|
|
24
|
+
Trimmed before matching; empty or whitespace-only is treated as omitted. Composes conjunctively
|
|
25
|
+
with every other filter on this request.
|
|
26
|
+
* @page (optional) Page number (1-based). Defaults to 1.
|
|
27
|
+
* @pageSize (optional) Number of items per page. Defaults to 50.
|
|
28
|
+
* @sortBy (optional) Property name to sort by (e.g. "transactionDate", "total"). Defaults to "transactionDate".
|
|
29
|
+
* @sortDirection (optional) Sort direction: "asc" or "desc". Defaults to "desc".
|
|
30
|
+
*/
|
|
31
|
+
list(tenantId: number, ids: string[] | null | undefined, vendorIds: number[] | null | undefined, jobIds: number[] | null | undefined, projectIds: number[] | null | undefined, cardholderIds: string[] | null | undefined, purchaseOrderIds: number[] | null | undefined, syncStatuses: string[] | null | undefined, transactionStatuses: string[] | null | undefined, receiptStatuses: string[] | null | undefined, dateFrom: Date | null | undefined, dateTo: Date | null | undefined, businessUnitIds: number[] | null | undefined, needsReview: boolean | null | undefined, searchTerm: string | null | undefined, page: number | undefined, pageSize: number | undefined, sortBy: string | null | undefined, sortDirection: string | null | undefined, cancelToken?: CancelToken): AxiosPromise<PagedResponseOfCardTransactionResponse>;
|
|
32
|
+
}
|
|
33
|
+
export declare const BASE_URL_TOKEN_CardTransactions: import("@servicetitan/react-ioc").SymbolToken<string>;
|
|
34
|
+
export declare class CardTransactions implements ICardTransactions {
|
|
35
|
+
private readonly baseUrl;
|
|
36
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
37
|
+
constructor(baseUrl?: string);
|
|
38
|
+
/**
|
|
39
|
+
* List card transactions with optional filters.
|
|
40
|
+
* @ids (optional) Filter by row id — the `card_transactions` parent's own id (the id every row in this
|
|
41
|
+
endpoint's response carries), not the linked expense transaction's id.
|
|
42
|
+
* @vendorIds (optional) Filter by vendor IDs. Matches Expense rows only; never matches BillPayment rows.
|
|
43
|
+
* @jobIds (optional) Filter by job IDs. Matches Expense rows only.
|
|
44
|
+
* @projectIds (optional) Filter by project IDs. Matches Expense rows only.
|
|
45
|
+
* @cardholderIds (optional) Filter by cardholder directory IDs. Matches Expense rows only. An unknown, foreign, or retired
|
|
46
|
+
id matches nothing (no existence check) — same behavior as Ids.
|
|
47
|
+
* @purchaseOrderIds (optional) Filter by purchase order IDs. Matches Expense rows only; never matches BillPayment rows (no
|
|
48
|
+
linked purchase order to compare against). An unknown, foreign, or retired id matches nothing
|
|
49
|
+
(no existence check).
|
|
50
|
+
* @syncStatuses (optional) Filter by sync statuses (e.g. "Pending", "Posted", "Exported"). Matches Expense rows only.
|
|
51
|
+
* @transactionStatuses (optional) Filter by transaction statuses (e.g. "Pending", "Complete", "Declined"). Matches Expense rows only.
|
|
52
|
+
* @receiptStatuses (optional) Filter by receipt statuses (e.g. "Missing", "Attached", "Verified"). Matches Expense rows only.
|
|
53
|
+
* @dateFrom (optional) Filter by transaction date (inclusive start).
|
|
54
|
+
* @dateTo (optional) Filter by transaction date (inclusive end).
|
|
55
|
+
* @businessUnitIds (optional) Filter by business unit IDs. Matches Expense rows only.
|
|
56
|
+
* @needsReview (optional) Filter by review state. Matches Expense rows only; see NeedsReview for the tri-state semantics this mirrors.
|
|
57
|
+
* @searchTerm (optional) Case-insensitive substring search across the raw merchant/cardholder name (every row) and — for
|
|
58
|
+
Expense rows only — vendor name, job/project number (`StReferenceNumber`), and PO number.
|
|
59
|
+
Trimmed before matching; empty or whitespace-only is treated as omitted. Composes conjunctively
|
|
60
|
+
with every other filter on this request.
|
|
61
|
+
* @page (optional) Page number (1-based). Defaults to 1.
|
|
62
|
+
* @pageSize (optional) Number of items per page. Defaults to 50.
|
|
63
|
+
* @sortBy (optional) Property name to sort by (e.g. "transactionDate", "total"). Defaults to "transactionDate".
|
|
64
|
+
* @sortDirection (optional) Sort direction: "asc" or "desc". Defaults to "desc".
|
|
65
|
+
*/
|
|
66
|
+
list(tenantId: number, ids: string[] | null | undefined, vendorIds: number[] | null | undefined, jobIds: number[] | null | undefined, projectIds: number[] | null | undefined, cardholderIds: string[] | null | undefined, purchaseOrderIds: number[] | null | undefined, syncStatuses: string[] | null | undefined, transactionStatuses: string[] | null | undefined, receiptStatuses: string[] | null | undefined, dateFrom: Date | null | undefined, dateTo: Date | null | undefined, businessUnitIds: number[] | null | undefined, needsReview: boolean | null | undefined, searchTerm: string | null | undefined, page: number | undefined, pageSize: number | undefined, sortBy: string | null | undefined, sortDirection: string | null | undefined, cancelToken?: CancelToken): AxiosPromise<PagedResponseOfCardTransactionResponse>;
|
|
67
|
+
}
|
|
68
|
+
/** Generic paged response wrapper with total count for pagination support. */
|
|
69
|
+
export interface PagedResponseOfCardTransactionResponse {
|
|
70
|
+
/** Data collection */
|
|
71
|
+
data: CardTransactionResponse[];
|
|
72
|
+
/** Current page number */
|
|
73
|
+
page: number;
|
|
74
|
+
/** Page size */
|
|
75
|
+
pageSize: number;
|
|
76
|
+
/** Total count of items (null if pagination not required) */
|
|
77
|
+
totalCount?: number | undefined;
|
|
78
|
+
/** Whether there are more pages */
|
|
79
|
+
hasMore: boolean;
|
|
80
|
+
}
|
|
81
|
+
export interface BaseEntityApiModel {
|
|
82
|
+
id: string;
|
|
83
|
+
createdOn: Date;
|
|
84
|
+
modifiedOn: Date;
|
|
85
|
+
}
|
|
86
|
+
/** Response row for `GET /v1/tenant/{tenantId}/card-transactions`. `Id` (from BaseEntityApiModel) is the `card_transactions` parent row's own id. This phase returns `Expense`-typed rows only — `BillPayment` rows arrive phase 4. */
|
|
87
|
+
export interface CardTransactionResponse extends BaseEntityApiModel {
|
|
88
|
+
/** Tenant that owns this row. */
|
|
89
|
+
tenantId: number;
|
|
90
|
+
/** Discriminates Expense vs BillPayment. Non-nullable — every row carries a definite type, driven
|
|
91
|
+
by ingest-time classification (never inferred). String wire convention matches
|
|
92
|
+
`ExpenseTransactionResponse.TransactionStatus`/`SyncStatus`. */
|
|
93
|
+
transactionType: string;
|
|
94
|
+
/** Merchant name as reported by the external card provider, verbatim (parent-level, present on
|
|
95
|
+
both types). Independent of VendorName — never overwrites and is never overwritten
|
|
96
|
+
by it. */
|
|
97
|
+
externalMerchantName?: string | undefined;
|
|
98
|
+
/** Resolved ServiceTitan vendor name (Expense rows only; null for BillPayment, and null when the
|
|
99
|
+
Expense row's vendor does not resolve against the tenant's `Vendors` mirror — never coerced
|
|
100
|
+
to ExternalMerchantName in that case). */
|
|
101
|
+
vendorName?: string | undefined;
|
|
102
|
+
/** The date the transaction occurred (from card statement). */
|
|
103
|
+
transactionDate?: Date | undefined;
|
|
104
|
+
/** Transaction total as reported by the provider. */
|
|
105
|
+
total: number;
|
|
106
|
+
/** Identifier from the external card provider. */
|
|
107
|
+
externalId?: string | undefined;
|
|
108
|
+
/** Name of the external provider (e.g. "Ramp"). */
|
|
109
|
+
externalSource?: string | undefined;
|
|
110
|
+
/** Cardholder display name as reported by the provider, verbatim. */
|
|
111
|
+
cardholderName?: string | undefined;
|
|
112
|
+
/** Cardholder email as reported by the provider, verbatim. */
|
|
113
|
+
cardholderEmail?: string | undefined;
|
|
114
|
+
/** Last 4 digits of the card number. */
|
|
115
|
+
cardNumberLast4?: string | undefined;
|
|
116
|
+
/** Card identifier from the external provider. */
|
|
117
|
+
externalCardId?: string | undefined;
|
|
118
|
+
/** Human-readable merchant category (e.g. "Supermarkets and grocery stores"). */
|
|
119
|
+
merchantCategory?: string | undefined;
|
|
120
|
+
/** Numeric ISO 18245 Merchant Category Code (MCC), e.g. "5411". */
|
|
121
|
+
merchantCategoryCode?: string | undefined;
|
|
122
|
+
/** ISO description paired with the MCC, e.g. "Grocery Stores, Supermarkets". */
|
|
123
|
+
merchantCategoryCodeDescription?: string | undefined;
|
|
124
|
+
/** Raw bank-statement descriptor for the charge. */
|
|
125
|
+
merchantDescriptor?: string | undefined;
|
|
126
|
+
/** City of the merchant (card acceptor) location reported by the provider. */
|
|
127
|
+
merchantLocationCity?: string | undefined;
|
|
128
|
+
/** State/region of the merchant (card acceptor) location reported by the provider. */
|
|
129
|
+
merchantLocationState?: string | undefined;
|
|
130
|
+
/** Postal/ZIP code of the merchant (card acceptor) location reported by the provider. */
|
|
131
|
+
merchantLocationPostalCode?: string | undefined;
|
|
132
|
+
/** Country of the merchant (card acceptor) location reported by the provider. */
|
|
133
|
+
merchantLocationCountry?: string | undefined;
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=card-transactions.api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-transactions.api.d.ts","sourceRoot":"","sources":["../src/card-transactions.api.ts"],"names":[],"mappings":"AASA,OAAc,EAAsB,YAAY,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAM7E,MAAM,WAAW,iBAAiB;IAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,eAAe,EAA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|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
}
|
|
20
|
+
function _ts_metadata(k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
}
|
|
23
|
+
function _ts_param(paramIndex, decorator) {
|
|
24
|
+
return function(target, key) {
|
|
25
|
+
decorator(target, key, paramIndex);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/* tslint:disable */ /* eslint-disable */ //----------------------
|
|
29
|
+
// <auto-generated>
|
|
30
|
+
// Generated with ApiClientGenerator, using the NSwag toolchain
|
|
31
|
+
// </auto-generated>
|
|
32
|
+
//----------------------
|
|
33
|
+
// ReSharper disable InconsistentNaming
|
|
34
|
+
import axios from 'axios';
|
|
35
|
+
import { injectable, inject, optional, symbolToken } from '@servicetitan/react-ioc';
|
|
36
|
+
import { makeCodedException } from './utils';
|
|
37
|
+
export const BASE_URL_TOKEN_CardTransactions = symbolToken('BASE_URL_TOKEN', false);
|
|
38
|
+
export class CardTransactions {
|
|
39
|
+
/**
|
|
40
|
+
* List card transactions with optional filters.
|
|
41
|
+
* @ids (optional) Filter by row id — the `card_transactions` parent's own id (the id every row in this
|
|
42
|
+
endpoint's response carries), not the linked expense transaction's id.
|
|
43
|
+
* @vendorIds (optional) Filter by vendor IDs. Matches Expense rows only; never matches BillPayment rows.
|
|
44
|
+
* @jobIds (optional) Filter by job IDs. Matches Expense rows only.
|
|
45
|
+
* @projectIds (optional) Filter by project IDs. Matches Expense rows only.
|
|
46
|
+
* @cardholderIds (optional) Filter by cardholder directory IDs. Matches Expense rows only. An unknown, foreign, or retired
|
|
47
|
+
id matches nothing (no existence check) — same behavior as Ids.
|
|
48
|
+
* @purchaseOrderIds (optional) Filter by purchase order IDs. Matches Expense rows only; never matches BillPayment rows (no
|
|
49
|
+
linked purchase order to compare against). An unknown, foreign, or retired id matches nothing
|
|
50
|
+
(no existence check).
|
|
51
|
+
* @syncStatuses (optional) Filter by sync statuses (e.g. "Pending", "Posted", "Exported"). Matches Expense rows only.
|
|
52
|
+
* @transactionStatuses (optional) Filter by transaction statuses (e.g. "Pending", "Complete", "Declined"). Matches Expense rows only.
|
|
53
|
+
* @receiptStatuses (optional) Filter by receipt statuses (e.g. "Missing", "Attached", "Verified"). Matches Expense rows only.
|
|
54
|
+
* @dateFrom (optional) Filter by transaction date (inclusive start).
|
|
55
|
+
* @dateTo (optional) Filter by transaction date (inclusive end).
|
|
56
|
+
* @businessUnitIds (optional) Filter by business unit IDs. Matches Expense rows only.
|
|
57
|
+
* @needsReview (optional) Filter by review state. Matches Expense rows only; see NeedsReview for the tri-state semantics this mirrors.
|
|
58
|
+
* @searchTerm (optional) Case-insensitive substring search across the raw merchant/cardholder name (every row) and — for
|
|
59
|
+
Expense rows only — vendor name, job/project number (`StReferenceNumber`), and PO number.
|
|
60
|
+
Trimmed before matching; empty or whitespace-only is treated as omitted. Composes conjunctively
|
|
61
|
+
with every other filter on this request.
|
|
62
|
+
* @page (optional) Page number (1-based). Defaults to 1.
|
|
63
|
+
* @pageSize (optional) Number of items per page. Defaults to 50.
|
|
64
|
+
* @sortBy (optional) Property name to sort by (e.g. "transactionDate", "total"). Defaults to "transactionDate".
|
|
65
|
+
* @sortDirection (optional) Sort direction: "asc" or "desc". Defaults to "desc".
|
|
66
|
+
*/ list(tenantId, ids, vendorIds, jobIds, projectIds, cardholderIds, purchaseOrderIds, syncStatuses, transactionStatuses, receiptStatuses, dateFrom, dateTo, businessUnitIds, needsReview, searchTerm, page, pageSize, sortBy, sortDirection, cancelToken) {
|
|
67
|
+
let url_ = "/v1/tenant/{tenantId}/card-transactions?";
|
|
68
|
+
if (tenantId === undefined || tenantId === null) throw new Error("The parameter 'tenantId' must be defined.");
|
|
69
|
+
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
70
|
+
if (ids !== undefined && ids !== null) ids && ids.forEach((item)=>{
|
|
71
|
+
url_ += "ids=" + encodeURIComponent("" + item) + "&";
|
|
72
|
+
});
|
|
73
|
+
if (vendorIds !== undefined && vendorIds !== null) vendorIds && vendorIds.forEach((item)=>{
|
|
74
|
+
url_ += "vendorIds=" + encodeURIComponent("" + item) + "&";
|
|
75
|
+
});
|
|
76
|
+
if (jobIds !== undefined && jobIds !== null) jobIds && jobIds.forEach((item)=>{
|
|
77
|
+
url_ += "jobIds=" + encodeURIComponent("" + item) + "&";
|
|
78
|
+
});
|
|
79
|
+
if (projectIds !== undefined && projectIds !== null) projectIds && projectIds.forEach((item)=>{
|
|
80
|
+
url_ += "projectIds=" + encodeURIComponent("" + item) + "&";
|
|
81
|
+
});
|
|
82
|
+
if (cardholderIds !== undefined && cardholderIds !== null) cardholderIds && cardholderIds.forEach((item)=>{
|
|
83
|
+
url_ += "cardholderIds=" + encodeURIComponent("" + item) + "&";
|
|
84
|
+
});
|
|
85
|
+
if (purchaseOrderIds !== undefined && purchaseOrderIds !== null) purchaseOrderIds && purchaseOrderIds.forEach((item)=>{
|
|
86
|
+
url_ += "purchaseOrderIds=" + encodeURIComponent("" + item) + "&";
|
|
87
|
+
});
|
|
88
|
+
if (syncStatuses !== undefined && syncStatuses !== null) syncStatuses && syncStatuses.forEach((item)=>{
|
|
89
|
+
url_ += "syncStatuses=" + encodeURIComponent("" + item) + "&";
|
|
90
|
+
});
|
|
91
|
+
if (transactionStatuses !== undefined && transactionStatuses !== null) transactionStatuses && transactionStatuses.forEach((item)=>{
|
|
92
|
+
url_ += "transactionStatuses=" + encodeURIComponent("" + item) + "&";
|
|
93
|
+
});
|
|
94
|
+
if (receiptStatuses !== undefined && receiptStatuses !== null) receiptStatuses && receiptStatuses.forEach((item)=>{
|
|
95
|
+
url_ += "receiptStatuses=" + encodeURIComponent("" + item) + "&";
|
|
96
|
+
});
|
|
97
|
+
if (dateFrom !== undefined && dateFrom !== null) url_ += "dateFrom=" + encodeURIComponent(dateFrom ? "" + dateFrom.toJSON() : "") + "&";
|
|
98
|
+
if (dateTo !== undefined && dateTo !== null) url_ += "dateTo=" + encodeURIComponent(dateTo ? "" + dateTo.toJSON() : "") + "&";
|
|
99
|
+
if (businessUnitIds !== undefined && businessUnitIds !== null) businessUnitIds && businessUnitIds.forEach((item)=>{
|
|
100
|
+
url_ += "businessUnitIds=" + encodeURIComponent("" + item) + "&";
|
|
101
|
+
});
|
|
102
|
+
if (needsReview !== undefined && needsReview !== null) url_ += "needsReview=" + encodeURIComponent("" + needsReview) + "&";
|
|
103
|
+
if (searchTerm !== undefined && searchTerm !== null) url_ += "searchTerm=" + encodeURIComponent("" + searchTerm) + "&";
|
|
104
|
+
if (page === null) throw new Error("The parameter 'page' cannot be null.");
|
|
105
|
+
else if (page !== undefined) url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
106
|
+
if (pageSize === null) throw new Error("The parameter 'pageSize' cannot be null.");
|
|
107
|
+
else if (pageSize !== undefined) url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
108
|
+
if (sortBy !== undefined && sortBy !== null) url_ += "sortBy=" + encodeURIComponent("" + sortBy) + "&";
|
|
109
|
+
if (sortDirection !== undefined && sortDirection !== null) url_ += "sortDirection=" + encodeURIComponent("" + sortDirection) + "&";
|
|
110
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
111
|
+
let options_ = {
|
|
112
|
+
baseURL: this.baseUrl,
|
|
113
|
+
cancelToken,
|
|
114
|
+
url: url_,
|
|
115
|
+
method: "GET",
|
|
116
|
+
headers: {
|
|
117
|
+
"Content-Type": "application/json",
|
|
118
|
+
"Accept": "application/json"
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
return makeCodedException(axios.request(options_));
|
|
122
|
+
}
|
|
123
|
+
constructor(baseUrl = ""){
|
|
124
|
+
_define_property(this, "baseUrl", void 0);
|
|
125
|
+
_define_property(this, "jsonParseReviver", void 0);
|
|
126
|
+
this.baseUrl = baseUrl;
|
|
127
|
+
this.jsonParseReviver = undefined;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
CardTransactions = _ts_decorate([
|
|
131
|
+
injectable(),
|
|
132
|
+
_ts_param(0, inject(BASE_URL_TOKEN_CardTransactions)),
|
|
133
|
+
_ts_param(0, optional()),
|
|
134
|
+
_ts_metadata("design:type", Function),
|
|
135
|
+
_ts_metadata("design:paramtypes", [
|
|
136
|
+
void 0
|
|
137
|
+
])
|
|
138
|
+
], CardTransactions);
|
|
139
|
+
|
|
140
|
+
//# sourceMappingURL=card-transactions.api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/card-transactions.api.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n//----------------------\n// <auto-generated>\n// Generated with ApiClientGenerator, using the NSwag toolchain\n// </auto-generated>\n//----------------------\n// ReSharper disable InconsistentNaming\n\nimport axios, { AxiosRequestConfig, AxiosPromise, CancelToken } from 'axios';\nimport { injectable, inject, optional, symbolToken } from '@servicetitan/react-ioc';\nimport { makeCodedException, makeContent } from './utils';\n// @ts-ignore: needed for Date serialization if a DateTime parameter has an Unspecified attribute on it\nimport moment from 'moment';\n\nexport interface ICardTransactions {\n /**\n * List card transactions with optional filters.\n * @ids (optional) Filter by row id — the `card_transactions` parent's own id (the id every row in this\n endpoint's response carries), not the linked expense transaction's id.\n * @vendorIds (optional) Filter by vendor IDs. Matches Expense rows only; never matches BillPayment rows.\n * @jobIds (optional) Filter by job IDs. Matches Expense rows only.\n * @projectIds (optional) Filter by project IDs. Matches Expense rows only.\n * @cardholderIds (optional) Filter by cardholder directory IDs. Matches Expense rows only. An unknown, foreign, or retired\n id matches nothing (no existence check) — same behavior as Ids.\n * @purchaseOrderIds (optional) Filter by purchase order IDs. Matches Expense rows only; never matches BillPayment rows (no\n linked purchase order to compare against). An unknown, foreign, or retired id matches nothing\n (no existence check).\n * @syncStatuses (optional) Filter by sync statuses (e.g. \"Pending\", \"Posted\", \"Exported\"). Matches Expense rows only.\n * @transactionStatuses (optional) Filter by transaction statuses (e.g. \"Pending\", \"Complete\", \"Declined\"). Matches Expense rows only.\n * @receiptStatuses (optional) Filter by receipt statuses (e.g. \"Missing\", \"Attached\", \"Verified\"). Matches Expense rows only.\n * @dateFrom (optional) Filter by transaction date (inclusive start).\n * @dateTo (optional) Filter by transaction date (inclusive end).\n * @businessUnitIds (optional) Filter by business unit IDs. Matches Expense rows only.\n * @needsReview (optional) Filter by review state. Matches Expense rows only; see NeedsReview for the tri-state semantics this mirrors.\n * @searchTerm (optional) Case-insensitive substring search across the raw merchant/cardholder name (every row) and — for\n Expense rows only — vendor name, job/project number (`StReferenceNumber`), and PO number.\n Trimmed before matching; empty or whitespace-only is treated as omitted. Composes conjunctively\n with every other filter on this request.\n * @page (optional) Page number (1-based). Defaults to 1.\n * @pageSize (optional) Number of items per page. Defaults to 50.\n * @sortBy (optional) Property name to sort by (e.g. \"transactionDate\", \"total\"). Defaults to \"transactionDate\".\n * @sortDirection (optional) Sort direction: \"asc\" or \"desc\". Defaults to \"desc\".\n */\n list(tenantId: number, ids: string[] | null | undefined, vendorIds: number[] | null | undefined, jobIds: number[] | null | undefined, projectIds: number[] | null | undefined, cardholderIds: string[] | null | undefined, purchaseOrderIds: number[] | null | undefined, syncStatuses: string[] | null | undefined, transactionStatuses: string[] | null | undefined, receiptStatuses: string[] | null | undefined, dateFrom: Date | null | undefined, dateTo: Date | null | undefined, businessUnitIds: number[] | null | undefined, needsReview: boolean | null | undefined, searchTerm: string | null | undefined, page: number | undefined, pageSize: number | undefined, sortBy: string | null | undefined, sortDirection: string | null | undefined, cancelToken?: CancelToken): AxiosPromise<PagedResponseOfCardTransactionResponse>;\n}\n\nexport const BASE_URL_TOKEN_CardTransactions = symbolToken<string>('BASE_URL_TOKEN', false);\n\n@injectable()\nexport class CardTransactions implements ICardTransactions {\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\n\n constructor(@inject(BASE_URL_TOKEN_CardTransactions) @optional() private readonly baseUrl = \"\") {\n }\n\n /**\n * List card transactions with optional filters.\n * @ids (optional) Filter by row id — the `card_transactions` parent's own id (the id every row in this\n endpoint's response carries), not the linked expense transaction's id.\n * @vendorIds (optional) Filter by vendor IDs. Matches Expense rows only; never matches BillPayment rows.\n * @jobIds (optional) Filter by job IDs. Matches Expense rows only.\n * @projectIds (optional) Filter by project IDs. Matches Expense rows only.\n * @cardholderIds (optional) Filter by cardholder directory IDs. Matches Expense rows only. An unknown, foreign, or retired\n id matches nothing (no existence check) — same behavior as Ids.\n * @purchaseOrderIds (optional) Filter by purchase order IDs. Matches Expense rows only; never matches BillPayment rows (no\n linked purchase order to compare against). An unknown, foreign, or retired id matches nothing\n (no existence check).\n * @syncStatuses (optional) Filter by sync statuses (e.g. \"Pending\", \"Posted\", \"Exported\"). Matches Expense rows only.\n * @transactionStatuses (optional) Filter by transaction statuses (e.g. \"Pending\", \"Complete\", \"Declined\"). Matches Expense rows only.\n * @receiptStatuses (optional) Filter by receipt statuses (e.g. \"Missing\", \"Attached\", \"Verified\"). Matches Expense rows only.\n * @dateFrom (optional) Filter by transaction date (inclusive start).\n * @dateTo (optional) Filter by transaction date (inclusive end).\n * @businessUnitIds (optional) Filter by business unit IDs. Matches Expense rows only.\n * @needsReview (optional) Filter by review state. Matches Expense rows only; see NeedsReview for the tri-state semantics this mirrors.\n * @searchTerm (optional) Case-insensitive substring search across the raw merchant/cardholder name (every row) and — for\n Expense rows only — vendor name, job/project number (`StReferenceNumber`), and PO number.\n Trimmed before matching; empty or whitespace-only is treated as omitted. Composes conjunctively\n with every other filter on this request.\n * @page (optional) Page number (1-based). Defaults to 1.\n * @pageSize (optional) Number of items per page. Defaults to 50.\n * @sortBy (optional) Property name to sort by (e.g. \"transactionDate\", \"total\"). Defaults to \"transactionDate\".\n * @sortDirection (optional) Sort direction: \"asc\" or \"desc\". Defaults to \"desc\".\n */\n list(tenantId: number, ids: string[] | null | undefined, vendorIds: number[] | null | undefined, jobIds: number[] | null | undefined, projectIds: number[] | null | undefined, cardholderIds: string[] | null | undefined, purchaseOrderIds: number[] | null | undefined, syncStatuses: string[] | null | undefined, transactionStatuses: string[] | null | undefined, receiptStatuses: string[] | null | undefined, dateFrom: Date | null | undefined, dateTo: Date | null | undefined, businessUnitIds: number[] | null | undefined, needsReview: boolean | null | undefined, searchTerm: string | null | undefined, page: number | undefined, pageSize: number | undefined, sortBy: string | null | undefined, sortDirection: string | null | undefined, cancelToken?: CancelToken): AxiosPromise<PagedResponseOfCardTransactionResponse> {\n let url_ = \"/v1/tenant/{tenantId}/card-transactions?\";\n if (tenantId === undefined || tenantId === null)\n throw new Error(\"The parameter 'tenantId' must be defined.\");\n url_ = url_.replace(\"{tenantId}\", encodeURIComponent(\"\" + tenantId));\n if (ids !== undefined && ids !== null)\n ids && ids.forEach(item => { url_ += \"ids=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (vendorIds !== undefined && vendorIds !== null)\n vendorIds && vendorIds.forEach(item => { url_ += \"vendorIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (jobIds !== undefined && jobIds !== null)\n jobIds && jobIds.forEach(item => { url_ += \"jobIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (projectIds !== undefined && projectIds !== null)\n projectIds && projectIds.forEach(item => { url_ += \"projectIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (cardholderIds !== undefined && cardholderIds !== null)\n cardholderIds && cardholderIds.forEach(item => { url_ += \"cardholderIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (purchaseOrderIds !== undefined && purchaseOrderIds !== null)\n purchaseOrderIds && purchaseOrderIds.forEach(item => { url_ += \"purchaseOrderIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (syncStatuses !== undefined && syncStatuses !== null)\n syncStatuses && syncStatuses.forEach(item => { url_ += \"syncStatuses=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (transactionStatuses !== undefined && transactionStatuses !== null)\n transactionStatuses && transactionStatuses.forEach(item => { url_ += \"transactionStatuses=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (receiptStatuses !== undefined && receiptStatuses !== null)\n receiptStatuses && receiptStatuses.forEach(item => { url_ += \"receiptStatuses=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (dateFrom !== undefined && dateFrom !== null)\n url_ += \"dateFrom=\" + encodeURIComponent(dateFrom ? \"\" + dateFrom.toJSON() : \"\") + \"&\";\n if (dateTo !== undefined && dateTo !== null)\n url_ += \"dateTo=\" + encodeURIComponent(dateTo ? \"\" + dateTo.toJSON() : \"\") + \"&\";\n if (businessUnitIds !== undefined && businessUnitIds !== null)\n businessUnitIds && businessUnitIds.forEach(item => { url_ += \"businessUnitIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (needsReview !== undefined && needsReview !== null)\n url_ += \"needsReview=\" + encodeURIComponent(\"\" + needsReview) + \"&\";\n if (searchTerm !== undefined && searchTerm !== null)\n url_ += \"searchTerm=\" + encodeURIComponent(\"\" + searchTerm) + \"&\";\n if (page === null)\n throw new Error(\"The parameter 'page' cannot be null.\");\n else if (page !== undefined)\n url_ += \"page=\" + encodeURIComponent(\"\" + page) + \"&\";\n if (pageSize === null)\n throw new Error(\"The parameter 'pageSize' cannot be null.\");\n else if (pageSize !== undefined)\n url_ += \"pageSize=\" + encodeURIComponent(\"\" + pageSize) + \"&\";\n if (sortBy !== undefined && sortBy !== null)\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\n if (sortDirection !== undefined && sortDirection !== null)\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\n url_ = url_.replace(/[?&]$/, \"\");\n\n let options_ = <AxiosRequestConfig>{\n baseURL: this.baseUrl,\n cancelToken,\n url: url_,\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Accept\": \"application/json\"\n }\n };\n\n return makeCodedException(axios.request<PagedResponseOfCardTransactionResponse>(options_));\n }\n}\n\n/** Generic paged response wrapper with total count for pagination support. */\nexport interface PagedResponseOfCardTransactionResponse {\n /** Data collection */\n data: CardTransactionResponse[];\n /** Current page number */\n page: number;\n /** Page size */\n pageSize: number;\n /** Total count of items (null if pagination not required) */\n totalCount?: number | undefined;\n /** Whether there are more pages */\n hasMore: boolean;\n}\n\nexport interface BaseEntityApiModel {\n id: string;\n createdOn: Date;\n modifiedOn: Date;\n}\n\n/** Response row for `GET /v1/tenant/{tenantId}/card-transactions`. `Id` (from BaseEntityApiModel) is the `card_transactions` parent row's own id. This phase returns `Expense`-typed rows only — `BillPayment` rows arrive phase 4. */\nexport interface CardTransactionResponse extends BaseEntityApiModel {\n /** Tenant that owns this row. */\n tenantId: number;\n /** Discriminates Expense vs BillPayment. Non-nullable — every row carries a definite type, driven\nby ingest-time classification (never inferred). String wire convention matches\n`ExpenseTransactionResponse.TransactionStatus`/`SyncStatus`. */\n transactionType: string;\n /** Merchant name as reported by the external card provider, verbatim (parent-level, present on\nboth types). Independent of VendorName — never overwrites and is never overwritten\nby it. */\n externalMerchantName?: string | undefined;\n /** Resolved ServiceTitan vendor name (Expense rows only; null for BillPayment, and null when the\nExpense row's vendor does not resolve against the tenant's `Vendors` mirror — never coerced\nto ExternalMerchantName in that case). */\n vendorName?: string | undefined;\n /** The date the transaction occurred (from card statement). */\n transactionDate?: Date | undefined;\n /** Transaction total as reported by the provider. */\n total: number;\n /** Identifier from the external card provider. */\n externalId?: string | undefined;\n /** Name of the external provider (e.g. \"Ramp\"). */\n externalSource?: string | undefined;\n /** Cardholder display name as reported by the provider, verbatim. */\n cardholderName?: string | undefined;\n /** Cardholder email as reported by the provider, verbatim. */\n cardholderEmail?: string | undefined;\n /** Last 4 digits of the card number. */\n cardNumberLast4?: string | undefined;\n /** Card identifier from the external provider. */\n externalCardId?: string | undefined;\n /** Human-readable merchant category (e.g. \"Supermarkets and grocery stores\"). */\n merchantCategory?: string | undefined;\n /** Numeric ISO 18245 Merchant Category Code (MCC), e.g. \"5411\". */\n merchantCategoryCode?: string | undefined;\n /** ISO description paired with the MCC, e.g. \"Grocery Stores, Supermarkets\". */\n merchantCategoryCodeDescription?: string | undefined;\n /** Raw bank-statement descriptor for the charge. */\n merchantDescriptor?: string | undefined;\n /** City of the merchant (card acceptor) location reported by the provider. */\n merchantLocationCity?: string | undefined;\n /** State/region of the merchant (card acceptor) location reported by the provider. */\n merchantLocationState?: string | undefined;\n /** Postal/ZIP code of the merchant (card acceptor) location reported by the provider. */\n merchantLocationPostalCode?: string | undefined;\n /** Country of the merchant (card acceptor) location reported by the provider. */\n merchantLocationCountry?: string | undefined;\n}\n"],"names":["axios","injectable","inject","optional","symbolToken","makeCodedException","BASE_URL_TOKEN_CardTransactions","CardTransactions","list","tenantId","ids","vendorIds","jobIds","projectIds","cardholderIds","purchaseOrderIds","syncStatuses","transactionStatuses","receiptStatuses","dateFrom","dateTo","businessUnitIds","needsReview","searchTerm","page","pageSize","sortBy","sortDirection","cancelToken","url_","undefined","Error","replace","encodeURIComponent","forEach","item","toJSON","options_","baseURL","baseUrl","url","method","headers","request","jsonParseReviver"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAAkB,GAClB,kBAAkB,GAClB,wBAAwB;AACxB,mBAAmB;AACnB,mEAAmE;AACnE,oBAAoB;AACpB,wBAAwB;AACxB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,MAAM,IAAIO,MAAM;aACf,IAAIP,SAASM,WACdD,QAAQ,UAAUI,mBAAmB,KAAKT,QAAQ;QACtD,IAAIC,aAAa,MACb,MAAM,IAAIM,MAAM;aACf,IAAIN,aAAaK,WAClBD,QAAQ,cAAcI,mBAAmB,KAAKR,YAAY;QAC9D,IAAIC,WAAWI,aAAaJ,WAAW,MACnCG,QAAQ,YAAYI,mBAAmB,KAAKP,UAAU;QAC1D,IAAIC,kBAAkBG,aAAaH,kBAAkB,MACjDE,QAAQ,mBAAmBI,mBAAmB,KAAKN,iBAAiB;QACxEE,OAAOA,KAAKG,OAAO,CAAC,SAAS;QAE7B,IAAIK,WAA+B;YAC/BC,SAAS,IAAI,CAACC,OAAO;YACrBX;YACAY,KAAKX;YACLY,QAAQ;YACRC,SAAS;gBACL,gBAAgB;gBAChB,UAAU;YACd;QACJ;QAEA,OAAOrC,mBAAmBL,MAAM2C,OAAO,CAAyCN;IACpF;IA1FA,YAAY,AAAsEE,UAAU,EAAE,CAAE;;QAFhG,uBAAUK,oBAAV,KAAA;aAEkFL,UAAAA;aAFxEK,mBAAmEd;IAG7E;AA0FJ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * as ApBillApprovalSettingsV2 from './ap-bill-approval-settings-v2.api';
|
|
2
2
|
export * as ApBillApprovalV2 from './ap-bill-approval-v2.api';
|
|
3
|
+
export * as CardTransactions from './card-transactions.api';
|
|
3
4
|
export * as ExpenseManagement from './expense-management.api';
|
|
4
5
|
export * as UserSettings from './user-settings.api';
|
|
5
6
|
export * as VendorSync from './vendor-sync.api';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,wBAAwB,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,wBAAwB,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,8 @@ import * as _ApBillApprovalSettingsV2 from './ap-bill-approval-settings-v2.api';
|
|
|
2
2
|
export { _ApBillApprovalSettingsV2 as ApBillApprovalSettingsV2 };
|
|
3
3
|
import * as _ApBillApprovalV2 from './ap-bill-approval-v2.api';
|
|
4
4
|
export { _ApBillApprovalV2 as ApBillApprovalV2 };
|
|
5
|
+
import * as _CardTransactions from './card-transactions.api';
|
|
6
|
+
export { _CardTransactions as CardTransactions };
|
|
5
7
|
import * as _ExpenseManagement from './expense-management.api';
|
|
6
8
|
export { _ExpenseManagement as ExpenseManagement };
|
|
7
9
|
import * as _UserSettings from './user-settings.api';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * as ApBillApprovalSettingsV2 from './ap-bill-approval-settings-v2.api';\nexport * as ApBillApprovalV2 from './ap-bill-approval-v2.api';\nexport * as ExpenseManagement from './expense-management.api';\nexport * as UserSettings from './user-settings.api';\nexport * as VendorSync from './vendor-sync.api';\n"],"names":["ApBillApprovalSettingsV2","ApBillApprovalV2","ExpenseManagement","UserSettings","VendorSync"],"mappings":"AAAA,2CAA0C,qCAAqC;AAA/E,SAAO,6BAAKA,wBAAwB,GAA2C;AAC/E,mCAAkC,4BAA4B;AAA9D,SAAO,qBAAKC,gBAAgB,GAAkC;AAC9D,oCAAmC,2BAA2B;AAA9D,SAAO,sBAAKC,iBAAiB,GAAiC;AAC9D,+BAA8B,sBAAsB;AAApD,SAAO,iBAAKC,YAAY,GAA4B;AACpD,6BAA4B,oBAAoB;AAAhD,SAAO,eAAKC,UAAU,GAA0B"}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * as ApBillApprovalSettingsV2 from './ap-bill-approval-settings-v2.api';\nexport * as ApBillApprovalV2 from './ap-bill-approval-v2.api';\nexport * as CardTransactions from './card-transactions.api';\nexport * as ExpenseManagement from './expense-management.api';\nexport * as UserSettings from './user-settings.api';\nexport * as VendorSync from './vendor-sync.api';\n"],"names":["ApBillApprovalSettingsV2","ApBillApprovalV2","CardTransactions","ExpenseManagement","UserSettings","VendorSync"],"mappings":"AAAA,2CAA0C,qCAAqC;AAA/E,SAAO,6BAAKA,wBAAwB,GAA2C;AAC/E,mCAAkC,4BAA4B;AAA9D,SAAO,qBAAKC,gBAAgB,GAAkC;AAC9D,mCAAkC,0BAA0B;AAA5D,SAAO,qBAAKC,gBAAgB,GAAgC;AAC5D,oCAAmC,2BAA2B;AAA9D,SAAO,sBAAKC,iBAAiB,GAAiC;AAC9D,+BAA8B,sBAAsB;AAApD,SAAO,iBAAKC,YAAY,GAA4B;AACpD,6BAA4B,oBAAoB;AAAhD,SAAO,eAAKC,UAAU,GAA0B"}
|
package/package.json
CHANGED