orb-billing 1.29.0 → 1.30.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/package.json +5 -1
  3. package/resources/customers/credits/ledger.d.ts +142 -66
  4. package/resources/customers/credits/ledger.d.ts.map +1 -1
  5. package/resources/customers/credits/ledger.js.map +1 -1
  6. package/resources/customers/credits/ledger.mjs.map +1 -1
  7. package/resources/customers/customers.d.ts +13 -5
  8. package/resources/customers/customers.d.ts.map +1 -1
  9. package/resources/customers/customers.js.map +1 -1
  10. package/resources/customers/customers.mjs.map +1 -1
  11. package/resources/invoices.d.ts +46 -4
  12. package/resources/invoices.d.ts.map +1 -1
  13. package/resources/invoices.js.map +1 -1
  14. package/resources/invoices.mjs.map +1 -1
  15. package/resources/metrics.d.ts +15 -7
  16. package/resources/metrics.d.ts.map +1 -1
  17. package/resources/metrics.js.map +1 -1
  18. package/resources/metrics.mjs.map +1 -1
  19. package/resources/plans/external-plan-id.d.ts +3 -1
  20. package/resources/plans/external-plan-id.d.ts.map +1 -1
  21. package/resources/plans/external-plan-id.js.map +1 -1
  22. package/resources/plans/external-plan-id.mjs.map +1 -1
  23. package/resources/plans/plans.d.ts +10 -4
  24. package/resources/plans/plans.d.ts.map +1 -1
  25. package/resources/plans/plans.js.map +1 -1
  26. package/resources/plans/plans.mjs.map +1 -1
  27. package/resources/subscriptions.d.ts +7 -3
  28. package/resources/subscriptions.d.ts.map +1 -1
  29. package/resources/subscriptions.js.map +1 -1
  30. package/resources/subscriptions.mjs.map +1 -1
  31. package/src/resources/customers/credits/ledger.ts +142 -66
  32. package/src/resources/customers/customers.ts +13 -5
  33. package/src/resources/invoices.ts +54 -4
  34. package/src/resources/metrics.ts +15 -7
  35. package/src/resources/plans/external-plan-id.ts +3 -1
  36. package/src/resources/plans/plans.ts +10 -4
  37. package/src/resources/subscriptions.ts +7 -3
  38. package/src/version.ts +1 -1
  39. package/version.d.ts +1 -1
  40. package/version.js +1 -1
  41. package/version.mjs +1 -1
@@ -136,8 +136,10 @@ export interface Plan {
136
136
  maximum_amount: string | null;
137
137
 
138
138
  /**
139
- * User specified key-value pairs. If not provided, this defaults to an empty
140
- * dictionary.
139
+ * User specified key-value pairs for the resource. If not present, this defaults
140
+ * to an empty dictionary. Individual keys can be removed by setting the value to
141
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
142
+ * `null`.
141
143
  */
142
144
  metadata: Record<string, string>;
143
145
 
@@ -321,7 +323,9 @@ export interface PlanCreateParams {
321
323
  external_plan_id?: string | null;
322
324
 
323
325
  /**
324
- * User-specified key/value pairs for the resource.
326
+ * User-specified key/value pairs for the resource. Individual keys can be removed
327
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
328
+ * by setting `metadata` to `null`.
325
329
  */
326
330
  metadata?: Record<string, string | null> | null;
327
331
 
@@ -1135,7 +1139,9 @@ export interface PlanUpdateParams {
1135
1139
  external_plan_id?: string | null;
1136
1140
 
1137
1141
  /**
1138
- * User-specified key/value pairs for the resource.
1142
+ * User-specified key/value pairs for the resource. Individual keys can be removed
1143
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
1144
+ * by setting `metadata` to `null`.
1139
1145
  */
1140
1146
  metadata?: Record<string, string | null> | null;
1141
1147
  }
@@ -1127,8 +1127,10 @@ export interface Subscription {
1127
1127
  maximum_intervals: Array<Subscription.MaximumInterval>;
1128
1128
 
1129
1129
  /**
1130
- * User specified key-value pairs. If not provided, this defaults to an empty
1131
- * dictionary.
1130
+ * User specified key-value pairs for the resource. If not present, this defaults
1131
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1132
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1133
+ * `null`.
1132
1134
  */
1133
1135
  metadata: Record<string, string>;
1134
1136
 
@@ -2091,7 +2093,9 @@ export interface SubscriptionCreateParams {
2091
2093
  invoicing_threshold?: string | null;
2092
2094
 
2093
2095
  /**
2094
- * User-specified key/value pairs for the resource.
2096
+ * User-specified key/value pairs for the resource. Individual keys can be removed
2097
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
2098
+ * by setting `metadata` to `null`.
2095
2099
  */
2096
2100
  metadata?: Record<string, string | null> | null;
2097
2101
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.29.0'; // x-release-please-version
1
+ export const VERSION = '1.30.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.29.0";
1
+ export declare const VERSION = "1.30.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.29.0'; // x-release-please-version
4
+ exports.VERSION = '1.30.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.29.0'; // x-release-please-version
1
+ export const VERSION = '1.30.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map