@paygentic/sdk 0.9.10 → 0.9.12

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 (131) hide show
  1. package/README.md +6 -0
  2. package/dist/commonjs/funcs/subscriptionsDeleteSubscriptionAdjustment.d.ts +3 -2
  3. package/dist/commonjs/funcs/subscriptionsDeleteSubscriptionAdjustment.d.ts.map +1 -1
  4. package/dist/commonjs/funcs/subscriptionsDeleteSubscriptionAdjustment.js +3 -3
  5. package/dist/commonjs/funcs/subscriptionsDeleteSubscriptionAdjustment.js.map +1 -1
  6. package/dist/commonjs/lib/config.d.ts +2 -2
  7. package/dist/commonjs/lib/config.js +2 -2
  8. package/dist/commonjs/models/costreportresponse.d.ts +20 -0
  9. package/dist/commonjs/models/costreportresponse.d.ts.map +1 -1
  10. package/dist/commonjs/models/costreportresponse.js +12 -1
  11. package/dist/commonjs/models/costreportresponse.js.map +1 -1
  12. package/dist/commonjs/models/createmaximumquantityadjustment.d.ts +45 -0
  13. package/dist/commonjs/models/createmaximumquantityadjustment.d.ts.map +1 -0
  14. package/dist/commonjs/models/createmaximumquantityadjustment.js +55 -0
  15. package/dist/commonjs/models/createmaximumquantityadjustment.js.map +1 -0
  16. package/dist/commonjs/models/createminimumquantityadjustment.d.ts +45 -0
  17. package/dist/commonjs/models/createminimumquantityadjustment.d.ts.map +1 -0
  18. package/dist/commonjs/models/createminimumquantityadjustment.js +55 -0
  19. package/dist/commonjs/models/createminimumquantityadjustment.js.map +1 -0
  20. package/dist/commonjs/models/createsubscriptionadjustmentrequest.d.ts +5 -3
  21. package/dist/commonjs/models/createsubscriptionadjustmentrequest.d.ts.map +1 -1
  22. package/dist/commonjs/models/createsubscriptionadjustmentrequest.js +4 -0
  23. package/dist/commonjs/models/createsubscriptionadjustmentrequest.js.map +1 -1
  24. package/dist/commonjs/models/currencybreakdownentry.d.ts +1 -1
  25. package/dist/commonjs/models/grouptrendentry.d.ts +1 -1
  26. package/dist/commonjs/models/index.d.ts +2 -0
  27. package/dist/commonjs/models/index.d.ts.map +1 -1
  28. package/dist/commonjs/models/index.js +2 -0
  29. package/dist/commonjs/models/index.js.map +1 -1
  30. package/dist/commonjs/models/invoice.d.ts +3 -3
  31. package/dist/commonjs/models/invoice.js +1 -1
  32. package/dist/commonjs/models/invoicecategorysummary.d.ts +1 -1
  33. package/dist/commonjs/models/operations/createbillablemetric.d.ts +3 -3
  34. package/dist/commonjs/models/operations/createbillablemetric.d.ts.map +1 -1
  35. package/dist/commonjs/models/operations/createbillablemetric.js +1 -1
  36. package/dist/commonjs/models/operations/createbillablemetric.js.map +1 -1
  37. package/dist/commonjs/models/operations/createtestclock.d.ts +1 -1
  38. package/dist/commonjs/models/operations/updatebillablemetric.d.ts +4 -4
  39. package/dist/commonjs/models/operations/updatebillablemetric.d.ts.map +1 -1
  40. package/dist/commonjs/models/operations/updatebillablemetric.js +1 -1
  41. package/dist/commonjs/models/operations/updatebillablemetric.js.map +1 -1
  42. package/dist/commonjs/models/profitabilityrow.d.ts +1 -1
  43. package/dist/commonjs/models/profitabilitysummaryresponse.d.ts +20 -0
  44. package/dist/commonjs/models/profitabilitysummaryresponse.d.ts.map +1 -1
  45. package/dist/commonjs/models/profitabilitysummaryresponse.js +11 -1
  46. package/dist/commonjs/models/profitabilitysummaryresponse.js.map +1 -1
  47. package/dist/commonjs/models/revenuesummaryresponse.d.ts +2 -2
  48. package/dist/commonjs/models/revenuetrendbucket.d.ts +1 -1
  49. package/dist/commonjs/models/subscriptionadjustment.d.ts +16 -6
  50. package/dist/commonjs/models/subscriptionadjustment.d.ts.map +1 -1
  51. package/dist/commonjs/models/subscriptionadjustment.js +4 -0
  52. package/dist/commonjs/models/subscriptionadjustment.js.map +1 -1
  53. package/dist/commonjs/sdk/subscriptions.d.ts +2 -2
  54. package/dist/commonjs/sdk/subscriptions.d.ts.map +1 -1
  55. package/dist/commonjs/sdk/subscriptions.js +1 -1
  56. package/dist/esm/funcs/subscriptionsDeleteSubscriptionAdjustment.d.ts +3 -2
  57. package/dist/esm/funcs/subscriptionsDeleteSubscriptionAdjustment.d.ts.map +1 -1
  58. package/dist/esm/funcs/subscriptionsDeleteSubscriptionAdjustment.js +3 -3
  59. package/dist/esm/funcs/subscriptionsDeleteSubscriptionAdjustment.js.map +1 -1
  60. package/dist/esm/lib/config.d.ts +2 -2
  61. package/dist/esm/lib/config.js +2 -2
  62. package/dist/esm/models/costreportresponse.d.ts +20 -0
  63. package/dist/esm/models/costreportresponse.d.ts.map +1 -1
  64. package/dist/esm/models/costreportresponse.js +10 -0
  65. package/dist/esm/models/costreportresponse.js.map +1 -1
  66. package/dist/esm/models/createmaximumquantityadjustment.d.ts +45 -0
  67. package/dist/esm/models/createmaximumquantityadjustment.d.ts.map +1 -0
  68. package/dist/esm/models/createmaximumquantityadjustment.js +18 -0
  69. package/dist/esm/models/createmaximumquantityadjustment.js.map +1 -0
  70. package/dist/esm/models/createminimumquantityadjustment.d.ts +45 -0
  71. package/dist/esm/models/createminimumquantityadjustment.d.ts.map +1 -0
  72. package/dist/esm/models/createminimumquantityadjustment.js +18 -0
  73. package/dist/esm/models/createminimumquantityadjustment.js.map +1 -0
  74. package/dist/esm/models/createsubscriptionadjustmentrequest.d.ts +5 -3
  75. package/dist/esm/models/createsubscriptionadjustmentrequest.d.ts.map +1 -1
  76. package/dist/esm/models/createsubscriptionadjustmentrequest.js +4 -0
  77. package/dist/esm/models/createsubscriptionadjustmentrequest.js.map +1 -1
  78. package/dist/esm/models/currencybreakdownentry.d.ts +1 -1
  79. package/dist/esm/models/grouptrendentry.d.ts +1 -1
  80. package/dist/esm/models/index.d.ts +2 -0
  81. package/dist/esm/models/index.d.ts.map +1 -1
  82. package/dist/esm/models/index.js +2 -0
  83. package/dist/esm/models/index.js.map +1 -1
  84. package/dist/esm/models/invoice.d.ts +3 -3
  85. package/dist/esm/models/invoice.js +1 -1
  86. package/dist/esm/models/invoicecategorysummary.d.ts +1 -1
  87. package/dist/esm/models/operations/createbillablemetric.d.ts +3 -3
  88. package/dist/esm/models/operations/createbillablemetric.d.ts.map +1 -1
  89. package/dist/esm/models/operations/createbillablemetric.js +1 -1
  90. package/dist/esm/models/operations/createbillablemetric.js.map +1 -1
  91. package/dist/esm/models/operations/createtestclock.d.ts +1 -1
  92. package/dist/esm/models/operations/updatebillablemetric.d.ts +4 -4
  93. package/dist/esm/models/operations/updatebillablemetric.d.ts.map +1 -1
  94. package/dist/esm/models/operations/updatebillablemetric.js +1 -1
  95. package/dist/esm/models/operations/updatebillablemetric.js.map +1 -1
  96. package/dist/esm/models/profitabilityrow.d.ts +1 -1
  97. package/dist/esm/models/profitabilitysummaryresponse.d.ts +20 -0
  98. package/dist/esm/models/profitabilitysummaryresponse.d.ts.map +1 -1
  99. package/dist/esm/models/profitabilitysummaryresponse.js +9 -0
  100. package/dist/esm/models/profitabilitysummaryresponse.js.map +1 -1
  101. package/dist/esm/models/revenuesummaryresponse.d.ts +2 -2
  102. package/dist/esm/models/revenuetrendbucket.d.ts +1 -1
  103. package/dist/esm/models/subscriptionadjustment.d.ts +16 -6
  104. package/dist/esm/models/subscriptionadjustment.d.ts.map +1 -1
  105. package/dist/esm/models/subscriptionadjustment.js +4 -0
  106. package/dist/esm/models/subscriptionadjustment.js.map +1 -1
  107. package/dist/esm/sdk/subscriptions.d.ts +2 -2
  108. package/dist/esm/sdk/subscriptions.d.ts.map +1 -1
  109. package/dist/esm/sdk/subscriptions.js +1 -1
  110. package/jsr.json +1 -1
  111. package/package.json +1 -1
  112. package/src/funcs/subscriptionsDeleteSubscriptionAdjustment.ts +7 -6
  113. package/src/lib/config.ts +2 -2
  114. package/src/models/costreportresponse.ts +40 -0
  115. package/src/models/createmaximumquantityadjustment.ts +72 -0
  116. package/src/models/createminimumquantityadjustment.ts +72 -0
  117. package/src/models/createsubscriptionadjustmentrequest.ts +19 -3
  118. package/src/models/currencybreakdownentry.ts +1 -1
  119. package/src/models/grouptrendentry.ts +1 -1
  120. package/src/models/index.ts +2 -0
  121. package/src/models/invoice.ts +3 -3
  122. package/src/models/invoicecategorysummary.ts +1 -1
  123. package/src/models/operations/createbillablemetric.ts +4 -4
  124. package/src/models/operations/createtestclock.ts +1 -1
  125. package/src/models/operations/updatebillablemetric.ts +5 -5
  126. package/src/models/profitabilityrow.ts +1 -1
  127. package/src/models/profitabilitysummaryresponse.ts +42 -0
  128. package/src/models/revenuesummaryresponse.ts +2 -2
  129. package/src/models/revenuetrendbucket.ts +1 -1
  130. package/src/models/subscriptionadjustment.ts +18 -6
  131. package/src/sdk/subscriptions.ts +2 -2
