@flexprice/sdk 2.1.48-dev.1 → 2.1.48-dev.10

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.
Files changed (79) hide show
  1. package/docs/sdk/models/billing-term-input.md +15 -14
  2. package/docs/sdk/models/billingterm-term.md +25 -24
  3. package/docs/sdk/models/create-commitment-request.md +1 -1
  4. package/docs/sdk/models/get-subscription-v2-request.md +4 -4
  5. package/docs/sdk/models/invoice-billing-reason.md +1 -1
  6. package/docs/sdk/models/subscription-response-v2.md +1 -0
  7. package/docs/sdk/models/subscription-response.md +1 -0
  8. package/docs/sdk/models/terminate-commitment-request.md +4 -4
  9. package/docs/sdk/models/trigger-instalment-request.md +3 -3
  10. package/docs/sdk/models/update-commitment-request.md +7 -6
  11. package/docs/sdks/commitments/README.md +2 -2
  12. package/docs/sdks/subscriptions/README.md +1 -1
  13. package/docs/sdks/webhookevents/README.md +3 -3
  14. package/esm/funcs/commitments-terminate-commitment.d.ts +1 -1
  15. package/esm/funcs/commitments-terminate-commitment.js +1 -1
  16. package/esm/funcs/commitments-trigger-commitment-instalment.d.ts +1 -1
  17. package/esm/funcs/commitments-trigger-commitment-instalment.js +1 -1
  18. package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-created.d.ts +1 -1
  19. package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-created.js +1 -1
  20. package/esm/funcs/webhook-events-post-webhook-events-billing-terms-created.d.ts +1 -1
  21. package/esm/funcs/webhook-events-post-webhook-events-billing-terms-created.js +1 -1
  22. package/esm/funcs/webhook-events-post-webhook-events-billing-terms-updated.d.ts +1 -1
  23. package/esm/funcs/webhook-events-post-webhook-events-billing-terms-updated.js +1 -1
  24. package/esm/lib/config.d.ts +2 -2
  25. package/esm/lib/config.d.ts.map +1 -1
  26. package/esm/lib/config.js +2 -2
  27. package/esm/lib/config.js.map +1 -1
  28. package/esm/sdk/commitments.d.ts +2 -2
  29. package/esm/sdk/commitments.js +2 -2
  30. package/esm/sdk/models/billing-term-input.d.ts +11 -5
  31. package/esm/sdk/models/billing-term-input.d.ts.map +1 -1
  32. package/esm/sdk/models/billing-term-input.js +3 -0
  33. package/esm/sdk/models/billing-term-input.js.map +1 -1
  34. package/esm/sdk/models/billingterm-term.d.ts +3 -1
  35. package/esm/sdk/models/billingterm-term.d.ts.map +1 -1
  36. package/esm/sdk/models/billingterm-term.js +3 -0
  37. package/esm/sdk/models/billingterm-term.js.map +1 -1
  38. package/esm/sdk/models/create-commitment-request.d.ts +1 -1
  39. package/esm/sdk/models/get-subscription-v2-op.d.ts +1 -1
  40. package/esm/sdk/models/invoice-billing-reason.d.ts +1 -0
  41. package/esm/sdk/models/invoice-billing-reason.d.ts.map +1 -1
  42. package/esm/sdk/models/invoice-billing-reason.js +1 -0
  43. package/esm/sdk/models/invoice-billing-reason.js.map +1 -1
  44. package/esm/sdk/models/subscription-response-v2.d.ts +5 -0
  45. package/esm/sdk/models/subscription-response-v2.d.ts.map +1 -1
  46. package/esm/sdk/models/subscription-response-v2.js +2 -0
  47. package/esm/sdk/models/subscription-response-v2.js.map +1 -1
  48. package/esm/sdk/models/subscription-response.d.ts +5 -0
  49. package/esm/sdk/models/subscription-response.d.ts.map +1 -1
  50. package/esm/sdk/models/subscription-response.js +2 -0
  51. package/esm/sdk/models/subscription-response.js.map +1 -1
  52. package/esm/sdk/models/terminate-commitment-request.d.ts +1 -1
  53. package/esm/sdk/models/trigger-instalment-request.d.ts +1 -1
  54. package/esm/sdk/models/update-commitment-request.d.ts +5 -0
  55. package/esm/sdk/models/update-commitment-request.d.ts.map +1 -1
  56. package/esm/sdk/models/update-commitment-request.js +2 -0
  57. package/esm/sdk/models/update-commitment-request.js.map +1 -1
  58. package/esm/sdk/webhook-events.d.ts +3 -3
  59. package/esm/sdk/webhook-events.js +3 -3
  60. package/jsr.json +1 -1
  61. package/package.json +2 -2
  62. package/src/funcs/commitments-terminate-commitment.ts +1 -1
  63. package/src/funcs/commitments-trigger-commitment-instalment.ts +1 -1
  64. package/src/funcs/webhook-events-post-webhook-events-billing-instalment-created.ts +1 -1
  65. package/src/funcs/webhook-events-post-webhook-events-billing-terms-created.ts +1 -1
  66. package/src/funcs/webhook-events-post-webhook-events-billing-terms-updated.ts +1 -1
  67. package/src/lib/config.ts +3 -2
  68. package/src/sdk/commitments.ts +2 -2
  69. package/src/sdk/models/billing-term-input.ts +16 -5
  70. package/src/sdk/models/billingterm-term.ts +8 -1
  71. package/src/sdk/models/create-commitment-request.ts +1 -1
  72. package/src/sdk/models/get-subscription-v2-op.ts +1 -1
  73. package/src/sdk/models/invoice-billing-reason.ts +1 -0
  74. package/src/sdk/models/subscription-response-v2.ts +9 -0
  75. package/src/sdk/models/subscription-response.ts +9 -0
  76. package/src/sdk/models/terminate-commitment-request.ts +1 -1
  77. package/src/sdk/models/trigger-instalment-request.ts +1 -1
  78. package/src/sdk/models/update-commitment-request.ts +7 -0
  79. package/src/sdk/webhook-events.ts +3 -3
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Terminate commitment
31
31
  *
