Skip to content

Commit 9460c52

Browse files
refactor(client)!: improve some class names
1 parent 9affbde commit 9460c52

97 files changed

Lines changed: 24467 additions & 34097 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

orb-java-core/src/main/kotlin/com/withorb/api/models/CouponCreateParams.kt

Lines changed: 79 additions & 116 deletions
Large diffs are not rendered by default.

orb-java-core/src/main/kotlin/com/withorb/api/models/CustomerCostListByExternalIdResponse.kt

Lines changed: 30 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -657,156 +657,154 @@ private constructor(
657657
fun price(price: JsonField<Price>) = apply { this.price = price }
658658

659659
/** Alias for calling [price] with `Price.ofUnit(unit)`. */
660-
fun price(unit: Price.UnitPrice) = price(Price.ofUnit(unit))
660+
fun price(unit: Price.Unit) = price(Price.ofUnit(unit))
661661

662-
/** Alias for calling [price] with `Price.ofPackagePrice(packagePrice)`. */
663-
fun price(packagePrice: Price.PackagePrice) =
664-
price(Price.ofPackagePrice(packagePrice))
662+
/** Alias for calling [price] with `Price.ofPackage(package_)`. */
663+
fun price(package_: Price.Package) = price(Price.ofPackage(package_))
665664

666665
/** Alias for calling [price] with `Price.ofMatrix(matrix)`. */
667-
fun price(matrix: Price.MatrixPrice) = price(Price.ofMatrix(matrix))
666+
fun price(matrix: Price.Matrix) = price(Price.ofMatrix(matrix))
668667

669668
/** Alias for calling [price] with `Price.ofTiered(tiered)`. */
670-
fun price(tiered: Price.TieredPrice) = price(Price.ofTiered(tiered))
669+
fun price(tiered: Price.Tiered) = price(Price.ofTiered(tiered))
671670

672671
/** Alias for calling [price] with `Price.ofTieredBps(tieredBps)`. */
673-
fun price(tieredBps: Price.TieredBpsPrice) = price(Price.ofTieredBps(tieredBps))
672+
fun price(tieredBps: Price.TieredBps) = price(Price.ofTieredBps(tieredBps))
674673

675674
/** Alias for calling [price] with `Price.ofBps(bps)`. */
676-
fun price(bps: Price.BpsPrice) = price(Price.ofBps(bps))
675+
fun price(bps: Price.Bps) = price(Price.ofBps(bps))
677676

678677
/** Alias for calling [price] with `Price.ofBulkBps(bulkBps)`. */
679-
fun price(bulkBps: Price.BulkBpsPrice) = price(Price.ofBulkBps(bulkBps))
678+
fun price(bulkBps: Price.BulkBps) = price(Price.ofBulkBps(bulkBps))
680679

681680
/** Alias for calling [price] with `Price.ofBulk(bulk)`. */
682-
fun price(bulk: Price.BulkPrice) = price(Price.ofBulk(bulk))
681+
fun price(bulk: Price.Bulk) = price(Price.ofBulk(bulk))
683682

684683
/**
685684
* Alias for calling [price] with
686685
* `Price.ofThresholdTotalAmount(thresholdTotalAmount)`.
687686
*/
688-
fun price(thresholdTotalAmount: Price.ThresholdTotalAmountPrice) =
687+
fun price(thresholdTotalAmount: Price.ThresholdTotalAmount) =
689688
price(Price.ofThresholdTotalAmount(thresholdTotalAmount))
690689

691690
/** Alias for calling [price] with `Price.ofTieredPackage(tieredPackage)`. */
692-
fun price(tieredPackage: Price.TieredPackagePrice) =
691+
fun price(tieredPackage: Price.TieredPackage) =
693692
price(Price.ofTieredPackage(tieredPackage))
694693

695694
/** Alias for calling [price] with `Price.ofGroupedTiered(groupedTiered)`. */
696-
fun price(groupedTiered: Price.GroupedTieredPrice) =
695+
fun price(groupedTiered: Price.GroupedTiered) =
697696
price(Price.ofGroupedTiered(groupedTiered))
698697

699698
/**
700699
* Alias for calling [price] with `Price.ofTieredWithMinimum(tieredWithMinimum)`.
701700
*/
702-
fun price(tieredWithMinimum: Price.TieredWithMinimumPrice) =
701+
fun price(tieredWithMinimum: Price.TieredWithMinimum) =
703702
price(Price.ofTieredWithMinimum(tieredWithMinimum))
704703

705704
/**
706705
* Alias for calling [price] with
707706
* `Price.ofTieredPackageWithMinimum(tieredPackageWithMinimum)`.
708707
*/
709-
fun price(tieredPackageWithMinimum: Price.TieredPackageWithMinimumPrice) =
708+
fun price(tieredPackageWithMinimum: Price.TieredPackageWithMinimum) =
710709
price(Price.ofTieredPackageWithMinimum(tieredPackageWithMinimum))
711710

712711
/**
713712
* Alias for calling [price] with
714713
* `Price.ofPackageWithAllocation(packageWithAllocation)`.
715714
*/
716-
fun price(packageWithAllocation: Price.PackageWithAllocationPrice) =
715+
fun price(packageWithAllocation: Price.PackageWithAllocation) =
717716
price(Price.ofPackageWithAllocation(packageWithAllocation))
718717

719718
/** Alias for calling [price] with `Price.ofUnitWithPercent(unitWithPercent)`. */
720-
fun price(unitWithPercent: Price.UnitWithPercentPrice) =
719+
fun price(unitWithPercent: Price.UnitWithPercent) =
721720
price(Price.ofUnitWithPercent(unitWithPercent))
722721

723722
/**
724723
* Alias for calling [price] with
725724
* `Price.ofMatrixWithAllocation(matrixWithAllocation)`.
726725
*/
727-
fun price(matrixWithAllocation: Price.MatrixWithAllocationPrice) =
726+
fun price(matrixWithAllocation: Price.MatrixWithAllocation) =
728727
price(Price.ofMatrixWithAllocation(matrixWithAllocation))
729728

730729
/**
731730
* Alias for calling [price] with
732731
* `Price.ofTieredWithProration(tieredWithProration)`.
733732
*/
734-
fun price(tieredWithProration: Price.TieredWithProrationPrice) =
733+
fun price(tieredWithProration: Price.TieredWithProration) =
735734
price(Price.ofTieredWithProration(tieredWithProration))
736735

737736
/**
738737
* Alias for calling [price] with `Price.ofUnitWithProration(unitWithProration)`.
739738
*/
740-
fun price(unitWithProration: Price.UnitWithProrationPrice) =
739+
fun price(unitWithProration: Price.UnitWithProration) =
741740
price(Price.ofUnitWithProration(unitWithProration))
742741

743742
/**
744743
* Alias for calling [price] with `Price.ofGroupedAllocation(groupedAllocation)`.
745744
*/
746-
fun price(groupedAllocation: Price.GroupedAllocationPrice) =
745+
fun price(groupedAllocation: Price.GroupedAllocation) =
747746
price(Price.ofGroupedAllocation(groupedAllocation))
748747

749748
/**
750749
* Alias for calling [price] with
751750
* `Price.ofGroupedWithProratedMinimum(groupedWithProratedMinimum)`.
752751
*/
753-
fun price(groupedWithProratedMinimum: Price.GroupedWithProratedMinimumPrice) =
752+
fun price(groupedWithProratedMinimum: Price.GroupedWithProratedMinimum) =
754753
price(Price.ofGroupedWithProratedMinimum(groupedWithProratedMinimum))
755754

756755
/**
757756
* Alias for calling [price] with
758757
* `Price.ofGroupedWithMeteredMinimum(groupedWithMeteredMinimum)`.
759758
*/
760-
fun price(groupedWithMeteredMinimum: Price.GroupedWithMeteredMinimumPrice) =
759+
fun price(groupedWithMeteredMinimum: Price.GroupedWithMeteredMinimum) =
761760
price(Price.ofGroupedWithMeteredMinimum(groupedWithMeteredMinimum))
762761

763762
/**
764763
* Alias for calling [price] with
765764
* `Price.ofMatrixWithDisplayName(matrixWithDisplayName)`.
766765
*/
767-
fun price(matrixWithDisplayName: Price.MatrixWithDisplayNamePrice) =
766+
fun price(matrixWithDisplayName: Price.MatrixWithDisplayName) =
768767
price(Price.ofMatrixWithDisplayName(matrixWithDisplayName))
769768

770769
/**
771770
* Alias for calling [price] with `Price.ofBulkWithProration(bulkWithProration)`.
772771
*/
773-
fun price(bulkWithProration: Price.BulkWithProrationPrice) =
772+
fun price(bulkWithProration: Price.BulkWithProration) =
774773
price(Price.ofBulkWithProration(bulkWithProration))
775774

776775
/**
777776
* Alias for calling [price] with
778777
* `Price.ofGroupedTieredPackage(groupedTieredPackage)`.
779778
*/
780-
fun price(groupedTieredPackage: Price.GroupedTieredPackagePrice) =
779+
fun price(groupedTieredPackage: Price.GroupedTieredPackage) =
781780
price(Price.ofGroupedTieredPackage(groupedTieredPackage))
782781

783782
/**
784783
* Alias for calling [price] with
785784
* `Price.ofMaxGroupTieredPackage(maxGroupTieredPackage)`.
786785
*/
787-
fun price(maxGroupTieredPackage: Price.MaxGroupTieredPackagePrice) =
786+
fun price(maxGroupTieredPackage: Price.MaxGroupTieredPackage) =
788787
price(Price.ofMaxGroupTieredPackage(maxGroupTieredPackage))
789788

790789
/**
791790
* Alias for calling [price] with
792791
* `Price.ofScalableMatrixWithUnitPricing(scalableMatrixWithUnitPricing)`.
793792
*/
794-
fun price(scalableMatrixWithUnitPricing: Price.ScalableMatrixWithUnitPricingPrice) =
793+
fun price(scalableMatrixWithUnitPricing: Price.ScalableMatrixWithUnitPricing) =
795794
price(Price.ofScalableMatrixWithUnitPricing(scalableMatrixWithUnitPricing))
796795

797796
/**
798797
* Alias for calling [price] with
799798
* `Price.ofScalableMatrixWithTieredPricing(scalableMatrixWithTieredPricing)`.
800799
*/
801-
fun price(
802-
scalableMatrixWithTieredPricing: Price.ScalableMatrixWithTieredPricingPrice
803-
) = price(Price.ofScalableMatrixWithTieredPricing(scalableMatrixWithTieredPricing))
800+
fun price(scalableMatrixWithTieredPricing: Price.ScalableMatrixWithTieredPricing) =
801+
price(Price.ofScalableMatrixWithTieredPricing(scalableMatrixWithTieredPricing))
804802

805803
/**
806804
* Alias for calling [price] with
807805
* `Price.ofCumulativeGroupedBulk(cumulativeGroupedBulk)`.
808806
*/
809-
fun price(cumulativeGroupedBulk: Price.CumulativeGroupedBulkPrice) =
807+
fun price(cumulativeGroupedBulk: Price.CumulativeGroupedBulk) =
810808
price(Price.ofCumulativeGroupedBulk(cumulativeGroupedBulk))
811809

812810
/** The price the cost is associated with */

0 commit comments

Comments
 (0)