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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/README.md +1 -1
- data/lib/orb/models/billable_metric.rb +10 -1
- data/lib/orb/models/credit_block_list_invoices_response.rb +40 -3
- data/lib/orb/models/credit_block_retrieve_response.rb +38 -3
- data/lib/orb/models/customers/credit_list_by_external_id_response.rb +40 -3
- data/lib/orb/models/customers/credit_list_response.rb +40 -3
- data/lib/orb/models/event_ingest_response.rb +4 -6
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/billable_metric.rbi +10 -0
- data/rbi/orb/models/credit_block_list_invoices_response.rbi +83 -4
- data/rbi/orb/models/credit_block_retrieve_response.rbi +81 -4
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +83 -4
- data/rbi/orb/models/customers/credit_list_response.rbi +83 -4
- data/rbi/orb/models/event_ingest_response.rbi +0 -6
- data/sig/orb/models/billable_metric.rbs +5 -0
- data/sig/orb/models/credit_block_list_invoices_response.rbs +22 -4
- data/sig/orb/models/credit_block_retrieve_response.rbs +22 -4
- data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +22 -4
- data/sig/orb/models/customers/credit_list_response.rbs +22 -4
- metadata +1 -1
|
@@ -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
|