@leaflow/sdk 0.0.0-dev.358.gbb34078 → 0.0.0-dev.359.gca6d1b5

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 (166) hide show
  1. package/dist/billing/type/order/v1/generated/models.d.ts +71 -33
  2. package/dist/billing/type/order/v1/generated/models.js +2 -1
  3. package/dist/billing/type/order/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
  4. package/dist/billing/type/order/v1/generated/validators/cancellation.zod.js +2 -2
  5. package/dist/billing/type/order/v1/generated/validators/cancellationCreate.zod.js +2 -2
  6. package/dist/billing/type/order/v1/generated/validators/{terminationPolicy.zod.d.ts → cancellationPolicy.zod.d.ts} +3 -3
  7. package/dist/billing/type/order/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js} +2 -2
  8. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.d.ts +2 -0
  9. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.js +4 -3
  10. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -0
  11. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -0
  12. package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +5 -3
  13. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.d.ts +5 -3
  14. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.js +10 -6
  15. package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.d.ts +5 -3
  16. package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +5 -3
  17. package/dist/billing/type/order/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  18. package/dist/billing/type/order/v1/generated/validators/price.zod.d.ts +4 -1
  19. package/dist/billing/type/order/v1/generated/validators/price.zod.js +10 -2
  20. package/dist/billing/type/order/v1/generated/validators/priceList.zod.d.ts +4 -1
  21. package/dist/billing/type/order/v1/generated/validators/quote.zod.d.ts +2 -0
  22. package/dist/billing/type/order/v1/generated/validators/quoteCancellation.zod.js +2 -2
  23. package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
  24. package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.js +2 -2
  25. package/dist/billing/type/order/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
  26. package/dist/billing/type/order/v1/generated/validators/quoteRenewal.zod.js +3 -3
  27. package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
  28. package/dist/billing/type/order/v1/generated/validators/refundPolicy.zod.d.ts +1 -0
  29. package/dist/billing/type/order/v1/generated/validators/refundPolicy.zod.js +2 -2
  30. package/dist/billing/type/order/v1/generated/validators/refundReason.zod.js +1 -1
  31. package/dist/billing/type/order/v1/generated/validators/renewRequest.zod.d.ts +1 -1
  32. package/dist/billing/type/order/v1/generated/validators/renewRequest.zod.js +3 -3
  33. package/dist/billing/type/order/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -1
  34. package/dist/billing/type/order/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  35. package/dist/billing/type/order/v1/generated/validators/renewalPrice.zod.d.ts +4 -1
  36. package/dist/billing/type/order/v1/generated/validators/renewalPrice.zod.js +4 -2
  37. package/dist/billing/type/order/v1/generated/validators/renewalPriceList.zod.d.ts +4 -1
  38. package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +5 -1
  39. package/dist/billing/type/order/v1/generated/validators/subscription.zod.js +14 -2
  40. package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +5 -1
  41. package/dist/billing/v1/generated/functions.d.ts +1 -1
  42. package/dist/billing/v1/generated/functions.js +1 -1
  43. package/dist/billing/v1/generated/models.d.ts +71 -33
  44. package/dist/billing/v1/generated/models.js +2 -1
  45. package/dist/billing/v1/generated/schemas.zod.d.ts +3 -3
  46. package/dist/billing/v1/generated/schemas.zod.js +1 -1
  47. package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
  48. package/dist/billing/v1/generated/validators/cancellation.zod.js +2 -2
  49. package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +2 -2
  50. package/dist/billing/v1/generated/validators/{terminationPolicy.zod.d.ts → cancellationPolicy.zod.d.ts} +3 -3
  51. package/dist/billing/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js} +2 -2
  52. package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.d.ts +2 -0
  53. package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +4 -3
  54. package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -0
  55. package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -0
  56. package/dist/billing/v1/generated/validators/order.zod.d.ts +5 -3
  57. package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +5 -3
  58. package/dist/billing/v1/generated/validators/orderItem.zod.js +10 -6
  59. package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +5 -3
  60. package/dist/billing/v1/generated/validators/orderList.zod.d.ts +5 -3
  61. package/dist/billing/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  62. package/dist/billing/v1/generated/validators/price.zod.d.ts +4 -1
  63. package/dist/billing/v1/generated/validators/price.zod.js +10 -2
  64. package/dist/billing/v1/generated/validators/priceList.zod.d.ts +4 -1
  65. package/dist/billing/v1/generated/validators/quote.zod.d.ts +2 -0
  66. package/dist/billing/v1/generated/validators/quoteCancellation.zod.js +2 -2
  67. package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
  68. package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +2 -2
  69. package/dist/billing/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
  70. package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +3 -3
  71. package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
  72. package/dist/billing/v1/generated/validators/refundPolicy.zod.d.ts +1 -0
  73. package/dist/billing/v1/generated/validators/refundPolicy.zod.js +2 -2
  74. package/dist/billing/v1/generated/validators/refundReason.zod.js +1 -1
  75. package/dist/billing/v1/generated/validators/renewRequest.zod.d.ts +1 -1
  76. package/dist/billing/v1/generated/validators/renewRequest.zod.js +3 -3
  77. package/dist/billing/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -1
  78. package/dist/billing/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  79. package/dist/billing/v1/generated/validators/renewalPrice.zod.d.ts +4 -1
  80. package/dist/billing/v1/generated/validators/renewalPrice.zod.js +4 -2
  81. package/dist/billing/v1/generated/validators/renewalPriceList.zod.d.ts +4 -1
  82. package/dist/billing/v1/generated/validators/subscription.zod.d.ts +5 -1
  83. package/dist/billing/v1/generated/validators/subscription.zod.js +14 -2
  84. package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +5 -1
  85. package/dist/canopy/v1/generated/models.d.ts +71 -33
  86. package/dist/canopy/v1/generated/models.js +2 -1
  87. package/dist/canopy/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
  88. package/dist/canopy/v1/generated/validators/cancellation.zod.js +2 -2
  89. package/dist/canopy/v1/generated/validators/cancellationCreate.zod.js +2 -2
  90. package/dist/canopy/v1/generated/validators/{terminationPolicy.zod.d.ts → cancellationPolicy.zod.d.ts} +3 -3
  91. package/dist/canopy/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js} +2 -2
  92. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.d.ts +2 -0
  93. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.js +4 -3
  94. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -0
  95. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -0
  96. package/dist/canopy/v1/generated/validators/order.zod.d.ts +5 -3
  97. package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +5 -3
  98. package/dist/canopy/v1/generated/validators/orderItem.zod.js +10 -6
  99. package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +5 -3
  100. package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +5 -3
  101. package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  102. package/dist/canopy/v1/generated/validators/price.zod.d.ts +4 -1
  103. package/dist/canopy/v1/generated/validators/price.zod.js +10 -2
  104. package/dist/canopy/v1/generated/validators/priceList.zod.d.ts +4 -1
  105. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.d.ts +2 -0
  106. package/dist/canopy/v1/generated/validators/quoteA200529.zod.d.ts +2 -0
  107. package/dist/canopy/v1/generated/validators/quoteCancellation.zod.js +2 -2
  108. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
  109. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.js +2 -2
  110. package/dist/canopy/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
  111. package/dist/canopy/v1/generated/validators/quoteRenewal.zod.js +3 -3
  112. package/dist/canopy/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
  113. package/dist/canopy/v1/generated/validators/refundPolicy.zod.d.ts +1 -0
  114. package/dist/canopy/v1/generated/validators/refundPolicy.zod.js +2 -2
  115. package/dist/canopy/v1/generated/validators/refundReason.zod.js +1 -1
  116. package/dist/canopy/v1/generated/validators/renewRequest.zod.d.ts +1 -1
  117. package/dist/canopy/v1/generated/validators/renewRequest.zod.js +3 -3
  118. package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -1
  119. package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  120. package/dist/canopy/v1/generated/validators/renewalPrice.zod.d.ts +4 -1
  121. package/dist/canopy/v1/generated/validators/renewalPrice.zod.js +4 -2
  122. package/dist/canopy/v1/generated/validators/renewalPriceList.zod.d.ts +4 -1
  123. package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +5 -1
  124. package/dist/canopy/v1/generated/validators/subscription.zod.js +14 -2
  125. package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +5 -1
  126. package/dist/membership/v1/generated/models.d.ts +71 -33
  127. package/dist/membership/v1/generated/models.js +2 -1
  128. package/dist/membership/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
  129. package/dist/membership/v1/generated/validators/cancellation.zod.js +2 -2
  130. package/dist/membership/v1/generated/validators/cancellationCreate.zod.js +2 -2
  131. package/dist/membership/v1/generated/validators/{terminationPolicy.zod.d.ts → cancellationPolicy.zod.d.ts} +3 -3
  132. package/dist/membership/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js} +2 -2
  133. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.d.ts +2 -0
  134. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.js +4 -3
  135. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -0
  136. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -0
  137. package/dist/membership/v1/generated/validators/order.zod.d.ts +5 -3
  138. package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +5 -3
  139. package/dist/membership/v1/generated/validators/orderItem.zod.js +10 -6
  140. package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +5 -3
  141. package/dist/membership/v1/generated/validators/orderList.zod.d.ts +5 -3
  142. package/dist/membership/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  143. package/dist/membership/v1/generated/validators/price.zod.d.ts +4 -1
  144. package/dist/membership/v1/generated/validators/price.zod.js +10 -2
  145. package/dist/membership/v1/generated/validators/priceList.zod.d.ts +4 -1
  146. package/dist/membership/v1/generated/validators/quote.zod.d.ts +2 -0
  147. package/dist/membership/v1/generated/validators/quoteCancellation.zod.js +2 -2
  148. package/dist/membership/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
  149. package/dist/membership/v1/generated/validators/quoteItemInput.zod.js +2 -2
  150. package/dist/membership/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
  151. package/dist/membership/v1/generated/validators/quoteRenewal.zod.js +3 -3
  152. package/dist/membership/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
  153. package/dist/membership/v1/generated/validators/refundPolicy.zod.d.ts +1 -0
  154. package/dist/membership/v1/generated/validators/refundPolicy.zod.js +2 -2
  155. package/dist/membership/v1/generated/validators/refundReason.zod.js +1 -1
  156. package/dist/membership/v1/generated/validators/renewRequest.zod.d.ts +1 -1
  157. package/dist/membership/v1/generated/validators/renewRequest.zod.js +3 -3
  158. package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -1
  159. package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  160. package/dist/membership/v1/generated/validators/renewalPrice.zod.d.ts +4 -1
  161. package/dist/membership/v1/generated/validators/renewalPrice.zod.js +4 -2
  162. package/dist/membership/v1/generated/validators/renewalPriceList.zod.d.ts +4 -1
  163. package/dist/membership/v1/generated/validators/subscription.zod.d.ts +5 -1
  164. package/dist/membership/v1/generated/validators/subscription.zod.js +14 -2
  165. package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +5 -1
  166. package/package.json +1 -1
