metronome-sdk 0.1.0.pre.alpha.4 → 0.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/README.md +1 -1
- data/lib/metronome_sdk/internal/cursor_page.rb +1 -1
- data/lib/metronome_sdk/internal/transport/base_client.rb +1 -1
- data/lib/metronome_sdk/models/commit.rb +81 -8
- data/lib/metronome_sdk/models/contract_without_amendments.rb +368 -2
- data/lib/metronome_sdk/models/credit.rb +67 -6
- data/lib/metronome_sdk/models/v1/alert_create_params.rb +9 -11
- data/lib/metronome_sdk/models/v1/contract_create_params.rb +399 -12
- data/lib/metronome_sdk/models/v1/contract_list_balances_params.rb +9 -1
- data/lib/metronome_sdk/models/v1/customers/commit_list_params.rb +9 -1
- data/lib/metronome_sdk/models/v1/customers/credit_list_params.rb +9 -1
- data/lib/metronome_sdk/models/v1/customers/customer_alert.rb +29 -1
- data/lib/metronome_sdk/models/v1/dashboard_get_embeddable_url_params.rb +2 -0
- data/lib/metronome_sdk/models/v2/contract_edit_commit_params.rb +2 -0
- data/lib/metronome_sdk/models/v2/contract_edit_credit_params.rb +2 -0
- data/lib/metronome_sdk/models/v2/contract_edit_params.rb +417 -18
- data/lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb +776 -12
- data/lib/metronome_sdk/models/v2/contract_list_response.rb +529 -22
- data/lib/metronome_sdk/models/v2/contract_retrieve_response.rb +529 -22
- data/lib/metronome_sdk/resources/v1/alerts.rb +2 -2
- data/lib/metronome_sdk/resources/v1/contracts.rb +3 -1
- data/lib/metronome_sdk/resources/v1/customers/commits.rb +3 -1
- data/lib/metronome_sdk/resources/v1/customers/credits.rb +3 -1
- data/lib/metronome_sdk/version.rb +1 -1
- data/rbi/metronome_sdk/internal/transport/base_client.rbi +1 -1
- data/rbi/metronome_sdk/models/commit.rbi +173 -15
- data/rbi/metronome_sdk/models/contract_without_amendments.rbi +888 -6
- data/rbi/metronome_sdk/models/credit.rbi +141 -12
- data/rbi/metronome_sdk/models/v1/alert_create_params.rbi +16 -18
- data/rbi/metronome_sdk/models/v1/contract_create_params.rbi +1160 -226
- data/rbi/metronome_sdk/models/v1/contract_list_balances_params.rbi +11 -0
- data/rbi/metronome_sdk/models/v1/customers/commit_list_params.rbi +11 -0
- data/rbi/metronome_sdk/models/v1/customers/credit_list_params.rbi +11 -0
- data/rbi/metronome_sdk/models/v1/customers/customer_alert.rbi +60 -0
- data/rbi/metronome_sdk/models/v1/dashboard_get_embeddable_url_params.rbi +10 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_commit_params.rbi +4 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_credit_params.rbi +4 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_params.rbi +1192 -234
- data/rbi/metronome_sdk/models/v2/contract_get_edit_history_response.rbi +2155 -87
- data/rbi/metronome_sdk/models/v2/contract_list_response.rbi +1260 -47
- data/rbi/metronome_sdk/models/v2/contract_retrieve_response.rbi +1260 -47
- data/rbi/metronome_sdk/resources/v1/alerts.rbi +5 -5
- data/rbi/metronome_sdk/resources/v1/contracts.rbi +3 -0
- data/rbi/metronome_sdk/resources/v1/customers/commits.rbi +3 -0
- data/rbi/metronome_sdk/resources/v1/customers/credits.rbi +3 -0
- data/rbi/metronome_sdk/resources/v2/contracts.rbi +4 -0
- data/sig/metronome_sdk/internal/transport/base_client.rbs +1 -1
- data/sig/metronome_sdk/models/commit.rbs +93 -15
- data/sig/metronome_sdk/models/contract_without_amendments.rbs +366 -6
- data/sig/metronome_sdk/models/credit.rbs +73 -9
- data/sig/metronome_sdk/models/v1/alert_create_params.rbs +9 -9
- data/sig/metronome_sdk/models/v1/contract_create_params.rbs +376 -3
- data/sig/metronome_sdk/models/v1/contract_list_balances_params.rbs +7 -0
- data/sig/metronome_sdk/models/v1/customers/commit_list_params.rbs +7 -0
- data/sig/metronome_sdk/models/v1/customers/credit_list_params.rbs +7 -0
- data/sig/metronome_sdk/models/v1/customers/customer_alert.rbs +21 -0
- data/sig/metronome_sdk/models/v1/dashboard_get_embeddable_url_params.rbs +4 -0
- data/sig/metronome_sdk/models/v2/contract_edit_params.rbs +376 -3
- data/sig/metronome_sdk/models/v2/contract_get_edit_history_response.rbs +858 -6
- data/sig/metronome_sdk/models/v2/contract_list_response.rbs +558 -30
- data/sig/metronome_sdk/models/v2/contract_retrieve_response.rbs +558 -30
- data/sig/metronome_sdk/resources/v1/alerts.rbs +1 -1
- data/sig/metronome_sdk/resources/v1/contracts.rbs +1 -0
- data/sig/metronome_sdk/resources/v1/customers/commits.rbs +1 -0
- data/sig/metronome_sdk/resources/v1/customers/credits.rbs +1 -0
- metadata +4 -4
@@ -9,7 +9,7 @@ module MetronomeSDK
|
|
9
9
|
#
|
10
10
|
# Create a new alert
|
11
11
|
#
|
12
|
-
# @overload create(alert_type:, name:, threshold:, billable_metric_id: nil, credit_grant_type_filters: nil, credit_type_id: nil, custom_field_filters: nil, customer_id: nil, evaluate_on_create: nil,
|
12
|
+
# @overload create(alert_type:, name:, threshold:, billable_metric_id: nil, credit_grant_type_filters: nil, credit_type_id: nil, custom_field_filters: nil, customer_id: nil, evaluate_on_create: nil, group_values: nil, invoice_types_filter: nil, plan_id: nil, uniqueness_key: nil, request_options: {})
|
13
13
|
#
|
14
14
|
# @param alert_type [Symbol, MetronomeSDK::Models::V1::AlertCreateParams::AlertType] Type of the alert
|
15
15
|
#
|
@@ -29,7 +29,7 @@ module MetronomeSDK
|
|
29
29
|
#
|
30
30
|
# @param evaluate_on_create [Boolean] If true, the alert will evaluate immediately on customers that already meet the
|
31
31
|
#
|
32
|
-
# @param
|
32
|
+
# @param group_values [Array<MetronomeSDK::Models::V1::AlertCreateParams::GroupValue>] Only present for `spend_threshold_reached` alerts. Scope alert to a specific gro
|
33
33
|
#
|
34
34
|
# @param invoice_types_filter [Array<String>] Only supported for invoice_total_reached alerts. A list of invoice types to eval
|
35
35
|
#
|
@@ -314,7 +314,7 @@ module MetronomeSDK
|
|
314
314
|
#
|
315
315
|
# List balances (commits and credits).
|
316
316
|
#
|
317
|
-
# @overload list_balances(customer_id:, id: nil, covering_date: nil, effective_before: nil, include_archived: nil, include_balance: nil, include_contract_balances: nil, include_ledgers: nil, next_page: nil, starting_at: nil, request_options: {})
|
317
|
+
# @overload list_balances(customer_id:, id: nil, covering_date: nil, effective_before: nil, include_archived: nil, include_balance: nil, include_contract_balances: nil, include_ledgers: nil, limit: nil, next_page: nil, starting_at: nil, request_options: {})
|
318
318
|
#
|
319
319
|
# @param customer_id [String]
|
320
320
|
#
|
@@ -332,6 +332,8 @@ module MetronomeSDK
|
|
332
332
|
#
|
333
333
|
# @param include_ledgers [Boolean] Include ledgers in the response. Setting this flag may cause the query to be slo
|
334
334
|
#
|
335
|
+
# @param limit [Integer] The maximum number of commits to return. Defaults to 25.
|
336
|
+
#
|
335
337
|
# @param next_page [String] The next page token from a previous response.
|
336
338
|
#
|
337
339
|
# @param starting_at [Time] Include only balances that have any access on or after the provided date
|
@@ -69,7 +69,7 @@ module MetronomeSDK
|
|
69
69
|
#
|
70
70
|
# List commits.
|
71
71
|
#
|
72
|
-
# @overload list(customer_id:, commit_id: nil, covering_date: nil, effective_before: nil, include_archived: nil, include_balance: nil, include_contract_commits: nil, include_ledgers: nil, next_page: nil, starting_at: nil, request_options: {})
|
72
|
+
# @overload list(customer_id:, commit_id: nil, covering_date: nil, effective_before: nil, include_archived: nil, include_balance: nil, include_contract_commits: nil, include_ledgers: nil, limit: nil, next_page: nil, starting_at: nil, request_options: {})
|
73
73
|
#
|
74
74
|
# @param customer_id [String]
|
75
75
|
#
|
@@ -87,6 +87,8 @@ module MetronomeSDK
|
|
87
87
|
#
|
88
88
|
# @param include_ledgers [Boolean] Include commit ledgers in the response. Setting this flag may cause the query to
|
89
89
|
#
|
90
|
+
# @param limit [Integer] The maximum number of commits to return. Defaults to 25.
|
91
|
+
#
|
90
92
|
# @param next_page [String] The next page token from a previous response.
|
91
93
|
#
|
92
94
|
# @param starting_at [Time] Include only commits that have any access on or after the provided date
|
@@ -63,7 +63,7 @@ module MetronomeSDK
|
|
63
63
|
#
|
64
64
|
# List credits.
|
65
65
|
#
|
66
|
-
# @overload list(customer_id:, covering_date: nil, credit_id: nil, effective_before: nil, include_archived: nil, include_balance: nil, include_contract_credits: nil, include_ledgers: nil, next_page: nil, starting_at: nil, request_options: {})
|
66
|
+
# @overload list(customer_id:, covering_date: nil, credit_id: nil, effective_before: nil, include_archived: nil, include_balance: nil, include_contract_credits: nil, include_ledgers: nil, limit: nil, next_page: nil, starting_at: nil, request_options: {})
|
67
67
|
#
|
68
68
|
# @param customer_id [String]
|
69
69
|
#
|
@@ -81,6 +81,8 @@ module MetronomeSDK
|
|
81
81
|
#
|
82
82
|
# @param include_ledgers [Boolean] Include credit ledgers in the response. Setting this flag may cause the query to
|
83
83
|
#
|
84
|
+
# @param limit [Integer] The maximum number of commits to return. Defaults to 25.
|
85
|
+
#
|
84
86
|
# @param next_page [String] The next page token from a previous response.
|
85
87
|
#
|
86
88
|
# @param starting_at [Time] Include only credits that have any access on or after the provided date
|
@@ -145,6 +145,7 @@ module MetronomeSDK
|
|
145
145
|
MetronomeSDK::Commit::Ledger::PrepaidCommitExpirationLedgerEntry::OrHash,
|
146
146
|
MetronomeSDK::Commit::Ledger::PrepaidCommitCanceledLedgerEntry::OrHash,
|
147
147
|
MetronomeSDK::Commit::Ledger::PrepaidCommitCreditedLedgerEntry::OrHash,
|
148
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::OrHash,
|
148
149
|
MetronomeSDK::Commit::Ledger::PostpaidCommitInitialBalanceLedgerEntry::OrHash,
|
149
150
|
MetronomeSDK::Commit::Ledger::PostpaidCommitAutomatedInvoiceDeductionLedgerEntry::OrHash,
|
150
151
|
MetronomeSDK::Commit::Ledger::PostpaidCommitRolloverLedgerEntry::OrHash,
|
@@ -259,6 +260,7 @@ module MetronomeSDK
|
|
259
260
|
MetronomeSDK::Commit::Ledger::PrepaidCommitExpirationLedgerEntry::OrHash,
|
260
261
|
MetronomeSDK::Commit::Ledger::PrepaidCommitCanceledLedgerEntry::OrHash,
|
261
262
|
MetronomeSDK::Commit::Ledger::PrepaidCommitCreditedLedgerEntry::OrHash,
|
263
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::OrHash,
|
262
264
|
MetronomeSDK::Commit::Ledger::PostpaidCommitInitialBalanceLedgerEntry::OrHash,
|
263
265
|
MetronomeSDK::Commit::Ledger::PostpaidCommitAutomatedInvoiceDeductionLedgerEntry::OrHash,
|
264
266
|
MetronomeSDK::Commit::Ledger::PostpaidCommitRolloverLedgerEntry::OrHash,
|
@@ -738,6 +740,7 @@ module MetronomeSDK
|
|
738
740
|
MetronomeSDK::Commit::Ledger::PrepaidCommitExpirationLedgerEntry,
|
739
741
|
MetronomeSDK::Commit::Ledger::PrepaidCommitCanceledLedgerEntry,
|
740
742
|
MetronomeSDK::Commit::Ledger::PrepaidCommitCreditedLedgerEntry,
|
743
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry,
|
741
744
|
MetronomeSDK::Commit::Ledger::PostpaidCommitInitialBalanceLedgerEntry,
|
742
745
|
MetronomeSDK::Commit::Ledger::PostpaidCommitAutomatedInvoiceDeductionLedgerEntry,
|
743
746
|
MetronomeSDK::Commit::Ledger::PostpaidCommitRolloverLedgerEntry,
|
@@ -857,6 +860,12 @@ module MetronomeSDK
|
|
857
860
|
end
|
858
861
|
attr_accessor :type
|
859
862
|
|
863
|
+
sig { returns(T.nilable(String)) }
|
864
|
+
attr_reader :contract_id
|
865
|
+
|
866
|
+
sig { params(contract_id: String).void }
|
867
|
+
attr_writer :contract_id
|
868
|
+
|
860
869
|
sig do
|
861
870
|
params(
|
862
871
|
amount: Float,
|
@@ -864,10 +873,18 @@ module MetronomeSDK
|
|
864
873
|
segment_id: String,
|
865
874
|
timestamp: Time,
|
866
875
|
type:
|
867
|
-
MetronomeSDK::Commit::Ledger::PrepaidCommitAutomatedInvoiceDeductionLedgerEntry::Type::OrSymbol
|
876
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitAutomatedInvoiceDeductionLedgerEntry::Type::OrSymbol,
|
877
|
+
contract_id: String
|
868
878
|
).returns(T.attached_class)
|
869
879
|
end
|
870
|
-
def self.new(
|
880
|
+
def self.new(
|
881
|
+
amount:,
|
882
|
+
invoice_id:,
|
883
|
+
segment_id:,
|
884
|
+
timestamp:,
|
885
|
+
type:,
|
886
|
+
contract_id: nil
|
887
|
+
)
|
871
888
|
end
|
872
889
|
|
873
890
|
sig do
|
@@ -878,7 +895,8 @@ module MetronomeSDK
|
|
878
895
|
segment_id: String,
|
879
896
|
timestamp: Time,
|
880
897
|
type:
|
881
|
-
MetronomeSDK::Commit::Ledger::PrepaidCommitAutomatedInvoiceDeductionLedgerEntry::Type::TaggedSymbol
|
898
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitAutomatedInvoiceDeductionLedgerEntry::Type::TaggedSymbol,
|
899
|
+
contract_id: String
|
882
900
|
}
|
883
901
|
)
|
884
902
|
end
|
@@ -1116,6 +1134,12 @@ module MetronomeSDK
|
|
1116
1134
|
end
|
1117
1135
|
attr_accessor :type
|
1118
1136
|
|
1137
|
+
sig { returns(T.nilable(String)) }
|
1138
|
+
attr_reader :contract_id
|
1139
|
+
|
1140
|
+
sig { params(contract_id: String).void }
|
1141
|
+
attr_writer :contract_id
|
1142
|
+
|
1119
1143
|
sig do
|
1120
1144
|
params(
|
1121
1145
|
amount: Float,
|
@@ -1123,10 +1147,18 @@ module MetronomeSDK
|
|
1123
1147
|
segment_id: String,
|
1124
1148
|
timestamp: Time,
|
1125
1149
|
type:
|
1126
|
-
MetronomeSDK::Commit::Ledger::PrepaidCommitCanceledLedgerEntry::Type::OrSymbol
|
1150
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitCanceledLedgerEntry::Type::OrSymbol,
|
1151
|
+
contract_id: String
|
1127
1152
|
).returns(T.attached_class)
|
1128
1153
|
end
|
1129
|
-
def self.new(
|
1154
|
+
def self.new(
|
1155
|
+
amount:,
|
1156
|
+
invoice_id:,
|
1157
|
+
segment_id:,
|
1158
|
+
timestamp:,
|
1159
|
+
type:,
|
1160
|
+
contract_id: nil
|
1161
|
+
)
|
1130
1162
|
end
|
1131
1163
|
|
1132
1164
|
sig do
|
@@ -1137,7 +1169,8 @@ module MetronomeSDK
|
|
1137
1169
|
segment_id: String,
|
1138
1170
|
timestamp: Time,
|
1139
1171
|
type:
|
1140
|
-
MetronomeSDK::Commit::Ledger::PrepaidCommitCanceledLedgerEntry::Type::TaggedSymbol
|
1172
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitCanceledLedgerEntry::Type::TaggedSymbol,
|
1173
|
+
contract_id: String
|
1141
1174
|
}
|
1142
1175
|
)
|
1143
1176
|
end
|
@@ -1202,6 +1235,12 @@ module MetronomeSDK
|
|
1202
1235
|
end
|
1203
1236
|
attr_accessor :type
|
1204
1237
|
|
1238
|
+
sig { returns(T.nilable(String)) }
|
1239
|
+
attr_reader :contract_id
|
1240
|
+
|
1241
|
+
sig { params(contract_id: String).void }
|
1242
|
+
attr_writer :contract_id
|
1243
|
+
|
1205
1244
|
sig do
|
1206
1245
|
params(
|
1207
1246
|
amount: Float,
|
@@ -1209,10 +1248,18 @@ module MetronomeSDK
|
|
1209
1248
|
segment_id: String,
|
1210
1249
|
timestamp: Time,
|
1211
1250
|
type:
|
1212
|
-
MetronomeSDK::Commit::Ledger::PrepaidCommitCreditedLedgerEntry::Type::OrSymbol
|
1251
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitCreditedLedgerEntry::Type::OrSymbol,
|
1252
|
+
contract_id: String
|
1213
1253
|
).returns(T.attached_class)
|
1214
1254
|
end
|
1215
|
-
def self.new(
|
1255
|
+
def self.new(
|
1256
|
+
amount:,
|
1257
|
+
invoice_id:,
|
1258
|
+
segment_id:,
|
1259
|
+
timestamp:,
|
1260
|
+
type:,
|
1261
|
+
contract_id: nil
|
1262
|
+
)
|
1216
1263
|
end
|
1217
1264
|
|
1218
1265
|
sig do
|
@@ -1223,7 +1270,8 @@ module MetronomeSDK
|
|
1223
1270
|
segment_id: String,
|
1224
1271
|
timestamp: Time,
|
1225
1272
|
type:
|
1226
|
-
MetronomeSDK::Commit::Ledger::PrepaidCommitCreditedLedgerEntry::Type::TaggedSymbol
|
1273
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitCreditedLedgerEntry::Type::TaggedSymbol,
|
1274
|
+
contract_id: String
|
1227
1275
|
}
|
1228
1276
|
)
|
1229
1277
|
end
|
@@ -1260,6 +1308,87 @@ module MetronomeSDK
|
|
1260
1308
|
end
|
1261
1309
|
end
|
1262
1310
|
|
1311
|
+
class PrepaidCommitSeatBasedAdjustmentLedgerEntry < MetronomeSDK::Internal::Type::BaseModel
|
1312
|
+
OrHash =
|
1313
|
+
T.type_alias do
|
1314
|
+
T.any(
|
1315
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry,
|
1316
|
+
MetronomeSDK::Internal::AnyHash
|
1317
|
+
)
|
1318
|
+
end
|
1319
|
+
|
1320
|
+
sig { returns(Float) }
|
1321
|
+
attr_accessor :amount
|
1322
|
+
|
1323
|
+
sig { returns(String) }
|
1324
|
+
attr_accessor :segment_id
|
1325
|
+
|
1326
|
+
sig { returns(Time) }
|
1327
|
+
attr_accessor :timestamp
|
1328
|
+
|
1329
|
+
sig do
|
1330
|
+
returns(
|
1331
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::Type::TaggedSymbol
|
1332
|
+
)
|
1333
|
+
end
|
1334
|
+
attr_accessor :type
|
1335
|
+
|
1336
|
+
sig do
|
1337
|
+
params(
|
1338
|
+
amount: Float,
|
1339
|
+
segment_id: String,
|
1340
|
+
timestamp: Time,
|
1341
|
+
type:
|
1342
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::Type::OrSymbol
|
1343
|
+
).returns(T.attached_class)
|
1344
|
+
end
|
1345
|
+
def self.new(amount:, segment_id:, timestamp:, type:)
|
1346
|
+
end
|
1347
|
+
|
1348
|
+
sig do
|
1349
|
+
override.returns(
|
1350
|
+
{
|
1351
|
+
amount: Float,
|
1352
|
+
segment_id: String,
|
1353
|
+
timestamp: Time,
|
1354
|
+
type:
|
1355
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::Type::TaggedSymbol
|
1356
|
+
}
|
1357
|
+
)
|
1358
|
+
end
|
1359
|
+
def to_hash
|
1360
|
+
end
|
1361
|
+
|
1362
|
+
module Type
|
1363
|
+
extend MetronomeSDK::Internal::Type::Enum
|
1364
|
+
|
1365
|
+
TaggedSymbol =
|
1366
|
+
T.type_alias do
|
1367
|
+
T.all(
|
1368
|
+
Symbol,
|
1369
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::Type
|
1370
|
+
)
|
1371
|
+
end
|
1372
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1373
|
+
|
1374
|
+
PREPAID_COMMIT_SEAT_BASED_ADJUSTMENT =
|
1375
|
+
T.let(
|
1376
|
+
:PREPAID_COMMIT_SEAT_BASED_ADJUSTMENT,
|
1377
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::Type::TaggedSymbol
|
1378
|
+
)
|
1379
|
+
|
1380
|
+
sig do
|
1381
|
+
override.returns(
|
1382
|
+
T::Array[
|
1383
|
+
MetronomeSDK::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::Type::TaggedSymbol
|
1384
|
+
]
|
1385
|
+
)
|
1386
|
+
end
|
1387
|
+
def self.values
|
1388
|
+
end
|
1389
|
+
end
|
1390
|
+
end
|
1391
|
+
|
1263
1392
|
class PostpaidCommitInitialBalanceLedgerEntry < MetronomeSDK::Internal::Type::BaseModel
|
1264
1393
|
OrHash =
|
1265
1394
|
T.type_alias do
|
@@ -1364,6 +1493,12 @@ module MetronomeSDK
|
|
1364
1493
|
end
|
1365
1494
|
attr_accessor :type
|
1366
1495
|
|
1496
|
+
sig { returns(T.nilable(String)) }
|
1497
|
+
attr_reader :contract_id
|
1498
|
+
|
1499
|
+
sig { params(contract_id: String).void }
|
1500
|
+
attr_writer :contract_id
|
1501
|
+
|
1367
1502
|
sig do
|
1368
1503
|
params(
|
1369
1504
|
amount: Float,
|
@@ -1371,10 +1506,18 @@ module MetronomeSDK
|
|
1371
1506
|
segment_id: String,
|
1372
1507
|
timestamp: Time,
|
1373
1508
|
type:
|
1374
|
-
MetronomeSDK::Commit::Ledger::PostpaidCommitAutomatedInvoiceDeductionLedgerEntry::Type::OrSymbol
|
1509
|
+
MetronomeSDK::Commit::Ledger::PostpaidCommitAutomatedInvoiceDeductionLedgerEntry::Type::OrSymbol,
|
1510
|
+
contract_id: String
|
1375
1511
|
).returns(T.attached_class)
|
1376
1512
|
end
|
1377
|
-
def self.new(
|
1513
|
+
def self.new(
|
1514
|
+
amount:,
|
1515
|
+
invoice_id:,
|
1516
|
+
segment_id:,
|
1517
|
+
timestamp:,
|
1518
|
+
type:,
|
1519
|
+
contract_id: nil
|
1520
|
+
)
|
1378
1521
|
end
|
1379
1522
|
|
1380
1523
|
sig do
|
@@ -1385,7 +1528,8 @@ module MetronomeSDK
|
|
1385
1528
|
segment_id: String,
|
1386
1529
|
timestamp: Time,
|
1387
1530
|
type:
|
1388
|
-
MetronomeSDK::Commit::Ledger::PostpaidCommitAutomatedInvoiceDeductionLedgerEntry::Type::TaggedSymbol
|
1531
|
+
MetronomeSDK::Commit::Ledger::PostpaidCommitAutomatedInvoiceDeductionLedgerEntry::Type::TaggedSymbol,
|
1532
|
+
contract_id: String
|
1389
1533
|
}
|
1390
1534
|
)
|
1391
1535
|
end
|
@@ -1539,16 +1683,29 @@ module MetronomeSDK
|
|
1539
1683
|
end
|
1540
1684
|
attr_accessor :type
|
1541
1685
|
|
1686
|
+
sig { returns(T.nilable(String)) }
|
1687
|
+
attr_reader :contract_id
|
1688
|
+
|
1689
|
+
sig { params(contract_id: String).void }
|
1690
|
+
attr_writer :contract_id
|
1691
|
+
|
1542
1692
|
sig do
|
1543
1693
|
params(
|
1544
1694
|
amount: Float,
|
1545
1695
|
invoice_id: String,
|
1546
1696
|
timestamp: Time,
|
1547
1697
|
type:
|
1548
|
-
MetronomeSDK::Commit::Ledger::PostpaidCommitTrueupLedgerEntry::Type::OrSymbol
|
1698
|
+
MetronomeSDK::Commit::Ledger::PostpaidCommitTrueupLedgerEntry::Type::OrSymbol,
|
1699
|
+
contract_id: String
|
1549
1700
|
).returns(T.attached_class)
|
1550
1701
|
end
|
1551
|
-
def self.new(
|
1702
|
+
def self.new(
|
1703
|
+
amount:,
|
1704
|
+
invoice_id:,
|
1705
|
+
timestamp:,
|
1706
|
+
type:,
|
1707
|
+
contract_id: nil
|
1708
|
+
)
|
1552
1709
|
end
|
1553
1710
|
|
1554
1711
|
sig do
|
@@ -1558,7 +1715,8 @@ module MetronomeSDK
|
|
1558
1715
|
invoice_id: String,
|
1559
1716
|
timestamp: Time,
|
1560
1717
|
type:
|
1561
|
-
MetronomeSDK::Commit::Ledger::PostpaidCommitTrueupLedgerEntry::Type::TaggedSymbol
|
1718
|
+
MetronomeSDK::Commit::Ledger::PostpaidCommitTrueupLedgerEntry::Type::TaggedSymbol,
|
1719
|
+
contract_id: String
|
1562
1720
|
}
|
1563
1721
|
)
|
1564
1722
|
end
|