Commit 17a06ae
committed
feat(client)!: breaking change to re-use types
A number of types that were previously defined in-line at each call site have now been declared as shareable types. This has the benefit of greatly reducing the number of duplicated definitions of the same types, but is also a breaking change since these types will be moving to a shared single definition.
A summary of the new types is below:
Billing Configuration Models
- Address
- BillingCycleAnchorConfiguration
- BillingCycleConfiguration
- FixedFeeQuantityScheduleEntry
- FixedFeeQuantityTransition
- CustomExpiration
- SubLineItemGrouping
Pricing Models (Base)
- Price
- PriceUnitPrice
- PricePackagePrice
- PriceMatrixPrice
- PriceTieredPrice
- PriceTieredBPSPrice
- PriceBPSPrice
- PriceBulkBPSPrice
- PriceBulkPrice
- PriceInterval
Advanced Pricing Models
- PriceThresholdTotalAmountPrice
- PriceTieredPackagePrice
- PriceTieredWithMinimumPrice
- PricePackageWithAllocationPrice
- PriceMatrixWithAllocationPrice
- PriceTieredWithProrationPrice
- PriceUnitWithProrationPrice
- PriceGroupedAllocationPrice
- PriceMatrixWithDisplayNamePrice
Discount and Adjustment Models
- AmountDiscount
- PercentageDiscount
- UsageDiscount
- TrialDiscount
- Discount
- CouponRedemption (formerly SubscriptionRedeemedCoupon)
- TransformPriceFilter
- AdjustmentInterval
- AdjustmentIntervalAdjustment
Monetary Adjustment Models
- MonetaryAmountDiscountAdjustment
- MonetaryMaximumAdjustment
- MonetaryMinimumAdjustment
- MonetaryPercentageDiscountAdjustment
- MonetaryUsageDiscountAdjustment
Plan Phase Adjustment Models
- PlanPhaseAmountDiscountAdjustment
- PlanPhaseMaximumAdjustment
- PlanPhaseMinimumAdjustment
- PlanPhasePercentageDiscountAdjustment
- PlanPhaseUsageDiscountAdjustment
Limit Models
- Maximum (formerly PlanMaximum)
- Minimum (formerly PlanMinimum)
- MinimumInterval (formerly SubscriptionMinimumInterval)
- MaximumInterval (formerly SubscriptionMaximumInterval)
Cost and Allocation Models
- AggregatedCost
- PerPriceCost
- Allocation
- SubscriptionTrialInfo
Configuration Parameter Models
- BPSConfigParam
- BulkBPSConfigParam
- BulkConfigParam
- MatrixConfigParam
- PackageConfigParam
- TieredBPSConfigParam
- TieredConfigParam
- UnitConfigParam
Reference Models
- CustomerMinified
- SubscriptionMinified
- InvoiceTiny
- CreditNoteTiny
- ItemSlim
- BillableMetricTiny
- TaxAmount
Dimensional Pricing Models
- DimensionalPriceConfiguration
- MatrixValue1 parent 89ce8ec commit 17a06ae
File tree
25 files changed
+13804
-77939
lines changed- src
- resources
- beta
- customers
- credits
- plans
- prices
25 files changed
+13804
-77939
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
190 | | - | |
| 191 | + | |
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| |||
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
210 | | - | |
| 211 | + | |
211 | 212 | | |
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
216 | | - | |
| 217 | + | |
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
| |||
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | 237 | | |
246 | 238 | | |
247 | 239 | | |
| |||
267 | 259 | | |
268 | 260 | | |
269 | 261 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | 262 | | |
291 | 263 | | |
292 | 264 | | |
| |||
303 | 275 | | |
304 | 276 | | |
305 | 277 | | |
306 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
307 | 283 | | |
308 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
309 | 287 | | |
310 | | - | |
| 288 | + | |
311 | 289 | | |
312 | 290 | | |
313 | | - | |
| 291 | + | |
314 | 292 | | |
315 | | - | |
316 | | - | |
| 293 | + | |
317 | 294 | | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
| 295 | + | |
326 | 296 | | |
327 | 297 | | |
328 | 298 | | |
| |||
364 | 334 | | |
365 | 335 | | |
366 | 336 | | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
| 337 | + | |
383 | 338 | | |
384 | 339 | | |
385 | 340 | | |
| |||
396 | 351 | | |
397 | 352 | | |
398 | 353 | | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
| 354 | + | |
415 | 355 | | |
416 | 356 | | |
417 | 357 | | |
418 | 358 | | |
419 | 359 | | |
420 | 360 | | |
421 | | - | |
| 361 | + | |
422 | 362 | | |
423 | 363 | | |
424 | 364 | | |
| |||
431 | 371 | | |
432 | 372 | | |
433 | 373 | | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | 374 | | |
450 | 375 | | |
451 | 376 | | |
| |||
465 | 390 | | |
466 | 391 | | |
467 | 392 | | |
| 393 | + | |
468 | 394 | | |
469 | 395 | | |
470 | 396 | | |
| |||
0 commit comments