orb-billing 1.1.0 → 1.2.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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +1 -1
  4. data/lib/orb/models/monetary_amount_discount_adjustment.rb +10 -1
  5. data/lib/orb/models/monetary_maximum_adjustment.rb +10 -1
  6. data/lib/orb/models/monetary_minimum_adjustment.rb +10 -1
  7. data/lib/orb/models/monetary_percentage_discount_adjustment.rb +10 -1
  8. data/lib/orb/models/monetary_usage_discount_adjustment.rb +10 -1
  9. data/lib/orb/models/plan_phase_amount_discount_adjustment.rb +10 -1
  10. data/lib/orb/models/plan_phase_maximum_adjustment.rb +10 -1
  11. data/lib/orb/models/plan_phase_minimum_adjustment.rb +10 -1
  12. data/lib/orb/models/plan_phase_percentage_discount_adjustment.rb +10 -1
  13. data/lib/orb/models/plan_phase_usage_discount_adjustment.rb +10 -1
  14. data/lib/orb/models/price.rb +280 -28
  15. data/lib/orb/version.rb +1 -1
  16. data/rbi/orb/models/monetary_amount_discount_adjustment.rbi +13 -3
  17. data/rbi/orb/models/monetary_maximum_adjustment.rbi +13 -3
  18. data/rbi/orb/models/monetary_minimum_adjustment.rbi +13 -3
  19. data/rbi/orb/models/monetary_percentage_discount_adjustment.rbi +13 -3
  20. data/rbi/orb/models/monetary_usage_discount_adjustment.rbi +10 -0
  21. data/rbi/orb/models/plan_phase_amount_discount_adjustment.rbi +13 -3
  22. data/rbi/orb/models/plan_phase_maximum_adjustment.rbi +13 -3
  23. data/rbi/orb/models/plan_phase_minimum_adjustment.rbi +13 -3
  24. data/rbi/orb/models/plan_phase_percentage_discount_adjustment.rbi +13 -3
  25. data/rbi/orb/models/plan_phase_usage_discount_adjustment.rbi +10 -0
  26. data/rbi/orb/models/price.rbi +280 -0
  27. data/sig/orb/models/monetary_amount_discount_adjustment.rbs +8 -3
  28. data/sig/orb/models/monetary_maximum_adjustment.rbs +8 -3
  29. data/sig/orb/models/monetary_minimum_adjustment.rbs +8 -3
  30. data/sig/orb/models/monetary_percentage_discount_adjustment.rbs +8 -3
  31. data/sig/orb/models/monetary_usage_discount_adjustment.rbs +5 -0
  32. data/sig/orb/models/plan_phase_amount_discount_adjustment.rbs +8 -3
  33. data/sig/orb/models/plan_phase_maximum_adjustment.rbs +8 -3
  34. data/sig/orb/models/plan_phase_minimum_adjustment.rbs +8 -3
  35. data/sig/orb/models/plan_phase_percentage_discount_adjustment.rbs +8 -3
  36. data/sig/orb/models/plan_phase_usage_discount_adjustment.rbs +5 -0
  37. data/sig/orb/models/price.rbs +140 -0
  38. metadata +2 -2
@@ -9,7 +9,8 @@ module Orb
9
9
  applies_to_price_ids: ::Array[String],
10
10
  filters: ::Array[Orb::TransformPriceFilter],
11
11
  is_invoice_level: bool,
12
- reason: String?
12
+ reason: String?,
13
+ replaces_adjustment_id: String?
13
14
  }
14
15
 
15
16
  class MonetaryAmountDiscountAdjustment < Orb::Internal::Type::BaseModel
@@ -29,6 +30,8 @@ module Orb
29
30
 
30
31
  attr_accessor reason: String?
31
32
 
33
+ attr_accessor replaces_adjustment_id: String?
34
+
32
35
  def initialize: (
33
36
  id: String,
34
37
  adjustment_type: Orb::Models::MonetaryAmountDiscountAdjustment::adjustment_type,
@@ -37,7 +40,8 @@ module Orb
37
40
  applies_to_price_ids: ::Array[String],
38
41
  filters: ::Array[Orb::TransformPriceFilter],
39
42
  is_invoice_level: bool,
40
- reason: String?
43
+ reason: String?,
44
+ replaces_adjustment_id: String?
41
45
  ) -> void
42
46
 
