metronome-sdk 0.3.0 → 2.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 +91 -0
- data/README.md +9 -9
- data/lib/metronome_sdk/errors.rb +25 -11
- data/lib/metronome_sdk/file_part.rb +10 -7
- data/lib/metronome_sdk/internal/body_cursor_page.rb +86 -0
- data/lib/metronome_sdk/internal/cursor_page.rb +1 -1
- data/lib/metronome_sdk/internal/cursor_page_without_limit.rb +86 -0
- data/lib/metronome_sdk/internal/transport/base_client.rb +12 -11
- data/lib/metronome_sdk/internal/transport/pooled_net_requester.rb +8 -19
- data/lib/metronome_sdk/internal/type/base_model.rb +6 -13
- data/lib/metronome_sdk/internal/type/base_page.rb +1 -1
- data/lib/metronome_sdk/internal/type/enum.rb +25 -0
- data/lib/metronome_sdk/internal/type/file_input.rb +7 -4
- data/lib/metronome_sdk/internal/type/union.rb +11 -0
- data/lib/metronome_sdk/internal/util.rb +9 -8
- 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 +3169 -0
- data/lib/metronome_sdk/models/contract_without_amendments.rb +38 -1128
- 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 +173 -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 +150 -0
- data/lib/metronome_sdk/models/payment_gate_config_v2.rb +150 -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 +311 -0
- data/lib/metronome_sdk/models/update_base_threshold_commit.rb +36 -0
- data/lib/metronome_sdk/models/v1/alert_archive_params.rb +8 -4
- data/lib/metronome_sdk/models/v1/alert_create_params.rb +42 -42
- 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 +58 -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 +315 -1459
- 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 +11 -2
- 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 +6 -18
- data/lib/metronome_sdk/models/v1/customer_preview_events_response.rb +3 -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 +4 -6
- data/lib/metronome_sdk/models/v1/customers/alert_reset_params.rb +2 -2
- data/lib/metronome_sdk/models/v1/customers/alert_retrieve_params.rb +37 -8
- 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 +48 -54
- data/lib/metronome_sdk/models/v1/customers/invoice.rb +197 -66
- data/lib/metronome_sdk/models/v1/customers/invoice_list_breakdowns_params.rb +1 -4
- data/lib/metronome_sdk/models/v1/customers/invoice_retrieve_pdf_params.rb +30 -0
- 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/payment.rb +151 -0
- data/lib/metronome_sdk/models/v1/payment_attempt_params.rb +28 -0
- data/lib/metronome_sdk/models/v1/payment_attempt_response.rb +18 -0
- data/lib/metronome_sdk/models/v1/payment_cancel_params.rb +28 -0
- data/lib/metronome_sdk/models/v1/payment_cancel_response.rb +18 -0
- data/lib/metronome_sdk/models/v1/payment_list_params.rb +53 -0
- data/lib/metronome_sdk/models/v1/payment_status.rb +19 -0
- 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 +37 -58
- data/lib/metronome_sdk/models/v2/contract_edit_credit_params.rb +34 -49
- data/lib/metronome_sdk/models/v2/contract_edit_params.rb +552 -2265
- data/lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb +417 -2317
- 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 +90 -16
- 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 +255 -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 +127 -13
- 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 +179 -8
- data/lib/metronome_sdk/resources/v1/customers.rb +175 -15
- 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/payments.rb +102 -0
- 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 +188 -13
- data/lib/metronome_sdk/resources/v1.rb +4 -0
- data/lib/metronome_sdk/resources/v2/contracts.rb +120 -18
- data/lib/metronome_sdk/version.rb +1 -1
- data/lib/metronome_sdk.rb +33 -3
- data/rbi/metronome_sdk/errors.rbi +31 -4
- data/rbi/metronome_sdk/file_part.rbi +1 -1
- 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/internal/transport/base_client.rbi +4 -5
- data/rbi/metronome_sdk/internal/type/base_page.rbi +1 -1
- data/rbi/metronome_sdk/internal/util.rbi +1 -1
- 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 +6415 -0
- data/rbi/metronome_sdk/models/contract_without_amendments.rbi +186 -2509
- 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 +424 -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 +317 -0
- data/rbi/metronome_sdk/models/payment_gate_config_v2.rbi +326 -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 +635 -0
- data/rbi/metronome_sdk/models/update_base_threshold_commit.rbi +61 -0
- data/rbi/metronome_sdk/models/v1/alert_archive_params.rbi +6 -4
- data/rbi/metronome_sdk/models/v1/alert_create_params.rbi +57 -50
- 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 +49 -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 +1843 -4119
- 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 +10 -0
- data/rbi/metronome_sdk/models/v1/customer_list_billable_metrics_response.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/customer_preview_events_params.rbi +6 -21
- data/rbi/metronome_sdk/models/v1/customer_preview_events_response.rbi +10 -9
- 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_list_params.rbi +4 -4
- data/rbi/metronome_sdk/models/v1/customers/alert_reset_params.rbi +2 -2
- data/rbi/metronome_sdk/models/v1/customers/alert_retrieve_params.rbi +68 -8
- 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 +54 -47
- data/rbi/metronome_sdk/models/v1/customers/invoice.rbi +316 -68
- data/rbi/metronome_sdk/models/v1/customers/invoice_retrieve_pdf_params.rbi +50 -0
- data/rbi/metronome_sdk/models/v1/customers/plan_list_response.rbi +2 -0
- data/rbi/metronome_sdk/models/v1/payment.rbi +316 -0
- data/rbi/metronome_sdk/models/v1/payment_attempt_params.rbi +48 -0
- data/rbi/metronome_sdk/models/v1/payment_attempt_response.rbi +35 -0
- data/rbi/metronome_sdk/models/v1/payment_cancel_params.rbi +48 -0
- data/rbi/metronome_sdk/models/v1/payment_cancel_response.rbi +35 -0
- data/rbi/metronome_sdk/models/v1/payment_list_params.rbi +91 -0
- data/rbi/metronome_sdk/models/v1/payment_status.rbi +33 -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 +74 -76
- data/rbi/metronome_sdk/models/v2/contract_edit_credit_params.rbi +74 -76
- data/rbi/metronome_sdk/models/v2/contract_edit_params.rbi +3875 -7234
- data/rbi/metronome_sdk/models/v2/contract_get_edit_history_response.rbi +1733 -6207
- 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 +101 -27
- 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 +258 -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 +133 -11
- 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 +159 -7
- data/rbi/metronome_sdk/resources/v1/customers.rbi +162 -14
- 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/payments.rbi +72 -0
- 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 +191 -13
- data/rbi/metronome_sdk/resources/v1.rbi +3 -0
- data/rbi/metronome_sdk/resources/v2/contracts.rbi +134 -23
- data/sig/metronome_sdk/errors.rbs +7 -0
- data/sig/metronome_sdk/file_part.rbs +1 -1
- 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 +3108 -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 +152 -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 +124 -0
- data/sig/metronome_sdk/models/payment_gate_config_v2.rbs +124 -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 +295 -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 +26 -341
- data/sig/metronome_sdk/models/v1/contract_create_params.rbs +219 -1184
- 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_detail.rbs +5 -0
- data/sig/metronome_sdk/models/v1/customer_preview_events_params.rbs +0 -7
- data/sig/metronome_sdk/models/v1/customer_preview_events_response.rbs +6 -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/customers/invoice.rbs +137 -24
- data/sig/metronome_sdk/models/v1/customers/invoice_retrieve_pdf_params.rbs +32 -0
- data/sig/metronome_sdk/models/v1/payment.rbs +191 -0
- data/sig/metronome_sdk/models/v1/payment_attempt_params.rbs +30 -0
- data/sig/metronome_sdk/models/v1/payment_attempt_response.rbs +15 -0
- data/sig/metronome_sdk/models/v1/payment_cancel_params.rbs +30 -0
- data/sig/metronome_sdk/models/v1/payment_cancel_response.rbs +15 -0
- data/sig/metronome_sdk/models/v1/payment_list_params.rbs +56 -0
- data/sig/metronome_sdk/models/v1/payment_status.rbs +19 -0
- data/sig/metronome_sdk/models/v1/usage_list_response.rbs +33 -55
- data/sig/metronome_sdk/models/v2/contract_edit_commit_params.rbs +28 -43
- data/sig/metronome_sdk/models/v2/contract_edit_credit_params.rbs +28 -43
- data/sig/metronome_sdk/models/v2/contract_edit_params.rbs +412 -1793
- data/sig/metronome_sdk/models/v2/contract_get_edit_history_response.rbs +342 -2149
- 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/invoices.rbs +6 -0
- data/sig/metronome_sdk/resources/v1/customers.rbs +11 -0
- data/sig/metronome_sdk/resources/v1/payments.rbs +30 -0
- data/sig/metronome_sdk/resources/v1/usage.rbs +1 -1
- data/sig/metronome_sdk/resources/v1.rbs +2 -0
- data/sig/metronome_sdk/resources/v2/contracts.rbs +10 -4
- metadata +101 -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
|
@@ -24,20 +24,21 @@ module MetronomeSDK
|
|
|
24
24
|
add_credits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit],
|
|
25
25
|
add_discounts: ::Array[MetronomeSDK::Discount],
|
|
26
26
|
add_overrides: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride],
|
|
27
|
-
add_prepaid_balance_threshold_configuration: MetronomeSDK::
|
|
27
|
+
add_prepaid_balance_threshold_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2,
|
|
28
28
|
add_pro_services: ::Array[MetronomeSDK::ProService],
|
|
29
29
|
add_recurring_commits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit],
|
|
30
30
|
add_recurring_credits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit],
|
|
31
31
|
add_reseller_royalties: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddResellerRoyalty],
|
|
32
32
|
add_scheduled_charges: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddScheduledCharge],
|
|
33
|
-
add_spend_threshold_configuration: MetronomeSDK::
|
|
34
|
-
add_subscriptions: ::Array[MetronomeSDK::
|
|
33
|
+
add_spend_threshold_configuration: MetronomeSDK::SpendThresholdConfigurationV2,
|
|
34
|
+
add_subscriptions: ::Array[MetronomeSDK::Subscription],
|
|
35
35
|
add_usage_filters: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddUsageFilter],
|
|
36
36
|
archive_commits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::ArchiveCommit],
|
|
37
37
|
archive_credits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::ArchiveCredit],
|
|
38
38
|
archive_scheduled_charges: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::ArchiveScheduledCharge],
|
|
39
39
|
remove_overrides: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::RemoveOverride],
|
|
40
40
|
timestamp: Time,
|
|
41
|
+
uniqueness_key: String,
|
|
41
42
|
update_commits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit],
|
|
42
43
|
update_contract_end_date: Time,
|
|
43
44
|
update_contract_name: String?,
|
|
@@ -79,11 +80,11 @@ module MetronomeSDK
|
|
|
79
80
|
::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride]
|
|
80
81
|
) -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride]
|
|
81
82
|
|
|
82
|
-
attr_reader add_prepaid_balance_threshold_configuration: MetronomeSDK::
|
|
83
|
+
attr_reader add_prepaid_balance_threshold_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2?
|
|
83
84
|
|
|
84
85
|
def add_prepaid_balance_threshold_configuration=: (
|
|
85
|
-
MetronomeSDK::
|
|
86
|
-
) -> MetronomeSDK::
|
|
86
|
+
MetronomeSDK::PrepaidBalanceThresholdConfigurationV2
|
|
87
|
+
) -> MetronomeSDK::PrepaidBalanceThresholdConfigurationV2
|
|
87
88
|
|
|
88
89
|
attr_reader add_pro_services: ::Array[MetronomeSDK::ProService]?
|
|
89
90
|
|
|
@@ -115,17 +116,17 @@ module MetronomeSDK
|
|
|
115
116
|
::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddScheduledCharge]
|
|
116
117
|
) -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddScheduledCharge]
|
|
117
118
|
|
|
118
|
-
attr_reader add_spend_threshold_configuration: MetronomeSDK::
|
|
119
|
+
attr_reader add_spend_threshold_configuration: MetronomeSDK::SpendThresholdConfigurationV2?
|
|
119
120
|
|
|
120
121
|
def add_spend_threshold_configuration=: (
|
|
121
|
-
MetronomeSDK::
|
|
122
|
-
) -> MetronomeSDK::
|
|
122
|
+
MetronomeSDK::SpendThresholdConfigurationV2
|
|
123
|
+
) -> MetronomeSDK::SpendThresholdConfigurationV2
|
|
123
124
|
|
|
124
|
-
attr_reader add_subscriptions: ::Array[MetronomeSDK::
|
|
125
|
+
attr_reader add_subscriptions: ::Array[MetronomeSDK::Subscription]?
|
|
125
126
|
|
|
126
127
|
def add_subscriptions=: (
|
|
127
|
-
::Array[MetronomeSDK::
|
|
128
|
-
) -> ::Array[MetronomeSDK::
|
|
128
|
+
::Array[MetronomeSDK::Subscription]
|
|
129
|
+
) -> ::Array[MetronomeSDK::Subscription]
|
|
129
130
|
|
|
130
131
|
attr_reader add_usage_filters: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddUsageFilter]?
|
|
131
132
|
|
|
@@ -161,6 +162,10 @@ module MetronomeSDK
|
|
|
161
162
|
|
|
162
163
|
def timestamp=: (Time) -> Time
|
|
163
164
|
|
|
165
|
+
attr_reader uniqueness_key: String?
|
|
166
|
+
|
|
167
|
+
def uniqueness_key=: (String) -> String
|
|
168
|
+
|
|
164
169
|
attr_reader update_commits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit]?
|
|
165
170
|
|
|
166
171
|
def update_commits=: (
|
|
@@ -233,20 +238,21 @@ module MetronomeSDK
|
|
|
233
238
|
?add_credits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit],
|
|
234
239
|
?add_discounts: ::Array[MetronomeSDK::Discount],
|
|
235
240
|
?add_overrides: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride],
|
|
236
|
-
?add_prepaid_balance_threshold_configuration: MetronomeSDK::
|
|
241
|
+
?add_prepaid_balance_threshold_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2,
|
|
237
242
|
?add_pro_services: ::Array[MetronomeSDK::ProService],
|
|
238
243
|
?add_recurring_commits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit],
|
|
239
244
|
?add_recurring_credits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit],
|
|
240
245
|
?add_reseller_royalties: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddResellerRoyalty],
|
|
241
246
|
?add_scheduled_charges: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddScheduledCharge],
|
|
242
|
-
?add_spend_threshold_configuration: MetronomeSDK::
|
|
243
|
-
?add_subscriptions: ::Array[MetronomeSDK::
|
|
247
|
+
?add_spend_threshold_configuration: MetronomeSDK::SpendThresholdConfigurationV2,
|
|
248
|
+
?add_subscriptions: ::Array[MetronomeSDK::Subscription],
|
|
244
249
|
?add_usage_filters: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddUsageFilter],
|
|
245
250
|
?archive_commits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::ArchiveCommit],
|
|
246
251
|
?archive_credits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::ArchiveCredit],
|
|
247
252
|
?archive_scheduled_charges: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::ArchiveScheduledCharge],
|
|
248
253
|
?remove_overrides: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::RemoveOverride],
|
|
249
254
|
?timestamp: Time,
|
|
255
|
+
?uniqueness_key: String,
|
|
250
256
|
?update_commits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit],
|
|
251
257
|
?update_contract_end_date: Time,
|
|
252
258
|
?update_contract_name: String?,
|
|
@@ -267,20 +273,21 @@ module MetronomeSDK
|
|
|
267
273
|
add_credits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit],
|
|
268
274
|
add_discounts: ::Array[MetronomeSDK::Discount],
|
|
269
275
|
add_overrides: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride],
|
|
270
|
-
add_prepaid_balance_threshold_configuration: MetronomeSDK::
|
|
276
|
+
add_prepaid_balance_threshold_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2,
|
|
271
277
|
add_pro_services: ::Array[MetronomeSDK::ProService],
|
|
272
278
|
add_recurring_commits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit],
|
|
273
279
|
add_recurring_credits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit],
|
|
274
280
|
add_reseller_royalties: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddResellerRoyalty],
|
|
275
281
|
add_scheduled_charges: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddScheduledCharge],
|
|
276
|
-
add_spend_threshold_configuration: MetronomeSDK::
|
|
277
|
-
add_subscriptions: ::Array[MetronomeSDK::
|
|
282
|
+
add_spend_threshold_configuration: MetronomeSDK::SpendThresholdConfigurationV2,
|
|
283
|
+
add_subscriptions: ::Array[MetronomeSDK::Subscription],
|
|
278
284
|
add_usage_filters: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddUsageFilter],
|
|
279
285
|
archive_commits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::ArchiveCommit],
|
|
280
286
|
archive_credits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::ArchiveCredit],
|
|
281
287
|
archive_scheduled_charges: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::ArchiveScheduledCharge],
|
|
282
288
|
remove_overrides: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::RemoveOverride],
|
|
283
289
|
timestamp: Time,
|
|
290
|
+
uniqueness_key: String,
|
|
284
291
|
update_commits: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit],
|
|
285
292
|
update_contract_end_date: Time,
|
|
286
293
|
update_contract_name: String?,
|
|
@@ -304,15 +311,15 @@ module MetronomeSDK
|
|
|
304
311
|
applicable_product_ids: ::Array[String],
|
|
305
312
|
applicable_product_tags: ::Array[String],
|
|
306
313
|
description: String,
|
|
307
|
-
hierarchy_configuration: MetronomeSDK::
|
|
308
|
-
invoice_schedule: MetronomeSDK::
|
|
314
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
315
|
+
invoice_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::InvoiceSchedule,
|
|
309
316
|
name: String,
|
|
310
317
|
netsuite_sales_order_id: String,
|
|
311
318
|
priority: Float,
|
|
312
319
|
rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::rate_type,
|
|
313
320
|
rollover_fraction: Float,
|
|
314
321
|
salesforce_opportunity_id: String,
|
|
315
|
-
specifiers: ::Array[MetronomeSDK::
|
|
322
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
316
323
|
}
|
|
317
324
|
|
|
318
325
|
class AddCommit < MetronomeSDK::Internal::Type::BaseModel
|
|
@@ -340,17 +347,17 @@ module MetronomeSDK
|
|
|
340
347
|
|
|
341
348
|
def description=: (String) -> String
|
|
342
349
|
|
|
343
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
|
350
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
|
344
351
|
|
|
345
352
|
def hierarchy_configuration=: (
|
|
346
|
-
MetronomeSDK::
|
|
347
|
-
) -> MetronomeSDK::
|
|
353
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
|
354
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
|
348
355
|
|
|
349
|
-
attr_reader invoice_schedule: MetronomeSDK::
|
|
356
|
+
attr_reader invoice_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::InvoiceSchedule?
|
|
350
357
|
|
|
351
358
|
def invoice_schedule=: (
|
|
352
|
-
MetronomeSDK::
|
|
353
|
-
) -> MetronomeSDK::
|
|
359
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::InvoiceSchedule
|
|
360
|
+
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::InvoiceSchedule
|
|
354
361
|
|
|
355
362
|
attr_reader name: String?
|
|
356
363
|
|
|
@@ -378,11 +385,11 @@ module MetronomeSDK
|
|
|
378
385
|
|
|
379
386
|
def salesforce_opportunity_id=: (String) -> String
|
|
380
387
|
|
|
381
|
-
attr_reader specifiers: ::Array[MetronomeSDK::
|
|
388
|
+
attr_reader specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
382
389
|
|
|
383
390
|
def specifiers=: (
|
|
384
|
-
::Array[MetronomeSDK::
|
|
385
|
-
) -> ::Array[MetronomeSDK::
|
|
391
|
+
::Array[MetronomeSDK::CommitSpecifierInput]
|
|
392
|
+
) -> ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
386
393
|
|
|
387
394
|
def initialize: (
|
|
388
395
|
id: String,
|
|
@@ -392,15 +399,15 @@ module MetronomeSDK
|
|
|
392
399
|
?applicable_product_ids: ::Array[String],
|
|
393
400
|
?applicable_product_tags: ::Array[String],
|
|
394
401
|
?description: String,
|
|
395
|
-
?hierarchy_configuration: MetronomeSDK::
|
|
396
|
-
?invoice_schedule: MetronomeSDK::
|
|
402
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
403
|
+
?invoice_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::InvoiceSchedule,
|
|
397
404
|
?name: String,
|
|
398
405
|
?netsuite_sales_order_id: String,
|
|
399
406
|
?priority: Float,
|
|
400
407
|
?rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::rate_type,
|
|
401
408
|
?rollover_fraction: Float,
|
|
402
409
|
?salesforce_opportunity_id: String,
|
|
403
|
-
?specifiers: ::Array[MetronomeSDK::
|
|
410
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
404
411
|
) -> void
|
|
405
412
|
|
|
406
413
|
def to_hash: -> {
|
|
@@ -411,15 +418,15 @@ module MetronomeSDK
|
|
|
411
418
|
applicable_product_ids: ::Array[String],
|
|
412
419
|
applicable_product_tags: ::Array[String],
|
|
413
420
|
description: String,
|
|
414
|
-
hierarchy_configuration: MetronomeSDK::
|
|
415
|
-
invoice_schedule: MetronomeSDK::
|
|
421
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
422
|
+
invoice_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::InvoiceSchedule,
|
|
416
423
|
name: String,
|
|
417
424
|
netsuite_sales_order_id: String,
|
|
418
425
|
priority: Float,
|
|
419
426
|
rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::rate_type,
|
|
420
427
|
rollover_fraction: Float,
|
|
421
428
|
salesforce_opportunity_id: String,
|
|
422
|
-
specifiers: ::Array[MetronomeSDK::
|
|
429
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
423
430
|
}
|
|
424
431
|
|
|
425
432
|
type product = { id: String, name: String }
|
|
@@ -445,117 +452,88 @@ module MetronomeSDK
|
|
|
445
452
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::type_]
|
|
446
453
|
end
|
|
447
454
|
|
|
448
|
-
type
|
|
455
|
+
type invoice_schedule =
|
|
449
456
|
{
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
454
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::HierarchyConfiguration::child_access
|
|
455
|
-
|
|
456
|
-
def initialize: (
|
|
457
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::HierarchyConfiguration::child_access
|
|
458
|
-
) -> void
|
|
459
|
-
|
|
460
|
-
def to_hash: -> {
|
|
461
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::HierarchyConfiguration::child_access
|
|
457
|
+
credit_type: MetronomeSDK::CreditTypeData,
|
|
458
|
+
do_not_invoice: bool,
|
|
459
|
+
schedule_items: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::InvoiceSchedule::ScheduleItem]
|
|
462
460
|
}
|
|
463
461
|
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
| MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
|
467
|
-
| MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
|
468
|
-
|
|
469
|
-
module ChildAccess
|
|
470
|
-
extend MetronomeSDK::Internal::Type::Union
|
|
471
|
-
|
|
472
|
-
type commit_hierarchy_child_access_all =
|
|
473
|
-
{
|
|
474
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
|
478
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
479
|
-
|
|
480
|
-
def initialize: (
|
|
481
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
482
|
-
) -> void
|
|
483
|
-
|
|
484
|
-
def to_hash: -> {
|
|
485
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
type type_ = :ALL
|
|
489
|
-
|
|
490
|
-
module Type
|
|
491
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
492
|
-
|
|
493
|
-
ALL: :ALL
|
|
462
|
+
class InvoiceSchedule < MetronomeSDK::Internal::Type::BaseModel
|
|
463
|
+
attr_reader credit_type: MetronomeSDK::CreditTypeData?
|
|
494
464
|
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
465
|
+
def credit_type=: (
|
|
466
|
+
MetronomeSDK::CreditTypeData
|
|
467
|
+
) -> MetronomeSDK::CreditTypeData
|
|
498
468
|
|
|
499
|
-
|
|
500
|
-
{
|
|
501
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
502
|
-
}
|
|
469
|
+
attr_reader do_not_invoice: bool?
|
|
503
470
|
|
|
504
|
-
|
|
505
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
471
|
+
def do_not_invoice=: (bool) -> bool
|
|
506
472
|
|
|
507
|
-
|
|
508
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
509
|
-
) -> void
|
|
473
|
+
attr_reader schedule_items: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::InvoiceSchedule::ScheduleItem]?
|
|
510
474
|
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
475
|
+
def schedule_items=: (
|
|
476
|
+
::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::InvoiceSchedule::ScheduleItem]
|
|
477
|
+
) -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::InvoiceSchedule::ScheduleItem]
|
|
514
478
|
|
|
515
|
-
|
|
479
|
+
def initialize: (
|
|
480
|
+
?credit_type: MetronomeSDK::CreditTypeData,
|
|
481
|
+
?do_not_invoice: bool,
|
|
482
|
+
?schedule_items: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::InvoiceSchedule::ScheduleItem]
|
|
483
|
+
) -> void
|
|
516
484
|
|
|
517
|
-
|
|
518
|
-
|
|
485
|
+
def to_hash: -> {
|
|
486
|
+
credit_type: MetronomeSDK::CreditTypeData,
|
|
487
|
+
do_not_invoice: bool,
|
|
488
|
+
schedule_items: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::InvoiceSchedule::ScheduleItem]
|
|
489
|
+
}
|
|
519
490
|
|
|
520
|
-
|
|
491
|
+
type schedule_item =
|
|
492
|
+
{
|
|
493
|
+
id: String,
|
|
494
|
+
timestamp: Time,
|
|
495
|
+
amount: Float,
|
|
496
|
+
invoice_id: String?,
|
|
497
|
+
quantity: Float,
|
|
498
|
+
unit_price: Float
|
|
499
|
+
}
|
|
521
500
|
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
end
|
|
501
|
+
class ScheduleItem < MetronomeSDK::Internal::Type::BaseModel
|
|
502
|
+
attr_accessor id: String
|
|
525
503
|
|
|
526
|
-
|
|
527
|
-
{
|
|
528
|
-
contract_ids: ::Array[String],
|
|
529
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
530
|
-
}
|
|
504
|
+
attr_accessor timestamp: Time
|
|
531
505
|
|
|
532
|
-
|
|
533
|
-
attr_accessor contract_ids: ::Array[String]
|
|
506
|
+
attr_reader amount: Float?
|
|
534
507
|
|
|
535
|
-
|
|
508
|
+
def amount=: (Float) -> Float
|
|
536
509
|
|
|
537
|
-
|
|
538
|
-
contract_ids: ::Array[String],
|
|
539
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
540
|
-
) -> void
|
|
510
|
+
attr_accessor invoice_id: String?
|
|
541
511
|
|
|
542
|
-
|
|
543
|
-
contract_ids: ::Array[String],
|
|
544
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
545
|
-
}
|
|
512
|
+
attr_reader quantity: Float?
|
|
546
513
|
|
|
547
|
-
|
|
514
|
+
def quantity=: (Float) -> Float
|
|
548
515
|
|
|
549
|
-
|
|
550
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
516
|
+
attr_reader unit_price: Float?
|
|
551
517
|
|
|
552
|
-
|
|
518
|
+
def unit_price=: (Float) -> Float
|
|
553
519
|
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
520
|
+
def initialize: (
|
|
521
|
+
id: String,
|
|
522
|
+
timestamp: Time,
|
|
523
|
+
?amount: Float,
|
|
524
|
+
?invoice_id: String?,
|
|
525
|
+
?quantity: Float,
|
|
526
|
+
?unit_price: Float
|
|
527
|
+
) -> void
|
|
557
528
|
|
|
558
|
-
def
|
|
529
|
+
def to_hash: -> {
|
|
530
|
+
id: String,
|
|
531
|
+
timestamp: Time,
|
|
532
|
+
amount: Float,
|
|
533
|
+
invoice_id: String?,
|
|
534
|
+
quantity: Float,
|
|
535
|
+
unit_price: Float
|
|
536
|
+
}
|
|
559
537
|
end
|
|
560
538
|
end
|
|
561
539
|
|
|
@@ -569,50 +547,6 @@ module MetronomeSDK
|
|
|
569
547
|
|
|
570
548
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::rate_type]
|
|
571
549
|
end
|
|
572
|
-
|
|
573
|
-
type specifier =
|
|
574
|
-
{
|
|
575
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
576
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
577
|
-
product_id: String,
|
|
578
|
-
product_tags: ::Array[String]
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
|
582
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
|
583
|
-
|
|
584
|
-
def presentation_group_values=: (
|
|
585
|
-
::Hash[Symbol, String]
|
|
586
|
-
) -> ::Hash[Symbol, String]
|
|
587
|
-
|
|
588
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
|
589
|
-
|
|
590
|
-
def pricing_group_values=: (
|
|
591
|
-
::Hash[Symbol, String]
|
|
592
|
-
) -> ::Hash[Symbol, String]
|
|
593
|
-
|
|
594
|
-
attr_reader product_id: String?
|
|
595
|
-
|
|
596
|
-
def product_id=: (String) -> String
|
|
597
|
-
|
|
598
|
-
attr_reader product_tags: ::Array[String]?
|
|
599
|
-
|
|
600
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
|
601
|
-
|
|
602
|
-
def initialize: (
|
|
603
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
|
604
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
|
605
|
-
?product_id: String,
|
|
606
|
-
?product_tags: ::Array[String]
|
|
607
|
-
) -> void
|
|
608
|
-
|
|
609
|
-
def to_hash: -> {
|
|
610
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
611
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
612
|
-
product_id: String,
|
|
613
|
-
product_tags: ::Array[String]
|
|
614
|
-
}
|
|
615
|
-
end
|
|
616
550
|
end
|
|
617
551
|
|
|
618
552
|
type add_credit =
|
|
@@ -624,12 +558,12 @@ module MetronomeSDK
|
|
|
624
558
|
applicable_product_ids: ::Array[String],
|
|
625
559
|
applicable_product_tags: ::Array[String],
|
|
626
560
|
description: String,
|
|
627
|
-
hierarchy_configuration: MetronomeSDK::
|
|
561
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
628
562
|
name: String,
|
|
629
563
|
netsuite_sales_order_id: String,
|
|
630
564
|
priority: Float,
|
|
631
565
|
salesforce_opportunity_id: String,
|
|
632
|
-
specifiers: ::Array[MetronomeSDK::
|
|
566
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
633
567
|
}
|
|
634
568
|
|
|
635
569
|
class AddCredit < MetronomeSDK::Internal::Type::BaseModel
|
|
@@ -657,11 +591,11 @@ module MetronomeSDK
|
|
|
657
591
|
|
|
658
592
|
def description=: (String) -> String
|
|
659
593
|
|
|
660
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
|
594
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
|
661
595
|
|
|
662
596
|
def hierarchy_configuration=: (
|
|
663
|
-
MetronomeSDK::
|
|
664
|
-
) -> MetronomeSDK::
|
|
597
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
|
598
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
|
665
599
|
|
|
666
600
|
attr_reader name: String?
|
|
667
601
|
|
|
@@ -679,11 +613,11 @@ module MetronomeSDK
|
|
|
679
613
|
|
|
680
614
|
def salesforce_opportunity_id=: (String) -> String
|
|
681
615
|
|
|
682
|
-
attr_reader specifiers: ::Array[MetronomeSDK::
|
|
616
|
+
attr_reader specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
683
617
|
|
|
684
618
|
def specifiers=: (
|
|
685
|
-
::Array[MetronomeSDK::
|
|
686
|
-
) -> ::Array[MetronomeSDK::
|
|
619
|
+
::Array[MetronomeSDK::CommitSpecifierInput]
|
|
620
|
+
) -> ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
687
621
|
|
|
688
622
|
def initialize: (
|
|
689
623
|
id: String,
|
|
@@ -693,12 +627,12 @@ module MetronomeSDK
|
|
|
693
627
|
?applicable_product_ids: ::Array[String],
|
|
694
628
|
?applicable_product_tags: ::Array[String],
|
|
695
629
|
?description: String,
|
|
696
|
-
?hierarchy_configuration: MetronomeSDK::
|
|
630
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
697
631
|
?name: String,
|
|
698
632
|
?netsuite_sales_order_id: String,
|
|
699
633
|
?priority: Float,
|
|
700
634
|
?salesforce_opportunity_id: String,
|
|
701
|
-
?specifiers: ::Array[MetronomeSDK::
|
|
635
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
702
636
|
) -> void
|
|
703
637
|
|
|
704
638
|
def to_hash: -> {
|
|
@@ -709,12 +643,12 @@ module MetronomeSDK
|
|
|
709
643
|
applicable_product_ids: ::Array[String],
|
|
710
644
|
applicable_product_tags: ::Array[String],
|
|
711
645
|
description: String,
|
|
712
|
-
hierarchy_configuration: MetronomeSDK::
|
|
646
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
713
647
|
name: String,
|
|
714
648
|
netsuite_sales_order_id: String,
|
|
715
649
|
priority: Float,
|
|
716
650
|
salesforce_opportunity_id: String,
|
|
717
|
-
specifiers: ::Array[MetronomeSDK::
|
|
651
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
718
652
|
}
|
|
719
653
|
|
|
720
654
|
type product = { id: String, name: String }
|
|
@@ -738,164 +672,6 @@ module MetronomeSDK
|
|
|
738
672
|
|
|
739
673
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::type_]
|
|
740
674
|
end
|
|
741
|
-
|
|
742
|
-
type hierarchy_configuration =
|
|
743
|
-
{
|
|
744
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::child_access
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
748
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::child_access
|
|
749
|
-
|
|
750
|
-
def initialize: (
|
|
751
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::child_access
|
|
752
|
-
) -> void
|
|
753
|
-
|
|
754
|
-
def to_hash: -> {
|
|
755
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::child_access
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
type child_access =
|
|
759
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
|
760
|
-
| MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
|
761
|
-
| MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
|
762
|
-
|
|
763
|
-
module ChildAccess
|
|
764
|
-
extend MetronomeSDK::Internal::Type::Union
|
|
765
|
-
|
|
766
|
-
type commit_hierarchy_child_access_all =
|
|
767
|
-
{
|
|
768
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
|
772
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
773
|
-
|
|
774
|
-
def initialize: (
|
|
775
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
776
|
-
) -> void
|
|
777
|
-
|
|
778
|
-
def to_hash: -> {
|
|
779
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
type type_ = :ALL
|
|
783
|
-
|
|
784
|
-
module Type
|
|
785
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
786
|
-
|
|
787
|
-
ALL: :ALL
|
|
788
|
-
|
|
789
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
|
790
|
-
end
|
|
791
|
-
end
|
|
792
|
-
|
|
793
|
-
type commit_hierarchy_child_access_none =
|
|
794
|
-
{
|
|
795
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
|
799
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
800
|
-
|
|
801
|
-
def initialize: (
|
|
802
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
803
|
-
) -> void
|
|
804
|
-
|
|
805
|
-
def to_hash: -> {
|
|
806
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
type type_ = :NONE
|
|
810
|
-
|
|
811
|
-
module Type
|
|
812
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
813
|
-
|
|
814
|
-
NONE: :NONE
|
|
815
|
-
|
|
816
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
|
817
|
-
end
|
|
818
|
-
end
|
|
819
|
-
|
|
820
|
-
type commit_hierarchy_child_access_contract_ids =
|
|
821
|
-
{
|
|
822
|
-
contract_ids: ::Array[String],
|
|
823
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
|
827
|
-
attr_accessor contract_ids: ::Array[String]
|
|
828
|
-
|
|
829
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
830
|
-
|
|
831
|
-
def initialize: (
|
|
832
|
-
contract_ids: ::Array[String],
|
|
833
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
834
|
-
) -> void
|
|
835
|
-
|
|
836
|
-
def to_hash: -> {
|
|
837
|
-
contract_ids: ::Array[String],
|
|
838
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
type type_ = :CONTRACT_IDS
|
|
842
|
-
|
|
843
|
-
module Type
|
|
844
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
845
|
-
|
|
846
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
|
847
|
-
|
|
848
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
|
849
|
-
end
|
|
850
|
-
end
|
|
851
|
-
|
|
852
|
-
def self?.variants: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::HierarchyConfiguration::child_access]
|
|
853
|
-
end
|
|
854
|
-
end
|
|
855
|
-
|
|
856
|
-
type specifier =
|
|
857
|
-
{
|
|
858
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
859
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
860
|
-
product_id: String,
|
|
861
|
-
product_tags: ::Array[String]
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
|
865
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
|
866
|
-
|
|
867
|
-
def presentation_group_values=: (
|
|
868
|
-
::Hash[Symbol, String]
|
|
869
|
-
) -> ::Hash[Symbol, String]
|
|
870
|
-
|
|
871
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
|
872
|
-
|
|
873
|
-
def pricing_group_values=: (
|
|
874
|
-
::Hash[Symbol, String]
|
|
875
|
-
) -> ::Hash[Symbol, String]
|
|
876
|
-
|
|
877
|
-
attr_reader product_id: String?
|
|
878
|
-
|
|
879
|
-
def product_id=: (String) -> String
|
|
880
|
-
|
|
881
|
-
attr_reader product_tags: ::Array[String]?
|
|
882
|
-
|
|
883
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
|
884
|
-
|
|
885
|
-
def initialize: (
|
|
886
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
|
887
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
|
888
|
-
?product_id: String,
|
|
889
|
-
?product_tags: ::Array[String]
|
|
890
|
-
) -> void
|
|
891
|
-
|
|
892
|
-
def to_hash: -> {
|
|
893
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
894
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
895
|
-
product_id: String,
|
|
896
|
-
product_tags: ::Array[String]
|
|
897
|
-
}
|
|
898
|
-
end
|
|
899
675
|
end
|
|
900
676
|
|
|
901
677
|
type add_override =
|
|
@@ -908,7 +684,7 @@ module MetronomeSDK
|
|
|
908
684
|
is_commit_specific: bool,
|
|
909
685
|
multiplier: Float,
|
|
910
686
|
override_specifiers: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride::OverrideSpecifier],
|
|
911
|
-
override_tiers: ::Array[MetronomeSDK::
|
|
687
|
+
override_tiers: ::Array[MetronomeSDK::OverrideTier],
|
|
912
688
|
overwrite_rate: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride::OverwriteRate,
|
|
913
689
|
priority: Float,
|
|
914
690
|
product: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride::Product,
|
|
@@ -947,11 +723,11 @@ module MetronomeSDK
|
|
|
947
723
|
::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride::OverrideSpecifier]
|
|
948
724
|
) -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride::OverrideSpecifier]
|
|
949
725
|
|
|
950
|
-
attr_reader override_tiers: ::Array[MetronomeSDK::
|
|
726
|
+
attr_reader override_tiers: ::Array[MetronomeSDK::OverrideTier]?
|
|
951
727
|
|
|
952
728
|
def override_tiers=: (
|
|
953
|
-
::Array[MetronomeSDK::
|
|
954
|
-
) -> ::Array[MetronomeSDK::
|
|
729
|
+
::Array[MetronomeSDK::OverrideTier]
|
|
730
|
+
) -> ::Array[MetronomeSDK::OverrideTier]
|
|
955
731
|
|
|
956
732
|
attr_reader overwrite_rate: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride::OverwriteRate?
|
|
957
733
|
|
|
@@ -990,7 +766,7 @@ module MetronomeSDK
|
|
|
990
766
|
?is_commit_specific: bool,
|
|
991
767
|
?multiplier: Float,
|
|
992
768
|
?override_specifiers: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride::OverrideSpecifier],
|
|
993
|
-
?override_tiers: ::Array[MetronomeSDK::
|
|
769
|
+
?override_tiers: ::Array[MetronomeSDK::OverrideTier],
|
|
994
770
|
?overwrite_rate: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride::OverwriteRate,
|
|
995
771
|
?priority: Float,
|
|
996
772
|
?product: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride::Product,
|
|
@@ -1007,7 +783,7 @@ module MetronomeSDK
|
|
|
1007
783
|
is_commit_specific: bool,
|
|
1008
784
|
multiplier: Float,
|
|
1009
785
|
override_specifiers: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride::OverrideSpecifier],
|
|
1010
|
-
override_tiers: ::Array[MetronomeSDK::
|
|
786
|
+
override_tiers: ::Array[MetronomeSDK::OverrideTier],
|
|
1011
787
|
overwrite_rate: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride::OverwriteRate,
|
|
1012
788
|
priority: Float,
|
|
1013
789
|
product: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride::Product,
|
|
@@ -1102,20 +878,6 @@ module MetronomeSDK
|
|
|
1102
878
|
end
|
|
1103
879
|
end
|
|
1104
880
|
|
|
1105
|
-
type override_tier = { multiplier: Float, size: Float }
|
|
1106
|
-
|
|
1107
|
-
class OverrideTier < MetronomeSDK::Internal::Type::BaseModel
|
|
1108
|
-
attr_accessor multiplier: Float
|
|
1109
|
-
|
|
1110
|
-
attr_reader size: Float?
|
|
1111
|
-
|
|
1112
|
-
def size=: (Float) -> Float
|
|
1113
|
-
|
|
1114
|
-
def initialize: (multiplier: Float, ?size: Float) -> void
|
|
1115
|
-
|
|
1116
|
-
def to_hash: -> { multiplier: Float, size: Float }
|
|
1117
|
-
end
|
|
1118
|
-
|
|
1119
881
|
type overwrite_rate =
|
|
1120
882
|
{
|
|
1121
883
|
rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddOverride::OverwriteRate::rate_type,
|
|
@@ -1230,344 +992,81 @@ module MetronomeSDK
|
|
|
1230
992
|
end
|
|
1231
993
|
end
|
|
1232
994
|
|
|
1233
|
-
type
|
|
995
|
+
type add_recurring_commit =
|
|
1234
996
|
{
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
997
|
+
id: String,
|
|
998
|
+
access_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::AccessAmount,
|
|
999
|
+
commit_duration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::CommitDuration,
|
|
1000
|
+
priority: Float,
|
|
1001
|
+
product: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::Product,
|
|
1002
|
+
rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::rate_type,
|
|
1003
|
+
starting_at: Time,
|
|
1004
|
+
applicable_product_ids: ::Array[String],
|
|
1005
|
+
applicable_product_tags: ::Array[String],
|
|
1006
|
+
contract: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::Contract,
|
|
1007
|
+
description: String,
|
|
1008
|
+
ending_before: Time,
|
|
1009
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
1010
|
+
invoice_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::InvoiceAmount,
|
|
1011
|
+
name: String,
|
|
1012
|
+
netsuite_sales_order_id: String,
|
|
1013
|
+
proration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::proration,
|
|
1014
|
+
recurrence_frequency: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::recurrence_frequency,
|
|
1015
|
+
rollover_fraction: Float,
|
|
1016
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifier],
|
|
1017
|
+
subscription_config: MetronomeSDK::RecurringCommitSubscriptionConfig
|
|
1241
1018
|
}
|
|
1242
1019
|
|
|
1243
|
-
class
|
|
1244
|
-
attr_accessor
|
|
1020
|
+
class AddRecurringCommit < MetronomeSDK::Internal::Type::BaseModel
|
|
1021
|
+
attr_accessor id: String
|
|
1245
1022
|
|
|
1246
|
-
attr_accessor
|
|
1023
|
+
attr_accessor access_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::AccessAmount
|
|
1247
1024
|
|
|
1248
|
-
attr_accessor
|
|
1025
|
+
attr_accessor commit_duration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::CommitDuration
|
|
1249
1026
|
|
|
1250
|
-
attr_accessor
|
|
1027
|
+
attr_accessor priority: Float
|
|
1251
1028
|
|
|
1252
|
-
attr_accessor
|
|
1029
|
+
attr_accessor product: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::Product
|
|
1253
1030
|
|
|
1254
|
-
|
|
1031
|
+
attr_accessor rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::rate_type
|
|
1255
1032
|
|
|
1256
|
-
|
|
1033
|
+
attr_accessor starting_at: Time
|
|
1257
1034
|
|
|
1258
|
-
|
|
1259
|
-
commit: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::Commit,
|
|
1260
|
-
is_enabled: bool,
|
|
1261
|
-
payment_gate_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig,
|
|
1262
|
-
recharge_to_amount: Float,
|
|
1263
|
-
threshold_amount: Float,
|
|
1264
|
-
?custom_credit_type_id: String
|
|
1265
|
-
) -> void
|
|
1035
|
+
attr_reader applicable_product_ids: ::Array[String]?
|
|
1266
1036
|
|
|
1267
|
-
def
|
|
1268
|
-
commit: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::Commit,
|
|
1269
|
-
is_enabled: bool,
|
|
1270
|
-
payment_gate_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig,
|
|
1271
|
-
recharge_to_amount: Float,
|
|
1272
|
-
threshold_amount: Float,
|
|
1273
|
-
custom_credit_type_id: String
|
|
1274
|
-
}
|
|
1037
|
+
def applicable_product_ids=: (::Array[String]) -> ::Array[String]
|
|
1275
1038
|
|
|
1276
|
-
|
|
1277
|
-
{
|
|
1278
|
-
product_id: String,
|
|
1279
|
-
applicable_product_ids: ::Array[String],
|
|
1280
|
-
applicable_product_tags: ::Array[String],
|
|
1281
|
-
description: String,
|
|
1282
|
-
name: String,
|
|
1283
|
-
specifiers: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::Commit::Specifier]
|
|
1284
|
-
}
|
|
1039
|
+
attr_reader applicable_product_tags: ::Array[String]?
|
|
1285
1040
|
|
|
1286
|
-
|
|
1287
|
-
attr_accessor product_id: String
|
|
1041
|
+
def applicable_product_tags=: (::Array[String]) -> ::Array[String]
|
|
1288
1042
|
|
|
1289
|
-
|
|
1043
|
+
attr_reader contract: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::Contract?
|
|
1290
1044
|
|
|
1291
|
-
|
|
1045
|
+
def contract=: (
|
|
1046
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::Contract
|
|
1047
|
+
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::Contract
|
|
1292
1048
|
|
|
1293
|
-
|
|
1049
|
+
attr_reader description: String?
|
|
1294
1050
|
|
|
1295
|
-
|
|
1051
|
+
def description=: (String) -> String
|
|
1296
1052
|
|
|
1297
|
-
|
|
1053
|
+
attr_reader ending_before: Time?
|
|
1298
1054
|
|
|
1299
|
-
|
|
1055
|
+
def ending_before=: (Time) -> Time
|
|
1300
1056
|
|
|
1301
|
-
|
|
1057
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
|
1302
1058
|
|
|
1303
|
-
|
|
1059
|
+
def hierarchy_configuration=: (
|
|
1060
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
|
1061
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
|
1304
1062
|
|
|
1305
|
-
|
|
1063
|
+
attr_reader invoice_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::InvoiceAmount?
|
|
1306
1064
|
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1065
|
+
def invoice_amount=: (
|
|
1066
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::InvoiceAmount
|
|
1067
|
+
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::InvoiceAmount
|
|
1310
1068
|
|
|
1311
|
-
|
|
1312
|
-
product_id: String,
|
|
1313
|
-
?applicable_product_ids: ::Array[String],
|
|
1314
|
-
?applicable_product_tags: ::Array[String],
|
|
1315
|
-
?description: String,
|
|
1316
|
-
?name: String,
|
|
1317
|
-
?specifiers: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::Commit::Specifier]
|
|
1318
|
-
) -> void
|
|
1319
|
-
|
|
1320
|
-
def to_hash: -> {
|
|
1321
|
-
product_id: String,
|
|
1322
|
-
applicable_product_ids: ::Array[String],
|
|
1323
|
-
applicable_product_tags: ::Array[String],
|
|
1324
|
-
description: String,
|
|
1325
|
-
name: String,
|
|
1326
|
-
specifiers: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::Commit::Specifier]
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
type specifier =
|
|
1330
|
-
{
|
|
1331
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
1332
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
1333
|
-
product_id: String,
|
|
1334
|
-
product_tags: ::Array[String]
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
|
1338
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
|
1339
|
-
|
|
1340
|
-
def presentation_group_values=: (
|
|
1341
|
-
::Hash[Symbol, String]
|
|
1342
|
-
) -> ::Hash[Symbol, String]
|
|
1343
|
-
|
|
1344
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
|
1345
|
-
|
|
1346
|
-
def pricing_group_values=: (
|
|
1347
|
-
::Hash[Symbol, String]
|
|
1348
|
-
) -> ::Hash[Symbol, String]
|
|
1349
|
-
|
|
1350
|
-
attr_reader product_id: String?
|
|
1351
|
-
|
|
1352
|
-
def product_id=: (String) -> String
|
|
1353
|
-
|
|
1354
|
-
attr_reader product_tags: ::Array[String]?
|
|
1355
|
-
|
|
1356
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
|
1357
|
-
|
|
1358
|
-
def initialize: (
|
|
1359
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
|
1360
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
|
1361
|
-
?product_id: String,
|
|
1362
|
-
?product_tags: ::Array[String]
|
|
1363
|
-
) -> void
|
|
1364
|
-
|
|
1365
|
-
def to_hash: -> {
|
|
1366
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
1367
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
1368
|
-
product_id: String,
|
|
1369
|
-
product_tags: ::Array[String]
|
|
1370
|
-
}
|
|
1371
|
-
end
|
|
1372
|
-
end
|
|
1373
|
-
|
|
1374
|
-
type payment_gate_config =
|
|
1375
|
-
{
|
|
1376
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
1377
|
-
precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
1378
|
-
stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
1379
|
-
tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
class PaymentGateConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
1383
|
-
attr_accessor payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type
|
|
1384
|
-
|
|
1385
|
-
attr_reader precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig?
|
|
1386
|
-
|
|
1387
|
-
def precalculated_tax_config=: (
|
|
1388
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
1389
|
-
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
1390
|
-
|
|
1391
|
-
attr_reader stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig?
|
|
1392
|
-
|
|
1393
|
-
def stripe_config=: (
|
|
1394
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
1395
|
-
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
1396
|
-
|
|
1397
|
-
attr_reader tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type?
|
|
1398
|
-
|
|
1399
|
-
def tax_type=: (
|
|
1400
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
1401
|
-
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
1402
|
-
|
|
1403
|
-
def initialize: (
|
|
1404
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
1405
|
-
?precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
1406
|
-
?stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
1407
|
-
?tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
1408
|
-
) -> void
|
|
1409
|
-
|
|
1410
|
-
def to_hash: -> {
|
|
1411
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
1412
|
-
precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
1413
|
-
stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
1414
|
-
tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
type payment_gate_type = :NONE | :STRIPE | :EXTERNAL
|
|
1418
|
-
|
|
1419
|
-
module PaymentGateType
|
|
1420
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
1421
|
-
|
|
1422
|
-
NONE: :NONE
|
|
1423
|
-
STRIPE: :STRIPE
|
|
1424
|
-
EXTERNAL: :EXTERNAL
|
|
1425
|
-
|
|
1426
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type]
|
|
1427
|
-
end
|
|
1428
|
-
|
|
1429
|
-
type precalculated_tax_config =
|
|
1430
|
-
{ tax_amount: Float, tax_name: String }
|
|
1431
|
-
|
|
1432
|
-
class PrecalculatedTaxConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
1433
|
-
attr_accessor tax_amount: Float
|
|
1434
|
-
|
|
1435
|
-
attr_reader tax_name: String?
|
|
1436
|
-
|
|
1437
|
-
def tax_name=: (String) -> String
|
|
1438
|
-
|
|
1439
|
-
def initialize: (tax_amount: Float, ?tax_name: String) -> void
|
|
1440
|
-
|
|
1441
|
-
def to_hash: -> { tax_amount: Float, tax_name: String }
|
|
1442
|
-
end
|
|
1443
|
-
|
|
1444
|
-
type stripe_config =
|
|
1445
|
-
{
|
|
1446
|
-
payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
1447
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
class StripeConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
1451
|
-
attr_accessor payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type
|
|
1452
|
-
|
|
1453
|
-
attr_reader invoice_metadata: ::Hash[Symbol, String]?
|
|
1454
|
-
|
|
1455
|
-
def invoice_metadata=: (
|
|
1456
|
-
::Hash[Symbol, String]
|
|
1457
|
-
) -> ::Hash[Symbol, String]
|
|
1458
|
-
|
|
1459
|
-
def initialize: (
|
|
1460
|
-
payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
1461
|
-
?invoice_metadata: ::Hash[Symbol, String]
|
|
1462
|
-
) -> void
|
|
1463
|
-
|
|
1464
|
-
def to_hash: -> {
|
|
1465
|
-
payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
1466
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
1467
|
-
}
|
|
1468
|
-
|
|
1469
|
-
type payment_type = :INVOICE | :PAYMENT_INTENT
|
|
1470
|
-
|
|
1471
|
-
module PaymentType
|
|
1472
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
1473
|
-
|
|
1474
|
-
INVOICE: :INVOICE
|
|
1475
|
-
PAYMENT_INTENT: :PAYMENT_INTENT
|
|
1476
|
-
|
|
1477
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type]
|
|
1478
|
-
end
|
|
1479
|
-
end
|
|
1480
|
-
|
|
1481
|
-
type tax_type = :NONE | :STRIPE | :ANROK | :PRECALCULATED
|
|
1482
|
-
|
|
1483
|
-
module TaxType
|
|
1484
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
1485
|
-
|
|
1486
|
-
NONE: :NONE
|
|
1487
|
-
STRIPE: :STRIPE
|
|
1488
|
-
ANROK: :ANROK
|
|
1489
|
-
PRECALCULATED: :PRECALCULATED
|
|
1490
|
-
|
|
1491
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type]
|
|
1492
|
-
end
|
|
1493
|
-
end
|
|
1494
|
-
end
|
|
1495
|
-
|
|
1496
|
-
type add_recurring_commit =
|
|
1497
|
-
{
|
|
1498
|
-
id: String,
|
|
1499
|
-
access_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::AccessAmount,
|
|
1500
|
-
commit_duration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::CommitDuration,
|
|
1501
|
-
priority: Float,
|
|
1502
|
-
product: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::Product,
|
|
1503
|
-
rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::rate_type,
|
|
1504
|
-
starting_at: Time,
|
|
1505
|
-
applicable_product_ids: ::Array[String],
|
|
1506
|
-
applicable_product_tags: ::Array[String],
|
|
1507
|
-
contract: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::Contract,
|
|
1508
|
-
description: String,
|
|
1509
|
-
ending_before: Time,
|
|
1510
|
-
hierarchy_configuration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration,
|
|
1511
|
-
invoice_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::InvoiceAmount,
|
|
1512
|
-
name: String,
|
|
1513
|
-
netsuite_sales_order_id: String,
|
|
1514
|
-
proration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::proration,
|
|
1515
|
-
recurrence_frequency: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::recurrence_frequency,
|
|
1516
|
-
rollover_fraction: Float,
|
|
1517
|
-
specifiers: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::Specifier],
|
|
1518
|
-
subscription_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::SubscriptionConfig
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
class AddRecurringCommit < MetronomeSDK::Internal::Type::BaseModel
|
|
1522
|
-
attr_accessor id: String
|
|
1523
|
-
|
|
1524
|
-
attr_accessor access_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::AccessAmount
|
|
1525
|
-
|
|
1526
|
-
attr_accessor commit_duration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::CommitDuration
|
|
1527
|
-
|
|
1528
|
-
attr_accessor priority: Float
|
|
1529
|
-
|
|
1530
|
-
attr_accessor product: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::Product
|
|
1531
|
-
|
|
1532
|
-
attr_accessor rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::rate_type
|
|
1533
|
-
|
|
1534
|
-
attr_accessor starting_at: Time
|
|
1535
|
-
|
|
1536
|
-
attr_reader applicable_product_ids: ::Array[String]?
|
|
1537
|
-
|
|
1538
|
-
def applicable_product_ids=: (::Array[String]) -> ::Array[String]
|
|
1539
|
-
|
|
1540
|
-
attr_reader applicable_product_tags: ::Array[String]?
|
|
1541
|
-
|
|
1542
|
-
def applicable_product_tags=: (::Array[String]) -> ::Array[String]
|
|
1543
|
-
|
|
1544
|
-
attr_reader contract: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::Contract?
|
|
1545
|
-
|
|
1546
|
-
def contract=: (
|
|
1547
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::Contract
|
|
1548
|
-
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::Contract
|
|
1549
|
-
|
|
1550
|
-
attr_reader description: String?
|
|
1551
|
-
|
|
1552
|
-
def description=: (String) -> String
|
|
1553
|
-
|
|
1554
|
-
attr_reader ending_before: Time?
|
|
1555
|
-
|
|
1556
|
-
def ending_before=: (Time) -> Time
|
|
1557
|
-
|
|
1558
|
-
attr_reader hierarchy_configuration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration?
|
|
1559
|
-
|
|
1560
|
-
def hierarchy_configuration=: (
|
|
1561
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration
|
|
1562
|
-
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration
|
|
1563
|
-
|
|
1564
|
-
attr_reader invoice_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::InvoiceAmount?
|
|
1565
|
-
|
|
1566
|
-
def invoice_amount=: (
|
|
1567
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::InvoiceAmount
|
|
1568
|
-
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::InvoiceAmount
|
|
1569
|
-
|
|
1570
|
-
attr_reader name: String?
|
|
1069
|
+
attr_reader name: String?
|
|
1571
1070
|
|
|
1572
1071
|
def name=: (String) -> String
|
|
1573
1072
|
|
|
@@ -1591,17 +1090,17 @@ module MetronomeSDK
|
|
|
1591
1090
|
|
|
1592
1091
|
def rollover_fraction=: (Float) -> Float
|
|
1593
1092
|
|
|
1594
|
-
attr_reader specifiers: ::Array[MetronomeSDK::
|
|
1093
|
+
attr_reader specifiers: ::Array[MetronomeSDK::CommitSpecifier]?
|
|
1595
1094
|
|
|
1596
1095
|
def specifiers=: (
|
|
1597
|
-
::Array[MetronomeSDK::
|
|
1598
|
-
) -> ::Array[MetronomeSDK::
|
|
1096
|
+
::Array[MetronomeSDK::CommitSpecifier]
|
|
1097
|
+
) -> ::Array[MetronomeSDK::CommitSpecifier]
|
|
1599
1098
|
|
|
1600
|
-
attr_reader subscription_config: MetronomeSDK::
|
|
1099
|
+
attr_reader subscription_config: MetronomeSDK::RecurringCommitSubscriptionConfig?
|
|
1601
1100
|
|
|
1602
1101
|
def subscription_config=: (
|
|
1603
|
-
MetronomeSDK::
|
|
1604
|
-
) -> MetronomeSDK::
|
|
1102
|
+
MetronomeSDK::RecurringCommitSubscriptionConfig
|
|
1103
|
+
) -> MetronomeSDK::RecurringCommitSubscriptionConfig
|
|
1605
1104
|
|
|
1606
1105
|
def initialize: (
|
|
1607
1106
|
id: String,
|
|
@@ -1616,15 +1115,15 @@ module MetronomeSDK
|
|
|
1616
1115
|
?contract: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::Contract,
|
|
1617
1116
|
?description: String,
|
|
1618
1117
|
?ending_before: Time,
|
|
1619
|
-
?hierarchy_configuration: MetronomeSDK::
|
|
1118
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
1620
1119
|
?invoice_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::InvoiceAmount,
|
|
1621
1120
|
?name: String,
|
|
1622
1121
|
?netsuite_sales_order_id: String,
|
|
1623
1122
|
?proration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::proration,
|
|
1624
1123
|
?recurrence_frequency: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::recurrence_frequency,
|
|
1625
1124
|
?rollover_fraction: Float,
|
|
1626
|
-
?specifiers: ::Array[MetronomeSDK::
|
|
1627
|
-
?subscription_config: MetronomeSDK::
|
|
1125
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifier],
|
|
1126
|
+
?subscription_config: MetronomeSDK::RecurringCommitSubscriptionConfig
|
|
1628
1127
|
) -> void
|
|
1629
1128
|
|
|
1630
1129
|
def to_hash: -> {
|
|
@@ -1640,15 +1139,15 @@ module MetronomeSDK
|
|
|
1640
1139
|
contract: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::Contract,
|
|
1641
1140
|
description: String,
|
|
1642
1141
|
ending_before: Time,
|
|
1643
|
-
hierarchy_configuration: MetronomeSDK::
|
|
1142
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
1644
1143
|
invoice_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::InvoiceAmount,
|
|
1645
1144
|
name: String,
|
|
1646
1145
|
netsuite_sales_order_id: String,
|
|
1647
1146
|
proration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::proration,
|
|
1648
1147
|
recurrence_frequency: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::recurrence_frequency,
|
|
1649
1148
|
rollover_fraction: Float,
|
|
1650
|
-
specifiers: ::Array[MetronomeSDK::
|
|
1651
|
-
subscription_config: MetronomeSDK::
|
|
1149
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifier],
|
|
1150
|
+
subscription_config: MetronomeSDK::RecurringCommitSubscriptionConfig
|
|
1652
1151
|
}
|
|
1653
1152
|
|
|
1654
1153
|
type access_amount =
|
|
@@ -1745,120 +1244,6 @@ module MetronomeSDK
|
|
|
1745
1244
|
def to_hash: -> { id: String }
|
|
1746
1245
|
end
|
|
1747
1246
|
|
|
1748
|
-
type hierarchy_configuration =
|
|
1749
|
-
{
|
|
1750
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::child_access
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1753
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
1754
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::child_access
|
|
1755
|
-
|
|
1756
|
-
def initialize: (
|
|
1757
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::child_access
|
|
1758
|
-
) -> void
|
|
1759
|
-
|
|
1760
|
-
def to_hash: -> {
|
|
1761
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::child_access
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
|
-
type child_access =
|
|
1765
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
|
1766
|
-
| MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
|
1767
|
-
| MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
|
1768
|
-
|
|
1769
|
-
module ChildAccess
|
|
1770
|
-
extend MetronomeSDK::Internal::Type::Union
|
|
1771
|
-
|
|
1772
|
-
type commit_hierarchy_child_access_all =
|
|
1773
|
-
{
|
|
1774
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
|
1778
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
1779
|
-
|
|
1780
|
-
def initialize: (
|
|
1781
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
1782
|
-
) -> void
|
|
1783
|
-
|
|
1784
|
-
def to_hash: -> {
|
|
1785
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
1786
|
-
}
|
|
1787
|
-
|
|
1788
|
-
type type_ = :ALL
|
|
1789
|
-
|
|
1790
|
-
module Type
|
|
1791
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
1792
|
-
|
|
1793
|
-
ALL: :ALL
|
|
1794
|
-
|
|
1795
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
|
1796
|
-
end
|
|
1797
|
-
end
|
|
1798
|
-
|
|
1799
|
-
type commit_hierarchy_child_access_none =
|
|
1800
|
-
{
|
|
1801
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
|
1805
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
1806
|
-
|
|
1807
|
-
def initialize: (
|
|
1808
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
1809
|
-
) -> void
|
|
1810
|
-
|
|
1811
|
-
def to_hash: -> {
|
|
1812
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
|
-
type type_ = :NONE
|
|
1816
|
-
|
|
1817
|
-
module Type
|
|
1818
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
1819
|
-
|
|
1820
|
-
NONE: :NONE
|
|
1821
|
-
|
|
1822
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
|
1823
|
-
end
|
|
1824
|
-
end
|
|
1825
|
-
|
|
1826
|
-
type commit_hierarchy_child_access_contract_ids =
|
|
1827
|
-
{
|
|
1828
|
-
contract_ids: ::Array[String],
|
|
1829
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
|
1833
|
-
attr_accessor contract_ids: ::Array[String]
|
|
1834
|
-
|
|
1835
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
1836
|
-
|
|
1837
|
-
def initialize: (
|
|
1838
|
-
contract_ids: ::Array[String],
|
|
1839
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
1840
|
-
) -> void
|
|
1841
|
-
|
|
1842
|
-
def to_hash: -> {
|
|
1843
|
-
contract_ids: ::Array[String],
|
|
1844
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1847
|
-
type type_ = :CONTRACT_IDS
|
|
1848
|
-
|
|
1849
|
-
module Type
|
|
1850
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
1851
|
-
|
|
1852
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
|
1853
|
-
|
|
1854
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
|
1855
|
-
end
|
|
1856
|
-
end
|
|
1857
|
-
|
|
1858
|
-
def self?.variants: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::HierarchyConfiguration::child_access]
|
|
1859
|
-
end
|
|
1860
|
-
end
|
|
1861
|
-
|
|
1862
1247
|
type invoice_amount =
|
|
1863
1248
|
{ credit_type_id: String, quantity: Float, unit_price: Float }
|
|
1864
1249
|
|
|
@@ -1908,98 +1293,6 @@ module MetronomeSDK
|
|
|
1908
1293
|
|
|
1909
1294
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::recurrence_frequency]
|
|
1910
1295
|
end
|
|
1911
|
-
|
|
1912
|
-
type specifier =
|
|
1913
|
-
{
|
|
1914
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
1915
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
1916
|
-
product_id: String,
|
|
1917
|
-
product_tags: ::Array[String]
|
|
1918
|
-
}
|
|
1919
|
-
|
|
1920
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
|
1921
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
|
1922
|
-
|
|
1923
|
-
def presentation_group_values=: (
|
|
1924
|
-
::Hash[Symbol, String]
|
|
1925
|
-
) -> ::Hash[Symbol, String]
|
|
1926
|
-
|
|
1927
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
|
1928
|
-
|
|
1929
|
-
def pricing_group_values=: (
|
|
1930
|
-
::Hash[Symbol, String]
|
|
1931
|
-
) -> ::Hash[Symbol, String]
|
|
1932
|
-
|
|
1933
|
-
attr_reader product_id: String?
|
|
1934
|
-
|
|
1935
|
-
def product_id=: (String) -> String
|
|
1936
|
-
|
|
1937
|
-
attr_reader product_tags: ::Array[String]?
|
|
1938
|
-
|
|
1939
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
|
1940
|
-
|
|
1941
|
-
def initialize: (
|
|
1942
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
|
1943
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
|
1944
|
-
?product_id: String,
|
|
1945
|
-
?product_tags: ::Array[String]
|
|
1946
|
-
) -> void
|
|
1947
|
-
|
|
1948
|
-
def to_hash: -> {
|
|
1949
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
1950
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
1951
|
-
product_id: String,
|
|
1952
|
-
product_tags: ::Array[String]
|
|
1953
|
-
}
|
|
1954
|
-
end
|
|
1955
|
-
|
|
1956
|
-
type subscription_config =
|
|
1957
|
-
{
|
|
1958
|
-
allocation: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::SubscriptionConfig::allocation,
|
|
1959
|
-
apply_seat_increase_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::SubscriptionConfig::ApplySeatIncreaseConfig,
|
|
1960
|
-
subscription_id: String
|
|
1961
|
-
}
|
|
1962
|
-
|
|
1963
|
-
class SubscriptionConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
1964
|
-
attr_accessor allocation: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::SubscriptionConfig::allocation
|
|
1965
|
-
|
|
1966
|
-
attr_accessor apply_seat_increase_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::SubscriptionConfig::ApplySeatIncreaseConfig
|
|
1967
|
-
|
|
1968
|
-
attr_accessor subscription_id: String
|
|
1969
|
-
|
|
1970
|
-
def initialize: (
|
|
1971
|
-
allocation: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::SubscriptionConfig::allocation,
|
|
1972
|
-
apply_seat_increase_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::SubscriptionConfig::ApplySeatIncreaseConfig,
|
|
1973
|
-
subscription_id: String
|
|
1974
|
-
) -> void
|
|
1975
|
-
|
|
1976
|
-
def to_hash: -> {
|
|
1977
|
-
allocation: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::SubscriptionConfig::allocation,
|
|
1978
|
-
apply_seat_increase_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::SubscriptionConfig::ApplySeatIncreaseConfig,
|
|
1979
|
-
subscription_id: String
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1982
|
-
type allocation = :INDIVIDUAL | :POOLED
|
|
1983
|
-
|
|
1984
|
-
module Allocation
|
|
1985
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
1986
|
-
|
|
1987
|
-
INDIVIDUAL: :INDIVIDUAL
|
|
1988
|
-
POOLED: :POOLED
|
|
1989
|
-
|
|
1990
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCommit::SubscriptionConfig::allocation]
|
|
1991
|
-
end
|
|
1992
|
-
|
|
1993
|
-
type apply_seat_increase_config = { is_prorated: bool }
|
|
1994
|
-
|
|
1995
|
-
class ApplySeatIncreaseConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
1996
|
-
attr_accessor is_prorated: bool
|
|
1997
|
-
|
|
1998
|
-
def initialize: (is_prorated: bool) -> void
|
|
1999
|
-
|
|
2000
|
-
def to_hash: -> { is_prorated: bool }
|
|
2001
|
-
end
|
|
2002
|
-
end
|
|
2003
1296
|
end
|
|
2004
1297
|
|
|
2005
1298
|
type add_recurring_credit =
|
|
@@ -2016,14 +1309,14 @@ module MetronomeSDK
|
|
|
2016
1309
|
contract: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::Contract,
|
|
2017
1310
|
description: String,
|
|
2018
1311
|
ending_before: Time,
|
|
2019
|
-
hierarchy_configuration: MetronomeSDK::
|
|
1312
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
2020
1313
|
name: String,
|
|
2021
1314
|
netsuite_sales_order_id: String,
|
|
2022
1315
|
proration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::proration,
|
|
2023
1316
|
recurrence_frequency: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::recurrence_frequency,
|
|
2024
1317
|
rollover_fraction: Float,
|
|
2025
|
-
specifiers: ::Array[MetronomeSDK::
|
|
2026
|
-
subscription_config: MetronomeSDK::
|
|
1318
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifier],
|
|
1319
|
+
subscription_config: MetronomeSDK::RecurringCommitSubscriptionConfig
|
|
2027
1320
|
}
|
|
2028
1321
|
|
|
2029
1322
|
class AddRecurringCredit < MetronomeSDK::Internal::Type::BaseModel
|
|
@@ -2063,11 +1356,11 @@ module MetronomeSDK
|
|
|
2063
1356
|
|
|
2064
1357
|
def ending_before=: (Time) -> Time
|
|
2065
1358
|
|
|
2066
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
|
1359
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
|
2067
1360
|
|
|
2068
1361
|
def hierarchy_configuration=: (
|
|
2069
|
-
MetronomeSDK::
|
|
2070
|
-
) -> MetronomeSDK::
|
|
1362
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
|
1363
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
|
2071
1364
|
|
|
2072
1365
|
attr_reader name: String?
|
|
2073
1366
|
|
|
@@ -2093,17 +1386,17 @@ module MetronomeSDK
|
|
|
2093
1386
|
|
|
2094
1387
|
def rollover_fraction=: (Float) -> Float
|
|
2095
1388
|
|
|
2096
|
-
attr_reader specifiers: ::Array[MetronomeSDK::
|
|
1389
|
+
attr_reader specifiers: ::Array[MetronomeSDK::CommitSpecifier]?
|
|
2097
1390
|
|
|
2098
1391
|
def specifiers=: (
|
|
2099
|
-
::Array[MetronomeSDK::
|
|
2100
|
-
) -> ::Array[MetronomeSDK::
|
|
1392
|
+
::Array[MetronomeSDK::CommitSpecifier]
|
|
1393
|
+
) -> ::Array[MetronomeSDK::CommitSpecifier]
|
|
2101
1394
|
|
|
2102
|
-
attr_reader subscription_config: MetronomeSDK::
|
|
1395
|
+
attr_reader subscription_config: MetronomeSDK::RecurringCommitSubscriptionConfig?
|
|
2103
1396
|
|
|
2104
1397
|
def subscription_config=: (
|
|
2105
|
-
MetronomeSDK::
|
|
2106
|
-
) -> MetronomeSDK::
|
|
1398
|
+
MetronomeSDK::RecurringCommitSubscriptionConfig
|
|
1399
|
+
) -> MetronomeSDK::RecurringCommitSubscriptionConfig
|
|
2107
1400
|
|
|
2108
1401
|
def initialize: (
|
|
2109
1402
|
id: String,
|
|
@@ -2118,14 +1411,14 @@ module MetronomeSDK
|
|
|
2118
1411
|
?contract: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::Contract,
|
|
2119
1412
|
?description: String,
|
|
2120
1413
|
?ending_before: Time,
|
|
2121
|
-
?hierarchy_configuration: MetronomeSDK::
|
|
1414
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
2122
1415
|
?name: String,
|
|
2123
1416
|
?netsuite_sales_order_id: String,
|
|
2124
1417
|
?proration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::proration,
|
|
2125
1418
|
?recurrence_frequency: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::recurrence_frequency,
|
|
2126
1419
|
?rollover_fraction: Float,
|
|
2127
|
-
?specifiers: ::Array[MetronomeSDK::
|
|
2128
|
-
?subscription_config: MetronomeSDK::
|
|
1420
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifier],
|
|
1421
|
+
?subscription_config: MetronomeSDK::RecurringCommitSubscriptionConfig
|
|
2129
1422
|
) -> void
|
|
2130
1423
|
|
|
2131
1424
|
def to_hash: -> {
|
|
@@ -2141,14 +1434,14 @@ module MetronomeSDK
|
|
|
2141
1434
|
contract: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::Contract,
|
|
2142
1435
|
description: String,
|
|
2143
1436
|
ending_before: Time,
|
|
2144
|
-
hierarchy_configuration: MetronomeSDK::
|
|
1437
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
2145
1438
|
name: String,
|
|
2146
1439
|
netsuite_sales_order_id: String,
|
|
2147
1440
|
proration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::proration,
|
|
2148
1441
|
recurrence_frequency: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::recurrence_frequency,
|
|
2149
1442
|
rollover_fraction: Float,
|
|
2150
|
-
specifiers: ::Array[MetronomeSDK::
|
|
2151
|
-
subscription_config: MetronomeSDK::
|
|
1443
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifier],
|
|
1444
|
+
subscription_config: MetronomeSDK::RecurringCommitSubscriptionConfig
|
|
2152
1445
|
}
|
|
2153
1446
|
|
|
2154
1447
|
type access_amount =
|
|
@@ -2245,124 +1538,10 @@ module MetronomeSDK
|
|
|
2245
1538
|
def to_hash: -> { id: String }
|
|
2246
1539
|
end
|
|
2247
1540
|
|
|
2248
|
-
type
|
|
2249
|
-
{
|
|
2250
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::child_access
|
|
2251
|
-
}
|
|
2252
|
-
|
|
2253
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
2254
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::child_access
|
|
1541
|
+
type proration = :NONE | :FIRST | :LAST | :FIRST_AND_LAST
|
|
2255
1542
|
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
) -> void
|
|
2259
|
-
|
|
2260
|
-
def to_hash: -> {
|
|
2261
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::child_access
|
|
2262
|
-
}
|
|
2263
|
-
|
|
2264
|
-
type child_access =
|
|
2265
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
|
2266
|
-
| MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
|
2267
|
-
| MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
|
2268
|
-
|
|
2269
|
-
module ChildAccess
|
|
2270
|
-
extend MetronomeSDK::Internal::Type::Union
|
|
2271
|
-
|
|
2272
|
-
type commit_hierarchy_child_access_all =
|
|
2273
|
-
{
|
|
2274
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
2275
|
-
}
|
|
2276
|
-
|
|
2277
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
|
2278
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
2279
|
-
|
|
2280
|
-
def initialize: (
|
|
2281
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
2282
|
-
) -> void
|
|
2283
|
-
|
|
2284
|
-
def to_hash: -> {
|
|
2285
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
2286
|
-
}
|
|
2287
|
-
|
|
2288
|
-
type type_ = :ALL
|
|
2289
|
-
|
|
2290
|
-
module Type
|
|
2291
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2292
|
-
|
|
2293
|
-
ALL: :ALL
|
|
2294
|
-
|
|
2295
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
|
2296
|
-
end
|
|
2297
|
-
end
|
|
2298
|
-
|
|
2299
|
-
type commit_hierarchy_child_access_none =
|
|
2300
|
-
{
|
|
2301
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
2302
|
-
}
|
|
2303
|
-
|
|
2304
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
|
2305
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
2306
|
-
|
|
2307
|
-
def initialize: (
|
|
2308
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
2309
|
-
) -> void
|
|
2310
|
-
|
|
2311
|
-
def to_hash: -> {
|
|
2312
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
2313
|
-
}
|
|
2314
|
-
|
|
2315
|
-
type type_ = :NONE
|
|
2316
|
-
|
|
2317
|
-
module Type
|
|
2318
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2319
|
-
|
|
2320
|
-
NONE: :NONE
|
|
2321
|
-
|
|
2322
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
|
2323
|
-
end
|
|
2324
|
-
end
|
|
2325
|
-
|
|
2326
|
-
type commit_hierarchy_child_access_contract_ids =
|
|
2327
|
-
{
|
|
2328
|
-
contract_ids: ::Array[String],
|
|
2329
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
2330
|
-
}
|
|
2331
|
-
|
|
2332
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
|
2333
|
-
attr_accessor contract_ids: ::Array[String]
|
|
2334
|
-
|
|
2335
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
2336
|
-
|
|
2337
|
-
def initialize: (
|
|
2338
|
-
contract_ids: ::Array[String],
|
|
2339
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
2340
|
-
) -> void
|
|
2341
|
-
|
|
2342
|
-
def to_hash: -> {
|
|
2343
|
-
contract_ids: ::Array[String],
|
|
2344
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
2345
|
-
}
|
|
2346
|
-
|
|
2347
|
-
type type_ = :CONTRACT_IDS
|
|
2348
|
-
|
|
2349
|
-
module Type
|
|
2350
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2351
|
-
|
|
2352
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
|
2353
|
-
|
|
2354
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
|
2355
|
-
end
|
|
2356
|
-
end
|
|
2357
|
-
|
|
2358
|
-
def self?.variants: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::HierarchyConfiguration::child_access]
|
|
2359
|
-
end
|
|
2360
|
-
end
|
|
2361
|
-
|
|
2362
|
-
type proration = :NONE | :FIRST | :LAST | :FIRST_AND_LAST
|
|
2363
|
-
|
|
2364
|
-
module Proration
|
|
2365
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
1543
|
+
module Proration
|
|
1544
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
2366
1545
|
|
|
2367
1546
|
NONE: :NONE
|
|
2368
1547
|
FIRST: :FIRST
|
|
@@ -2385,98 +1564,6 @@ module MetronomeSDK
|
|
|
2385
1564
|
|
|
2386
1565
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::recurrence_frequency]
|
|
2387
1566
|
end
|
|
2388
|
-
|
|
2389
|
-
type specifier =
|
|
2390
|
-
{
|
|
2391
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
2392
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
2393
|
-
product_id: String,
|
|
2394
|
-
product_tags: ::Array[String]
|
|
2395
|
-
}
|
|
2396
|
-
|
|
2397
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
|
2398
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
|
2399
|
-
|
|
2400
|
-
def presentation_group_values=: (
|
|
2401
|
-
::Hash[Symbol, String]
|
|
2402
|
-
) -> ::Hash[Symbol, String]
|
|
2403
|
-
|
|
2404
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
|
2405
|
-
|
|
2406
|
-
def pricing_group_values=: (
|
|
2407
|
-
::Hash[Symbol, String]
|
|
2408
|
-
) -> ::Hash[Symbol, String]
|
|
2409
|
-
|
|
2410
|
-
attr_reader product_id: String?
|
|
2411
|
-
|
|
2412
|
-
def product_id=: (String) -> String
|
|
2413
|
-
|
|
2414
|
-
attr_reader product_tags: ::Array[String]?
|
|
2415
|
-
|
|
2416
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
|
2417
|
-
|
|
2418
|
-
def initialize: (
|
|
2419
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
|
2420
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
|
2421
|
-
?product_id: String,
|
|
2422
|
-
?product_tags: ::Array[String]
|
|
2423
|
-
) -> void
|
|
2424
|
-
|
|
2425
|
-
def to_hash: -> {
|
|
2426
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
2427
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
2428
|
-
product_id: String,
|
|
2429
|
-
product_tags: ::Array[String]
|
|
2430
|
-
}
|
|
2431
|
-
end
|
|
2432
|
-
|
|
2433
|
-
type subscription_config =
|
|
2434
|
-
{
|
|
2435
|
-
allocation: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::SubscriptionConfig::allocation,
|
|
2436
|
-
apply_seat_increase_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig,
|
|
2437
|
-
subscription_id: String
|
|
2438
|
-
}
|
|
2439
|
-
|
|
2440
|
-
class SubscriptionConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
2441
|
-
attr_accessor allocation: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::SubscriptionConfig::allocation
|
|
2442
|
-
|
|
2443
|
-
attr_accessor apply_seat_increase_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig
|
|
2444
|
-
|
|
2445
|
-
attr_accessor subscription_id: String
|
|
2446
|
-
|
|
2447
|
-
def initialize: (
|
|
2448
|
-
allocation: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::SubscriptionConfig::allocation,
|
|
2449
|
-
apply_seat_increase_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig,
|
|
2450
|
-
subscription_id: String
|
|
2451
|
-
) -> void
|
|
2452
|
-
|
|
2453
|
-
def to_hash: -> {
|
|
2454
|
-
allocation: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::SubscriptionConfig::allocation,
|
|
2455
|
-
apply_seat_increase_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig,
|
|
2456
|
-
subscription_id: String
|
|
2457
|
-
}
|
|
2458
|
-
|
|
2459
|
-
type allocation = :INDIVIDUAL | :POOLED
|
|
2460
|
-
|
|
2461
|
-
module Allocation
|
|
2462
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2463
|
-
|
|
2464
|
-
INDIVIDUAL: :INDIVIDUAL
|
|
2465
|
-
POOLED: :POOLED
|
|
2466
|
-
|
|
2467
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::SubscriptionConfig::allocation]
|
|
2468
|
-
end
|
|
2469
|
-
|
|
2470
|
-
type apply_seat_increase_config = { is_prorated: bool }
|
|
2471
|
-
|
|
2472
|
-
class ApplySeatIncreaseConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
2473
|
-
attr_accessor is_prorated: bool
|
|
2474
|
-
|
|
2475
|
-
def initialize: (is_prorated: bool) -> void
|
|
2476
|
-
|
|
2477
|
-
def to_hash: -> { is_prorated: bool }
|
|
2478
|
-
end
|
|
2479
|
-
end
|
|
2480
1567
|
end
|
|
2481
1568
|
|
|
2482
1569
|
type add_reseller_royalty =
|
|
@@ -2645,384 +1732,6 @@ module MetronomeSDK
|
|
|
2645
1732
|
end
|
|
2646
1733
|
end
|
|
2647
1734
|
|
|
2648
|
-
type add_spend_threshold_configuration =
|
|
2649
|
-
{
|
|
2650
|
-
commit: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::Commit,
|
|
2651
|
-
is_enabled: bool,
|
|
2652
|
-
payment_gate_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig,
|
|
2653
|
-
threshold_amount: Float
|
|
2654
|
-
}
|
|
2655
|
-
|
|
2656
|
-
class AddSpendThresholdConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
2657
|
-
attr_accessor commit: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::Commit
|
|
2658
|
-
|
|
2659
|
-
attr_accessor is_enabled: bool
|
|
2660
|
-
|
|
2661
|
-
attr_accessor payment_gate_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig
|
|
2662
|
-
|
|
2663
|
-
attr_accessor threshold_amount: Float
|
|
2664
|
-
|
|
2665
|
-
def initialize: (
|
|
2666
|
-
commit: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::Commit,
|
|
2667
|
-
is_enabled: bool,
|
|
2668
|
-
payment_gate_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig,
|
|
2669
|
-
threshold_amount: Float
|
|
2670
|
-
) -> void
|
|
2671
|
-
|
|
2672
|
-
def to_hash: -> {
|
|
2673
|
-
commit: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::Commit,
|
|
2674
|
-
is_enabled: bool,
|
|
2675
|
-
payment_gate_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig,
|
|
2676
|
-
threshold_amount: Float
|
|
2677
|
-
}
|
|
2678
|
-
|
|
2679
|
-
type commit =
|
|
2680
|
-
{ product_id: String, description: String, name: String }
|
|
2681
|
-
|
|
2682
|
-
class Commit < MetronomeSDK::Internal::Type::BaseModel
|
|
2683
|
-
attr_accessor product_id: String
|
|
2684
|
-
|
|
2685
|
-
attr_reader description: String?
|
|
2686
|
-
|
|
2687
|
-
def description=: (String) -> String
|
|
2688
|
-
|
|
2689
|
-
attr_reader name: String?
|
|
2690
|
-
|
|
2691
|
-
def name=: (String) -> String
|
|
2692
|
-
|
|
2693
|
-
def initialize: (
|
|
2694
|
-
product_id: String,
|
|
2695
|
-
?description: String,
|
|
2696
|
-
?name: String
|
|
2697
|
-
) -> void
|
|
2698
|
-
|
|
2699
|
-
def to_hash: -> {
|
|
2700
|
-
product_id: String,
|
|
2701
|
-
description: String,
|
|
2702
|
-
name: String
|
|
2703
|
-
}
|
|
2704
|
-
end
|
|
2705
|
-
|
|
2706
|
-
type payment_gate_config =
|
|
2707
|
-
{
|
|
2708
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
2709
|
-
precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
2710
|
-
stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
2711
|
-
tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
2712
|
-
}
|
|
2713
|
-
|
|
2714
|
-
class PaymentGateConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
2715
|
-
attr_accessor payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type
|
|
2716
|
-
|
|
2717
|
-
attr_reader precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig?
|
|
2718
|
-
|
|
2719
|
-
def precalculated_tax_config=: (
|
|
2720
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
2721
|
-
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
2722
|
-
|
|
2723
|
-
attr_reader stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig?
|
|
2724
|
-
|
|
2725
|
-
def stripe_config=: (
|
|
2726
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
2727
|
-
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
2728
|
-
|
|
2729
|
-
attr_reader tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type?
|
|
2730
|
-
|
|
2731
|
-
def tax_type=: (
|
|
2732
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
2733
|
-
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
2734
|
-
|
|
2735
|
-
def initialize: (
|
|
2736
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
2737
|
-
?precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
2738
|
-
?stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
2739
|
-
?tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
2740
|
-
) -> void
|
|
2741
|
-
|
|
2742
|
-
def to_hash: -> {
|
|
2743
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
2744
|
-
precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
2745
|
-
stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
2746
|
-
tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
2747
|
-
}
|
|
2748
|
-
|
|
2749
|
-
type payment_gate_type = :NONE | :STRIPE | :EXTERNAL
|
|
2750
|
-
|
|
2751
|
-
module PaymentGateType
|
|
2752
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2753
|
-
|
|
2754
|
-
NONE: :NONE
|
|
2755
|
-
STRIPE: :STRIPE
|
|
2756
|
-
EXTERNAL: :EXTERNAL
|
|
2757
|
-
|
|
2758
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type]
|
|
2759
|
-
end
|
|
2760
|
-
|
|
2761
|
-
type precalculated_tax_config =
|
|
2762
|
-
{ tax_amount: Float, tax_name: String }
|
|
2763
|
-
|
|
2764
|
-
class PrecalculatedTaxConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
2765
|
-
attr_accessor tax_amount: Float
|
|
2766
|
-
|
|
2767
|
-
attr_reader tax_name: String?
|
|
2768
|
-
|
|
2769
|
-
def tax_name=: (String) -> String
|
|
2770
|
-
|
|
2771
|
-
def initialize: (tax_amount: Float, ?tax_name: String) -> void
|
|
2772
|
-
|
|
2773
|
-
def to_hash: -> { tax_amount: Float, tax_name: String }
|
|
2774
|
-
end
|
|
2775
|
-
|
|
2776
|
-
type stripe_config =
|
|
2777
|
-
{
|
|
2778
|
-
payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
2779
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
2780
|
-
}
|
|
2781
|
-
|
|
2782
|
-
class StripeConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
2783
|
-
attr_accessor payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type
|
|
2784
|
-
|
|
2785
|
-
attr_reader invoice_metadata: ::Hash[Symbol, String]?
|
|
2786
|
-
|
|
2787
|
-
def invoice_metadata=: (
|
|
2788
|
-
::Hash[Symbol, String]
|
|
2789
|
-
) -> ::Hash[Symbol, String]
|
|
2790
|
-
|
|
2791
|
-
def initialize: (
|
|
2792
|
-
payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
2793
|
-
?invoice_metadata: ::Hash[Symbol, String]
|
|
2794
|
-
) -> void
|
|
2795
|
-
|
|
2796
|
-
def to_hash: -> {
|
|
2797
|
-
payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
2798
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
2799
|
-
}
|
|
2800
|
-
|
|
2801
|
-
type payment_type = :INVOICE | :PAYMENT_INTENT
|
|
2802
|
-
|
|
2803
|
-
module PaymentType
|
|
2804
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2805
|
-
|
|
2806
|
-
INVOICE: :INVOICE
|
|
2807
|
-
PAYMENT_INTENT: :PAYMENT_INTENT
|
|
2808
|
-
|
|
2809
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type]
|
|
2810
|
-
end
|
|
2811
|
-
end
|
|
2812
|
-
|
|
2813
|
-
type tax_type = :NONE | :STRIPE | :ANROK | :PRECALCULATED
|
|
2814
|
-
|
|
2815
|
-
module TaxType
|
|
2816
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2817
|
-
|
|
2818
|
-
NONE: :NONE
|
|
2819
|
-
STRIPE: :STRIPE
|
|
2820
|
-
ANROK: :ANROK
|
|
2821
|
-
PRECALCULATED: :PRECALCULATED
|
|
2822
|
-
|
|
2823
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type]
|
|
2824
|
-
end
|
|
2825
|
-
end
|
|
2826
|
-
end
|
|
2827
|
-
|
|
2828
|
-
type add_subscription =
|
|
2829
|
-
{
|
|
2830
|
-
collection_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::collection_schedule,
|
|
2831
|
-
proration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::Proration,
|
|
2832
|
-
quantity_schedule: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::QuantitySchedule],
|
|
2833
|
-
starting_at: Time,
|
|
2834
|
-
subscription_rate: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::SubscriptionRate,
|
|
2835
|
-
id: String,
|
|
2836
|
-
custom_fields: ::Hash[Symbol, String],
|
|
2837
|
-
description: String,
|
|
2838
|
-
ending_before: Time,
|
|
2839
|
-
fiat_credit_type_id: String,
|
|
2840
|
-
name: String
|
|
2841
|
-
}
|
|
2842
|
-
|
|
2843
|
-
class AddSubscription < MetronomeSDK::Internal::Type::BaseModel
|
|
2844
|
-
attr_accessor collection_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::collection_schedule
|
|
2845
|
-
|
|
2846
|
-
attr_accessor proration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::Proration
|
|
2847
|
-
|
|
2848
|
-
attr_accessor quantity_schedule: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::QuantitySchedule]
|
|
2849
|
-
|
|
2850
|
-
attr_accessor starting_at: Time
|
|
2851
|
-
|
|
2852
|
-
attr_accessor subscription_rate: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::SubscriptionRate
|
|
2853
|
-
|
|
2854
|
-
attr_reader id: String?
|
|
2855
|
-
|
|
2856
|
-
def id=: (String) -> String
|
|
2857
|
-
|
|
2858
|
-
attr_reader custom_fields: ::Hash[Symbol, String]?
|
|
2859
|
-
|
|
2860
|
-
def custom_fields=: (
|
|
2861
|
-
::Hash[Symbol, String]
|
|
2862
|
-
) -> ::Hash[Symbol, String]
|
|
2863
|
-
|
|
2864
|
-
attr_reader description: String?
|
|
2865
|
-
|
|
2866
|
-
def description=: (String) -> String
|
|
2867
|
-
|
|
2868
|
-
attr_reader ending_before: Time?
|
|
2869
|
-
|
|
2870
|
-
def ending_before=: (Time) -> Time
|
|
2871
|
-
|
|
2872
|
-
attr_reader fiat_credit_type_id: String?
|
|
2873
|
-
|
|
2874
|
-
def fiat_credit_type_id=: (String) -> String
|
|
2875
|
-
|
|
2876
|
-
attr_reader name: String?
|
|
2877
|
-
|
|
2878
|
-
def name=: (String) -> String
|
|
2879
|
-
|
|
2880
|
-
def initialize: (
|
|
2881
|
-
collection_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::collection_schedule,
|
|
2882
|
-
proration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::Proration,
|
|
2883
|
-
quantity_schedule: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::QuantitySchedule],
|
|
2884
|
-
starting_at: Time,
|
|
2885
|
-
subscription_rate: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::SubscriptionRate,
|
|
2886
|
-
?id: String,
|
|
2887
|
-
?custom_fields: ::Hash[Symbol, String],
|
|
2888
|
-
?description: String,
|
|
2889
|
-
?ending_before: Time,
|
|
2890
|
-
?fiat_credit_type_id: String,
|
|
2891
|
-
?name: String
|
|
2892
|
-
) -> void
|
|
2893
|
-
|
|
2894
|
-
def to_hash: -> {
|
|
2895
|
-
collection_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::collection_schedule,
|
|
2896
|
-
proration: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::Proration,
|
|
2897
|
-
quantity_schedule: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::QuantitySchedule],
|
|
2898
|
-
starting_at: Time,
|
|
2899
|
-
subscription_rate: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::SubscriptionRate,
|
|
2900
|
-
id: String,
|
|
2901
|
-
custom_fields: ::Hash[Symbol, String],
|
|
2902
|
-
description: String,
|
|
2903
|
-
ending_before: Time,
|
|
2904
|
-
fiat_credit_type_id: String,
|
|
2905
|
-
name: String
|
|
2906
|
-
}
|
|
2907
|
-
|
|
2908
|
-
type collection_schedule = :ADVANCE | :ARREARS
|
|
2909
|
-
|
|
2910
|
-
module CollectionSchedule
|
|
2911
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2912
|
-
|
|
2913
|
-
ADVANCE: :ADVANCE
|
|
2914
|
-
ARREARS: :ARREARS
|
|
2915
|
-
|
|
2916
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::collection_schedule]
|
|
2917
|
-
end
|
|
2918
|
-
|
|
2919
|
-
type proration =
|
|
2920
|
-
{
|
|
2921
|
-
invoice_behavior: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::Proration::invoice_behavior,
|
|
2922
|
-
is_prorated: bool
|
|
2923
|
-
}
|
|
2924
|
-
|
|
2925
|
-
class Proration < MetronomeSDK::Internal::Type::BaseModel
|
|
2926
|
-
attr_accessor invoice_behavior: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::Proration::invoice_behavior
|
|
2927
|
-
|
|
2928
|
-
attr_accessor is_prorated: bool
|
|
2929
|
-
|
|
2930
|
-
def initialize: (
|
|
2931
|
-
invoice_behavior: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::Proration::invoice_behavior,
|
|
2932
|
-
is_prorated: bool
|
|
2933
|
-
) -> void
|
|
2934
|
-
|
|
2935
|
-
def to_hash: -> {
|
|
2936
|
-
invoice_behavior: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::Proration::invoice_behavior,
|
|
2937
|
-
is_prorated: bool
|
|
2938
|
-
}
|
|
2939
|
-
|
|
2940
|
-
type invoice_behavior =
|
|
2941
|
-
:BILL_IMMEDIATELY | :BILL_ON_NEXT_COLLECTION_DATE
|
|
2942
|
-
|
|
2943
|
-
module InvoiceBehavior
|
|
2944
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2945
|
-
|
|
2946
|
-
BILL_IMMEDIATELY: :BILL_IMMEDIATELY
|
|
2947
|
-
BILL_ON_NEXT_COLLECTION_DATE: :BILL_ON_NEXT_COLLECTION_DATE
|
|
2948
|
-
|
|
2949
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::Proration::invoice_behavior]
|
|
2950
|
-
end
|
|
2951
|
-
end
|
|
2952
|
-
|
|
2953
|
-
type quantity_schedule =
|
|
2954
|
-
{ quantity: Float, starting_at: Time, ending_before: Time }
|
|
2955
|
-
|
|
2956
|
-
class QuantitySchedule < MetronomeSDK::Internal::Type::BaseModel
|
|
2957
|
-
attr_accessor quantity: Float
|
|
2958
|
-
|
|
2959
|
-
attr_accessor starting_at: Time
|
|
2960
|
-
|
|
2961
|
-
attr_reader ending_before: Time?
|
|
2962
|
-
|
|
2963
|
-
def ending_before=: (Time) -> Time
|
|
2964
|
-
|
|
2965
|
-
def initialize: (
|
|
2966
|
-
quantity: Float,
|
|
2967
|
-
starting_at: Time,
|
|
2968
|
-
?ending_before: Time
|
|
2969
|
-
) -> void
|
|
2970
|
-
|
|
2971
|
-
def to_hash: -> {
|
|
2972
|
-
quantity: Float,
|
|
2973
|
-
starting_at: Time,
|
|
2974
|
-
ending_before: Time
|
|
2975
|
-
}
|
|
2976
|
-
end
|
|
2977
|
-
|
|
2978
|
-
type subscription_rate =
|
|
2979
|
-
{
|
|
2980
|
-
billing_frequency: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::SubscriptionRate::billing_frequency,
|
|
2981
|
-
product: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::SubscriptionRate::Product
|
|
2982
|
-
}
|
|
2983
|
-
|
|
2984
|
-
class SubscriptionRate < MetronomeSDK::Internal::Type::BaseModel
|
|
2985
|
-
attr_accessor billing_frequency: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::SubscriptionRate::billing_frequency
|
|
2986
|
-
|
|
2987
|
-
attr_accessor product: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::SubscriptionRate::Product
|
|
2988
|
-
|
|
2989
|
-
def initialize: (
|
|
2990
|
-
billing_frequency: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::SubscriptionRate::billing_frequency,
|
|
2991
|
-
product: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::SubscriptionRate::Product
|
|
2992
|
-
) -> void
|
|
2993
|
-
|
|
2994
|
-
def to_hash: -> {
|
|
2995
|
-
billing_frequency: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::SubscriptionRate::billing_frequency,
|
|
2996
|
-
product: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::SubscriptionRate::Product
|
|
2997
|
-
}
|
|
2998
|
-
|
|
2999
|
-
type billing_frequency = :MONTHLY | :QUARTERLY | :ANNUAL | :WEEKLY
|
|
3000
|
-
|
|
3001
|
-
module BillingFrequency
|
|
3002
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
3003
|
-
|
|
3004
|
-
MONTHLY: :MONTHLY
|
|
3005
|
-
QUARTERLY: :QUARTERLY
|
|
3006
|
-
ANNUAL: :ANNUAL
|
|
3007
|
-
WEEKLY: :WEEKLY
|
|
3008
|
-
|
|
3009
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddSubscription::SubscriptionRate::billing_frequency]
|
|
3010
|
-
end
|
|
3011
|
-
|
|
3012
|
-
type product = { id: String, name: String }
|
|
3013
|
-
|
|
3014
|
-
class Product < MetronomeSDK::Internal::Type::BaseModel
|
|
3015
|
-
attr_accessor id: String
|
|
3016
|
-
|
|
3017
|
-
attr_accessor name: String
|
|
3018
|
-
|
|
3019
|
-
def initialize: (id: String, name: String) -> void
|
|
3020
|
-
|
|
3021
|
-
def to_hash: -> { id: String, name: String }
|
|
3022
|
-
end
|
|
3023
|
-
end
|
|
3024
|
-
end
|
|
3025
|
-
|
|
3026
1735
|
type add_usage_filter =
|
|
3027
1736
|
{
|
|
3028
1737
|
group_key: String,
|
|
@@ -3103,14 +1812,15 @@ module MetronomeSDK
|
|
|
3103
1812
|
access_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::AccessSchedule,
|
|
3104
1813
|
applicable_product_ids: ::Array[String]?,
|
|
3105
1814
|
applicable_product_tags: ::Array[String]?,
|
|
3106
|
-
hierarchy_configuration: MetronomeSDK::
|
|
1815
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
3107
1816
|
invoice_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::InvoiceSchedule,
|
|
3108
1817
|
name: String,
|
|
3109
1818
|
netsuite_sales_order_id: String?,
|
|
3110
1819
|
priority: Float?,
|
|
3111
1820
|
product_id: String,
|
|
1821
|
+
rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::rate_type,
|
|
3112
1822
|
rollover_fraction: Float?,
|
|
3113
|
-
specifiers: ::Array[MetronomeSDK::
|
|
1823
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
3114
1824
|
}
|
|
3115
1825
|
|
|
3116
1826
|
class UpdateCommit < MetronomeSDK::Internal::Type::BaseModel
|
|
@@ -3126,11 +1836,11 @@ module MetronomeSDK
|
|
|
3126
1836
|
|
|
3127
1837
|
attr_accessor applicable_product_tags: ::Array[String]?
|
|
3128
1838
|
|
|
3129
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
|
1839
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
|
3130
1840
|
|
|
3131
1841
|
def hierarchy_configuration=: (
|
|
3132
|
-
MetronomeSDK::
|
|
3133
|
-
) -> MetronomeSDK::
|
|
1842
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
|
1843
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
|
3134
1844
|
|
|
3135
1845
|
attr_reader invoice_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::InvoiceSchedule?
|
|
3136
1846
|
|
|
@@ -3150,23 +1860,30 @@ module MetronomeSDK
|
|
|
3150
1860
|
|
|
3151
1861
|
def product_id=: (String) -> String
|
|
3152
1862
|
|
|
1863
|
+
attr_reader rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::rate_type?
|
|
1864
|
+
|
|
1865
|
+
def rate_type=: (
|
|
1866
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::rate_type
|
|
1867
|
+
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::rate_type
|
|
1868
|
+
|
|
3153
1869
|
attr_accessor rollover_fraction: Float?
|
|
3154
1870
|
|
|
3155
|
-
attr_accessor specifiers: ::Array[MetronomeSDK::
|
|
1871
|
+
attr_accessor specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
3156
1872
|
|
|
3157
1873
|
def initialize: (
|
|
3158
1874
|
id: String,
|
|
3159
1875
|
?access_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::AccessSchedule,
|
|
3160
1876
|
?applicable_product_ids: ::Array[String]?,
|
|
3161
1877
|
?applicable_product_tags: ::Array[String]?,
|
|
3162
|
-
?hierarchy_configuration: MetronomeSDK::
|
|
1878
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
3163
1879
|
?invoice_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::InvoiceSchedule,
|
|
3164
1880
|
?name: String,
|
|
3165
1881
|
?netsuite_sales_order_id: String?,
|
|
3166
1882
|
?priority: Float?,
|
|
3167
1883
|
?product_id: String,
|
|
1884
|
+
?rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::rate_type,
|
|
3168
1885
|
?rollover_fraction: Float?,
|
|
3169
|
-
?specifiers: ::Array[MetronomeSDK::
|
|
1886
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
3170
1887
|
) -> void
|
|
3171
1888
|
|
|
3172
1889
|
def to_hash: -> {
|
|
@@ -3174,14 +1891,15 @@ module MetronomeSDK
|
|
|
3174
1891
|
access_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::AccessSchedule,
|
|
3175
1892
|
applicable_product_ids: ::Array[String]?,
|
|
3176
1893
|
applicable_product_tags: ::Array[String]?,
|
|
3177
|
-
hierarchy_configuration: MetronomeSDK::
|
|
1894
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
3178
1895
|
invoice_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::InvoiceSchedule,
|
|
3179
1896
|
name: String,
|
|
3180
1897
|
netsuite_sales_order_id: String?,
|
|
3181
1898
|
priority: Float?,
|
|
3182
1899
|
product_id: String,
|
|
1900
|
+
rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::rate_type,
|
|
3183
1901
|
rollover_fraction: Float?,
|
|
3184
|
-
specifiers: ::Array[MetronomeSDK::
|
|
1902
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
3185
1903
|
}
|
|
3186
1904
|
|
|
3187
1905
|
type access_schedule =
|
|
@@ -3294,120 +2012,6 @@ module MetronomeSDK
|
|
|
3294
2012
|
end
|
|
3295
2013
|
end
|
|
3296
2014
|
|
|
3297
|
-
type hierarchy_configuration =
|
|
3298
|
-
{
|
|
3299
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::child_access
|
|
3300
|
-
}
|
|
3301
|
-
|
|
3302
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
3303
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::child_access
|
|
3304
|
-
|
|
3305
|
-
def initialize: (
|
|
3306
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::child_access
|
|
3307
|
-
) -> void
|
|
3308
|
-
|
|
3309
|
-
def to_hash: -> {
|
|
3310
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::child_access
|
|
3311
|
-
}
|
|
3312
|
-
|
|
3313
|
-
type child_access =
|
|
3314
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
|
3315
|
-
| MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
|
3316
|
-
| MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
|
3317
|
-
|
|
3318
|
-
module ChildAccess
|
|
3319
|
-
extend MetronomeSDK::Internal::Type::Union
|
|
3320
|
-
|
|
3321
|
-
type commit_hierarchy_child_access_all =
|
|
3322
|
-
{
|
|
3323
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
3324
|
-
}
|
|
3325
|
-
|
|
3326
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
|
3327
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
3328
|
-
|
|
3329
|
-
def initialize: (
|
|
3330
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
3331
|
-
) -> void
|
|
3332
|
-
|
|
3333
|
-
def to_hash: -> {
|
|
3334
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
3335
|
-
}
|
|
3336
|
-
|
|
3337
|
-
type type_ = :ALL
|
|
3338
|
-
|
|
3339
|
-
module Type
|
|
3340
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
3341
|
-
|
|
3342
|
-
ALL: :ALL
|
|
3343
|
-
|
|
3344
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
|
3345
|
-
end
|
|
3346
|
-
end
|
|
3347
|
-
|
|
3348
|
-
type commit_hierarchy_child_access_none =
|
|
3349
|
-
{
|
|
3350
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
3351
|
-
}
|
|
3352
|
-
|
|
3353
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
|
3354
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
3355
|
-
|
|
3356
|
-
def initialize: (
|
|
3357
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
3358
|
-
) -> void
|
|
3359
|
-
|
|
3360
|
-
def to_hash: -> {
|
|
3361
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
3362
|
-
}
|
|
3363
|
-
|
|
3364
|
-
type type_ = :NONE
|
|
3365
|
-
|
|
3366
|
-
module Type
|
|
3367
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
3368
|
-
|
|
3369
|
-
NONE: :NONE
|
|
3370
|
-
|
|
3371
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
|
3372
|
-
end
|
|
3373
|
-
end
|
|
3374
|
-
|
|
3375
|
-
type commit_hierarchy_child_access_contract_ids =
|
|
3376
|
-
{
|
|
3377
|
-
contract_ids: ::Array[String],
|
|
3378
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
3379
|
-
}
|
|
3380
|
-
|
|
3381
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
|
3382
|
-
attr_accessor contract_ids: ::Array[String]
|
|
3383
|
-
|
|
3384
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
3385
|
-
|
|
3386
|
-
def initialize: (
|
|
3387
|
-
contract_ids: ::Array[String],
|
|
3388
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
3389
|
-
) -> void
|
|
3390
|
-
|
|
3391
|
-
def to_hash: -> {
|
|
3392
|
-
contract_ids: ::Array[String],
|
|
3393
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
3394
|
-
}
|
|
3395
|
-
|
|
3396
|
-
type type_ = :CONTRACT_IDS
|
|
3397
|
-
|
|
3398
|
-
module Type
|
|
3399
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
3400
|
-
|
|
3401
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
|
3402
|
-
|
|
3403
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
|
3404
|
-
end
|
|
3405
|
-
end
|
|
3406
|
-
|
|
3407
|
-
def self?.variants: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::HierarchyConfiguration::child_access]
|
|
3408
|
-
end
|
|
3409
|
-
end
|
|
3410
|
-
|
|
3411
2015
|
type invoice_schedule =
|
|
3412
2016
|
{
|
|
3413
2017
|
add_schedule_items: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::InvoiceSchedule::AddScheduleItem],
|
|
@@ -3527,61 +2131,28 @@ module MetronomeSDK
|
|
|
3527
2131
|
?amount: Float,
|
|
3528
2132
|
?quantity: Float,
|
|
3529
2133
|
?timestamp: Time,
|
|
3530
|
-
?unit_price: Float
|
|
3531
|
-
) -> void
|
|
3532
|
-
|
|
3533
|
-
def to_hash: -> {
|
|
3534
|
-
id: String,
|
|
3535
|
-
amount: Float,
|
|
3536
|
-
quantity: Float,
|
|
3537
|
-
timestamp: Time,
|
|
3538
|
-
unit_price: Float
|
|
3539
|
-
}
|
|
3540
|
-
end
|
|
3541
|
-
end
|
|
3542
|
-
|
|
3543
|
-
type specifier =
|
|
3544
|
-
{
|
|
3545
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
3546
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
3547
|
-
product_id: String,
|
|
3548
|
-
product_tags: ::Array[String]
|
|
3549
|
-
}
|
|
3550
|
-
|
|
3551
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
|
3552
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
|
3553
|
-
|
|
3554
|
-
def presentation_group_values=: (
|
|
3555
|
-
::Hash[Symbol, String]
|
|
3556
|
-
) -> ::Hash[Symbol, String]
|
|
3557
|
-
|
|
3558
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
|
3559
|
-
|
|
3560
|
-
def pricing_group_values=: (
|
|
3561
|
-
::Hash[Symbol, String]
|
|
3562
|
-
) -> ::Hash[Symbol, String]
|
|
3563
|
-
|
|
3564
|
-
attr_reader product_id: String?
|
|
2134
|
+
?unit_price: Float
|
|
2135
|
+
) -> void
|
|
3565
2136
|
|
|
3566
|
-
|
|
2137
|
+
def to_hash: -> {
|
|
2138
|
+
id: String,
|
|
2139
|
+
amount: Float,
|
|
2140
|
+
quantity: Float,
|
|
2141
|
+
timestamp: Time,
|
|
2142
|
+
unit_price: Float
|
|
2143
|
+
}
|
|
2144
|
+
end
|
|
2145
|
+
end
|
|
3567
2146
|
|
|
3568
|
-
|
|
2147
|
+
type rate_type = :COMMIT_RATE | :LIST_RATE
|
|
3569
2148
|
|
|
3570
|
-
|
|
2149
|
+
module RateType
|
|
2150
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
3571
2151
|
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
|
3575
|
-
?product_id: String,
|
|
3576
|
-
?product_tags: ::Array[String]
|
|
3577
|
-
) -> void
|
|
2152
|
+
COMMIT_RATE: :COMMIT_RATE
|
|
2153
|
+
LIST_RATE: :LIST_RATE
|
|
3578
2154
|
|
|
3579
|
-
def
|
|
3580
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
3581
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
3582
|
-
product_id: String,
|
|
3583
|
-
product_tags: ::Array[String]
|
|
3584
|
-
}
|
|
2155
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::rate_type]
|
|
3585
2156
|
end
|
|
3586
2157
|
end
|
|
3587
2158
|
|
|
@@ -3589,10 +2160,11 @@ module MetronomeSDK
|
|
|
3589
2160
|
{
|
|
3590
2161
|
id: String,
|
|
3591
2162
|
access_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::AccessSchedule,
|
|
3592
|
-
hierarchy_configuration: MetronomeSDK::
|
|
2163
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
3593
2164
|
name: String,
|
|
3594
2165
|
netsuite_sales_order_id: String?,
|
|
3595
2166
|
priority: Float?,
|
|
2167
|
+
rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::rate_type,
|
|
3596
2168
|
rollover_fraction: Float?
|
|
3597
2169
|
}
|
|
3598
2170
|
|
|
@@ -3605,11 +2177,11 @@ module MetronomeSDK
|
|
|
3605
2177
|
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::AccessSchedule
|
|
3606
2178
|
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::AccessSchedule
|
|
3607
2179
|
|
|
3608
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
|
2180
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
|
3609
2181
|
|
|
3610
2182
|
def hierarchy_configuration=: (
|
|
3611
|
-
MetronomeSDK::
|
|
3612
|
-
) -> MetronomeSDK::
|
|
2183
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
|
2184
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
|
3613
2185
|
|
|
3614
2186
|
attr_reader name: String?
|
|
3615
2187
|
|
|
@@ -3619,25 +2191,33 @@ module MetronomeSDK
|
|
|
3619
2191
|
|
|
3620
2192
|
attr_accessor priority: Float?
|
|
3621
2193
|
|
|
2194
|
+
attr_reader rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::rate_type?
|
|
2195
|
+
|
|
2196
|
+
def rate_type=: (
|
|
2197
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::rate_type
|
|
2198
|
+
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::rate_type
|
|
2199
|
+
|
|
3622
2200
|
attr_accessor rollover_fraction: Float?
|
|
3623
2201
|
|
|
3624
2202
|
def initialize: (
|
|
3625
2203
|
id: String,
|
|
3626
2204
|
?access_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::AccessSchedule,
|
|
3627
|
-
?hierarchy_configuration: MetronomeSDK::
|
|
2205
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
3628
2206
|
?name: String,
|
|
3629
2207
|
?netsuite_sales_order_id: String?,
|
|
3630
2208
|
?priority: Float?,
|
|
2209
|
+
?rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::rate_type,
|
|
3631
2210
|
?rollover_fraction: Float?
|
|
3632
2211
|
) -> void
|
|
3633
2212
|
|
|
3634
2213
|
def to_hash: -> {
|
|
3635
2214
|
id: String,
|
|
3636
2215
|
access_schedule: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::AccessSchedule,
|
|
3637
|
-
hierarchy_configuration: MetronomeSDK::
|
|
2216
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
3638
2217
|
name: String,
|
|
3639
2218
|
netsuite_sales_order_id: String?,
|
|
3640
2219
|
priority: Float?,
|
|
2220
|
+
rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::rate_type,
|
|
3641
2221
|
rollover_fraction: Float?
|
|
3642
2222
|
}
|
|
3643
2223
|
|
|
@@ -3751,118 +2331,15 @@ module MetronomeSDK
|
|
|
3751
2331
|
end
|
|
3752
2332
|
end
|
|
3753
2333
|
|
|
3754
|
-
type
|
|
3755
|
-
{
|
|
3756
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::child_access
|
|
3757
|
-
}
|
|
3758
|
-
|
|
3759
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
3760
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::child_access
|
|
3761
|
-
|
|
3762
|
-
def initialize: (
|
|
3763
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::child_access
|
|
3764
|
-
) -> void
|
|
3765
|
-
|
|
3766
|
-
def to_hash: -> {
|
|
3767
|
-
child_access: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::child_access
|
|
3768
|
-
}
|
|
3769
|
-
|
|
3770
|
-
type child_access =
|
|
3771
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
|
3772
|
-
| MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
|
3773
|
-
| MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
|
3774
|
-
|
|
3775
|
-
module ChildAccess
|
|
3776
|
-
extend MetronomeSDK::Internal::Type::Union
|
|
3777
|
-
|
|
3778
|
-
type commit_hierarchy_child_access_all =
|
|
3779
|
-
{
|
|
3780
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
3781
|
-
}
|
|
3782
|
-
|
|
3783
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
|
3784
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
3785
|
-
|
|
3786
|
-
def initialize: (
|
|
3787
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
3788
|
-
) -> void
|
|
3789
|
-
|
|
3790
|
-
def to_hash: -> {
|
|
3791
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
3792
|
-
}
|
|
3793
|
-
|
|
3794
|
-
type type_ = :ALL
|
|
3795
|
-
|
|
3796
|
-
module Type
|
|
3797
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
3798
|
-
|
|
3799
|
-
ALL: :ALL
|
|
3800
|
-
|
|
3801
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
|
3802
|
-
end
|
|
3803
|
-
end
|
|
3804
|
-
|
|
3805
|
-
type commit_hierarchy_child_access_none =
|
|
3806
|
-
{
|
|
3807
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
3808
|
-
}
|
|
3809
|
-
|
|
3810
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
|
3811
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
3812
|
-
|
|
3813
|
-
def initialize: (
|
|
3814
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
3815
|
-
) -> void
|
|
3816
|
-
|
|
3817
|
-
def to_hash: -> {
|
|
3818
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
3819
|
-
}
|
|
3820
|
-
|
|
3821
|
-
type type_ = :NONE
|
|
3822
|
-
|
|
3823
|
-
module Type
|
|
3824
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
3825
|
-
|
|
3826
|
-
NONE: :NONE
|
|
3827
|
-
|
|
3828
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
|
3829
|
-
end
|
|
3830
|
-
end
|
|
3831
|
-
|
|
3832
|
-
type commit_hierarchy_child_access_contract_ids =
|
|
3833
|
-
{
|
|
3834
|
-
contract_ids: ::Array[String],
|
|
3835
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
3836
|
-
}
|
|
3837
|
-
|
|
3838
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
|
3839
|
-
attr_accessor contract_ids: ::Array[String]
|
|
3840
|
-
|
|
3841
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
3842
|
-
|
|
3843
|
-
def initialize: (
|
|
3844
|
-
contract_ids: ::Array[String],
|
|
3845
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
3846
|
-
) -> void
|
|
3847
|
-
|
|
3848
|
-
def to_hash: -> {
|
|
3849
|
-
contract_ids: ::Array[String],
|
|
3850
|
-
type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
3851
|
-
}
|
|
2334
|
+
type rate_type = :LIST_RATE | :COMMIT_RATE
|
|
3852
2335
|
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
module Type
|
|
3856
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
3857
|
-
|
|
3858
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
|
2336
|
+
module RateType
|
|
2337
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
3859
2338
|
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
end
|
|
2339
|
+
LIST_RATE: :LIST_RATE
|
|
2340
|
+
COMMIT_RATE: :COMMIT_RATE
|
|
3863
2341
|
|
|
3864
|
-
|
|
3865
|
-
end
|
|
2342
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::rate_type]
|
|
3866
2343
|
end
|
|
3867
2344
|
end
|
|
3868
2345
|
|
|
@@ -4082,7 +2559,7 @@ module MetronomeSDK
|
|
|
4082
2559
|
commit: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::Commit,
|
|
4083
2560
|
custom_credit_type_id: String?,
|
|
4084
2561
|
is_enabled: bool,
|
|
4085
|
-
payment_gate_config: MetronomeSDK::
|
|
2562
|
+
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
4086
2563
|
recharge_to_amount: Float,
|
|
4087
2564
|
threshold_amount: Float
|
|
4088
2565
|
}
|
|
@@ -4100,11 +2577,11 @@ module MetronomeSDK
|
|
|
4100
2577
|
|
|
4101
2578
|
def is_enabled=: (bool) -> bool
|
|
4102
2579
|
|
|
4103
|
-
attr_reader payment_gate_config: MetronomeSDK::
|
|
2580
|
+
attr_reader payment_gate_config: MetronomeSDK::PaymentGateConfigV2?
|
|
4104
2581
|
|
|
4105
2582
|
def payment_gate_config=: (
|
|
4106
|
-
MetronomeSDK::
|
|
4107
|
-
) -> MetronomeSDK::
|
|
2583
|
+
MetronomeSDK::PaymentGateConfigV2
|
|
2584
|
+
) -> MetronomeSDK::PaymentGateConfigV2
|
|
4108
2585
|
|
|
4109
2586
|
attr_reader recharge_to_amount: Float?
|
|
4110
2587
|
|
|
@@ -4118,7 +2595,7 @@ module MetronomeSDK
|
|
|
4118
2595
|
?commit: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::Commit,
|
|
4119
2596
|
?custom_credit_type_id: String?,
|
|
4120
2597
|
?is_enabled: bool,
|
|
4121
|
-
?payment_gate_config: MetronomeSDK::
|
|
2598
|
+
?payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
4122
2599
|
?recharge_to_amount: Float,
|
|
4123
2600
|
?threshold_amount: Float
|
|
4124
2601
|
) -> void
|
|
@@ -4127,7 +2604,7 @@ module MetronomeSDK
|
|
|
4127
2604
|
commit: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::Commit,
|
|
4128
2605
|
custom_credit_type_id: String?,
|
|
4129
2606
|
is_enabled: bool,
|
|
4130
|
-
payment_gate_config: MetronomeSDK::
|
|
2607
|
+
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
4131
2608
|
recharge_to_amount: Float,
|
|
4132
2609
|
threshold_amount: Float
|
|
4133
2610
|
}
|
|
@@ -4136,213 +2613,39 @@ module MetronomeSDK
|
|
|
4136
2613
|
{
|
|
4137
2614
|
applicable_product_ids: ::Array[String]?,
|
|
4138
2615
|
applicable_product_tags: ::Array[String]?,
|
|
4139
|
-
|
|
4140
|
-
name: String,
|
|
4141
|
-
product_id: String,
|
|
4142
|
-
specifiers: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::Commit::Specifier]?
|
|
2616
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
4143
2617
|
}
|
|
4144
2618
|
|
|
4145
|
-
class Commit < MetronomeSDK::
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
attr_accessor applicable_product_tags: ::Array[String]?
|
|
4149
|
-
|
|
4150
|
-
attr_reader description: String?
|
|
4151
|
-
|
|
4152
|
-
def description=: (String) -> String
|
|
2619
|
+
class Commit < MetronomeSDK::Models::UpdateBaseThresholdCommit
|
|
2620
|
+
def applicable_product_ids: -> ::Array[String]?
|
|
4153
2621
|
|
|
4154
|
-
|
|
2622
|
+
def applicable_product_ids=: (
|
|
2623
|
+
::Array[String]? _
|
|
2624
|
+
) -> ::Array[String]?
|
|
4155
2625
|
|
|
4156
|
-
def
|
|
2626
|
+
def applicable_product_tags: -> ::Array[String]?
|
|
4157
2627
|
|
|
4158
|
-
|
|
2628
|
+
def applicable_product_tags=: (
|
|
2629
|
+
::Array[String]? _
|
|
2630
|
+
) -> ::Array[String]?
|
|
4159
2631
|
|
|
4160
|
-
def
|
|
2632
|
+
def specifiers: -> ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
4161
2633
|
|
|
4162
|
-
|
|
2634
|
+
def specifiers=: (
|
|
2635
|
+
::Array[MetronomeSDK::CommitSpecifierInput]? _
|
|
2636
|
+
) -> ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
4163
2637
|
|
|
4164
2638
|
def initialize: (
|
|
4165
2639
|
?applicable_product_ids: ::Array[String]?,
|
|
4166
2640
|
?applicable_product_tags: ::Array[String]?,
|
|
4167
|
-
?
|
|
4168
|
-
?name: String,
|
|
4169
|
-
?product_id: String,
|
|
4170
|
-
?specifiers: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::Commit::Specifier]?
|
|
2641
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
4171
2642
|
) -> void
|
|
4172
2643
|
|
|
4173
2644
|
def to_hash: -> {
|
|
4174
2645
|
applicable_product_ids: ::Array[String]?,
|
|
4175
2646
|
applicable_product_tags: ::Array[String]?,
|
|
4176
|
-
|
|
4177
|
-
name: String,
|
|
4178
|
-
product_id: String,
|
|
4179
|
-
specifiers: ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::Commit::Specifier]?
|
|
4180
|
-
}
|
|
4181
|
-
|
|
4182
|
-
type specifier =
|
|
4183
|
-
{
|
|
4184
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
4185
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
4186
|
-
product_id: String,
|
|
4187
|
-
product_tags: ::Array[String]
|
|
4188
|
-
}
|
|
4189
|
-
|
|
4190
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
|
4191
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
|
4192
|
-
|
|
4193
|
-
def presentation_group_values=: (
|
|
4194
|
-
::Hash[Symbol, String]
|
|
4195
|
-
) -> ::Hash[Symbol, String]
|
|
4196
|
-
|
|
4197
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
|
4198
|
-
|
|
4199
|
-
def pricing_group_values=: (
|
|
4200
|
-
::Hash[Symbol, String]
|
|
4201
|
-
) -> ::Hash[Symbol, String]
|
|
4202
|
-
|
|
4203
|
-
attr_reader product_id: String?
|
|
4204
|
-
|
|
4205
|
-
def product_id=: (String) -> String
|
|
4206
|
-
|
|
4207
|
-
attr_reader product_tags: ::Array[String]?
|
|
4208
|
-
|
|
4209
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
|
4210
|
-
|
|
4211
|
-
def initialize: (
|
|
4212
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
|
4213
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
|
4214
|
-
?product_id: String,
|
|
4215
|
-
?product_tags: ::Array[String]
|
|
4216
|
-
) -> void
|
|
4217
|
-
|
|
4218
|
-
def to_hash: -> {
|
|
4219
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
4220
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
4221
|
-
product_id: String,
|
|
4222
|
-
product_tags: ::Array[String]
|
|
4223
|
-
}
|
|
4224
|
-
end
|
|
4225
|
-
end
|
|
4226
|
-
|
|
4227
|
-
type payment_gate_config =
|
|
4228
|
-
{
|
|
4229
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
4230
|
-
precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
4231
|
-
stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
4232
|
-
tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
4233
|
-
}
|
|
4234
|
-
|
|
4235
|
-
class PaymentGateConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
4236
|
-
attr_accessor payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type
|
|
4237
|
-
|
|
4238
|
-
attr_reader precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig?
|
|
4239
|
-
|
|
4240
|
-
def precalculated_tax_config=: (
|
|
4241
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
4242
|
-
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
4243
|
-
|
|
4244
|
-
attr_reader stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig?
|
|
4245
|
-
|
|
4246
|
-
def stripe_config=: (
|
|
4247
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
4248
|
-
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
4249
|
-
|
|
4250
|
-
attr_reader tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type?
|
|
4251
|
-
|
|
4252
|
-
def tax_type=: (
|
|
4253
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
4254
|
-
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
4255
|
-
|
|
4256
|
-
def initialize: (
|
|
4257
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
4258
|
-
?precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
4259
|
-
?stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
4260
|
-
?tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
4261
|
-
) -> void
|
|
4262
|
-
|
|
4263
|
-
def to_hash: -> {
|
|
4264
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
4265
|
-
precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
4266
|
-
stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
4267
|
-
tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
2647
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
4268
2648
|
}
|
|
4269
|
-
|
|
4270
|
-
type payment_gate_type = :NONE | :STRIPE | :EXTERNAL
|
|
4271
|
-
|
|
4272
|
-
module PaymentGateType
|
|
4273
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
4274
|
-
|
|
4275
|
-
NONE: :NONE
|
|
4276
|
-
STRIPE: :STRIPE
|
|
4277
|
-
EXTERNAL: :EXTERNAL
|
|
4278
|
-
|
|
4279
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type]
|
|
4280
|
-
end
|
|
4281
|
-
|
|
4282
|
-
type precalculated_tax_config =
|
|
4283
|
-
{ tax_amount: Float, tax_name: String }
|
|
4284
|
-
|
|
4285
|
-
class PrecalculatedTaxConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
4286
|
-
attr_accessor tax_amount: Float
|
|
4287
|
-
|
|
4288
|
-
attr_reader tax_name: String?
|
|
4289
|
-
|
|
4290
|
-
def tax_name=: (String) -> String
|
|
4291
|
-
|
|
4292
|
-
def initialize: (tax_amount: Float, ?tax_name: String) -> void
|
|
4293
|
-
|
|
4294
|
-
def to_hash: -> { tax_amount: Float, tax_name: String }
|
|
4295
|
-
end
|
|
4296
|
-
|
|
4297
|
-
type stripe_config =
|
|
4298
|
-
{
|
|
4299
|
-
payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
4300
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
4301
|
-
}
|
|
4302
|
-
|
|
4303
|
-
class StripeConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
4304
|
-
attr_accessor payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type
|
|
4305
|
-
|
|
4306
|
-
attr_reader invoice_metadata: ::Hash[Symbol, String]?
|
|
4307
|
-
|
|
4308
|
-
def invoice_metadata=: (
|
|
4309
|
-
::Hash[Symbol, String]
|
|
4310
|
-
) -> ::Hash[Symbol, String]
|
|
4311
|
-
|
|
4312
|
-
def initialize: (
|
|
4313
|
-
payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
4314
|
-
?invoice_metadata: ::Hash[Symbol, String]
|
|
4315
|
-
) -> void
|
|
4316
|
-
|
|
4317
|
-
def to_hash: -> {
|
|
4318
|
-
payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
4319
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
4320
|
-
}
|
|
4321
|
-
|
|
4322
|
-
type payment_type = :INVOICE | :PAYMENT_INTENT
|
|
4323
|
-
|
|
4324
|
-
module PaymentType
|
|
4325
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
4326
|
-
|
|
4327
|
-
INVOICE: :INVOICE
|
|
4328
|
-
PAYMENT_INTENT: :PAYMENT_INTENT
|
|
4329
|
-
|
|
4330
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type]
|
|
4331
|
-
end
|
|
4332
|
-
end
|
|
4333
|
-
|
|
4334
|
-
type tax_type = :NONE | :STRIPE | :ANROK | :PRECALCULATED
|
|
4335
|
-
|
|
4336
|
-
module TaxType
|
|
4337
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
4338
|
-
|
|
4339
|
-
NONE: :NONE
|
|
4340
|
-
STRIPE: :STRIPE
|
|
4341
|
-
ANROK: :ANROK
|
|
4342
|
-
PRECALCULATED: :PRECALCULATED
|
|
4343
|
-
|
|
4344
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type]
|
|
4345
|
-
end
|
|
4346
2649
|
end
|
|
4347
2650
|
end
|
|
4348
2651
|
|
|
@@ -4351,7 +2654,8 @@ module MetronomeSDK
|
|
|
4351
2654
|
id: String,
|
|
4352
2655
|
access_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::AccessAmount,
|
|
4353
2656
|
ending_before: Time,
|
|
4354
|
-
invoice_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::InvoiceAmount
|
|
2657
|
+
invoice_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::InvoiceAmount,
|
|
2658
|
+
rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::rate_type
|
|
4355
2659
|
}
|
|
4356
2660
|
|
|
4357
2661
|
class UpdateRecurringCommit < MetronomeSDK::Internal::Type::BaseModel
|
|
@@ -4373,18 +2677,26 @@ module MetronomeSDK
|
|
|
4373
2677
|
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::InvoiceAmount
|
|
4374
2678
|
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::InvoiceAmount
|
|
4375
2679
|
|
|
2680
|
+
attr_reader rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::rate_type?
|
|
2681
|
+
|
|
2682
|
+
def rate_type=: (
|
|
2683
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::rate_type
|
|
2684
|
+
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::rate_type
|
|
2685
|
+
|
|
4376
2686
|
def initialize: (
|
|
4377
2687
|
id: String,
|
|
4378
2688
|
?access_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::AccessAmount,
|
|
4379
2689
|
?ending_before: Time,
|
|
4380
|
-
?invoice_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::InvoiceAmount
|
|
2690
|
+
?invoice_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::InvoiceAmount,
|
|
2691
|
+
?rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::rate_type
|
|
4381
2692
|
) -> void
|
|
4382
2693
|
|
|
4383
2694
|
def to_hash: -> {
|
|
4384
2695
|
id: String,
|
|
4385
2696
|
access_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::AccessAmount,
|
|
4386
2697
|
ending_before: Time,
|
|
4387
|
-
invoice_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::InvoiceAmount
|
|
2698
|
+
invoice_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::InvoiceAmount,
|
|
2699
|
+
rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::rate_type
|
|
4388
2700
|
}
|
|
4389
2701
|
|
|
4390
2702
|
type access_amount = { quantity: Float, unit_price: Float }
|
|
@@ -4418,13 +2730,25 @@ module MetronomeSDK
|
|
|
4418
2730
|
|
|
4419
2731
|
def to_hash: -> { quantity: Float, unit_price: Float }
|
|
4420
2732
|
end
|
|
2733
|
+
|
|
2734
|
+
type rate_type = :LIST_RATE | :COMMIT_RATE
|
|
2735
|
+
|
|
2736
|
+
module RateType
|
|
2737
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
2738
|
+
|
|
2739
|
+
LIST_RATE: :LIST_RATE
|
|
2740
|
+
COMMIT_RATE: :COMMIT_RATE
|
|
2741
|
+
|
|
2742
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCommit::rate_type]
|
|
2743
|
+
end
|
|
4421
2744
|
end
|
|
4422
2745
|
|
|
4423
2746
|
type update_recurring_credit =
|
|
4424
2747
|
{
|
|
4425
2748
|
id: String,
|
|
4426
2749
|
access_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCredit::AccessAmount,
|
|
4427
|
-
ending_before: Time
|
|
2750
|
+
ending_before: Time,
|
|
2751
|
+
rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCredit::rate_type
|
|
4428
2752
|
}
|
|
4429
2753
|
|
|
4430
2754
|
class UpdateRecurringCredit < MetronomeSDK::Internal::Type::BaseModel
|
|
@@ -4440,16 +2764,24 @@ module MetronomeSDK
|
|
|
4440
2764
|
|
|
4441
2765
|
def ending_before=: (Time) -> Time
|
|
4442
2766
|
|
|
2767
|
+
attr_reader rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCredit::rate_type?
|
|
2768
|
+
|
|
2769
|
+
def rate_type=: (
|
|
2770
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCredit::rate_type
|
|
2771
|
+
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCredit::rate_type
|
|
2772
|
+
|
|
4443
2773
|
def initialize: (
|
|
4444
2774
|
id: String,
|
|
4445
2775
|
?access_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCredit::AccessAmount,
|
|
4446
|
-
?ending_before: Time
|
|
2776
|
+
?ending_before: Time,
|
|
2777
|
+
?rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCredit::rate_type
|
|
4447
2778
|
) -> void
|
|
4448
2779
|
|
|
4449
2780
|
def to_hash: -> {
|
|
4450
2781
|
id: String,
|
|
4451
2782
|
access_amount: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCredit::AccessAmount,
|
|
4452
|
-
ending_before: Time
|
|
2783
|
+
ending_before: Time,
|
|
2784
|
+
rate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCredit::rate_type
|
|
4453
2785
|
}
|
|
4454
2786
|
|
|
4455
2787
|
type access_amount = { quantity: Float, unit_price: Float }
|
|
@@ -4467,6 +2799,17 @@ module MetronomeSDK
|
|
|
4467
2799
|
|
|
4468
2800
|
def to_hash: -> { quantity: Float, unit_price: Float }
|
|
4469
2801
|
end
|
|
2802
|
+
|
|
2803
|
+
type rate_type = :LIST_RATE | :COMMIT_RATE
|
|
2804
|
+
|
|
2805
|
+
module RateType
|
|
2806
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
2807
|
+
|
|
2808
|
+
LIST_RATE: :LIST_RATE
|
|
2809
|
+
COMMIT_RATE: :COMMIT_RATE
|
|
2810
|
+
|
|
2811
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateRecurringCredit::rate_type]
|
|
2812
|
+
end
|
|
4470
2813
|
end
|
|
4471
2814
|
|
|
4472
2815
|
type update_refund_invoice = { date: Time, invoice_id: String }
|
|
@@ -4653,196 +2996,46 @@ module MetronomeSDK
|
|
|
4653
2996
|
|
|
4654
2997
|
type update_spend_threshold_configuration =
|
|
4655
2998
|
{
|
|
4656
|
-
commit: MetronomeSDK::
|
|
2999
|
+
commit: MetronomeSDK::UpdateBaseThresholdCommit,
|
|
4657
3000
|
is_enabled: bool,
|
|
4658
|
-
payment_gate_config: MetronomeSDK::
|
|
3001
|
+
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
4659
3002
|
threshold_amount: Float
|
|
4660
3003
|
}
|
|
4661
3004
|
|
|
4662
3005
|
class UpdateSpendThresholdConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
4663
|
-
attr_reader commit: MetronomeSDK::
|
|
3006
|
+
attr_reader commit: MetronomeSDK::UpdateBaseThresholdCommit?
|
|
4664
3007
|
|
|
4665
3008
|
def commit=: (
|
|
4666
|
-
MetronomeSDK::
|
|
4667
|
-
) -> MetronomeSDK::
|
|
3009
|
+
MetronomeSDK::UpdateBaseThresholdCommit
|
|
3010
|
+
) -> MetronomeSDK::UpdateBaseThresholdCommit
|
|
4668
3011
|
|
|
4669
3012
|
attr_reader is_enabled: bool?
|
|
4670
3013
|
|
|
4671
3014
|
def is_enabled=: (bool) -> bool
|
|
4672
3015
|
|
|
4673
|
-
attr_reader payment_gate_config: MetronomeSDK::
|
|
3016
|
+
attr_reader payment_gate_config: MetronomeSDK::PaymentGateConfigV2?
|
|
4674
3017
|
|
|
4675
3018
|
def payment_gate_config=: (
|
|
4676
|
-
MetronomeSDK::
|
|
4677
|
-
) -> MetronomeSDK::
|
|
3019
|
+
MetronomeSDK::PaymentGateConfigV2
|
|
3020
|
+
) -> MetronomeSDK::PaymentGateConfigV2
|
|
4678
3021
|
|
|
4679
3022
|
attr_reader threshold_amount: Float?
|
|
4680
3023
|
|
|
4681
3024
|
def threshold_amount=: (Float) -> Float
|
|
4682
3025
|
|
|
4683
3026
|
def initialize: (
|
|
4684
|
-
?commit: MetronomeSDK::
|
|
3027
|
+
?commit: MetronomeSDK::UpdateBaseThresholdCommit,
|
|
4685
3028
|
?is_enabled: bool,
|
|
4686
|
-
?payment_gate_config: MetronomeSDK::
|
|
3029
|
+
?payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
4687
3030
|
?threshold_amount: Float
|
|
4688
3031
|
) -> void
|
|
4689
3032
|
|
|
4690
3033
|
def to_hash: -> {
|
|
4691
|
-
commit: MetronomeSDK::
|
|
3034
|
+
commit: MetronomeSDK::UpdateBaseThresholdCommit,
|
|
4692
3035
|
is_enabled: bool,
|
|
4693
|
-
payment_gate_config: MetronomeSDK::
|
|
3036
|
+
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
4694
3037
|
threshold_amount: Float
|
|
4695
3038
|
}
|
|
4696
|
-
|
|
4697
|
-
type commit =
|
|
4698
|
-
{ description: String, name: String, product_id: String }
|
|
4699
|
-
|
|
4700
|
-
class Commit < MetronomeSDK::Internal::Type::BaseModel
|
|
4701
|
-
attr_reader description: String?
|
|
4702
|
-
|
|
4703
|
-
def description=: (String) -> String
|
|
4704
|
-
|
|
4705
|
-
attr_reader name: String?
|
|
4706
|
-
|
|
4707
|
-
def name=: (String) -> String
|
|
4708
|
-
|
|
4709
|
-
attr_reader product_id: String?
|
|
4710
|
-
|
|
4711
|
-
def product_id=: (String) -> String
|
|
4712
|
-
|
|
4713
|
-
def initialize: (
|
|
4714
|
-
?description: String,
|
|
4715
|
-
?name: String,
|
|
4716
|
-
?product_id: String
|
|
4717
|
-
) -> void
|
|
4718
|
-
|
|
4719
|
-
def to_hash: -> {
|
|
4720
|
-
description: String,
|
|
4721
|
-
name: String,
|
|
4722
|
-
product_id: String
|
|
4723
|
-
}
|
|
4724
|
-
end
|
|
4725
|
-
|
|
4726
|
-
type payment_gate_config =
|
|
4727
|
-
{
|
|
4728
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
4729
|
-
precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
4730
|
-
stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
4731
|
-
tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
4732
|
-
}
|
|
4733
|
-
|
|
4734
|
-
class PaymentGateConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
4735
|
-
attr_accessor payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type
|
|
4736
|
-
|
|
4737
|
-
attr_reader precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig?
|
|
4738
|
-
|
|
4739
|
-
def precalculated_tax_config=: (
|
|
4740
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
4741
|
-
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
4742
|
-
|
|
4743
|
-
attr_reader stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig?
|
|
4744
|
-
|
|
4745
|
-
def stripe_config=: (
|
|
4746
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
4747
|
-
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
4748
|
-
|
|
4749
|
-
attr_reader tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type?
|
|
4750
|
-
|
|
4751
|
-
def tax_type=: (
|
|
4752
|
-
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
4753
|
-
) -> MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
4754
|
-
|
|
4755
|
-
def initialize: (
|
|
4756
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
4757
|
-
?precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
4758
|
-
?stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
4759
|
-
?tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
4760
|
-
) -> void
|
|
4761
|
-
|
|
4762
|
-
def to_hash: -> {
|
|
4763
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
4764
|
-
precalculated_tax_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
4765
|
-
stripe_config: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
4766
|
-
tax_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
4767
|
-
}
|
|
4768
|
-
|
|
4769
|
-
type payment_gate_type = :NONE | :STRIPE | :EXTERNAL
|
|
4770
|
-
|
|
4771
|
-
module PaymentGateType
|
|
4772
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
4773
|
-
|
|
4774
|
-
NONE: :NONE
|
|
4775
|
-
STRIPE: :STRIPE
|
|
4776
|
-
EXTERNAL: :EXTERNAL
|
|
4777
|
-
|
|
4778
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type]
|
|
4779
|
-
end
|
|
4780
|
-
|
|
4781
|
-
type precalculated_tax_config =
|
|
4782
|
-
{ tax_amount: Float, tax_name: String }
|
|
4783
|
-
|
|
4784
|
-
class PrecalculatedTaxConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
4785
|
-
attr_accessor tax_amount: Float
|
|
4786
|
-
|
|
4787
|
-
attr_reader tax_name: String?
|
|
4788
|
-
|
|
4789
|
-
def tax_name=: (String) -> String
|
|
4790
|
-
|
|
4791
|
-
def initialize: (tax_amount: Float, ?tax_name: String) -> void
|
|
4792
|
-
|
|
4793
|
-
def to_hash: -> { tax_amount: Float, tax_name: String }
|
|
4794
|
-
end
|
|
4795
|
-
|
|
4796
|
-
type stripe_config =
|
|
4797
|
-
{
|
|
4798
|
-
payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
4799
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
4800
|
-
}
|
|
4801
|
-
|
|
4802
|
-
class StripeConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
4803
|
-
attr_accessor payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type
|
|
4804
|
-
|
|
4805
|
-
attr_reader invoice_metadata: ::Hash[Symbol, String]?
|
|
4806
|
-
|
|
4807
|
-
def invoice_metadata=: (
|
|
4808
|
-
::Hash[Symbol, String]
|
|
4809
|
-
) -> ::Hash[Symbol, String]
|
|
4810
|
-
|
|
4811
|
-
def initialize: (
|
|
4812
|
-
payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
4813
|
-
?invoice_metadata: ::Hash[Symbol, String]
|
|
4814
|
-
) -> void
|
|
4815
|
-
|
|
4816
|
-
def to_hash: -> {
|
|
4817
|
-
payment_type: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
4818
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
4819
|
-
}
|
|
4820
|
-
|
|
4821
|
-
type payment_type = :INVOICE | :PAYMENT_INTENT
|
|
4822
|
-
|
|
4823
|
-
module PaymentType
|
|
4824
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
4825
|
-
|
|
4826
|
-
INVOICE: :INVOICE
|
|
4827
|
-
PAYMENT_INTENT: :PAYMENT_INTENT
|
|
4828
|
-
|
|
4829
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type]
|
|
4830
|
-
end
|
|
4831
|
-
end
|
|
4832
|
-
|
|
4833
|
-
type tax_type = :NONE | :STRIPE | :ANROK | :PRECALCULATED
|
|
4834
|
-
|
|
4835
|
-
module TaxType
|
|
4836
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
4837
|
-
|
|
4838
|
-
NONE: :NONE
|
|
4839
|
-
STRIPE: :STRIPE
|
|
4840
|
-
ANROK: :ANROK
|
|
4841
|
-
PRECALCULATED: :PRECALCULATED
|
|
4842
|
-
|
|
4843
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type]
|
|
4844
|
-
end
|
|
4845
|
-
end
|
|
4846
3039
|
end
|
|
4847
3040
|
|
|
4848
3041
|
type update_subscription =
|