metronome-sdk 0.3.0 → 1.0.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 +36 -0
- data/README.md +9 -9
- data/lib/metronome_sdk/internal/body_cursor_page.rb +86 -0
- data/lib/metronome_sdk/internal/cursor_page_without_limit.rb +86 -0
- data/lib/metronome_sdk/internal/transport/base_client.rb +1 -4
- data/lib/metronome_sdk/internal/transport/pooled_net_requester.rb +1 -9
- data/lib/metronome_sdk/internal/type/base_model.rb +6 -13
- data/lib/metronome_sdk/internal/type/union.rb +11 -0
- data/lib/metronome_sdk/internal/util.rb +1 -1
- data/lib/metronome_sdk/models/base_threshold_commit.rb +36 -0
- data/lib/metronome_sdk/models/commit.rb +26 -170
- data/lib/metronome_sdk/models/commit_hierarchy_configuration.rb +98 -0
- data/lib/metronome_sdk/models/commit_rate.rb +48 -0
- data/lib/metronome_sdk/models/commit_specifier.rb +42 -0
- data/lib/metronome_sdk/models/commit_specifier_input.rb +42 -0
- data/lib/metronome_sdk/models/contract.rb +404 -0
- data/lib/metronome_sdk/models/contract_v2.rb +2919 -0
- data/lib/metronome_sdk/models/contract_without_amendments.rb +36 -1126
- data/lib/metronome_sdk/models/credit.rb +9 -156
- data/lib/metronome_sdk/models/discount.rb +2 -1
- data/lib/metronome_sdk/models/hierarchy_configuration.rb +76 -0
- data/lib/metronome_sdk/models/override.rb +6 -101
- data/lib/metronome_sdk/models/override_tier.rb +21 -0
- data/lib/metronome_sdk/models/overwrite_rate.rb +82 -0
- data/lib/metronome_sdk/models/payment_gate_config.rb +149 -0
- data/lib/metronome_sdk/models/payment_gate_config_v2.rb +149 -0
- data/lib/metronome_sdk/models/prepaid_balance_threshold_configuration.rb +100 -0
- data/lib/metronome_sdk/models/prepaid_balance_threshold_configuration_v2.rb +102 -0
- data/lib/metronome_sdk/models/pro_service.rb +2 -1
- data/lib/metronome_sdk/models/recurring_commit_subscription_config.rb +51 -0
- data/lib/metronome_sdk/models/scheduled_charge.rb +2 -1
- data/lib/metronome_sdk/models/spend_threshold_configuration.rb +44 -0
- data/lib/metronome_sdk/models/spend_threshold_configuration_v2.rb +44 -0
- data/lib/metronome_sdk/models/subscription.rb +227 -0
- data/lib/metronome_sdk/models/update_base_threshold_commit.rb +36 -0
- data/lib/metronome_sdk/models/v1/alert_create_params.rb +4 -6
- data/lib/metronome_sdk/models/v1/billable_metric_create_params.rb +1 -2
- data/lib/metronome_sdk/models/v1/billable_metric_list_response.rb +3 -3
- data/lib/metronome_sdk/models/v1/billable_metric_retrieve_response.rb +4 -7
- data/lib/metronome_sdk/models/v1/contract_amend_params.rb +57 -411
- data/lib/metronome_sdk/models/v1/contract_create_historical_invoices_params.rb +7 -16
- data/lib/metronome_sdk/models/v1/contract_create_params.rb +236 -1478
- data/lib/metronome_sdk/models/v1/contract_list_balances_response.rb +6 -23
- data/lib/metronome_sdk/models/v1/contract_list_response.rb +3 -1153
- data/lib/metronome_sdk/models/v1/contract_retrieve_rate_schedule_params.rb +2 -6
- data/lib/metronome_sdk/models/v1/contract_retrieve_rate_schedule_response.rb +5 -50
- data/lib/metronome_sdk/models/v1/contract_retrieve_response.rb +3 -1154
- data/lib/metronome_sdk/models/v1/contract_schedule_pro_services_invoice_params.rb +1 -3
- data/lib/metronome_sdk/models/v1/contracts/product_create_params.rb +2 -1
- data/lib/metronome_sdk/models/v1/contracts/product_list_response.rb +8 -1
- data/lib/metronome_sdk/models/v1/contracts/product_retrieve_response.rb +8 -1
- data/lib/metronome_sdk/models/v1/contracts/quantity_rounding.rb +1 -4
- data/lib/metronome_sdk/models/v1/contracts/rate_card_create_params.rb +4 -7
- data/lib/metronome_sdk/models/v1/contracts/rate_card_list_response.rb +10 -1
- data/lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_params.rb +2 -6
- data/lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_response.rb +5 -50
- data/lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_response.rb +10 -1
- data/lib/metronome_sdk/models/v1/contracts/rate_card_update_params.rb +1 -3
- data/lib/metronome_sdk/models/v1/contracts/rate_cards/product_order_update_params.rb +1 -3
- data/lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_many_params.rb +6 -61
- data/lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_params.rb +3 -49
- data/lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rb +4 -51
- data/lib/metronome_sdk/models/v1/contracts/rate_cards/rate_list_params.rb +2 -6
- data/lib/metronome_sdk/models/v1/contracts/rate_cards/rate_list_response.rb +5 -49
- data/lib/metronome_sdk/models/v1/credit_grant_list_entries_response.rb +103 -123
- data/lib/metronome_sdk/models/v1/credit_grant_list_response.rb +3 -5
- data/lib/metronome_sdk/models/v1/custom_field_list_keys_params.rb +1 -3
- data/lib/metronome_sdk/models/v1/custom_field_list_keys_response.rb +41 -58
- data/lib/metronome_sdk/models/v1/custom_field_set_values_params.rb +5 -1
- data/lib/metronome_sdk/models/v1/customer.rb +2 -1
- data/lib/metronome_sdk/models/v1/customer_create_params.rb +37 -11
- data/lib/metronome_sdk/models/v1/customer_detail.rb +2 -1
- data/lib/metronome_sdk/models/v1/customer_list_billable_metrics_response.rb +3 -3
- data/lib/metronome_sdk/models/v1/customer_preview_events_params.rb +1 -3
- data/lib/metronome_sdk/models/v1/customer_retrieve_billing_configurations_params.rb +28 -0
- data/lib/metronome_sdk/models/v1/customer_retrieve_billing_configurations_response.rb +128 -0
- data/lib/metronome_sdk/models/v1/customer_set_billing_configurations_params.rb +143 -0
- data/lib/metronome_sdk/models/v1/customers/alert_list_params.rb +1 -3
- data/lib/metronome_sdk/models/v1/customers/alert_retrieve_params.rb +30 -1
- data/lib/metronome_sdk/models/v1/customers/billing_config_create_params.rb +2 -0
- data/lib/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rb +2 -0
- data/lib/metronome_sdk/models/v1/customers/commit_create_params.rb +10 -60
- data/lib/metronome_sdk/models/v1/customers/credit_create_params.rb +6 -48
- data/lib/metronome_sdk/models/v1/customers/customer_alert.rb +8 -16
- data/lib/metronome_sdk/models/v1/customers/invoice.rb +61 -48
- data/lib/metronome_sdk/models/v1/customers/invoice_list_breakdowns_params.rb +1 -4
- data/lib/metronome_sdk/models/v1/customers/plan_add_params.rb +2 -6
- data/lib/metronome_sdk/models/v1/customers/plan_list_response.rb +2 -1
- data/lib/metronome_sdk/models/v1/dashboard_get_embeddable_url_params.rb +4 -11
- data/lib/metronome_sdk/models/v1/plan_detail.rb +9 -5
- data/lib/metronome_sdk/models/v1/plan_list_charges_response.rb +2 -1
- data/lib/metronome_sdk/models/v1/plan_list_customers_response.rb +2 -1
- data/lib/metronome_sdk/models/v1/plan_list_response.rb +5 -1
- data/lib/metronome_sdk/models/v1/usage_ingest_params.rb +1 -4
- data/lib/metronome_sdk/models/v1/usage_list_params.rb +1 -3
- data/lib/metronome_sdk/models/v1/usage_list_response.rb +45 -62
- data/lib/metronome_sdk/models/v1/usage_search_response.rb +4 -7
- data/lib/metronome_sdk/models/v2/contract_edit_commit_params.rb +29 -58
- data/lib/metronome_sdk/models/v2/contract_edit_credit_params.rb +26 -49
- data/lib/metronome_sdk/models/v2/contract_edit_params.rb +414 -2310
- data/lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb +337 -2424
- data/lib/metronome_sdk/models/v2/contract_list_response.rb +3 -4520
- data/lib/metronome_sdk/models/v2/contract_retrieve_response.rb +3 -4528
- data/lib/metronome_sdk/models.rb +38 -0
- data/lib/metronome_sdk/resources/v1/alerts.rb +72 -2
- data/lib/metronome_sdk/resources/v1/audit_logs.rb +39 -4
- data/lib/metronome_sdk/resources/v1/billable_metrics.rb +54 -4
- data/lib/metronome_sdk/resources/v1/contracts/products.rb +25 -6
- data/lib/metronome_sdk/resources/v1/contracts/rate_cards/product_orders.rb +7 -2
- data/lib/metronome_sdk/resources/v1/contracts/rate_cards/rates.rb +10 -2
- data/lib/metronome_sdk/resources/v1/contracts/rate_cards.rb +109 -10
- data/lib/metronome_sdk/resources/v1/contracts.rb +254 -18
- data/lib/metronome_sdk/resources/v1/credit_grants.rb +2 -1
- data/lib/metronome_sdk/resources/v1/custom_fields.rb +51 -14
- data/lib/metronome_sdk/resources/v1/customers/alerts.rb +103 -8
- data/lib/metronome_sdk/resources/v1/customers/commits.rb +119 -9
- data/lib/metronome_sdk/resources/v1/customers/credits.rb +104 -8
- data/lib/metronome_sdk/resources/v1/customers/invoices.rb +124 -8
- data/lib/metronome_sdk/resources/v1/customers.rb +169 -12
- data/lib/metronome_sdk/resources/v1/dashboards.rb +29 -3
- data/lib/metronome_sdk/resources/v1/invoices.rb +23 -2
- data/lib/metronome_sdk/resources/v1/pricing_units.rb +6 -1
- data/lib/metronome_sdk/resources/v1/services.rb +6 -4
- data/lib/metronome_sdk/resources/v1/usage.rb +185 -12
- data/lib/metronome_sdk/resources/v2/contracts.rb +114 -18
- data/lib/metronome_sdk/version.rb +1 -1
- data/lib/metronome_sdk.rb +24 -3
- data/rbi/metronome_sdk/errors.rbi +2 -2
- data/rbi/metronome_sdk/internal/body_cursor_page.rbi +22 -0
- data/rbi/metronome_sdk/internal/cursor_page_without_limit.rbi +22 -0
- data/rbi/metronome_sdk/models/base_threshold_commit.rbi +58 -0
- data/rbi/metronome_sdk/models/commit.rbi +26 -348
- data/rbi/metronome_sdk/models/commit_hierarchy_configuration.rbi +280 -0
- data/rbi/metronome_sdk/models/commit_rate.rbi +85 -0
- data/rbi/metronome_sdk/models/commit_specifier.rbi +71 -0
- data/rbi/metronome_sdk/models/commit_specifier_input.rbi +74 -0
- data/rbi/metronome_sdk/models/contract.rbi +768 -0
- data/rbi/metronome_sdk/models/contract_v2.rbi +5822 -0
- data/rbi/metronome_sdk/models/contract_without_amendments.rbi +184 -2507
- data/rbi/metronome_sdk/models/credit.rbi +10 -348
- data/rbi/metronome_sdk/models/discount.rbi +2 -0
- data/rbi/metronome_sdk/models/hierarchy_configuration.rbi +180 -0
- data/rbi/metronome_sdk/models/override.rbi +8 -193
- data/rbi/metronome_sdk/models/override_tier.rbi +29 -0
- data/rbi/metronome_sdk/models/overwrite_rate.rbi +137 -0
- data/rbi/metronome_sdk/models/payment_gate_config.rbi +312 -0
- data/rbi/metronome_sdk/models/payment_gate_config_v2.rbi +321 -0
- data/rbi/metronome_sdk/models/prepaid_balance_threshold_configuration.rbi +183 -0
- data/rbi/metronome_sdk/models/prepaid_balance_threshold_configuration_v2.rbi +188 -0
- data/rbi/metronome_sdk/models/pro_service.rbi +2 -0
- data/rbi/metronome_sdk/models/recurring_commit_subscription_config.rbi +125 -0
- data/rbi/metronome_sdk/models/scheduled_charge.rbi +2 -0
- data/rbi/metronome_sdk/models/spend_threshold_configuration.rbi +76 -0
- data/rbi/metronome_sdk/models/spend_threshold_configuration_v2.rbi +78 -0
- data/rbi/metronome_sdk/models/subscription.rbi +460 -0
- data/rbi/metronome_sdk/models/update_base_threshold_commit.rbi +61 -0
- data/rbi/metronome_sdk/models/v1/alert_create_params.rbi +6 -3
- data/rbi/metronome_sdk/models/v1/billable_metric_list_response.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/billable_metric_retrieve_response.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/contract_amend_params.rbi +44 -768
- data/rbi/metronome_sdk/models/v1/contract_create_historical_invoices_params.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/contract_create_params.rbi +1550 -4079
- data/rbi/metronome_sdk/models/v1/contract_list_balances_response.rbi +8 -59
- data/rbi/metronome_sdk/models/v1/contract_list_response.rbi +5 -2420
- data/rbi/metronome_sdk/models/v1/contract_retrieve_rate_schedule_response.rbi +6 -129
- data/rbi/metronome_sdk/models/v1/contract_retrieve_response.rbi +4 -2419
- data/rbi/metronome_sdk/models/v1/contracts/product_create_params.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/contracts/product_list_response.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/contracts/product_retrieve_response.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/contracts/rate_card_create_params.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/contracts/rate_card_list_response.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_response.rbi +6 -129
- data/rbi/metronome_sdk/models/v1/contracts/rate_card_retrieve_response.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/contracts/rate_cards/rate_add_many_params.rbi +4 -129
- data/rbi/metronome_sdk/models/v1/contracts/rate_cards/rate_add_params.rbi +4 -129
- data/rbi/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rbi +4 -129
- data/rbi/metronome_sdk/models/v1/contracts/rate_cards/rate_list_response.rbi +6 -129
- data/rbi/metronome_sdk/models/v1/credit_grant_list_entries_response.rbi +147 -198
- data/rbi/metronome_sdk/models/v1/credit_grant_list_response.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/custom_field_list_keys_response.rbi +117 -165
- data/rbi/metronome_sdk/models/v1/custom_field_set_values_params.rbi +8 -1
- data/rbi/metronome_sdk/models/v1/customer.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/customer_create_params.rbi +88 -3
- data/rbi/metronome_sdk/models/v1/customer_detail.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/customer_list_billable_metrics_response.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/customer_retrieve_billing_configurations_params.rbi +51 -0
- data/rbi/metronome_sdk/models/v1/customer_retrieve_billing_configurations_response.rbi +265 -0
- data/rbi/metronome_sdk/models/v1/customer_set_billing_configurations_params.rbi +348 -0
- data/rbi/metronome_sdk/models/v1/customers/alert_retrieve_params.rbi +60 -0
- data/rbi/metronome_sdk/models/v1/customers/billing_config_create_params.rbi +10 -0
- data/rbi/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rbi +10 -0
- data/rbi/metronome_sdk/models/v1/customers/commit_create_params.rbi +6 -90
- data/rbi/metronome_sdk/models/v1/customers/credit_create_params.rbi +6 -90
- data/rbi/metronome_sdk/models/v1/customers/customer_alert.rbi +6 -3
- data/rbi/metronome_sdk/models/v1/customers/invoice.rbi +70 -10
- data/rbi/metronome_sdk/models/v1/customers/plan_list_response.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/plan_detail.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/plan_list_charges_response.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/plan_list_customers_response.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/plan_list_response.rbi +8 -1
- data/rbi/metronome_sdk/models/v1/usage_list_response.rbi +45 -86
- data/rbi/metronome_sdk/models/v1/usage_search_response.rbi +2 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_commit_params.rbi +56 -76
- data/rbi/metronome_sdk/models/v2/contract_edit_credit_params.rbi +56 -76
- data/rbi/metronome_sdk/models/v2/contract_edit_params.rbi +3419 -7270
- data/rbi/metronome_sdk/models/v2/contract_get_edit_history_response.rbi +1140 -6062
- data/rbi/metronome_sdk/models/v2/contract_list_response.rbi +5 -9867
- data/rbi/metronome_sdk/models/v2/contract_retrieve_response.rbi +6 -9866
- data/rbi/metronome_sdk/models.rbi +44 -0
- data/rbi/metronome_sdk/resources/v1/alerts.rbi +72 -2
- data/rbi/metronome_sdk/resources/v1/audit_logs.rbi +39 -4
- data/rbi/metronome_sdk/resources/v1/billable_metrics.rbi +54 -4
- data/rbi/metronome_sdk/resources/v1/contracts/products.rbi +25 -5
- data/rbi/metronome_sdk/resources/v1/contracts/rate_cards/product_orders.rbi +7 -2
- data/rbi/metronome_sdk/resources/v1/contracts/rate_cards/rates.rbi +10 -3
- data/rbi/metronome_sdk/resources/v1/contracts/rate_cards.rbi +109 -9
- data/rbi/metronome_sdk/resources/v1/contracts.rbi +257 -16
- data/rbi/metronome_sdk/resources/v1/credit_grants.rbi +5 -1
- data/rbi/metronome_sdk/resources/v1/custom_fields.rbi +57 -14
- data/rbi/metronome_sdk/resources/v1/customers/alerts.rbi +108 -5
- data/rbi/metronome_sdk/resources/v1/customers/commits.rbi +119 -10
- data/rbi/metronome_sdk/resources/v1/customers/credits.rbi +104 -9
- data/rbi/metronome_sdk/resources/v1/customers/invoices.rbi +123 -7
- data/rbi/metronome_sdk/resources/v1/customers.rbi +156 -11
- data/rbi/metronome_sdk/resources/v1/dashboards.rbi +29 -3
- data/rbi/metronome_sdk/resources/v1/invoices.rbi +23 -2
- data/rbi/metronome_sdk/resources/v1/pricing_units.rbi +6 -1
- data/rbi/metronome_sdk/resources/v1/services.rbi +6 -4
- data/rbi/metronome_sdk/resources/v1/usage.rbi +188 -12
- data/rbi/metronome_sdk/resources/v2/contracts.rbi +120 -23
- data/sig/metronome_sdk/internal/body_cursor_page.rbs +13 -0
- data/sig/metronome_sdk/internal/cursor_page_without_limit.rbs +13 -0
- data/sig/metronome_sdk/models/base_threshold_commit.rbs +26 -0
- data/sig/metronome_sdk/models/commit.rbs +17 -170
- data/sig/metronome_sdk/models/commit_hierarchy_configuration.rbs +117 -0
- data/sig/metronome_sdk/models/commit_rate.rbs +48 -0
- data/sig/metronome_sdk/models/commit_specifier.rbs +47 -0
- data/sig/metronome_sdk/models/commit_specifier_input.rbs +47 -0
- data/sig/metronome_sdk/models/contract.rbs +398 -0
- data/sig/metronome_sdk/models/contract_v2.rbs +2881 -0
- data/sig/metronome_sdk/models/contract_without_amendments.rbs +54 -976
- data/sig/metronome_sdk/models/credit.rbs +12 -170
- data/sig/metronome_sdk/models/hierarchy_configuration.rbs +71 -0
- data/sig/metronome_sdk/models/override.rbs +12 -101
- data/sig/metronome_sdk/models/override_tier.rbs +17 -0
- data/sig/metronome_sdk/models/overwrite_rate.rbs +78 -0
- data/sig/metronome_sdk/models/payment_gate_config.rbs +123 -0
- data/sig/metronome_sdk/models/payment_gate_config_v2.rbs +123 -0
- data/sig/metronome_sdk/models/prepaid_balance_threshold_configuration.rbs +82 -0
- data/sig/metronome_sdk/models/prepaid_balance_threshold_configuration_v2.rbs +82 -0
- data/sig/metronome_sdk/models/recurring_commit_subscription_config.rbs +51 -0
- data/sig/metronome_sdk/models/spend_threshold_configuration.rbs +35 -0
- data/sig/metronome_sdk/models/spend_threshold_configuration_v2.rbs +35 -0
- data/sig/metronome_sdk/models/subscription.rbs +215 -0
- data/sig/metronome_sdk/models/update_base_threshold_commit.rbs +28 -0
- data/sig/metronome_sdk/models/v1/alert_create_params.rbs +4 -2
- data/sig/metronome_sdk/models/v1/contract_amend_params.rbs +24 -340
- data/sig/metronome_sdk/models/v1/contract_create_params.rbs +168 -1219
- data/sig/metronome_sdk/models/v1/contract_list_balances_response.rbs +4 -25
- data/sig/metronome_sdk/models/v1/contract_list_response.rbs +4 -1041
- data/sig/metronome_sdk/models/v1/contract_retrieve_rate_schedule_response.rbs +6 -54
- data/sig/metronome_sdk/models/v1/contract_retrieve_response.rbs +4 -1041
- data/sig/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_response.rbs +6 -54
- data/sig/metronome_sdk/models/v1/contracts/rate_cards/rate_add_many_params.rbs +6 -54
- data/sig/metronome_sdk/models/v1/contracts/rate_cards/rate_add_params.rbs +6 -54
- data/sig/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rbs +6 -54
- data/sig/metronome_sdk/models/v1/contracts/rate_cards/rate_list_response.rbs +6 -54
- data/sig/metronome_sdk/models/v1/credit_grant_list_entries_response.rbs +72 -94
- data/sig/metronome_sdk/models/v1/custom_field_list_keys_response.rbs +53 -75
- data/sig/metronome_sdk/models/v1/customer_create_params.rbs +31 -4
- data/sig/metronome_sdk/models/v1/customer_retrieve_billing_configurations_params.rbs +32 -0
- data/sig/metronome_sdk/models/v1/customer_retrieve_billing_configurations_response.rbs +113 -0
- data/sig/metronome_sdk/models/v1/customer_set_billing_configurations_params.rbs +133 -0
- data/sig/metronome_sdk/models/v1/customers/alert_retrieve_params.rbs +21 -0
- data/sig/metronome_sdk/models/v1/customers/billing_config_create_params.rbs +7 -1
- data/sig/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rbs +6 -1
- data/sig/metronome_sdk/models/v1/customers/commit_create_params.rbs +6 -50
- data/sig/metronome_sdk/models/v1/customers/credit_create_params.rbs +6 -50
- data/sig/metronome_sdk/models/v1/customers/customer_alert.rbs +4 -2
- data/sig/metronome_sdk/models/v1/usage_list_response.rbs +33 -55
- data/sig/metronome_sdk/models/v2/contract_edit_commit_params.rbs +19 -43
- data/sig/metronome_sdk/models/v2/contract_edit_credit_params.rbs +19 -43
- data/sig/metronome_sdk/models/v2/contract_edit_params.rbs +361 -1917
- data/sig/metronome_sdk/models/v2/contract_get_edit_history_response.rbs +242 -2252
- data/sig/metronome_sdk/models/v2/contract_list_response.rbs +4 -4426
- data/sig/metronome_sdk/models/v2/contract_retrieve_response.rbs +4 -4426
- data/sig/metronome_sdk/models.rbs +38 -0
- data/sig/metronome_sdk/resources/v1/contracts/rate_cards/rates.rbs +1 -1
- data/sig/metronome_sdk/resources/v1/contracts.rbs +3 -3
- data/sig/metronome_sdk/resources/v1/credit_grants.rbs +1 -1
- data/sig/metronome_sdk/resources/v1/custom_fields.rbs +1 -1
- data/sig/metronome_sdk/resources/v1/customers/alerts.rbs +2 -1
- data/sig/metronome_sdk/resources/v1/customers/commits.rbs +2 -2
- data/sig/metronome_sdk/resources/v1/customers/credits.rbs +2 -2
- data/sig/metronome_sdk/resources/v1/customers.rbs +11 -0
- data/sig/metronome_sdk/resources/v1/usage.rbs +1 -1
- data/sig/metronome_sdk/resources/v2/contracts.rbs +7 -4
- metadata +74 -11
- data/lib/metronome_sdk/models/v1/customers/alert_list_response.rb +0 -29
- data/lib/metronome_sdk/models/v1/customers/commit_list_response.rb +0 -26
- data/lib/metronome_sdk/models/v1/customers/credit_list_response.rb +0 -26
- data/rbi/metronome_sdk/models/v1/customers/alert_list_response.rbi +0 -46
- data/rbi/metronome_sdk/models/v1/customers/commit_list_response.rbi +0 -45
- data/rbi/metronome_sdk/models/v1/customers/credit_list_response.rbi +0 -45
- data/sig/metronome_sdk/models/v1/customers/alert_list_response.rbs +0 -29
- data/sig/metronome_sdk/models/v1/customers/commit_list_response.rbs +0 -26
- data/sig/metronome_sdk/models/v1/customers/credit_list_response.rbs +0 -26
@@ -9,19 +9,20 @@ module MetronomeSDK
|
|
9
9
|
add_credits: ::Array[MetronomeSDK::V2::ContractEditParams::AddCredit],
|
10
10
|
add_discounts: ::Array[MetronomeSDK::V2::ContractEditParams::AddDiscount],
|
11
11
|
add_overrides: ::Array[MetronomeSDK::V2::ContractEditParams::AddOverride],
|
12
|
-
add_prepaid_balance_threshold_configuration: MetronomeSDK::
|
12
|
+
add_prepaid_balance_threshold_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2,
|
13
13
|
add_professional_services: ::Array[MetronomeSDK::V2::ContractEditParams::AddProfessionalService],
|
14
14
|
add_recurring_commits: ::Array[MetronomeSDK::V2::ContractEditParams::AddRecurringCommit],
|
15
15
|
add_recurring_credits: ::Array[MetronomeSDK::V2::ContractEditParams::AddRecurringCredit],
|
16
16
|
add_reseller_royalties: ::Array[MetronomeSDK::V2::ContractEditParams::AddResellerRoyalty],
|
17
17
|
add_scheduled_charges: ::Array[MetronomeSDK::V2::ContractEditParams::AddScheduledCharge],
|
18
|
-
add_spend_threshold_configuration: MetronomeSDK::
|
18
|
+
add_spend_threshold_configuration: MetronomeSDK::SpendThresholdConfigurationV2,
|
19
19
|
add_subscriptions: ::Array[MetronomeSDK::V2::ContractEditParams::AddSubscription],
|
20
20
|
allow_contract_ending_before_finalized_invoice: bool,
|
21
21
|
archive_commits: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveCommit],
|
22
22
|
archive_credits: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveCredit],
|
23
23
|
archive_scheduled_charges: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveScheduledCharge],
|
24
24
|
remove_overrides: ::Array[MetronomeSDK::V2::ContractEditParams::RemoveOverride],
|
25
|
+
uniqueness_key: String,
|
25
26
|
update_commits: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit],
|
26
27
|
update_contract_end_date: Time?,
|
27
28
|
update_contract_name: String?,
|
@@ -67,11 +68,11 @@ module MetronomeSDK
|
|
67
68
|
::Array[MetronomeSDK::V2::ContractEditParams::AddOverride]
|
68
69
|
) -> ::Array[MetronomeSDK::V2::ContractEditParams::AddOverride]
|
69
70
|
|
70
|
-
attr_reader add_prepaid_balance_threshold_configuration: MetronomeSDK::
|
71
|
+
attr_reader add_prepaid_balance_threshold_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2?
|
71
72
|
|
72
73
|
def add_prepaid_balance_threshold_configuration=: (
|
73
|
-
MetronomeSDK::
|
74
|
-
) -> MetronomeSDK::
|
74
|
+
MetronomeSDK::PrepaidBalanceThresholdConfigurationV2
|
75
|
+
) -> MetronomeSDK::PrepaidBalanceThresholdConfigurationV2
|
75
76
|
|
76
77
|
attr_reader add_professional_services: ::Array[MetronomeSDK::V2::ContractEditParams::AddProfessionalService]?
|
77
78
|
|
@@ -103,11 +104,11 @@ module MetronomeSDK
|
|
103
104
|
::Array[MetronomeSDK::V2::ContractEditParams::AddScheduledCharge]
|
104
105
|
) -> ::Array[MetronomeSDK::V2::ContractEditParams::AddScheduledCharge]
|
105
106
|
|
106
|
-
attr_reader add_spend_threshold_configuration: MetronomeSDK::
|
107
|
+
attr_reader add_spend_threshold_configuration: MetronomeSDK::SpendThresholdConfigurationV2?
|
107
108
|
|
108
109
|
def add_spend_threshold_configuration=: (
|
109
|
-
MetronomeSDK::
|
110
|
-
) -> MetronomeSDK::
|
110
|
+
MetronomeSDK::SpendThresholdConfigurationV2
|
111
|
+
) -> MetronomeSDK::SpendThresholdConfigurationV2
|
111
112
|
|
112
113
|
attr_reader add_subscriptions: ::Array[MetronomeSDK::V2::ContractEditParams::AddSubscription]?
|
113
114
|
|
@@ -143,6 +144,10 @@ module MetronomeSDK
|
|
143
144
|
::Array[MetronomeSDK::V2::ContractEditParams::RemoveOverride]
|
144
145
|
) -> ::Array[MetronomeSDK::V2::ContractEditParams::RemoveOverride]
|
145
146
|
|
147
|
+
attr_reader uniqueness_key: String?
|
148
|
+
|
149
|
+
def uniqueness_key=: (String) -> String
|
150
|
+
|
146
151
|
attr_reader update_commits: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit]?
|
147
152
|
|
148
153
|
def update_commits=: (
|
@@ -202,19 +207,20 @@ module MetronomeSDK
|
|
202
207
|
?add_credits: ::Array[MetronomeSDK::V2::ContractEditParams::AddCredit],
|
203
208
|
?add_discounts: ::Array[MetronomeSDK::V2::ContractEditParams::AddDiscount],
|
204
209
|
?add_overrides: ::Array[MetronomeSDK::V2::ContractEditParams::AddOverride],
|
205
|
-
?add_prepaid_balance_threshold_configuration: MetronomeSDK::
|
210
|
+
?add_prepaid_balance_threshold_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2,
|
206
211
|
?add_professional_services: ::Array[MetronomeSDK::V2::ContractEditParams::AddProfessionalService],
|
207
212
|
?add_recurring_commits: ::Array[MetronomeSDK::V2::ContractEditParams::AddRecurringCommit],
|
208
213
|
?add_recurring_credits: ::Array[MetronomeSDK::V2::ContractEditParams::AddRecurringCredit],
|
209
214
|
?add_reseller_royalties: ::Array[MetronomeSDK::V2::ContractEditParams::AddResellerRoyalty],
|
210
215
|
?add_scheduled_charges: ::Array[MetronomeSDK::V2::ContractEditParams::AddScheduledCharge],
|
211
|
-
?add_spend_threshold_configuration: MetronomeSDK::
|
216
|
+
?add_spend_threshold_configuration: MetronomeSDK::SpendThresholdConfigurationV2,
|
212
217
|
?add_subscriptions: ::Array[MetronomeSDK::V2::ContractEditParams::AddSubscription],
|
213
218
|
?allow_contract_ending_before_finalized_invoice: bool,
|
214
219
|
?archive_commits: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveCommit],
|
215
220
|
?archive_credits: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveCredit],
|
216
221
|
?archive_scheduled_charges: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveScheduledCharge],
|
217
222
|
?remove_overrides: ::Array[MetronomeSDK::V2::ContractEditParams::RemoveOverride],
|
223
|
+
?uniqueness_key: String,
|
218
224
|
?update_commits: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit],
|
219
225
|
?update_contract_end_date: Time?,
|
220
226
|
?update_contract_name: String?,
|
@@ -235,19 +241,20 @@ module MetronomeSDK
|
|
235
241
|
add_credits: ::Array[MetronomeSDK::V2::ContractEditParams::AddCredit],
|
236
242
|
add_discounts: ::Array[MetronomeSDK::V2::ContractEditParams::AddDiscount],
|
237
243
|
add_overrides: ::Array[MetronomeSDK::V2::ContractEditParams::AddOverride],
|
238
|
-
add_prepaid_balance_threshold_configuration: MetronomeSDK::
|
244
|
+
add_prepaid_balance_threshold_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2,
|
239
245
|
add_professional_services: ::Array[MetronomeSDK::V2::ContractEditParams::AddProfessionalService],
|
240
246
|
add_recurring_commits: ::Array[MetronomeSDK::V2::ContractEditParams::AddRecurringCommit],
|
241
247
|
add_recurring_credits: ::Array[MetronomeSDK::V2::ContractEditParams::AddRecurringCredit],
|
242
248
|
add_reseller_royalties: ::Array[MetronomeSDK::V2::ContractEditParams::AddResellerRoyalty],
|
243
249
|
add_scheduled_charges: ::Array[MetronomeSDK::V2::ContractEditParams::AddScheduledCharge],
|
244
|
-
add_spend_threshold_configuration: MetronomeSDK::
|
250
|
+
add_spend_threshold_configuration: MetronomeSDK::SpendThresholdConfigurationV2,
|
245
251
|
add_subscriptions: ::Array[MetronomeSDK::V2::ContractEditParams::AddSubscription],
|
246
252
|
allow_contract_ending_before_finalized_invoice: bool,
|
247
253
|
archive_commits: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveCommit],
|
248
254
|
archive_credits: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveCredit],
|
249
255
|
archive_scheduled_charges: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveScheduledCharge],
|
250
256
|
remove_overrides: ::Array[MetronomeSDK::V2::ContractEditParams::RemoveOverride],
|
257
|
+
uniqueness_key: String,
|
251
258
|
update_commits: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit],
|
252
259
|
update_contract_end_date: Time?,
|
253
260
|
update_contract_name: String?,
|
@@ -271,7 +278,7 @@ module MetronomeSDK
|
|
271
278
|
applicable_product_tags: ::Array[String],
|
272
279
|
custom_fields: ::Hash[Symbol, String],
|
273
280
|
description: String,
|
274
|
-
hierarchy_configuration: MetronomeSDK::
|
281
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
275
282
|
invoice_schedule: MetronomeSDK::V2::ContractEditParams::AddCommit::InvoiceSchedule,
|
276
283
|
name: String,
|
277
284
|
netsuite_sales_order_id: String,
|
@@ -279,7 +286,7 @@ module MetronomeSDK
|
|
279
286
|
priority: Float,
|
280
287
|
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::rate_type,
|
281
288
|
rollover_fraction: Float,
|
282
|
-
specifiers: ::Array[MetronomeSDK::
|
289
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
283
290
|
temporary_id: String
|
284
291
|
}
|
285
292
|
|
@@ -314,11 +321,11 @@ module MetronomeSDK
|
|
314
321
|
|
315
322
|
def description=: (String) -> String
|
316
323
|
|
317
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
324
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
318
325
|
|
319
326
|
def hierarchy_configuration=: (
|
320
|
-
MetronomeSDK::
|
321
|
-
) -> MetronomeSDK::
|
327
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
328
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
322
329
|
|
323
330
|
attr_reader invoice_schedule: MetronomeSDK::V2::ContractEditParams::AddCommit::InvoiceSchedule?
|
324
331
|
|
@@ -354,11 +361,11 @@ module MetronomeSDK
|
|
354
361
|
|
355
362
|
def rollover_fraction=: (Float) -> Float
|
356
363
|
|
357
|
-
attr_reader specifiers: ::Array[MetronomeSDK::
|
364
|
+
attr_reader specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
358
365
|
|
359
366
|
def specifiers=: (
|
360
|
-
::Array[MetronomeSDK::
|
361
|
-
) -> ::Array[MetronomeSDK::
|
367
|
+
::Array[MetronomeSDK::CommitSpecifierInput]
|
368
|
+
) -> ::Array[MetronomeSDK::CommitSpecifierInput]
|
362
369
|
|
363
370
|
attr_reader temporary_id: String?
|
364
371
|
|
@@ -373,7 +380,7 @@ module MetronomeSDK
|
|
373
380
|
?applicable_product_tags: ::Array[String],
|
374
381
|
?custom_fields: ::Hash[Symbol, String],
|
375
382
|
?description: String,
|
376
|
-
?hierarchy_configuration: MetronomeSDK::
|
383
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
377
384
|
?invoice_schedule: MetronomeSDK::V2::ContractEditParams::AddCommit::InvoiceSchedule,
|
378
385
|
?name: String,
|
379
386
|
?netsuite_sales_order_id: String,
|
@@ -381,7 +388,7 @@ module MetronomeSDK
|
|
381
388
|
?priority: Float,
|
382
389
|
?rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::rate_type,
|
383
390
|
?rollover_fraction: Float,
|
384
|
-
?specifiers: ::Array[MetronomeSDK::
|
391
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
385
392
|
?temporary_id: String
|
386
393
|
) -> void
|
387
394
|
|
@@ -394,7 +401,7 @@ module MetronomeSDK
|
|
394
401
|
applicable_product_tags: ::Array[String],
|
395
402
|
custom_fields: ::Hash[Symbol, String],
|
396
403
|
description: String,
|
397
|
-
hierarchy_configuration: MetronomeSDK::
|
404
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
398
405
|
invoice_schedule: MetronomeSDK::V2::ContractEditParams::AddCommit::InvoiceSchedule,
|
399
406
|
name: String,
|
400
407
|
netsuite_sales_order_id: String,
|
@@ -402,7 +409,7 @@ module MetronomeSDK
|
|
402
409
|
priority: Float,
|
403
410
|
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::rate_type,
|
404
411
|
rollover_fraction: Float,
|
405
|
-
specifiers: ::Array[MetronomeSDK::
|
412
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
406
413
|
temporary_id: String
|
407
414
|
}
|
408
415
|
|
@@ -464,120 +471,6 @@ module MetronomeSDK
|
|
464
471
|
end
|
465
472
|
end
|
466
473
|
|
467
|
-
type hierarchy_configuration =
|
468
|
-
{
|
469
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::child_access
|
470
|
-
}
|
471
|
-
|
472
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
473
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::child_access
|
474
|
-
|
475
|
-
def initialize: (
|
476
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::child_access
|
477
|
-
) -> void
|
478
|
-
|
479
|
-
def to_hash: -> {
|
480
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::child_access
|
481
|
-
}
|
482
|
-
|
483
|
-
type child_access =
|
484
|
-
MetronomeSDK::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
485
|
-
| MetronomeSDK::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
486
|
-
| MetronomeSDK::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
487
|
-
|
488
|
-
module ChildAccess
|
489
|
-
extend MetronomeSDK::Internal::Type::Union
|
490
|
-
|
491
|
-
type commit_hierarchy_child_access_all =
|
492
|
-
{
|
493
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
494
|
-
}
|
495
|
-
|
496
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
497
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
498
|
-
|
499
|
-
def initialize: (
|
500
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
501
|
-
) -> void
|
502
|
-
|
503
|
-
def to_hash: -> {
|
504
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
505
|
-
}
|
506
|
-
|
507
|
-
type type_ = :ALL
|
508
|
-
|
509
|
-
module Type
|
510
|
-
extend MetronomeSDK::Internal::Type::Enum
|
511
|
-
|
512
|
-
ALL: :ALL
|
513
|
-
|
514
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
515
|
-
end
|
516
|
-
end
|
517
|
-
|
518
|
-
type commit_hierarchy_child_access_none =
|
519
|
-
{
|
520
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
521
|
-
}
|
522
|
-
|
523
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
524
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
525
|
-
|
526
|
-
def initialize: (
|
527
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
528
|
-
) -> void
|
529
|
-
|
530
|
-
def to_hash: -> {
|
531
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
532
|
-
}
|
533
|
-
|
534
|
-
type type_ = :NONE
|
535
|
-
|
536
|
-
module Type
|
537
|
-
extend MetronomeSDK::Internal::Type::Enum
|
538
|
-
|
539
|
-
NONE: :NONE
|
540
|
-
|
541
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
542
|
-
end
|
543
|
-
end
|
544
|
-
|
545
|
-
type commit_hierarchy_child_access_contract_ids =
|
546
|
-
{
|
547
|
-
contract_ids: ::Array[String],
|
548
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
549
|
-
}
|
550
|
-
|
551
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
552
|
-
attr_accessor contract_ids: ::Array[String]
|
553
|
-
|
554
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
555
|
-
|
556
|
-
def initialize: (
|
557
|
-
contract_ids: ::Array[String],
|
558
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
559
|
-
) -> void
|
560
|
-
|
561
|
-
def to_hash: -> {
|
562
|
-
contract_ids: ::Array[String],
|
563
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
564
|
-
}
|
565
|
-
|
566
|
-
type type_ = :CONTRACT_IDS
|
567
|
-
|
568
|
-
module Type
|
569
|
-
extend MetronomeSDK::Internal::Type::Enum
|
570
|
-
|
571
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
572
|
-
|
573
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
574
|
-
end
|
575
|
-
end
|
576
|
-
|
577
|
-
def self?.variants: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::child_access]
|
578
|
-
end
|
579
|
-
end
|
580
|
-
|
581
474
|
type invoice_schedule =
|
582
475
|
{
|
583
476
|
credit_type_id: String,
|
@@ -878,50 +771,6 @@ module MetronomeSDK
|
|
878
771
|
|
879
772
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCommit::rate_type]
|
880
773
|
end
|
881
|
-
|
882
|
-
type specifier =
|
883
|
-
{
|
884
|
-
presentation_group_values: ::Hash[Symbol, String],
|
885
|
-
pricing_group_values: ::Hash[Symbol, String],
|
886
|
-
product_id: String,
|
887
|
-
product_tags: ::Array[String]
|
888
|
-
}
|
889
|
-
|
890
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
891
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
892
|
-
|
893
|
-
def presentation_group_values=: (
|
894
|
-
::Hash[Symbol, String]
|
895
|
-
) -> ::Hash[Symbol, String]
|
896
|
-
|
897
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
898
|
-
|
899
|
-
def pricing_group_values=: (
|
900
|
-
::Hash[Symbol, String]
|
901
|
-
) -> ::Hash[Symbol, String]
|
902
|
-
|
903
|
-
attr_reader product_id: String?
|
904
|
-
|
905
|
-
def product_id=: (String) -> String
|
906
|
-
|
907
|
-
attr_reader product_tags: ::Array[String]?
|
908
|
-
|
909
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
910
|
-
|
911
|
-
def initialize: (
|
912
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
913
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
914
|
-
?product_id: String,
|
915
|
-
?product_tags: ::Array[String]
|
916
|
-
) -> void
|
917
|
-
|
918
|
-
def to_hash: -> {
|
919
|
-
presentation_group_values: ::Hash[Symbol, String],
|
920
|
-
pricing_group_values: ::Hash[Symbol, String],
|
921
|
-
product_id: String,
|
922
|
-
product_tags: ::Array[String]
|
923
|
-
}
|
924
|
-
end
|
925
774
|
end
|
926
775
|
|
927
776
|
type add_credit =
|
@@ -932,12 +781,12 @@ module MetronomeSDK
|
|
932
781
|
applicable_product_tags: ::Array[String],
|
933
782
|
custom_fields: ::Hash[Symbol, String],
|
934
783
|
description: String,
|
935
|
-
hierarchy_configuration: MetronomeSDK::
|
784
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
936
785
|
name: String,
|
937
786
|
netsuite_sales_order_id: String,
|
938
787
|
priority: Float,
|
939
788
|
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::rate_type,
|
940
|
-
specifiers: ::Array[MetronomeSDK::
|
789
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]
|
941
790
|
}
|
942
791
|
|
943
792
|
class AddCredit < MetronomeSDK::Internal::Type::BaseModel
|
@@ -961,11 +810,11 @@ module MetronomeSDK
|
|
961
810
|
|
962
811
|
def description=: (String) -> String
|
963
812
|
|
964
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
813
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
965
814
|
|
966
815
|
def hierarchy_configuration=: (
|
967
|
-
MetronomeSDK::
|
968
|
-
) -> MetronomeSDK::
|
816
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
817
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
969
818
|
|
970
819
|
attr_reader name: String?
|
971
820
|
|
@@ -985,11 +834,11 @@ module MetronomeSDK
|
|
985
834
|
MetronomeSDK::Models::V2::ContractEditParams::AddCredit::rate_type
|
986
835
|
) -> MetronomeSDK::Models::V2::ContractEditParams::AddCredit::rate_type
|
987
836
|
|
988
|
-
attr_reader specifiers: ::Array[MetronomeSDK::
|
837
|
+
attr_reader specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
989
838
|
|
990
839
|
def specifiers=: (
|
991
|
-
::Array[MetronomeSDK::
|
992
|
-
) -> ::Array[MetronomeSDK::
|
840
|
+
::Array[MetronomeSDK::CommitSpecifierInput]
|
841
|
+
) -> ::Array[MetronomeSDK::CommitSpecifierInput]
|
993
842
|
|
994
843
|
def initialize: (
|
995
844
|
access_schedule: MetronomeSDK::V2::ContractEditParams::AddCredit::AccessSchedule,
|
@@ -998,12 +847,12 @@ module MetronomeSDK
|
|
998
847
|
?applicable_product_tags: ::Array[String],
|
999
848
|
?custom_fields: ::Hash[Symbol, String],
|
1000
849
|
?description: String,
|
1001
|
-
?hierarchy_configuration: MetronomeSDK::
|
850
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
1002
851
|
?name: String,
|
1003
852
|
?netsuite_sales_order_id: String,
|
1004
853
|
?priority: Float,
|
1005
854
|
?rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::rate_type,
|
1006
|
-
?specifiers: ::Array[MetronomeSDK::
|
855
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]
|
1007
856
|
) -> void
|
1008
857
|
|
1009
858
|
def to_hash: -> {
|
@@ -1013,12 +862,12 @@ module MetronomeSDK
|
|
1013
862
|
applicable_product_tags: ::Array[String],
|
1014
863
|
custom_fields: ::Hash[Symbol, String],
|
1015
864
|
description: String,
|
1016
|
-
hierarchy_configuration: MetronomeSDK::
|
865
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
1017
866
|
name: String,
|
1018
867
|
netsuite_sales_order_id: String,
|
1019
868
|
priority: Float,
|
1020
869
|
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::rate_type,
|
1021
|
-
specifiers: ::Array[MetronomeSDK::
|
870
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]
|
1022
871
|
}
|
1023
872
|
|
1024
873
|
type access_schedule =
|
@@ -1068,120 +917,6 @@ module MetronomeSDK
|
|
1068
917
|
end
|
1069
918
|
end
|
1070
919
|
|
1071
|
-
type hierarchy_configuration =
|
1072
|
-
{
|
1073
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::child_access
|
1074
|
-
}
|
1075
|
-
|
1076
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
1077
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::child_access
|
1078
|
-
|
1079
|
-
def initialize: (
|
1080
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::child_access
|
1081
|
-
) -> void
|
1082
|
-
|
1083
|
-
def to_hash: -> {
|
1084
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::child_access
|
1085
|
-
}
|
1086
|
-
|
1087
|
-
type child_access =
|
1088
|
-
MetronomeSDK::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
1089
|
-
| MetronomeSDK::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
1090
|
-
| MetronomeSDK::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
1091
|
-
|
1092
|
-
module ChildAccess
|
1093
|
-
extend MetronomeSDK::Internal::Type::Union
|
1094
|
-
|
1095
|
-
type commit_hierarchy_child_access_all =
|
1096
|
-
{
|
1097
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
1098
|
-
}
|
1099
|
-
|
1100
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
1101
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
1102
|
-
|
1103
|
-
def initialize: (
|
1104
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
1105
|
-
) -> void
|
1106
|
-
|
1107
|
-
def to_hash: -> {
|
1108
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
1109
|
-
}
|
1110
|
-
|
1111
|
-
type type_ = :ALL
|
1112
|
-
|
1113
|
-
module Type
|
1114
|
-
extend MetronomeSDK::Internal::Type::Enum
|
1115
|
-
|
1116
|
-
ALL: :ALL
|
1117
|
-
|
1118
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
1119
|
-
end
|
1120
|
-
end
|
1121
|
-
|
1122
|
-
type commit_hierarchy_child_access_none =
|
1123
|
-
{
|
1124
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
1125
|
-
}
|
1126
|
-
|
1127
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
1128
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
1129
|
-
|
1130
|
-
def initialize: (
|
1131
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
1132
|
-
) -> void
|
1133
|
-
|
1134
|
-
def to_hash: -> {
|
1135
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
1136
|
-
}
|
1137
|
-
|
1138
|
-
type type_ = :NONE
|
1139
|
-
|
1140
|
-
module Type
|
1141
|
-
extend MetronomeSDK::Internal::Type::Enum
|
1142
|
-
|
1143
|
-
NONE: :NONE
|
1144
|
-
|
1145
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
1146
|
-
end
|
1147
|
-
end
|
1148
|
-
|
1149
|
-
type commit_hierarchy_child_access_contract_ids =
|
1150
|
-
{
|
1151
|
-
contract_ids: ::Array[String],
|
1152
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
1153
|
-
}
|
1154
|
-
|
1155
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
1156
|
-
attr_accessor contract_ids: ::Array[String]
|
1157
|
-
|
1158
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
1159
|
-
|
1160
|
-
def initialize: (
|
1161
|
-
contract_ids: ::Array[String],
|
1162
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
1163
|
-
) -> void
|
1164
|
-
|
1165
|
-
def to_hash: -> {
|
1166
|
-
contract_ids: ::Array[String],
|
1167
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
1168
|
-
}
|
1169
|
-
|
1170
|
-
type type_ = :CONTRACT_IDS
|
1171
|
-
|
1172
|
-
module Type
|
1173
|
-
extend MetronomeSDK::Internal::Type::Enum
|
1174
|
-
|
1175
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
1176
|
-
|
1177
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
1178
|
-
end
|
1179
|
-
end
|
1180
|
-
|
1181
|
-
def self?.variants: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::child_access]
|
1182
|
-
end
|
1183
|
-
end
|
1184
|
-
|
1185
920
|
type rate_type = :COMMIT_RATE | :LIST_RATE
|
1186
921
|
|
1187
922
|
module RateType
|
@@ -1192,50 +927,6 @@ module MetronomeSDK
|
|
1192
927
|
|
1193
928
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCredit::rate_type]
|
1194
929
|
end
|
1195
|
-
|
1196
|
-
type specifier =
|
1197
|
-
{
|
1198
|
-
presentation_group_values: ::Hash[Symbol, String],
|
1199
|
-
pricing_group_values: ::Hash[Symbol, String],
|
1200
|
-
product_id: String,
|
1201
|
-
product_tags: ::Array[String]
|
1202
|
-
}
|
1203
|
-
|
1204
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
1205
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
1206
|
-
|
1207
|
-
def presentation_group_values=: (
|
1208
|
-
::Hash[Symbol, String]
|
1209
|
-
) -> ::Hash[Symbol, String]
|
1210
|
-
|
1211
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
1212
|
-
|
1213
|
-
def pricing_group_values=: (
|
1214
|
-
::Hash[Symbol, String]
|
1215
|
-
) -> ::Hash[Symbol, String]
|
1216
|
-
|
1217
|
-
attr_reader product_id: String?
|
1218
|
-
|
1219
|
-
def product_id=: (String) -> String
|
1220
|
-
|
1221
|
-
attr_reader product_tags: ::Array[String]?
|
1222
|
-
|
1223
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
1224
|
-
|
1225
|
-
def initialize: (
|
1226
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
1227
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
1228
|
-
?product_id: String,
|
1229
|
-
?product_tags: ::Array[String]
|
1230
|
-
) -> void
|
1231
|
-
|
1232
|
-
def to_hash: -> {
|
1233
|
-
presentation_group_values: ::Hash[Symbol, String],
|
1234
|
-
pricing_group_values: ::Hash[Symbol, String],
|
1235
|
-
product_id: String,
|
1236
|
-
product_tags: ::Array[String]
|
1237
|
-
}
|
1238
|
-
end
|
1239
930
|
end
|
1240
931
|
|
1241
932
|
type add_discount =
|
@@ -1754,378 +1445,115 @@ module MetronomeSDK
|
|
1754
1445
|
end
|
1755
1446
|
end
|
1756
1447
|
|
1757
|
-
type
|
1448
|
+
type add_professional_service =
|
1758
1449
|
{
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1450
|
+
max_amount: Float,
|
1451
|
+
product_id: String,
|
1452
|
+
quantity: Float,
|
1453
|
+
unit_price: Float,
|
1454
|
+
custom_fields: ::Hash[Symbol, String],
|
1455
|
+
description: String,
|
1456
|
+
netsuite_sales_order_id: String
|
1765
1457
|
}
|
1766
1458
|
|
1767
|
-
class
|
1768
|
-
attr_accessor
|
1459
|
+
class AddProfessionalService < MetronomeSDK::Internal::Type::BaseModel
|
1460
|
+
attr_accessor max_amount: Float
|
1461
|
+
|
1462
|
+
attr_accessor product_id: String
|
1463
|
+
|
1464
|
+
attr_accessor quantity: Float
|
1465
|
+
|
1466
|
+
attr_accessor unit_price: Float
|
1769
1467
|
|
1770
|
-
|
1468
|
+
attr_reader custom_fields: ::Hash[Symbol, String]?
|
1771
1469
|
|
1772
|
-
|
1470
|
+
def custom_fields=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
1773
1471
|
|
1774
|
-
|
1472
|
+
attr_reader description: String?
|
1775
1473
|
|
1776
|
-
|
1474
|
+
def description=: (String) -> String
|
1777
1475
|
|
1778
|
-
attr_reader
|
1476
|
+
attr_reader netsuite_sales_order_id: String?
|
1779
1477
|
|
1780
|
-
def
|
1478
|
+
def netsuite_sales_order_id=: (String) -> String
|
1781
1479
|
|
1782
1480
|
def initialize: (
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
?
|
1481
|
+
max_amount: Float,
|
1482
|
+
product_id: String,
|
1483
|
+
quantity: Float,
|
1484
|
+
unit_price: Float,
|
1485
|
+
?custom_fields: ::Hash[Symbol, String],
|
1486
|
+
?description: String,
|
1487
|
+
?netsuite_sales_order_id: String
|
1789
1488
|
) -> void
|
1790
1489
|
|
1791
1490
|
def to_hash: -> {
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1491
|
+
max_amount: Float,
|
1492
|
+
product_id: String,
|
1493
|
+
quantity: Float,
|
1494
|
+
unit_price: Float,
|
1495
|
+
custom_fields: ::Hash[Symbol, String],
|
1496
|
+
description: String,
|
1497
|
+
netsuite_sales_order_id: String
|
1798
1498
|
}
|
1499
|
+
end
|
1799
1500
|
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
1501
|
+
type add_recurring_commit =
|
1502
|
+
{
|
1503
|
+
access_amount: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::AccessAmount,
|
1504
|
+
commit_duration: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::CommitDuration,
|
1505
|
+
priority: Float,
|
1506
|
+
product_id: String,
|
1507
|
+
starting_at: Time,
|
1508
|
+
applicable_product_ids: ::Array[String],
|
1509
|
+
applicable_product_tags: ::Array[String],
|
1510
|
+
description: String,
|
1511
|
+
ending_before: Time,
|
1512
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
1513
|
+
invoice_amount: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::InvoiceAmount,
|
1514
|
+
name: String,
|
1515
|
+
netsuite_sales_order_id: String,
|
1516
|
+
proration: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::proration,
|
1517
|
+
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::rate_type,
|
1518
|
+
recurrence_frequency: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::recurrence_frequency,
|
1519
|
+
rollover_fraction: Float,
|
1520
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
1521
|
+
subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::SubscriptionConfig,
|
1522
|
+
temporary_id: String
|
1523
|
+
}
|
1809
1524
|
|
1810
|
-
|
1811
|
-
|
1525
|
+
class AddRecurringCommit < MetronomeSDK::Internal::Type::BaseModel
|
1526
|
+
attr_accessor access_amount: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::AccessAmount
|
1812
1527
|
|
1813
|
-
|
1528
|
+
attr_accessor commit_duration: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::CommitDuration
|
1814
1529
|
|
1815
|
-
|
1530
|
+
attr_accessor priority: Float
|
1816
1531
|
|
1817
|
-
|
1532
|
+
attr_accessor product_id: String
|
1818
1533
|
|
1819
|
-
|
1534
|
+
attr_accessor starting_at: Time
|
1820
1535
|
|
1821
|
-
|
1536
|
+
attr_reader applicable_product_ids: ::Array[String]?
|
1822
1537
|
|
1823
|
-
|
1538
|
+
def applicable_product_ids=: (::Array[String]) -> ::Array[String]
|
1824
1539
|
|
1825
|
-
|
1540
|
+
attr_reader applicable_product_tags: ::Array[String]?
|
1826
1541
|
|
1827
|
-
|
1542
|
+
def applicable_product_tags=: (::Array[String]) -> ::Array[String]
|
1828
1543
|
|
1829
|
-
|
1544
|
+
attr_reader description: String?
|
1830
1545
|
|
1831
|
-
|
1832
|
-
::Array[MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::Commit::Specifier]
|
1833
|
-
) -> ::Array[MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::Commit::Specifier]
|
1546
|
+
def description=: (String) -> String
|
1834
1547
|
|
1835
|
-
|
1836
|
-
product_id: String,
|
1837
|
-
?applicable_product_ids: ::Array[String],
|
1838
|
-
?applicable_product_tags: ::Array[String],
|
1839
|
-
?description: String,
|
1840
|
-
?name: String,
|
1841
|
-
?specifiers: ::Array[MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::Commit::Specifier]
|
1842
|
-
) -> void
|
1548
|
+
attr_reader ending_before: Time?
|
1843
1549
|
|
1844
|
-
|
1845
|
-
product_id: String,
|
1846
|
-
applicable_product_ids: ::Array[String],
|
1847
|
-
applicable_product_tags: ::Array[String],
|
1848
|
-
description: String,
|
1849
|
-
name: String,
|
1850
|
-
specifiers: ::Array[MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::Commit::Specifier]
|
1851
|
-
}
|
1550
|
+
def ending_before=: (Time) -> Time
|
1852
1551
|
|
1853
|
-
|
1854
|
-
{
|
1855
|
-
presentation_group_values: ::Hash[Symbol, String],
|
1856
|
-
pricing_group_values: ::Hash[Symbol, String],
|
1857
|
-
product_id: String,
|
1858
|
-
product_tags: ::Array[String]
|
1859
|
-
}
|
1860
|
-
|
1861
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
1862
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
1863
|
-
|
1864
|
-
def presentation_group_values=: (
|
1865
|
-
::Hash[Symbol, String]
|
1866
|
-
) -> ::Hash[Symbol, String]
|
1867
|
-
|
1868
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
1869
|
-
|
1870
|
-
def pricing_group_values=: (
|
1871
|
-
::Hash[Symbol, String]
|
1872
|
-
) -> ::Hash[Symbol, String]
|
1873
|
-
|
1874
|
-
attr_reader product_id: String?
|
1875
|
-
|
1876
|
-
def product_id=: (String) -> String
|
1877
|
-
|
1878
|
-
attr_reader product_tags: ::Array[String]?
|
1879
|
-
|
1880
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
1881
|
-
|
1882
|
-
def initialize: (
|
1883
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
1884
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
1885
|
-
?product_id: String,
|
1886
|
-
?product_tags: ::Array[String]
|
1887
|
-
) -> void
|
1888
|
-
|
1889
|
-
def to_hash: -> {
|
1890
|
-
presentation_group_values: ::Hash[Symbol, String],
|
1891
|
-
pricing_group_values: ::Hash[Symbol, String],
|
1892
|
-
product_id: String,
|
1893
|
-
product_tags: ::Array[String]
|
1894
|
-
}
|
1895
|
-
end
|
1896
|
-
end
|
1897
|
-
|
1898
|
-
type payment_gate_config =
|
1899
|
-
{
|
1900
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
1901
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
1902
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
1903
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
1904
|
-
}
|
1905
|
-
|
1906
|
-
class PaymentGateConfig < MetronomeSDK::Internal::Type::BaseModel
|
1907
|
-
attr_accessor payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type
|
1908
|
-
|
1909
|
-
attr_reader precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig?
|
1910
|
-
|
1911
|
-
def precalculated_tax_config=: (
|
1912
|
-
MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
1913
|
-
) -> MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
1914
|
-
|
1915
|
-
attr_reader stripe_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig?
|
1916
|
-
|
1917
|
-
def stripe_config=: (
|
1918
|
-
MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig
|
1919
|
-
) -> MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig
|
1920
|
-
|
1921
|
-
attr_reader tax_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type?
|
1922
|
-
|
1923
|
-
def tax_type=: (
|
1924
|
-
MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
1925
|
-
) -> MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
1926
|
-
|
1927
|
-
def initialize: (
|
1928
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
1929
|
-
?precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
1930
|
-
?stripe_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
1931
|
-
?tax_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
1932
|
-
) -> void
|
1933
|
-
|
1934
|
-
def to_hash: -> {
|
1935
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
1936
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
1937
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
1938
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
1939
|
-
}
|
1940
|
-
|
1941
|
-
type payment_gate_type = :NONE | :STRIPE | :EXTERNAL
|
1942
|
-
|
1943
|
-
module PaymentGateType
|
1944
|
-
extend MetronomeSDK::Internal::Type::Enum
|
1945
|
-
|
1946
|
-
NONE: :NONE
|
1947
|
-
STRIPE: :STRIPE
|
1948
|
-
EXTERNAL: :EXTERNAL
|
1949
|
-
|
1950
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type]
|
1951
|
-
end
|
1952
|
-
|
1953
|
-
type precalculated_tax_config =
|
1954
|
-
{ tax_amount: Float, tax_name: String }
|
1955
|
-
|
1956
|
-
class PrecalculatedTaxConfig < MetronomeSDK::Internal::Type::BaseModel
|
1957
|
-
attr_accessor tax_amount: Float
|
1958
|
-
|
1959
|
-
attr_reader tax_name: String?
|
1960
|
-
|
1961
|
-
def tax_name=: (String) -> String
|
1962
|
-
|
1963
|
-
def initialize: (tax_amount: Float, ?tax_name: String) -> void
|
1964
|
-
|
1965
|
-
def to_hash: -> { tax_amount: Float, tax_name: String }
|
1966
|
-
end
|
1967
|
-
|
1968
|
-
type stripe_config =
|
1969
|
-
{
|
1970
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
1971
|
-
invoice_metadata: ::Hash[Symbol, String]
|
1972
|
-
}
|
1973
|
-
|
1974
|
-
class StripeConfig < MetronomeSDK::Internal::Type::BaseModel
|
1975
|
-
attr_accessor payment_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type
|
1976
|
-
|
1977
|
-
attr_reader invoice_metadata: ::Hash[Symbol, String]?
|
1978
|
-
|
1979
|
-
def invoice_metadata=: (
|
1980
|
-
::Hash[Symbol, String]
|
1981
|
-
) -> ::Hash[Symbol, String]
|
1982
|
-
|
1983
|
-
def initialize: (
|
1984
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
1985
|
-
?invoice_metadata: ::Hash[Symbol, String]
|
1986
|
-
) -> void
|
1987
|
-
|
1988
|
-
def to_hash: -> {
|
1989
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
1990
|
-
invoice_metadata: ::Hash[Symbol, String]
|
1991
|
-
}
|
1992
|
-
|
1993
|
-
type payment_type = :INVOICE | :PAYMENT_INTENT
|
1994
|
-
|
1995
|
-
module PaymentType
|
1996
|
-
extend MetronomeSDK::Internal::Type::Enum
|
1997
|
-
|
1998
|
-
INVOICE: :INVOICE
|
1999
|
-
PAYMENT_INTENT: :PAYMENT_INTENT
|
2000
|
-
|
2001
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type]
|
2002
|
-
end
|
2003
|
-
end
|
2004
|
-
|
2005
|
-
type tax_type = :NONE | :STRIPE | :ANROK | :PRECALCULATED
|
2006
|
-
|
2007
|
-
module TaxType
|
2008
|
-
extend MetronomeSDK::Internal::Type::Enum
|
2009
|
-
|
2010
|
-
NONE: :NONE
|
2011
|
-
STRIPE: :STRIPE
|
2012
|
-
ANROK: :ANROK
|
2013
|
-
PRECALCULATED: :PRECALCULATED
|
2014
|
-
|
2015
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type]
|
2016
|
-
end
|
2017
|
-
end
|
2018
|
-
end
|
2019
|
-
|
2020
|
-
type add_professional_service =
|
2021
|
-
{
|
2022
|
-
max_amount: Float,
|
2023
|
-
product_id: String,
|
2024
|
-
quantity: Float,
|
2025
|
-
unit_price: Float,
|
2026
|
-
custom_fields: ::Hash[Symbol, String],
|
2027
|
-
description: String,
|
2028
|
-
netsuite_sales_order_id: String
|
2029
|
-
}
|
2030
|
-
|
2031
|
-
class AddProfessionalService < MetronomeSDK::Internal::Type::BaseModel
|
2032
|
-
attr_accessor max_amount: Float
|
2033
|
-
|
2034
|
-
attr_accessor product_id: String
|
2035
|
-
|
2036
|
-
attr_accessor quantity: Float
|
2037
|
-
|
2038
|
-
attr_accessor unit_price: Float
|
2039
|
-
|
2040
|
-
attr_reader custom_fields: ::Hash[Symbol, String]?
|
2041
|
-
|
2042
|
-
def custom_fields=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
2043
|
-
|
2044
|
-
attr_reader description: String?
|
2045
|
-
|
2046
|
-
def description=: (String) -> String
|
2047
|
-
|
2048
|
-
attr_reader netsuite_sales_order_id: String?
|
2049
|
-
|
2050
|
-
def netsuite_sales_order_id=: (String) -> String
|
2051
|
-
|
2052
|
-
def initialize: (
|
2053
|
-
max_amount: Float,
|
2054
|
-
product_id: String,
|
2055
|
-
quantity: Float,
|
2056
|
-
unit_price: Float,
|
2057
|
-
?custom_fields: ::Hash[Symbol, String],
|
2058
|
-
?description: String,
|
2059
|
-
?netsuite_sales_order_id: String
|
2060
|
-
) -> void
|
2061
|
-
|
2062
|
-
def to_hash: -> {
|
2063
|
-
max_amount: Float,
|
2064
|
-
product_id: String,
|
2065
|
-
quantity: Float,
|
2066
|
-
unit_price: Float,
|
2067
|
-
custom_fields: ::Hash[Symbol, String],
|
2068
|
-
description: String,
|
2069
|
-
netsuite_sales_order_id: String
|
2070
|
-
}
|
2071
|
-
end
|
2072
|
-
|
2073
|
-
type add_recurring_commit =
|
2074
|
-
{
|
2075
|
-
access_amount: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::AccessAmount,
|
2076
|
-
commit_duration: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::CommitDuration,
|
2077
|
-
priority: Float,
|
2078
|
-
product_id: String,
|
2079
|
-
starting_at: Time,
|
2080
|
-
applicable_product_ids: ::Array[String],
|
2081
|
-
applicable_product_tags: ::Array[String],
|
2082
|
-
description: String,
|
2083
|
-
ending_before: Time,
|
2084
|
-
hierarchy_configuration: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration,
|
2085
|
-
invoice_amount: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::InvoiceAmount,
|
2086
|
-
name: String,
|
2087
|
-
netsuite_sales_order_id: String,
|
2088
|
-
proration: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::proration,
|
2089
|
-
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::rate_type,
|
2090
|
-
recurrence_frequency: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::recurrence_frequency,
|
2091
|
-
rollover_fraction: Float,
|
2092
|
-
specifiers: ::Array[MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::Specifier],
|
2093
|
-
subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::SubscriptionConfig,
|
2094
|
-
temporary_id: String
|
2095
|
-
}
|
2096
|
-
|
2097
|
-
class AddRecurringCommit < MetronomeSDK::Internal::Type::BaseModel
|
2098
|
-
attr_accessor access_amount: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::AccessAmount
|
2099
|
-
|
2100
|
-
attr_accessor commit_duration: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::CommitDuration
|
2101
|
-
|
2102
|
-
attr_accessor priority: Float
|
2103
|
-
|
2104
|
-
attr_accessor product_id: String
|
2105
|
-
|
2106
|
-
attr_accessor starting_at: Time
|
2107
|
-
|
2108
|
-
attr_reader applicable_product_ids: ::Array[String]?
|
2109
|
-
|
2110
|
-
def applicable_product_ids=: (::Array[String]) -> ::Array[String]
|
2111
|
-
|
2112
|
-
attr_reader applicable_product_tags: ::Array[String]?
|
2113
|
-
|
2114
|
-
def applicable_product_tags=: (::Array[String]) -> ::Array[String]
|
2115
|
-
|
2116
|
-
attr_reader description: String?
|
2117
|
-
|
2118
|
-
def description=: (String) -> String
|
2119
|
-
|
2120
|
-
attr_reader ending_before: Time?
|
2121
|
-
|
2122
|
-
def ending_before=: (Time) -> Time
|
2123
|
-
|
2124
|
-
attr_reader hierarchy_configuration: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration?
|
1552
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
2125
1553
|
|
2126
1554
|
def hierarchy_configuration=: (
|
2127
|
-
MetronomeSDK::
|
2128
|
-
) -> MetronomeSDK::
|
1555
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
1556
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
2129
1557
|
|
2130
1558
|
attr_reader invoice_amount: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::InvoiceAmount?
|
2131
1559
|
|
@@ -2163,11 +1591,11 @@ module MetronomeSDK
|
|
2163
1591
|
|
2164
1592
|
def rollover_fraction=: (Float) -> Float
|
2165
1593
|
|
2166
|
-
attr_reader specifiers: ::Array[MetronomeSDK::
|
1594
|
+
attr_reader specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
2167
1595
|
|
2168
1596
|
def specifiers=: (
|
2169
|
-
::Array[MetronomeSDK::
|
2170
|
-
) -> ::Array[MetronomeSDK::
|
1597
|
+
::Array[MetronomeSDK::CommitSpecifierInput]
|
1598
|
+
) -> ::Array[MetronomeSDK::CommitSpecifierInput]
|
2171
1599
|
|
2172
1600
|
attr_reader subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::SubscriptionConfig?
|
2173
1601
|
|
@@ -2189,7 +1617,7 @@ module MetronomeSDK
|
|
2189
1617
|
?applicable_product_tags: ::Array[String],
|
2190
1618
|
?description: String,
|
2191
1619
|
?ending_before: Time,
|
2192
|
-
?hierarchy_configuration: MetronomeSDK::
|
1620
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
2193
1621
|
?invoice_amount: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::InvoiceAmount,
|
2194
1622
|
?name: String,
|
2195
1623
|
?netsuite_sales_order_id: String,
|
@@ -2197,7 +1625,7 @@ module MetronomeSDK
|
|
2197
1625
|
?rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::rate_type,
|
2198
1626
|
?recurrence_frequency: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::recurrence_frequency,
|
2199
1627
|
?rollover_fraction: Float,
|
2200
|
-
?specifiers: ::Array[MetronomeSDK::
|
1628
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
2201
1629
|
?subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::SubscriptionConfig,
|
2202
1630
|
?temporary_id: String
|
2203
1631
|
) -> void
|
@@ -2212,7 +1640,7 @@ module MetronomeSDK
|
|
2212
1640
|
applicable_product_tags: ::Array[String],
|
2213
1641
|
description: String,
|
2214
1642
|
ending_before: Time,
|
2215
|
-
hierarchy_configuration: MetronomeSDK::
|
1643
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
2216
1644
|
invoice_amount: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::InvoiceAmount,
|
2217
1645
|
name: String,
|
2218
1646
|
netsuite_sales_order_id: String,
|
@@ -2220,7 +1648,7 @@ module MetronomeSDK
|
|
2220
1648
|
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::rate_type,
|
2221
1649
|
recurrence_frequency: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::recurrence_frequency,
|
2222
1650
|
rollover_fraction: Float,
|
2223
|
-
specifiers: ::Array[MetronomeSDK::
|
1651
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
2224
1652
|
subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::SubscriptionConfig,
|
2225
1653
|
temporary_id: String
|
2226
1654
|
}
|
@@ -2286,120 +1714,6 @@ module MetronomeSDK
|
|
2286
1714
|
end
|
2287
1715
|
end
|
2288
1716
|
|
2289
|
-
type hierarchy_configuration =
|
2290
|
-
{
|
2291
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::child_access
|
2292
|
-
}
|
2293
|
-
|
2294
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
2295
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::child_access
|
2296
|
-
|
2297
|
-
def initialize: (
|
2298
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::child_access
|
2299
|
-
) -> void
|
2300
|
-
|
2301
|
-
def to_hash: -> {
|
2302
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::child_access
|
2303
|
-
}
|
2304
|
-
|
2305
|
-
type child_access =
|
2306
|
-
MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
2307
|
-
| MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
2308
|
-
| MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
2309
|
-
|
2310
|
-
module ChildAccess
|
2311
|
-
extend MetronomeSDK::Internal::Type::Union
|
2312
|
-
|
2313
|
-
type commit_hierarchy_child_access_all =
|
2314
|
-
{
|
2315
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
2316
|
-
}
|
2317
|
-
|
2318
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
2319
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
2320
|
-
|
2321
|
-
def initialize: (
|
2322
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
2323
|
-
) -> void
|
2324
|
-
|
2325
|
-
def to_hash: -> {
|
2326
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
2327
|
-
}
|
2328
|
-
|
2329
|
-
type type_ = :ALL
|
2330
|
-
|
2331
|
-
module Type
|
2332
|
-
extend MetronomeSDK::Internal::Type::Enum
|
2333
|
-
|
2334
|
-
ALL: :ALL
|
2335
|
-
|
2336
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
2337
|
-
end
|
2338
|
-
end
|
2339
|
-
|
2340
|
-
type commit_hierarchy_child_access_none =
|
2341
|
-
{
|
2342
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
2343
|
-
}
|
2344
|
-
|
2345
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
2346
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
2347
|
-
|
2348
|
-
def initialize: (
|
2349
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
2350
|
-
) -> void
|
2351
|
-
|
2352
|
-
def to_hash: -> {
|
2353
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
2354
|
-
}
|
2355
|
-
|
2356
|
-
type type_ = :NONE
|
2357
|
-
|
2358
|
-
module Type
|
2359
|
-
extend MetronomeSDK::Internal::Type::Enum
|
2360
|
-
|
2361
|
-
NONE: :NONE
|
2362
|
-
|
2363
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
2364
|
-
end
|
2365
|
-
end
|
2366
|
-
|
2367
|
-
type commit_hierarchy_child_access_contract_ids =
|
2368
|
-
{
|
2369
|
-
contract_ids: ::Array[String],
|
2370
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
2371
|
-
}
|
2372
|
-
|
2373
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
2374
|
-
attr_accessor contract_ids: ::Array[String]
|
2375
|
-
|
2376
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
2377
|
-
|
2378
|
-
def initialize: (
|
2379
|
-
contract_ids: ::Array[String],
|
2380
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
2381
|
-
) -> void
|
2382
|
-
|
2383
|
-
def to_hash: -> {
|
2384
|
-
contract_ids: ::Array[String],
|
2385
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
2386
|
-
}
|
2387
|
-
|
2388
|
-
type type_ = :CONTRACT_IDS
|
2389
|
-
|
2390
|
-
module Type
|
2391
|
-
extend MetronomeSDK::Internal::Type::Enum
|
2392
|
-
|
2393
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
2394
|
-
|
2395
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
2396
|
-
end
|
2397
|
-
end
|
2398
|
-
|
2399
|
-
def self?.variants: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::child_access]
|
2400
|
-
end
|
2401
|
-
end
|
2402
|
-
|
2403
1717
|
type invoice_amount =
|
2404
1718
|
{ credit_type_id: String, quantity: Float, unit_price: Float }
|
2405
1719
|
|
@@ -2438,70 +1752,26 @@ module MetronomeSDK
|
|
2438
1752
|
|
2439
1753
|
type rate_type = :COMMIT_RATE | :LIST_RATE
|
2440
1754
|
|
2441
|
-
module RateType
|
2442
|
-
extend MetronomeSDK::Internal::Type::Enum
|
2443
|
-
|
2444
|
-
COMMIT_RATE: :COMMIT_RATE
|
2445
|
-
LIST_RATE: :LIST_RATE
|
2446
|
-
|
2447
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::rate_type]
|
2448
|
-
end
|
2449
|
-
|
2450
|
-
type recurrence_frequency = :MONTHLY | :QUARTERLY | :ANNUAL | :WEEKLY
|
2451
|
-
|
2452
|
-
module RecurrenceFrequency
|
2453
|
-
extend MetronomeSDK::Internal::Type::Enum
|
2454
|
-
|
2455
|
-
MONTHLY: :MONTHLY
|
2456
|
-
QUARTERLY: :QUARTERLY
|
2457
|
-
ANNUAL: :ANNUAL
|
2458
|
-
WEEKLY: :WEEKLY
|
2459
|
-
|
2460
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::recurrence_frequency]
|
2461
|
-
end
|
2462
|
-
|
2463
|
-
type specifier =
|
2464
|
-
{
|
2465
|
-
presentation_group_values: ::Hash[Symbol, String],
|
2466
|
-
pricing_group_values: ::Hash[Symbol, String],
|
2467
|
-
product_id: String,
|
2468
|
-
product_tags: ::Array[String]
|
2469
|
-
}
|
2470
|
-
|
2471
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
2472
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
2473
|
-
|
2474
|
-
def presentation_group_values=: (
|
2475
|
-
::Hash[Symbol, String]
|
2476
|
-
) -> ::Hash[Symbol, String]
|
2477
|
-
|
2478
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
2479
|
-
|
2480
|
-
def pricing_group_values=: (
|
2481
|
-
::Hash[Symbol, String]
|
2482
|
-
) -> ::Hash[Symbol, String]
|
1755
|
+
module RateType
|
1756
|
+
extend MetronomeSDK::Internal::Type::Enum
|
2483
1757
|
|
2484
|
-
|
1758
|
+
COMMIT_RATE: :COMMIT_RATE
|
1759
|
+
LIST_RATE: :LIST_RATE
|
2485
1760
|
|
2486
|
-
def
|
1761
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::rate_type]
|
1762
|
+
end
|
2487
1763
|
|
2488
|
-
|
1764
|
+
type recurrence_frequency = :MONTHLY | :QUARTERLY | :ANNUAL | :WEEKLY
|
2489
1765
|
|
2490
|
-
|
1766
|
+
module RecurrenceFrequency
|
1767
|
+
extend MetronomeSDK::Internal::Type::Enum
|
2491
1768
|
|
2492
|
-
|
2493
|
-
|
2494
|
-
|
2495
|
-
|
2496
|
-
?product_tags: ::Array[String]
|
2497
|
-
) -> void
|
1769
|
+
MONTHLY: :MONTHLY
|
1770
|
+
QUARTERLY: :QUARTERLY
|
1771
|
+
ANNUAL: :ANNUAL
|
1772
|
+
WEEKLY: :WEEKLY
|
2498
1773
|
|
2499
|
-
def
|
2500
|
-
presentation_group_values: ::Hash[Symbol, String],
|
2501
|
-
pricing_group_values: ::Hash[Symbol, String],
|
2502
|
-
product_id: String,
|
2503
|
-
product_tags: ::Array[String]
|
2504
|
-
}
|
1774
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::recurrence_frequency]
|
2505
1775
|
end
|
2506
1776
|
|
2507
1777
|
type subscription_config =
|
@@ -2544,12 +1814,13 @@ module MetronomeSDK
|
|
2544
1814
|
def to_hash: -> { is_prorated: bool }
|
2545
1815
|
end
|
2546
1816
|
|
2547
|
-
type allocation = :POOLED
|
1817
|
+
type allocation = :POOLED | :INDIVIDUAL
|
2548
1818
|
|
2549
1819
|
module Allocation
|
2550
1820
|
extend MetronomeSDK::Internal::Type::Enum
|
2551
1821
|
|
2552
1822
|
POOLED: :POOLED
|
1823
|
+
INDIVIDUAL: :INDIVIDUAL
|
2553
1824
|
|
2554
1825
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::SubscriptionConfig::allocation]
|
2555
1826
|
end
|
@@ -2567,14 +1838,14 @@ module MetronomeSDK
|
|
2567
1838
|
applicable_product_tags: ::Array[String],
|
2568
1839
|
description: String,
|
2569
1840
|
ending_before: Time,
|
2570
|
-
hierarchy_configuration: MetronomeSDK::
|
1841
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
2571
1842
|
name: String,
|
2572
1843
|
netsuite_sales_order_id: String,
|
2573
1844
|
proration: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::proration,
|
2574
1845
|
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::rate_type,
|
2575
1846
|
recurrence_frequency: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::recurrence_frequency,
|
2576
1847
|
rollover_fraction: Float,
|
2577
|
-
specifiers: ::Array[MetronomeSDK::
|
1848
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
2578
1849
|
subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::SubscriptionConfig,
|
2579
1850
|
temporary_id: String
|
2580
1851
|
}
|
@@ -2606,11 +1877,11 @@ module MetronomeSDK
|
|
2606
1877
|
|
2607
1878
|
def ending_before=: (Time) -> Time
|
2608
1879
|
|
2609
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
1880
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
2610
1881
|
|
2611
1882
|
def hierarchy_configuration=: (
|
2612
|
-
MetronomeSDK::
|
2613
|
-
) -> MetronomeSDK::
|
1883
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
1884
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
2614
1885
|
|
2615
1886
|
attr_reader name: String?
|
2616
1887
|
|
@@ -2642,11 +1913,11 @@ module MetronomeSDK
|
|
2642
1913
|
|
2643
1914
|
def rollover_fraction=: (Float) -> Float
|
2644
1915
|
|
2645
|
-
attr_reader specifiers: ::Array[MetronomeSDK::
|
1916
|
+
attr_reader specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
2646
1917
|
|
2647
1918
|
def specifiers=: (
|
2648
|
-
::Array[MetronomeSDK::
|
2649
|
-
) -> ::Array[MetronomeSDK::
|
1919
|
+
::Array[MetronomeSDK::CommitSpecifierInput]
|
1920
|
+
) -> ::Array[MetronomeSDK::CommitSpecifierInput]
|
2650
1921
|
|
2651
1922
|
attr_reader subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::SubscriptionConfig?
|
2652
1923
|
|
@@ -2668,14 +1939,14 @@ module MetronomeSDK
|
|
2668
1939
|
?applicable_product_tags: ::Array[String],
|
2669
1940
|
?description: String,
|
2670
1941
|
?ending_before: Time,
|
2671
|
-
?hierarchy_configuration: MetronomeSDK::
|
1942
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
2672
1943
|
?name: String,
|
2673
1944
|
?netsuite_sales_order_id: String,
|
2674
1945
|
?proration: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::proration,
|
2675
1946
|
?rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::rate_type,
|
2676
1947
|
?recurrence_frequency: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::recurrence_frequency,
|
2677
1948
|
?rollover_fraction: Float,
|
2678
|
-
?specifiers: ::Array[MetronomeSDK::
|
1949
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
2679
1950
|
?subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::SubscriptionConfig,
|
2680
1951
|
?temporary_id: String
|
2681
1952
|
) -> void
|
@@ -2690,14 +1961,14 @@ module MetronomeSDK
|
|
2690
1961
|
applicable_product_tags: ::Array[String],
|
2691
1962
|
description: String,
|
2692
1963
|
ending_before: Time,
|
2693
|
-
hierarchy_configuration: MetronomeSDK::
|
1964
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
2694
1965
|
name: String,
|
2695
1966
|
netsuite_sales_order_id: String,
|
2696
1967
|
proration: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::proration,
|
2697
1968
|
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::rate_type,
|
2698
1969
|
recurrence_frequency: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::recurrence_frequency,
|
2699
1970
|
rollover_fraction: Float,
|
2700
|
-
specifiers: ::Array[MetronomeSDK::
|
1971
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
2701
1972
|
subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::SubscriptionConfig,
|
2702
1973
|
temporary_id: String
|
2703
1974
|
}
|
@@ -2763,120 +2034,6 @@ module MetronomeSDK
|
|
2763
2034
|
end
|
2764
2035
|
end
|
2765
2036
|
|
2766
|
-
type hierarchy_configuration =
|
2767
|
-
{
|
2768
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::child_access
|
2769
|
-
}
|
2770
|
-
|
2771
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
2772
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::child_access
|
2773
|
-
|
2774
|
-
def initialize: (
|
2775
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::child_access
|
2776
|
-
) -> void
|
2777
|
-
|
2778
|
-
def to_hash: -> {
|
2779
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::child_access
|
2780
|
-
}
|
2781
|
-
|
2782
|
-
type child_access =
|
2783
|
-
MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
2784
|
-
| MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
2785
|
-
| MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
2786
|
-
|
2787
|
-
module ChildAccess
|
2788
|
-
extend MetronomeSDK::Internal::Type::Union
|
2789
|
-
|
2790
|
-
type commit_hierarchy_child_access_all =
|
2791
|
-
{
|
2792
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
2793
|
-
}
|
2794
|
-
|
2795
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
2796
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
2797
|
-
|
2798
|
-
def initialize: (
|
2799
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
2800
|
-
) -> void
|
2801
|
-
|
2802
|
-
def to_hash: -> {
|
2803
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
2804
|
-
}
|
2805
|
-
|
2806
|
-
type type_ = :ALL
|
2807
|
-
|
2808
|
-
module Type
|
2809
|
-
extend MetronomeSDK::Internal::Type::Enum
|
2810
|
-
|
2811
|
-
ALL: :ALL
|
2812
|
-
|
2813
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
2814
|
-
end
|
2815
|
-
end
|
2816
|
-
|
2817
|
-
type commit_hierarchy_child_access_none =
|
2818
|
-
{
|
2819
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
2820
|
-
}
|
2821
|
-
|
2822
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
2823
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
2824
|
-
|
2825
|
-
def initialize: (
|
2826
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
2827
|
-
) -> void
|
2828
|
-
|
2829
|
-
def to_hash: -> {
|
2830
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
2831
|
-
}
|
2832
|
-
|
2833
|
-
type type_ = :NONE
|
2834
|
-
|
2835
|
-
module Type
|
2836
|
-
extend MetronomeSDK::Internal::Type::Enum
|
2837
|
-
|
2838
|
-
NONE: :NONE
|
2839
|
-
|
2840
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
2841
|
-
end
|
2842
|
-
end
|
2843
|
-
|
2844
|
-
type commit_hierarchy_child_access_contract_ids =
|
2845
|
-
{
|
2846
|
-
contract_ids: ::Array[String],
|
2847
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
2848
|
-
}
|
2849
|
-
|
2850
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
2851
|
-
attr_accessor contract_ids: ::Array[String]
|
2852
|
-
|
2853
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
2854
|
-
|
2855
|
-
def initialize: (
|
2856
|
-
contract_ids: ::Array[String],
|
2857
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
2858
|
-
) -> void
|
2859
|
-
|
2860
|
-
def to_hash: -> {
|
2861
|
-
contract_ids: ::Array[String],
|
2862
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
2863
|
-
}
|
2864
|
-
|
2865
|
-
type type_ = :CONTRACT_IDS
|
2866
|
-
|
2867
|
-
module Type
|
2868
|
-
extend MetronomeSDK::Internal::Type::Enum
|
2869
|
-
|
2870
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
2871
|
-
|
2872
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
2873
|
-
end
|
2874
|
-
end
|
2875
|
-
|
2876
|
-
def self?.variants: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::child_access]
|
2877
|
-
end
|
2878
|
-
end
|
2879
|
-
|
2880
2037
|
type proration = :NONE | :FIRST | :LAST | :FIRST_AND_LAST
|
2881
2038
|
|
2882
2039
|
module Proration
|
@@ -2914,50 +2071,6 @@ module MetronomeSDK
|
|
2914
2071
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::recurrence_frequency]
|
2915
2072
|
end
|
2916
2073
|
|
2917
|
-
type specifier =
|
2918
|
-
{
|
2919
|
-
presentation_group_values: ::Hash[Symbol, String],
|
2920
|
-
pricing_group_values: ::Hash[Symbol, String],
|
2921
|
-
product_id: String,
|
2922
|
-
product_tags: ::Array[String]
|
2923
|
-
}
|
2924
|
-
|
2925
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
2926
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
2927
|
-
|
2928
|
-
def presentation_group_values=: (
|
2929
|
-
::Hash[Symbol, String]
|
2930
|
-
) -> ::Hash[Symbol, String]
|
2931
|
-
|
2932
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
2933
|
-
|
2934
|
-
def pricing_group_values=: (
|
2935
|
-
::Hash[Symbol, String]
|
2936
|
-
) -> ::Hash[Symbol, String]
|
2937
|
-
|
2938
|
-
attr_reader product_id: String?
|
2939
|
-
|
2940
|
-
def product_id=: (String) -> String
|
2941
|
-
|
2942
|
-
attr_reader product_tags: ::Array[String]?
|
2943
|
-
|
2944
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
2945
|
-
|
2946
|
-
def initialize: (
|
2947
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
2948
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
2949
|
-
?product_id: String,
|
2950
|
-
?product_tags: ::Array[String]
|
2951
|
-
) -> void
|
2952
|
-
|
2953
|
-
def to_hash: -> {
|
2954
|
-
presentation_group_values: ::Hash[Symbol, String],
|
2955
|
-
pricing_group_values: ::Hash[Symbol, String],
|
2956
|
-
product_id: String,
|
2957
|
-
product_tags: ::Array[String]
|
2958
|
-
}
|
2959
|
-
end
|
2960
|
-
|
2961
2074
|
type subscription_config =
|
2962
2075
|
{
|
2963
2076
|
apply_seat_increase_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig,
|
@@ -2998,12 +2111,13 @@ module MetronomeSDK
|
|
2998
2111
|
def to_hash: -> { is_prorated: bool }
|
2999
2112
|
end
|
3000
2113
|
|
3001
|
-
type allocation = :POOLED
|
2114
|
+
type allocation = :POOLED | :INDIVIDUAL
|
3002
2115
|
|
3003
2116
|
module Allocation
|
3004
2117
|
extend MetronomeSDK::Internal::Type::Enum
|
3005
2118
|
|
3006
2119
|
POOLED: :POOLED
|
2120
|
+
INDIVIDUAL: :INDIVIDUAL
|
3007
2121
|
|
3008
2122
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::SubscriptionConfig::allocation]
|
3009
2123
|
end
|
@@ -3256,288 +2370,108 @@ module MetronomeSDK
|
|
3256
2370
|
class RecurringSchedule < MetronomeSDK::Internal::Type::BaseModel
|
3257
2371
|
attr_accessor amount_distribution: MetronomeSDK::Models::V2::ContractEditParams::AddScheduledCharge::Schedule::RecurringSchedule::amount_distribution
|
3258
2372
|
|
3259
|
-
attr_accessor ending_before: Time
|
3260
|
-
|
3261
|
-
attr_accessor frequency: MetronomeSDK::Models::V2::ContractEditParams::AddScheduledCharge::Schedule::RecurringSchedule::frequency
|
3262
|
-
|
3263
|
-
attr_accessor starting_at: Time
|
3264
|
-
|
3265
|
-
attr_reader amount: Float?
|
3266
|
-
|
3267
|
-
def amount=: (Float) -> Float
|
3268
|
-
|
3269
|
-
attr_reader quantity: Float?
|
3270
|
-
|
3271
|
-
def quantity=: (Float) -> Float
|
3272
|
-
|
3273
|
-
attr_reader unit_price: Float?
|
3274
|
-
|
3275
|
-
def unit_price=: (Float) -> Float
|
3276
|
-
|
3277
|
-
def initialize: (
|
3278
|
-
amount_distribution: MetronomeSDK::Models::V2::ContractEditParams::AddScheduledCharge::Schedule::RecurringSchedule::amount_distribution,
|
3279
|
-
ending_before: Time,
|
3280
|
-
frequency: MetronomeSDK::Models::V2::ContractEditParams::AddScheduledCharge::Schedule::RecurringSchedule::frequency,
|
3281
|
-
starting_at: Time,
|
3282
|
-
?amount: Float,
|
3283
|
-
?quantity: Float,
|
3284
|
-
?unit_price: Float
|
3285
|
-
) -> void
|
3286
|
-
|
3287
|
-
def to_hash: -> {
|
3288
|
-
amount_distribution: MetronomeSDK::Models::V2::ContractEditParams::AddScheduledCharge::Schedule::RecurringSchedule::amount_distribution,
|
3289
|
-
ending_before: Time,
|
3290
|
-
frequency: MetronomeSDK::Models::V2::ContractEditParams::AddScheduledCharge::Schedule::RecurringSchedule::frequency,
|
3291
|
-
starting_at: Time,
|
3292
|
-
amount: Float,
|
3293
|
-
quantity: Float,
|
3294
|
-
unit_price: Float
|
3295
|
-
}
|
3296
|
-
|
3297
|
-
type amount_distribution = :DIVIDED | :DIVIDED_ROUNDED | :EACH
|
3298
|
-
|
3299
|
-
module AmountDistribution
|
3300
|
-
extend MetronomeSDK::Internal::Type::Enum
|
3301
|
-
|
3302
|
-
DIVIDED: :DIVIDED
|
3303
|
-
DIVIDED_ROUNDED: :DIVIDED_ROUNDED
|
3304
|
-
EACH: :EACH
|
3305
|
-
|
3306
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddScheduledCharge::Schedule::RecurringSchedule::amount_distribution]
|
3307
|
-
end
|
3308
|
-
|
3309
|
-
type frequency =
|
3310
|
-
:MONTHLY | :QUARTERLY | :SEMI_ANNUAL | :ANNUAL | :WEEKLY
|
3311
|
-
|
3312
|
-
module Frequency
|
3313
|
-
extend MetronomeSDK::Internal::Type::Enum
|
3314
|
-
|
3315
|
-
MONTHLY: :MONTHLY
|
3316
|
-
QUARTERLY: :QUARTERLY
|
3317
|
-
SEMI_ANNUAL: :SEMI_ANNUAL
|
3318
|
-
ANNUAL: :ANNUAL
|
3319
|
-
WEEKLY: :WEEKLY
|
3320
|
-
|
3321
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddScheduledCharge::Schedule::RecurringSchedule::frequency]
|
3322
|
-
end
|
3323
|
-
end
|
3324
|
-
|
3325
|
-
type schedule_item =
|
3326
|
-
{
|
3327
|
-
timestamp: Time,
|
3328
|
-
amount: Float,
|
3329
|
-
quantity: Float,
|
3330
|
-
unit_price: Float
|
3331
|
-
}
|
3332
|
-
|
3333
|
-
class ScheduleItem < MetronomeSDK::Internal::Type::BaseModel
|
3334
|
-
attr_accessor timestamp: Time
|
3335
|
-
|
3336
|
-
attr_reader amount: Float?
|
3337
|
-
|
3338
|
-
def amount=: (Float) -> Float
|
3339
|
-
|
3340
|
-
attr_reader quantity: Float?
|
3341
|
-
|
3342
|
-
def quantity=: (Float) -> Float
|
3343
|
-
|
3344
|
-
attr_reader unit_price: Float?
|
3345
|
-
|
3346
|
-
def unit_price=: (Float) -> Float
|
3347
|
-
|
3348
|
-
def initialize: (
|
3349
|
-
timestamp: Time,
|
3350
|
-
?amount: Float,
|
3351
|
-
?quantity: Float,
|
3352
|
-
?unit_price: Float
|
3353
|
-
) -> void
|
3354
|
-
|
3355
|
-
def to_hash: -> {
|
3356
|
-
timestamp: Time,
|
3357
|
-
amount: Float,
|
3358
|
-
quantity: Float,
|
3359
|
-
unit_price: Float
|
3360
|
-
}
|
3361
|
-
end
|
3362
|
-
end
|
3363
|
-
end
|
3364
|
-
|
3365
|
-
type add_spend_threshold_configuration =
|
3366
|
-
{
|
3367
|
-
commit: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::Commit,
|
3368
|
-
is_enabled: bool,
|
3369
|
-
payment_gate_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig,
|
3370
|
-
threshold_amount: Float
|
3371
|
-
}
|
3372
|
-
|
3373
|
-
class AddSpendThresholdConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
3374
|
-
attr_accessor commit: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::Commit
|
3375
|
-
|
3376
|
-
attr_accessor is_enabled: bool
|
3377
|
-
|
3378
|
-
attr_accessor payment_gate_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig
|
3379
|
-
|
3380
|
-
attr_accessor threshold_amount: Float
|
3381
|
-
|
3382
|
-
def initialize: (
|
3383
|
-
commit: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::Commit,
|
3384
|
-
is_enabled: bool,
|
3385
|
-
payment_gate_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig,
|
3386
|
-
threshold_amount: Float
|
3387
|
-
) -> void
|
3388
|
-
|
3389
|
-
def to_hash: -> {
|
3390
|
-
commit: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::Commit,
|
3391
|
-
is_enabled: bool,
|
3392
|
-
payment_gate_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig,
|
3393
|
-
threshold_amount: Float
|
3394
|
-
}
|
3395
|
-
|
3396
|
-
type commit =
|
3397
|
-
{ product_id: String, description: String, name: String }
|
3398
|
-
|
3399
|
-
class Commit < MetronomeSDK::Internal::Type::BaseModel
|
3400
|
-
attr_accessor product_id: String
|
3401
|
-
|
3402
|
-
attr_reader description: String?
|
3403
|
-
|
3404
|
-
def description=: (String) -> String
|
3405
|
-
|
3406
|
-
attr_reader name: String?
|
3407
|
-
|
3408
|
-
def name=: (String) -> String
|
3409
|
-
|
3410
|
-
def initialize: (
|
3411
|
-
product_id: String,
|
3412
|
-
?description: String,
|
3413
|
-
?name: String
|
3414
|
-
) -> void
|
3415
|
-
|
3416
|
-
def to_hash: -> {
|
3417
|
-
product_id: String,
|
3418
|
-
description: String,
|
3419
|
-
name: String
|
3420
|
-
}
|
3421
|
-
end
|
3422
|
-
|
3423
|
-
type payment_gate_config =
|
3424
|
-
{
|
3425
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
3426
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
3427
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
3428
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
3429
|
-
}
|
3430
|
-
|
3431
|
-
class PaymentGateConfig < MetronomeSDK::Internal::Type::BaseModel
|
3432
|
-
attr_accessor payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type
|
2373
|
+
attr_accessor ending_before: Time
|
3433
2374
|
|
3434
|
-
|
2375
|
+
attr_accessor frequency: MetronomeSDK::Models::V2::ContractEditParams::AddScheduledCharge::Schedule::RecurringSchedule::frequency
|
3435
2376
|
|
3436
|
-
|
3437
|
-
MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
3438
|
-
) -> MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
2377
|
+
attr_accessor starting_at: Time
|
3439
2378
|
|
3440
|
-
|
2379
|
+
attr_reader amount: Float?
|
3441
2380
|
|
3442
|
-
|
3443
|
-
MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig
|
3444
|
-
) -> MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig
|
2381
|
+
def amount=: (Float) -> Float
|
3445
2382
|
|
3446
|
-
|
2383
|
+
attr_reader quantity: Float?
|
3447
2384
|
|
3448
|
-
|
3449
|
-
MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
3450
|
-
) -> MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
2385
|
+
def quantity=: (Float) -> Float
|
3451
2386
|
|
3452
|
-
|
3453
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
3454
|
-
?precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
3455
|
-
?stripe_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
3456
|
-
?tax_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
3457
|
-
) -> void
|
2387
|
+
attr_reader unit_price: Float?
|
3458
2388
|
|
3459
|
-
|
3460
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
3461
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
3462
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
3463
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
3464
|
-
}
|
2389
|
+
def unit_price=: (Float) -> Float
|
3465
2390
|
|
3466
|
-
|
2391
|
+
def initialize: (
|
2392
|
+
amount_distribution: MetronomeSDK::Models::V2::ContractEditParams::AddScheduledCharge::Schedule::RecurringSchedule::amount_distribution,
|
2393
|
+
ending_before: Time,
|
2394
|
+
frequency: MetronomeSDK::Models::V2::ContractEditParams::AddScheduledCharge::Schedule::RecurringSchedule::frequency,
|
2395
|
+
starting_at: Time,
|
2396
|
+
?amount: Float,
|
2397
|
+
?quantity: Float,
|
2398
|
+
?unit_price: Float
|
2399
|
+
) -> void
|
3467
2400
|
|
3468
|
-
|
3469
|
-
|
2401
|
+
def to_hash: -> {
|
2402
|
+
amount_distribution: MetronomeSDK::Models::V2::ContractEditParams::AddScheduledCharge::Schedule::RecurringSchedule::amount_distribution,
|
2403
|
+
ending_before: Time,
|
2404
|
+
frequency: MetronomeSDK::Models::V2::ContractEditParams::AddScheduledCharge::Schedule::RecurringSchedule::frequency,
|
2405
|
+
starting_at: Time,
|
2406
|
+
amount: Float,
|
2407
|
+
quantity: Float,
|
2408
|
+
unit_price: Float
|
2409
|
+
}
|
3470
2410
|
|
3471
|
-
|
3472
|
-
STRIPE: :STRIPE
|
3473
|
-
EXTERNAL: :EXTERNAL
|
2411
|
+
type amount_distribution = :DIVIDED | :DIVIDED_ROUNDED | :EACH
|
3474
2412
|
|
3475
|
-
|
3476
|
-
|
2413
|
+
module AmountDistribution
|
2414
|
+
extend MetronomeSDK::Internal::Type::Enum
|
3477
2415
|
|
3478
|
-
|
3479
|
-
|
2416
|
+
DIVIDED: :DIVIDED
|
2417
|
+
DIVIDED_ROUNDED: :DIVIDED_ROUNDED
|
2418
|
+
EACH: :EACH
|
3480
2419
|
|
3481
|
-
|
3482
|
-
|
2420
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddScheduledCharge::Schedule::RecurringSchedule::amount_distribution]
|
2421
|
+
end
|
3483
2422
|
|
3484
|
-
|
2423
|
+
type frequency =
|
2424
|
+
:MONTHLY | :QUARTERLY | :SEMI_ANNUAL | :ANNUAL | :WEEKLY
|
3485
2425
|
|
3486
|
-
|
2426
|
+
module Frequency
|
2427
|
+
extend MetronomeSDK::Internal::Type::Enum
|
3487
2428
|
|
3488
|
-
|
2429
|
+
MONTHLY: :MONTHLY
|
2430
|
+
QUARTERLY: :QUARTERLY
|
2431
|
+
SEMI_ANNUAL: :SEMI_ANNUAL
|
2432
|
+
ANNUAL: :ANNUAL
|
2433
|
+
WEEKLY: :WEEKLY
|
3489
2434
|
|
3490
|
-
|
2435
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddScheduledCharge::Schedule::RecurringSchedule::frequency]
|
2436
|
+
end
|
3491
2437
|
end
|
3492
2438
|
|
3493
|
-
type
|
2439
|
+
type schedule_item =
|
3494
2440
|
{
|
3495
|
-
|
3496
|
-
|
2441
|
+
timestamp: Time,
|
2442
|
+
amount: Float,
|
2443
|
+
quantity: Float,
|
2444
|
+
unit_price: Float
|
3497
2445
|
}
|
3498
2446
|
|
3499
|
-
class
|
3500
|
-
attr_accessor
|
3501
|
-
|
3502
|
-
attr_reader invoice_metadata: ::Hash[Symbol, String]?
|
3503
|
-
|
3504
|
-
def invoice_metadata=: (
|
3505
|
-
::Hash[Symbol, String]
|
3506
|
-
) -> ::Hash[Symbol, String]
|
3507
|
-
|
3508
|
-
def initialize: (
|
3509
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
3510
|
-
?invoice_metadata: ::Hash[Symbol, String]
|
3511
|
-
) -> void
|
3512
|
-
|
3513
|
-
def to_hash: -> {
|
3514
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
3515
|
-
invoice_metadata: ::Hash[Symbol, String]
|
3516
|
-
}
|
2447
|
+
class ScheduleItem < MetronomeSDK::Internal::Type::BaseModel
|
2448
|
+
attr_accessor timestamp: Time
|
3517
2449
|
|
3518
|
-
|
2450
|
+
attr_reader amount: Float?
|
3519
2451
|
|
3520
|
-
|
3521
|
-
extend MetronomeSDK::Internal::Type::Enum
|
2452
|
+
def amount=: (Float) -> Float
|
3522
2453
|
|
3523
|
-
|
3524
|
-
PAYMENT_INTENT: :PAYMENT_INTENT
|
2454
|
+
attr_reader quantity: Float?
|
3525
2455
|
|
3526
|
-
|
3527
|
-
end
|
3528
|
-
end
|
2456
|
+
def quantity=: (Float) -> Float
|
3529
2457
|
|
3530
|
-
|
2458
|
+
attr_reader unit_price: Float?
|
3531
2459
|
|
3532
|
-
|
3533
|
-
extend MetronomeSDK::Internal::Type::Enum
|
2460
|
+
def unit_price=: (Float) -> Float
|
3534
2461
|
|
3535
|
-
|
3536
|
-
|
3537
|
-
|
3538
|
-
|
2462
|
+
def initialize: (
|
2463
|
+
timestamp: Time,
|
2464
|
+
?amount: Float,
|
2465
|
+
?quantity: Float,
|
2466
|
+
?unit_price: Float
|
2467
|
+
) -> void
|
3539
2468
|
|
3540
|
-
def
|
2469
|
+
def to_hash: -> {
|
2470
|
+
timestamp: Time,
|
2471
|
+
amount: Float,
|
2472
|
+
quantity: Float,
|
2473
|
+
unit_price: Float
|
2474
|
+
}
|
3541
2475
|
end
|
3542
2476
|
end
|
3543
2477
|
end
|
@@ -3545,13 +2479,14 @@ module MetronomeSDK
|
|
3545
2479
|
type add_subscription =
|
3546
2480
|
{
|
3547
2481
|
collection_schedule: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::collection_schedule,
|
3548
|
-
initial_quantity: Float,
|
3549
2482
|
proration: MetronomeSDK::V2::ContractEditParams::AddSubscription::Proration,
|
3550
2483
|
subscription_rate: MetronomeSDK::V2::ContractEditParams::AddSubscription::SubscriptionRate,
|
3551
2484
|
custom_fields: ::Hash[Symbol, String],
|
3552
2485
|
description: String,
|
3553
2486
|
ending_before: Time,
|
2487
|
+
initial_quantity: Float,
|
3554
2488
|
name: String,
|
2489
|
+
quantity_management_mode: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::quantity_management_mode,
|
3555
2490
|
starting_at: Time,
|
3556
2491
|
temporary_id: String
|
3557
2492
|
}
|
@@ -3559,8 +2494,6 @@ module MetronomeSDK
|
|
3559
2494
|
class AddSubscription < MetronomeSDK::Internal::Type::BaseModel
|
3560
2495
|
attr_accessor collection_schedule: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::collection_schedule
|
3561
2496
|
|
3562
|
-
attr_accessor initial_quantity: Float
|
3563
|
-
|
3564
2497
|
attr_accessor proration: MetronomeSDK::V2::ContractEditParams::AddSubscription::Proration
|
3565
2498
|
|
3566
2499
|
attr_accessor subscription_rate: MetronomeSDK::V2::ContractEditParams::AddSubscription::SubscriptionRate
|
@@ -3577,10 +2510,20 @@ module MetronomeSDK
|
|
3577
2510
|
|
3578
2511
|
def ending_before=: (Time) -> Time
|
3579
2512
|
|
2513
|
+
attr_reader initial_quantity: Float?
|
2514
|
+
|
2515
|
+
def initial_quantity=: (Float) -> Float
|
2516
|
+
|
3580
2517
|
attr_reader name: String?
|
3581
2518
|
|
3582
2519
|
def name=: (String) -> String
|
3583
2520
|
|
2521
|
+
attr_reader quantity_management_mode: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::quantity_management_mode?
|
2522
|
+
|
2523
|
+
def quantity_management_mode=: (
|
2524
|
+
MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::quantity_management_mode
|
2525
|
+
) -> MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::quantity_management_mode
|
2526
|
+
|
3584
2527
|
attr_reader starting_at: Time?
|
3585
2528
|
|
3586
2529
|
def starting_at=: (Time) -> Time
|
@@ -3591,26 +2534,28 @@ module MetronomeSDK
|
|
3591
2534
|
|
3592
2535
|
def initialize: (
|
3593
2536
|
collection_schedule: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::collection_schedule,
|
3594
|
-
initial_quantity: Float,
|
3595
2537
|
proration: MetronomeSDK::V2::ContractEditParams::AddSubscription::Proration,
|
3596
2538
|
subscription_rate: MetronomeSDK::V2::ContractEditParams::AddSubscription::SubscriptionRate,
|
3597
2539
|
?custom_fields: ::Hash[Symbol, String],
|
3598
2540
|
?description: String,
|
3599
2541
|
?ending_before: Time,
|
2542
|
+
?initial_quantity: Float,
|
3600
2543
|
?name: String,
|
2544
|
+
?quantity_management_mode: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::quantity_management_mode,
|
3601
2545
|
?starting_at: Time,
|
3602
2546
|
?temporary_id: String
|
3603
2547
|
) -> void
|
3604
2548
|
|
3605
2549
|
def to_hash: -> {
|
3606
2550
|
collection_schedule: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::collection_schedule,
|
3607
|
-
initial_quantity: Float,
|
3608
2551
|
proration: MetronomeSDK::V2::ContractEditParams::AddSubscription::Proration,
|
3609
2552
|
subscription_rate: MetronomeSDK::V2::ContractEditParams::AddSubscription::SubscriptionRate,
|
3610
2553
|
custom_fields: ::Hash[Symbol, String],
|
3611
2554
|
description: String,
|
3612
2555
|
ending_before: Time,
|
2556
|
+
initial_quantity: Float,
|
3613
2557
|
name: String,
|
2558
|
+
quantity_management_mode: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::quantity_management_mode,
|
3614
2559
|
starting_at: Time,
|
3615
2560
|
temporary_id: String
|
3616
2561
|
}
|
@@ -3700,6 +2645,17 @@ module MetronomeSDK
|
|
3700
2645
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::SubscriptionRate::billing_frequency]
|
3701
2646
|
end
|
3702
2647
|
end
|
2648
|
+
|
2649
|
+
type quantity_management_mode = :SEAT_BASED | :QUANTITY_ONLY
|
2650
|
+
|
2651
|
+
module QuantityManagementMode
|
2652
|
+
extend MetronomeSDK::Internal::Type::Enum
|
2653
|
+
|
2654
|
+
SEAT_BASED: :SEAT_BASED
|
2655
|
+
QUANTITY_ONLY: :QUANTITY_ONLY
|
2656
|
+
|
2657
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::quantity_management_mode]
|
2658
|
+
end
|
3703
2659
|
end
|
3704
2660
|
|
3705
2661
|
type archive_commit = { id: String }
|
@@ -3748,11 +2704,12 @@ module MetronomeSDK
|
|
3748
2704
|
access_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCommit::AccessSchedule,
|
3749
2705
|
applicable_product_ids: ::Array[String]?,
|
3750
2706
|
applicable_product_tags: ::Array[String]?,
|
3751
|
-
hierarchy_configuration: MetronomeSDK::
|
2707
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
3752
2708
|
invoice_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule,
|
3753
2709
|
netsuite_sales_order_id: String?,
|
3754
2710
|
priority: Float?,
|
3755
2711
|
product_id: String,
|
2712
|
+
rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::rate_type,
|
3756
2713
|
rollover_fraction: Float?
|
3757
2714
|
}
|
3758
2715
|
|
@@ -3769,11 +2726,11 @@ module MetronomeSDK
|
|
3769
2726
|
|
3770
2727
|
attr_accessor applicable_product_tags: ::Array[String]?
|
3771
2728
|
|
3772
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
2729
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
3773
2730
|
|
3774
2731
|
def hierarchy_configuration=: (
|
3775
|
-
MetronomeSDK::
|
3776
|
-
) -> MetronomeSDK::
|
2732
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
2733
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
3777
2734
|
|
3778
2735
|
attr_reader invoice_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule?
|
3779
2736
|
|
@@ -3789,6 +2746,12 @@ module MetronomeSDK
|
|
3789
2746
|
|
3790
2747
|
def product_id=: (String) -> String
|
3791
2748
|
|
2749
|
+
attr_reader rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::rate_type?
|
2750
|
+
|
2751
|
+
def rate_type=: (
|
2752
|
+
MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::rate_type
|
2753
|
+
) -> MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::rate_type
|
2754
|
+
|
3792
2755
|
attr_accessor rollover_fraction: Float?
|
3793
2756
|
|
3794
2757
|
def initialize: (
|
@@ -3796,11 +2759,12 @@ module MetronomeSDK
|
|
3796
2759
|
?access_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCommit::AccessSchedule,
|
3797
2760
|
?applicable_product_ids: ::Array[String]?,
|
3798
2761
|
?applicable_product_tags: ::Array[String]?,
|
3799
|
-
?hierarchy_configuration: MetronomeSDK::
|
2762
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
3800
2763
|
?invoice_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule,
|
3801
2764
|
?netsuite_sales_order_id: String?,
|
3802
2765
|
?priority: Float?,
|
3803
2766
|
?product_id: String,
|
2767
|
+
?rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::rate_type,
|
3804
2768
|
?rollover_fraction: Float?
|
3805
2769
|
) -> void
|
3806
2770
|
|
@@ -3809,11 +2773,12 @@ module MetronomeSDK
|
|
3809
2773
|
access_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCommit::AccessSchedule,
|
3810
2774
|
applicable_product_ids: ::Array[String]?,
|
3811
2775
|
applicable_product_tags: ::Array[String]?,
|
3812
|
-
hierarchy_configuration: MetronomeSDK::
|
2776
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
3813
2777
|
invoice_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule,
|
3814
2778
|
netsuite_sales_order_id: String?,
|
3815
2779
|
priority: Float?,
|
3816
2780
|
product_id: String,
|
2781
|
+
rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::rate_type,
|
3817
2782
|
rollover_fraction: Float?
|
3818
2783
|
}
|
3819
2784
|
|
@@ -3927,120 +2892,6 @@ module MetronomeSDK
|
|
3927
2892
|
end
|
3928
2893
|
end
|
3929
2894
|
|
3930
|
-
type hierarchy_configuration =
|
3931
|
-
{
|
3932
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::child_access
|
3933
|
-
}
|
3934
|
-
|
3935
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
3936
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::child_access
|
3937
|
-
|
3938
|
-
def initialize: (
|
3939
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::child_access
|
3940
|
-
) -> void
|
3941
|
-
|
3942
|
-
def to_hash: -> {
|
3943
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::child_access
|
3944
|
-
}
|
3945
|
-
|
3946
|
-
type child_access =
|
3947
|
-
MetronomeSDK::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
3948
|
-
| MetronomeSDK::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
3949
|
-
| MetronomeSDK::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
3950
|
-
|
3951
|
-
module ChildAccess
|
3952
|
-
extend MetronomeSDK::Internal::Type::Union
|
3953
|
-
|
3954
|
-
type commit_hierarchy_child_access_all =
|
3955
|
-
{
|
3956
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
3957
|
-
}
|
3958
|
-
|
3959
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
3960
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
3961
|
-
|
3962
|
-
def initialize: (
|
3963
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
3964
|
-
) -> void
|
3965
|
-
|
3966
|
-
def to_hash: -> {
|
3967
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
3968
|
-
}
|
3969
|
-
|
3970
|
-
type type_ = :ALL
|
3971
|
-
|
3972
|
-
module Type
|
3973
|
-
extend MetronomeSDK::Internal::Type::Enum
|
3974
|
-
|
3975
|
-
ALL: :ALL
|
3976
|
-
|
3977
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
3978
|
-
end
|
3979
|
-
end
|
3980
|
-
|
3981
|
-
type commit_hierarchy_child_access_none =
|
3982
|
-
{
|
3983
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
3984
|
-
}
|
3985
|
-
|
3986
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
3987
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
3988
|
-
|
3989
|
-
def initialize: (
|
3990
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
3991
|
-
) -> void
|
3992
|
-
|
3993
|
-
def to_hash: -> {
|
3994
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
3995
|
-
}
|
3996
|
-
|
3997
|
-
type type_ = :NONE
|
3998
|
-
|
3999
|
-
module Type
|
4000
|
-
extend MetronomeSDK::Internal::Type::Enum
|
4001
|
-
|
4002
|
-
NONE: :NONE
|
4003
|
-
|
4004
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
4005
|
-
end
|
4006
|
-
end
|
4007
|
-
|
4008
|
-
type commit_hierarchy_child_access_contract_ids =
|
4009
|
-
{
|
4010
|
-
contract_ids: ::Array[String],
|
4011
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
4012
|
-
}
|
4013
|
-
|
4014
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
4015
|
-
attr_accessor contract_ids: ::Array[String]
|
4016
|
-
|
4017
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
4018
|
-
|
4019
|
-
def initialize: (
|
4020
|
-
contract_ids: ::Array[String],
|
4021
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
4022
|
-
) -> void
|
4023
|
-
|
4024
|
-
def to_hash: -> {
|
4025
|
-
contract_ids: ::Array[String],
|
4026
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
4027
|
-
}
|
4028
|
-
|
4029
|
-
type type_ = :CONTRACT_IDS
|
4030
|
-
|
4031
|
-
module Type
|
4032
|
-
extend MetronomeSDK::Internal::Type::Enum
|
4033
|
-
|
4034
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
4035
|
-
|
4036
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
4037
|
-
end
|
4038
|
-
end
|
4039
|
-
|
4040
|
-
def self?.variants: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::child_access]
|
4041
|
-
end
|
4042
|
-
end
|
4043
|
-
|
4044
2895
|
type invoice_schedule =
|
4045
2896
|
{
|
4046
2897
|
add_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::AddScheduleItem],
|
@@ -4172,6 +3023,17 @@ module MetronomeSDK
|
|
4172
3023
|
}
|
4173
3024
|
end
|
4174
3025
|
end
|
3026
|
+
|
3027
|
+
type rate_type = :LIST_RATE | :COMMIT_RATE
|
3028
|
+
|
3029
|
+
module RateType
|
3030
|
+
extend MetronomeSDK::Internal::Type::Enum
|
3031
|
+
|
3032
|
+
LIST_RATE: :LIST_RATE
|
3033
|
+
COMMIT_RATE: :COMMIT_RATE
|
3034
|
+
|
3035
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::rate_type]
|
3036
|
+
end
|
4175
3037
|
end
|
4176
3038
|
|
4177
3039
|
type update_credit =
|
@@ -4180,10 +3042,11 @@ module MetronomeSDK
|
|
4180
3042
|
access_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCredit::AccessSchedule,
|
4181
3043
|
applicable_product_ids: ::Array[String]?,
|
4182
3044
|
applicable_product_tags: ::Array[String]?,
|
4183
|
-
hierarchy_configuration: MetronomeSDK::
|
3045
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
4184
3046
|
netsuite_sales_order_id: String?,
|
4185
3047
|
priority: Float?,
|
4186
|
-
product_id: String
|
3048
|
+
product_id: String,
|
3049
|
+
rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::rate_type
|
4187
3050
|
}
|
4188
3051
|
|
4189
3052
|
class UpdateCredit < MetronomeSDK::Internal::Type::BaseModel
|
@@ -4199,11 +3062,11 @@ module MetronomeSDK
|
|
4199
3062
|
|
4200
3063
|
attr_accessor applicable_product_tags: ::Array[String]?
|
4201
3064
|
|
4202
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
3065
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
4203
3066
|
|
4204
3067
|
def hierarchy_configuration=: (
|
4205
|
-
MetronomeSDK::
|
4206
|
-
) -> MetronomeSDK::
|
3068
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
3069
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
4207
3070
|
|
4208
3071
|
attr_accessor netsuite_sales_order_id: String?
|
4209
3072
|
|
@@ -4213,15 +3076,22 @@ module MetronomeSDK
|
|
4213
3076
|
|
4214
3077
|
def product_id=: (String) -> String
|
4215
3078
|
|
3079
|
+
attr_reader rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::rate_type?
|
3080
|
+
|
3081
|
+
def rate_type=: (
|
3082
|
+
MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::rate_type
|
3083
|
+
) -> MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::rate_type
|
3084
|
+
|
4216
3085
|
def initialize: (
|
4217
3086
|
credit_id: String,
|
4218
3087
|
?access_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCredit::AccessSchedule,
|
4219
3088
|
?applicable_product_ids: ::Array[String]?,
|
4220
3089
|
?applicable_product_tags: ::Array[String]?,
|
4221
|
-
?hierarchy_configuration: MetronomeSDK::
|
3090
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
4222
3091
|
?netsuite_sales_order_id: String?,
|
4223
3092
|
?priority: Float?,
|
4224
|
-
?product_id: String
|
3093
|
+
?product_id: String,
|
3094
|
+
?rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::rate_type
|
4225
3095
|
) -> void
|
4226
3096
|
|
4227
3097
|
def to_hash: -> {
|
@@ -4229,10 +3099,11 @@ module MetronomeSDK
|
|
4229
3099
|
access_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCredit::AccessSchedule,
|
4230
3100
|
applicable_product_ids: ::Array[String]?,
|
4231
3101
|
applicable_product_tags: ::Array[String]?,
|
4232
|
-
hierarchy_configuration: MetronomeSDK::
|
3102
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
4233
3103
|
netsuite_sales_order_id: String?,
|
4234
3104
|
priority: Float?,
|
4235
|
-
product_id: String
|
3105
|
+
product_id: String,
|
3106
|
+
rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::rate_type
|
4236
3107
|
}
|
4237
3108
|
|
4238
3109
|
type access_schedule =
|
@@ -4314,149 +3185,46 @@ module MetronomeSDK
|
|
4314
3185
|
starting_at: Time
|
4315
3186
|
}
|
4316
3187
|
|
4317
|
-
class UpdateScheduleItem < MetronomeSDK::Internal::Type::BaseModel
|
4318
|
-
attr_accessor id: String
|
4319
|
-
|
4320
|
-
attr_reader amount: Float?
|
4321
|
-
|
4322
|
-
def amount=: (Float) -> Float
|
4323
|
-
|
4324
|
-
attr_reader ending_before: Time?
|
4325
|
-
|
4326
|
-
def ending_before=: (Time) -> Time
|
4327
|
-
|
4328
|
-
attr_reader starting_at: Time?
|
4329
|
-
|
4330
|
-
def starting_at=: (Time) -> Time
|
4331
|
-
|
4332
|
-
def initialize: (
|
4333
|
-
id: String,
|
4334
|
-
?amount: Float,
|
4335
|
-
?ending_before: Time,
|
4336
|
-
?starting_at: Time
|
4337
|
-
) -> void
|
4338
|
-
|
4339
|
-
def to_hash: -> {
|
4340
|
-
id: String,
|
4341
|
-
amount: Float,
|
4342
|
-
ending_before: Time,
|
4343
|
-
starting_at: Time
|
4344
|
-
}
|
4345
|
-
end
|
4346
|
-
end
|
4347
|
-
|
4348
|
-
type hierarchy_configuration =
|
4349
|
-
{
|
4350
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::child_access
|
4351
|
-
}
|
4352
|
-
|
4353
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
4354
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::child_access
|
4355
|
-
|
4356
|
-
def initialize: (
|
4357
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::child_access
|
4358
|
-
) -> void
|
4359
|
-
|
4360
|
-
def to_hash: -> {
|
4361
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::child_access
|
4362
|
-
}
|
4363
|
-
|
4364
|
-
type child_access =
|
4365
|
-
MetronomeSDK::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
4366
|
-
| MetronomeSDK::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
4367
|
-
| MetronomeSDK::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
4368
|
-
|
4369
|
-
module ChildAccess
|
4370
|
-
extend MetronomeSDK::Internal::Type::Union
|
4371
|
-
|
4372
|
-
type commit_hierarchy_child_access_all =
|
4373
|
-
{
|
4374
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
4375
|
-
}
|
4376
|
-
|
4377
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
4378
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
4379
|
-
|
4380
|
-
def initialize: (
|
4381
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
4382
|
-
) -> void
|
4383
|
-
|
4384
|
-
def to_hash: -> {
|
4385
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
4386
|
-
}
|
4387
|
-
|
4388
|
-
type type_ = :ALL
|
4389
|
-
|
4390
|
-
module Type
|
4391
|
-
extend MetronomeSDK::Internal::Type::Enum
|
4392
|
-
|
4393
|
-
ALL: :ALL
|
4394
|
-
|
4395
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
4396
|
-
end
|
4397
|
-
end
|
4398
|
-
|
4399
|
-
type commit_hierarchy_child_access_none =
|
4400
|
-
{
|
4401
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
4402
|
-
}
|
4403
|
-
|
4404
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
4405
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
4406
|
-
|
4407
|
-
def initialize: (
|
4408
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
4409
|
-
) -> void
|
4410
|
-
|
4411
|
-
def to_hash: -> {
|
4412
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
4413
|
-
}
|
4414
|
-
|
4415
|
-
type type_ = :NONE
|
4416
|
-
|
4417
|
-
module Type
|
4418
|
-
extend MetronomeSDK::Internal::Type::Enum
|
3188
|
+
class UpdateScheduleItem < MetronomeSDK::Internal::Type::BaseModel
|
3189
|
+
attr_accessor id: String
|
4419
3190
|
|
4420
|
-
|
3191
|
+
attr_reader amount: Float?
|
4421
3192
|
|
4422
|
-
|
4423
|
-
end
|
4424
|
-
end
|
3193
|
+
def amount=: (Float) -> Float
|
4425
3194
|
|
4426
|
-
|
4427
|
-
{
|
4428
|
-
contract_ids: ::Array[String],
|
4429
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
4430
|
-
}
|
3195
|
+
attr_reader ending_before: Time?
|
4431
3196
|
|
4432
|
-
|
4433
|
-
attr_accessor contract_ids: ::Array[String]
|
3197
|
+
def ending_before=: (Time) -> Time
|
4434
3198
|
|
4435
|
-
|
3199
|
+
attr_reader starting_at: Time?
|
4436
3200
|
|
4437
|
-
|
4438
|
-
contract_ids: ::Array[String],
|
4439
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
4440
|
-
) -> void
|
3201
|
+
def starting_at=: (Time) -> Time
|
4441
3202
|
|
4442
|
-
|
4443
|
-
|
4444
|
-
|
4445
|
-
|
3203
|
+
def initialize: (
|
3204
|
+
id: String,
|
3205
|
+
?amount: Float,
|
3206
|
+
?ending_before: Time,
|
3207
|
+
?starting_at: Time
|
3208
|
+
) -> void
|
4446
3209
|
|
4447
|
-
|
3210
|
+
def to_hash: -> {
|
3211
|
+
id: String,
|
3212
|
+
amount: Float,
|
3213
|
+
ending_before: Time,
|
3214
|
+
starting_at: Time
|
3215
|
+
}
|
3216
|
+
end
|
3217
|
+
end
|
4448
3218
|
|
4449
|
-
|
4450
|
-
extend MetronomeSDK::Internal::Type::Enum
|
3219
|
+
type rate_type = :LIST_RATE | :COMMIT_RATE
|
4451
3220
|
|
4452
|
-
|
3221
|
+
module RateType
|
3222
|
+
extend MetronomeSDK::Internal::Type::Enum
|
4453
3223
|
|
4454
|
-
|
4455
|
-
|
4456
|
-
end
|
3224
|
+
LIST_RATE: :LIST_RATE
|
3225
|
+
COMMIT_RATE: :COMMIT_RATE
|
4457
3226
|
|
4458
|
-
|
4459
|
-
end
|
3227
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::rate_type]
|
4460
3228
|
end
|
4461
3229
|
end
|
4462
3230
|
|
@@ -4465,7 +3233,7 @@ module MetronomeSDK
|
|
4465
3233
|
commit: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::Commit,
|
4466
3234
|
custom_credit_type_id: String?,
|
4467
3235
|
is_enabled: bool,
|
4468
|
-
payment_gate_config: MetronomeSDK::
|
3236
|
+
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
4469
3237
|
recharge_to_amount: Float,
|
4470
3238
|
threshold_amount: Float
|
4471
3239
|
}
|
@@ -4483,11 +3251,11 @@ module MetronomeSDK
|
|
4483
3251
|
|
4484
3252
|
def is_enabled=: (bool) -> bool
|
4485
3253
|
|
4486
|
-
attr_reader payment_gate_config: MetronomeSDK::
|
3254
|
+
attr_reader payment_gate_config: MetronomeSDK::PaymentGateConfigV2?
|
4487
3255
|
|
4488
3256
|
def payment_gate_config=: (
|
4489
|
-
MetronomeSDK::
|
4490
|
-
) -> MetronomeSDK::
|
3257
|
+
MetronomeSDK::PaymentGateConfigV2
|
3258
|
+
) -> MetronomeSDK::PaymentGateConfigV2
|
4491
3259
|
|
4492
3260
|
attr_reader recharge_to_amount: Float?
|
4493
3261
|
|
@@ -4501,7 +3269,7 @@ module MetronomeSDK
|
|
4501
3269
|
?commit: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::Commit,
|
4502
3270
|
?custom_credit_type_id: String?,
|
4503
3271
|
?is_enabled: bool,
|
4504
|
-
?payment_gate_config: MetronomeSDK::
|
3272
|
+
?payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
4505
3273
|
?recharge_to_amount: Float,
|
4506
3274
|
?threshold_amount: Float
|
4507
3275
|
) -> void
|
@@ -4510,7 +3278,7 @@ module MetronomeSDK
|
|
4510
3278
|
commit: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::Commit,
|
4511
3279
|
custom_credit_type_id: String?,
|
4512
3280
|
is_enabled: bool,
|
4513
|
-
payment_gate_config: MetronomeSDK::
|
3281
|
+
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
4514
3282
|
recharge_to_amount: Float,
|
4515
3283
|
threshold_amount: Float
|
4516
3284
|
}
|
@@ -4519,213 +3287,39 @@ module MetronomeSDK
|
|
4519
3287
|
{
|
4520
3288
|
applicable_product_ids: ::Array[String]?,
|
4521
3289
|
applicable_product_tags: ::Array[String]?,
|
4522
|
-
|
4523
|
-
name: String,
|
4524
|
-
product_id: String,
|
4525
|
-
specifiers: ::Array[MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::Commit::Specifier]?
|
3290
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
4526
3291
|
}
|
4527
3292
|
|
4528
|
-
class Commit < MetronomeSDK::
|
4529
|
-
|
4530
|
-
|
4531
|
-
attr_accessor applicable_product_tags: ::Array[String]?
|
4532
|
-
|
4533
|
-
attr_reader description: String?
|
3293
|
+
class Commit < MetronomeSDK::Models::UpdateBaseThresholdCommit
|
3294
|
+
def applicable_product_ids: -> ::Array[String]?
|
4534
3295
|
|
4535
|
-
def
|
3296
|
+
def applicable_product_ids=: (
|
3297
|
+
::Array[String]? _
|
3298
|
+
) -> ::Array[String]?
|
4536
3299
|
|
4537
|
-
|
3300
|
+
def applicable_product_tags: -> ::Array[String]?
|
4538
3301
|
|
4539
|
-
def
|
3302
|
+
def applicable_product_tags=: (
|
3303
|
+
::Array[String]? _
|
3304
|
+
) -> ::Array[String]?
|
4540
3305
|
|
4541
|
-
|
4542
|
-
|
4543
|
-
def product_id=: (String) -> String
|
3306
|
+
def specifiers: -> ::Array[MetronomeSDK::CommitSpecifierInput]?
|
4544
3307
|
|
4545
|
-
|
3308
|
+
def specifiers=: (
|
3309
|
+
::Array[MetronomeSDK::CommitSpecifierInput]? _
|
3310
|
+
) -> ::Array[MetronomeSDK::CommitSpecifierInput]?
|
4546
3311
|
|
4547
3312
|
def initialize: (
|
4548
3313
|
?applicable_product_ids: ::Array[String]?,
|
4549
3314
|
?applicable_product_tags: ::Array[String]?,
|
4550
|
-
?
|
4551
|
-
?name: String,
|
4552
|
-
?product_id: String,
|
4553
|
-
?specifiers: ::Array[MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::Commit::Specifier]?
|
3315
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
4554
3316
|
) -> void
|
4555
3317
|
|
4556
3318
|
def to_hash: -> {
|
4557
3319
|
applicable_product_ids: ::Array[String]?,
|
4558
3320
|
applicable_product_tags: ::Array[String]?,
|
4559
|
-
|
4560
|
-
name: String,
|
4561
|
-
product_id: String,
|
4562
|
-
specifiers: ::Array[MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::Commit::Specifier]?
|
4563
|
-
}
|
4564
|
-
|
4565
|
-
type specifier =
|
4566
|
-
{
|
4567
|
-
presentation_group_values: ::Hash[Symbol, String],
|
4568
|
-
pricing_group_values: ::Hash[Symbol, String],
|
4569
|
-
product_id: String,
|
4570
|
-
product_tags: ::Array[String]
|
4571
|
-
}
|
4572
|
-
|
4573
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
4574
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
4575
|
-
|
4576
|
-
def presentation_group_values=: (
|
4577
|
-
::Hash[Symbol, String]
|
4578
|
-
) -> ::Hash[Symbol, String]
|
4579
|
-
|
4580
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
4581
|
-
|
4582
|
-
def pricing_group_values=: (
|
4583
|
-
::Hash[Symbol, String]
|
4584
|
-
) -> ::Hash[Symbol, String]
|
4585
|
-
|
4586
|
-
attr_reader product_id: String?
|
4587
|
-
|
4588
|
-
def product_id=: (String) -> String
|
4589
|
-
|
4590
|
-
attr_reader product_tags: ::Array[String]?
|
4591
|
-
|
4592
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
4593
|
-
|
4594
|
-
def initialize: (
|
4595
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
4596
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
4597
|
-
?product_id: String,
|
4598
|
-
?product_tags: ::Array[String]
|
4599
|
-
) -> void
|
4600
|
-
|
4601
|
-
def to_hash: -> {
|
4602
|
-
presentation_group_values: ::Hash[Symbol, String],
|
4603
|
-
pricing_group_values: ::Hash[Symbol, String],
|
4604
|
-
product_id: String,
|
4605
|
-
product_tags: ::Array[String]
|
4606
|
-
}
|
4607
|
-
end
|
4608
|
-
end
|
4609
|
-
|
4610
|
-
type payment_gate_config =
|
4611
|
-
{
|
4612
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
4613
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
4614
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
4615
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
4616
|
-
}
|
4617
|
-
|
4618
|
-
class PaymentGateConfig < MetronomeSDK::Internal::Type::BaseModel
|
4619
|
-
attr_accessor payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type
|
4620
|
-
|
4621
|
-
attr_reader precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig?
|
4622
|
-
|
4623
|
-
def precalculated_tax_config=: (
|
4624
|
-
MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
4625
|
-
) -> MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
4626
|
-
|
4627
|
-
attr_reader stripe_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig?
|
4628
|
-
|
4629
|
-
def stripe_config=: (
|
4630
|
-
MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig
|
4631
|
-
) -> MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig
|
4632
|
-
|
4633
|
-
attr_reader tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type?
|
4634
|
-
|
4635
|
-
def tax_type=: (
|
4636
|
-
MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
4637
|
-
) -> MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
4638
|
-
|
4639
|
-
def initialize: (
|
4640
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
4641
|
-
?precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
4642
|
-
?stripe_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
4643
|
-
?tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
4644
|
-
) -> void
|
4645
|
-
|
4646
|
-
def to_hash: -> {
|
4647
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
4648
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
4649
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
4650
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
3321
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
4651
3322
|
}
|
4652
|
-
|
4653
|
-
type payment_gate_type = :NONE | :STRIPE | :EXTERNAL
|
4654
|
-
|
4655
|
-
module PaymentGateType
|
4656
|
-
extend MetronomeSDK::Internal::Type::Enum
|
4657
|
-
|
4658
|
-
NONE: :NONE
|
4659
|
-
STRIPE: :STRIPE
|
4660
|
-
EXTERNAL: :EXTERNAL
|
4661
|
-
|
4662
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type]
|
4663
|
-
end
|
4664
|
-
|
4665
|
-
type precalculated_tax_config =
|
4666
|
-
{ tax_amount: Float, tax_name: String }
|
4667
|
-
|
4668
|
-
class PrecalculatedTaxConfig < MetronomeSDK::Internal::Type::BaseModel
|
4669
|
-
attr_accessor tax_amount: Float
|
4670
|
-
|
4671
|
-
attr_reader tax_name: String?
|
4672
|
-
|
4673
|
-
def tax_name=: (String) -> String
|
4674
|
-
|
4675
|
-
def initialize: (tax_amount: Float, ?tax_name: String) -> void
|
4676
|
-
|
4677
|
-
def to_hash: -> { tax_amount: Float, tax_name: String }
|
4678
|
-
end
|
4679
|
-
|
4680
|
-
type stripe_config =
|
4681
|
-
{
|
4682
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
4683
|
-
invoice_metadata: ::Hash[Symbol, String]
|
4684
|
-
}
|
4685
|
-
|
4686
|
-
class StripeConfig < MetronomeSDK::Internal::Type::BaseModel
|
4687
|
-
attr_accessor payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type
|
4688
|
-
|
4689
|
-
attr_reader invoice_metadata: ::Hash[Symbol, String]?
|
4690
|
-
|
4691
|
-
def invoice_metadata=: (
|
4692
|
-
::Hash[Symbol, String]
|
4693
|
-
) -> ::Hash[Symbol, String]
|
4694
|
-
|
4695
|
-
def initialize: (
|
4696
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
4697
|
-
?invoice_metadata: ::Hash[Symbol, String]
|
4698
|
-
) -> void
|
4699
|
-
|
4700
|
-
def to_hash: -> {
|
4701
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
4702
|
-
invoice_metadata: ::Hash[Symbol, String]
|
4703
|
-
}
|
4704
|
-
|
4705
|
-
type payment_type = :INVOICE | :PAYMENT_INTENT
|
4706
|
-
|
4707
|
-
module PaymentType
|
4708
|
-
extend MetronomeSDK::Internal::Type::Enum
|
4709
|
-
|
4710
|
-
INVOICE: :INVOICE
|
4711
|
-
PAYMENT_INTENT: :PAYMENT_INTENT
|
4712
|
-
|
4713
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type]
|
4714
|
-
end
|
4715
|
-
end
|
4716
|
-
|
4717
|
-
type tax_type = :NONE | :STRIPE | :ANROK | :PRECALCULATED
|
4718
|
-
|
4719
|
-
module TaxType
|
4720
|
-
extend MetronomeSDK::Internal::Type::Enum
|
4721
|
-
|
4722
|
-
NONE: :NONE
|
4723
|
-
STRIPE: :STRIPE
|
4724
|
-
ANROK: :ANROK
|
4725
|
-
PRECALCULATED: :PRECALCULATED
|
4726
|
-
|
4727
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type]
|
4728
|
-
end
|
4729
3323
|
end
|
4730
3324
|
end
|
4731
3325
|
|
@@ -5013,196 +3607,46 @@ module MetronomeSDK
|
|
5013
3607
|
|
5014
3608
|
type update_spend_threshold_configuration =
|
5015
3609
|
{
|
5016
|
-
commit: MetronomeSDK::
|
3610
|
+
commit: MetronomeSDK::UpdateBaseThresholdCommit,
|
5017
3611
|
is_enabled: bool,
|
5018
|
-
payment_gate_config: MetronomeSDK::
|
3612
|
+
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
5019
3613
|
threshold_amount: Float
|
5020
3614
|
}
|
5021
3615
|
|
5022
3616
|
class UpdateSpendThresholdConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
5023
|
-
attr_reader commit: MetronomeSDK::
|
3617
|
+
attr_reader commit: MetronomeSDK::UpdateBaseThresholdCommit?
|
5024
3618
|
|
5025
3619
|
def commit=: (
|
5026
|
-
MetronomeSDK::
|
5027
|
-
) -> MetronomeSDK::
|
3620
|
+
MetronomeSDK::UpdateBaseThresholdCommit
|
3621
|
+
) -> MetronomeSDK::UpdateBaseThresholdCommit
|
5028
3622
|
|
5029
3623
|
attr_reader is_enabled: bool?
|
5030
3624
|
|
5031
3625
|
def is_enabled=: (bool) -> bool
|
5032
3626
|
|
5033
|
-
attr_reader payment_gate_config: MetronomeSDK::
|
3627
|
+
attr_reader payment_gate_config: MetronomeSDK::PaymentGateConfigV2?
|
5034
3628
|
|
5035
3629
|
def payment_gate_config=: (
|
5036
|
-
MetronomeSDK::
|
5037
|
-
) -> MetronomeSDK::
|
3630
|
+
MetronomeSDK::PaymentGateConfigV2
|
3631
|
+
) -> MetronomeSDK::PaymentGateConfigV2
|
5038
3632
|
|
5039
3633
|
attr_reader threshold_amount: Float?
|
5040
3634
|
|
5041
3635
|
def threshold_amount=: (Float) -> Float
|
5042
3636
|
|
5043
3637
|
def initialize: (
|
5044
|
-
?commit: MetronomeSDK::
|
3638
|
+
?commit: MetronomeSDK::UpdateBaseThresholdCommit,
|
5045
3639
|
?is_enabled: bool,
|
5046
|
-
?payment_gate_config: MetronomeSDK::
|
3640
|
+
?payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
5047
3641
|
?threshold_amount: Float
|
5048
3642
|
) -> void
|
5049
3643
|
|
5050
3644
|
def to_hash: -> {
|
5051
|
-
commit: MetronomeSDK::
|
3645
|
+
commit: MetronomeSDK::UpdateBaseThresholdCommit,
|
5052
3646
|
is_enabled: bool,
|
5053
|
-
payment_gate_config: MetronomeSDK::
|
3647
|
+
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
5054
3648
|
threshold_amount: Float
|
5055
3649
|
}
|
5056
|
-
|
5057
|
-
type commit =
|
5058
|
-
{ description: String, name: String, product_id: String }
|
5059
|
-
|
5060
|
-
class Commit < MetronomeSDK::Internal::Type::BaseModel
|
5061
|
-
attr_reader description: String?
|
5062
|
-
|
5063
|
-
def description=: (String) -> String
|
5064
|
-
|
5065
|
-
attr_reader name: String?
|
5066
|
-
|
5067
|
-
def name=: (String) -> String
|
5068
|
-
|
5069
|
-
attr_reader product_id: String?
|
5070
|
-
|
5071
|
-
def product_id=: (String) -> String
|
5072
|
-
|
5073
|
-
def initialize: (
|
5074
|
-
?description: String,
|
5075
|
-
?name: String,
|
5076
|
-
?product_id: String
|
5077
|
-
) -> void
|
5078
|
-
|
5079
|
-
def to_hash: -> {
|
5080
|
-
description: String,
|
5081
|
-
name: String,
|
5082
|
-
product_id: String
|
5083
|
-
}
|
5084
|
-
end
|
5085
|
-
|
5086
|
-
type payment_gate_config =
|
5087
|
-
{
|
5088
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
5089
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
5090
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
5091
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
5092
|
-
}
|
5093
|
-
|
5094
|
-
class PaymentGateConfig < MetronomeSDK::Internal::Type::BaseModel
|
5095
|
-
attr_accessor payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type
|
5096
|
-
|
5097
|
-
attr_reader precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig?
|
5098
|
-
|
5099
|
-
def precalculated_tax_config=: (
|
5100
|
-
MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
5101
|
-
) -> MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
5102
|
-
|
5103
|
-
attr_reader stripe_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig?
|
5104
|
-
|
5105
|
-
def stripe_config=: (
|
5106
|
-
MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig
|
5107
|
-
) -> MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig
|
5108
|
-
|
5109
|
-
attr_reader tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type?
|
5110
|
-
|
5111
|
-
def tax_type=: (
|
5112
|
-
MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
5113
|
-
) -> MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
5114
|
-
|
5115
|
-
def initialize: (
|
5116
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
5117
|
-
?precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
5118
|
-
?stripe_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
5119
|
-
?tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
5120
|
-
) -> void
|
5121
|
-
|
5122
|
-
def to_hash: -> {
|
5123
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
5124
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
5125
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
5126
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
5127
|
-
}
|
5128
|
-
|
5129
|
-
type payment_gate_type = :NONE | :STRIPE | :EXTERNAL
|
5130
|
-
|
5131
|
-
module PaymentGateType
|
5132
|
-
extend MetronomeSDK::Internal::Type::Enum
|
5133
|
-
|
5134
|
-
NONE: :NONE
|
5135
|
-
STRIPE: :STRIPE
|
5136
|
-
EXTERNAL: :EXTERNAL
|
5137
|
-
|
5138
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type]
|
5139
|
-
end
|
5140
|
-
|
5141
|
-
type precalculated_tax_config =
|
5142
|
-
{ tax_amount: Float, tax_name: String }
|
5143
|
-
|
5144
|
-
class PrecalculatedTaxConfig < MetronomeSDK::Internal::Type::BaseModel
|
5145
|
-
attr_accessor tax_amount: Float
|
5146
|
-
|
5147
|
-
attr_reader tax_name: String?
|
5148
|
-
|
5149
|
-
def tax_name=: (String) -> String
|
5150
|
-
|
5151
|
-
def initialize: (tax_amount: Float, ?tax_name: String) -> void
|
5152
|
-
|
5153
|
-
def to_hash: -> { tax_amount: Float, tax_name: String }
|
5154
|
-
end
|
5155
|
-
|
5156
|
-
type stripe_config =
|
5157
|
-
{
|
5158
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
5159
|
-
invoice_metadata: ::Hash[Symbol, String]
|
5160
|
-
}
|
5161
|
-
|
5162
|
-
class StripeConfig < MetronomeSDK::Internal::Type::BaseModel
|
5163
|
-
attr_accessor payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type
|
5164
|
-
|
5165
|
-
attr_reader invoice_metadata: ::Hash[Symbol, String]?
|
5166
|
-
|
5167
|
-
def invoice_metadata=: (
|
5168
|
-
::Hash[Symbol, String]
|
5169
|
-
) -> ::Hash[Symbol, String]
|
5170
|
-
|
5171
|
-
def initialize: (
|
5172
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
5173
|
-
?invoice_metadata: ::Hash[Symbol, String]
|
5174
|
-
) -> void
|
5175
|
-
|
5176
|
-
def to_hash: -> {
|
5177
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
5178
|
-
invoice_metadata: ::Hash[Symbol, String]
|
5179
|
-
}
|
5180
|
-
|
5181
|
-
type payment_type = :INVOICE | :PAYMENT_INTENT
|
5182
|
-
|
5183
|
-
module PaymentType
|
5184
|
-
extend MetronomeSDK::Internal::Type::Enum
|
5185
|
-
|
5186
|
-
INVOICE: :INVOICE
|
5187
|
-
PAYMENT_INTENT: :PAYMENT_INTENT
|
5188
|
-
|
5189
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type]
|
5190
|
-
end
|
5191
|
-
end
|
5192
|
-
|
5193
|
-
type tax_type = :NONE | :STRIPE | :ANROK | :PRECALCULATED
|
5194
|
-
|
5195
|
-
module TaxType
|
5196
|
-
extend MetronomeSDK::Internal::Type::Enum
|
5197
|
-
|
5198
|
-
NONE: :NONE
|
5199
|
-
STRIPE: :STRIPE
|
5200
|
-
ANROK: :ANROK
|
5201
|
-
PRECALCULATED: :PRECALCULATED
|
5202
|
-
|
5203
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type]
|
5204
|
-
end
|
5205
|
-
end
|
5206
3650
|
end
|
5207
3651
|
|
5208
3652
|
type update_subscription =
|