orb-billing 4.64.0 → 4.65.0

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.65.0 (2025-03-05)
4
+
5
+ Full Changelog: [v4.64.0...v4.65.0](https://github.com/orbcorp/orb-node/compare/v4.64.0...v4.65.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([#535](https://github.com/orbcorp/orb-node/issues/535)) ([42e41ce](https://github.com/orbcorp/orb-node/commit/42e41cebe5784cbc254d503ae49111b682d066c9))
10
+ * **api:** manual updates ([#538](https://github.com/orbcorp/orb-node/issues/538)) ([5f99471](https://github.com/orbcorp/orb-node/commit/5f994713a02b7ca7def32339dc7cb530bf964cec))
11
+ * **api:** manual updates ([#540](https://github.com/orbcorp/orb-node/issues/540)) ([e144b49](https://github.com/orbcorp/orb-node/commit/e144b49763b1d755088ecb2f478943107387d6d4))
12
+ * **api:** manual updates ([#542](https://github.com/orbcorp/orb-node/issues/542)) ([970f1b8](https://github.com/orbcorp/orb-node/commit/970f1b873462bc1d5609b694d43fca2c1749c4f1))
13
+
3
14
  ## 4.64.0 (2025-03-01)
4
15
 
5
16
  Full Changelog: [v4.63.0...v4.64.0](https://github.com/orbcorp/orb-node/compare/v4.63.0...v4.64.0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orb-billing",
3
- "version": "4.64.0",
3
+ "version": "4.65.0",
4
4
  "description": "The official TypeScript library for the Orb API",
5
5
  "author": "Orb <team@withorb.com>",
6
6
  "types": "./index.d.ts",
@@ -13,20 +13,6 @@ export interface AmountDiscount {
13
13
  }
14
14
  export type BillingCycleRelativeDate = 'start_of_term' | 'end_of_term';
15
15
  export type Discount = PercentageDiscount | TrialDiscount | UsageDiscount | AmountDiscount;
16
- export interface UsageDiscount {
17
- /**
18
- * List of price_ids that this discount applies to. For plan/plan phase discounts,
19
- * this can be a subset of prices.
20
- */
21
- applies_to_price_ids: Array<string>;
22
- discount_type: 'usage';
23
- /**
24
- * Only available if discount_type is `usage`. Number of usage units that this
25
- * discount is for
26
- */
27
- usage_discount: number;
28
- reason?: string | null;
29
- }
30
16
  export type InvoiceLevelDiscount = PercentageDiscount | AmountDiscount | TrialDiscount;
31
17
  export interface PaginationMetadata {
32
18
  has_more: boolean;
@@ -63,4 +49,18 @@ export interface TrialDiscount {
63
49
  */
64
50
  trial_percentage_discount?: number | null;
65
51
  }
52
+ export interface UsageDiscount {
53
+ /**
54
+ * List of price_ids that this discount applies to. For plan/plan phase discounts,
55
+ * this can be a subset of prices.
56
+ */
57
+ applies_to_price_ids: Array<string>;
58
+ discount_type: 'usage';
59
+ /**
60
+ * Only available if discount_type is `usage`. Number of usage units that this
61
+ * discount is for
62
+ */
63
+ usage_discount: number;
64
+ reason?: string | null;
65
+ }
66
66
  //# sourceMappingURL=shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,oBAAoB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpC,aAAa,EAAE,QAAQ,CAAC;IAExB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,MAAM,wBAAwB,GAAG,eAAe,GAAG,aAAa,CAAC;AAEvE,MAAM,MAAM,QAAQ,GAAG,kBAAkB,GAAG,aAAa,GAAG,aAAa,GAAG,cAAc,CAAC;AAE3F,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,oBAAoB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpC,aAAa,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB,MAAM,CAAC,EAAE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