@@ -32,14 +32,17 @@ export declare const PriceList: zod.ZodObject<{
32
32
  }, zod.z.core.$strict>>;
33
33
  unit_quantity: zod.ZodString;
34
34
  active: zod.ZodBoolean;
35
- termination_policy: zod.ZodOptional<zod.ZodEnum<{
35
+ cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
36
36
  immediate: "immediate";
37
37
  period_end: "period_end";
38
38
  }>>;
39
39
  refund_policy: zod.ZodOptional<zod.ZodEnum<{
40
40
  none: "none";
41
41
  prorated: "prorated";
42
+ short_rate: "short_rate";
42
43
  }>>;
44
+ short_rate_multiplier: zod.ZodOptional<zod.ZodString>;
45
+ short_rate_threshold_seconds: zod.ZodOptional<zod.ZodInt>;
43
46
  product_id: zod.ZodOptional<zod.ZodString>;
44
47
  id: zod.ZodUUID;
45
48
  plan_id: zod.ZodUUID;
@@ -66,6 +66,7 @@ export declare const Quote: zod.ZodObject<{
66
66
  proration_date: zod.ZodOptional<zod.z.ZodISODateTime>;
67
67
  currency: zod.ZodString;
68
68
  unused_amount: zod.ZodString;
69
+ short_rate_surcharge_amount: zod.ZodString;
69
70
  refundable_amount: zod.ZodString;
70
71
  refund_amount: zod.ZodString;
71
72
  credit_amount: zod.ZodString;
@@ -89,6 +90,7 @@ export declare const Quote: zod.ZodObject<{
89
90
  }>;
90
91
  auto_renew: zod.ZodBoolean;
91
92
  unused_amount: zod.ZodString;
93
+ short_rate_surcharge_amount: zod.ZodString;
92
94
  refundable_amount: zod.ZodString;
93
95
  refund_amount: zod.ZodString;
94
96
  credit_amount: zod.ZodString;
@@ -6,7 +6,7 @@
6
6
  * OpenAPI spec version: v1
7
7
  */
8
8
  import * as zod from "zod";
9
- import { TerminationPolicy } from "./terminationPolicy.zod.js";
9
+ import { CancellationPolicy } from "./cancellationPolicy.zod.js";
10
10
  export const quoteCancellationSubscriptionIdsMax = 50;
11
11
  export const QuoteCancellation = zod
12
12
  .strictObject({
@@ -15,6 +15,6 @@ export const QuoteCancellation = zod
15
15
  .min(1)
16
16
  .max(quoteCancellationSubscriptionIdsMax)
17
17
  .describe("The subscriptions to end together, all of one service, including every subscription released with a resource."),
18
- mode: TerminationPolicy,
18
+ mode: CancellationPolicy,
19
19
  })
20
20
  .describe("A cancellation to quote: what ending these subscriptions together would return, for one mode; quote `immediate` and `period_end` separately to compare. Refused with 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being canceled (`meta.cancellation_id`), is being reclaimed (`meta.reason` `reclaim_requested`) or has a paid change waiting to switch (`meta.order_id`).");
@@ -31,7 +31,7 @@ export declare const QuoteItemInput: zod.ZodObject<{
31
31
  year: "year";
32
32
  }>>;
33
33
  interval_count: zod.ZodOptional<zod.ZodInt>;
34
- termination_policy: zod.ZodOptional<zod.ZodEnum<{
34
+ cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
35
35
  immediate: "immediate";
36
36
  period_end: "period_end";
37
37
  }>>;
@@ -6,9 +6,9 @@
6
6
  * OpenAPI spec version: v1
7
7
  */
8
8
  import * as zod from "zod";
9
+ import { CancellationPolicy } from "./cancellationPolicy.zod.js";
9
10
  import { PriceType } from "./priceType.zod.js";
10
11
  import { ProductID } from "./productID.zod.js";
11
- import { TerminationPolicy } from "./terminationPolicy.zod.js";
12
12
  import { UsageType } from "./usageType.zod.js";
13
13
  export const quoteItemInputPriceLookupKeyMax = 128;
14
14
  export const quoteItemInputPlanLookupKeyMax = 128;
@@ -25,7 +25,7 @@ export const QuoteItemInput = zod
25
25
  usage_type: UsageType.optional().describe("Narrows the selection when a plan offers more than one usage type."),
26
26
  interval: zod.enum(["none", "day", "month", "year"]).optional(),
27
27
  interval_count: zod.int().min(1).optional(),
28
- termination_policy: TerminationPolicy.optional().describe("Selects among licensed prices with otherwise identical billing terms. Ambiguous terms are refused instead of choosing a price arbitrarily."),
28
+ cancellation_policy: CancellationPolicy.optional().describe("Selects among licensed prices with otherwise identical billing terms. Ambiguous terms are refused instead of choosing a price arbitrarily."),
29
29
  quantity: zod.string().regex(quoteItemInputQuantityRegExp),
30
30
  meter_id: zod.uuid().optional(),
31
31
  meter_lookup_key: zod.string().min(1).max(quoteItemInputMeterLookupKeyMax).optional(),
@@ -17,7 +17,7 @@ export declare const QuoteRenewal: zod.ZodObject<{
17
17
  year: "year";
18
18
  }>>;
19
19
  interval_count: zod.ZodOptional<zod.ZodInt>;
20
- termination_policy: zod.ZodOptional<zod.ZodEnum<{
20
+ cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
21
21
  immediate: "immediate";
22
22
  period_end: "period_end";
23
23
  }>>;
@@ -6,7 +6,7 @@
6
6
  * OpenAPI spec version: v1
7
7
  */
8
8
  import * as zod from "zod";
9
- import { TerminationPolicy } from "./terminationPolicy.zod.js";
9
+ import { CancellationPolicy } from "./cancellationPolicy.zod.js";
10
10
  export const quoteRenewalPeriodsDefault = 1;
11
11
  export const quoteRenewalPeriodsMax = 100;
12
12
  export const QuoteRenewal = zod
@@ -15,7 +15,7 @@ export const QuoteRenewal = zod
15
15
  price_id: zod.uuid().optional(),
16
16
  interval: zod.enum(["day", "month", "year"]).optional(),
17
17
  interval_count: zod.int().min(1).optional(),
18
- termination_policy: TerminationPolicy.optional().describe("With `interval` and `interval_count`, chooses among prices of that term that differ in termination policy."),
18
+ cancellation_policy: CancellationPolicy.optional().describe("With `interval` and `interval_count`, chooses among prices of that term that differ in cancellation policy."),
19
19
  periods: zod
20
20
  .int()
21
21
  .min(1)
@@ -23,4 +23,4 @@ export const QuoteRenewal = zod
23
23
  .default(quoteRenewalPeriodsDefault)
24
24
  .describe("How many consecutive periods to renew for."),
25
25
  })