32
32
  * @remarks
33
- * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled and any amount it earned beyond what is already invoiced is billed as a settlement. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
33
+ * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled, and those already due by effective_at are billed together as one settlement; later instalments are not billed and nothing is refunded. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
34
34
  */
35
35
  export function commitmentsTerminateCommitment(
36
36
  client: FlexpriceCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Trigger instalment
31
31
  *
32
32
  * @remarks
33
- * Bills a manual instalment of an active commitment on bill_on, now by default, which must fall within the commitment term. The instalment goes on the first subscription invoice at or after that date, or on its own invoice once due when the commitment's instalment_invoicing is separate_invoice. Either way it waits while the subscription is trialing or paused. Until it is triggered, a manual instalment waits at the end of the term, and bill_on can only move earlier; edit the billing terms to bill it later.
33
+ * Bills a manual instalment of an active commitment on bill_on, now by default, which must fall within the commitment term. The instalment goes on the first subscription invoice at or after that date, or on its own invoice once due when its instalment_invoicing, the term's or else the commitment's, is separate_invoice. Either way it waits while the subscription is trialing or paused. Until it is triggered, a manual instalment waits at the end of the term, and bill_on can only move earlier; edit the billing terms to bill it later.
34
34
  */
35
35
  export function commitmentsTriggerCommitmentInstalment(
36
36
  client: FlexpriceCore,
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
27
27
  * billing_instalment.created
28
28
  *
29
29
  * @remarks
30
- * Fired when a billing instalment is added to a commitment. Doc-only for parsing.
30
+ * Fired when a billing instalment is scheduled for an entity (like a commitment). Doc-only for parsing.
31
31
  */
32
32
  export function webhookEventsPostWebhookEventsBillingInstalmentCreated(
33
33
  client: FlexpriceCore,
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
27
27
  * billing_terms.created
28
28
  *
29
29
  * @remarks
30
- * Fired when billing terms are saved with a new commitment. Doc-only for parsing.
30
+ * Fired when billing terms are saved against an entity (like a commitment). Doc-only for parsing.
31
31
  */
32
32
  export function webhookEventsPostWebhookEventsBillingTermsCreated(
33
33
  client: FlexpriceCore,
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
27
27
  * billing_terms.updated
28
28
  *
29
29
  * @remarks
30
- * Fired when an edit replaces a commitment's billing terms. Doc-only for parsing.
30
+ * Fired when an entity's (like a commitment's) billing terms are replaced. Doc-only for parsing.
31
31
  */
32
32
  export function webhookEventsPostWebhookEventsBillingTermsUpdated(
33
33
  client: FlexpriceCore,
package/src/lib/config.ts CHANGED
@@ -77,7 +77,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
77
77
  export const SDK_METADATA = {
78
78
  language: "typescript",
79
79
  openapiDocVersion: "1.0",
80
- sdkVersion: "2.1.48-dev.1",
80
+ sdkVersion: "2.1.48-dev.10",
81
81
  genVersion: "2.956.1",
82
- userAgent: "speakeasy-sdk/typescript 2.1.48-dev.1 2.956.1 1.0 @flexprice/sdk",
82
+ userAgent:
83
+ "speakeasy-sdk/typescript 2.1.48-dev.10 2.956.1 1.0 @flexprice/sdk",
83
84
  } as const;
@@ -183,7 +183,7 @@ export class Commitments extends ClientSDK {
183
183
  * Trigger instalment
184
184
  *
185
185
  * @remarks
186
- * Bills a manual instalment of an active commitment on bill_on, now by default, which must fall within the commitment term. The instalment goes on the first subscription invoice at or after that date, or on its own invoice once due when the commitment's instalment_invoicing is separate_invoice. Either way it waits while the subscription is trialing or paused. Until it is triggered, a manual instalment waits at the end of the term, and bill_on can only move earlier; edit the billing terms to bill it later.
186
+ * Bills a manual instalment of an active commitment on bill_on, now by default, which must fall within the commitment term. The instalment goes on the first subscription invoice at or after that date, or on its own invoice once due when its instalment_invoicing, the term's or else the commitment's, is separate_invoice. Either way it waits while the subscription is trialing or paused. Until it is triggered, a manual instalment waits at the end of the term, and bill_on can only move earlier; edit the billing terms to bill it later.
187
187
  */
188
188
  async triggerCommitmentInstalment(
189
189
  id: string,
@@ -204,7 +204,7 @@ export class Commitments extends ClientSDK {
204
204
  * Terminate commitment
205
205
  *
206
206
  * @remarks
207
- * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled and any amount it earned beyond what is already invoiced is billed as a settlement. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
207
+ * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled, and those already due by effective_at are billed together as one settlement; later instalments are not billed and nothing is refunded. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
208
208
  */
209
209
  async terminateCommitment(
210
210
  id: string,
@@ -20,6 +20,10 @@ import {
20
20
  InstalmentBillTrigger,
21
21
  InstalmentBillTrigger$outboundSchema,
22
22
  } from "./instalment-bill-trigger.js";
23
+ import {
24
+ InstalmentDelivery,
25
+ InstalmentDelivery$outboundSchema,
26
+ } from "./instalment-delivery.js";
23
27
  import {
24
28
  InvoiceCadence,
25
29
  InvoiceCadence$outboundSchema,
@@ -27,20 +31,21 @@ import {
27
31
 
28
32
  export type BillingTermInput = {
29
33
  /**
30
- * BillOn is a whole second, the commitment start by default. On an edit it defaults to the start of the billing
34
+ * BillOn defaults to the commitment start, or on an edit to the start of the billing period holding now (the
31
35
  *
32
36
  * @remarks
33
- * period holding now, or to the commitment start once the term has ended.
37
+ * commitment start once its term has ended). A manual term omits it and waits at the commitment end.
34
38
  */
35
39
  billOn?: string | undefined;
36
40
  billTrigger?: InstalmentBillTrigger | undefined;
37
41
  endDate?: Date | undefined;
42
+ instalmentInvoicing?: InstalmentDelivery | undefined;
38
43
  invoiceCadence?: InvoiceCadence | undefined;
39
44
  /**
40
- * InvoiceLabel names the term's instalments on the invoice, "Instalment {n} of {of}" by default. {n} and {of} are
45
+ * InvoiceLabel names the term's instalments, "Instalment {n} of {of}" by default. {n} and {of} count only the
41
46
  *
42
47
  * @remarks
43
- * filled with each instalment's place among all of the commitment's instalments and their count.
48
+ * commitment's instalments whose labels use them.
44
49
  */
45
50
  invoiceLabel?: string | undefined;
46
51
  kind: BillingTermKind;
@@ -48,7 +53,10 @@ export type BillingTermInput = {
48
53
  periodCount?: number | undefined;
49
54
  split?: BillingTermSplit | undefined;
50
55
  /**
51
- * StartDate defaults like BillOn; EndDate defaults to the commitment end. Both are whole seconds.
56
+ * StartDate and EndDate are edges of the periods the term steps on: billing periods, or anniversary ones when it is
57
+ *
58
+ * @remarks
59
+ * invoiced separately; by default, the period holding the commitment start (now, on an edit) to the commitment end.
52
60
  */
53
61
  startDate?: Date | undefined;
54
62
  value?: string | undefined;
@@ -63,6 +71,7 @@ export type BillingTermInput$Outbound = {
63
71
  bill_on?: string | undefined;
64
72
  bill_trigger?: string | undefined;
65
73
  end_date?: string | undefined;
74
+ instalment_invoicing?: string | undefined;
66
75
  invoice_cadence?: string | undefined;
67
76
  invoice_label?: string | undefined;
68
77
  kind: string;
@@ -83,6 +92,7 @@ export const BillingTermInput$outboundSchema: z.ZodMiniType<
83
92
  billOn: z.optional(z.string()),
84
93
  billTrigger: z.optional(InstalmentBillTrigger$outboundSchema),
85
94
  endDate: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
95
+ instalmentInvoicing: z.optional(InstalmentDelivery$outboundSchema),
86
96
  invoiceCadence: z.optional(InvoiceCadence$outboundSchema),
87
97
  invoiceLabel: z.optional(z.string()),
88
98
  kind: BillingTermKind$outboundSchema,
@@ -98,6 +108,7 @@ export const BillingTermInput$outboundSchema: z.ZodMiniType<
98
108
  billOn: "bill_on",
99
109
  billTrigger: "bill_trigger",
100
110
  endDate: "end_date",
111
+ instalmentInvoicing: "instalment_invoicing",
101
112
  invoiceCadence: "invoice_cadence",
102
113
  invoiceLabel: "invoice_label",
103
114
  periodCount: "period_count",
@@ -27,6 +27,10 @@ import {
27
27
  InstalmentBillTrigger,
28
28
  InstalmentBillTrigger$inboundSchema,
29
29
  } from "./instalment-bill-trigger.js";
30
+ import {
31
+ InstalmentDelivery,
32
+ InstalmentDelivery$inboundSchema,
33
+ } from "./instalment-delivery.js";
30
34
  import {
31
35
  InvoiceCadence,
32
36
  InvoiceCadence$inboundSchema,
@@ -42,12 +46,13 @@ export type BillingtermTerm = {
42
46
  endDate?: Date | undefined;
43
47
  environmentId?: string | undefined;
44
48
  id?: string | undefined;
49
+ instalmentInvoicing?: InstalmentDelivery | undefined;
45
50
  invoiceCadence?: InvoiceCadence | undefined;
46
51
  /**
47
52
  * InvoiceLabel names its instalments on the invoice, after the owner's label. It may use {n} and {of}, which number
48
53
  *
49
54
  * @remarks
50
- * all of the owner's instalments together.
55
+ * the owner's instalments whose labels use them.
51
56
  */
52
57
  invoiceLabel?: string | undefined;
53
58
  kind?: BillingTermKind | undefined;
@@ -87,6 +92,7 @@ export const BillingtermTerm$inboundSchema: z.ZodMiniType<
87
92
  end_date: types.optional(types.date()),
88
93
  environment_id: types.optional(types.string()),
89
94
  id: types.optional(types.string()),
95
+ instalment_invoicing: types.optional(InstalmentDelivery$inboundSchema),
90
96
  invoice_cadence: types.optional(InvoiceCadence$inboundSchema),
91
97
  invoice_label: types.optional(types.string()),
92
98
  kind: types.optional(BillingTermKind$inboundSchema),
@@ -111,6 +117,7 @@ export const BillingtermTerm$inboundSchema: z.ZodMiniType<
111
117
  "created_by": "createdBy",
112
118
  "end_date": "endDate",
113
119
  "environment_id": "environmentId",
120
+ "instalment_invoicing": "instalmentInvoicing",
114
121
  "invoice_cadence": "invoiceCadence",
115
122
  "invoice_label": "invoiceLabel",
116
123
  "owner_id": "ownerId",
@@ -68,7 +68,7 @@ export type CreateCommitmentRequest = {
68
68
  priority?: number | undefined;
69
69
  scope: CommitmentScopeInput;
70
70
  /**
71
- * StartDate and EndDate must be whole seconds.
71
+ * StartDate and EndDate within a second after a billing period edge are taken as that edge.
72
72
  */
73
73
  startDate: Date;
74
74
  /**
@@ -10,7 +10,7 @@ export type GetSubscriptionV2Request = {
10
10
  */
11
11
  id: string;
12
12
  /**
13
- * Comma-separated list of fields to expand (e.g., 'subscription_line_items,prices,plan')
13
+ * Comma-separated list of fields to expand (e.g., 'subscription_line_items,prices,plan,commitments')
14
14
  */
15
15
  expand?: string | undefined;
16
16
  };
@@ -18,6 +18,7 @@ export const InvoiceBillingReason = {
18
18
  SubscriptionPaused: "SUBSCRIPTION_PAUSED",
19
19
  SubscriptionResume: "SUBSCRIPTION_RESUME",
20
20
  BillingTerms: "BILLING_TERMS",
21
+ CommitmentTermination: "COMMITMENT_TERMINATION",
21
22
  } as const;
22
23
  export type InvoiceBillingReason = ClosedEnum<typeof InvoiceBillingReason>;
23
24
 
@@ -16,6 +16,10 @@ import {
16
16
  BillingPeriod,
17
17
  BillingPeriod$inboundSchema,
18
18
  } from "./billing-period.js";
19
+ import {
20
+ CommitmentResponse,
21
+ CommitmentResponse$inboundSchema,
22
+ } from "./commitment-response.js";
19
23
  import {
20
24
  CouponAssociationResponse,
21
25
  CouponAssociationResponse$inboundSchema,
@@ -114,6 +118,10 @@ export type SubscriptionResponseV2 = {
114
118
  */
115
119
  commitmentAmount?: string | undefined;
116
120
  commitmentDuration?: BillingPeriod | undefined;
121
+ /**
122
+ * Commitments are included when "commitments" is in expand parameter
123
+ */
124
+ commitments?: Array<CommitmentResponse> | undefined;
117
125
  /**
118
126
  * CouponAssociations are included when "coupon_associations" is in expand parameter
119
127
  */
@@ -275,6 +283,7 @@ export const SubscriptionResponseV2$inboundSchema: z.ZodMiniType<
275
283
  collection_method: types.optional(types.string()),
276
284
  commitment_amount: types.optional(types.string()),
277
285
  commitment_duration: types.optional(BillingPeriod$inboundSchema),
286
+ commitments: types.optional(z.array(CommitmentResponse$inboundSchema)),
278
287
  coupon_associations: types.optional(
279
288
  z.array(CouponAssociationResponse$inboundSchema),
280
289
  ),
@@ -24,6 +24,10 @@ import {
24
24
  CheckoutSessionResponse,
25
25
  CheckoutSessionResponse$inboundSchema,
26
26
  } from "./checkout-session-response.js";
27
+ import {
28
+ CommitmentResponse,
29
+ CommitmentResponse$inboundSchema,
30
+ } from "./commitment-response.js";
27
31
  import {
28
32
  CouponAssociationResponse,
29
33
  CouponAssociationResponse$inboundSchema,
@@ -127,6 +131,10 @@ export type SubscriptionResponse = {
127
131
  */
128
132
  commitmentAmount?: string | undefined;
129
133
  commitmentDuration?: BillingPeriod | undefined;
134
+ /**
135
+ * Commitments are the commitments created with the subscription; set on create only.
136
+ */
137
+ commitments?: Array<CommitmentResponse> | undefined;
130
138
  /**
131
139
  * CouponAssociations are the coupon associations for this subscription
132
140
  */
@@ -281,6 +289,7 @@ export const SubscriptionResponse$inboundSchema: z.ZodMiniType<
281
289
  collection_method: types.optional(types.string()),
282
290
  commitment_amount: types.optional(types.string()),
283
291
  commitment_duration: types.optional(BillingPeriod$inboundSchema),
292
+ commitments: types.optional(z.array(CommitmentResponse$inboundSchema)),
284
293
  coupon_associations: types.optional(
285
294
  z.array(CouponAssociationResponse$inboundSchema),
286
295
  ),
@@ -13,7 +13,7 @@ import {
13
13
  export type TerminateCommitmentRequest = {
14
14
  cancellationFee?: CancellationFeeInput | undefined;
15
15
  /**
16
- * EffectiveAt defaults to now; a given one must be a whole second.
16
+ * EffectiveAt defaults to now; within a second after a billing period edge it is taken as that edge.
17
17
  */
18
18
  effectiveAt?: Date | undefined;
19
19
  };
@@ -7,7 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
8
  export type TriggerInstalmentRequest = {
9
9
  /**
10
- * BillOn must be a whole second.
10
+ * BillOn within a second after a billing period edge is taken as that edge.
11
11
  */
12
12
  billOn?: string | undefined;
13
13
  };
@@ -6,6 +6,10 @@ import * as z from "zod/v4-mini";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
8
  export type UpdateCommitmentRequest = {
9
+ /**
10
+ * EndDate can't be changed yet; terminate the commitment to end it.
11
+ */
12
+ endDate?: Date | undefined;
9
13
  invoiceDescription?: string | undefined;
10
14
  invoiceLabel?: string | undefined;
11
15
  metadata?: { [k: string]: string } | undefined;
@@ -14,6 +18,7 @@ export type UpdateCommitmentRequest = {
14
18
 
15
19
  /** @internal */
16
20
  export type UpdateCommitmentRequest$Outbound = {
21
+ end_date?: string | undefined;
17
22
  invoice_description?: string | undefined;
18
23
  invoice_label?: string | undefined;
19
24
  metadata?: { [k: string]: string } | undefined;
@@ -26,6 +31,7 @@ export const UpdateCommitmentRequest$outboundSchema: z.ZodMiniType<
26
31
  UpdateCommitmentRequest
27
32
  > = z.pipe(
28
33
  z.object({
34
+ endDate: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
29
35
  invoiceDescription: z.optional(z.string()),
30
36
  invoiceLabel: z.optional(z.string()),
31
37
  metadata: z.optional(z.record(z.string(), z.string())),
@@ -33,6 +39,7 @@ export const UpdateCommitmentRequest$outboundSchema: z.ZodMiniType<
33
39
  }),
34
40
  z.transform((v) => {
35
41
  return remap$(v, {
42
+ endDate: "end_date",
36
43
  invoiceDescription: "invoice_description",
37
44
  invoiceLabel: "invoice_label",
38
45
  });
@@ -98,7 +98,7 @@ export class WebhookEvents extends ClientSDK {
98
98
  * billing_instalment.created
99
99
  *
100
100
  * @remarks
101
- * Fired when a billing instalment is added to a commitment. Doc-only for parsing.
101
+ * Fired when a billing instalment is scheduled for an entity (like a commitment). Doc-only for parsing.
102
102
  */
103
103
  async postWebhookEventsBillingInstalmentCreated(
104
104
  options?: RequestOptions,
@@ -143,7 +143,7 @@ export class WebhookEvents extends ClientSDK {
143
143
  * billing_terms.created
144
144
  *
145
145
  * @remarks
146
- * Fired when billing terms are saved with a new commitment. Doc-only for parsing.
146
+ * Fired when billing terms are saved against an entity (like a commitment). Doc-only for parsing.
147
147
  */
148
148
  async postWebhookEventsBillingTermsCreated(
149
149
  options?: RequestOptions,
@@ -158,7 +158,7 @@ export class WebhookEvents extends ClientSDK {
158
158
  * billing_terms.updated
159
159
  *
160
160
  * @remarks
161
- * Fired when an edit replaces a commitment's billing terms. Doc-only for parsing.
161
+ * Fired when an entity's (like a commitment's) billing terms are replaced. Doc-only for parsing.
162
162
  */
163
163
  async postWebhookEventsBillingTermsUpdated(
164
164
  options?: RequestOptions,