43
47
  def to_hash: -> {
@@ -48,7 +52,8 @@ module Orb
48
52
  applies_to_price_ids: ::Array[String],
49
53
  filters: ::Array[Orb::TransformPriceFilter],
50
54
  is_invoice_level: bool,
51
- reason: String?
55
+ reason: String?,
56
+ replaces_adjustment_id: String?
52
57
  }
53
58
 
54
59
  type adjustment_type = :amount_discount
@@ -9,7 +9,8 @@ module Orb
9
9
  filters: ::Array[Orb::TransformPriceFilter],
10
10
  is_invoice_level: bool,
11
11
  maximum_amount: String,
12
- reason: String?
12
+ reason: String?,
13
+ replaces_adjustment_id: String?
13
14
  }
14
15
 
15
16
  class MonetaryMaximumAdjustment < Orb::Internal::Type::BaseModel
@@ -29,6 +30,8 @@ module Orb
29
30
 
30
31
  attr_accessor reason: String?
31
32
 
33
+ attr_accessor replaces_adjustment_id: String?
34
+
32
35
  def initialize: (
33
36
  id: String,
34
37
  adjustment_type: Orb::Models::MonetaryMaximumAdjustment::adjustment_type,
@@ -37,7 +40,8 @@ module Orb
37
40
  filters: ::Array[Orb::TransformPriceFilter],
38
41
  is_invoice_level: bool,
39
42
  maximum_amount: String,
40
- reason: String?
43
+ reason: String?,
44
+ replaces_adjustment_id: String?
41
45
  ) -> void
42
46
 
43
47
  def to_hash: -> {
@@ -48,7 +52,8 @@ module Orb
48
52
  filters: ::Array[Orb::TransformPriceFilter],
49
53
  is_invoice_level: bool,
50
54
  maximum_amount: String,
51
- reason: String?
55
+ reason: String?,
56
+ replaces_adjustment_id: String?
52
57
  }
53
58
 
54
59
  type adjustment_type = :maximum
@@ -10,7 +10,8 @@ module Orb
10
10
  is_invoice_level: bool,
11
11
  item_id: String,
12
12
  minimum_amount: String,
13
- reason: String?
13
+ reason: String?,
14
+ replaces_adjustment_id: String?
14
15
  }
15
16
 
16
17
  class MonetaryMinimumAdjustment < Orb::Internal::Type::BaseModel
@@ -32,6 +33,8 @@ module Orb
32
33
 
33
34
  attr_accessor reason: String?
34
35
 
36
+ attr_accessor replaces_adjustment_id: String?
37
+
35
38
  def initialize: (
36
39
  id: String,
37
40
  adjustment_type: Orb::Models::MonetaryMinimumAdjustment::adjustment_type,
@@ -41,7 +44,8 @@ module Orb
41
44
  is_invoice_level: bool,
42
45
  item_id: String,
43
46
  minimum_amount: String,
44
- reason: String?
47
+ reason: String?,
48
+ replaces_adjustment_id: String?
45
49
  ) -> void
46
50
 
47
51
  def to_hash: -> {
@@ -53,7 +57,8 @@ module Orb
53
57
  is_invoice_level: bool,
54
58
  item_id: String,
55
59
  minimum_amount: String,
56
- reason: String?
60
+ reason: String?,
61
+ replaces_adjustment_id: String?
57
62
  }
58
63
 
59
64
  type adjustment_type = :minimum
@@ -9,7 +9,8 @@ module Orb
9
9
  filters: ::Array[Orb::TransformPriceFilter],
10
10
  is_invoice_level: bool,
11
11
  percentage_discount: Float,
12
- reason: String?
12
+ reason: String?,
13
+ replaces_adjustment_id: String?
13
14
  }
14
15
 
15
16
  class MonetaryPercentageDiscountAdjustment < Orb::Internal::Type::BaseModel
@@ -29,6 +30,8 @@ module Orb
29
30
 
30
31
  attr_accessor reason: String?
31
32
 
33
+ attr_accessor replaces_adjustment_id: String?
34
+
32
35
  def initialize: (
33
36
  id: String,
34
37
  adjustment_type: Orb::Models::MonetaryPercentageDiscountAdjustment::adjustment_type,
@@ -37,7 +40,8 @@ module Orb
37
40
  filters: ::Array[Orb::TransformPriceFilter],
38
41
  is_invoice_level: bool,
39
42
  percentage_discount: Float,
40
- reason: String?
43
+ reason: String?,
44
+ replaces_adjustment_id: String?
41
45
  ) -> void