26
- .describe("Price renewing a licensed subscription. Give `price_id`, or `interval` with\n`interval_count`, to renew for another term at the price currently sold for it. Naming\nthe current term, or giving neither, renews at the agreed amount. A term sold at several\nprices that differ in termination policy is refused with 409\n`BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `termination_policy` or `price_id` is given.");
26
+ .describe("Price renewing a licensed subscription. Give `price_id`, or `interval` with\n`interval_count`, to renew for another term at the price currently sold for it. Naming\nthe current term, or giving neither, renews at the agreed amount. A term sold at several\nprices that differ in cancellation policy is refused with 409\n`BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `cancellation_policy` or `price_id` is given.");
@@ -32,7 +32,7 @@ export declare const QuoteRequest: zod.ZodObject<{
32
32
  year: "year";
33
33
  }>>;
34
34
  interval_count: zod.ZodOptional<zod.ZodInt>;
35
- termination_policy: zod.ZodOptional<zod.ZodEnum<{
35
+ cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
36
36
  immediate: "immediate";
37
37
  period_end: "period_end";
38
38
  }>>;
@@ -52,7 +52,7 @@ export declare const QuoteRequest: zod.ZodObject<{
52
52
  year: "year";
53
53
  }>>;
54
54
  interval_count: zod.ZodOptional<zod.ZodInt>;