@@ -17,6 +17,19 @@ export type Pagination = {
17
17
  limit: number;
18
18
  offset: number;
19
19
  };
20
+ /**
21
+ * Where the caller's cost data actually lies in time. Present only when the selected range returned no cost. An object carries the bounds of the real cost events; null means the caller has no cost event at any time; an absent field means the extent was not resolved, because the result was not empty, because the lookup failed, or because the metering service does not serve the bounds method. An absent field must never be read as an absence.
22
+ */
23
+ export type CostReportResponseCostRange = {
24
+ /**
25
+ * Earliest cost event instant.
26
+ */
27
+ from: Date;
28
+ /**
29
+ * Latest cost event instant.
30
+ */
31
+ to: Date;
32
+ };
20
33
  export type CostReportResponse = {
21
34
  object: CostReportResponseObject;
22
35
  /**
@@ -53,6 +66,10 @@ export type CostReportResponse = {
53
66
  */
54
67
  warnings?: Array<string> | undefined;
55
68
  pagination: Pagination;
69
+ /**
70
+ * Where the caller's cost data actually lies in time. Present only when the selected range returned no cost. An object carries the bounds of the real cost events; null means the caller has no cost event at any time; an absent field means the extent was not resolved, because the result was not empty, because the lookup failed, or because the metering service does not serve the bounds method. An absent field must never be read as an absence.
71
+ */
72
+ costRange?: CostReportResponseCostRange | null | undefined;
56
73
  };
57
74
  /** @internal */
58
75
  export declare const CostReportResponseObject$inboundSchema: z.ZodNativeEnum<typeof CostReportResponseObject>;
@@ -63,6 +80,9 @@ export declare function periodFromJSON(jsonString: string): SafeParseResult<Peri
63
80
  export declare const Pagination$inboundSchema: z.ZodType<Pagination, z.ZodTypeDef, unknown>;
64
81
  export declare function paginationFromJSON(jsonString: string): SafeParseResult<Pagination, SDKValidationError>;
65
82
  /** @internal */
83
+ export declare const CostReportResponseCostRange$inboundSchema: z.ZodType<CostReportResponseCostRange, z.ZodTypeDef, unknown>;
84
+ export declare function costReportResponseCostRangeFromJSON(jsonString: string): SafeParseResult<CostReportResponseCostRange, SDKValidationError>;
85
+ /** @internal */
66
86
  export declare const CostReportResponse$inboundSchema: z.ZodType<CostReportResponse, z.ZodTypeDef, unknown>;
