@servicetitan/moneyout-api-client 1.22.0 → 1.23.0-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,14 @@ export interface IBillPayments {
21
21
  at the partner returns `GlAccount: null`, not an error.
22
22
  */
23
23
  getSourceAccounts(tenantId: number, cancelToken?: CancelToken): AxiosPromise<SourceAccount[]>;
24
+ /**
25
+ * Resolves the tenant's default Bill-Pay funding account (the same account payment creation
26
+ draws from) and returns its generic GL identity plus the tenant's GL match strategy. Read-only;
27
+ thin pass-through — no ST-GL matching happens here (the caller resolves the identity to its own
28
+ GL account by the returned strategy). Returns 400 if the tenant has no Bill-Pay-eligible source
29
+ account at the partner.
30
+ */
31
+ getDefaultFundingAccountGl(tenantId: number, cancelToken?: CancelToken): AxiosPromise<FundingAccountGlResponse>;
24
32
  }
25
33
  export declare const BASE_URL_TOKEN_BillPayments: import("@servicetitan/react-ioc").SymbolToken<string>;
26
34
  export declare class BillPayments implements IBillPayments {
@@ -48,6 +56,14 @@ export declare class BillPayments implements IBillPayments {
48
56
  at the partner returns `GlAccount: null`, not an error.
49
57
  */
50
58
  getSourceAccounts(tenantId: number, cancelToken?: CancelToken): AxiosPromise<SourceAccount[]>;
59
+ /**
60
+ * Resolves the tenant's default Bill-Pay funding account (the same account payment creation
61
+ draws from) and returns its generic GL identity plus the tenant's GL match strategy. Read-only;
62
+ thin pass-through — no ST-GL matching happens here (the caller resolves the identity to its own
63
+ GL account by the returned strategy). Returns 400 if the tenant has no Bill-Pay-eligible source
64
+ account at the partner.
65
+ */
66
+ getDefaultFundingAccountGl(tenantId: number, cancelToken?: CancelToken): AxiosPromise<FundingAccountGlResponse>;
51
67
  }
52
68
  export interface InitiatePaymentResponse {
53
69
  /** The provider's payment ID. Stored on VendorPayment.ExternalId in the monolith. */
@@ -83,6 +99,13 @@ export interface RetryBillPaymentRequest {
83
99
  When provided the retry uses this method instead of the one that originally failed.
84
100
  Null means reuse the original method. */
85
101
  paymentMethodId?: string | undefined;
102
+ /** Caller-minted, per-retry-intent idempotency key, forwarded unchanged to the payment
103
+ provider adapter so a resend of this exact retry (HTTP timeout, load-balancer retry, or the
104
+ adapter's own transient-error retry) never risks a second disbursement. Optional — MOS never
105
+ mints a fallback and never derives one from the original payment's identifiers; absence is
106
+ not a MOS-level error (see PYB-3009, REQ-PAY-RETRYKEY-001/002/004/007). Empty or
107
+ whitespace-only values are treated as absent. */
108
+ idempotencyKey?: string | undefined;
86
109
  }
87
110
  /** A tenant's Bill-Pay-eligible funding source, projected from the payment partner (Ramp, via the moneyout-adapters client) with the generic GL account attached. Thin pass-through — see `IBillPaymentService.ListSourceAccountsAsync`. No ST-GL matching happens here; GlAccount is forwarded verbatim from the MOA client response (null stays null, never substituted). */
88
111
  export interface SourceAccount {
@@ -92,10 +115,35 @@ export interface SourceAccount {
92
115
  currency: string;
93
116
  isPreferred: boolean;
94
117
  glAccount?: GlAccount | undefined;
118
+ /** How the caller should match this account's GlAccount to its own GL account
119
+ entity, derived upstream from the payment partner's connected accounting system (ERP). Same
120
+ concept as MatchStrategy, surfaced per account so the
121
+ caller can resolve the GL of any funding source (not only the default). Defaults to
122
+ Unsupported (silent fallback) when the partner exposes no
123
+ recognized strategy. */
124
+ matchStrategy: FundingGlMatchStrategy;
95
125
  }
96
126
  /** Generic (provider-agnostic) GL account reference forwarded verbatim from the payment partner. Field names mirror MOA's `BillPayGlAccount` exactly — no `Gl`/`GlAccount` drift across the seam. The monolith owns matching these fields to a ServiceTitan GL account entity; this DTO carries no ST-GL logic. */
97
127
  export interface GlAccount {
98
128
  externalId?: string | undefined;
99
129
  externalName?: string | undefined;
100
130
  }
131
+ /** How the caller (ServiceTitan monolith) should match a funding account's generic GlAccount identity to its own GL account entity. Determined upstream by the payment partner's connected accounting system (ERP), not by ServiceTitan config — the ERP is authoritative for whether the GL identity is exposed as an id or a name. */
132
+ export declare enum FundingGlMatchStrategy {
133
+ Unsupported = 0,
134
+ ById = 1,
135
+ ByName = 2
136
+ }
137
+ /** The GL identity of a tenant's default Bill-Pay funding account, plus the FundingGlMatchStrategy the caller should use to resolve it. Returned by the `bill-pay-source-accounts/default-gl` endpoint for the ServiceTitan monolith to pre-fill the funding account's GL on the "Pay Bills" dialog. */
138
+ export interface FundingAccountGlResponse {
139
+ /** The payment partner's stable identifier for the resolved default funding account —
140
+ the same account payment creation sources from. */
141
+ bankAccountId: string;
142
+ /** The generic GL account identity the payment partner links to the default funding
143
+ source. Null when the partner surfaced no GL linkage. */
144
+ glAccount?: GlAccount | undefined;
145
+ /** How the caller should match GlAccount to its GL account entity.
146
+ Unsupported means fall back silently. */
147
+ matchStrategy: FundingGlMatchStrategy;
148
+ }
101
149
  //# sourceMappingURL=bill-payments.api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bill-payments.api.d.ts","sourceRoot":"","sources":["../src/bill-payments.api.ts"],"names":[],"mappings":"AASA,OAAc,EAAsB,YAAY,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAM7E,MAAM,WAAW,aAAa;IAC1B;;;OAGG;IACH,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC,uBAAuB,CAAC,CAAC;IACrI;;;OAGG;IACH,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC,uBAAuB,CAAC,CAAC;IAC9J;;OAEG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAC1G;;;;;OAKG;IACH,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC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S,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAClC;oDACgD;IAChD,aAAa,EAAE,sBAAsB,CAAC;CACzC"}
@@ -126,6 +126,29 @@ export class BillPayments {
126
126
  };
127
127
  return makeCodedException(axios.request(options_));
128
128
  }
129
+ /**
130
+ * Resolves the tenant's default Bill-Pay funding account (the same account payment creation
131
+ draws from) and returns its generic GL identity plus the tenant's GL match strategy. Read-only;
132
+ thin pass-through — no ST-GL matching happens here (the caller resolves the identity to its own
133
+ GL account by the returned strategy). Returns 400 if the tenant has no Bill-Pay-eligible source
134
+ account at the partner.
135
+ */ getDefaultFundingAccountGl(tenantId, cancelToken) {
136
+ let url_ = "/v1/tenant/{tenantId}/bill-pay-source-accounts/default-gl";
137
+ if (tenantId === undefined || tenantId === null) throw new Error("The parameter 'tenantId' must be defined.");
138
+ url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
139
+ url_ = url_.replace(/[?&]$/, "");
140
+ let options_ = {
141
+ baseURL: this.baseUrl,
142
+ cancelToken,
143
+ url: url_,
144
+ method: "GET",
145
+ headers: {
146
+ "Content-Type": "application/json",
147
+ "Accept": "application/json"
148
+ }
149
+ };
150
+ return makeCodedException(axios.request(options_));
151
+ }
129
152
  constructor(baseUrl = ""){
130
153
  _define_property(this, "baseUrl", void 0);
131
154
  _define_property(this, "jsonParseReviver", void 0);
@@ -142,5 +165,11 @@ BillPayments = _ts_decorate([
142
165
  void 0
143
166
  ])
144
167
  ], BillPayments);
168
+ /** How the caller (ServiceTitan monolith) should match a funding account's generic GlAccount identity to its own GL account entity. Determined upstream by the payment partner's connected accounting system (ERP), not by ServiceTitan config — the ERP is authoritative for whether the GL identity is exposed as an id or a name. */ export var FundingGlMatchStrategy = /*#__PURE__*/ function(FundingGlMatchStrategy) {
169
+ FundingGlMatchStrategy[FundingGlMatchStrategy["Unsupported"] = 0] = "Unsupported";
170
+ FundingGlMatchStrategy[FundingGlMatchStrategy["ById"] = 1] = "ById";
171
+ FundingGlMatchStrategy[FundingGlMatchStrategy["ByName"] = 2] = "ByName";
172
+ return FundingGlMatchStrategy;
173
+ }({});
145
174
 
146
175
  //# sourceMappingURL=bill-payments.api.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/bill-payments.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 IBillPayments {\n /**\n * Initiates a new bill payment. Idempotent on ExternalRef — returns existing record if\n a payment with the same ExternalRef already exists (timeout recovery).\n */\n initiatePayment(tenantId: number, request: InitiatePaymentRequest, cancelToken?: CancelToken): AxiosPromise<InitiatePaymentResponse>;\n /**\n * Retries a previously rejected payment. Calls the provider retry endpoint — do not use\n for resubmitting a cancelled payment (create a new payment instead).\n */\n retryPayment(tenantId: number, externalPaymentId: string, request: RetryBillPaymentRequest, cancelToken?: CancelToken): AxiosPromise<InitiatePaymentResponse>;\n /**\n * Cancels a bill payment. Returns 409 if the payment is no longer cancelable.\n */\n cancelPayment(tenantId: number, externalPaymentId: string, cancelToken?: CancelToken): AxiosPromise<void>;\n /**\n * Lists the tenant's Bill-Pay-eligible funding source accounts, including the generic GL\n account attached at the payment partner. Read-only; thin pass-through — no ST-GL matching\n happens here (that logic belongs to the monolith caller). A source with no GL configured\n at the partner returns `GlAccount: null`, not an error.\n */\n getSourceAccounts(tenantId: number, cancelToken?: CancelToken): AxiosPromise<SourceAccount[]>;\n}\n\nexport const BASE_URL_TOKEN_BillPayments = symbolToken<string>('BASE_URL_TOKEN', false);\n\n@injectable()\nexport class BillPayments implements IBillPayments {\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\n\n constructor(@inject(BASE_URL_TOKEN_BillPayments) @optional() private readonly baseUrl = \"\") {\n }\n\n /**\n * Initiates a new bill payment. Idempotent on ExternalRef — returns existing record if\n a payment with the same ExternalRef already exists (timeout recovery).\n */\n initiatePayment(tenantId: number, request: InitiatePaymentRequest, cancelToken?: CancelToken): AxiosPromise<InitiatePaymentResponse> {\n let url_ = \"/v1/tenant/{tenantId}/bill-payments\";\n if (tenantId === undefined || tenantId === null)\n throw new Error(\"The parameter 'tenantId' must be defined.\");\n url_ = url_.replace(\"{tenantId}\", encodeURIComponent(\"\" + tenantId));\n url_ = url_.replace(/[?&]$/, \"\");\n\n const content_ = makeContent(request, [\n \"$.scheduledDate\",\n ]);\n\n let options_ = <AxiosRequestConfig>{\n baseURL: this.baseUrl,\n cancelToken,\n data: content_,\n url: url_,\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Accept\": \"application/json\"\n }\n };\n\n return makeCodedException(axios.request<InitiatePaymentResponse>(options_));\n }\n\n /**\n * Retries a previously rejected payment. Calls the provider retry endpoint — do not use\n for resubmitting a cancelled payment (create a new payment instead).\n */\n retryPayment(tenantId: number, externalPaymentId: string, request: RetryBillPaymentRequest, cancelToken?: CancelToken): AxiosPromise<InitiatePaymentResponse> {\n let url_ = \"/v1/tenant/{tenantId}/bill-payments/{externalPaymentId}/retry\";\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 (externalPaymentId === undefined || externalPaymentId === null)\n throw new Error(\"The parameter 'externalPaymentId' must be defined.\");\n url_ = url_.replace(\"{externalPaymentId}\", encodeURIComponent(\"\" + externalPaymentId));\n url_ = url_.replace(/[?&]$/, \"\");\n\n const content_ = request;\n\n let options_ = <AxiosRequestConfig>{\n baseURL: this.baseUrl,\n cancelToken,\n data: content_,\n url: url_,\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Accept\": \"application/json\"\n }\n };\n\n return makeCodedException(axios.request<InitiatePaymentResponse>(options_));\n }\n\n /**\n * Cancels a bill payment. Returns 409 if the payment is no longer cancelable.\n */\n cancelPayment(tenantId: number, externalPaymentId: string, cancelToken?: CancelToken): AxiosPromise<void> {\n let url_ = \"/v1/tenant/{tenantId}/bill-payments/{externalPaymentId}\";\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 (externalPaymentId === undefined || externalPaymentId === null)\n throw new Error(\"The parameter 'externalPaymentId' must be defined.\");\n url_ = url_.replace(\"{externalPaymentId}\", encodeURIComponent(\"\" + externalPaymentId));\n url_ = url_.replace(/[?&]$/, \"\");\n\n let options_ = <AxiosRequestConfig>{\n baseURL: this.baseUrl,\n cancelToken,\n url: url_,\n method: \"DELETE\",\n headers: {\n \"Content-Type\": \"application/json\",\n }\n };\n\n return makeCodedException(axios.request<void>(options_));\n }\n\n /**\n * Lists the tenant's Bill-Pay-eligible funding source accounts, including the generic GL\n account attached at the payment partner. Read-only; thin pass-through — no ST-GL matching\n happens here (that logic belongs to the monolith caller). A source with no GL configured\n at the partner returns `GlAccount: null`, not an error.\n */\n getSourceAccounts(tenantId: number, cancelToken?: CancelToken): AxiosPromise<SourceAccount[]> {\n let url_ = \"/v1/tenant/{tenantId}/bill-pay-source-accounts\";\n if (tenantId === undefined || tenantId === null)\n throw new Error(\"The parameter 'tenantId' must be defined.\");\n url_ = url_.replace(\"{tenantId}\", encodeURIComponent(\"\" + tenantId));\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<SourceAccount[]>(options_));\n }\n}\n\nexport interface InitiatePaymentResponse {\n /** The provider's payment ID. Stored on VendorPayment.ExternalId in the monolith. */\n externalPaymentId: string;\n}\n\nexport interface InitiatePaymentRequest {\n /** The monolith's VendorPayment ID. Used for Kafka event correlation. */\n vendorPaymentId: number;\n /** Payment amount in the currency's major unit (e.g. dollars). */\n amount: number;\n /** The monolith's Vendor ID. Passed for context but not stored server-side —\nRemittanceVendorId is used for provider lookup. */\n vendorId: number;\n remittanceVendorId: number;\n /** When null, the payment is sent immediately.\nWhen set to a future date, the payment is scheduled for that date. */\n scheduledDate?: Date | undefined;\n /** Idempotency key generated by the monolith. Same ExternalRef on retry = find-or-return existing record.\nNew ExternalRef = new payment (e.g. resubmit after cancel). */\n externalRef: string;\n /** Opaque payment method ID selected in the UX (obtained from GetPaymentMethods).\nForwarded to the adapter as the selected payment method for this payment.\n \nOptional — when null, the service recovers the most recent BillPayment for\nVendorPaymentId and reuses its payment method (resubmit-after-cancel\nflow, where the monolith doesn't keep the original method id locally).\nReturns 400 if no previous bill payment exists for the VendorPaymentId. */\n paymentMethodId?: string | undefined;\n}\n\n/** Optional body for the retry bill-payment endpoint. All fields are optional — omit to retry with the original payment method. */\nexport interface RetryBillPaymentRequest {\n /** Opaque payment method ID obtained from the available-payment-methods endpoint.\nWhen provided the retry uses this method instead of the one that originally failed.\nNull means reuse the original method. */\n paymentMethodId?: string | undefined;\n}\n\n/** A tenant's Bill-Pay-eligible funding source, projected from the payment partner (Ramp, via the moneyout-adapters client) with the generic GL account attached. Thin pass-through — see `IBillPaymentService.ListSourceAccountsAsync`. No ST-GL matching happens here; GlAccount is forwarded verbatim from the MOA client response (null stays null, never substituted). */\nexport interface SourceAccount {\n bankAccountId: string;\n accountName: string;\n accountNumberLastFour: string;\n currency: string;\n isPreferred: boolean;\n glAccount?: GlAccount | undefined;\n}\n\n/** Generic (provider-agnostic) GL account reference forwarded verbatim from the payment partner. Field names mirror MOA's `BillPayGlAccount` exactly — no `Gl`/`GlAccount` drift across the seam. The monolith owns matching these fields to a ServiceTitan GL account entity; this DTO carries no ST-GL logic. */\nexport interface GlAccount {\n externalId?: string | undefined;\n externalName?: string | undefined;\n}\n"],"names":["axios","injectable","inject","optional","symbolToken","makeCodedException","makeContent","BASE_URL_TOKEN_BillPayments","BillPayments","initiatePayment","tenantId","request","cancelToken","url_","undefined","Error","replace","encodeURIComponent","content_","options_","baseURL","baseUrl","data","url","method","headers","retryPayment","externalPaymentId","cancelPayment","getSourceAccounts","jsonParseReviver"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAAkB,GAClB,kBAAkB,GAClB,wBAAwB;AACxB,mBAAmB;AACnB,mEAAmE;AACnE,oBAAoB;AACpB,wBAAwB;AACxB,uCAAuC;AAEvC,OAAOA,WAA8D,QAAQ;AAC7E,SAASC,UAAU,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,WAAW,QAAQ,0BAA0B;AACpF,SAASC,kBAAkB,EAAEC,WAAW,QAAQ,UAAU;AA4B1D,OAAO,MAAMC,8BAA8BH,YAAoB,kBAAkB,OAAO;AAGxF,OAAO,MAAMI;IAMT;;;KAGC,GACDC,gBAAgBC,QAAgB,EAAEC,OAA+B,EAAEC,WAAyB,EAAyC;QACjI,IAAIC,OAAO;QACX,IAAIH,aAAaI,aAAaJ,aAAa,MACvC,MAAM,IAAIK,MAAM;QACpBF,OAAOA,KAAKG,OAAO,CAAC,cAAcC,mBAAmB,KAAKP;QAC1DG,OAAOA,KAAKG,OAAO,CAAC,SAAS;QAE7B,MAAME,WAAWZ,YAAYK,SAAS;YAClC;SACH;QAED,IAAIQ,WAA+B;YAC/BC,SAAS,IAAI,CAACC,OAAO;YACrBT;YACAU,MAAMJ;YACNK,KAAKV;YACLW,QAAQ;YACRC,SAAS;gBACL,gBAAgB;gBAChB,UAAU;YACd;QACJ;QAEA,OAAOpB,mBAAmBL,MAAMW,OAAO,CAA0BQ;IACrE;IAEA;;;KAGC,GACDO,aAAahB,QAAgB,EAAEiB,iBAAyB,EAA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ACvC,MAAM,IAAIK,MAAM;QACpBF,OAAOA,KAAKG,OAAO,CAAC,cAAcC,mBAAmB,KAAKP;QAC1DG,OAAOA,KAAKG,OAAO,CAAC,SAAS;QAE7B,IAAIG,WAA+B;YAC/BC,SAAS,IAAI,CAACC,OAAO;YACrBT;YACAW,KAAKV;YACLW,QAAQ;YACRC,SAAS;gBACL,gBAAgB;gBAChB,UAAU;YACd;QACJ;QAEA,OAAOpB,mBAAmBL,MAAMW,OAAO,CAAkBQ;IAC7D;IAnHA,YAAY,AAAkEE,UAAU,EAAE,CAAE;;QAF5F,uBAAUS,oBAAV,KAAA;aAE8ET,UAAAA;aAFpES,mBAAmEhB;IAG7E;AAmHJ"}
1
+ {"version":3,"sources":["../src/bill-payments.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 IBillPayments {\n /**\n * Initiates a new bill payment. Idempotent on ExternalRef — returns existing record if\n a payment with the same ExternalRef already exists (timeout recovery).\n */\n initiatePayment(tenantId: number, request: InitiatePaymentRequest, cancelToken?: CancelToken): AxiosPromise<InitiatePaymentResponse>;\n /**\n * Retries a previously rejected payment. Calls the provider retry endpoint — do not use\n for resubmitting a cancelled payment (create a new payment instead).\n */\n retryPayment(tenantId: number, externalPaymentId: string, request: RetryBillPaymentRequest, cancelToken?: CancelToken): AxiosPromise<InitiatePaymentResponse>;\n /**\n * Cancels a bill payment. Returns 409 if the payment is no longer cancelable.\n */\n cancelPayment(tenantId: number, externalPaymentId: string, cancelToken?: CancelToken): AxiosPromise<void>;\n /**\n * Lists the tenant's Bill-Pay-eligible funding source accounts, including the generic GL\n account attached at the payment partner. Read-only; thin pass-through — no ST-GL matching\n happens here (that logic belongs to the monolith caller). A source with no GL configured\n at the partner returns `GlAccount: null`, not an error.\n */\n getSourceAccounts(tenantId: number, cancelToken?: CancelToken): AxiosPromise<SourceAccount[]>;\n /**\n * Resolves the tenant's default Bill-Pay funding account (the same account payment creation\n draws from) and returns its generic GL identity plus the tenant's GL match strategy. Read-only;\n thin pass-through — no ST-GL matching happens here (the caller resolves the identity to its own\n GL account by the returned strategy). Returns 400 if the tenant has no Bill-Pay-eligible source\n account at the partner.\n */\n getDefaultFundingAccountGl(tenantId: number, cancelToken?: CancelToken): AxiosPromise<FundingAccountGlResponse>;\n}\n\nexport const BASE_URL_TOKEN_BillPayments = symbolToken<string>('BASE_URL_TOKEN', false);\n\n@injectable()\nexport class BillPayments implements IBillPayments {\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\n\n constructor(@inject(BASE_URL_TOKEN_BillPayments) @optional() private readonly baseUrl = \"\") {\n }\n\n /**\n * Initiates a new bill payment. Idempotent on ExternalRef — returns existing record if\n a payment with the same ExternalRef already exists (timeout recovery).\n */\n initiatePayment(tenantId: number, request: InitiatePaymentRequest, cancelToken?: CancelToken): AxiosPromise<InitiatePaymentResponse> {\n let url_ = \"/v1/tenant/{tenantId}/bill-payments\";\n if (tenantId === undefined || tenantId === null)\n throw new Error(\"The parameter 'tenantId' must be defined.\");\n url_ = url_.replace(\"{tenantId}\", encodeURIComponent(\"\" + tenantId));\n url_ = url_.replace(/[?&]$/, \"\");\n\n const content_ = makeContent(request, [\n \"$.scheduledDate\",\n ]);\n\n let options_ = <AxiosRequestConfig>{\n baseURL: this.baseUrl,\n cancelToken,\n data: content_,\n url: url_,\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Accept\": \"application/json\"\n }\n };\n\n return makeCodedException(axios.request<InitiatePaymentResponse>(options_));\n }\n\n /**\n * Retries a previously rejected payment. Calls the provider retry endpoint — do not use\n for resubmitting a cancelled payment (create a new payment instead).\n */\n retryPayment(tenantId: number, externalPaymentId: string, request: RetryBillPaymentRequest, cancelToken?: CancelToken): AxiosPromise<InitiatePaymentResponse> {\n let url_ = \"/v1/tenant/{tenantId}/bill-payments/{externalPaymentId}/retry\";\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 (externalPaymentId === undefined || externalPaymentId === null)\n throw new Error(\"The parameter 'externalPaymentId' must be defined.\");\n url_ = url_.replace(\"{externalPaymentId}\", encodeURIComponent(\"\" + externalPaymentId));\n url_ = url_.replace(/[?&]$/, \"\");\n\n const content_ = request;\n\n let options_ = <AxiosRequestConfig>{\n baseURL: this.baseUrl,\n cancelToken,\n data: content_,\n url: url_,\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Accept\": \"application/json\"\n }\n };\n\n return makeCodedException(axios.request<InitiatePaymentResponse>(options_));\n }\n\n /**\n * Cancels a bill payment. Returns 409 if the payment is no longer cancelable.\n */\n cancelPayment(tenantId: number, externalPaymentId: string, cancelToken?: CancelToken): AxiosPromise<void> {\n let url_ = \"/v1/tenant/{tenantId}/bill-payments/{externalPaymentId}\";\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 (externalPaymentId === undefined || externalPaymentId === null)\n throw new Error(\"The parameter 'externalPaymentId' must be defined.\");\n url_ = url_.replace(\"{externalPaymentId}\", encodeURIComponent(\"\" + externalPaymentId));\n url_ = url_.replace(/[?&]$/, \"\");\n\n let options_ = <AxiosRequestConfig>{\n baseURL: this.baseUrl,\n cancelToken,\n url: url_,\n method: \"DELETE\",\n headers: {\n \"Content-Type\": \"application/json\",\n }\n };\n\n return makeCodedException(axios.request<void>(options_));\n }\n\n /**\n * Lists the tenant's Bill-Pay-eligible funding source accounts, including the generic GL\n account attached at the payment partner. Read-only; thin pass-through — no ST-GL matching\n happens here (that logic belongs to the monolith caller). A source with no GL configured\n at the partner returns `GlAccount: null`, not an error.\n */\n getSourceAccounts(tenantId: number, cancelToken?: CancelToken): AxiosPromise<SourceAccount[]> {\n let url_ = \"/v1/tenant/{tenantId}/bill-pay-source-accounts\";\n if (tenantId === undefined || tenantId === null)\n throw new Error(\"The parameter 'tenantId' must be defined.\");\n url_ = url_.replace(\"{tenantId}\", encodeURIComponent(\"\" + tenantId));\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<SourceAccount[]>(options_));\n }\n\n /**\n * Resolves the tenant's default Bill-Pay funding account (the same account payment creation\n draws from) and returns its generic GL identity plus the tenant's GL match strategy. Read-only;\n thin pass-through — no ST-GL matching happens here (the caller resolves the identity to its own\n GL account by the returned strategy). Returns 400 if the tenant has no Bill-Pay-eligible source\n account at the partner.\n */\n getDefaultFundingAccountGl(tenantId: number, cancelToken?: CancelToken): AxiosPromise<FundingAccountGlResponse> {\n let url_ = \"/v1/tenant/{tenantId}/bill-pay-source-accounts/default-gl\";\n if (tenantId === undefined || tenantId === null)\n throw new Error(\"The parameter 'tenantId' must be defined.\");\n url_ = url_.replace(\"{tenantId}\", encodeURIComponent(\"\" + tenantId));\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<FundingAccountGlResponse>(options_));\n }\n}\n\nexport interface InitiatePaymentResponse {\n /** The provider's payment ID. Stored on VendorPayment.ExternalId in the monolith. */\n externalPaymentId: string;\n}\n\nexport interface InitiatePaymentRequest {\n /** The monolith's VendorPayment ID. Used for Kafka event correlation. */\n vendorPaymentId: number;\n /** Payment amount in the currency's major unit (e.g. dollars). */\n amount: number;\n /** The monolith's Vendor ID. Passed for context but not stored server-side —\nRemittanceVendorId is used for provider lookup. */\n vendorId: number;\n remittanceVendorId: number;\n /** When null, the payment is sent immediately.\nWhen set to a future date, the payment is scheduled for that date. */\n scheduledDate?: Date | undefined;\n /** Idempotency key generated by the monolith. Same ExternalRef on retry = find-or-return existing record.\nNew ExternalRef = new payment (e.g. resubmit after cancel). */\n externalRef: string;\n /** Opaque payment method ID selected in the UX (obtained from GetPaymentMethods).\nForwarded to the adapter as the selected payment method for this payment.\n \nOptional — when null, the service recovers the most recent BillPayment for\nVendorPaymentId and reuses its payment method (resubmit-after-cancel\nflow, where the monolith doesn't keep the original method id locally).\nReturns 400 if no previous bill payment exists for the VendorPaymentId. */\n paymentMethodId?: string | undefined;\n}\n\n/** Optional body for the retry bill-payment endpoint. All fields are optional — omit to retry with the original payment method. */\nexport interface RetryBillPaymentRequest {\n /** Opaque payment method ID obtained from the available-payment-methods endpoint.\nWhen provided the retry uses this method instead of the one that originally failed.\nNull means reuse the original method. */\n paymentMethodId?: string | undefined;\n /** Caller-minted, per-retry-intent idempotency key, forwarded unchanged to the payment\nprovider adapter so a resend of this exact retry (HTTP timeout, load-balancer retry, or the\nadapter's own transient-error retry) never risks a second disbursement. Optional — MOS never\nmints a fallback and never derives one from the original payment's identifiers; absence is\nnot a MOS-level error (see PYB-3009, REQ-PAY-RETRYKEY-001/002/004/007). Empty or\nwhitespace-only values are treated as absent. */\n idempotencyKey?: string | undefined;\n}\n\n/** A tenant's Bill-Pay-eligible funding source, projected from the payment partner (Ramp, via the moneyout-adapters client) with the generic GL account attached. Thin pass-through — see `IBillPaymentService.ListSourceAccountsAsync`. No ST-GL matching happens here; GlAccount is forwarded verbatim from the MOA client response (null stays null, never substituted). */\nexport interface SourceAccount {\n bankAccountId: string;\n accountName: string;\n accountNumberLastFour: string;\n currency: string;\n isPreferred: boolean;\n glAccount?: GlAccount | undefined;\n /** How the caller should match this account's GlAccount to its own GL account\nentity, derived upstream from the payment partner's connected accounting system (ERP). Same\nconcept as MatchStrategy, surfaced per account so the\ncaller can resolve the GL of any funding source (not only the default). Defaults to\nUnsupported (silent fallback) when the partner exposes no\nrecognized strategy. */\n matchStrategy: FundingGlMatchStrategy;\n}\n\n/** Generic (provider-agnostic) GL account reference forwarded verbatim from the payment partner. Field names mirror MOA's `BillPayGlAccount` exactly — no `Gl`/`GlAccount` drift across the seam. The monolith owns matching these fields to a ServiceTitan GL account entity; this DTO carries no ST-GL logic. */\nexport interface GlAccount {\n externalId?: string | undefined;\n externalName?: string | undefined;\n}\n\n/** How the caller (ServiceTitan monolith) should match a funding account's generic GlAccount identity to its own GL account entity. Determined upstream by the payment partner's connected accounting system (ERP), not by ServiceTitan config — the ERP is authoritative for whether the GL identity is exposed as an id or a name. */\nexport enum FundingGlMatchStrategy {\n Unsupported = 0,\n ById = 1,\n ByName = 2,\n}\n\n/** The GL identity of a tenant's default Bill-Pay funding account, plus the FundingGlMatchStrategy the caller should use to resolve it. Returned by the `bill-pay-source-accounts/default-gl` endpoint for the ServiceTitan monolith to pre-fill the funding account's GL on the \"Pay Bills\" dialog. */\nexport interface FundingAccountGlResponse {\n /** The payment partner's stable identifier for the resolved default funding account —\n the same account payment creation sources from. */\n bankAccountId: string;\n /** The generic GL account identity the payment partner links to the default funding\n source. Null when the partner surfaced no GL linkage. */\n glAccount?: GlAccount | undefined;\n /** How the caller should match GlAccount to its GL account entity.\n Unsupported means fall back silently. */\n matchStrategy: FundingGlMatchStrategy;\n}\n"],"names":["axios","injectable","inject","optional","symbolToken","makeCodedException","makeContent","BASE_URL_TOKEN_BillPayments","BillPayments","initiatePayment","tenantId","request","cancelToken","url_","undefined","Error","replace","encodeURIComponent","content_","options_","baseURL","baseUrl","data","url","method","headers","retryPayment","externalPayment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gB;gBAChB,UAAU;YACd;QACJ;QAEA,OAAOpB,mBAAmBL,MAAMW,OAAO,CAAkBQ;IAC7D;IAEA;;;;;;KAMC,GACDW,2BAA2BpB,QAAgB,EAAEE,WAAyB,EAA0C;QAC5G,IAAIC,OAAO;QACX,IAAIH,aAAaI,aAAaJ,aAAa,MACvC,MAAM,IAAIK,MAAM;QACpBF,OAAOA,KAAKG,OAAO,CAAC,cAAcC,mBAAmB,KAAKP;QAC1DG,OAAOA,KAAKG,OAAO,CAAC,SAAS;QAE7B,IAAIG,WAA+B;YAC/BC,SAAS,IAAI,CAACC,OAAO;YACrBT;YACAW,KAAKV;YACLW,QAAQ;YACRC,SAAS;gBACL,gBAAgB;gBAChB,UAAU;YACd;QACJ;QAEA,OAAOpB,mBAAmBL,MAAMW,OAAO,CAA2BQ;IACtE;IA/IA,YAAY,AAAkEE,UAAU,EAAE,CAAE;;QAF5F,uBAAUU,oBAAV,KAAA;aAE8EV,UAAAA;aAFpEU,mBAAmEjB;IAG7E;AA+IJ;;;;;;;;;;AAsEA,sUAAsU,GACtU,OAAO,IAAA,AAAKkB,gDAAAA;;;;WAAAA;MAIX"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/moneyout-api-client",
3
- "version": "1.22.0",
3
+ "version": "1.23.0-beta.18",
4
4
  "description": "Auto-generated TypeScript API client for MoneyOut Service",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",