55
- termination_policy: zod.ZodOptional<zod.ZodEnum<{
55
+ cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
56
56
  immediate: "immediate";
57
57
  period_end: "period_end";
58
58
  }>>;
@@ -9,6 +9,7 @@ import * as zod from "zod";
9
9
  export declare const RefundPolicy: zod.ZodEnum<{
10
10
  none: "none";
11
11
  prorated: "prorated";
12
+ short_rate: "short_rate";
12
13
  }>;
13
14
  export type RefundPolicy = zod.input<typeof RefundPolicy>;
14
15
  export type RefundPolicyOutput = zod.output<typeof RefundPolicy>;
@@ -7,5 +7,5 @@
7
7
  */
8
8
  import * as zod from "zod";
9
9
  export const RefundPolicy = zod
10
- .enum(["none", "prorated"])
11
- .describe("`none` refunds nothing. `prorated` refunds the amount paid for the current period minus the value of the time used, never below zero or above what remains unrefunded. Time used runs from the period start to the effective cancellation and is valued at prices frozen on the order item: each full calendar month at `refund_monthly_amount`, the rest at `refund_hourly_amount` or, without it, at the monthly price by the second. When the plan has no licensed period shorter than the one bought, time used is valued pro rata at the price paid. Discounts and setup fees are not refunded. Refunds return to the original payment sources, with tax refunded in proportion.");
10
+ .enum(["none", "prorated", "short_rate"])
11
+ .describe("`none` refunds nothing.\n\n`prorated` refunds the amount paid for the current period minus the value of the time used, never below zero\nor above what remains unrefunded. Time used runs from the period start to the effective cancellation, by the\nsecond. Each whole month from the period start is valued at the order item's `monthly_list_amount`, and the\nremainder at that amount in proportion to the length of the month it falls in; without `monthly_list_amount`,\ntime used is valued at the amount paid in proportion to the length of the period. A renewal starts a new\nperiod, and an immediate change starts one at the change. Discounts and setup fees are not refunded. Refunds\nreturn to the original payment sources, with tax refunded in proportion.\n\n`short_rate` refunds as `prorated`, except that when the cancellation takes effect less than\n`short_rate_threshold_seconds` after the period start, the value of the time used is multiplied by\n`short_rate_multiplier`, up to `monthly_list_amount` for each month begun or, without `monthly_list_amount`,\nup to the amount paid.");
@@ -20,4 +20,4 @@ export const RefundReason = zod
20
20
  "payment_not_applied",