67
87
  export declare function costReportResponseFromJSON(jsonString: string): SafeParseResult<CostReportResponse, SDKValidationError>;
68
88
  //# sourceMappingURL=costreportresponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"costreportresponse.d.ts","sourceRoot":"","sources":["../../../src/models/costreportresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EACL,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;CAE3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC/C,OAAO,wBAAwB,CAChC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,EAAE,EAAE,IAAI,CAAC;CACV,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,w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AM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
1
+ {"version":3,"file":"costreportresponse.d.ts","sourceRoot":"","sources":["../../../src/models/costreportresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EACL,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;CAE3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC/C,OAAO,wBAAwB,CAChC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,EAAE,EAAE,IAAI,CAAC;CACV,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;OAEG;IACH,EAAE,EAAE,IAAI,CAAC;CACV,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,wBAAwB,CAAC;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,MAAM,EAA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ACZ,OAAO,CAeP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
@@ -29,6 +29,14 @@ export function paginationFromJSON(jsonString) {
29
29
  return safeParse(jsonString, (x) => Pagination$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Pagination' from JSON`);
30
30
  }
31
31
  /** @internal */
32
+ export const CostReportResponseCostRange$inboundSchema = z.object({
33
+ from: z.string().datetime({ offset: true }).transform(v => new Date(v)),
34
+ to: z.string().datetime({ offset: true }).transform(v => new Date(v)),
35
+ });
36
+ export function costReportResponseCostRangeFromJSON(jsonString) {
37
+ return safeParse(jsonString, (x) => CostReportResponseCostRange$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CostReportResponseCostRange' from JSON`);
38
+ }
39
+ /** @internal */
32
40
  export const CostReportResponse$inboundSchema = z.object({
33
41
  object: CostReportResponseObject$inboundSchema.default("cost_report"),
34
42
  currency: z.string(),
@@ -41,6 +49,8 @@ export const CostReportResponse$inboundSchema = z.object({
41
49
  availableDimensions: z.array(z.string()),
42
50
  warnings: z.array(z.string()).optional(),
43
51
  pagination: z.lazy(() => Pagination$inboundSchema),
52
+ costRange: z.nullable(z.lazy(() => CostReportResponseCostRange$inboundSchema))
53
+ .optional(),
44
54
  });
45
55
  export function costReportResponseFromJSON(jsonString) {
46
56
  return safeParse(jsonString, (x) => CostReportResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CostReportResponse' from JSON`);
@@ -1 +1 @@
1
- {"version":3,"file":"costreportresponse.js","sourceRoot":"","sources":["../../../src/models/costreportresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,OAAO,EAEL,6BAA6B,GAC9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAE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;IACrB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,6BAA6B,CAAC;IAC9C,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,kCAAkC,CAAC;IACvD,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACxC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;IAClD,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,yCAAyC,CAAC,CAAC;SAC3E,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,45 @@
1
+ import * as z from "zod/v3";
2
+ export type CreateMaximumQuantityAdjustment = {
3
+ /**
4
+ * Bills at most the contracted quantity on one price, whatever the customer actually used.
5
+ */
6
+ type: "maximumQuantity";
7
+ /**
8
+ * The contracted maximum quantity for one billing period of the target price, sent as a plain decimal string. Not negative, at most 6 decimal places, fewer than 35 digits before the point. Plain notation only — no sign, exponent, hex or digit separators, so "1_000" and "1e3" are rejected rather than read as 1000. "4" bills 4 seats in a period the customer used 9 in; a value of 0 bills nothing at all. Measured over the whole billing period, not per line: where a period is split into several lines, each line's quantity counts for its share of the period, and every line is scaled by the same factor to bring the period to the maximum. Several bounds of the same direction on one price do not add up — the greatest minimum and the least maximum are the ones that apply.
9
+ */
10
+ maximumQuantity: string;
11
+ /**
12
+ * Exactly one price of this subscription. A metered price is accepted, and so is a price whose supply is outside the scope of VAT: a bound constrains a measurement rather than an amount of consideration. A price that bills once rather than per period is refused, because there is no repeating period for the bound to be measured over.
13
+ */
14
+ targetPriceIds: Array<string>;
15
+ /**
16
+ * Opens the window. Exclusive for this type: a line is bounded when its period END falls after this instant, so a window opening exactly when a period ends belongs to the next period, not that one. The bound is never prorated — a window opening mid-period applies to that whole period.
17
+ */
18
+ effectiveFrom: Date;
19
+ /**
20
+ * Closes the window. INCLUSIVE for this type, like usageDiscount and unlike percentageDiscount: set this to the exact period end you are bounding and that period is covered. Null means the bound never stops. Must be after effectiveFrom.
21
+ */
22
+ effectiveTo?: Date | null | undefined;
23
+ /**
24
+ * Your own name for this term. A quantity bound emits no invoice line, so this is printed nowhere on the invoice — it is returned on the adjustment for your own records.
25
+ */
26
+ description?: string | null | undefined;
27
+ /**
28
+ * A key of your choosing that makes a retry safe. Sending the same key against the same subscription returns the adjustment already created and creates no second one. Without a key a retried request creates a second bound; two identical bounds change nothing, because bounds of one direction do not add up.
29
+ */
30
+ idempotencyKey?: string | undefined;
31
+ };
32
+ /** @internal */
33
+ export type CreateMaximumQuantityAdjustment$Outbound = {
34
+ type: "maximumQuantity";
35
+ maximumQuantity: string;
36
+ targetPriceIds: Array<string>;
37
+ effectiveFrom: string;
38
+ effectiveTo?: string | null | undefined;
39
+ description?: string | null | undefined;
40
+ idempotencyKey?: string | undefined;
41
+ };
42
+ /** @internal */
43
+ export declare const CreateMaximumQuantityAdjustment$outboundSchema: z.ZodType<CreateMaximumQuantityAdjustment$Outbound, z.ZodTypeDef, CreateMaximumQuantityAdjustment>;
44
+ export declare function createMaximumQuantityAdjustmentToJSON(createMaximumQuantityAdjustment: CreateMaximumQuantityAdjustment): string;
45
+ //# sourceMappingURL=createmaximumquantityadjustment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createmaximumquantityadjustment.d.ts","sourceRoot":"","sources":["../../../src/models/createmaximumquantityadjustment.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,IAAI,EAAE,iBAAiB,CAAC;IACxB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,aAAa,EAAE,IAAI,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,IAAI,EAAE,iBAAiB,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAS/B,CAAC;AAEH,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR"}
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v3";
5
+ /** @internal */
6
+ export const CreateMaximumQuantityAdjustment$outboundSchema = z.object({
7
+ type: z.literal("maximumQuantity"),
8
+ maximumQuantity: z.string(),
9
+ targetPriceIds: z.array(z.string()),
10
+ effectiveFrom: z.date().transform(v => v.toISOString()),
11
+ effectiveTo: z.nullable(z.date().transform(v => v.toISOString())).optional(),
12
+ description: z.nullable(z.string()).optional(),
13
+ idempotencyKey: z.string().optional(),
14
+ });
15
+ export function createMaximumQuantityAdjustmentToJSON(createMaximumQuantityAdjustment) {
16
+ return JSON.stringify(CreateMaximumQuantityAdjustment$outboundSchema.parse(createMaximumQuantityAdjustment));
17
+ }
18
+ //# sourceMappingURL=createmaximumquantityadjustment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createmaximumquantityadjustment.js","sourceRoot":"","sources":["../../../src/models/createmaximumquantityadjustment.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AA4C5B,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC;IAClC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACnC,aAAa,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACvD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5E,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAEH,MAAM,UAAU,qCAAqC,CACnD,+BAAgE;IAEhE,OAAO,IAAI,CAAC,SAAS,CACnB,8CAA8C,CAAC,KAAK,CAClD,+BAA+B,CAChC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,45 @@
1
+ import * as z from "zod/v3";
2
+ export type CreateMinimumQuantityAdjustment = {
3
+ /**
4
+ * Bills at least the contracted quantity on one price, whatever the customer actually used.
5
+ */
6
+ type: "minimumQuantity";
7
+ /**
8
+ * The contracted minimum quantity for one billing period of the target price, sent as a plain decimal string. Not negative, at most 6 decimal places, fewer than 35 digits before the point. Plain notation only — no sign, exponent, hex or digit separators, so "1_000" and "1e3" are rejected rather than read as 1000. "4" bills 4 seats in a period the customer used 2 in; a value of 0 binds nothing. Measured over the whole billing period, not per line: where a period is split into several lines, each line's quantity counts for its share of the period, and every line is scaled by the same factor to bring the period to the minimum. Several bounds of the same direction on one price do not add up — the greatest minimum and the least maximum are the ones that apply.
9
+ */
10
+ minimumQuantity: string;
11
+ /**
12
+ * Exactly one price of this subscription. A metered price is accepted, and so is a price whose supply is outside the scope of VAT: a bound constrains a measurement rather than an amount of consideration. A price that bills once rather than per period is refused, because there is no repeating period for the bound to be measured over.
13
+ */
14
+ targetPriceIds: Array<string>;
15
+ /**
16
+ * Opens the window. Exclusive for this type: a line is bounded when its period END falls after this instant, so a window opening exactly when a period ends belongs to the next period, not that one. The bound is never prorated — a window opening mid-period applies to that whole period.
17
+ */
18
+ effectiveFrom: Date;
19
+ /**
20
+ * Closes the window. INCLUSIVE for this type, like usageDiscount and unlike percentageDiscount: set this to the exact period end you are bounding and that period is covered. Null means the bound never stops. Must be after effectiveFrom.
21
+ */
22
+ effectiveTo?: Date | null | undefined;
23
+ /**
24
+ * Your own name for this term. A quantity bound emits no invoice line, so this is printed nowhere on the invoice — it is returned on the adjustment for your own records.
25
+ */
26
+ description?: string | null | undefined;
27
+ /**
28
+ * A key of your choosing that makes a retry safe. Sending the same key against the same subscription returns the adjustment already created and creates no second one. Without a key a retried request creates a second bound; two identical bounds change nothing, because bounds of one direction do not add up.
29
+ */
30
+ idempotencyKey?: string | undefined;
31
+ };
32
+ /** @internal */
33
+ export type CreateMinimumQuantityAdjustment$Outbound = {
34
+ type: "minimumQuantity";
35
+ minimumQuantity: string;
36
+ targetPriceIds: Array<string>;
37
+ effectiveFrom: string;
38
+ effectiveTo?: string | null | undefined;
39
+ description?: string | null | undefined;
40
+ idempotencyKey?: string | undefined;
41
+ };
42
+ /** @internal */
43
+ export declare const CreateMinimumQuantityAdjustment$outboundSchema: z.ZodType<CreateMinimumQuantityAdjustment$Outbound, z.ZodTypeDef, CreateMinimumQuantityAdjustment>;
44
+ export declare function createMinimumQuantityAdjustmentToJSON(createMinimumQuantityAdjustment: CreateMinimumQuantityAdjustment): string;
45
+ //# sourceMappingURL=createminimumquantityadjustment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createminimumquantityadjustment.d.ts","sourceRoot":"","sources":["../../../src/models/createminimumquantityadjustment.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,IAAI,EAAE,iBAAiB,CAAC;IACxB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,aAAa,EAAE,IAAI,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,IAAI,EAAE,iBAAiB,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAS/B,CAAC;AAEH,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR"}
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v3";
5
+ /** @internal */
6
+ export const CreateMinimumQuantityAdjustment$outboundSchema = z.object({
7
+ type: z.literal("minimumQuantity"),
8
+ minimumQuantity: z.string(),
9
+ targetPriceIds: z.array(z.string()),
10
+ effectiveFrom: z.date().transform(v => v.toISOString()),
11
+ effectiveTo: z.nullable(z.date().transform(v => v.toISOString())).optional(),
12
+ description: z.nullable(z.string()).optional(),
13
+ idempotencyKey: z.string().optional(),
14
+ });
15
+ export function createMinimumQuantityAdjustmentToJSON(createMinimumQuantityAdjustment) {
16
+ return JSON.stringify(CreateMinimumQuantityAdjustment$outboundSchema.parse(createMinimumQuantityAdjustment));
17
+ }
18
+ //# sourceMappingURL=createminimumquantityadjustment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createminimumquantityadjustment.js","sourceRoot":"","sources":["../../../src/models/createminimumquantityadjustment.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AA4C5B,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC;IAClC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACnC,aAAa,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACvD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5E,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAEH,MAAM,UAAU,qCAAqC,CACnD,+BAAgE;IAEhE,OAAO,IAAI,CAAC,SAAS,CACnB,8CAA8C,CAAC,KAAK,CAClD,+BAA+B,CAChC,CACF,CAAC;AACJ,CAAC"}
@@ -1,12 +1,14 @@
1
1
  import * as z from "zod/v3";
2
+ import { CreateMaximumQuantityAdjustment, CreateMaximumQuantityAdjustment$Outbound } from "./createmaximumquantityadjustment.js";
3
+ import { CreateMinimumQuantityAdjustment, CreateMinimumQuantityAdjustment$Outbound } from "./createminimumquantityadjustment.js";
2
4
  import { CreatePercentageDiscountAdjustment, CreatePercentageDiscountAdjustment$Outbound } from "./createpercentagediscountadjustment.js";
3
5
  import { CreateUsageDiscountAdjustment, CreateUsageDiscountAdjustment$Outbound } from "./createusagediscountadjustment.js";
4
6
  /**
5
- * One adjustment to attach to the subscription. The type decides which number the body carries: a rate for percentageDiscount, a unit count and one target price for usageDiscount.
7
+ * One adjustment to attach to the subscription. The type decides which number the body carries: a rate for percentageDiscount, a unit count and one target price for usageDiscount, and a contracted quantity and one target price for minimumQuantity and maximumQuantity.
6
8
  */
7
- export type CreateSubscriptionAdjustmentRequest = CreatePercentageDiscountAdjustment | CreateUsageDiscountAdjustment;
9
+ export type CreateSubscriptionAdjustmentRequest = CreatePercentageDiscountAdjustment | CreateUsageDiscountAdjustment | CreateMinimumQuantityAdjustment | CreateMaximumQuantityAdjustment;
8
10
  /** @internal */
9
- export type CreateSubscriptionAdjustmentRequest$Outbound = CreatePercentageDiscountAdjustment$Outbound | CreateUsageDiscountAdjustment$Outbound;
11
+ export type CreateSubscriptionAdjustmentRequest$Outbound = CreatePercentageDiscountAdjustment$Outbound | CreateUsageDiscountAdjustment$Outbound | CreateMinimumQuantityAdjustment$Outbound | CreateMaximumQuantityAdjustment$Outbound;
10
12
  /** @internal */
11
13
  export declare const CreateSubscriptionAdjustmentRequest$outboundSchema: z.ZodType<CreateSubscriptionAdjustmentRequest$Outbound, z.ZodTypeDef, CreateSubscriptionAdjustmentRequest>;
12
14
  export declare function createSubscriptionAdjustmentRequestToJSON(createSubscriptionAdjustmentRequest: CreateSubscriptionAdjustmentRequest): string;
@@ -1 +1 @@
1
- {"version":3,"file":"createsubscriptionadjustmentrequest.d.ts","sourceRoot":"","sources":["../../../src/models/createsubscriptionadjustmentrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,kCAAkC,EAClC,2CAA2C,EAE5C,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,6BAA6B,EAC7B,sCAAsC,EAEvC,MAAM,oCAAoC,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAC3C,kCAAkC,GAClC,6BAA6B,CAAC;AAElC,gBAAgB;AAChB,MAAM,MAAM,4CAA4C,GACpD,2CAA2C,GAC3C,sCAAsC,CAAC;AAE3C,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,4CAA4C,EAC5C,CAAC,CAAC,UAAU,EACZ,mCAAmC,CAInC,CAAC;AAEH,wBAAgB,yCAAyC,CACvD,mCAAmC,EAAE,mCAAmC,GACvE,MAAM,CAMR"}
1
+ {"version":3,"file":"createsubscriptionadjustmentrequest.d.ts","sourceRoot":"","sources":["../../../src/models/createsubscriptionadjustmentrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,+BAA+B,EAC/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,+BAA+B,EAC/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,kCAAkC,EAClC,2CAA2C,EAE5C,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,6BAA6B,EAC7B,sCAAsC,EAEvC,MAAM,oCAAoC,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAC3C,kCAAkC,GAClC,6BAA6B,GAC7B,+BAA+B,GAC/B,+BAA+B,CAAC;AAEpC,gBAAgB;AAChB,MAAM,MAAM,4CAA4C,GACpD,2CAA2C,GAC3C,sCAAsC,GACtC,wCAAwC,GACxC,wCAAwC,CAAC;AAE7C,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,4CAA4C,EAC5C,CAAC,CAAC,UAAU,EACZ,mCAAmC,CAMnC,CAAC;AAEH,wBAAgB,yCAAyC,CACvD,mCAAmC,EAAE,mCAAmC,GACvE,MAAM,CAMR"}
@@ -2,12 +2,16 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
  import * as z from "zod/v3";
5
+ import { CreateMaximumQuantityAdjustment$outboundSchema, } from "./createmaximumquantityadjustment.js";
6
+ import { CreateMinimumQuantityAdjustment$outboundSchema, } from "./createminimumquantityadjustment.js";
5
7
  import { CreatePercentageDiscountAdjustment$outboundSchema, } from "./createpercentagediscountadjustment.js";
6
8
  import { CreateUsageDiscountAdjustment$outboundSchema, } from "./createusagediscountadjustment.js";
7
9
  /** @internal */
8
10
  export const CreateSubscriptionAdjustmentRequest$outboundSchema = z.union([
9
11
  CreatePercentageDiscountAdjustment$outboundSchema,
10
12
  CreateUsageDiscountAdjustment$outboundSchema,
13
+ CreateMinimumQuantityAdjustment$outboundSchema,
14
+ CreateMaximumQuantityAdjustment$outboundSchema,
11
15
  ]);
12
16
  export function createSubscriptionAdjustmentRequestToJSON(createSubscriptionAdjustmentRequest) {
13
17
  return JSON.stringify(CreateSubscriptionAdjustmentRequest$outboundSchema.parse(createSubscriptionAdjustmentRequest));
@@ -1 +1 @@
1
- {"version":3,"file":"createsubscriptionadjustmentrequest.js","sourceRoot":"","sources":["../../../src/models/createsubscriptionadjustmentrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAGL,iDAAiD,GAClD,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAGL,4CAA4C,GAC7C,MAAM,oCAAoC,CAAC;AAc5C,gBAAgB;AAChB,MAAM,CAAC,MAAM,kDAAkD,GAI3D,CAAC,CAAC,KAAK,CAAC;IACV,iDAAiD;IACjD,4CAA4C;CAC7C,CAAC,CAAC;AAEH,MAAM,UAAU,yCAAyC,CACvD,mCAAwE;IAExE,OAAO,IAAI,CAAC,SAAS,CACnB,kDAAkD,CAAC,KAAK,CACtD,mCAAmC,CACpC,CACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"createsubscriptionadjustmentrequest.js","sourceRoot":"","sources":["../../../src/models/createsubscriptionadjustmentrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAGL,8CAA8C,GAC/C,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAGL,8CAA8C,GAC/C,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAGL,iDAAiD,GAClD,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAGL,4CAA4C,GAC7C,MAAM,oCAAoC,CAAC;AAkB5C,gBAAgB;AAChB,MAAM,CAAC,MAAM,kDAAkD,GAI3D,CAAC,CAAC,KAAK,CAAC;IACV,iDAAiD;IACjD,4CAA4C;IAC5C,8CAA8C;IAC9C,8CAA8C;CAC/C,CAAC,CAAC;AAEH,MAAM,UAAU,yCAAyC,CACvD,mCAAwE;IAExE,OAAO,IAAI,CAAC,SAAS,CACnB,kDAAkD,CAAC,KAAK,CACtD,mCAAmC,CACpC,CACF,CAAC;AACJ,CAAC"}
@@ -10,7 +10,7 @@ export type CurrencyBreakdownEntry = {
10
10
  */
11
11
  currency: string;
12
12
  /**
13
- * Net collected revenue in dollars for this currency (issued invoices + completed payments)
13
+ * Revenue in dollars for this currency, excluding tax: invoices issued in the period plus completed payments
14
14
  */
15
15
  netRevenue: string;
16
16
  invoices: InvoiceSummary;
@@ -11,7 +11,7 @@ export type GroupTrendEntry = {
11
11
  */
12
12
  groupLabel: string;
13
13
  /**
14
- * Total issued invoice amount in dollars for this group in this bucket
14
+ * Total issued invoice amount in dollars for this group in this bucket, excluding tax
15
15
  */
16
16
  issuedInvoices: string;
17
17
  };
@@ -14,6 +14,8 @@ export * from "./createapprovalrequest.js";
14
14
  export * from "./createbillingschedulerequest.js";
15
15
  export * from "./creategrantrequest.js";
16
16
  export * from "./createmanuallineitemrequest.js";
17
+ export * from "./createmaximumquantityadjustment.js";
18
+ export * from "./createminimumquantityadjustment.js";
17
19
  export * from "./createorderapprovalrequest.js";
18
20
  export * from "./createorderlineitemrequest.js";
19
21
  export * from "./createorderrequest.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;A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CAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
@@ -17,6 +17,8 @@ export * from "./createapprovalrequest.js";
17
17
  export * from "./createbillingschedulerequest.js";
18
18
  export * from "./creategrantrequest.js";
19
19
  export * from "./createmanuallineitemrequest.js";
20
+ export * from "./createmaximumquantityadjustment.js";
21
+ export * from "./createminimumquantityadjustment.js";
20
22
  export * from "./createorderapprovalrequest.js";
21
23
  export * from "./createorderlineitemrequest.js";
22
24
  export * from "./createorderrequest.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,c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cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
@@ -51,7 +51,7 @@ export declare const PdfSource: {
51
51
  */
52
52
  export type PdfSource = ClosedEnum<typeof PdfSource>;
53
53
  /**
54
- * Why no Paygentic-rendered document exists for this invoice, or null when none was withheld. A tax-registered merchant's document is a compliance artefact, so it is withheld unless the recorded tax reconciles with the provider exactly and the registered issuer identity is complete. Non-null therefore always accompanies pdfSource `tax_provider` or null, and never `paygentic`. Use it to tell a withheld document apart from an invoice the tax provider serves by design — both report pdfSource `tax_provider`, but only a withheld one can be repaired by POST /v2/invoices/{id}/generate-pdf. `tax_unreconciled`: the provider's tax figure was never recorded against this invoice. `issuer_identity_incomplete`: the registered legal name, tax ID or address could not be read. `tax_component_unpriceable`: a recorded tax component carried no presentable amount. `ledger_mismatch`: the recorded tax figures and the invoice's own totals disagree. `tax_provider_disagrees`: the provider re-read its filing and reported a different tax to the one this invoice was charged — terminal, because correcting an issued invoice is a credit note's job, so retrying the repair cannot clear it. New values may be added, so treat an unrecognised one as withheld rather than failing.
54
+ * Why no Paygentic-rendered document exists for this invoice, or null when none was withheld. A tax-registered merchant's document is a compliance artefact, so it is withheld unless the recorded tax reconciles with the provider exactly and the registered issuer identity is complete. Non-null therefore always accompanies pdfSource `null`, and never `paygentic`: an invoice whose document is withheld is not served the provider's in its place, because recording that link would mark the invoice as already served and stop a later repair rendering ours. Use it to tell a withheld invoice apart from one that simply has no document yet — both report pdfSource `null`, and only a withheld one names why. An invoice the tax provider serves by design reports pdfSource `tax_provider` with no reason, and needs no repair. Both an invoice with no document and a withheld one can be repaired by POST /v2/invoices/{id}/generate-pdf. `tax_unreconciled`: the provider's tax figure was never recorded against this invoice. `issuer_identity_incomplete`: the registered legal name, tax ID or address could not be read. `tax_component_unpriceable`: a recorded tax component carried no presentable amount. `ledger_mismatch`: the recorded tax figures and the invoice's own totals disagree. `tax_provider_disagrees`: the provider re-read its filing and reported a different tax to the one this invoice was charged — terminal, because correcting an issued invoice is a credit note's job, so retrying the repair cannot clear it. New values may be added, so treat an unrecognised one as withheld rather than failing.
55
55
  */
56
56
  export declare const DocumentWithheldReason: {
57
57
  readonly TaxUnreconciled: "tax_unreconciled";
@@ -61,7 +61,7 @@ export declare const DocumentWithheldReason: {
61
61
  readonly TaxProviderDisagrees: "tax_provider_disagrees";
62
62
  };
63
63
  /**
64
- * Why no Paygentic-rendered document exists for this invoice, or null when none was withheld. A tax-registered merchant's document is a compliance artefact, so it is withheld unless the recorded tax reconciles with the provider exactly and the registered issuer identity is complete. Non-null therefore always accompanies pdfSource `tax_provider` or null, and never `paygentic`. Use it to tell a withheld document apart from an invoice the tax provider serves by design — both report pdfSource `tax_provider`, but only a withheld one can be repaired by POST /v2/invoices/{id}/generate-pdf. `tax_unreconciled`: the provider's tax figure was never recorded against this invoice. `issuer_identity_incomplete`: the registered legal name, tax ID or address could not be read. `tax_component_unpriceable`: a recorded tax component carried no presentable amount. `ledger_mismatch`: the recorded tax figures and the invoice's own totals disagree. `tax_provider_disagrees`: the provider re-read its filing and reported a different tax to the one this invoice was charged — terminal, because correcting an issued invoice is a credit note's job, so retrying the repair cannot clear it. New values may be added, so treat an unrecognised one as withheld rather than failing.
64
+ * Why no Paygentic-rendered document exists for this invoice, or null when none was withheld. A tax-registered merchant's document is a compliance artefact, so it is withheld unless the recorded tax reconciles with the provider exactly and the registered issuer identity is complete. Non-null therefore always accompanies pdfSource `null`, and never `paygentic`: an invoice whose document is withheld is not served the provider's in its place, because recording that link would mark the invoice as already served and stop a later repair rendering ours. Use it to tell a withheld invoice apart from one that simply has no document yet — both report pdfSource `null`, and only a withheld one names why. An invoice the tax provider serves by design reports pdfSource `tax_provider` with no reason, and needs no repair. Both an invoice with no document and a withheld one can be repaired by POST /v2/invoices/{id}/generate-pdf. `tax_unreconciled`: the provider's tax figure was never recorded against this invoice. `issuer_identity_incomplete`: the registered legal name, tax ID or address could not be read. `tax_component_unpriceable`: a recorded tax component carried no presentable amount. `ledger_mismatch`: the recorded tax figures and the invoice's own totals disagree. `tax_provider_disagrees`: the provider re-read its filing and reported a different tax to the one this invoice was charged — terminal, because correcting an issued invoice is a credit note's job, so retrying the repair cannot clear it. New values may be added, so treat an unrecognised one as withheld rather than failing.
65
65
  */
66
66
  export type DocumentWithheldReason = OpenEnum<typeof DocumentWithheldReason>;
67
67
  /**
@@ -213,7 +213,7 @@ export type Invoice = {
213
213
  */
214
214
  pdfSource?: PdfSource | null | undefined;
215
215
  /**
216
- * Why no Paygentic-rendered document exists for this invoice, or null when none was withheld. A tax-registered merchant's document is a compliance artefact, so it is withheld unless the recorded tax reconciles with the provider exactly and the registered issuer identity is complete. Non-null therefore always accompanies pdfSource `tax_provider` or null, and never `paygentic`. Use it to tell a withheld document apart from an invoice the tax provider serves by design — both report pdfSource `tax_provider`, but only a withheld one can be repaired by POST /v2/invoices/{id}/generate-pdf. `tax_unreconciled`: the provider's tax figure was never recorded against this invoice. `issuer_identity_incomplete`: the registered legal name, tax ID or address could not be read. `tax_component_unpriceable`: a recorded tax component carried no presentable amount. `ledger_mismatch`: the recorded tax figures and the invoice's own totals disagree. `tax_provider_disagrees`: the provider re-read its filing and reported a different tax to the one this invoice was charged — terminal, because correcting an issued invoice is a credit note's job, so retrying the repair cannot clear it. New values may be added, so treat an unrecognised one as withheld rather than failing.
216
+ * Why no Paygentic-rendered document exists for this invoice, or null when none was withheld. A tax-registered merchant's document is a compliance artefact, so it is withheld unless the recorded tax reconciles with the provider exactly and the registered issuer identity is complete. Non-null therefore always accompanies pdfSource `null`, and never `paygentic`: an invoice whose document is withheld is not served the provider's in its place, because recording that link would mark the invoice as already served and stop a later repair rendering ours. Use it to tell a withheld invoice apart from one that simply has no document yet — both report pdfSource `null`, and only a withheld one names why. An invoice the tax provider serves by design reports pdfSource `tax_provider` with no reason, and needs no repair. Both an invoice with no document and a withheld one can be repaired by POST /v2/invoices/{id}/generate-pdf. `tax_unreconciled`: the provider's tax figure was never recorded against this invoice. `issuer_identity_incomplete`: the registered legal name, tax ID or address could not be read. `tax_component_unpriceable`: a recorded tax component carried no presentable amount. `ledger_mismatch`: the recorded tax figures and the invoice's own totals disagree. `tax_provider_disagrees`: the provider re-read its filing and reported a different tax to the one this invoice was charged — terminal, because correcting an issued invoice is a credit note's job, so retrying the repair cannot clear it. New values may be added, so treat an unrecognised one as withheld rather than failing.
217
217
  */
218
218
  documentWithheldReason?: DocumentWithheldReason | null | undefined;
219
219
  /**
@@ -20,7 +20,7 @@ export const PdfSource = {
20
20
  TaxProvider: "tax_provider",
21
21
  };
22
22
  /**
23
- * Why no Paygentic-rendered document exists for this invoice, or null when none was withheld. A tax-registered merchant's document is a compliance artefact, so it is withheld unless the recorded tax reconciles with the provider exactly and the registered issuer identity is complete. Non-null therefore always accompanies pdfSource `tax_provider` or null, and never `paygentic`. Use it to tell a withheld document apart from an invoice the tax provider serves by design — both report pdfSource `tax_provider`, but only a withheld one can be repaired by POST /v2/invoices/{id}/generate-pdf. `tax_unreconciled`: the provider's tax figure was never recorded against this invoice. `issuer_identity_incomplete`: the registered legal name, tax ID or address could not be read. `tax_component_unpriceable`: a recorded tax component carried no presentable amount. `ledger_mismatch`: the recorded tax figures and the invoice's own totals disagree. `tax_provider_disagrees`: the provider re-read its filing and reported a different tax to the one this invoice was charged — terminal, because correcting an issued invoice is a credit note's job, so retrying the repair cannot clear it. New values may be added, so treat an unrecognised one as withheld rather than failing.
23
+ * Why no Paygentic-rendered document exists for this invoice, or null when none was withheld. A tax-registered merchant's document is a compliance artefact, so it is withheld unless the recorded tax reconciles with the provider exactly and the registered issuer identity is complete. Non-null therefore always accompanies pdfSource `null`, and never `paygentic`: an invoice whose document is withheld is not served the provider's in its place, because recording that link would mark the invoice as already served and stop a later repair rendering ours. Use it to tell a withheld invoice apart from one that simply has no document yet — both report pdfSource `null`, and only a withheld one names why. An invoice the tax provider serves by design reports pdfSource `tax_provider` with no reason, and needs no repair. Both an invoice with no document and a withheld one can be repaired by POST /v2/invoices/{id}/generate-pdf. `tax_unreconciled`: the provider's tax figure was never recorded against this invoice. `issuer_identity_incomplete`: the registered legal name, tax ID or address could not be read. `tax_component_unpriceable`: a recorded tax component carried no presentable amount. `ledger_mismatch`: the recorded tax figures and the invoice's own totals disagree. `tax_provider_disagrees`: the provider re-read its filing and reported a different tax to the one this invoice was charged — terminal, because correcting an issued invoice is a credit note's job, so retrying the repair cannot clear it. New values may be added, so treat an unrecognised one as withheld rather than failing.
24
24
  */
25
25
  export const DocumentWithheldReason = {
26
26
  TaxUnreconciled: "tax_unreconciled",
@@ -7,7 +7,7 @@ export type InvoiceCategorySummary = {
7
7
  */
8
8
  count: number;
9
9
  /**
10
- * Total amount of invoices in this category in dollars
10
+ * Total amount of invoices in this category in dollars, including tax
11
11
  */
12
12
  amount: string;
13
13
  };
@@ -48,9 +48,9 @@ export type CreateBillableMetricRequest = {
48
48
  /**
49
49
  * CloudEvents type for meter routing. Links this billable metric to the metering service.
50
50
  */
51
- eventType?: string | undefined;
51
+ eventType: string;
52
52
  /**
53
- * JSONPath to extract a numeric value from event data. Must start with `$.` (example: `$.amount` or `$.payload.bytes`). Required for SUM/AVG/MIN/MAX/LATEST aggregations.
53
+ * JSONPath to extract a numeric value from event data. Must start with `$.` (example: `$.amount` or `$.payload.bytes`). Required for SUM/AVG/MIN/MAX/LATEST aggregations. Optional for UNIQUE_COUNT, which counts distinct values of this property when set and distinct events when not. Not stored for COUNT.
54
54
  */
55
55
  valueProperty?: string | undefined;
56
56
  /**
@@ -75,7 +75,7 @@ export type CreateBillableMetricRequest$Outbound = {
75
75
  productId?: string | undefined;
76
76
  itemId?: string | undefined;
77
77
  unit: string;
78
- eventType?: string | undefined;
78
+ eventType: string;
79
79
  valueProperty?: string | undefined;
80
80
  groupBy?: {
81
81
  [k: string]: string;
@@ -1 +1 @@
1
- {"version":3,"file":"createbillablemetric.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/createbillablemetric.ts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AC;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAa3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR"}
1
+ {"version":3,"file":"createbillablemetric.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/createbillablemetric.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;CAQlC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,UAAU,CACtD,OAAO,+BAA+B,CACvC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,WAAW,EAAE,+BAA+B,CAAC;IAC7C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,aAAa,CAC1E,OAAO,+BAA+B,CACS,CAAC;AAElD,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAa3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR"}
@@ -25,7 +25,7 @@ export const CreateBillableMetricRequest$outboundSchema = z.object({
25
25
  productId: z.string().optional(),
26
26
  itemId: z.string().optional(),
27
27
  unit: z.string(),
28
- eventType: z.string().optional(),
28
+ eventType: z.string(),
29
29
  valueProperty: z.string().optional(),
30
30
  groupBy: z.record(z.string()).optional(),
31
31
  eventFrom: z.date().transform(v => v.toISOString()).optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"createbillablemetric.js","sourceRoot":"","sources":["../../../../src/models/operations/createbillablemetric.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,WAAW,EAAE,cAAc;IAC3B,MAAM,EAAE,QAAQ;CACR,CAAC;AAuDX,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAEvD,CAAC,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAAC;AAiBlD,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,8CAA8C;IAC3D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/D,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"createbillablemetric.js","sourceRoot":"","sources":["../../../../src/models/operations/createbillablemetric.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,WAAW,EAAE,cAAc;IAC3B,MAAM,EAAE,QAAQ;CACR,CAAC;AAuDX,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAEvD,CAAC,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAAC;AAiBlD,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,8CAA8C;IAC3D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/D,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type CreateTestClockRequest = {
3
3
  /**
4
- * Initial time for the test clock (defaults to current time). Cannot be more than 1 hour in the past to prevent accidental backdating. The 1-hour buffer accounts for clock drift and network delays.
4
+ * Initial time for the test clock (defaults to current time). May be in the past, which lets a subscription on the clock start on a past date and bill its periods as the clock advances.
5
5
  */
6
6
  currentTime?: Date | undefined;
7
7
  /**
@@ -17,11 +17,11 @@ export type UpdateBillableMetricRequestBody = {
17
17
  */
18
18
  itemId?: string | null | undefined;
19
19
  /**
20
- * CloudEvents type for meter routing.
20
+ * CloudEvents type for meter routing. Cannot be cleared: every billable metric needs one.
21
21
  */
22
- eventType?: string | null | undefined;
22
+ eventType?: string | undefined;
23
23
  /**
24
- * JSONPath to extract a numeric value from event data. Must start with `$.` (example: `$.amount` or `$.payload.bytes`).
24
+ * JSONPath to extract a numeric value from event data. Must start with `$.` (example: `$.amount` or `$.payload.bytes`). Cannot be cleared on a SUM/AVG/MIN/MAX/LATEST metric. Not stored for COUNT.
25
25
  */
26
26
  valueProperty?: string | null | undefined;
27
27
  /**
@@ -45,7 +45,7 @@ export type UpdateBillableMetricRequestBody$Outbound = {
45
45
  name?: string | undefined;
46
46
  unit?: string | undefined;
47
47
  itemId?: string | null | undefined;
48
- eventType?: string | null | undefined;
48
+ eventType?: string | undefined;
49
49
  valueProperty?: string | null | undefined;
50
50
  groupBy?: {
51
51
  [k: string]: string;
@@ -1 +1 @@
1
- {"version":3,"file":"updatebillablemetric.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/updatebillablemetric.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,+BAA+B,CAAC;CAC9C,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAU/B,CAAC;AAEH,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR;AAED,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,wCAAwC,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAQ3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR"}
1
+ {"version":3,"file":"updatebillablemetric.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/updatebillablemetric.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAA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BAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,wCAAwC,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAQ3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR"}
@@ -9,7 +9,7 @@ export const UpdateBillableMetricRequestBody$outboundSchema = z.object({
9
9
  name: z.string().optional(),
10
10
  unit: z.string().optional(),
11
11
  itemId: z.nullable(z.string()).optional(),
12
- eventType: z.nullable(z.string()).optional(),
12
+ eventType: z.string().optional(),
13
13
  valueProperty: z.nullable(z.string()).optional(),
14
14
  groupBy: z.nullable(z.record(z.string())).optional(),
15
15
  eventFrom: z.nullable(z.date().transform(v => v.toISOString())).optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"updatebillablemetric.js","sourceRoot":"","sources":["../../../../src/models/operations/updatebillablemetric.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAsD1D,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,C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,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,aAAa;KAC3B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC"}
@@ -12,7 +12,7 @@ export type ProfitabilityRow = {
12
12
  */
13
13
  customerName: string;
14
14
  /**
15
- * Net revenue (paid + outstanding) in unit currency, with two decimals.
15
+ * Revenue excluding tax (paid + outstanding invoices issued in the period), in unit currency, with two decimals.
16
16
  */
17
17
  netRevenue: string;
18
18
  /**