orb-billing 5.24.0 → 5.26.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.
@@ -1 +1 @@
1
- {"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,iDAAqC;AA0ocrC,MAAa,eAAgB,SAAQ,iBAAgB;CAAG;AAAxD,0CAAwD;AAExD,MAAa,YAAa,SAAQ,iBAAa;CAAG;AAAlD,oCAAkD;AAElD,MAAa,UAAW,SAAQ,iBAAW;CAAG;AAA9C,gCAA8C"}
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,iDAAqC;AAqqcrC,MAAa,eAAgB,SAAQ,iBAAgB;CAAG;AAAxD,0CAAwD;AAExD,MAAa,YAAa,SAAQ,iBAAa;CAAG;AAAlD,oCAAkD;AAElD,MAAa,UAAW,SAAQ,iBAAW;CAAG;AAA9C,gCAA8C"}
@@ -1 +1 @@
1
- {"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,IAAI,EAAE;AA0ocf,MAAM,OAAO,eAAgB,SAAQ,IAAgB;CAAG;AAExD,MAAM,OAAO,YAAa,SAAQ,IAAa;CAAG;AAElD,MAAM,OAAO,UAAW,SAAQ,IAAW;CAAG"}
1
+ {"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,IAAI,EAAE;AAqqcf,MAAM,OAAO,eAAgB,SAAQ,IAAgB;CAAG;AAExD,MAAM,OAAO,YAAa,SAAQ,IAAa;CAAG;AAElD,MAAM,OAAO,UAAW,SAAQ,IAAW;CAAG"}
@@ -26,9 +26,6 @@ export class Beta extends APIResource {
26
26
  }
27
27
 
28
28
  /**
29
- * This API endpoint is in beta and its interface may change. It is recommended for
30
- * use only in test mode.
31
- *
32
29
  * This endpoint is used to fetch a plan version. It returns the phases, prices,
33
30
  * and adjustments present on this version of the plan.
34
31
  */
@@ -41,9 +38,6 @@ export class Beta extends APIResource {
41
38
  }
42
39
 
43
40
  /**
44
- * This API endpoint is in beta and its interface may change. It is recommended for
45
- * use only in test mode.
46
- *
47
41
  * This endpoint allows setting the default version of a plan.
48
42
  */