21
21
  "operator",
22
22
  ])
23
- .describe("Why the refund was made. New codes may be added; treat an unknown code as unspecified.\n\n- `provisioning_failed`: the purchase could not be delivered.\n- `order_expired`: the order expired after part of it was paid.\n- `order_canceled`: the order was canceled after part of it was paid.\n- `change_canceled`: a scheduled change was withdrawn after part of it was paid.\n- `change_expired`: a scheduled change could not take effect in time.\n- `subscription_canceled`: the unused value of a canceled subscription, under its refund terms.\n- `future_period_canceled`: a renewal that had not started was withdrawn.\n- `downgrade_difference`: after a downgrade, the remaining paid value, valued as refund policy `prorated`\n describes, minus the new configuration's cost for the remaining time at the change item's\n `refund_monthly_amount` and `refund_hourly_amount`.\n- `usage_true_up`: usage priced over the whole month cost less than was charged.\n- `payment_not_applied`: a payment arrived after its invoice could no longer be paid.\n- `operator`: made by the platform operator.");
23
+ .describe("Why the refund was made. New codes may be added; treat an unknown code as unspecified.\n\n- `provisioning_failed`: the purchase could not be delivered.\n- `order_expired`: the order expired after part of it was paid.\n- `order_canceled`: the order was canceled after part of it was paid.\n- `change_canceled`: a scheduled change was withdrawn after part of it was paid.\n- `change_expired`: a scheduled change could not take effect in time.\n- `subscription_canceled`: the unused value of a canceled subscription, under its refund terms.\n- `future_period_canceled`: a renewal that had not started was withdrawn.\n- `downgrade_difference`: after a downgrade, the remaining paid value, valued under each paid period's refund\n policy and as `prorated` where that policy is `none`, minus the new configuration's value for the remaining\n time: each whole month at the change item's `monthly_list_amount` and the remainder in proportion to the\n length of the month it falls in, or without `monthly_list_amount`, the new period price in proportion to the\n remaining time.\n- `usage_true_up`: usage priced over the whole month cost less than was charged.\n- `payment_not_applied`: a payment arrived after its invoice could no longer be paid.\n- `operator`: made by the platform operator.");
@@ -18,7 +18,7 @@ export declare const RenewRequest: zod.ZodObject<{
18
18
  month: "month";
19
19
  year: "year";
20
20
  }>>;
