orb-billing 5.23.0 → 5.25.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"}
@@ -125,6 +125,8 @@ export interface CreditListResponse {
125
125
 
126
126
  expiry_date: string | null;
127
127
 
128
+ filters: Array<CreditListResponse.Filter>;
129
+
128
130
  maximum_initial_balance: number | null;
129
131
 
130
132
  per_unit_cost_basis: string | null;
@@ -132,6 +134,25 @@ export interface CreditListResponse {
132
134
  status: 'active' | 'pending_payment';
133
135
  }
134
136
 
137
+ export namespace CreditListResponse {
138
+ export interface Filter {
139
+ /**
140
+ * The property of the price to filter on.
141
+ */
142
+ field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
143
+
144
+ /**
145
+ * Should prices that match the filter be included or excluded.
146
+ */
147
+ operator: 'includes' | 'excludes';
148
+
149
+ /**
150
+ * The IDs or values that match this filter.
151
+ */
152
+ values: Array<string>;
153
+ }
154
+ }
155
+
135
156
  export interface CreditListByExternalIDResponse {
136
157
  id: string;
137
158
 
@@ -141,6 +162,8 @@ export interface CreditListByExternalIDResponse {
141
162
 
142
163
  expiry_date: string | null;
143
164
 
165
+ filters: Array<CreditListByExternalIDResponse.Filter>;
166
+
144
167
  maximum_initial_balance: number | null;
145
168
 
146
169
  per_unit_cost_basis: string | null;
@@ -148,6 +171,25 @@ export interface CreditListByExternalIDResponse {
148
171
  status: 'active' | 'pending_payment';
149
172
  }
150
173
 
174
+ export namespace CreditListByExternalIDResponse {
175
+ export interface Filter {
176
+ /**
177
+ * The property of the price to filter on.
178
+ */
179
+ field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
180
+
181
+ /**
182
+ * Should prices that match the filter be included or excluded.
183
+ */
184
+ operator: 'includes' | 'excludes';
185
+
186
+ /**
187
+ * The IDs or values that match this filter.
188
+ */
189
+ values: Array<string>;
190
+ }
191
+ }
192
+
151
193
  export interface CreditListParams extends PageParams {
152
194
  /**
153
195
  * The ledger currency or custom pricing unit to use.
@@ -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
@@ -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
@@ -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.23.0'; // x-release-please-version
1
+ export const VERSION = '5.25.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.23.0";
1
+ export declare const VERSION = "5.25.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.23.0'; // x-release-please-version
4
+ exports.VERSION = '5.25.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.23.0'; // x-release-please-version
1
+ export const VERSION = '5.25.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map