42
46
 
43
47
  def to_hash: -> {
@@ -48,7 +52,8 @@ module Orb
48
52
  filters: ::Array[Orb::TransformPriceFilter],
49
53
  is_invoice_level: bool,
50
54
  percentage_discount: Float,
51
- reason: String?
55
+ reason: String?,
56
+ replaces_adjustment_id: String?
52
57
  }
53
58
 
54
59
  type adjustment_type = :percentage_discount
@@ -9,6 +9,7 @@ module Orb
9
9
  filters: ::Array[Orb::TransformPriceFilter],
10
10
  is_invoice_level: bool,
11
11
  reason: String?,
12
+ replaces_adjustment_id: String?,
12
13
  usage_discount: Float
13
14
  }
14
15
 
@@ -27,6 +28,8 @@ module Orb
27
28
 
28
29
  attr_accessor reason: String?
29
30
 
31
+ attr_accessor replaces_adjustment_id: String?
32
+
30
33
  attr_accessor usage_discount: Float
31
34
 
32
35
  def initialize: (
@@ -37,6 +40,7 @@ module Orb
37
40
  filters: ::Array[Orb::TransformPriceFilter],
38
41
  is_invoice_level: bool,
39
42
  reason: String?,
43
+ replaces_adjustment_id: String?,
40
44
  usage_discount: Float
41
45
  ) -> void
42
46
 
@@ -48,6 +52,7 @@ module Orb
48
52
  filters: ::Array[Orb::TransformPriceFilter],
49
53
  is_invoice_level: bool,
50
54
  reason: String?,
55
+ replaces_adjustment_id: String?,
51
56
  usage_discount: Float
52
57
  }
53
58
 
@@ -9,7 +9,8 @@ module Orb
9
9
  filters: ::Array[Orb::TransformPriceFilter],
10
10
  is_invoice_level: bool,
11
11
  plan_phase_order: Integer?,
12
- reason: String?
12
+ reason: String?,
13
+ replaces_adjustment_id: String?
13
14
  }
14
15
 
15
16
  class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel
@@ -29,6 +30,8 @@ module Orb
29
30
 
30
31
  attr_accessor reason: String?
31
32
 
33
+ attr_accessor replaces_adjustment_id: String?
34
+
32
35
  def initialize: (
33
36
  id: String,
34
37
  adjustment_type: Orb::Models::PlanPhaseAmountDiscountAdjustment::adjustment_type,
@@ -37,7 +40,8 @@ module Orb
37
40
  filters: ::Array[Orb::TransformPriceFilter],
38
41
  is_invoice_level: bool,
39
42
  plan_phase_order: Integer?,
40
- reason: String?
43
+ reason: String?,
44
+ replaces_adjustment_id: String?
41
45
  ) -> void
42
46
 
43
47
  def to_hash: -> {
@@ -48,7 +52,8 @@ module Orb
48
52
  filters: ::Array[Orb::TransformPriceFilter],
49
53
  is_invoice_level: bool,
50
54
  plan_phase_order: Integer?,
51
- reason: String?
55
+ reason: String?,
56
+ replaces_adjustment_id: String?
52
57
  }
53
58
 
54
59
  type adjustment_type = :amount_discount
@@ -9,7 +9,8 @@ module Orb
9
9
  is_invoice_level: bool,
10
10
  maximum_amount: String,
11
11
  plan_phase_order: Integer?,
12
- reason: String?
12
+ reason: String?,
13
+ replaces_adjustment_id: String?
13
14
  }
14
15
 
15
16
  class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel
@@ -29,6 +30,8 @@ module Orb
29
30
 
30
31
  attr_accessor reason: String?
31
32
 
33
+ attr_accessor replaces_adjustment_id: String?
34
+
32
35
  def initialize: (
33
36
  id: String,
34
37
  adjustment_type: Orb::Models::PlanPhaseMaximumAdjustment::adjustment_type,
@@ -37,7 +40,8 @@ module Orb
37
40
  is_invoice_level: bool,
38
41
  maximum_amount: String,
39
42
  plan_phase_order: Integer?,
40
- reason: String?
43
+ reason: String?,
44
+ replaces_adjustment_id: String?
41
45
  ) -> void
42
46
 