21
- termination_policy: zod.ZodOptional<zod.ZodEnum<{
21
+ cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
22
22
  immediate: "immediate";
23
23
  period_end: "period_end";
24
24
  }>>;
@@ -6,7 +6,7 @@
6
6
  * OpenAPI spec version: v1
7
7
  */
8
8
  import * as zod from "zod";
9
- import { TerminationPolicy } from "./terminationPolicy.zod.js";
9
+ import { CancellationPolicy } from "./cancellationPolicy.zod.js";
10
10
  export const renewRequestPeriodsDefault = 1;
11
11
  export const renewRequestUseBalanceDefault = true;
12
12
  export const renewRequestUseCreditsDefault = true;
@@ -23,12 +23,12 @@ export const RenewRequest = zod.strictObject({
23
23
  .int()
24
24
  .min(1)
25
25
  .optional()
26
- .describe("Renew for a term of this length instead, at the price currently sold for it. Give\n`interval` with it.\n\nLeaving both out renews at the price this item already bills at, which a later price\nchange does not affect. Naming a term that differs from the current one is a fresh\nchoice, so it is bought at today's price. Naming the current term changes nothing. A\nterm sold at several prices that differ in termination policy is refused with 409\n`BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `termination_policy` is given.\n\nList the terms on offer with the renewal prices operation."),
26
+ .describe("Renew for a term of this length instead, at the price currently sold for it. Give\n`interval` with it.\n\nLeaving both out renews at the price this item already bills at, which a later price\nchange does not affect. Naming a term that differs from the current one is a fresh\nchoice, so it is bought at today's price. Naming the current term changes nothing. A\nterm sold at several prices that differ in cancellation policy is refused with 409\n`BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `cancellation_policy` is given.\n\nList the terms on offer with the renewal prices operation."),
27
27
  interval: zod
28
28
  .enum(["day", "month", "year"])
29
29
  .optional()
30
30
  .describe("The unit interval_count counts in."),
31
- termination_policy: TerminationPolicy.optional().describe("With `interval` and `interval_count`, chooses among prices of that term that differ in termination policy."),
31
+ cancellation_policy: CancellationPolicy.optional().describe("With `interval` and `interval_count`, chooses among prices of that term that differ in cancellation policy."),
32
32
  payment_method_id: zod.uuid().optional(),
33
33
  use_balance: zod
34
34
  .boolean()
@@ -16,7 +16,7 @@ export declare const RenewalOrderRequest: zod.ZodObject<{
16
16
  month: "month";
17
17
  year: "year";
18
18
  }>>;
19
- termination_policy: zod.ZodOptional<zod.ZodEnum<{
19
+ cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
20
20
  immediate: "immediate";
21
21
  period_end: "period_end";
22
22
  }>>;
@@ -6,7 +6,7 @@
6
6
  * OpenAPI spec version: v1
7
7
  */
8
8
  import * as zod from "zod";
9
- import { TerminationPolicy } from "./terminationPolicy.zod.js";
9
+ import { CancellationPolicy } from "./cancellationPolicy.zod.js";
10
10
  export const renewalOrderRequestPeriodsDefault = 1;
11
11
  export const RenewalOrderRequest = zod
12
12
  .strictObject({
@@ -20,6 +20,6 @@ export const RenewalOrderRequest = zod
20
20
  .describe("As in renewing."),
21
21
  interval_count: zod.int().min(1).optional().describe("As in renewing."),
22
22
  interval: zod.enum(["day", "month", "year"]).optional().describe("As in renewing."),
23
- termination_policy: TerminationPolicy.optional().describe("As in renewing."),
23
+ cancellation_policy: CancellationPolicy.optional().describe("As in renewing."),
24
24
  })
25
25
  .describe("The renewal's periods and price, chosen as in renewing.");
@@ -7,14 +7,17 @@
7
7
  */
8
8
  import * as zod from "zod";
9
9
  export declare const RenewalPrice: zod.ZodObject<{
10
- termination_policy: zod.ZodOptional<zod.ZodEnum<{
10
+ cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
11
11
  immediate: "immediate";
12
12
  period_end: "period_end";
13
13
  }>>;
14
14
  refund_policy: zod.ZodOptional<zod.ZodEnum<{
15
15
  none: "none";
16
16
  prorated: "prorated";
17
+ short_rate: "short_rate";
17
18
  }>>;
19
+ short_rate_multiplier: zod.ZodOptional<zod.ZodString>;
20
+ short_rate_threshold_seconds: zod.ZodOptional<zod.ZodInt>;
18
21
  price_id: zod.ZodUUID;
19
22
  interval_count: zod.ZodInt;
20
23
  interval: zod.ZodEnum<{
@@ -6,12 +6,14 @@
6
6
  * OpenAPI spec version: v1
7
7
  */
8
8
  import * as zod from "zod";
9
+ import { CancellationPolicy } from "./cancellationPolicy.zod.js";
9
10
  import { Money } from "./money.zod.js";
10
11
  import { RefundPolicy } from "./refundPolicy.zod.js";
11
- import { TerminationPolicy } from "./terminationPolicy.zod.js";
12
12
  export const RenewalPrice = zod.strictObject({
13
- termination_policy: TerminationPolicy.optional(),
13
+ cancellation_policy: CancellationPolicy.optional(),
14
14
  refund_policy: RefundPolicy.optional(),
15
+ short_rate_multiplier: zod.string().optional().describe("Refund policy `short_rate` only."),
16
+ short_rate_threshold_seconds: zod.int().optional().describe("Refund policy `short_rate` only."),
15
17
  price_id: zod.uuid(),
16
18
  interval_count: zod.int().describe("How many periods one renewal covers."),
17
19
  interval: zod.enum(["day", "month", "year"]),
@@ -8,14 +8,17 @@
8
8
  import * as zod from "zod";
9
9
  export declare const RenewalPriceList: zod.ZodObject<{
10
10
  items: zod.ZodArray<zod.ZodObject<{
11
- termination_policy: zod.ZodOptional<zod.ZodEnum<{
11
+ cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
12
12
  immediate: "immediate";
13
13
  period_end: "period_end";
14
14
  }>>;
15
15
  refund_policy: zod.ZodOptional<zod.ZodEnum<{
16
16
  none: "none";
17
17
  prorated: "prorated";
18
+ short_rate: "short_rate";
18
19
  }>>;
20
+ short_rate_multiplier: zod.ZodOptional<zod.ZodString>;
21
+ short_rate_threshold_seconds: zod.ZodOptional<zod.ZodInt>;
19
22
  price_id: zod.ZodUUID;
20
23
  interval_count: zod.ZodInt;
21
24
  interval: zod.ZodEnum<{
@@ -27,14 +27,18 @@ export declare const Subscription: zod.ZodObject<{
27
27
  }>;
28
28
  interval_count: zod.ZodOptional<zod.ZodInt>;
29
29
  recurring_amount: zod.ZodOptional<zod.ZodString>;
30
- termination_policy: zod.ZodOptional<zod.ZodEnum<{
30
+ cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
31
31
  immediate: "immediate";
32
32
  period_end: "period_end";
33
33
  }>>;
34
34
  refund_policy: zod.ZodOptional<zod.ZodEnum<{
35
35
  none: "none";
36
36
  prorated: "prorated";
37
+ short_rate: "short_rate";
37
38
  }>>;
39
+ short_rate_multiplier: zod.ZodOptional<zod.ZodString>;
40
+ short_rate_threshold_seconds: zod.ZodOptional<zod.ZodInt>;
41
+ monthly_list_amount: zod.ZodOptional<zod.ZodString>;
38
42
  order_item_id: zod.ZodOptional<zod.ZodUUID>;
39
43
  coupon_id: zod.ZodOptional<zod.ZodUUID>;
40
44
  coupon: zod.ZodOptional<zod.ZodObject<{
@@ -7,6 +7,7 @@
7
7
  */
8
8
  import * as zod from "zod";
9
9
  import { AccountIdentity } from "./accountIdentity.zod.js";
10
+ import { CancellationPolicy } from "./cancellationPolicy.zod.js";
10
11
  import { NamedIdentity } from "./namedIdentity.zod.js";
11
12
  import { ObjectIdentity } from "./objectIdentity.zod.js";
12
13
  import { PriceType } from "./priceType.zod.js";
@@ -16,7 +17,6 @@ import { RefundPolicy } from "./refundPolicy.zod.js";
16
17
  import { ScheduledChange } from "./scheduledChange.zod.js";
17
18
  import { SubscriptionCancellation } from "./subscriptionCancellation.zod.js";
18
19
  import { SubscriptionRestriction } from "./subscriptionRestriction.zod.js";
19
- import { TerminationPolicy } from "./terminationPolicy.zod.js";
20
20
  import { UsageType } from "./usageType.zod.js";
21
21
  export const subscriptionDiscountedRenewalsRemainingMin = 0;
22
22
  export const Subscription = zod
@@ -37,8 +37,20 @@ export const Subscription = zod
37
37
  .string()
38
38
  .optional()
39
39
  .describe("The whole licensed subscription's renewal amount, after continuing discounts and before tax. A pending subscription shows base terms until paying the order fixes any new discount. Absent for metered and one-time subscriptions."),
40
- termination_policy: TerminationPolicy.optional(),
40
+ cancellation_policy: CancellationPolicy.optional(),
41
41
  refund_policy: RefundPolicy.optional(),
42
+ short_rate_multiplier: zod
43
+ .string()
44
+ .optional()
45
+ .describe("Refund policy `short_rate` only, as on the price bought."),
46
+ short_rate_threshold_seconds: zod
47
+ .int()
48
+ .optional()
49
+ .describe("Refund policy `short_rate` only, as on the price bought."),
50
+ monthly_list_amount: zod
51
+ .string()
52
+ .optional()
53
+ .describe("Licensed recurring only, the `monthly_list_amount` that a renewal at the agreed amount keeps; see the order item."),
42
54
  order_item_id: zod.uuid().optional(),
43
55
  coupon_id: zod.uuid().optional(),
44
56
  coupon: ObjectIdentity.optional(),
@@ -27,14 +27,18 @@ export declare const SubscriptionList: zod.ZodObject<{
27
27
  }>;
28
28
  interval_count: zod.ZodOptional<zod.ZodInt>;
29
29
  recurring_amount: zod.ZodOptional<zod.ZodString>;
30
- termination_policy: zod.ZodOptional<zod.ZodEnum<{
30
+ cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
31
31
  immediate: "immediate";
32
32
  period_end: "period_end";
33
33
  }>>;
34
34
  refund_policy: zod.ZodOptional<zod.ZodEnum<{
35
35
  none: "none";
36
36
  prorated: "prorated";
37
+ short_rate: "short_rate";
37
38
  }>>;
39
+ short_rate_multiplier: zod.ZodOptional<zod.ZodString>;
40
+ short_rate_threshold_seconds: zod.ZodOptional<zod.ZodInt>;
41
+ monthly_list_amount: zod.ZodOptional<zod.ZodString>;
38
42
  order_item_id: zod.ZodOptional<zod.ZodUUID>;
39
43
  coupon_id: zod.ZodOptional<zod.ZodUUID>;
40
44
  coupon: zod.ZodOptional<zod.ZodObject<{
@@ -1176,7 +1176,7 @@ export declare const getCreateCancellationUrl: () => string;
1176
1176
  * the subscriptions do not share one service, project, account and currency;
1177
1177
  * - 409 `BILLING_CANCELLATION_CONFLICT` when a subscription has not started or has ended;
1178
1178
  * - 422 `BILLING_CANCELLATION_MODE_FIXED` when `mode` is not allowed, and `BILLING_CANCELLATION_TERMS_UNSET`
1179
- * when a licensed subscription has no termination terms, both with `meta.subscription_id`;
1179
+ * when a licensed subscription has no cancellation terms, both with `meta.subscription_id`;
1180
1180
  * - 409 `BILLING_CANCELLATION_SCHEDULES_DIFFER` when, for `period_end`, the paid terms end at different times;
1181
1181
  * - 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being canceled
1182
1182
  * (`meta.cancellation_id`) or reclaimed (`meta.reason` `reclaim_requested`), or has a paid change waiting to
@@ -1318,7 +1318,7 @@ export const getCreateCancellationUrl = () => {
1318
1318
  * the subscriptions do not share one service, project, account and currency;
1319
1319
  * - 409 `BILLING_CANCELLATION_CONFLICT` when a subscription has not started or has ended;
1320
1320
  * - 422 `BILLING_CANCELLATION_MODE_FIXED` when `mode` is not allowed, and `BILLING_CANCELLATION_TERMS_UNSET`
1321
- * when a licensed subscription has no termination terms, both with `meta.subscription_id`;
1321
+ * when a licensed subscription has no cancellation terms, both with `meta.subscription_id`;
1322
1322
  * - 409 `BILLING_CANCELLATION_SCHEDULES_DIFFER` when, for `period_end`, the paid terms end at different times;
1323
1323
  * - 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being canceled
1324
1324
  * (`meta.cancellation_id`) or reclaimed (`meta.reason` `reclaim_requested`), or has a paid change waiting to