49
43
  setDefaultPlanVersion(
@@ -19,9 +19,6 @@ export class ExternalPlanID extends APIResource {
19
19
  }
20
20
 
21
21
  /**
22
- * This API endpoint is in beta and its interface may change. It is recommended for
23
- * use only in test mode.
24
- *
25
22
  * This endpoint is used to fetch a plan version. It returns the phases, prices,
26
23
  * and adjustments present on this version of the plan.
27
24
  */
@@ -34,9 +31,6 @@ export class ExternalPlanID extends APIResource {
34
31
  }
35
32
 
36
33
  /**
37
- * This API endpoint is in beta and its interface may change. It is recommended for
38
- * use only in test mode.
39
- *
40
34
  * This endpoint allows setting the default version of a plan.
41
35
  */
42
36
  setDefaultPlanVersion(
@@ -880,6 +880,12 @@ export declare namespace LedgerCreateEntryParams {
880
880
  */
881
881
  expiry_date?: string | null;
882
882
 
883
+ /**
884
+ * Optional filter to specify which items this credit block applies to. If not
885
+ * specified, the block will apply to all items for the pricing unit.
886
+ */
887
+ filters?: Array<AddIncrementCreditLedgerEntryRequestParams.Filter> | null;
888
+
883
889
  /**
884
890
  * Passing `invoice_settings` automatically generates an invoice for the newly
885
891
  * added credits. If `invoice_settings` is passed, you must specify
@@ -903,6 +909,26 @@ export declare namespace LedgerCreateEntryParams {
903
909
  }
904
910
 
905
911
  export namespace AddIncrementCreditLedgerEntryRequestParams {
912
+ /**
913
+ * A PriceFilter that only allows item_id field for block filters.
914
+ */
915
+ export interface Filter {
916
+ /**
917
+ * The property of the price the block applies to. Only item_id is supported.
918
+ */
919
+ field: 'item_id';
920
+
921
+ /**
922
+ * Should prices that match the filter be included or excluded.
923
+ */
924
+ operator: 'includes' | 'excludes';
925
+
926
+ /**
927
+ * The IDs or values that match this filter.
928
+ */
929
+ values: Array<string>;
930
+ }
931
+
906
932
  /**
907
933
  * Passing `invoice_settings` automatically generates an invoice for the newly
908
934
  * added credits. If `invoice_settings` is passed, you must specify
@@ -916,15 +942,6 @@ export declare namespace LedgerCreateEntryParams {
916
942
  */
917
943
  auto_collection: boolean;
918
944
 
919
- /**
920
- * The net terms determines the due date of the invoice. Due date is calculated
921
- * based on the invoice or issuance date, depending on the account's configured due
922
- * date calculation method. A value of '0' here represents that the invoice is due
923
- * on issue, whereas a value of '30' represents that the customer has 30 days to
924
- * pay the invoice. Do not set this field if you want to set a custom due date.
925
- */
926
- net_terms: number | null;
927
-
928
945
  /**
929
946
  * An optional custom due date for the invoice. If not set, the due date will be
930
947
  * calculated based on the `net_terms` value.
@@ -949,6 +966,15 @@ export declare namespace LedgerCreateEntryParams {
949
966
  */
950
967
  memo?: string | null;
951
968
 
969
+ /**
970
+ * The net terms determines the due date of the invoice. Due date is calculated
971
+ * based on the invoice or issuance date, depending on the account's configured due
972
+ * date calculation method. A value of '0' here represents that the invoice is due
973
+ * on issue, whereas a value of '30' represents that the customer has 30 days to
974
+ * pay the invoice. Do not set this field if you want to set a custom due date.
975
+ */
976
+ net_terms?: number | null;
977
+
952
978
  /**
953
979
  * If true, the new credit block will require that the corresponding invoice is
954
980
  * paid before it can be drawn down from.
@@ -1152,6 +1178,12 @@ export declare namespace LedgerCreateEntryByExternalIDParams {
1152
1178
  */
1153
1179
  expiry_date?: string | null;
1154
1180
 
1181
+ /**
1182
+ * Optional filter to specify which items this credit block applies to. If not
1183
+ * specified, the block will apply to all items for the pricing unit.
1184
+ */
1185
+ filters?: Array<AddIncrementCreditLedgerEntryRequestParams.Filter> | null;
1186
+
1155
1187
  /**
1156
1188
  * Passing `invoice_settings` automatically generates an invoice for the newly
1157
1189
  * added credits. If `invoice_settings` is passed, you must specify
@@ -1175,6 +1207,26 @@ export declare namespace LedgerCreateEntryByExternalIDParams {
1175
1207
  }
1176
1208
 
1177
1209
  export namespace AddIncrementCreditLedgerEntryRequestParams {
1210
+ /**
1211
+ * A PriceFilter that only allows item_id field for block filters.
1212
+ */
1213
+ export interface Filter {
1214
+ /**
1215
+ * The property of the price the block applies to. Only item_id is supported.
1216
+ */
1217
+ field: 'item_id';
1218
+
1219
+ /**
1220
+ * Should prices that match the filter be included or excluded.
1221
+ */
1222
+ operator: 'includes' | 'excludes';
1223
+
1224
+ /**
1225
+ * The IDs or values that match this filter.
1226
+ */
1227
+ values: Array<string>;
1228
+ }
1229
+
1178
1230
  /**
1179
1231
  * Passing `invoice_settings` automatically generates an invoice for the newly
1180
1232
  * added credits. If `invoice_settings` is passed, you must specify
@@ -1188,15 +1240,6 @@ export declare namespace LedgerCreateEntryByExternalIDParams {
1188
1240
  */
1189
1241
  auto_collection: boolean;
1190
1242
 
1191
- /**
1192
- * The net terms determines the due date of the invoice. Due date is calculated
1193
- * based on the invoice or issuance date, depending on the account's configured due
1194
- * date calculation method. A value of '0' here represents that the invoice is due
1195
- * on issue, whereas a value of '30' represents that the customer has 30 days to
1196
- * pay the invoice. Do not set this field if you want to set a custom due date.
1197
- */
1198
- net_terms: number | null;
1199
-
1200
1243
  /**
1201
1244
  * An optional custom due date for the invoice. If not set, the due date will be
1202
1245
  * calculated based on the `net_terms` value.
@@ -1221,6 +1264,15 @@ export declare namespace LedgerCreateEntryByExternalIDParams {
1221
1264
  */
1222
1265
  memo?: string | null;
1223
1266
 
1267
+ /**
1268
+ * The net terms determines the due date of the invoice. Due date is calculated
1269
+ * based on the invoice or issuance date, depending on the account's configured due
1270
+ * date calculation method. A value of '0' here represents that the invoice is due
1271
+ * on issue, whereas a value of '30' represents that the customer has 30 days to
1272
+ * pay the invoice. Do not set this field if you want to set a custom due date.
1273
+ */
1274
+ net_terms?: number | null;
1275
+
1224
1276
  /**
1225
1277
  * If true, the new credit block will require that the corresponding invoice is
1226
1278
  * paid before it can be drawn down from.
@@ -2788,6 +2788,33 @@ export interface NewAllocationPrice {
2788
2788
  * over to the next period. Set to null if using custom_expiration.
2789
2789
  */
2790
2790
  expires_at_end_of_cadence?: boolean | null;
2791
+
2792
+ /**
2793
+ * The filters that determine which items the allocation applies to.
2794
+ */
2795
+ filters?: Array<NewAllocationPrice.Filter> | null;
2796
+ }
2797
+
2798
+ export namespace NewAllocationPrice {
2799
+ /**
2800
+ * A PriceFilter that only allows item_id field for block filters.
2801
+ */
2802
+ export interface Filter {
2803
+ /**
2804
+ * The property of the price the block applies to. Only item_id is supported.
2805
+ */
2806
+ field: 'item_id';
2807
+
2808
+ /**
2809
+ * Should prices that match the filter be included or excluded.
2810
+ */
2811
+ operator: 'includes' | 'excludes';
2812
+
2813
+ /**
2814
+ * The IDs or values that match this filter.
2815
+ */
2816
+ values: Array<string>;
2817
+ }
2791
2818
  }
2792
2819
 
2793
2820
  export interface NewAmountDiscount {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.24.0'; // x-release-please-version
1
+ export const VERSION = '5.26.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.24.0";
1
+ export declare const VERSION = "5.26.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 = '5.24.0'; // x-release-please-version
4
+ exports.VERSION = '5.26.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.24.0'; // x-release-please-version
1
+ export const VERSION = '5.26.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map