metronome-sdk 0.1.0.pre.alpha.4 → 0.1.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 +16 -0
- data/README.md +1 -1
- data/lib/metronome_sdk/internal/cursor_page.rb +1 -1
- data/lib/metronome_sdk/models/commit.rb +46 -3
- data/lib/metronome_sdk/models/contract_without_amendments.rb +242 -2
- data/lib/metronome_sdk/models/credit.rb +46 -3
- data/lib/metronome_sdk/models/v1/contract_create_params.rb +242 -2
- 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/v2/contract_edit_params.rb +242 -2
- data/lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb +214 -6
- data/lib/metronome_sdk/models/v2/contract_list_response.rb +343 -13
- data/lib/metronome_sdk/models/v2/contract_retrieve_response.rb +343 -13
- 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/models/commit.rbi +84 -0
- data/rbi/metronome_sdk/models/contract_without_amendments.rbi +584 -0
- data/rbi/metronome_sdk/models/credit.rbi +87 -3
- data/rbi/metronome_sdk/models/v1/contract_create_params.rbi +747 -147
- 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/v2/contract_edit_params.rbi +747 -147
- data/rbi/metronome_sdk/models/v2/contract_get_edit_history_response.rbi +584 -6
- data/rbi/metronome_sdk/models/v2/contract_list_response.rbi +867 -48
- data/rbi/metronome_sdk/models/v2/contract_retrieve_response.rbi +867 -48
- 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/sig/metronome_sdk/models/commit.rbs +43 -0
- data/sig/metronome_sdk/models/contract_without_amendments.rbs +246 -0
- data/sig/metronome_sdk/models/credit.rbs +43 -0
- data/sig/metronome_sdk/models/v1/contract_create_params.rbs +246 -0
- 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/v2/contract_edit_params.rbs +246 -0
- data/sig/metronome_sdk/models/v2/contract_get_edit_history_response.rbs +246 -0
- data/sig/metronome_sdk/models/v2/contract_list_response.rbs +353 -0
- data/sig/metronome_sdk/models/v2/contract_retrieve_response.rbs +353 -0
- 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
@@ -355,6 +355,7 @@ module MetronomeSDK
|
|
355
355
|
include_balance: T::Boolean,
|
356
356
|
include_contract_balances: T::Boolean,
|
357
357
|
include_ledgers: T::Boolean,
|
358
|
+
limit: Integer,
|
358
359
|
next_page: String,
|
359
360
|
starting_at: Time,
|
360
361
|
request_options: MetronomeSDK::RequestOptions::OrHash
|
@@ -377,6 +378,8 @@ module MetronomeSDK
|
|
377
378
|
# Include ledgers in the response. Setting this flag may cause the query to be
|
378
379
|
# slower.
|
379
380
|
include_ledgers: nil,
|
381
|
+
# The maximum number of commits to return. Defaults to 25.
|
382
|
+
limit: nil,
|
380
383
|
# The next page token from a previous response.
|
381
384
|
next_page: nil,
|
382
385
|
# Include only balances that have any access on or after the provided date
|
@@ -103,6 +103,7 @@ module MetronomeSDK
|
|
103
103
|
include_balance: T::Boolean,
|
104
104
|
include_contract_commits: T::Boolean,
|
105
105
|
include_ledgers: T::Boolean,
|
106
|
+
limit: Integer,
|
106
107
|
next_page: String,
|
107
108
|
starting_at: Time,
|
108
109
|
request_options: MetronomeSDK::RequestOptions::OrHash
|
@@ -125,6 +126,8 @@ module MetronomeSDK
|
|
125
126
|
# Include commit ledgers in the response. Setting this flag may cause the query to
|
126
127
|
# be slower.
|
127
128
|
include_ledgers: nil,
|
129
|
+
# The maximum number of commits to return. Defaults to 25.
|
130
|
+
limit: nil,
|
128
131
|
# The next page token from a previous response.
|
129
132
|
next_page: nil,
|
130
133
|
# Include only commits that have any access on or after the provided date
|
@@ -83,6 +83,7 @@ module MetronomeSDK
|
|
83
83
|
include_balance: T::Boolean,
|
84
84
|
include_contract_credits: T::Boolean,
|
85
85
|
include_ledgers: T::Boolean,
|
86
|
+
limit: Integer,
|
86
87
|
next_page: String,
|
87
88
|
starting_at: Time,
|
88
89
|
request_options: MetronomeSDK::RequestOptions::OrHash
|
@@ -105,6 +106,8 @@ module MetronomeSDK
|
|
105
106
|
# Include credit ledgers in the response. Setting this flag may cause the query to
|
106
107
|
# be slower.
|
107
108
|
include_ledgers: nil,
|
109
|
+
# The maximum number of commits to return. Defaults to 25.
|
110
|
+
limit: nil,
|
108
111
|
# The next page token from a previous response.
|
109
112
|
next_page: nil,
|
110
113
|
# Include only credits that have any access on or after the provided date
|
@@ -369,6 +369,7 @@ module MetronomeSDK
|
|
369
369
|
| MetronomeSDK::Commit::Ledger::PrepaidCommitExpirationLedgerEntry
|
370
370
|
| MetronomeSDK::Commit::Ledger::PrepaidCommitCanceledLedgerEntry
|
371
371
|
| MetronomeSDK::Commit::Ledger::PrepaidCommitCreditedLedgerEntry
|
372
|
+
| MetronomeSDK::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry
|
372
373
|
| MetronomeSDK::Commit::Ledger::PostpaidCommitInitialBalanceLedgerEntry
|
373
374
|
| MetronomeSDK::Commit::Ledger::PostpaidCommitAutomatedInvoiceDeductionLedgerEntry
|
374
375
|
| MetronomeSDK::Commit::Ledger::PostpaidCommitRolloverLedgerEntry
|
@@ -652,6 +653,48 @@ module MetronomeSDK
|
|
652
653
|
end
|
653
654
|
end
|
654
655
|
|
656
|
+
type prepaid_commit_seat_based_adjustment_ledger_entry =
|
657
|
+
{
|
658
|
+
amount: Float,
|
659
|
+
segment_id: String,
|
660
|
+
timestamp: Time,
|
661
|
+
type: MetronomeSDK::Models::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::type_
|
662
|
+
}
|
663
|
+
|
664
|
+
class PrepaidCommitSeatBasedAdjustmentLedgerEntry < MetronomeSDK::Internal::Type::BaseModel
|
665
|
+
attr_accessor amount: Float
|
666
|
+
|
667
|
+
attr_accessor segment_id: String
|
668
|
+
|
669
|
+
attr_accessor timestamp: Time
|
670
|
+
|
671
|
+
attr_accessor type: MetronomeSDK::Models::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::type_
|
672
|
+
|
673
|
+
def initialize: (
|
674
|
+
amount: Float,
|
675
|
+
segment_id: String,
|
676
|
+
timestamp: Time,
|
677
|
+
type: MetronomeSDK::Models::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::type_
|
678
|
+
) -> void
|
679
|
+
|
680
|
+
def to_hash: -> {
|
681
|
+
amount: Float,
|
682
|
+
segment_id: String,
|
683
|
+
timestamp: Time,
|
684
|
+
type: MetronomeSDK::Models::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::type_
|
685
|
+
}
|
686
|
+
|
687
|
+
type type_ = :PREPAID_COMMIT_SEAT_BASED_ADJUSTMENT
|
688
|
+
|
689
|
+
module Type
|
690
|
+
extend MetronomeSDK::Internal::Type::Enum
|
691
|
+
|
692
|
+
PREPAID_COMMIT_SEAT_BASED_ADJUSTMENT: :PREPAID_COMMIT_SEAT_BASED_ADJUSTMENT
|
693
|
+
|
694
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::type_]
|
695
|
+
end
|
696
|
+
end
|
697
|
+
|
655
698
|
type postpaid_commit_initial_balance_ledger_entry =
|
656
699
|
{
|
657
700
|
amount: Float,
|
@@ -617,6 +617,7 @@ module MetronomeSDK
|
|
617
617
|
contract: MetronomeSDK::ContractWithoutAmendments::RecurringCommit::Contract,
|
618
618
|
description: String,
|
619
619
|
ending_before: Time,
|
620
|
+
hierarchy_configuration: MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration,
|
620
621
|
invoice_amount: MetronomeSDK::ContractWithoutAmendments::RecurringCommit::InvoiceAmount,
|
621
622
|
name: String,
|
622
623
|
netsuite_sales_order_id: String,
|
@@ -663,6 +664,12 @@ module MetronomeSDK
|
|
663
664
|
|
664
665
|
def ending_before=: (Time) -> Time
|
665
666
|
|
667
|
+
attr_reader hierarchy_configuration: MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration?
|
668
|
+
|
669
|
+
def hierarchy_configuration=: (
|
670
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration
|
671
|
+
) -> MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration
|
672
|
+
|
666
673
|
attr_reader invoice_amount: MetronomeSDK::ContractWithoutAmendments::RecurringCommit::InvoiceAmount?
|
667
674
|
|
668
675
|
def invoice_amount=: (
|
@@ -712,6 +719,7 @@ module MetronomeSDK
|
|
712
719
|
?contract: MetronomeSDK::ContractWithoutAmendments::RecurringCommit::Contract,
|
713
720
|
?description: String,
|
714
721
|
?ending_before: Time,
|
722
|
+
?hierarchy_configuration: MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration,
|
715
723
|
?invoice_amount: MetronomeSDK::ContractWithoutAmendments::RecurringCommit::InvoiceAmount,
|
716
724
|
?name: String,
|
717
725
|
?netsuite_sales_order_id: String,
|
@@ -734,6 +742,7 @@ module MetronomeSDK
|
|
734
742
|
contract: MetronomeSDK::ContractWithoutAmendments::RecurringCommit::Contract,
|
735
743
|
description: String,
|
736
744
|
ending_before: Time,
|
745
|
+
hierarchy_configuration: MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration,
|
737
746
|
invoice_amount: MetronomeSDK::ContractWithoutAmendments::RecurringCommit::InvoiceAmount,
|
738
747
|
name: String,
|
739
748
|
netsuite_sales_order_id: String,
|
@@ -837,6 +846,120 @@ module MetronomeSDK
|
|
837
846
|
def to_hash: -> { id: String }
|
838
847
|
end
|
839
848
|
|
849
|
+
type hierarchy_configuration =
|
850
|
+
{
|
851
|
+
child_access: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::child_access
|
852
|
+
}
|
853
|
+
|
854
|
+
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
855
|
+
attr_accessor child_access: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::child_access
|
856
|
+
|
857
|
+
def initialize: (
|
858
|
+
child_access: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::child_access
|
859
|
+
) -> void
|
860
|
+
|
861
|
+
def to_hash: -> {
|
862
|
+
child_access: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::child_access
|
863
|
+
}
|
864
|
+
|
865
|
+
type child_access =
|
866
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
867
|
+
| MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
868
|
+
| MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
869
|
+
|
870
|
+
module ChildAccess
|
871
|
+
extend MetronomeSDK::Internal::Type::Union
|
872
|
+
|
873
|
+
type commit_hierarchy_child_access_all =
|
874
|
+
{
|
875
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
876
|
+
}
|
877
|
+
|
878
|
+
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
879
|
+
attr_accessor type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
880
|
+
|
881
|
+
def initialize: (
|
882
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
883
|
+
) -> void
|
884
|
+
|
885
|
+
def to_hash: -> {
|
886
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
887
|
+
}
|
888
|
+
|
889
|
+
type type_ = :ALL
|
890
|
+
|
891
|
+
module Type
|
892
|
+
extend MetronomeSDK::Internal::Type::Enum
|
893
|
+
|
894
|
+
ALL: :ALL
|
895
|
+
|
896
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
897
|
+
end
|
898
|
+
end
|
899
|
+
|
900
|
+
type commit_hierarchy_child_access_none =
|
901
|
+
{
|
902
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
903
|
+
}
|
904
|
+
|
905
|
+
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
906
|
+
attr_accessor type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
907
|
+
|
908
|
+
def initialize: (
|
909
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
910
|
+
) -> void
|
911
|
+
|
912
|
+
def to_hash: -> {
|
913
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
914
|
+
}
|
915
|
+
|
916
|
+
type type_ = :NONE
|
917
|
+
|
918
|
+
module Type
|
919
|
+
extend MetronomeSDK::Internal::Type::Enum
|
920
|
+
|
921
|
+
NONE: :NONE
|
922
|
+
|
923
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
924
|
+
end
|
925
|
+
end
|
926
|
+
|
927
|
+
type commit_hierarchy_child_access_contract_ids =
|
928
|
+
{
|
929
|
+
contract_ids: ::Array[String],
|
930
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
931
|
+
}
|
932
|
+
|
933
|
+
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
934
|
+
attr_accessor contract_ids: ::Array[String]
|
935
|
+
|
936
|
+
attr_accessor type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
937
|
+
|
938
|
+
def initialize: (
|
939
|
+
contract_ids: ::Array[String],
|
940
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
941
|
+
) -> void
|
942
|
+
|
943
|
+
def to_hash: -> {
|
944
|
+
contract_ids: ::Array[String],
|
945
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
946
|
+
}
|
947
|
+
|
948
|
+
type type_ = :CONTRACT_IDS
|
949
|
+
|
950
|
+
module Type
|
951
|
+
extend MetronomeSDK::Internal::Type::Enum
|
952
|
+
|
953
|
+
CONTRACT_IDS: :CONTRACT_IDS
|
954
|
+
|
955
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
956
|
+
end
|
957
|
+
end
|
958
|
+
|
959
|
+
def self?.variants: -> ::Array[MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::child_access]
|
960
|
+
end
|
961
|
+
end
|
962
|
+
|
840
963
|
type invoice_amount =
|
841
964
|
{ credit_type_id: String, quantity: Float, unit_price: Float }
|
842
965
|
|
@@ -945,6 +1068,7 @@ module MetronomeSDK
|
|
945
1068
|
contract: MetronomeSDK::ContractWithoutAmendments::RecurringCredit::Contract,
|
946
1069
|
description: String,
|
947
1070
|
ending_before: Time,
|
1071
|
+
hierarchy_configuration: MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration,
|
948
1072
|
name: String,
|
949
1073
|
netsuite_sales_order_id: String,
|
950
1074
|
proration: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::proration,
|
@@ -990,6 +1114,12 @@ module MetronomeSDK
|
|
990
1114
|
|
991
1115
|
def ending_before=: (Time) -> Time
|
992
1116
|
|
1117
|
+
attr_reader hierarchy_configuration: MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration?
|
1118
|
+
|
1119
|
+
def hierarchy_configuration=: (
|
1120
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration
|
1121
|
+
) -> MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration
|
1122
|
+
|
993
1123
|
attr_reader name: String?
|
994
1124
|
|
995
1125
|
def name=: (String) -> String
|
@@ -1033,6 +1163,7 @@ module MetronomeSDK
|
|
1033
1163
|
?contract: MetronomeSDK::ContractWithoutAmendments::RecurringCredit::Contract,
|
1034
1164
|
?description: String,
|
1035
1165
|
?ending_before: Time,
|
1166
|
+
?hierarchy_configuration: MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration,
|
1036
1167
|
?name: String,
|
1037
1168
|
?netsuite_sales_order_id: String,
|
1038
1169
|
?proration: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::proration,
|
@@ -1054,6 +1185,7 @@ module MetronomeSDK
|
|
1054
1185
|
contract: MetronomeSDK::ContractWithoutAmendments::RecurringCredit::Contract,
|
1055
1186
|
description: String,
|
1056
1187
|
ending_before: Time,
|
1188
|
+
hierarchy_configuration: MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration,
|
1057
1189
|
name: String,
|
1058
1190
|
netsuite_sales_order_id: String,
|
1059
1191
|
proration: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::proration,
|
@@ -1156,6 +1288,120 @@ module MetronomeSDK
|
|
1156
1288
|
def to_hash: -> { id: String }
|
1157
1289
|
end
|
1158
1290
|
|
1291
|
+
type hierarchy_configuration =
|
1292
|
+
{
|
1293
|
+
child_access: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::child_access
|
1294
|
+
}
|
1295
|
+
|
1296
|
+
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
1297
|
+
attr_accessor child_access: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::child_access
|
1298
|
+
|
1299
|
+
def initialize: (
|
1300
|
+
child_access: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::child_access
|
1301
|
+
) -> void
|
1302
|
+
|
1303
|
+
def to_hash: -> {
|
1304
|
+
child_access: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::child_access
|
1305
|
+
}
|
1306
|
+
|
1307
|
+
type child_access =
|
1308
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
1309
|
+
| MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
1310
|
+
| MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
1311
|
+
|
1312
|
+
module ChildAccess
|
1313
|
+
extend MetronomeSDK::Internal::Type::Union
|
1314
|
+
|
1315
|
+
type commit_hierarchy_child_access_all =
|
1316
|
+
{
|
1317
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
1318
|
+
}
|
1319
|
+
|
1320
|
+
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
1321
|
+
attr_accessor type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
1322
|
+
|
1323
|
+
def initialize: (
|
1324
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
1325
|
+
) -> void
|
1326
|
+
|
1327
|
+
def to_hash: -> {
|
1328
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
1329
|
+
}
|
1330
|
+
|
1331
|
+
type type_ = :ALL
|
1332
|
+
|
1333
|
+
module Type
|
1334
|
+
extend MetronomeSDK::Internal::Type::Enum
|
1335
|
+
|
1336
|
+
ALL: :ALL
|
1337
|
+
|
1338
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
1339
|
+
end
|
1340
|
+
end
|
1341
|
+
|
1342
|
+
type commit_hierarchy_child_access_none =
|
1343
|
+
{
|
1344
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
1345
|
+
}
|
1346
|
+
|
1347
|
+
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
1348
|
+
attr_accessor type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
1349
|
+
|
1350
|
+
def initialize: (
|
1351
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
1352
|
+
) -> void
|
1353
|
+
|
1354
|
+
def to_hash: -> {
|
1355
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
1356
|
+
}
|
1357
|
+
|
1358
|
+
type type_ = :NONE
|
1359
|
+
|
1360
|
+
module Type
|
1361
|
+
extend MetronomeSDK::Internal::Type::Enum
|
1362
|
+
|
1363
|
+
NONE: :NONE
|
1364
|
+
|
1365
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
1366
|
+
end
|
1367
|
+
end
|
1368
|
+
|
1369
|
+
type commit_hierarchy_child_access_contract_ids =
|
1370
|
+
{
|
1371
|
+
contract_ids: ::Array[String],
|
1372
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
1373
|
+
}
|
1374
|
+
|
1375
|
+
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
1376
|
+
attr_accessor contract_ids: ::Array[String]
|
1377
|
+
|
1378
|
+
attr_accessor type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
1379
|
+
|
1380
|
+
def initialize: (
|
1381
|
+
contract_ids: ::Array[String],
|
1382
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
1383
|
+
) -> void
|
1384
|
+
|
1385
|
+
def to_hash: -> {
|
1386
|
+
contract_ids: ::Array[String],
|
1387
|
+
type: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
1388
|
+
}
|
1389
|
+
|
1390
|
+
type type_ = :CONTRACT_IDS
|
1391
|
+
|
1392
|
+
module Type
|
1393
|
+
extend MetronomeSDK::Internal::Type::Enum
|
1394
|
+
|
1395
|
+
CONTRACT_IDS: :CONTRACT_IDS
|
1396
|
+
|
1397
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
1398
|
+
end
|
1399
|
+
end
|
1400
|
+
|
1401
|
+
def self?.variants: -> ::Array[MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::child_access]
|
1402
|
+
end
|
1403
|
+
end
|
1404
|
+
|
1159
1405
|
type proration = :NONE | :FIRST | :LAST | :FIRST_AND_LAST
|
1160
1406
|
|
1161
1407
|
module Proration
|
@@ -310,6 +310,7 @@ module MetronomeSDK
|
|
310
310
|
| MetronomeSDK::Credit::Ledger::CreditCanceledLedgerEntry
|
311
311
|
| MetronomeSDK::Credit::Ledger::CreditCreditedLedgerEntry
|
312
312
|
| MetronomeSDK::Credit::Ledger::CreditManualLedgerEntry
|
313
|
+
| MetronomeSDK::Credit::Ledger::CreditSeatBasedAdjustmentLedgerEntry
|
313
314
|
|
314
315
|
module Ledger
|
315
316
|
extend MetronomeSDK::Internal::Type::Union
|
@@ -581,6 +582,48 @@ module MetronomeSDK
|
|
581
582
|
end
|
582
583
|
end
|
583
584
|
|
585
|
+
type credit_seat_based_adjustment_ledger_entry =
|
586
|
+
{
|
587
|
+
amount: Float,
|
588
|
+
segment_id: String,
|
589
|
+
timestamp: Time,
|
590
|
+
type: MetronomeSDK::Models::Credit::Ledger::CreditSeatBasedAdjustmentLedgerEntry::type_
|
591
|
+
}
|
592
|
+
|
593
|
+
class CreditSeatBasedAdjustmentLedgerEntry < MetronomeSDK::Internal::Type::BaseModel
|
594
|
+
attr_accessor amount: Float
|
595
|
+
|
596
|
+
attr_accessor segment_id: String
|
597
|
+
|
598
|
+
attr_accessor timestamp: Time
|
599
|
+
|
600
|
+
attr_accessor type: MetronomeSDK::Models::Credit::Ledger::CreditSeatBasedAdjustmentLedgerEntry::type_
|
601
|
+
|
602
|
+
def initialize: (
|
603
|
+
amount: Float,
|
604
|
+
segment_id: String,
|
605
|
+
timestamp: Time,
|
606
|
+
type: MetronomeSDK::Models::Credit::Ledger::CreditSeatBasedAdjustmentLedgerEntry::type_
|
607
|
+
) -> void
|
608
|
+
|
609
|
+
def to_hash: -> {
|
610
|
+
amount: Float,
|
611
|
+
segment_id: String,
|
612
|
+
timestamp: Time,
|
613
|
+
type: MetronomeSDK::Models::Credit::Ledger::CreditSeatBasedAdjustmentLedgerEntry::type_
|
614
|
+
}
|
615
|
+
|
616
|
+
type type_ = :CREDIT_SEAT_BASED_ADJUSTMENT
|
617
|
+
|
618
|
+
module Type
|
619
|
+
extend MetronomeSDK::Internal::Type::Enum
|
620
|
+
|
621
|
+
CREDIT_SEAT_BASED_ADJUSTMENT: :CREDIT_SEAT_BASED_ADJUSTMENT
|
622
|
+
|
623
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::Credit::Ledger::CreditSeatBasedAdjustmentLedgerEntry::type_]
|
624
|
+
end
|
625
|
+
end
|
626
|
+
|
584
627
|
def self?.variants: -> ::Array[MetronomeSDK::Models::Credit::ledger]
|
585
628
|
end
|
586
629
|
|