orb-billing 1.15.0 → 1.17.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.
@@ -13,7 +13,8 @@ module Orb
13
13
  metadata: ::Hash[Symbol, String],
14
14
  per_unit_cost_basis: String?,
15
15
  status: Orb::Models::Customers::CreditListByExternalIDResponse::status,
16
- credit_allocation: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation?
16
+ credit_allocation: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation?,
17
+ credit_commitment: Orb::Models::Customers::CreditListByExternalIDResponse::CreditCommitment?
17
18
  }
18
19
 
19
20
  class CreditListByExternalIDResponse < Orb::Internal::Type::BaseModel
@@ -39,6 +40,8 @@ module Orb
39
40
 
40
41
  attr_accessor credit_allocation: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation?
41
42
 
43
+ attr_accessor credit_commitment: Orb::Models::Customers::CreditListByExternalIDResponse::CreditCommitment?
44
+
42
45
  def initialize: (
43
46
  id: String,
44
47
  balance: Float,
@@ -50,7 +53,8 @@ module Orb
50
53
  metadata: ::Hash[Symbol, String],
51
54
  per_unit_cost_basis: String?,
52
55
  status: Orb::Models::Customers::CreditListByExternalIDResponse::status,
53
- ?credit_allocation: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation?
56
+ ?credit_allocation: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation?,
57
+ ?credit_commitment: Orb::Models::Customers::CreditListByExternalIDResponse::CreditCommitment?
54
58
  ) -> void
55
59
 
56
60
  def to_hash: -> {
@@ -64,16 +68,18 @@ module Orb
64
68
  metadata: ::Hash[Symbol, String],
65
69
  per_unit_cost_basis: String?,
66
70
  status: Orb::Models::Customers::CreditListByExternalIDResponse::status,
67
- credit_allocation: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation?
71
+ credit_allocation: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation?,
72
+ credit_commitment: Orb::Models::Customers::CreditListByExternalIDResponse::CreditCommitment?
68
73
  }
69
74
 
70
- type credit_block_source = :allocation | :top_up | :manual
75
+ type credit_block_source = :allocation | :top_up | :commitment | :manual
71
76
 
72
77
  module CreditBlockSource
73
78
  extend Orb::Internal::Type::Enum
74
79
 
75
80
  ALLOCATION: :allocation
76
81
  TOP_UP: :top_up
82
+ COMMITMENT: :commitment
77
83
  MANUAL: :manual
78
84
 
79
85
  def self?.values: -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::credit_block_source]
@@ -236,6 +242,18 @@ module Orb
236
242
  end
237
243
  end
238
244
  end
245
+
246
+ type credit_commitment = { id: String, subscription_id: String? }
247
+
248
+ class CreditCommitment < Orb::Internal::Type::BaseModel
249
+ attr_accessor id: String
250
+
251
+ attr_accessor subscription_id: String?
252
+
253
+ def initialize: (id: String, ?subscription_id: String?) -> void
254
+
255
+ def to_hash: -> { id: String, subscription_id: String? }
256
+ end
239
257
  end
240
258
  end
241
259
  end
@@ -13,7 +13,8 @@ module Orb
13
13
  metadata: ::Hash[Symbol, String],
14
14
  per_unit_cost_basis: String?,
15
15
  status: Orb::Models::Customers::CreditListResponse::status,
16
- credit_allocation: Orb::Models::Customers::CreditListResponse::CreditAllocation?
16
+ credit_allocation: Orb::Models::Customers::CreditListResponse::CreditAllocation?,
17
+ credit_commitment: Orb::Models::Customers::CreditListResponse::CreditCommitment?
17
18
  }
18
19
 
19
20
  class CreditListResponse < Orb::Internal::Type::BaseModel
@@ -39,6 +40,8 @@ module Orb
39
40
 
40
41
  attr_accessor credit_allocation: Orb::Models::Customers::CreditListResponse::CreditAllocation?
41
42
 
43
+ attr_accessor credit_commitment: Orb::Models::Customers::CreditListResponse::CreditCommitment?
44
+
42
45
  def initialize: (
43
46
  id: String,
44
47
  balance: Float,
@@ -50,7 +53,8 @@ module Orb
50
53
  metadata: ::Hash[Symbol, String],
51
54
  per_unit_cost_basis: String?,
52
55
  status: Orb::Models::Customers::CreditListResponse::status,
53
- ?credit_allocation: Orb::Models::Customers::CreditListResponse::CreditAllocation?
56
+ ?credit_allocation: Orb::Models::Customers::CreditListResponse::CreditAllocation?,
57
+ ?credit_commitment: Orb::Models::Customers::CreditListResponse::CreditCommitment?
54
58
  ) -> void
55
59
 
56
60
  def to_hash: -> {
@@ -64,16 +68,18 @@ module Orb
64
68
  metadata: ::Hash[Symbol, String],
65
69
  per_unit_cost_basis: String?,
66
70
  status: Orb::Models::Customers::CreditListResponse::status,
67
- credit_allocation: Orb::Models::Customers::CreditListResponse::CreditAllocation?
71
+ credit_allocation: Orb::Models::Customers::CreditListResponse::CreditAllocation?,
72
+ credit_commitment: Orb::Models::Customers::CreditListResponse::CreditCommitment?
68
73
  }
69
74
 
70
- type credit_block_source = :allocation | :top_up | :manual
75
+ type credit_block_source = :allocation | :top_up | :commitment | :manual
71
76
 
72
77
  module CreditBlockSource
73
78
  extend Orb::Internal::Type::Enum
74
79
 
75
80
  ALLOCATION: :allocation
76
81
  TOP_UP: :top_up
82
+ COMMITMENT: :commitment
77
83
  MANUAL: :manual
78
84
 
79
85
  def self?.values: -> ::Array[Orb::Models::Customers::CreditListResponse::credit_block_source]
@@ -236,6 +242,18 @@ module Orb
236
242
  end
237
243
  end
238
244
  end
245
+
246
+ type credit_commitment = { id: String, subscription_id: String? }
247
+
248
+ class CreditCommitment < Orb::Internal::Type::BaseModel
249
+ attr_accessor id: String
250
+
251
+ attr_accessor subscription_id: String?
252
+
253
+ def initialize: (id: String, ?subscription_id: String?) -> void
254
+
255
+ def to_hash: -> { id: String, subscription_id: String? }
256
+ end
239
257
  end
240
258
  end
241
259
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orb-billing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orb