@servicetitan/moneyout-api-client 1.42.5-beta.289 → 1.43.0-beta.290

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.
@@ -244,6 +244,11 @@ caller can resolve the GL of any funding source (not only the default). Defaults
244
244
  Unsupported (silent fallback) when the partner exposes no
245
245
  recognized strategy. */
246
246
  matchStrategy: FundingGlMatchStrategy;
247
+ /** Whether the payment partner can fund payments from this account: `true` — payable;
248
+ `false` — the partner has no ACH details for this account, so payments from it will be
249
+ rejected; `null` — unknown (not reported, or the lookup failed). Callers must not block
250
+ on `null`. Forwarded verbatim from the MOA client response. */
251
+ hasAchDetails?: boolean | undefined;
247
252
  }
248
253
  /** 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. */
249
254
  export interface GlAccount {
@@ -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,C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;;;;;gDAK4C;IAC5C,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;mBACe;IACf,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5C;AAED,+WAA+W;AAC/W,MAAM,WAAW,aAAa;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAClC;;;;;uBAKmB;IACnB,aAAa,EAAE,sBAAsB,CAAC;IACtC;;;8DAG0D;IAC1D,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACvC;AAED,mTAAmT;AACnT,MAAM,WAAW,SAAS;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;AAED,wUAAwU;AACxU,oBAAY,sBAAsB;IAC9B,WAAW,IAAI;IACf,IAAI,IAAI;IACR,MAAM,IAAI;CACb;AAED,wSAAwS;AACxS,MAAM,WAAW,wBAAwB;IACrC;8DAC0D;IAC1D,aAAa,EAAE,MAAM,CAAC;IACtB;oEACgE;IAChE,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAClC;oDACgD;IAChD,aAAa,EAAE,sBAAsB,CAAC;CACzC"}
@@ -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 * 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 \"$.bills[*].billDate\",\n \"$.credits[*].creditDate\",\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 /** The funding source account the payment should draw from — the\n`bankAccountId` of a `SourceAccount` the caller selected from\n`GetBillPaySourceAccountsAsync`. Forwarded to the adapter as the payment source.\n \nOptional — when null (or empty), the service falls back to the tenant's default\nfunding account (the same account the read/match endpoints surface). Supplied by the\nmonolith's user-selectable \"Payment Account\" selector (PYB-2796). Ramp rejects an\naccount id that is not Bill-Pay-eligible, so callers should pass a value obtained from\nthe source-accounts list rather than an arbitrary id. */\n sourceBankAccountId?: string | undefined;\n /** The bills this payment covers, as the monolith knew them at initiation. Used to compose the\nvendor-facing remittance memo and recorded as a per-bill snapshot alongside the payment.\n \nOptional — when null (or empty), no snapshot is recorded and no memo is composed. Absence is\nnot an error: this service accepted the property before the monolith started sending it, and\na payment with no bill data initiates exactly as it always did.\n \nThe values are a snapshot taken at initiation time and never re-synced — this service does\nnot re-read the monolith, or its own `bills` table, to enrich or correct them\nafterwards.\n \nThe per-bill amount breakdown is advisory. A breakdown that does not add up, or whose\n`NetAmount`s do not sum to Amount, is logged as a warning and never\nrejects the payment — the caller already authorized the disbursement. */\n bills?: BillPaymentDocumentInput[] | undefined;\n /** The vendor credits applied to this payment, as the monolith knew them at initiation. Used to\ncompose the vendor-facing remittance memo's `Credits:` segment and recorded as a\nper-credit snapshot alongside the payment (PYB-3374, ARCH-PAY-005/006).\n \nOptional — when null (or empty), no credit rows are recorded and no `Credits:` segment\nis composed. Absence is not an error and is indistinguishable from a payment that applied no\ncredits: this is a sibling of Bills, not a required companion to it.\n \nThe values are a snapshot taken at initiation time and never re-synced. There is no\n`DocumentType` discriminator on the wire — that distinction is storage-only\n(`BillPaymentDocumentType`); this is a second, separately-typed list precisely so an\nabsent/defaulted discriminator can never mis-bind a credit as a bill. */\n credits?: BillPaymentCreditInput[] | undefined;\n}\n\n/** One bill covered by a payment, as the monolith knew it at initiation time. Supplied by the caller on Bills; recorded verbatim as a write-once snapshot and used to compose the vendor-facing remittance memo. StBillId is the only required field — every other value is optional, because the monolith may not hold it for a given bill and an absent value must never fail a disbursement. */\nexport interface BillPaymentDocumentInput {\n /** The monolith's `InventoryBill.Id`. Not a foreign key into this service's own\n`bills` table (populated separately by the 3WM/document-changed Kafka sync, which is\nneither complete nor authoritative at payment time).\n \n`required` binds the compiler, not the wire. This host deserializes request bodies with\nNewtonsoft (`MoneyoutServiceHostWebModule`'s `AddNewtonsoftJson`), which sets\nproperties reflectively and has no notion of `RequiredMemberAttribute`, so a body that\nomits this field binds it to `0` and is accepted. That gap is known and currently\naccepted — it is not specific to this property; none of the `required` members across\n`src/Core.Models/Api/` are enforced at the wire, including `Amount` and\n`VendorPaymentId` on this same endpoint. The fix belongs at the host (a contract\nresolver mapping `RequiredMemberAttribute` onto Newtonsoft's `Required.Always`),\nnot in a per-property attribute here. Pinned by\n`BillPaymentBillsBindingIntegrationTests`. */\n stBillId: number;\n /** The monolith's `InventoryBill.Number` — ServiceTitan's own internal bill number.\nPersisted for support so a row can be traced back to the bill it snapshots. Never composed\ninto the memo and never a fallback for VendorDocumentNumber: a vendor has never\nseen this number, so printing it on a check memo repeats exactly the failure this feature\nexists to fix (see `RemittanceMemoComposer`). */\n billNumber?: string | undefined;\n /** The monolith's `InventoryBill.VendorInvoiceNumber` — the number the vendor itself\nprinted on the invoice. Preferred memo token. */\n vendorDocumentNumber?: string | undefined;\n /** The monolith's `InventoryBill.Date`. Memo ordering key; nullable upstream. */\n billDate?: Date | undefined;\n /** Amount applied to this bill before discount and credit. */\n grossAmount: number;\n /** Term discount taken on this bill. */\n discountAmount: number;\n /** Vendor credit applied to this bill. */\n creditAppliedAmount: number;\n /** Cash actually applied to this bill (the monolith's `VendorPaymentSplit.Amount`). */\n netAmount: number;\n /** **Deprecated.** Accepted for wire compatibility only — no longer persisted or read as of\nPYB-3374 phase 2. Superseded by Credits\n(BillPaymentCreditInput), which carries a stable `StCreditId` and a proper\nvendor-document-number field instead of an unstructured string list. Removing this property\nfrom `Core.Models` is a MAJOR version bump coordinated with `servicetitan/app`, and\nis out of scope for this phase — the property itself must not be removed here.\n \nOptional — null (the caller sent no credits) and an empty list (the caller sent an empty\narray) are distinct and both preserved, as before, but neither has any effect any longer. */\n creditDocumentNumbers?: string[] | undefined;\n}\n\n/** One vendor credit applied to a payment, as the monolith knew it at initiation time. Supplied by the caller on Credits; recorded verbatim as a write-once snapshot and used to compose the vendor-facing remittance memo's `Credits:` segment (ARCH-PAY-005 seam table). StCreditId is the only required field — every other value is optional, because the monolith may not hold it for a given credit and an absent value must never fail a disbursement. */\nexport interface BillPaymentCreditInput {\n /** The monolith's `VendorCredit.Id`. Not a foreign key into this service's own tables.\n \n`required` binds the compiler, not the wire. This host deserializes request bodies with\nNewtonsoft (`MoneyoutServiceHostWebModule`'s `AddNewtonsoftJson`), which sets\nproperties reflectively and has no notion of `RequiredMemberAttribute`, so a body that\nomits this field binds it to `0` and is accepted. That gap is known and currently\naccepted — it is not specific to this property; none of the `required` members across\n`src/Core.Models/Api/` are enforced at the wire, including `Amount` and\n`VendorPaymentId` on this same endpoint. The fix belongs at the host (a contract\nresolver mapping `RequiredMemberAttribute` onto Newtonsoft's `Required.Always`),\nnot in a per-property attribute here. */\n stCreditId: number;\n /** The monolith's own credit number (ServiceTitan's internal identifier for this\n`VendorCredit`). Persisted for support so a row can be traced back to the credit it\nsnapshots — never composed into the memo, and never falls back into\nVendorDocumentNumber's place. A vendor has never seen this number. */\n creditNumber?: string | undefined;\n /** `VendorCredit.ReferenceNumber` only — the number the vendor itself issued for this\ncredit. There is no fallback to CreditNumber or any other field: the monolith's\n`VendorPaymentRepository.cs:1124-1127` once mapped the wrong field onto a similarly-named\nproperty, and this service's composer (`RemittanceMemoComposer`) is the only enforcement\npoint standing between that class of mistake and a vendor-facing check memo. A blank value\ncontributes nothing to the memo — never CreditNumber printed in its place. */\n vendorDocumentNumber?: string | undefined;\n /** The monolith's `VendorCredit.Date`. Memo ordering key; nullable upstream. */\n creditDate?: Date | undefined;\n /** Amount of this credit applied to the payment. Persisted for support only —\ndeliberately excluded from the REQ-PAY-REMITMEMO-008 amount-identity check\n(`sum(NetAmount) == request.Amount` already accounts for credits via each bill's own\n`NetAmount`, which is net of credits). Never added to that comparison. */\n appliedAmount: number;\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 /** The Ramp funding bank-account id to draw from; null/omitted reuses the original payment's\nfunding account. */\n sourceBankAccountId?: 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","externalPaymentId","cancelPayment","getSourceAccounts","getDefaultFundingAccountGl","jsonParseReviver","FundingGlMatchStrategy"],"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;AAoC1D,OAAO,MAAMC,8BAA8BH,YAAoB,kBAAkB,OAAO;AAGxF,OAAO,MAAMI;IAMT;;;KAGC,GACDC,gBAAgBC,QAAgB,EAAEC,OAA+B,EAAEC,W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O,CAA2BQ;IACtE;IAjJA,YAAY,AAAkEE,UAAU,EAAE,CAAE;;QAF5F,uBAAUU,oBAAV,KAAA;aAE8EV,UAAAA;aAFpEU,mBAAmEjB;IAG7E;AAiJJ;;;;;;;;;;AAkMA,sUAAsU,GACtU,OAAO,IAAA,AAAKkB,gDAAAA;;;;WAAAA;MAIX"}
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 \"$.bills[*].billDate\",\n \"$.credits[*].creditDate\",\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 /** The funding source account the payment should draw from — the\n`bankAccountId` of a `SourceAccount` the caller selected from\n`GetBillPaySourceAccountsAsync`. Forwarded to the adapter as the payment source.\n \nOptional — when null (or empty), the service falls back to the tenant's default\nfunding account (the same account the read/match endpoints surface). Supplied by the\nmonolith's user-selectable \"Payment Account\" selector (PYB-2796). Ramp rejects an\naccount id that is not Bill-Pay-eligible, so callers should pass a value obtained from\nthe source-accounts list rather than an arbitrary id. */\n sourceBankAccountId?: string | undefined;\n /** The bills this payment covers, as the monolith knew them at initiation. Used to compose the\nvendor-facing remittance memo and recorded as a per-bill snapshot alongside the payment.\n \nOptional — when null (or empty), no snapshot is recorded and no memo is composed. Absence is\nnot an error: this service accepted the property before the monolith started sending it, and\na payment with no bill data initiates exactly as it always did.\n \nThe values are a snapshot taken at initiation time and never re-synced — this service does\nnot re-read the monolith, or its own `bills` table, to enrich or correct them\nafterwards.\n \nThe per-bill amount breakdown is advisory. A breakdown that does not add up, or whose\n`NetAmount`s do not sum to Amount, is logged as a warning and never\nrejects the payment — the caller already authorized the disbursement. */\n bills?: BillPaymentDocumentInput[] | undefined;\n /** The vendor credits applied to this payment, as the monolith knew them at initiation. Used to\ncompose the vendor-facing remittance memo's `Credits:` segment and recorded as a\nper-credit snapshot alongside the payment (PYB-3374, ARCH-PAY-005/006).\n \nOptional — when null (or empty), no credit rows are recorded and no `Credits:` segment\nis composed. Absence is not an error and is indistinguishable from a payment that applied no\ncredits: this is a sibling of Bills, not a required companion to it.\n \nThe values are a snapshot taken at initiation time and never re-synced. There is no\n`DocumentType` discriminator on the wire — that distinction is storage-only\n(`BillPaymentDocumentType`); this is a second, separately-typed list precisely so an\nabsent/defaulted discriminator can never mis-bind a credit as a bill. */\n credits?: BillPaymentCreditInput[] | undefined;\n}\n\n/** One bill covered by a payment, as the monolith knew it at initiation time. Supplied by the caller on Bills; recorded verbatim as a write-once snapshot and used to compose the vendor-facing remittance memo. StBillId is the only required field — every other value is optional, because the monolith may not hold it for a given bill and an absent value must never fail a disbursement. */\nexport interface BillPaymentDocumentInput {\n /** The monolith's `InventoryBill.Id`. Not a foreign key into this service's own\n`bills` table (populated separately by the 3WM/document-changed Kafka sync, which is\nneither complete nor authoritative at payment time).\n \n`required` binds the compiler, not the wire. This host deserializes request bodies with\nNewtonsoft (`MoneyoutServiceHostWebModule`'s `AddNewtonsoftJson`), which sets\nproperties reflectively and has no notion of `RequiredMemberAttribute`, so a body that\nomits this field binds it to `0` and is accepted. That gap is known and currently\naccepted — it is not specific to this property; none of the `required` members across\n`src/Core.Models/Api/` are enforced at the wire, including `Amount` and\n`VendorPaymentId` on this same endpoint. The fix belongs at the host (a contract\nresolver mapping `RequiredMemberAttribute` onto Newtonsoft's `Required.Always`),\nnot in a per-property attribute here. Pinned by\n`BillPaymentBillsBindingIntegrationTests`. */\n stBillId: number;\n /** The monolith's `InventoryBill.Number` — ServiceTitan's own internal bill number.\nPersisted for support so a row can be traced back to the bill it snapshots. Never composed\ninto the memo and never a fallback for VendorDocumentNumber: a vendor has never\nseen this number, so printing it on a check memo repeats exactly the failure this feature\nexists to fix (see `RemittanceMemoComposer`). */\n billNumber?: string | undefined;\n /** The monolith's `InventoryBill.VendorInvoiceNumber` — the number the vendor itself\nprinted on the invoice. Preferred memo token. */\n vendorDocumentNumber?: string | undefined;\n /** The monolith's `InventoryBill.Date`. Memo ordering key; nullable upstream. */\n billDate?: Date | undefined;\n /** Amount applied to this bill before discount and credit. */\n grossAmount: number;\n /** Term discount taken on this bill. */\n discountAmount: number;\n /** Vendor credit applied to this bill. */\n creditAppliedAmount: number;\n /** Cash actually applied to this bill (the monolith's `VendorPaymentSplit.Amount`). */\n netAmount: number;\n /** **Deprecated.** Accepted for wire compatibility only — no longer persisted or read as of\nPYB-3374 phase 2. Superseded by Credits\n(BillPaymentCreditInput), which carries a stable `StCreditId` and a proper\nvendor-document-number field instead of an unstructured string list. Removing this property\nfrom `Core.Models` is a MAJOR version bump coordinated with `servicetitan/app`, and\nis out of scope for this phase — the property itself must not be removed here.\n \nOptional — null (the caller sent no credits) and an empty list (the caller sent an empty\narray) are distinct and both preserved, as before, but neither has any effect any longer. */\n creditDocumentNumbers?: string[] | undefined;\n}\n\n/** One vendor credit applied to a payment, as the monolith knew it at initiation time. Supplied by the caller on Credits; recorded verbatim as a write-once snapshot and used to compose the vendor-facing remittance memo's `Credits:` segment (ARCH-PAY-005 seam table). StCreditId is the only required field — every other value is optional, because the monolith may not hold it for a given credit and an absent value must never fail a disbursement. */\nexport interface BillPaymentCreditInput {\n /** The monolith's `VendorCredit.Id`. Not a foreign key into this service's own tables.\n \n`required` binds the compiler, not the wire. This host deserializes request bodies with\nNewtonsoft (`MoneyoutServiceHostWebModule`'s `AddNewtonsoftJson`), which sets\nproperties reflectively and has no notion of `RequiredMemberAttribute`, so a body that\nomits this field binds it to `0` and is accepted. That gap is known and currently\naccepted — it is not specific to this property; none of the `required` members across\n`src/Core.Models/Api/` are enforced at the wire, including `Amount` and\n`VendorPaymentId` on this same endpoint. The fix belongs at the host (a contract\nresolver mapping `RequiredMemberAttribute` onto Newtonsoft's `Required.Always`),\nnot in a per-property attribute here. */\n stCreditId: number;\n /** The monolith's own credit number (ServiceTitan's internal identifier for this\n`VendorCredit`). Persisted for support so a row can be traced back to the credit it\nsnapshots — never composed into the memo, and never falls back into\nVendorDocumentNumber's place. A vendor has never seen this number. */\n creditNumber?: string | undefined;\n /** `VendorCredit.ReferenceNumber` only — the number the vendor itself issued for this\ncredit. There is no fallback to CreditNumber or any other field: the monolith's\n`VendorPaymentRepository.cs:1124-1127` once mapped the wrong field onto a similarly-named\nproperty, and this service's composer (`RemittanceMemoComposer`) is the only enforcement\npoint standing between that class of mistake and a vendor-facing check memo. A blank value\ncontributes nothing to the memo — never CreditNumber printed in its place. */\n vendorDocumentNumber?: string | undefined;\n /** The monolith's `VendorCredit.Date`. Memo ordering key; nullable upstream. */\n creditDate?: Date | undefined;\n /** Amount of this credit applied to the payment. Persisted for support only —\ndeliberately excluded from the REQ-PAY-REMITMEMO-008 amount-identity check\n(`sum(NetAmount) == request.Amount` already accounts for credits via each bill's own\n`NetAmount`, which is net of credits). Never added to that comparison. */\n appliedAmount: number;\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 /** The Ramp funding bank-account id to draw from; null/omitted reuses the original payment's\nfunding account. */\n sourceBankAccountId?: 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 /** Whether the payment partner can fund payments from this account: `true` — payable;\n`false` — the partner has no ACH details for this account, so payments from it will be\nrejected; `null` — unknown (not reported, or the lookup failed). Callers must not block\non `null`. Forwarded verbatim from the MOA client response. */\n hasAchDetails?: boolean | 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\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","externalPaymentId","cancelPayment","getSourceAccounts","getDefaultFundingAccountGl","jsonParseReviver","FundingGlMatchStrategy"],"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;AAoC1D,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;YACA;YACA;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,EAAEhB,OAAgC,EAAEC,WAAyB,EAAyC;QAC1J,IAAIC,OAAO;QACX,IAAIH,a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AAmB,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;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;IAjJA,YAAY,AAAkEE,UAAU,EAAE,CAAE;;QAF5F,uBAAUU,oBAAV,KAAA;aAE8EV,UAAAA;aAFpEU,mBAAmEjB;IAG7E;AAiJJ;;;;;;;;;;AAuMA,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.42.5-beta.289",
3
+ "version": "1.43.0-beta.290",
4
4
  "description": "Auto-generated TypeScript API client for MoneyOut Service",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",