43
47
  def to_hash: -> {
@@ -48,7 +52,8 @@ module Orb
48
52
  is_invoice_level: bool,
49
53
  maximum_amount: String,
50
54
  plan_phase_order: Integer?,
51
- reason: String?
55
+ reason: String?,
56
+ replaces_adjustment_id: String?
52
57
  }
53
58
 
54
59
  type adjustment_type = :maximum
@@ -10,7 +10,8 @@ module Orb
10
10
  item_id: String,
11
11
  minimum_amount: String,
12
12
  plan_phase_order: Integer?,
13
- reason: String?
13
+ reason: String?,
14
+ replaces_adjustment_id: String?
14
15
  }
15
16
 
16
17
  class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel
@@ -32,6 +33,8 @@ module Orb
32
33
 
33
34
  attr_accessor reason: String?
34
35
 
36
+ attr_accessor replaces_adjustment_id: String?
37
+
35
38
  def initialize: (
36
39
  id: String,
37
40
  adjustment_type: Orb::Models::PlanPhaseMinimumAdjustment::adjustment_type,
@@ -41,7 +44,8 @@ module Orb
41
44
  item_id: String,
42
45
  minimum_amount: String,
43
46
  plan_phase_order: Integer?,
44
- reason: String?
47
+ reason: String?,
48
+ replaces_adjustment_id: String?
45
49
  ) -> void
46
50
 
47
51
  def to_hash: -> {
@@ -53,7 +57,8 @@ module Orb
53
57
  item_id: String,
54
58
  minimum_amount: String,
55
59
  plan_phase_order: Integer?,
56
- reason: String?
60
+ reason: String?,
61
+ replaces_adjustment_id: String?
57
62
  }
58
63
 
59
64
  type adjustment_type = :minimum
@@ -9,7 +9,8 @@ module Orb
9
9
  is_invoice_level: bool,
10
10
  percentage_discount: Float,
11
11
  plan_phase_order: Integer?,
12
- reason: String?
12
+ reason: String?,
13
+ replaces_adjustment_id: String?
13
14
  }
14
15
 
15
16
  class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel
@@ -29,6 +30,8 @@ module Orb
29
30
 
30
31
  attr_accessor reason: String?
31
32
 
33
+ attr_accessor replaces_adjustment_id: String?
34
+
32
35
  def initialize: (
33
36
  id: String,
34
37
  adjustment_type: Orb::Models::PlanPhasePercentageDiscountAdjustment::adjustment_type,
@@ -37,7 +40,8 @@ module Orb
37
40
  is_invoice_level: bool,
38
41
  percentage_discount: Float,
39
42
  plan_phase_order: Integer?,
40
- reason: String?
43
+ reason: String?,
44
+ replaces_adjustment_id: String?
41
45
  ) -> void
42
46
 
43
47
  def to_hash: -> {
@@ -48,7 +52,8 @@ module Orb
48
52
  is_invoice_level: bool,
49
53
  percentage_discount: Float,
50
54
  plan_phase_order: Integer?,
51
- reason: String?
55
+ reason: String?,
56
+ replaces_adjustment_id: String?
52
57
  }
53
58
 
54
59
  type adjustment_type = :percentage_discount
@@ -9,6 +9,7 @@ module Orb
9
9
  is_invoice_level: bool,
10
10
  plan_phase_order: Integer?,
11
11
  reason: String?,
12
+ replaces_adjustment_id: String?,
12
13
  usage_discount: Float
13
14
  }
14
15
 
@@ -27,6 +28,8 @@ module Orb
27
28
 
28
29
  attr_accessor reason: String?
29
30
 
31
+ attr_accessor replaces_adjustment_id: String?
32
+
30
33
  attr_accessor usage_discount: Float
31
34
 
32
35
  def initialize: (
@@ -37,6 +40,7 @@ module Orb
37
40
  is_invoice_level: bool,
38
41
  plan_phase_order: Integer?,
39
42
  reason: String?,
43
+ replaces_adjustment_id: String?,
40
44
  usage_discount: Float
41
45
  ) -> void
42
46
 
@@ -48,6 +52,7 @@ module Orb
48
52
  is_invoice_level: bool,
49
53
  plan_phase_order: Integer?,
50
54
  reason: String?,
55
+ replaces_adjustment_id: String?,
51
56
  usage_discount: Float
52
57
  }
53
58