metronome-sdk 2.1.0 → 2.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 +39 -0
- data/README.md +1 -1
- data/lib/metronome_sdk/internal/transport/base_client.rb +7 -1
- data/lib/metronome_sdk/internal/transport/pooled_net_requester.rb +18 -12
- data/lib/metronome_sdk/internal/util.rb +7 -2
- data/lib/metronome_sdk/models/contract_v2.rb +29 -2
- data/lib/metronome_sdk/models/subscription.rb +32 -5
- data/lib/metronome_sdk/models/v1/alert_create_params.rb +33 -1
- data/lib/metronome_sdk/models/v1/contract_add_manual_balance_entry_params.rb +10 -1
- data/lib/metronome_sdk/models/v1/contract_create_params.rb +136 -20
- data/lib/metronome_sdk/models/v1/customer_create_params.rb +94 -2
- data/lib/metronome_sdk/models/v1/customer_set_billing_configurations_response.rb +111 -0
- data/lib/metronome_sdk/models/v1/customers/alert_retrieve_params.rb +32 -1
- data/lib/metronome_sdk/models/v1/customers/billing_config_create_params.rb +15 -1
- data/lib/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rb +15 -1
- data/lib/metronome_sdk/models/v1/customers/customer_alert.rb +33 -1
- data/lib/metronome_sdk/models/v1/customers/invoice.rb +20 -2
- data/lib/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rb +8 -1
- data/lib/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rb +10 -1
- data/lib/metronome_sdk/models/v1/settings/billing_provider_create_params.rb +1 -0
- data/lib/metronome_sdk/models/v1/usage_search_response.rb +6 -3
- data/lib/metronome_sdk/models/v2/contract_edit_commit_params.rb +17 -1
- data/lib/metronome_sdk/models/v2/contract_edit_credit_params.rb +17 -1
- data/lib/metronome_sdk/models/v2/contract_edit_params.rb +285 -22
- data/lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb +177 -3
- data/lib/metronome_sdk/resources/v1/alerts.rb +3 -1
- data/lib/metronome_sdk/resources/v1/contracts.rb +6 -2
- data/lib/metronome_sdk/resources/v1/customers/alerts.rb +3 -1
- data/lib/metronome_sdk/resources/v1/customers/billing_config.rb +5 -1
- data/lib/metronome_sdk/resources/v1/customers.rb +5 -3
- data/lib/metronome_sdk/resources/v1/settings.rb +3 -1
- data/lib/metronome_sdk/resources/v2/contracts.rb +10 -2
- data/lib/metronome_sdk/version.rb +1 -1
- data/lib/metronome_sdk.rb +3 -0
- data/manifest.yaml +2 -0
- data/rbi/metronome_sdk/internal/transport/base_client.rbi +5 -0
- data/rbi/metronome_sdk/internal/transport/pooled_net_requester.rbi +6 -2
- data/rbi/metronome_sdk/internal/type/base_model.rbi +8 -4
- data/rbi/metronome_sdk/models/contract_v2.rbi +63 -6
- data/rbi/metronome_sdk/models/subscription.rbi +55 -9
- data/rbi/metronome_sdk/models/v1/alert_create_params.rbi +69 -0
- data/rbi/metronome_sdk/models/v1/contract_add_manual_balance_entry_params.rbi +13 -0
- data/rbi/metronome_sdk/models/v1/contract_create_params.rbi +288 -24
- data/rbi/metronome_sdk/models/v1/customer_create_params.rbi +204 -0
- data/rbi/metronome_sdk/models/v1/customer_set_billing_configurations_response.rbi +281 -0
- data/rbi/metronome_sdk/models/v1/customers/alert_retrieve_params.rbi +67 -0
- data/rbi/metronome_sdk/models/v1/customers/billing_config_create_params.rbi +18 -0
- data/rbi/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rbi +18 -0
- data/rbi/metronome_sdk/models/v1/customers/customer_alert.rbi +71 -0
- data/rbi/metronome_sdk/models/v1/customers/invoice.rbi +32 -0
- data/rbi/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rbi +9 -0
- data/rbi/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbi +13 -0
- data/rbi/metronome_sdk/models/v1/settings/billing_provider_create_params.rbi +5 -0
- data/rbi/metronome_sdk/models/v1/usage_search_response.rbi +11 -3
- data/rbi/metronome_sdk/models/v2/contract_edit_commit_params.rbi +22 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_credit_params.rbi +22 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_params.rbi +616 -27
- data/rbi/metronome_sdk/models/v2/contract_get_edit_history_response.rbi +367 -3
- data/rbi/metronome_sdk/resources/v1/alerts.rbi +5 -0
- data/rbi/metronome_sdk/resources/v1/contracts.rbi +9 -0
- data/rbi/metronome_sdk/resources/v1/customers/alerts.rbi +5 -0
- data/rbi/metronome_sdk/resources/v1/customers/billing_config.rbi +6 -0
- data/rbi/metronome_sdk/resources/v1/customers.rbi +8 -1
- data/rbi/metronome_sdk/resources/v1/settings.rbi +4 -0
- data/rbi/metronome_sdk/resources/v2/contracts.rbi +12 -0
- data/sig/metronome_sdk/internal/transport/base_client.rbs +2 -0
- data/sig/metronome_sdk/internal/transport/pooled_net_requester.rbs +4 -1
- data/sig/metronome_sdk/models/contract_v2.rbs +31 -6
- data/sig/metronome_sdk/models/subscription.rbs +22 -3
- data/sig/metronome_sdk/models/v1/alert_create_params.rbs +28 -0
- data/sig/metronome_sdk/models/v1/contract_add_manual_balance_entry_params.rbs +7 -0
- data/sig/metronome_sdk/models/v1/contract_create_params.rbs +104 -0
- data/sig/metronome_sdk/models/v1/customer_create_params.rbs +83 -0
- data/sig/metronome_sdk/models/v1/customer_set_billing_configurations_response.rbs +119 -0
- data/sig/metronome_sdk/models/v1/customers/alert_retrieve_params.rbs +26 -1
- data/sig/metronome_sdk/models/v1/customers/billing_config_create_params.rbs +14 -0
- data/sig/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rbs +14 -0
- data/sig/metronome_sdk/models/v1/customers/customer_alert.rbs +30 -0
- data/sig/metronome_sdk/models/v1/customers/invoice.rbs +18 -0
- data/sig/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rbs +7 -0
- data/sig/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbs +8 -1
- data/sig/metronome_sdk/models/v1/settings/billing_provider_create_params.rbs +3 -1
- data/sig/metronome_sdk/models/v1/usage_search_response.rbs +3 -1
- data/sig/metronome_sdk/models/v2/contract_edit_commit_params.rbs +14 -0
- data/sig/metronome_sdk/models/v2/contract_edit_credit_params.rbs +14 -0
- data/sig/metronome_sdk/models/v2/contract_edit_params.rbs +232 -3
- data/sig/metronome_sdk/models/v2/contract_get_edit_history_response.rbs +131 -3
- data/sig/metronome_sdk/resources/v1/alerts.rbs +1 -0
- data/sig/metronome_sdk/resources/v1/contracts.rbs +2 -0
- data/sig/metronome_sdk/resources/v1/customers/alerts.rbs +1 -0
- data/sig/metronome_sdk/resources/v1/customers/billing_config.rbs +2 -0
- data/sig/metronome_sdk/resources/v1/customers.rbs +2 -1
- data/sig/metronome_sdk/resources/v1/settings.rbs +1 -0
- data/sig/metronome_sdk/resources/v2/contracts.rbs +4 -0
- metadata +5 -2
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
module MetronomeSDK
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type customer_set_billing_configurations_response =
|
|
5
|
+
{
|
|
6
|
+
data: ::Array[MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class CustomerSetBillingConfigurationsResponse < MetronomeSDK::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor data: ::Array[MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data]
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
data: ::Array[MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data]
|
|
14
|
+
) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> {
|
|
17
|
+
data: ::Array[MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
type data =
|
|
21
|
+
{
|
|
22
|
+
id: String,
|
|
23
|
+
billing_provider: MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data::billing_provider,
|
|
24
|
+
configuration: ::Hash[Symbol, top],
|
|
25
|
+
customer_id: String,
|
|
26
|
+
delivery_method_id: String,
|
|
27
|
+
tax_provider: MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data::tax_provider
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
class Data < MetronomeSDK::Internal::Type::BaseModel
|
|
31
|
+
attr_reader id: String?
|
|
32
|
+
|
|
33
|
+
def id=: (String) -> String
|
|
34
|
+
|
|
35
|
+
attr_reader billing_provider: MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data::billing_provider?
|
|
36
|
+
|
|
37
|
+
def billing_provider=: (
|
|
38
|
+
MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data::billing_provider
|
|
39
|
+
) -> MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data::billing_provider
|
|
40
|
+
|
|
41
|
+
attr_reader configuration: ::Hash[Symbol, top]?
|
|
42
|
+
|
|
43
|
+
def configuration=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
44
|
+
|
|
45
|
+
attr_reader customer_id: String?
|
|
46
|
+
|
|
47
|
+
def customer_id=: (String) -> String
|
|
48
|
+
|
|
49
|
+
attr_reader delivery_method_id: String?
|
|
50
|
+
|
|
51
|
+
def delivery_method_id=: (String) -> String
|
|
52
|
+
|
|
53
|
+
attr_reader tax_provider: MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data::tax_provider?
|
|
54
|
+
|
|
55
|
+
def tax_provider=: (
|
|
56
|
+
MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data::tax_provider
|
|
57
|
+
) -> MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data::tax_provider
|
|
58
|
+
|
|
59
|
+
def initialize: (
|
|
60
|
+
?id: String,
|
|
61
|
+
?billing_provider: MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data::billing_provider,
|
|
62
|
+
?configuration: ::Hash[Symbol, top],
|
|
63
|
+
?customer_id: String,
|
|
64
|
+
?delivery_method_id: String,
|
|
65
|
+
?tax_provider: MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data::tax_provider
|
|
66
|
+
) -> void
|
|
67
|
+
|
|
68
|
+
def to_hash: -> {
|
|
69
|
+
id: String,
|
|
70
|
+
billing_provider: MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data::billing_provider,
|
|
71
|
+
configuration: ::Hash[Symbol, top],
|
|
72
|
+
customer_id: String,
|
|
73
|
+
delivery_method_id: String,
|
|
74
|
+
tax_provider: MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data::tax_provider
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
type billing_provider =
|
|
78
|
+
:aws_marketplace
|
|
79
|
+
| :stripe
|
|
80
|
+
| :netsuite
|
|
81
|
+
| :custom
|
|
82
|
+
| :azure_marketplace
|
|
83
|
+
| :quickbooks_online
|
|
84
|
+
| :workday
|
|
85
|
+
| :gcp_marketplace
|
|
86
|
+
| :metronome
|
|
87
|
+
|
|
88
|
+
module BillingProvider
|
|
89
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
90
|
+
|
|
91
|
+
AWS_MARKETPLACE: :aws_marketplace
|
|
92
|
+
STRIPE: :stripe
|
|
93
|
+
NETSUITE: :netsuite
|
|
94
|
+
CUSTOM: :custom
|
|
95
|
+
AZURE_MARKETPLACE: :azure_marketplace
|
|
96
|
+
QUICKBOOKS_ONLINE: :quickbooks_online
|
|
97
|
+
WORKDAY: :workday
|
|
98
|
+
GCP_MARKETPLACE: :gcp_marketplace
|
|
99
|
+
METRONOME: :metronome
|
|
100
|
+
|
|
101
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data::billing_provider]
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
type tax_provider = :anrok | :avalara | :stripe
|
|
105
|
+
|
|
106
|
+
module TaxProvider
|
|
107
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
108
|
+
|
|
109
|
+
ANROK: :anrok
|
|
110
|
+
AVALARA: :avalara
|
|
111
|
+
STRIPE: :stripe
|
|
112
|
+
|
|
113
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse::Data::tax_provider]
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
end
|
|
@@ -7,7 +7,8 @@ module MetronomeSDK
|
|
|
7
7
|
alert_id: String,
|
|
8
8
|
customer_id: String,
|
|
9
9
|
group_values: ::Array[MetronomeSDK::V1::Customers::AlertRetrieveParams::GroupValue],
|
|
10
|
-
plans_or_contracts: MetronomeSDK::Models::V1::Customers::AlertRetrieveParams::plans_or_contracts
|
|
10
|
+
plans_or_contracts: MetronomeSDK::Models::V1::Customers::AlertRetrieveParams::plans_or_contracts,
|
|
11
|
+
seat_filter: MetronomeSDK::V1::Customers::AlertRetrieveParams::SeatFilter
|
|
11
12
|
}
|
|
12
13
|
& MetronomeSDK::Internal::Type::request_parameters
|
|
13
14
|
|
|
@@ -31,11 +32,18 @@ module MetronomeSDK
|
|
|
31
32
|
MetronomeSDK::Models::V1::Customers::AlertRetrieveParams::plans_or_contracts
|
|
32
33
|
) -> MetronomeSDK::Models::V1::Customers::AlertRetrieveParams::plans_or_contracts
|
|
33
34
|
|
|
35
|
+
attr_reader seat_filter: MetronomeSDK::V1::Customers::AlertRetrieveParams::SeatFilter?
|
|
36
|
+
|
|
37
|
+
def seat_filter=: (
|
|
38
|
+
MetronomeSDK::V1::Customers::AlertRetrieveParams::SeatFilter
|
|
39
|
+
) -> MetronomeSDK::V1::Customers::AlertRetrieveParams::SeatFilter
|
|
40
|
+
|
|
34
41
|
def initialize: (
|
|
35
42
|
alert_id: String,
|
|
36
43
|
customer_id: String,
|
|
37
44
|
?group_values: ::Array[MetronomeSDK::V1::Customers::AlertRetrieveParams::GroupValue],
|
|
38
45
|
?plans_or_contracts: MetronomeSDK::Models::V1::Customers::AlertRetrieveParams::plans_or_contracts,
|
|
46
|
+
?seat_filter: MetronomeSDK::V1::Customers::AlertRetrieveParams::SeatFilter,
|
|
39
47
|
?request_options: MetronomeSDK::request_opts
|
|
40
48
|
) -> void
|
|
41
49
|
|
|
@@ -44,6 +52,7 @@ module MetronomeSDK
|
|
|
44
52
|
customer_id: String,
|
|
45
53
|
group_values: ::Array[MetronomeSDK::V1::Customers::AlertRetrieveParams::GroupValue],
|
|
46
54
|
plans_or_contracts: MetronomeSDK::Models::V1::Customers::AlertRetrieveParams::plans_or_contracts,
|
|
55
|
+
seat_filter: MetronomeSDK::V1::Customers::AlertRetrieveParams::SeatFilter,
|
|
47
56
|
request_options: MetronomeSDK::RequestOptions
|
|
48
57
|
}
|
|
49
58
|
|
|
@@ -69,6 +78,22 @@ module MetronomeSDK
|
|
|
69
78
|
|
|
70
79
|
def self?.values: -> ::Array[MetronomeSDK::Models::V1::Customers::AlertRetrieveParams::plans_or_contracts]
|
|
71
80
|
end
|
|
81
|
+
|
|
82
|
+
type seat_filter =
|
|
83
|
+
{ seat_group_key: String, seat_group_value: String }
|
|
84
|
+
|
|
85
|
+
class SeatFilter < MetronomeSDK::Internal::Type::BaseModel
|
|
86
|
+
attr_accessor seat_group_key: String
|
|
87
|
+
|
|
88
|
+
attr_accessor seat_group_value: String
|
|
89
|
+
|
|
90
|
+
def initialize: (
|
|
91
|
+
seat_group_key: String,
|
|
92
|
+
seat_group_value: String
|
|
93
|
+
) -> void
|
|
94
|
+
|
|
95
|
+
def to_hash: -> { seat_group_key: String, seat_group_value: String }
|
|
96
|
+
end
|
|
72
97
|
end
|
|
73
98
|
end
|
|
74
99
|
end
|
|
@@ -7,6 +7,8 @@ module MetronomeSDK
|
|
|
7
7
|
customer_id: String,
|
|
8
8
|
billing_provider_type: MetronomeSDK::Models::V1::Customers::BillingConfigCreateParams::billing_provider_type,
|
|
9
9
|
billing_provider_customer_id: String,
|
|
10
|
+
aws_customer_account_id: String,
|
|
11
|
+
aws_customer_id: String,
|
|
10
12
|
aws_product_code: String,
|
|
11
13
|
aws_region: MetronomeSDK::Models::V1::Customers::BillingConfigCreateParams::aws_region,
|
|
12
14
|
stripe_collection_method: MetronomeSDK::Models::V1::Customers::BillingConfigCreateParams::stripe_collection_method
|
|
@@ -23,6 +25,14 @@ module MetronomeSDK
|
|
|
23
25
|
|
|
24
26
|
attr_accessor billing_provider_customer_id: String
|
|
25
27
|
|
|
28
|
+
attr_reader aws_customer_account_id: String?
|
|
29
|
+
|
|
30
|
+
def aws_customer_account_id=: (String) -> String
|
|
31
|
+
|
|
32
|
+
attr_reader aws_customer_id: String?
|
|
33
|
+
|
|
34
|
+
def aws_customer_id=: (String) -> String
|
|
35
|
+
|
|
26
36
|
attr_reader aws_product_code: String?
|
|
27
37
|
|
|
28
38
|
def aws_product_code=: (String) -> String
|
|
@@ -43,6 +53,8 @@ module MetronomeSDK
|
|
|
43
53
|
customer_id: String,
|
|
44
54
|
billing_provider_type: MetronomeSDK::Models::V1::Customers::BillingConfigCreateParams::billing_provider_type,
|
|
45
55
|
billing_provider_customer_id: String,
|
|
56
|
+
?aws_customer_account_id: String,
|
|
57
|
+
?aws_customer_id: String,
|
|
46
58
|
?aws_product_code: String,
|
|
47
59
|
?aws_region: MetronomeSDK::Models::V1::Customers::BillingConfigCreateParams::aws_region,
|
|
48
60
|
?stripe_collection_method: MetronomeSDK::Models::V1::Customers::BillingConfigCreateParams::stripe_collection_method,
|
|
@@ -53,6 +65,8 @@ module MetronomeSDK
|
|
|
53
65
|
customer_id: String,
|
|
54
66
|
billing_provider_type: MetronomeSDK::Models::V1::Customers::BillingConfigCreateParams::billing_provider_type,
|
|
55
67
|
billing_provider_customer_id: String,
|
|
68
|
+
aws_customer_account_id: String,
|
|
69
|
+
aws_customer_id: String,
|
|
56
70
|
aws_product_code: String,
|
|
57
71
|
aws_region: MetronomeSDK::Models::V1::Customers::BillingConfigCreateParams::aws_region,
|
|
58
72
|
stripe_collection_method: MetronomeSDK::Models::V1::Customers::BillingConfigCreateParams::stripe_collection_method,
|
|
@@ -20,6 +20,8 @@ module MetronomeSDK
|
|
|
20
20
|
|
|
21
21
|
type data =
|
|
22
22
|
{
|
|
23
|
+
aws_customer_account_id: String,
|
|
24
|
+
aws_customer_id: String,
|
|
23
25
|
aws_expiration_date: Time,
|
|
24
26
|
aws_is_subscription_product: bool,
|
|
25
27
|
aws_product_code: String,
|
|
@@ -33,6 +35,14 @@ module MetronomeSDK
|
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
class Data < MetronomeSDK::Internal::Type::BaseModel
|
|
38
|
+
attr_reader aws_customer_account_id: String?
|
|
39
|
+
|
|
40
|
+
def aws_customer_account_id=: (String) -> String
|
|
41
|
+
|
|
42
|
+
attr_reader aws_customer_id: String?
|
|
43
|
+
|
|
44
|
+
def aws_customer_id=: (String) -> String
|
|
45
|
+
|
|
36
46
|
attr_reader aws_expiration_date: Time?
|
|
37
47
|
|
|
38
48
|
def aws_expiration_date=: (Time) -> Time
|
|
@@ -80,6 +90,8 @@ module MetronomeSDK
|
|
|
80
90
|
) -> MetronomeSDK::Models::V1::Customers::BillingConfigRetrieveResponse::Data::stripe_collection_method
|
|
81
91
|
|
|
82
92
|
def initialize: (
|
|
93
|
+
?aws_customer_account_id: String,
|
|
94
|
+
?aws_customer_id: String,
|
|
83
95
|
?aws_expiration_date: Time,
|
|
84
96
|
?aws_is_subscription_product: bool,
|
|
85
97
|
?aws_product_code: String,
|
|
@@ -93,6 +105,8 @@ module MetronomeSDK
|
|
|
93
105
|
) -> void
|
|
94
106
|
|
|
95
107
|
def to_hash: -> {
|
|
108
|
+
aws_customer_account_id: String,
|
|
109
|
+
aws_customer_id: String,
|
|
96
110
|
aws_expiration_date: Time,
|
|
97
111
|
aws_is_subscription_product: bool,
|
|
98
112
|
aws_product_code: String,
|
|
@@ -44,6 +44,7 @@ module MetronomeSDK
|
|
|
44
44
|
group_key_filter: MetronomeSDK::V1::Customers::CustomerAlert::Alert::GroupKeyFilter,
|
|
45
45
|
group_values: ::Array[MetronomeSDK::V1::Customers::CustomerAlert::Alert::GroupValue],
|
|
46
46
|
invoice_types_filter: ::Array[String],
|
|
47
|
+
seat_filter: MetronomeSDK::V1::Customers::CustomerAlert::Alert::SeatFilter,
|
|
47
48
|
uniqueness_key: String
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -88,6 +89,12 @@ module MetronomeSDK
|
|
|
88
89
|
|
|
89
90
|
def invoice_types_filter=: (::Array[String]) -> ::Array[String]
|
|
90
91
|
|
|
92
|
+
attr_reader seat_filter: MetronomeSDK::V1::Customers::CustomerAlert::Alert::SeatFilter?
|
|
93
|
+
|
|
94
|
+
def seat_filter=: (
|
|
95
|
+
MetronomeSDK::V1::Customers::CustomerAlert::Alert::SeatFilter
|
|
96
|
+
) -> MetronomeSDK::V1::Customers::CustomerAlert::Alert::SeatFilter
|
|
97
|
+
|
|
91
98
|
attr_reader uniqueness_key: String?
|
|
92
99
|
|
|
93
100
|
def uniqueness_key=: (String) -> String
|
|
@@ -105,6 +112,7 @@ module MetronomeSDK
|
|
|
105
112
|
?group_key_filter: MetronomeSDK::V1::Customers::CustomerAlert::Alert::GroupKeyFilter,
|
|
106
113
|
?group_values: ::Array[MetronomeSDK::V1::Customers::CustomerAlert::Alert::GroupValue],
|
|
107
114
|
?invoice_types_filter: ::Array[String],
|
|
115
|
+
?seat_filter: MetronomeSDK::V1::Customers::CustomerAlert::Alert::SeatFilter,
|
|
108
116
|
?uniqueness_key: String
|
|
109
117
|
) -> void
|
|
110
118
|
|
|
@@ -121,6 +129,7 @@ module MetronomeSDK
|
|
|
121
129
|
group_key_filter: MetronomeSDK::V1::Customers::CustomerAlert::Alert::GroupKeyFilter,
|
|
122
130
|
group_values: ::Array[MetronomeSDK::V1::Customers::CustomerAlert::Alert::GroupValue],
|
|
123
131
|
invoice_types_filter: ::Array[String],
|
|
132
|
+
seat_filter: MetronomeSDK::V1::Customers::CustomerAlert::Alert::SeatFilter,
|
|
124
133
|
uniqueness_key: String
|
|
125
134
|
}
|
|
126
135
|
|
|
@@ -239,6 +248,27 @@ module MetronomeSDK
|
|
|
239
248
|
|
|
240
249
|
def to_hash: -> { key: String, value: String }
|
|
241
250
|
end
|
|
251
|
+
|
|
252
|
+
type seat_filter =
|
|
253
|
+
{ seat_group_key: String, seat_group_value: String }
|
|
254
|
+
|
|
255
|
+
class SeatFilter < MetronomeSDK::Internal::Type::BaseModel
|
|
256
|
+
attr_accessor seat_group_key: String
|
|
257
|
+
|
|
258
|
+
attr_reader seat_group_value: String?
|
|
259
|
+
|
|
260
|
+
def seat_group_value=: (String) -> String
|
|
261
|
+
|
|
262
|
+
def initialize: (
|
|
263
|
+
seat_group_key: String,
|
|
264
|
+
?seat_group_value: String
|
|
265
|
+
) -> void
|
|
266
|
+
|
|
267
|
+
def to_hash: -> {
|
|
268
|
+
seat_group_key: String,
|
|
269
|
+
seat_group_value: String
|
|
270
|
+
}
|
|
271
|
+
end
|
|
242
272
|
end
|
|
243
273
|
|
|
244
274
|
type customer_status = :ok | :in_alarm | :evaluating
|
|
@@ -857,6 +857,7 @@ module MetronomeSDK
|
|
|
857
857
|
{
|
|
858
858
|
billing_provider_type: MetronomeSDK::Models::V1::Customers::Invoice::CorrectionRecord::CorrectedExternalInvoice::billing_provider_type,
|
|
859
859
|
billing_provider_error: String,
|
|
860
|
+
external_payment_id: String,
|
|
860
861
|
external_status: MetronomeSDK::Models::V1::Customers::Invoice::CorrectionRecord::CorrectedExternalInvoice::external_status,
|
|
861
862
|
invoice_id: String,
|
|
862
863
|
invoiced_sub_total: Float,
|
|
@@ -873,6 +874,10 @@ module MetronomeSDK
|
|
|
873
874
|
|
|
874
875
|
def billing_provider_error=: (String) -> String
|
|
875
876
|
|
|
877
|
+
attr_reader external_payment_id: String?
|
|
878
|
+
|
|
879
|
+
def external_payment_id=: (String) -> String
|
|
880
|
+
|
|
876
881
|
attr_reader external_status: MetronomeSDK::Models::V1::Customers::Invoice::CorrectionRecord::CorrectedExternalInvoice::external_status?
|
|
877
882
|
|
|
878
883
|
def external_status=: (
|
|
@@ -908,6 +913,7 @@ module MetronomeSDK
|
|
|
908
913
|
def initialize: (
|
|
909
914
|
billing_provider_type: MetronomeSDK::Models::V1::Customers::Invoice::CorrectionRecord::CorrectedExternalInvoice::billing_provider_type,
|
|
910
915
|
?billing_provider_error: String,
|
|
916
|
+
?external_payment_id: String,
|
|
911
917
|
?external_status: MetronomeSDK::Models::V1::Customers::Invoice::CorrectionRecord::CorrectedExternalInvoice::external_status,
|
|
912
918
|
?invoice_id: String,
|
|
913
919
|
?invoiced_sub_total: Float,
|
|
@@ -920,6 +926,7 @@ module MetronomeSDK
|
|
|
920
926
|
def to_hash: -> {
|
|
921
927
|
billing_provider_type: MetronomeSDK::Models::V1::Customers::Invoice::CorrectionRecord::CorrectedExternalInvoice::billing_provider_type,
|
|
922
928
|
billing_provider_error: String,
|
|
929
|
+
external_payment_id: String,
|
|
923
930
|
external_status: MetronomeSDK::Models::V1::Customers::Invoice::CorrectionRecord::CorrectedExternalInvoice::external_status,
|
|
924
931
|
invoice_id: String,
|
|
925
932
|
invoiced_sub_total: Float,
|
|
@@ -960,6 +967,7 @@ module MetronomeSDK
|
|
|
960
967
|
:DRAFT
|
|
961
968
|
| :FINALIZED
|
|
962
969
|
| :PAID
|
|
970
|
+
| :PARTIALLY_PAID
|
|
963
971
|
| :UNCOLLECTIBLE
|
|
964
972
|
| :VOID
|
|
965
973
|
| :DELETED
|
|
@@ -975,6 +983,7 @@ module MetronomeSDK
|
|
|
975
983
|
DRAFT: :DRAFT
|
|
976
984
|
FINALIZED: :FINALIZED
|
|
977
985
|
PAID: :PAID
|
|
986
|
+
PARTIALLY_PAID: :PARTIALLY_PAID
|
|
978
987
|
UNCOLLECTIBLE: :UNCOLLECTIBLE
|
|
979
988
|
VOID: :VOID
|
|
980
989
|
DELETED: :DELETED
|
|
@@ -1026,6 +1035,7 @@ module MetronomeSDK
|
|
|
1026
1035
|
{
|
|
1027
1036
|
billing_provider_type: MetronomeSDK::Models::V1::Customers::Invoice::ExternalInvoice::billing_provider_type,
|
|
1028
1037
|
billing_provider_error: String,
|
|
1038
|
+
external_payment_id: String,
|
|
1029
1039
|
external_status: MetronomeSDK::Models::V1::Customers::Invoice::ExternalInvoice::external_status,
|
|
1030
1040
|
invoice_id: String,
|
|
1031
1041
|
invoiced_sub_total: Float,
|
|
@@ -1042,6 +1052,10 @@ module MetronomeSDK
|
|
|
1042
1052
|
|
|
1043
1053
|
def billing_provider_error=: (String) -> String
|
|
1044
1054
|
|
|
1055
|
+
attr_reader external_payment_id: String?
|
|
1056
|
+
|
|
1057
|
+
def external_payment_id=: (String) -> String
|
|
1058
|
+
|
|
1045
1059
|
attr_reader external_status: MetronomeSDK::Models::V1::Customers::Invoice::ExternalInvoice::external_status?
|
|
1046
1060
|
|
|
1047
1061
|
def external_status=: (
|
|
@@ -1077,6 +1091,7 @@ module MetronomeSDK
|
|
|
1077
1091
|
def initialize: (
|
|
1078
1092
|
billing_provider_type: MetronomeSDK::Models::V1::Customers::Invoice::ExternalInvoice::billing_provider_type,
|
|
1079
1093
|
?billing_provider_error: String,
|
|
1094
|
+
?external_payment_id: String,
|
|
1080
1095
|
?external_status: MetronomeSDK::Models::V1::Customers::Invoice::ExternalInvoice::external_status,
|
|
1081
1096
|
?invoice_id: String,
|
|
1082
1097
|
?invoiced_sub_total: Float,
|
|
@@ -1089,6 +1104,7 @@ module MetronomeSDK
|
|
|
1089
1104
|
def to_hash: -> {
|
|
1090
1105
|
billing_provider_type: MetronomeSDK::Models::V1::Customers::Invoice::ExternalInvoice::billing_provider_type,
|
|
1091
1106
|
billing_provider_error: String,
|
|
1107
|
+
external_payment_id: String,
|
|
1092
1108
|
external_status: MetronomeSDK::Models::V1::Customers::Invoice::ExternalInvoice::external_status,
|
|
1093
1109
|
invoice_id: String,
|
|
1094
1110
|
invoiced_sub_total: Float,
|
|
@@ -1129,6 +1145,7 @@ module MetronomeSDK
|
|
|
1129
1145
|
:DRAFT
|
|
1130
1146
|
| :FINALIZED
|
|
1131
1147
|
| :PAID
|
|
1148
|
+
| :PARTIALLY_PAID
|
|
1132
1149
|
| :UNCOLLECTIBLE
|
|
1133
1150
|
| :VOID
|
|
1134
1151
|
| :DELETED
|
|
@@ -1144,6 +1161,7 @@ module MetronomeSDK
|
|
|
1144
1161
|
DRAFT: :DRAFT
|
|
1145
1162
|
FINALIZED: :FINALIZED
|
|
1146
1163
|
PAID: :PAID
|
|
1164
|
+
PARTIALLY_PAID: :PARTIALLY_PAID
|
|
1147
1165
|
UNCOLLECTIBLE: :UNCOLLECTIBLE
|
|
1148
1166
|
VOID: :VOID
|
|
1149
1167
|
DELETED: :DELETED
|
|
@@ -57,6 +57,7 @@ module MetronomeSDK
|
|
|
57
57
|
type price =
|
|
58
58
|
{
|
|
59
59
|
adjustment_type: MetronomeSDK::Models::V1::Customers::PlanListPriceAdjustmentsResponse::Price::adjustment_type,
|
|
60
|
+
quantity: Float,
|
|
60
61
|
tier: Float,
|
|
61
62
|
value: Float
|
|
62
63
|
}
|
|
@@ -64,6 +65,10 @@ module MetronomeSDK
|
|
|
64
65
|
class Price < MetronomeSDK::Internal::Type::BaseModel
|
|
65
66
|
attr_accessor adjustment_type: MetronomeSDK::Models::V1::Customers::PlanListPriceAdjustmentsResponse::Price::adjustment_type
|
|
66
67
|
|
|
68
|
+
attr_reader quantity: Float?
|
|
69
|
+
|
|
70
|
+
def quantity=: (Float) -> Float
|
|
71
|
+
|
|
67
72
|
attr_reader tier: Float?
|
|
68
73
|
|
|
69
74
|
def tier=: (Float) -> Float
|
|
@@ -74,12 +79,14 @@ module MetronomeSDK
|
|
|
74
79
|
|
|
75
80
|
def initialize: (
|
|
76
81
|
adjustment_type: MetronomeSDK::Models::V1::Customers::PlanListPriceAdjustmentsResponse::Price::adjustment_type,
|
|
82
|
+
?quantity: Float,
|
|
77
83
|
?tier: Float,
|
|
78
84
|
?value: Float
|
|
79
85
|
) -> void
|
|
80
86
|
|
|
81
87
|
def to_hash: -> {
|
|
82
88
|
adjustment_type: MetronomeSDK::Models::V1::Customers::PlanListPriceAdjustmentsResponse::Price::adjustment_type,
|
|
89
|
+
quantity: Float,
|
|
83
90
|
tier: Float,
|
|
84
91
|
value: Float
|
|
85
92
|
}
|
|
@@ -6,7 +6,8 @@ module MetronomeSDK
|
|
|
6
6
|
avalara_environment: MetronomeSDK::Models::V1::SettingUpsertAvalaraCredentialsParams::avalara_environment,
|
|
7
7
|
avalara_password: String,
|
|
8
8
|
avalara_username: String,
|
|
9
|
-
delivery_method_ids: ::Array[String]
|
|
9
|
+
delivery_method_ids: ::Array[String],
|
|
10
|
+
commit_transactions: bool
|
|
10
11
|
}
|
|
11
12
|
& MetronomeSDK::Internal::Type::request_parameters
|
|
12
13
|
|
|
@@ -22,11 +23,16 @@ module MetronomeSDK
|
|
|
22
23
|
|
|
23
24
|
attr_accessor delivery_method_ids: ::Array[String]
|
|
24
25
|
|
|
26
|
+
attr_reader commit_transactions: bool?
|
|
27
|
+
|
|
28
|
+
def commit_transactions=: (bool) -> bool
|
|
29
|
+
|
|
25
30
|
def initialize: (
|
|
26
31
|
avalara_environment: MetronomeSDK::Models::V1::SettingUpsertAvalaraCredentialsParams::avalara_environment,
|
|
27
32
|
avalara_password: String,
|
|
28
33
|
avalara_username: String,
|
|
29
34
|
delivery_method_ids: ::Array[String],
|
|
35
|
+
?commit_transactions: bool,
|
|
30
36
|
?request_options: MetronomeSDK::request_opts
|
|
31
37
|
) -> void
|
|
32
38
|
|
|
@@ -35,6 +41,7 @@ module MetronomeSDK
|
|
|
35
41
|
avalara_password: String,
|
|
36
42
|
avalara_username: String,
|
|
37
43
|
delivery_method_ids: ::Array[String],
|
|
44
|
+
commit_transactions: bool,
|
|
38
45
|
request_options: MetronomeSDK::RequestOptions
|
|
39
46
|
}
|
|
40
47
|
|
|
@@ -34,13 +34,15 @@ module MetronomeSDK
|
|
|
34
34
|
request_options: MetronomeSDK::RequestOptions
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
type billing_provider =
|
|
37
|
+
type billing_provider =
|
|
38
|
+
:aws_marketplace | :azure_marketplace | :gcp_marketplace
|
|
38
39
|
|
|
39
40
|
module BillingProvider
|
|
40
41
|
extend MetronomeSDK::Internal::Type::Enum
|
|
41
42
|
|
|
42
43
|
AWS_MARKETPLACE: :aws_marketplace
|
|
43
44
|
AZURE_MARKETPLACE: :azure_marketplace
|
|
45
|
+
GCP_MARKETPLACE: :gcp_marketplace
|
|
44
46
|
|
|
45
47
|
def self?.values: -> ::Array[MetronomeSDK::Models::V1::Settings::BillingProviderCreateParams::billing_provider]
|
|
46
48
|
end
|
|
@@ -189,7 +189,8 @@ module MetronomeSDK
|
|
|
189
189
|
sql: String
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
type aggregation_type =
|
|
192
|
+
type aggregation_type =
|
|
193
|
+
:COUNT | :LATEST | :MAX | :SUM | :UNIQUE | :custom_sql
|
|
193
194
|
|
|
194
195
|
module AggregationType
|
|
195
196
|
extend MetronomeSDK::Internal::Type::Enum
|
|
@@ -199,6 +200,7 @@ module MetronomeSDK
|
|
|
199
200
|
MAX: :MAX
|
|
200
201
|
SUM: :SUM
|
|
201
202
|
UNIQUE: :UNIQUE
|
|
203
|
+
CUSTOM_SQL: :custom_sql
|
|
202
204
|
|
|
203
205
|
def self?.values: -> ::Array[MetronomeSDK::Models::V1::UsageSearchResponseItem::MatchedBillableMetric::aggregation_type]
|
|
204
206
|
end
|
|
@@ -8,9 +8,11 @@ module MetronomeSDK
|
|
|
8
8
|
access_schedule: MetronomeSDK::V2::ContractEditCommitParams::AccessSchedule,
|
|
9
9
|
applicable_product_ids: ::Array[String]?,
|
|
10
10
|
applicable_product_tags: ::Array[String]?,
|
|
11
|
+
description: String,
|
|
11
12
|
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
12
13
|
invoice_contract_id: String,
|
|
13
14
|
invoice_schedule: MetronomeSDK::V2::ContractEditCommitParams::InvoiceSchedule,
|
|
15
|
+
name: String,
|
|
14
16
|
priority: Float?,
|
|
15
17
|
product_id: String,
|
|
16
18
|
rate_type: MetronomeSDK::Models::V2::ContractEditCommitParams::rate_type,
|
|
@@ -36,6 +38,10 @@ module MetronomeSDK
|
|
|
36
38
|
|
|
37
39
|
attr_accessor applicable_product_tags: ::Array[String]?
|
|
38
40
|
|
|
41
|
+
attr_reader description: String?
|
|
42
|
+
|
|
43
|
+
def description=: (String) -> String
|
|
44
|
+
|
|
39
45
|
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
|
40
46
|
|
|
41
47
|
def hierarchy_configuration=: (
|
|
@@ -52,6 +58,10 @@ module MetronomeSDK
|
|
|
52
58
|
MetronomeSDK::V2::ContractEditCommitParams::InvoiceSchedule
|
|
53
59
|
) -> MetronomeSDK::V2::ContractEditCommitParams::InvoiceSchedule
|
|
54
60
|
|
|
61
|
+
attr_reader name: String?
|
|
62
|
+
|
|
63
|
+
def name=: (String) -> String
|
|
64
|
+
|
|
55
65
|
attr_accessor priority: Float?
|
|
56
66
|
|
|
57
67
|
attr_reader product_id: String?
|
|
@@ -72,9 +82,11 @@ module MetronomeSDK
|
|
|
72
82
|
?access_schedule: MetronomeSDK::V2::ContractEditCommitParams::AccessSchedule,
|
|
73
83
|
?applicable_product_ids: ::Array[String]?,
|
|
74
84
|
?applicable_product_tags: ::Array[String]?,
|
|
85
|
+
?description: String,
|
|
75
86
|
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
76
87
|
?invoice_contract_id: String,
|
|
77
88
|
?invoice_schedule: MetronomeSDK::V2::ContractEditCommitParams::InvoiceSchedule,
|
|
89
|
+
?name: String,
|
|
78
90
|
?priority: Float?,
|
|
79
91
|
?product_id: String,
|
|
80
92
|
?rate_type: MetronomeSDK::Models::V2::ContractEditCommitParams::rate_type,
|
|
@@ -88,9 +100,11 @@ module MetronomeSDK
|
|
|
88
100
|
access_schedule: MetronomeSDK::V2::ContractEditCommitParams::AccessSchedule,
|
|
89
101
|
applicable_product_ids: ::Array[String]?,
|
|
90
102
|
applicable_product_tags: ::Array[String]?,
|
|
103
|
+
description: String,
|
|
91
104
|
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
92
105
|
invoice_contract_id: String,
|
|
93
106
|
invoice_schedule: MetronomeSDK::V2::ContractEditCommitParams::InvoiceSchedule,
|
|
107
|
+
name: String,
|
|
94
108
|
priority: Float?,
|
|
95
109
|
product_id: String,
|
|
96
110
|
rate_type: MetronomeSDK::Models::V2::ContractEditCommitParams::rate_type,
|
|
@@ -8,7 +8,9 @@ module MetronomeSDK
|
|
|
8
8
|
access_schedule: MetronomeSDK::V2::ContractEditCreditParams::AccessSchedule,
|
|
9
9
|
applicable_product_ids: ::Array[String]?,
|
|
10
10
|
applicable_product_tags: ::Array[String]?,
|
|
11
|
+
description: String,
|
|
11
12
|
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
13
|
+
name: String,
|
|
12
14
|
priority: Float?,
|
|
13
15
|
product_id: String,
|
|
14
16
|
rate_type: MetronomeSDK::Models::V2::ContractEditCreditParams::rate_type,
|
|
@@ -34,12 +36,20 @@ module MetronomeSDK
|
|
|
34
36
|
|
|
35
37
|
attr_accessor applicable_product_tags: ::Array[String]?
|
|
36
38
|
|
|
39
|
+
attr_reader description: String?
|
|
40
|
+
|
|
41
|
+
def description=: (String) -> String
|
|
42
|
+
|
|
37
43
|
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
|
38
44
|
|
|
39
45
|
def hierarchy_configuration=: (
|
|
40
46
|
MetronomeSDK::CommitHierarchyConfiguration
|
|
41
47
|
) -> MetronomeSDK::CommitHierarchyConfiguration
|
|
42
48
|
|
|
49
|
+
attr_reader name: String?
|
|
50
|
+
|
|
51
|
+
def name=: (String) -> String
|
|
52
|
+
|
|
43
53
|
attr_accessor priority: Float?
|
|
44
54
|
|
|
45
55
|
attr_reader product_id: String?
|
|
@@ -60,7 +70,9 @@ module MetronomeSDK
|
|
|
60
70
|
?access_schedule: MetronomeSDK::V2::ContractEditCreditParams::AccessSchedule,
|
|
61
71
|
?applicable_product_ids: ::Array[String]?,
|
|
62
72
|
?applicable_product_tags: ::Array[String]?,
|
|
73
|
+
?description: String,
|
|
63
74
|
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
75
|
+
?name: String,
|
|
64
76
|
?priority: Float?,
|
|
65
77
|
?product_id: String,
|
|
66
78
|
?rate_type: MetronomeSDK::Models::V2::ContractEditCreditParams::rate_type,
|
|
@@ -74,7 +86,9 @@ module MetronomeSDK
|
|
|
74
86
|
access_schedule: MetronomeSDK::V2::ContractEditCreditParams::AccessSchedule,
|
|
75
87
|
applicable_product_ids: ::Array[String]?,
|
|
76
88
|
applicable_product_tags: ::Array[String]?,
|
|
89
|
+
description: String,
|
|
77
90
|
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
91
|
+
name: String,
|
|
78
92
|
priority: Float?,
|
|
79
93
|
product_id: String,
|
|
80
94
|
rate_type: MetronomeSDK::Models::V2::ContractEditCreditParams::rate_type,
|