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
|
@@ -5,23 +5,25 @@ module MetronomeSDK
|
|
|
5
5
|
{
|
|
6
6
|
contract_id: String,
|
|
7
7
|
customer_id: String,
|
|
8
|
+
add_billing_provider_configuration_update: MetronomeSDK::V2::ContractEditParams::AddBillingProviderConfigurationUpdate,
|
|
8
9
|
add_commits: ::Array[MetronomeSDK::V2::ContractEditParams::AddCommit],
|
|
9
10
|
add_credits: ::Array[MetronomeSDK::V2::ContractEditParams::AddCredit],
|
|
10
11
|
add_discounts: ::Array[MetronomeSDK::V2::ContractEditParams::AddDiscount],
|
|
11
12
|
add_overrides: ::Array[MetronomeSDK::V2::ContractEditParams::AddOverride],
|
|
12
|
-
add_prepaid_balance_threshold_configuration: MetronomeSDK::
|
|
13
|
+
add_prepaid_balance_threshold_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2,
|
|
13
14
|
add_professional_services: ::Array[MetronomeSDK::V2::ContractEditParams::AddProfessionalService],
|
|
14
15
|
add_recurring_commits: ::Array[MetronomeSDK::V2::ContractEditParams::AddRecurringCommit],
|
|
15
16
|
add_recurring_credits: ::Array[MetronomeSDK::V2::ContractEditParams::AddRecurringCredit],
|
|
16
17
|
add_reseller_royalties: ::Array[MetronomeSDK::V2::ContractEditParams::AddResellerRoyalty],
|
|
17
18
|
add_scheduled_charges: ::Array[MetronomeSDK::V2::ContractEditParams::AddScheduledCharge],
|
|
18
|
-
add_spend_threshold_configuration: MetronomeSDK::
|
|
19
|
+
add_spend_threshold_configuration: MetronomeSDK::SpendThresholdConfigurationV2,
|
|
19
20
|
add_subscriptions: ::Array[MetronomeSDK::V2::ContractEditParams::AddSubscription],
|
|
20
21
|
allow_contract_ending_before_finalized_invoice: bool,
|
|
21
22
|
archive_commits: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveCommit],
|
|
22
23
|
archive_credits: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveCredit],
|
|
23
24
|
archive_scheduled_charges: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveScheduledCharge],
|
|
24
25
|
remove_overrides: ::Array[MetronomeSDK::V2::ContractEditParams::RemoveOverride],
|
|
26
|
+
uniqueness_key: String,
|
|
25
27
|
update_commits: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit],
|
|
26
28
|
update_contract_end_date: Time?,
|
|
27
29
|
update_contract_name: String?,
|
|
@@ -43,6 +45,12 @@ module MetronomeSDK
|
|
|
43
45
|
|
|
44
46
|
attr_accessor customer_id: String
|
|
45
47
|
|
|
48
|
+
attr_reader add_billing_provider_configuration_update: MetronomeSDK::V2::ContractEditParams::AddBillingProviderConfigurationUpdate?
|
|
49
|
+
|
|
50
|
+
def add_billing_provider_configuration_update=: (
|
|
51
|
+
MetronomeSDK::V2::ContractEditParams::AddBillingProviderConfigurationUpdate
|
|
52
|
+
) -> MetronomeSDK::V2::ContractEditParams::AddBillingProviderConfigurationUpdate
|
|
53
|
+
|
|
46
54
|
attr_reader add_commits: ::Array[MetronomeSDK::V2::ContractEditParams::AddCommit]?
|
|
47
55
|
|
|
48
56
|
def add_commits=: (
|
|
@@ -67,11 +75,11 @@ module MetronomeSDK
|
|
|
67
75
|
::Array[MetronomeSDK::V2::ContractEditParams::AddOverride]
|
|
68
76
|
) -> ::Array[MetronomeSDK::V2::ContractEditParams::AddOverride]
|
|
69
77
|
|
|
70
|
-
attr_reader add_prepaid_balance_threshold_configuration: MetronomeSDK::
|
|
78
|
+
attr_reader add_prepaid_balance_threshold_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2?
|
|
71
79
|
|
|
72
80
|
def add_prepaid_balance_threshold_configuration=: (
|
|
73
|
-
MetronomeSDK::
|
|
74
|
-
) -> MetronomeSDK::
|
|
81
|
+
MetronomeSDK::PrepaidBalanceThresholdConfigurationV2
|
|
82
|
+
) -> MetronomeSDK::PrepaidBalanceThresholdConfigurationV2
|
|
75
83
|
|
|
76
84
|
attr_reader add_professional_services: ::Array[MetronomeSDK::V2::ContractEditParams::AddProfessionalService]?
|
|
77
85
|
|
|
@@ -103,11 +111,11 @@ module MetronomeSDK
|
|
|
103
111
|
::Array[MetronomeSDK::V2::ContractEditParams::AddScheduledCharge]
|
|
104
112
|
) -> ::Array[MetronomeSDK::V2::ContractEditParams::AddScheduledCharge]
|
|
105
113
|
|
|
106
|
-
attr_reader add_spend_threshold_configuration: MetronomeSDK::
|
|
114
|
+
attr_reader add_spend_threshold_configuration: MetronomeSDK::SpendThresholdConfigurationV2?
|
|
107
115
|
|
|
108
116
|
def add_spend_threshold_configuration=: (
|
|
109
|
-
MetronomeSDK::
|
|
110
|
-
) -> MetronomeSDK::
|
|
117
|
+
MetronomeSDK::SpendThresholdConfigurationV2
|
|
118
|
+
) -> MetronomeSDK::SpendThresholdConfigurationV2
|
|
111
119
|
|
|
112
120
|
attr_reader add_subscriptions: ::Array[MetronomeSDK::V2::ContractEditParams::AddSubscription]?
|
|
113
121
|
|
|
@@ -143,6 +151,10 @@ module MetronomeSDK
|
|
|
143
151
|
::Array[MetronomeSDK::V2::ContractEditParams::RemoveOverride]
|
|
144
152
|
) -> ::Array[MetronomeSDK::V2::ContractEditParams::RemoveOverride]
|
|
145
153
|
|
|
154
|
+
attr_reader uniqueness_key: String?
|
|
155
|
+
|
|
156
|
+
def uniqueness_key=: (String) -> String
|
|
157
|
+
|
|
146
158
|
attr_reader update_commits: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit]?
|
|
147
159
|
|
|
148
160
|
def update_commits=: (
|
|
@@ -198,23 +210,25 @@ module MetronomeSDK
|
|
|
198
210
|
def initialize: (
|
|
199
211
|
contract_id: String,
|
|
200
212
|
customer_id: String,
|
|
213
|
+
?add_billing_provider_configuration_update: MetronomeSDK::V2::ContractEditParams::AddBillingProviderConfigurationUpdate,
|
|
201
214
|
?add_commits: ::Array[MetronomeSDK::V2::ContractEditParams::AddCommit],
|
|
202
215
|
?add_credits: ::Array[MetronomeSDK::V2::ContractEditParams::AddCredit],
|
|
203
216
|
?add_discounts: ::Array[MetronomeSDK::V2::ContractEditParams::AddDiscount],
|
|
204
217
|
?add_overrides: ::Array[MetronomeSDK::V2::ContractEditParams::AddOverride],
|
|
205
|
-
?add_prepaid_balance_threshold_configuration: MetronomeSDK::
|
|
218
|
+
?add_prepaid_balance_threshold_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2,
|
|
206
219
|
?add_professional_services: ::Array[MetronomeSDK::V2::ContractEditParams::AddProfessionalService],
|
|
207
220
|
?add_recurring_commits: ::Array[MetronomeSDK::V2::ContractEditParams::AddRecurringCommit],
|
|
208
221
|
?add_recurring_credits: ::Array[MetronomeSDK::V2::ContractEditParams::AddRecurringCredit],
|
|
209
222
|
?add_reseller_royalties: ::Array[MetronomeSDK::V2::ContractEditParams::AddResellerRoyalty],
|
|
210
223
|
?add_scheduled_charges: ::Array[MetronomeSDK::V2::ContractEditParams::AddScheduledCharge],
|
|
211
|
-
?add_spend_threshold_configuration: MetronomeSDK::
|
|
224
|
+
?add_spend_threshold_configuration: MetronomeSDK::SpendThresholdConfigurationV2,
|
|
212
225
|
?add_subscriptions: ::Array[MetronomeSDK::V2::ContractEditParams::AddSubscription],
|
|
213
226
|
?allow_contract_ending_before_finalized_invoice: bool,
|
|
214
227
|
?archive_commits: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveCommit],
|
|
215
228
|
?archive_credits: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveCredit],
|
|
216
229
|
?archive_scheduled_charges: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveScheduledCharge],
|
|
217
230
|
?remove_overrides: ::Array[MetronomeSDK::V2::ContractEditParams::RemoveOverride],
|
|
231
|
+
?uniqueness_key: String,
|
|
218
232
|
?update_commits: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit],
|
|
219
233
|
?update_contract_end_date: Time?,
|
|
220
234
|
?update_contract_name: String?,
|
|
@@ -231,23 +245,25 @@ module MetronomeSDK
|
|
|
231
245
|
def to_hash: -> {
|
|
232
246
|
contract_id: String,
|
|
233
247
|
customer_id: String,
|
|
248
|
+
add_billing_provider_configuration_update: MetronomeSDK::V2::ContractEditParams::AddBillingProviderConfigurationUpdate,
|
|
234
249
|
add_commits: ::Array[MetronomeSDK::V2::ContractEditParams::AddCommit],
|
|
235
250
|
add_credits: ::Array[MetronomeSDK::V2::ContractEditParams::AddCredit],
|
|
236
251
|
add_discounts: ::Array[MetronomeSDK::V2::ContractEditParams::AddDiscount],
|
|
237
252
|
add_overrides: ::Array[MetronomeSDK::V2::ContractEditParams::AddOverride],
|
|
238
|
-
add_prepaid_balance_threshold_configuration: MetronomeSDK::
|
|
253
|
+
add_prepaid_balance_threshold_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2,
|
|
239
254
|
add_professional_services: ::Array[MetronomeSDK::V2::ContractEditParams::AddProfessionalService],
|
|
240
255
|
add_recurring_commits: ::Array[MetronomeSDK::V2::ContractEditParams::AddRecurringCommit],
|
|
241
256
|
add_recurring_credits: ::Array[MetronomeSDK::V2::ContractEditParams::AddRecurringCredit],
|
|
242
257
|
add_reseller_royalties: ::Array[MetronomeSDK::V2::ContractEditParams::AddResellerRoyalty],
|
|
243
258
|
add_scheduled_charges: ::Array[MetronomeSDK::V2::ContractEditParams::AddScheduledCharge],
|
|
244
|
-
add_spend_threshold_configuration: MetronomeSDK::
|
|
259
|
+
add_spend_threshold_configuration: MetronomeSDK::SpendThresholdConfigurationV2,
|
|
245
260
|
add_subscriptions: ::Array[MetronomeSDK::V2::ContractEditParams::AddSubscription],
|
|
246
261
|
allow_contract_ending_before_finalized_invoice: bool,
|
|
247
262
|
archive_commits: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveCommit],
|
|
248
263
|
archive_credits: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveCredit],
|
|
249
264
|
archive_scheduled_charges: ::Array[MetronomeSDK::V2::ContractEditParams::ArchiveScheduledCharge],
|
|
250
265
|
remove_overrides: ::Array[MetronomeSDK::V2::ContractEditParams::RemoveOverride],
|
|
266
|
+
uniqueness_key: String,
|
|
251
267
|
update_commits: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit],
|
|
252
268
|
update_contract_end_date: Time?,
|
|
253
269
|
update_contract_name: String?,
|
|
@@ -261,6 +277,131 @@ module MetronomeSDK
|
|
|
261
277
|
request_options: MetronomeSDK::RequestOptions
|
|
262
278
|
}
|
|
263
279
|
|
|
280
|
+
type add_billing_provider_configuration_update =
|
|
281
|
+
{
|
|
282
|
+
billing_provider_configuration: MetronomeSDK::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration,
|
|
283
|
+
schedule: MetronomeSDK::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::Schedule
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
class AddBillingProviderConfigurationUpdate < MetronomeSDK::Internal::Type::BaseModel
|
|
287
|
+
attr_accessor billing_provider_configuration: MetronomeSDK::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration
|
|
288
|
+
|
|
289
|
+
attr_accessor schedule: MetronomeSDK::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::Schedule
|
|
290
|
+
|
|
291
|
+
def initialize: (
|
|
292
|
+
billing_provider_configuration: MetronomeSDK::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration,
|
|
293
|
+
schedule: MetronomeSDK::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::Schedule
|
|
294
|
+
) -> void
|
|
295
|
+
|
|
296
|
+
def to_hash: -> {
|
|
297
|
+
billing_provider_configuration: MetronomeSDK::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration,
|
|
298
|
+
schedule: MetronomeSDK::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::Schedule
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
type billing_provider_configuration =
|
|
302
|
+
{
|
|
303
|
+
billing_provider: MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration::billing_provider,
|
|
304
|
+
billing_provider_configuration_id: String,
|
|
305
|
+
delivery_method: MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration::delivery_method
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
class BillingProviderConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
309
|
+
attr_reader billing_provider: MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration::billing_provider?
|
|
310
|
+
|
|
311
|
+
def billing_provider=: (
|
|
312
|
+
MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration::billing_provider
|
|
313
|
+
) -> MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration::billing_provider
|
|
314
|
+
|
|
315
|
+
attr_reader billing_provider_configuration_id: String?
|
|
316
|
+
|
|
317
|
+
def billing_provider_configuration_id=: (String) -> String
|
|
318
|
+
|
|
319
|
+
attr_reader delivery_method: MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration::delivery_method?
|
|
320
|
+
|
|
321
|
+
def delivery_method=: (
|
|
322
|
+
MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration::delivery_method
|
|
323
|
+
) -> MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration::delivery_method
|
|
324
|
+
|
|
325
|
+
def initialize: (
|
|
326
|
+
?billing_provider: MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration::billing_provider,
|
|
327
|
+
?billing_provider_configuration_id: String,
|
|
328
|
+
?delivery_method: MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration::delivery_method
|
|
329
|
+
) -> void
|
|
330
|
+
|
|
331
|
+
def to_hash: -> {
|
|
332
|
+
billing_provider: MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration::billing_provider,
|
|
333
|
+
billing_provider_configuration_id: String,
|
|
334
|
+
delivery_method: MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration::delivery_method
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
type billing_provider =
|
|
338
|
+
:aws_marketplace
|
|
339
|
+
| :stripe
|
|
340
|
+
| :netsuite
|
|
341
|
+
| :custom
|
|
342
|
+
| :azure_marketplace
|
|
343
|
+
| :quickbooks_online
|
|
344
|
+
| :workday
|
|
345
|
+
| :gcp_marketplace
|
|
346
|
+
|
|
347
|
+
module BillingProvider
|
|
348
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
349
|
+
|
|
350
|
+
AWS_MARKETPLACE: :aws_marketplace
|
|
351
|
+
STRIPE: :stripe
|
|
352
|
+
NETSUITE: :netsuite
|
|
353
|
+
CUSTOM: :custom
|
|
354
|
+
AZURE_MARKETPLACE: :azure_marketplace
|
|
355
|
+
QUICKBOOKS_ONLINE: :quickbooks_online
|
|
356
|
+
WORKDAY: :workday
|
|
357
|
+
GCP_MARKETPLACE: :gcp_marketplace
|
|
358
|
+
|
|
359
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration::billing_provider]
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
type delivery_method =
|
|
363
|
+
:direct_to_billing_provider | :aws_sqs | :tackle | :aws_sns
|
|
364
|
+
|
|
365
|
+
module DeliveryMethod
|
|
366
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
367
|
+
|
|
368
|
+
DIRECT_TO_BILLING_PROVIDER: :direct_to_billing_provider
|
|
369
|
+
AWS_SQS: :aws_sqs
|
|
370
|
+
TACKLE: :tackle
|
|
371
|
+
AWS_SNS: :aws_sns
|
|
372
|
+
|
|
373
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::BillingProviderConfiguration::delivery_method]
|
|
374
|
+
end
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
type schedule =
|
|
378
|
+
{
|
|
379
|
+
effective_at: MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::Schedule::effective_at
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
class Schedule < MetronomeSDK::Internal::Type::BaseModel
|
|
383
|
+
attr_accessor effective_at: MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::Schedule::effective_at
|
|
384
|
+
|
|
385
|
+
def initialize: (
|
|
386
|
+
effective_at: MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::Schedule::effective_at
|
|
387
|
+
) -> void
|
|
388
|
+
|
|
389
|
+
def to_hash: -> {
|
|
390
|
+
effective_at: MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::Schedule::effective_at
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
type effective_at = :START_OF_CURRENT_PERIOD
|
|
394
|
+
|
|
395
|
+
module EffectiveAt
|
|
396
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
397
|
+
|
|
398
|
+
START_OF_CURRENT_PERIOD: :START_OF_CURRENT_PERIOD
|
|
399
|
+
|
|
400
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddBillingProviderConfigurationUpdate::Schedule::effective_at]
|
|
401
|
+
end
|
|
402
|
+
end
|
|
403
|
+
end
|
|
404
|
+
|
|
264
405
|
type add_commit =
|
|
265
406
|
{
|
|
266
407
|
product_id: String,
|
|
@@ -271,7 +412,7 @@ module MetronomeSDK
|
|
|
271
412
|
applicable_product_tags: ::Array[String],
|
|
272
413
|
custom_fields: ::Hash[Symbol, String],
|
|
273
414
|
description: String,
|
|
274
|
-
hierarchy_configuration: MetronomeSDK::
|
|
415
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
275
416
|
invoice_schedule: MetronomeSDK::V2::ContractEditParams::AddCommit::InvoiceSchedule,
|
|
276
417
|
name: String,
|
|
277
418
|
netsuite_sales_order_id: String,
|
|
@@ -279,7 +420,7 @@ module MetronomeSDK
|
|
|
279
420
|
priority: Float,
|
|
280
421
|
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::rate_type,
|
|
281
422
|
rollover_fraction: Float,
|
|
282
|
-
specifiers: ::Array[MetronomeSDK::
|
|
423
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
|
283
424
|
temporary_id: String
|
|
284
425
|
}
|
|
285
426
|
|
|
@@ -314,11 +455,11 @@ module MetronomeSDK
|
|
|
314
455
|
|
|
315
456
|
def description=: (String) -> String
|
|
316
457
|
|
|
317
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
|
458
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
|
318
459
|
|
|
319
460
|
def hierarchy_configuration=: (
|
|
320
|
-
MetronomeSDK::
|
|
321
|
-
) -> MetronomeSDK::
|
|
461
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
|
462
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
|
322
463
|
|
|
323
464
|
attr_reader invoice_schedule: MetronomeSDK::V2::ContractEditParams::AddCommit::InvoiceSchedule?
|
|
324
465
|
|
|
@@ -354,11 +495,11 @@ module MetronomeSDK
|
|
|
354
495
|
|
|
355
496
|
def rollover_fraction=: (Float) -> Float
|
|
356
497
|
|
|
357
|
-
attr_reader specifiers: ::Array[MetronomeSDK::
|
|
498
|
+
attr_reader specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
358
499
|
|
|
359
500
|
def specifiers=: (
|
|
360
|
-
::Array[MetronomeSDK::
|
|
361
|
-
) -> ::Array[MetronomeSDK::
|
|
501
|
+
::Array[MetronomeSDK::CommitSpecifierInput]
|
|
502
|
+
) -> ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
362
503
|
|
|
363
504
|
attr_reader temporary_id: String?
|
|
364
505
|
|
|
@@ -373,7 +514,7 @@ module MetronomeSDK
|
|
|
373
514
|
?applicable_product_tags: ::Array[String],
|
|
374
515
|
?custom_fields: ::Hash[Symbol, String],
|
|
375
516
|
?description: String,
|
|
376
|
-
?hierarchy_configuration: MetronomeSDK::
|
|
517
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
377
518
|
?invoice_schedule: MetronomeSDK::V2::ContractEditParams::AddCommit::InvoiceSchedule,
|
|
378
519
|
?name: String,
|
|
379
520
|
?netsuite_sales_order_id: String,
|
|
@@ -381,7 +522,7 @@ module MetronomeSDK
|
|
|
381
522
|
?priority: Float,
|
|
382
523
|
?rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::rate_type,
|
|
383
524
|
?rollover_fraction: Float,
|
|
384
|
-
?specifiers: ::Array[MetronomeSDK::
|
|
525
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
|
385
526
|
?temporary_id: String
|
|
386
527
|
) -> void
|
|
387
528
|
|
|
@@ -394,7 +535,7 @@ module MetronomeSDK
|
|
|
394
535
|
applicable_product_tags: ::Array[String],
|
|
395
536
|
custom_fields: ::Hash[Symbol, String],
|
|
396
537
|
description: String,
|
|
397
|
-
hierarchy_configuration: MetronomeSDK::
|
|
538
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
398
539
|
invoice_schedule: MetronomeSDK::V2::ContractEditParams::AddCommit::InvoiceSchedule,
|
|
399
540
|
name: String,
|
|
400
541
|
netsuite_sales_order_id: String,
|
|
@@ -402,7 +543,7 @@ module MetronomeSDK
|
|
|
402
543
|
priority: Float,
|
|
403
544
|
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::rate_type,
|
|
404
545
|
rollover_fraction: Float,
|
|
405
|
-
specifiers: ::Array[MetronomeSDK::
|
|
546
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
|
406
547
|
temporary_id: String
|
|
407
548
|
}
|
|
408
549
|
|
|
@@ -464,120 +605,6 @@ module MetronomeSDK
|
|
|
464
605
|
end
|
|
465
606
|
end
|
|
466
607
|
|
|
467
|
-
type hierarchy_configuration =
|
|
468
|
-
{
|
|
469
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::child_access
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
473
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::child_access
|
|
474
|
-
|
|
475
|
-
def initialize: (
|
|
476
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::child_access
|
|
477
|
-
) -> void
|
|
478
|
-
|
|
479
|
-
def to_hash: -> {
|
|
480
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::child_access
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
type child_access =
|
|
484
|
-
MetronomeSDK::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
|
485
|
-
| MetronomeSDK::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
|
486
|
-
| MetronomeSDK::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
|
487
|
-
|
|
488
|
-
module ChildAccess
|
|
489
|
-
extend MetronomeSDK::Internal::Type::Union
|
|
490
|
-
|
|
491
|
-
type commit_hierarchy_child_access_all =
|
|
492
|
-
{
|
|
493
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
|
497
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
498
|
-
|
|
499
|
-
def initialize: (
|
|
500
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
501
|
-
) -> void
|
|
502
|
-
|
|
503
|
-
def to_hash: -> {
|
|
504
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
type type_ = :ALL
|
|
508
|
-
|
|
509
|
-
module Type
|
|
510
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
511
|
-
|
|
512
|
-
ALL: :ALL
|
|
513
|
-
|
|
514
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
|
515
|
-
end
|
|
516
|
-
end
|
|
517
|
-
|
|
518
|
-
type commit_hierarchy_child_access_none =
|
|
519
|
-
{
|
|
520
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
|
524
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
525
|
-
|
|
526
|
-
def initialize: (
|
|
527
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
528
|
-
) -> void
|
|
529
|
-
|
|
530
|
-
def to_hash: -> {
|
|
531
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
type type_ = :NONE
|
|
535
|
-
|
|
536
|
-
module Type
|
|
537
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
538
|
-
|
|
539
|
-
NONE: :NONE
|
|
540
|
-
|
|
541
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
|
542
|
-
end
|
|
543
|
-
end
|
|
544
|
-
|
|
545
|
-
type commit_hierarchy_child_access_contract_ids =
|
|
546
|
-
{
|
|
547
|
-
contract_ids: ::Array[String],
|
|
548
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
|
552
|
-
attr_accessor contract_ids: ::Array[String]
|
|
553
|
-
|
|
554
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
555
|
-
|
|
556
|
-
def initialize: (
|
|
557
|
-
contract_ids: ::Array[String],
|
|
558
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
559
|
-
) -> void
|
|
560
|
-
|
|
561
|
-
def to_hash: -> {
|
|
562
|
-
contract_ids: ::Array[String],
|
|
563
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
type type_ = :CONTRACT_IDS
|
|
567
|
-
|
|
568
|
-
module Type
|
|
569
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
570
|
-
|
|
571
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
|
572
|
-
|
|
573
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
|
574
|
-
end
|
|
575
|
-
end
|
|
576
|
-
|
|
577
|
-
def self?.variants: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCommit::HierarchyConfiguration::child_access]
|
|
578
|
-
end
|
|
579
|
-
end
|
|
580
|
-
|
|
581
608
|
type invoice_schedule =
|
|
582
609
|
{
|
|
583
610
|
credit_type_id: String,
|
|
@@ -854,7 +881,7 @@ module MetronomeSDK
|
|
|
854
881
|
end
|
|
855
882
|
end
|
|
856
883
|
|
|
857
|
-
type tax_type = :NONE | :STRIPE | :ANROK | :PRECALCULATED
|
|
884
|
+
type tax_type = :NONE | :STRIPE | :ANROK | :AVALARA | :PRECALCULATED
|
|
858
885
|
|
|
859
886
|
module TaxType
|
|
860
887
|
extend MetronomeSDK::Internal::Type::Enum
|
|
@@ -862,6 +889,7 @@ module MetronomeSDK
|
|
|
862
889
|
NONE: :NONE
|
|
863
890
|
STRIPE: :STRIPE
|
|
864
891
|
ANROK: :ANROK
|
|
892
|
+
AVALARA: :AVALARA
|
|
865
893
|
PRECALCULATED: :PRECALCULATED
|
|
866
894
|
|
|
867
895
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCommit::PaymentGateConfig::tax_type]
|
|
@@ -878,50 +906,6 @@ module MetronomeSDK
|
|
|
878
906
|
|
|
879
907
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCommit::rate_type]
|
|
880
908
|
end
|
|
881
|
-
|
|
882
|
-
type specifier =
|
|
883
|
-
{
|
|
884
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
885
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
886
|
-
product_id: String,
|
|
887
|
-
product_tags: ::Array[String]
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
|
891
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
|
892
|
-
|
|
893
|
-
def presentation_group_values=: (
|
|
894
|
-
::Hash[Symbol, String]
|
|
895
|
-
) -> ::Hash[Symbol, String]
|
|
896
|
-
|
|
897
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
|
898
|
-
|
|
899
|
-
def pricing_group_values=: (
|
|
900
|
-
::Hash[Symbol, String]
|
|
901
|
-
) -> ::Hash[Symbol, String]
|
|
902
|
-
|
|
903
|
-
attr_reader product_id: String?
|
|
904
|
-
|
|
905
|
-
def product_id=: (String) -> String
|
|
906
|
-
|
|
907
|
-
attr_reader product_tags: ::Array[String]?
|
|
908
|
-
|
|
909
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
|
910
|
-
|
|
911
|
-
def initialize: (
|
|
912
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
|
913
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
|
914
|
-
?product_id: String,
|
|
915
|
-
?product_tags: ::Array[String]
|
|
916
|
-
) -> void
|
|
917
|
-
|
|
918
|
-
def to_hash: -> {
|
|
919
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
920
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
921
|
-
product_id: String,
|
|
922
|
-
product_tags: ::Array[String]
|
|
923
|
-
}
|
|
924
|
-
end
|
|
925
909
|
end
|
|
926
910
|
|
|
927
911
|
type add_credit =
|
|
@@ -932,12 +916,12 @@ module MetronomeSDK
|
|
|
932
916
|
applicable_product_tags: ::Array[String],
|
|
933
917
|
custom_fields: ::Hash[Symbol, String],
|
|
934
918
|
description: String,
|
|
935
|
-
hierarchy_configuration: MetronomeSDK::
|
|
919
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
936
920
|
name: String,
|
|
937
921
|
netsuite_sales_order_id: String,
|
|
938
922
|
priority: Float,
|
|
939
923
|
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::rate_type,
|
|
940
|
-
specifiers: ::Array[MetronomeSDK::
|
|
924
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
941
925
|
}
|
|
942
926
|
|
|
943
927
|
class AddCredit < MetronomeSDK::Internal::Type::BaseModel
|
|
@@ -961,11 +945,11 @@ module MetronomeSDK
|
|
|
961
945
|
|
|
962
946
|
def description=: (String) -> String
|
|
963
947
|
|
|
964
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
|
948
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
|
965
949
|
|
|
966
950
|
def hierarchy_configuration=: (
|
|
967
|
-
MetronomeSDK::
|
|
968
|
-
) -> MetronomeSDK::
|
|
951
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
|
952
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
|
969
953
|
|
|
970
954
|
attr_reader name: String?
|
|
971
955
|
|
|
@@ -985,11 +969,11 @@ module MetronomeSDK
|
|
|
985
969
|
MetronomeSDK::Models::V2::ContractEditParams::AddCredit::rate_type
|
|
986
970
|
) -> MetronomeSDK::Models::V2::ContractEditParams::AddCredit::rate_type
|
|
987
971
|
|
|
988
|
-
attr_reader specifiers: ::Array[MetronomeSDK::
|
|
972
|
+
attr_reader specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
989
973
|
|
|
990
974
|
def specifiers=: (
|
|
991
|
-
::Array[MetronomeSDK::
|
|
992
|
-
) -> ::Array[MetronomeSDK::
|
|
975
|
+
::Array[MetronomeSDK::CommitSpecifierInput]
|
|
976
|
+
) -> ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
993
977
|
|
|
994
978
|
def initialize: (
|
|
995
979
|
access_schedule: MetronomeSDK::V2::ContractEditParams::AddCredit::AccessSchedule,
|
|
@@ -998,12 +982,12 @@ module MetronomeSDK
|
|
|
998
982
|
?applicable_product_tags: ::Array[String],
|
|
999
983
|
?custom_fields: ::Hash[Symbol, String],
|
|
1000
984
|
?description: String,
|
|
1001
|
-
?hierarchy_configuration: MetronomeSDK::
|
|
985
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
1002
986
|
?name: String,
|
|
1003
987
|
?netsuite_sales_order_id: String,
|
|
1004
988
|
?priority: Float,
|
|
1005
989
|
?rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::rate_type,
|
|
1006
|
-
?specifiers: ::Array[MetronomeSDK::
|
|
990
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
1007
991
|
) -> void
|
|
1008
992
|
|
|
1009
993
|
def to_hash: -> {
|
|
@@ -1013,12 +997,12 @@ module MetronomeSDK
|
|
|
1013
997
|
applicable_product_tags: ::Array[String],
|
|
1014
998
|
custom_fields: ::Hash[Symbol, String],
|
|
1015
999
|
description: String,
|
|
1016
|
-
hierarchy_configuration: MetronomeSDK::
|
|
1000
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
1017
1001
|
name: String,
|
|
1018
1002
|
netsuite_sales_order_id: String,
|
|
1019
1003
|
priority: Float,
|
|
1020
1004
|
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::rate_type,
|
|
1021
|
-
specifiers: ::Array[MetronomeSDK::
|
|
1005
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
1022
1006
|
}
|
|
1023
1007
|
|
|
1024
1008
|
type access_schedule =
|
|
@@ -1068,120 +1052,6 @@ module MetronomeSDK
|
|
|
1068
1052
|
end
|
|
1069
1053
|
end
|
|
1070
1054
|
|
|
1071
|
-
type hierarchy_configuration =
|
|
1072
|
-
{
|
|
1073
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::child_access
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
1077
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::child_access
|
|
1078
|
-
|
|
1079
|
-
def initialize: (
|
|
1080
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::child_access
|
|
1081
|
-
) -> void
|
|
1082
|
-
|
|
1083
|
-
def to_hash: -> {
|
|
1084
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::child_access
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
type child_access =
|
|
1088
|
-
MetronomeSDK::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
|
1089
|
-
| MetronomeSDK::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
|
1090
|
-
| MetronomeSDK::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
|
1091
|
-
|
|
1092
|
-
module ChildAccess
|
|
1093
|
-
extend MetronomeSDK::Internal::Type::Union
|
|
1094
|
-
|
|
1095
|
-
type commit_hierarchy_child_access_all =
|
|
1096
|
-
{
|
|
1097
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
|
1101
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
1102
|
-
|
|
1103
|
-
def initialize: (
|
|
1104
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
1105
|
-
) -> void
|
|
1106
|
-
|
|
1107
|
-
def to_hash: -> {
|
|
1108
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
type type_ = :ALL
|
|
1112
|
-
|
|
1113
|
-
module Type
|
|
1114
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
1115
|
-
|
|
1116
|
-
ALL: :ALL
|
|
1117
|
-
|
|
1118
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
|
1119
|
-
end
|
|
1120
|
-
end
|
|
1121
|
-
|
|
1122
|
-
type commit_hierarchy_child_access_none =
|
|
1123
|
-
{
|
|
1124
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
|
1128
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
1129
|
-
|
|
1130
|
-
def initialize: (
|
|
1131
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
1132
|
-
) -> void
|
|
1133
|
-
|
|
1134
|
-
def to_hash: -> {
|
|
1135
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
type type_ = :NONE
|
|
1139
|
-
|
|
1140
|
-
module Type
|
|
1141
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
1142
|
-
|
|
1143
|
-
NONE: :NONE
|
|
1144
|
-
|
|
1145
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
|
1146
|
-
end
|
|
1147
|
-
end
|
|
1148
|
-
|
|
1149
|
-
type commit_hierarchy_child_access_contract_ids =
|
|
1150
|
-
{
|
|
1151
|
-
contract_ids: ::Array[String],
|
|
1152
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
|
1156
|
-
attr_accessor contract_ids: ::Array[String]
|
|
1157
|
-
|
|
1158
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
1159
|
-
|
|
1160
|
-
def initialize: (
|
|
1161
|
-
contract_ids: ::Array[String],
|
|
1162
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
1163
|
-
) -> void
|
|
1164
|
-
|
|
1165
|
-
def to_hash: -> {
|
|
1166
|
-
contract_ids: ::Array[String],
|
|
1167
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
type type_ = :CONTRACT_IDS
|
|
1171
|
-
|
|
1172
|
-
module Type
|
|
1173
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
1174
|
-
|
|
1175
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
|
1176
|
-
|
|
1177
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
|
1178
|
-
end
|
|
1179
|
-
end
|
|
1180
|
-
|
|
1181
|
-
def self?.variants: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCredit::HierarchyConfiguration::child_access]
|
|
1182
|
-
end
|
|
1183
|
-
end
|
|
1184
|
-
|
|
1185
1055
|
type rate_type = :COMMIT_RATE | :LIST_RATE
|
|
1186
1056
|
|
|
1187
1057
|
module RateType
|
|
@@ -1192,50 +1062,6 @@ module MetronomeSDK
|
|
|
1192
1062
|
|
|
1193
1063
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddCredit::rate_type]
|
|
1194
1064
|
end
|
|
1195
|
-
|
|
1196
|
-
type specifier =
|
|
1197
|
-
{
|
|
1198
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
1199
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
1200
|
-
product_id: String,
|
|
1201
|
-
product_tags: ::Array[String]
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
|
1205
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
|
1206
|
-
|
|
1207
|
-
def presentation_group_values=: (
|
|
1208
|
-
::Hash[Symbol, String]
|
|
1209
|
-
) -> ::Hash[Symbol, String]
|
|
1210
|
-
|
|
1211
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
|
1212
|
-
|
|
1213
|
-
def pricing_group_values=: (
|
|
1214
|
-
::Hash[Symbol, String]
|
|
1215
|
-
) -> ::Hash[Symbol, String]
|
|
1216
|
-
|
|
1217
|
-
attr_reader product_id: String?
|
|
1218
|
-
|
|
1219
|
-
def product_id=: (String) -> String
|
|
1220
|
-
|
|
1221
|
-
attr_reader product_tags: ::Array[String]?
|
|
1222
|
-
|
|
1223
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
|
1224
|
-
|
|
1225
|
-
def initialize: (
|
|
1226
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
|
1227
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
|
1228
|
-
?product_id: String,
|
|
1229
|
-
?product_tags: ::Array[String]
|
|
1230
|
-
) -> void
|
|
1231
|
-
|
|
1232
|
-
def to_hash: -> {
|
|
1233
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
1234
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
1235
|
-
product_id: String,
|
|
1236
|
-
product_tags: ::Array[String]
|
|
1237
|
-
}
|
|
1238
|
-
end
|
|
1239
1065
|
end
|
|
1240
1066
|
|
|
1241
1067
|
type add_discount =
|
|
@@ -1754,298 +1580,35 @@ module MetronomeSDK
|
|
|
1754
1580
|
end
|
|
1755
1581
|
end
|
|
1756
1582
|
|
|
1757
|
-
type
|
|
1583
|
+
type add_professional_service =
|
|
1758
1584
|
{
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1585
|
+
max_amount: Float,
|
|
1586
|
+
product_id: String,
|
|
1587
|
+
quantity: Float,
|
|
1588
|
+
unit_price: Float,
|
|
1589
|
+
custom_fields: ::Hash[Symbol, String],
|
|
1590
|
+
description: String,
|
|
1591
|
+
netsuite_sales_order_id: String
|
|
1765
1592
|
}
|
|
1766
1593
|
|
|
1767
|
-
class
|
|
1768
|
-
attr_accessor
|
|
1594
|
+
class AddProfessionalService < MetronomeSDK::Internal::Type::BaseModel
|
|
1595
|
+
attr_accessor max_amount: Float
|
|
1769
1596
|
|
|
1770
|
-
attr_accessor
|
|
1597
|
+
attr_accessor product_id: String
|
|
1771
1598
|
|
|
1772
|
-
attr_accessor
|
|
1599
|
+
attr_accessor quantity: Float
|
|
1773
1600
|
|
|
1774
|
-
attr_accessor
|
|
1601
|
+
attr_accessor unit_price: Float
|
|
1775
1602
|
|
|
1776
|
-
|
|
1603
|
+
attr_reader custom_fields: ::Hash[Symbol, String]?
|
|
1777
1604
|
|
|
1778
|
-
|
|
1605
|
+
def custom_fields=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
1779
1606
|
|
|
1780
|
-
|
|
1607
|
+
attr_reader description: String?
|
|
1781
1608
|
|
|
1782
|
-
def
|
|
1783
|
-
commit: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::Commit,
|
|
1784
|
-
is_enabled: bool,
|
|
1785
|
-
payment_gate_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig,
|
|
1786
|
-
recharge_to_amount: Float,
|
|
1787
|
-
threshold_amount: Float,
|
|
1788
|
-
?custom_credit_type_id: String
|
|
1789
|
-
) -> void
|
|
1609
|
+
def description=: (String) -> String
|
|
1790
1610
|
|
|
1791
|
-
|
|
1792
|
-
commit: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::Commit,
|
|
1793
|
-
is_enabled: bool,
|
|
1794
|
-
payment_gate_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig,
|
|
1795
|
-
recharge_to_amount: Float,
|
|
1796
|
-
threshold_amount: Float,
|
|
1797
|
-
custom_credit_type_id: String
|
|
1798
|
-
}
|
|
1799
|
-
|
|
1800
|
-
type commit =
|
|
1801
|
-
{
|
|
1802
|
-
product_id: String,
|
|
1803
|
-
applicable_product_ids: ::Array[String],
|
|
1804
|
-
applicable_product_tags: ::Array[String],
|
|
1805
|
-
description: String,
|
|
1806
|
-
name: String,
|
|
1807
|
-
specifiers: ::Array[MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::Commit::Specifier]
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
class Commit < MetronomeSDK::Internal::Type::BaseModel
|
|
1811
|
-
attr_accessor product_id: String
|
|
1812
|
-
|
|
1813
|
-
attr_reader applicable_product_ids: ::Array[String]?
|
|
1814
|
-
|
|
1815
|
-
def applicable_product_ids=: (::Array[String]) -> ::Array[String]
|
|
1816
|
-
|
|
1817
|
-
attr_reader applicable_product_tags: ::Array[String]?
|
|
1818
|
-
|
|
1819
|
-
def applicable_product_tags=: (::Array[String]) -> ::Array[String]
|
|
1820
|
-
|
|
1821
|
-
attr_reader description: String?
|
|
1822
|
-
|
|
1823
|
-
def description=: (String) -> String
|
|
1824
|
-
|
|
1825
|
-
attr_reader name: String?
|
|
1826
|
-
|
|
1827
|
-
def name=: (String) -> String
|
|
1828
|
-
|
|
1829
|
-
attr_reader specifiers: ::Array[MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::Commit::Specifier]?
|
|
1830
|
-
|
|
1831
|
-
def specifiers=: (
|
|
1832
|
-
::Array[MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::Commit::Specifier]
|
|
1833
|
-
) -> ::Array[MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::Commit::Specifier]
|
|
1834
|
-
|
|
1835
|
-
def initialize: (
|
|
1836
|
-
product_id: String,
|
|
1837
|
-
?applicable_product_ids: ::Array[String],
|
|
1838
|
-
?applicable_product_tags: ::Array[String],
|
|
1839
|
-
?description: String,
|
|
1840
|
-
?name: String,
|
|
1841
|
-
?specifiers: ::Array[MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::Commit::Specifier]
|
|
1842
|
-
) -> void
|
|
1843
|
-
|
|
1844
|
-
def to_hash: -> {
|
|
1845
|
-
product_id: String,
|
|
1846
|
-
applicable_product_ids: ::Array[String],
|
|
1847
|
-
applicable_product_tags: ::Array[String],
|
|
1848
|
-
description: String,
|
|
1849
|
-
name: String,
|
|
1850
|
-
specifiers: ::Array[MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::Commit::Specifier]
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
type specifier =
|
|
1854
|
-
{
|
|
1855
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
1856
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
1857
|
-
product_id: String,
|
|
1858
|
-
product_tags: ::Array[String]
|
|
1859
|
-
}
|
|
1860
|
-
|
|
1861
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
|
1862
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
|
1863
|
-
|
|
1864
|
-
def presentation_group_values=: (
|
|
1865
|
-
::Hash[Symbol, String]
|
|
1866
|
-
) -> ::Hash[Symbol, String]
|
|
1867
|
-
|
|
1868
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
|
1869
|
-
|
|
1870
|
-
def pricing_group_values=: (
|
|
1871
|
-
::Hash[Symbol, String]
|
|
1872
|
-
) -> ::Hash[Symbol, String]
|
|
1873
|
-
|
|
1874
|
-
attr_reader product_id: String?
|
|
1875
|
-
|
|
1876
|
-
def product_id=: (String) -> String
|
|
1877
|
-
|
|
1878
|
-
attr_reader product_tags: ::Array[String]?
|
|
1879
|
-
|
|
1880
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
|
1881
|
-
|
|
1882
|
-
def initialize: (
|
|
1883
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
|
1884
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
|
1885
|
-
?product_id: String,
|
|
1886
|
-
?product_tags: ::Array[String]
|
|
1887
|
-
) -> void
|
|
1888
|
-
|
|
1889
|
-
def to_hash: -> {
|
|
1890
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
1891
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
1892
|
-
product_id: String,
|
|
1893
|
-
product_tags: ::Array[String]
|
|
1894
|
-
}
|
|
1895
|
-
end
|
|
1896
|
-
end
|
|
1897
|
-
|
|
1898
|
-
type payment_gate_config =
|
|
1899
|
-
{
|
|
1900
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
1901
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
1902
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
1903
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1906
|
-
class PaymentGateConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
1907
|
-
attr_accessor payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type
|
|
1908
|
-
|
|
1909
|
-
attr_reader precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig?
|
|
1910
|
-
|
|
1911
|
-
def precalculated_tax_config=: (
|
|
1912
|
-
MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
1913
|
-
) -> MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
1914
|
-
|
|
1915
|
-
attr_reader stripe_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig?
|
|
1916
|
-
|
|
1917
|
-
def stripe_config=: (
|
|
1918
|
-
MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
1919
|
-
) -> MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
1920
|
-
|
|
1921
|
-
attr_reader tax_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type?
|
|
1922
|
-
|
|
1923
|
-
def tax_type=: (
|
|
1924
|
-
MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
1925
|
-
) -> MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
1926
|
-
|
|
1927
|
-
def initialize: (
|
|
1928
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
1929
|
-
?precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
1930
|
-
?stripe_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
1931
|
-
?tax_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
1932
|
-
) -> void
|
|
1933
|
-
|
|
1934
|
-
def to_hash: -> {
|
|
1935
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
1936
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
1937
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
1938
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
type payment_gate_type = :NONE | :STRIPE | :EXTERNAL
|
|
1942
|
-
|
|
1943
|
-
module PaymentGateType
|
|
1944
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
1945
|
-
|
|
1946
|
-
NONE: :NONE
|
|
1947
|
-
STRIPE: :STRIPE
|
|
1948
|
-
EXTERNAL: :EXTERNAL
|
|
1949
|
-
|
|
1950
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type]
|
|
1951
|
-
end
|
|
1952
|
-
|
|
1953
|
-
type precalculated_tax_config =
|
|
1954
|
-
{ tax_amount: Float, tax_name: String }
|
|
1955
|
-
|
|
1956
|
-
class PrecalculatedTaxConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
1957
|
-
attr_accessor tax_amount: Float
|
|
1958
|
-
|
|
1959
|
-
attr_reader tax_name: String?
|
|
1960
|
-
|
|
1961
|
-
def tax_name=: (String) -> String
|
|
1962
|
-
|
|
1963
|
-
def initialize: (tax_amount: Float, ?tax_name: String) -> void
|
|
1964
|
-
|
|
1965
|
-
def to_hash: -> { tax_amount: Float, tax_name: String }
|
|
1966
|
-
end
|
|
1967
|
-
|
|
1968
|
-
type stripe_config =
|
|
1969
|
-
{
|
|
1970
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
1971
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
1972
|
-
}
|
|
1973
|
-
|
|
1974
|
-
class StripeConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
1975
|
-
attr_accessor payment_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type
|
|
1976
|
-
|
|
1977
|
-
attr_reader invoice_metadata: ::Hash[Symbol, String]?
|
|
1978
|
-
|
|
1979
|
-
def invoice_metadata=: (
|
|
1980
|
-
::Hash[Symbol, String]
|
|
1981
|
-
) -> ::Hash[Symbol, String]
|
|
1982
|
-
|
|
1983
|
-
def initialize: (
|
|
1984
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
1985
|
-
?invoice_metadata: ::Hash[Symbol, String]
|
|
1986
|
-
) -> void
|
|
1987
|
-
|
|
1988
|
-
def to_hash: -> {
|
|
1989
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
1990
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
1991
|
-
}
|
|
1992
|
-
|
|
1993
|
-
type payment_type = :INVOICE | :PAYMENT_INTENT
|
|
1994
|
-
|
|
1995
|
-
module PaymentType
|
|
1996
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
1997
|
-
|
|
1998
|
-
INVOICE: :INVOICE
|
|
1999
|
-
PAYMENT_INTENT: :PAYMENT_INTENT
|
|
2000
|
-
|
|
2001
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type]
|
|
2002
|
-
end
|
|
2003
|
-
end
|
|
2004
|
-
|
|
2005
|
-
type tax_type = :NONE | :STRIPE | :ANROK | :PRECALCULATED
|
|
2006
|
-
|
|
2007
|
-
module TaxType
|
|
2008
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2009
|
-
|
|
2010
|
-
NONE: :NONE
|
|
2011
|
-
STRIPE: :STRIPE
|
|
2012
|
-
ANROK: :ANROK
|
|
2013
|
-
PRECALCULATED: :PRECALCULATED
|
|
2014
|
-
|
|
2015
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddPrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type]
|
|
2016
|
-
end
|
|
2017
|
-
end
|
|
2018
|
-
end
|
|
2019
|
-
|
|
2020
|
-
type add_professional_service =
|
|
2021
|
-
{
|
|
2022
|
-
max_amount: Float,
|
|
2023
|
-
product_id: String,
|
|
2024
|
-
quantity: Float,
|
|
2025
|
-
unit_price: Float,
|
|
2026
|
-
custom_fields: ::Hash[Symbol, String],
|
|
2027
|
-
description: String,
|
|
2028
|
-
netsuite_sales_order_id: String
|
|
2029
|
-
}
|
|
2030
|
-
|
|
2031
|
-
class AddProfessionalService < MetronomeSDK::Internal::Type::BaseModel
|
|
2032
|
-
attr_accessor max_amount: Float
|
|
2033
|
-
|
|
2034
|
-
attr_accessor product_id: String
|
|
2035
|
-
|
|
2036
|
-
attr_accessor quantity: Float
|
|
2037
|
-
|
|
2038
|
-
attr_accessor unit_price: Float
|
|
2039
|
-
|
|
2040
|
-
attr_reader custom_fields: ::Hash[Symbol, String]?
|
|
2041
|
-
|
|
2042
|
-
def custom_fields=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
2043
|
-
|
|
2044
|
-
attr_reader description: String?
|
|
2045
|
-
|
|
2046
|
-
def description=: (String) -> String
|
|
2047
|
-
|
|
2048
|
-
attr_reader netsuite_sales_order_id: String?
|
|
1611
|
+
attr_reader netsuite_sales_order_id: String?
|
|
2049
1612
|
|
|
2050
1613
|
def netsuite_sales_order_id=: (String) -> String
|
|
2051
1614
|
|
|
@@ -2081,7 +1644,7 @@ module MetronomeSDK
|
|
|
2081
1644
|
applicable_product_tags: ::Array[String],
|
|
2082
1645
|
description: String,
|
|
2083
1646
|
ending_before: Time,
|
|
2084
|
-
hierarchy_configuration: MetronomeSDK::
|
|
1647
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
2085
1648
|
invoice_amount: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::InvoiceAmount,
|
|
2086
1649
|
name: String,
|
|
2087
1650
|
netsuite_sales_order_id: String,
|
|
@@ -2089,7 +1652,7 @@ module MetronomeSDK
|
|
|
2089
1652
|
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::rate_type,
|
|
2090
1653
|
recurrence_frequency: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::recurrence_frequency,
|
|
2091
1654
|
rollover_fraction: Float,
|
|
2092
|
-
specifiers: ::Array[MetronomeSDK::
|
|
1655
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
|
2093
1656
|
subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::SubscriptionConfig,
|
|
2094
1657
|
temporary_id: String
|
|
2095
1658
|
}
|
|
@@ -2121,11 +1684,11 @@ module MetronomeSDK
|
|
|
2121
1684
|
|
|
2122
1685
|
def ending_before=: (Time) -> Time
|
|
2123
1686
|
|
|
2124
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
|
1687
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
|
2125
1688
|
|
|
2126
1689
|
def hierarchy_configuration=: (
|
|
2127
|
-
MetronomeSDK::
|
|
2128
|
-
) -> MetronomeSDK::
|
|
1690
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
|
1691
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
|
2129
1692
|
|
|
2130
1693
|
attr_reader invoice_amount: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::InvoiceAmount?
|
|
2131
1694
|
|
|
@@ -2163,11 +1726,11 @@ module MetronomeSDK
|
|
|
2163
1726
|
|
|
2164
1727
|
def rollover_fraction=: (Float) -> Float
|
|
2165
1728
|
|
|
2166
|
-
attr_reader specifiers: ::Array[MetronomeSDK::
|
|
1729
|
+
attr_reader specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
2167
1730
|
|
|
2168
1731
|
def specifiers=: (
|
|
2169
|
-
::Array[MetronomeSDK::
|
|
2170
|
-
) -> ::Array[MetronomeSDK::
|
|
1732
|
+
::Array[MetronomeSDK::CommitSpecifierInput]
|
|
1733
|
+
) -> ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
2171
1734
|
|
|
2172
1735
|
attr_reader subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::SubscriptionConfig?
|
|
2173
1736
|
|
|
@@ -2189,7 +1752,7 @@ module MetronomeSDK
|
|
|
2189
1752
|
?applicable_product_tags: ::Array[String],
|
|
2190
1753
|
?description: String,
|
|
2191
1754
|
?ending_before: Time,
|
|
2192
|
-
?hierarchy_configuration: MetronomeSDK::
|
|
1755
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
2193
1756
|
?invoice_amount: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::InvoiceAmount,
|
|
2194
1757
|
?name: String,
|
|
2195
1758
|
?netsuite_sales_order_id: String,
|
|
@@ -2197,7 +1760,7 @@ module MetronomeSDK
|
|
|
2197
1760
|
?rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::rate_type,
|
|
2198
1761
|
?recurrence_frequency: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::recurrence_frequency,
|
|
2199
1762
|
?rollover_fraction: Float,
|
|
2200
|
-
?specifiers: ::Array[MetronomeSDK::
|
|
1763
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
|
2201
1764
|
?subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::SubscriptionConfig,
|
|
2202
1765
|
?temporary_id: String
|
|
2203
1766
|
) -> void
|
|
@@ -2212,7 +1775,7 @@ module MetronomeSDK
|
|
|
2212
1775
|
applicable_product_tags: ::Array[String],
|
|
2213
1776
|
description: String,
|
|
2214
1777
|
ending_before: Time,
|
|
2215
|
-
hierarchy_configuration: MetronomeSDK::
|
|
1778
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
2216
1779
|
invoice_amount: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::InvoiceAmount,
|
|
2217
1780
|
name: String,
|
|
2218
1781
|
netsuite_sales_order_id: String,
|
|
@@ -2220,7 +1783,7 @@ module MetronomeSDK
|
|
|
2220
1783
|
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::rate_type,
|
|
2221
1784
|
recurrence_frequency: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::recurrence_frequency,
|
|
2222
1785
|
rollover_fraction: Float,
|
|
2223
|
-
specifiers: ::Array[MetronomeSDK::
|
|
1786
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
|
2224
1787
|
subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::SubscriptionConfig,
|
|
2225
1788
|
temporary_id: String
|
|
2226
1789
|
}
|
|
@@ -2286,120 +1849,6 @@ module MetronomeSDK
|
|
|
2286
1849
|
end
|
|
2287
1850
|
end
|
|
2288
1851
|
|
|
2289
|
-
type hierarchy_configuration =
|
|
2290
|
-
{
|
|
2291
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::child_access
|
|
2292
|
-
}
|
|
2293
|
-
|
|
2294
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
2295
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::child_access
|
|
2296
|
-
|
|
2297
|
-
def initialize: (
|
|
2298
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::child_access
|
|
2299
|
-
) -> void
|
|
2300
|
-
|
|
2301
|
-
def to_hash: -> {
|
|
2302
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::child_access
|
|
2303
|
-
}
|
|
2304
|
-
|
|
2305
|
-
type child_access =
|
|
2306
|
-
MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
|
2307
|
-
| MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
|
2308
|
-
| MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
|
2309
|
-
|
|
2310
|
-
module ChildAccess
|
|
2311
|
-
extend MetronomeSDK::Internal::Type::Union
|
|
2312
|
-
|
|
2313
|
-
type commit_hierarchy_child_access_all =
|
|
2314
|
-
{
|
|
2315
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
2316
|
-
}
|
|
2317
|
-
|
|
2318
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
|
2319
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
2320
|
-
|
|
2321
|
-
def initialize: (
|
|
2322
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
2323
|
-
) -> void
|
|
2324
|
-
|
|
2325
|
-
def to_hash: -> {
|
|
2326
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
2327
|
-
}
|
|
2328
|
-
|
|
2329
|
-
type type_ = :ALL
|
|
2330
|
-
|
|
2331
|
-
module Type
|
|
2332
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2333
|
-
|
|
2334
|
-
ALL: :ALL
|
|
2335
|
-
|
|
2336
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
|
2337
|
-
end
|
|
2338
|
-
end
|
|
2339
|
-
|
|
2340
|
-
type commit_hierarchy_child_access_none =
|
|
2341
|
-
{
|
|
2342
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
2343
|
-
}
|
|
2344
|
-
|
|
2345
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
|
2346
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
2347
|
-
|
|
2348
|
-
def initialize: (
|
|
2349
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
2350
|
-
) -> void
|
|
2351
|
-
|
|
2352
|
-
def to_hash: -> {
|
|
2353
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
2354
|
-
}
|
|
2355
|
-
|
|
2356
|
-
type type_ = :NONE
|
|
2357
|
-
|
|
2358
|
-
module Type
|
|
2359
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2360
|
-
|
|
2361
|
-
NONE: :NONE
|
|
2362
|
-
|
|
2363
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
|
2364
|
-
end
|
|
2365
|
-
end
|
|
2366
|
-
|
|
2367
|
-
type commit_hierarchy_child_access_contract_ids =
|
|
2368
|
-
{
|
|
2369
|
-
contract_ids: ::Array[String],
|
|
2370
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
2371
|
-
}
|
|
2372
|
-
|
|
2373
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
|
2374
|
-
attr_accessor contract_ids: ::Array[String]
|
|
2375
|
-
|
|
2376
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
2377
|
-
|
|
2378
|
-
def initialize: (
|
|
2379
|
-
contract_ids: ::Array[String],
|
|
2380
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
2381
|
-
) -> void
|
|
2382
|
-
|
|
2383
|
-
def to_hash: -> {
|
|
2384
|
-
contract_ids: ::Array[String],
|
|
2385
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
2386
|
-
}
|
|
2387
|
-
|
|
2388
|
-
type type_ = :CONTRACT_IDS
|
|
2389
|
-
|
|
2390
|
-
module Type
|
|
2391
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2392
|
-
|
|
2393
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
|
2394
|
-
|
|
2395
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
|
2396
|
-
end
|
|
2397
|
-
end
|
|
2398
|
-
|
|
2399
|
-
def self?.variants: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::HierarchyConfiguration::child_access]
|
|
2400
|
-
end
|
|
2401
|
-
end
|
|
2402
|
-
|
|
2403
1852
|
type invoice_amount =
|
|
2404
1853
|
{ credit_type_id: String, quantity: Float, unit_price: Float }
|
|
2405
1854
|
|
|
@@ -2460,50 +1909,6 @@ module MetronomeSDK
|
|
|
2460
1909
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::recurrence_frequency]
|
|
2461
1910
|
end
|
|
2462
1911
|
|
|
2463
|
-
type specifier =
|
|
2464
|
-
{
|
|
2465
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
2466
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
2467
|
-
product_id: String,
|
|
2468
|
-
product_tags: ::Array[String]
|
|
2469
|
-
}
|
|
2470
|
-
|
|
2471
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
|
2472
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
|
2473
|
-
|
|
2474
|
-
def presentation_group_values=: (
|
|
2475
|
-
::Hash[Symbol, String]
|
|
2476
|
-
) -> ::Hash[Symbol, String]
|
|
2477
|
-
|
|
2478
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
|
2479
|
-
|
|
2480
|
-
def pricing_group_values=: (
|
|
2481
|
-
::Hash[Symbol, String]
|
|
2482
|
-
) -> ::Hash[Symbol, String]
|
|
2483
|
-
|
|
2484
|
-
attr_reader product_id: String?
|
|
2485
|
-
|
|
2486
|
-
def product_id=: (String) -> String
|
|
2487
|
-
|
|
2488
|
-
attr_reader product_tags: ::Array[String]?
|
|
2489
|
-
|
|
2490
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
|
2491
|
-
|
|
2492
|
-
def initialize: (
|
|
2493
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
|
2494
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
|
2495
|
-
?product_id: String,
|
|
2496
|
-
?product_tags: ::Array[String]
|
|
2497
|
-
) -> void
|
|
2498
|
-
|
|
2499
|
-
def to_hash: -> {
|
|
2500
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
2501
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
2502
|
-
product_id: String,
|
|
2503
|
-
product_tags: ::Array[String]
|
|
2504
|
-
}
|
|
2505
|
-
end
|
|
2506
|
-
|
|
2507
1912
|
type subscription_config =
|
|
2508
1913
|
{
|
|
2509
1914
|
apply_seat_increase_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCommit::SubscriptionConfig::ApplySeatIncreaseConfig,
|
|
@@ -2544,12 +1949,13 @@ module MetronomeSDK
|
|
|
2544
1949
|
def to_hash: -> { is_prorated: bool }
|
|
2545
1950
|
end
|
|
2546
1951
|
|
|
2547
|
-
type allocation = :POOLED
|
|
1952
|
+
type allocation = :POOLED | :INDIVIDUAL
|
|
2548
1953
|
|
|
2549
1954
|
module Allocation
|
|
2550
1955
|
extend MetronomeSDK::Internal::Type::Enum
|
|
2551
1956
|
|
|
2552
1957
|
POOLED: :POOLED
|
|
1958
|
+
INDIVIDUAL: :INDIVIDUAL
|
|
2553
1959
|
|
|
2554
1960
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCommit::SubscriptionConfig::allocation]
|
|
2555
1961
|
end
|
|
@@ -2567,14 +1973,14 @@ module MetronomeSDK
|
|
|
2567
1973
|
applicable_product_tags: ::Array[String],
|
|
2568
1974
|
description: String,
|
|
2569
1975
|
ending_before: Time,
|
|
2570
|
-
hierarchy_configuration: MetronomeSDK::
|
|
1976
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
2571
1977
|
name: String,
|
|
2572
1978
|
netsuite_sales_order_id: String,
|
|
2573
1979
|
proration: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::proration,
|
|
2574
1980
|
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::rate_type,
|
|
2575
1981
|
recurrence_frequency: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::recurrence_frequency,
|
|
2576
1982
|
rollover_fraction: Float,
|
|
2577
|
-
specifiers: ::Array[MetronomeSDK::
|
|
1983
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
|
2578
1984
|
subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::SubscriptionConfig,
|
|
2579
1985
|
temporary_id: String
|
|
2580
1986
|
}
|
|
@@ -2606,11 +2012,11 @@ module MetronomeSDK
|
|
|
2606
2012
|
|
|
2607
2013
|
def ending_before=: (Time) -> Time
|
|
2608
2014
|
|
|
2609
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
|
2015
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
|
2610
2016
|
|
|
2611
2017
|
def hierarchy_configuration=: (
|
|
2612
|
-
MetronomeSDK::
|
|
2613
|
-
) -> MetronomeSDK::
|
|
2018
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
|
2019
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
|
2614
2020
|
|
|
2615
2021
|
attr_reader name: String?
|
|
2616
2022
|
|
|
@@ -2642,11 +2048,11 @@ module MetronomeSDK
|
|
|
2642
2048
|
|
|
2643
2049
|
def rollover_fraction=: (Float) -> Float
|
|
2644
2050
|
|
|
2645
|
-
attr_reader specifiers: ::Array[MetronomeSDK::
|
|
2051
|
+
attr_reader specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
2646
2052
|
|
|
2647
2053
|
def specifiers=: (
|
|
2648
|
-
::Array[MetronomeSDK::
|
|
2649
|
-
) -> ::Array[MetronomeSDK::
|
|
2054
|
+
::Array[MetronomeSDK::CommitSpecifierInput]
|
|
2055
|
+
) -> ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
2650
2056
|
|
|
2651
2057
|
attr_reader subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::SubscriptionConfig?
|
|
2652
2058
|
|
|
@@ -2668,14 +2074,14 @@ module MetronomeSDK
|
|
|
2668
2074
|
?applicable_product_tags: ::Array[String],
|
|
2669
2075
|
?description: String,
|
|
2670
2076
|
?ending_before: Time,
|
|
2671
|
-
?hierarchy_configuration: MetronomeSDK::
|
|
2077
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
2672
2078
|
?name: String,
|
|
2673
2079
|
?netsuite_sales_order_id: String,
|
|
2674
2080
|
?proration: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::proration,
|
|
2675
2081
|
?rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::rate_type,
|
|
2676
2082
|
?recurrence_frequency: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::recurrence_frequency,
|
|
2677
2083
|
?rollover_fraction: Float,
|
|
2678
|
-
?specifiers: ::Array[MetronomeSDK::
|
|
2084
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
|
2679
2085
|
?subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::SubscriptionConfig,
|
|
2680
2086
|
?temporary_id: String
|
|
2681
2087
|
) -> void
|
|
@@ -2690,14 +2096,14 @@ module MetronomeSDK
|
|
|
2690
2096
|
applicable_product_tags: ::Array[String],
|
|
2691
2097
|
description: String,
|
|
2692
2098
|
ending_before: Time,
|
|
2693
|
-
hierarchy_configuration: MetronomeSDK::
|
|
2099
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
2694
2100
|
name: String,
|
|
2695
2101
|
netsuite_sales_order_id: String,
|
|
2696
2102
|
proration: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::proration,
|
|
2697
2103
|
rate_type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::rate_type,
|
|
2698
2104
|
recurrence_frequency: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::recurrence_frequency,
|
|
2699
2105
|
rollover_fraction: Float,
|
|
2700
|
-
specifiers: ::Array[MetronomeSDK::
|
|
2106
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput],
|
|
2701
2107
|
subscription_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::SubscriptionConfig,
|
|
2702
2108
|
temporary_id: String
|
|
2703
2109
|
}
|
|
@@ -2763,124 +2169,10 @@ module MetronomeSDK
|
|
|
2763
2169
|
end
|
|
2764
2170
|
end
|
|
2765
2171
|
|
|
2766
|
-
type
|
|
2767
|
-
{
|
|
2768
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::child_access
|
|
2769
|
-
}
|
|
2770
|
-
|
|
2771
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
2772
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::child_access
|
|
2172
|
+
type proration = :NONE | :FIRST | :LAST | :FIRST_AND_LAST
|
|
2773
2173
|
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
) -> void
|
|
2777
|
-
|
|
2778
|
-
def to_hash: -> {
|
|
2779
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::child_access
|
|
2780
|
-
}
|
|
2781
|
-
|
|
2782
|
-
type child_access =
|
|
2783
|
-
MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
|
2784
|
-
| MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
|
2785
|
-
| MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
|
2786
|
-
|
|
2787
|
-
module ChildAccess
|
|
2788
|
-
extend MetronomeSDK::Internal::Type::Union
|
|
2789
|
-
|
|
2790
|
-
type commit_hierarchy_child_access_all =
|
|
2791
|
-
{
|
|
2792
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
2793
|
-
}
|
|
2794
|
-
|
|
2795
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
|
2796
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
2797
|
-
|
|
2798
|
-
def initialize: (
|
|
2799
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
2800
|
-
) -> void
|
|
2801
|
-
|
|
2802
|
-
def to_hash: -> {
|
|
2803
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
2804
|
-
}
|
|
2805
|
-
|
|
2806
|
-
type type_ = :ALL
|
|
2807
|
-
|
|
2808
|
-
module Type
|
|
2809
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2810
|
-
|
|
2811
|
-
ALL: :ALL
|
|
2812
|
-
|
|
2813
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
|
2814
|
-
end
|
|
2815
|
-
end
|
|
2816
|
-
|
|
2817
|
-
type commit_hierarchy_child_access_none =
|
|
2818
|
-
{
|
|
2819
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
2820
|
-
}
|
|
2821
|
-
|
|
2822
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
|
2823
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
2824
|
-
|
|
2825
|
-
def initialize: (
|
|
2826
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
2827
|
-
) -> void
|
|
2828
|
-
|
|
2829
|
-
def to_hash: -> {
|
|
2830
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
2831
|
-
}
|
|
2832
|
-
|
|
2833
|
-
type type_ = :NONE
|
|
2834
|
-
|
|
2835
|
-
module Type
|
|
2836
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2837
|
-
|
|
2838
|
-
NONE: :NONE
|
|
2839
|
-
|
|
2840
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
|
2841
|
-
end
|
|
2842
|
-
end
|
|
2843
|
-
|
|
2844
|
-
type commit_hierarchy_child_access_contract_ids =
|
|
2845
|
-
{
|
|
2846
|
-
contract_ids: ::Array[String],
|
|
2847
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
2848
|
-
}
|
|
2849
|
-
|
|
2850
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
|
2851
|
-
attr_accessor contract_ids: ::Array[String]
|
|
2852
|
-
|
|
2853
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
2854
|
-
|
|
2855
|
-
def initialize: (
|
|
2856
|
-
contract_ids: ::Array[String],
|
|
2857
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
2858
|
-
) -> void
|
|
2859
|
-
|
|
2860
|
-
def to_hash: -> {
|
|
2861
|
-
contract_ids: ::Array[String],
|
|
2862
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
2863
|
-
}
|
|
2864
|
-
|
|
2865
|
-
type type_ = :CONTRACT_IDS
|
|
2866
|
-
|
|
2867
|
-
module Type
|
|
2868
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2869
|
-
|
|
2870
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
|
2871
|
-
|
|
2872
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
|
2873
|
-
end
|
|
2874
|
-
end
|
|
2875
|
-
|
|
2876
|
-
def self?.variants: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::HierarchyConfiguration::child_access]
|
|
2877
|
-
end
|
|
2878
|
-
end
|
|
2879
|
-
|
|
2880
|
-
type proration = :NONE | :FIRST | :LAST | :FIRST_AND_LAST
|
|
2881
|
-
|
|
2882
|
-
module Proration
|
|
2883
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
2174
|
+
module Proration
|
|
2175
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
2884
2176
|
|
|
2885
2177
|
NONE: :NONE
|
|
2886
2178
|
FIRST: :FIRST
|
|
@@ -2914,50 +2206,6 @@ module MetronomeSDK
|
|
|
2914
2206
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::recurrence_frequency]
|
|
2915
2207
|
end
|
|
2916
2208
|
|
|
2917
|
-
type specifier =
|
|
2918
|
-
{
|
|
2919
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
2920
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
2921
|
-
product_id: String,
|
|
2922
|
-
product_tags: ::Array[String]
|
|
2923
|
-
}
|
|
2924
|
-
|
|
2925
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
|
2926
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
|
2927
|
-
|
|
2928
|
-
def presentation_group_values=: (
|
|
2929
|
-
::Hash[Symbol, String]
|
|
2930
|
-
) -> ::Hash[Symbol, String]
|
|
2931
|
-
|
|
2932
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
|
2933
|
-
|
|
2934
|
-
def pricing_group_values=: (
|
|
2935
|
-
::Hash[Symbol, String]
|
|
2936
|
-
) -> ::Hash[Symbol, String]
|
|
2937
|
-
|
|
2938
|
-
attr_reader product_id: String?
|
|
2939
|
-
|
|
2940
|
-
def product_id=: (String) -> String
|
|
2941
|
-
|
|
2942
|
-
attr_reader product_tags: ::Array[String]?
|
|
2943
|
-
|
|
2944
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
|
2945
|
-
|
|
2946
|
-
def initialize: (
|
|
2947
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
|
2948
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
|
2949
|
-
?product_id: String,
|
|
2950
|
-
?product_tags: ::Array[String]
|
|
2951
|
-
) -> void
|
|
2952
|
-
|
|
2953
|
-
def to_hash: -> {
|
|
2954
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
2955
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
2956
|
-
product_id: String,
|
|
2957
|
-
product_tags: ::Array[String]
|
|
2958
|
-
}
|
|
2959
|
-
end
|
|
2960
|
-
|
|
2961
2209
|
type subscription_config =
|
|
2962
2210
|
{
|
|
2963
2211
|
apply_seat_increase_config: MetronomeSDK::V2::ContractEditParams::AddRecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig,
|
|
@@ -2998,12 +2246,13 @@ module MetronomeSDK
|
|
|
2998
2246
|
def to_hash: -> { is_prorated: bool }
|
|
2999
2247
|
end
|
|
3000
2248
|
|
|
3001
|
-
type allocation = :POOLED
|
|
2249
|
+
type allocation = :POOLED | :INDIVIDUAL
|
|
3002
2250
|
|
|
3003
2251
|
module Allocation
|
|
3004
2252
|
extend MetronomeSDK::Internal::Type::Enum
|
|
3005
2253
|
|
|
3006
2254
|
POOLED: :POOLED
|
|
2255
|
+
INDIVIDUAL: :INDIVIDUAL
|
|
3007
2256
|
|
|
3008
2257
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddRecurringCredit::SubscriptionConfig::allocation]
|
|
3009
2258
|
end
|
|
@@ -3362,196 +2611,17 @@ module MetronomeSDK
|
|
|
3362
2611
|
end
|
|
3363
2612
|
end
|
|
3364
2613
|
|
|
3365
|
-
type add_spend_threshold_configuration =
|
|
3366
|
-
{
|
|
3367
|
-
commit: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::Commit,
|
|
3368
|
-
is_enabled: bool,
|
|
3369
|
-
payment_gate_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig,
|
|
3370
|
-
threshold_amount: Float
|
|
3371
|
-
}
|
|
3372
|
-
|
|
3373
|
-
class AddSpendThresholdConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
3374
|
-
attr_accessor commit: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::Commit
|
|
3375
|
-
|
|
3376
|
-
attr_accessor is_enabled: bool
|
|
3377
|
-
|
|
3378
|
-
attr_accessor payment_gate_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig
|
|
3379
|
-
|
|
3380
|
-
attr_accessor threshold_amount: Float
|
|
3381
|
-
|
|
3382
|
-
def initialize: (
|
|
3383
|
-
commit: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::Commit,
|
|
3384
|
-
is_enabled: bool,
|
|
3385
|
-
payment_gate_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig,
|
|
3386
|
-
threshold_amount: Float
|
|
3387
|
-
) -> void
|
|
3388
|
-
|
|
3389
|
-
def to_hash: -> {
|
|
3390
|
-
commit: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::Commit,
|
|
3391
|
-
is_enabled: bool,
|
|
3392
|
-
payment_gate_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig,
|
|
3393
|
-
threshold_amount: Float
|
|
3394
|
-
}
|
|
3395
|
-
|
|
3396
|
-
type commit =
|
|
3397
|
-
{ product_id: String, description: String, name: String }
|
|
3398
|
-
|
|
3399
|
-
class Commit < MetronomeSDK::Internal::Type::BaseModel
|
|
3400
|
-
attr_accessor product_id: String
|
|
3401
|
-
|
|
3402
|
-
attr_reader description: String?
|
|
3403
|
-
|
|
3404
|
-
def description=: (String) -> String
|
|
3405
|
-
|
|
3406
|
-
attr_reader name: String?
|
|
3407
|
-
|
|
3408
|
-
def name=: (String) -> String
|
|
3409
|
-
|
|
3410
|
-
def initialize: (
|
|
3411
|
-
product_id: String,
|
|
3412
|
-
?description: String,
|
|
3413
|
-
?name: String
|
|
3414
|
-
) -> void
|
|
3415
|
-
|
|
3416
|
-
def to_hash: -> {
|
|
3417
|
-
product_id: String,
|
|
3418
|
-
description: String,
|
|
3419
|
-
name: String
|
|
3420
|
-
}
|
|
3421
|
-
end
|
|
3422
|
-
|
|
3423
|
-
type payment_gate_config =
|
|
3424
|
-
{
|
|
3425
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
3426
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
3427
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
3428
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
3429
|
-
}
|
|
3430
|
-
|
|
3431
|
-
class PaymentGateConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
3432
|
-
attr_accessor payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type
|
|
3433
|
-
|
|
3434
|
-
attr_reader precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig?
|
|
3435
|
-
|
|
3436
|
-
def precalculated_tax_config=: (
|
|
3437
|
-
MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
3438
|
-
) -> MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
3439
|
-
|
|
3440
|
-
attr_reader stripe_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig?
|
|
3441
|
-
|
|
3442
|
-
def stripe_config=: (
|
|
3443
|
-
MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
3444
|
-
) -> MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
3445
|
-
|
|
3446
|
-
attr_reader tax_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type?
|
|
3447
|
-
|
|
3448
|
-
def tax_type=: (
|
|
3449
|
-
MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
3450
|
-
) -> MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
3451
|
-
|
|
3452
|
-
def initialize: (
|
|
3453
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
3454
|
-
?precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
3455
|
-
?stripe_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
3456
|
-
?tax_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
3457
|
-
) -> void
|
|
3458
|
-
|
|
3459
|
-
def to_hash: -> {
|
|
3460
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
3461
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
3462
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
3463
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
3464
|
-
}
|
|
3465
|
-
|
|
3466
|
-
type payment_gate_type = :NONE | :STRIPE | :EXTERNAL
|
|
3467
|
-
|
|
3468
|
-
module PaymentGateType
|
|
3469
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
3470
|
-
|
|
3471
|
-
NONE: :NONE
|
|
3472
|
-
STRIPE: :STRIPE
|
|
3473
|
-
EXTERNAL: :EXTERNAL
|
|
3474
|
-
|
|
3475
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type]
|
|
3476
|
-
end
|
|
3477
|
-
|
|
3478
|
-
type precalculated_tax_config =
|
|
3479
|
-
{ tax_amount: Float, tax_name: String }
|
|
3480
|
-
|
|
3481
|
-
class PrecalculatedTaxConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
3482
|
-
attr_accessor tax_amount: Float
|
|
3483
|
-
|
|
3484
|
-
attr_reader tax_name: String?
|
|
3485
|
-
|
|
3486
|
-
def tax_name=: (String) -> String
|
|
3487
|
-
|
|
3488
|
-
def initialize: (tax_amount: Float, ?tax_name: String) -> void
|
|
3489
|
-
|
|
3490
|
-
def to_hash: -> { tax_amount: Float, tax_name: String }
|
|
3491
|
-
end
|
|
3492
|
-
|
|
3493
|
-
type stripe_config =
|
|
3494
|
-
{
|
|
3495
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
3496
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
3497
|
-
}
|
|
3498
|
-
|
|
3499
|
-
class StripeConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
3500
|
-
attr_accessor payment_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type
|
|
3501
|
-
|
|
3502
|
-
attr_reader invoice_metadata: ::Hash[Symbol, String]?
|
|
3503
|
-
|
|
3504
|
-
def invoice_metadata=: (
|
|
3505
|
-
::Hash[Symbol, String]
|
|
3506
|
-
) -> ::Hash[Symbol, String]
|
|
3507
|
-
|
|
3508
|
-
def initialize: (
|
|
3509
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
3510
|
-
?invoice_metadata: ::Hash[Symbol, String]
|
|
3511
|
-
) -> void
|
|
3512
|
-
|
|
3513
|
-
def to_hash: -> {
|
|
3514
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
3515
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
3516
|
-
}
|
|
3517
|
-
|
|
3518
|
-
type payment_type = :INVOICE | :PAYMENT_INTENT
|
|
3519
|
-
|
|
3520
|
-
module PaymentType
|
|
3521
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
3522
|
-
|
|
3523
|
-
INVOICE: :INVOICE
|
|
3524
|
-
PAYMENT_INTENT: :PAYMENT_INTENT
|
|
3525
|
-
|
|
3526
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type]
|
|
3527
|
-
end
|
|
3528
|
-
end
|
|
3529
|
-
|
|
3530
|
-
type tax_type = :NONE | :STRIPE | :ANROK | :PRECALCULATED
|
|
3531
|
-
|
|
3532
|
-
module TaxType
|
|
3533
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
3534
|
-
|
|
3535
|
-
NONE: :NONE
|
|
3536
|
-
STRIPE: :STRIPE
|
|
3537
|
-
ANROK: :ANROK
|
|
3538
|
-
PRECALCULATED: :PRECALCULATED
|
|
3539
|
-
|
|
3540
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddSpendThresholdConfiguration::PaymentGateConfig::tax_type]
|
|
3541
|
-
end
|
|
3542
|
-
end
|
|
3543
|
-
end
|
|
3544
|
-
|
|
3545
2614
|
type add_subscription =
|
|
3546
2615
|
{
|
|
3547
2616
|
collection_schedule: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::collection_schedule,
|
|
3548
|
-
initial_quantity: Float,
|
|
3549
2617
|
proration: MetronomeSDK::V2::ContractEditParams::AddSubscription::Proration,
|
|
3550
2618
|
subscription_rate: MetronomeSDK::V2::ContractEditParams::AddSubscription::SubscriptionRate,
|
|
3551
2619
|
custom_fields: ::Hash[Symbol, String],
|
|
3552
2620
|
description: String,
|
|
3553
2621
|
ending_before: Time,
|
|
2622
|
+
initial_quantity: Float,
|
|
3554
2623
|
name: String,
|
|
2624
|
+
quantity_management_mode: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::quantity_management_mode,
|
|
3555
2625
|
starting_at: Time,
|
|
3556
2626
|
temporary_id: String
|
|
3557
2627
|
}
|
|
@@ -3559,8 +2629,6 @@ module MetronomeSDK
|
|
|
3559
2629
|
class AddSubscription < MetronomeSDK::Internal::Type::BaseModel
|
|
3560
2630
|
attr_accessor collection_schedule: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::collection_schedule
|
|
3561
2631
|
|
|
3562
|
-
attr_accessor initial_quantity: Float
|
|
3563
|
-
|
|
3564
2632
|
attr_accessor proration: MetronomeSDK::V2::ContractEditParams::AddSubscription::Proration
|
|
3565
2633
|
|
|
3566
2634
|
attr_accessor subscription_rate: MetronomeSDK::V2::ContractEditParams::AddSubscription::SubscriptionRate
|
|
@@ -3577,10 +2645,20 @@ module MetronomeSDK
|
|
|
3577
2645
|
|
|
3578
2646
|
def ending_before=: (Time) -> Time
|
|
3579
2647
|
|
|
2648
|
+
attr_reader initial_quantity: Float?
|
|
2649
|
+
|
|
2650
|
+
def initial_quantity=: (Float) -> Float
|
|
2651
|
+
|
|
3580
2652
|
attr_reader name: String?
|
|
3581
2653
|
|
|
3582
2654
|
def name=: (String) -> String
|
|
3583
2655
|
|
|
2656
|
+
attr_reader quantity_management_mode: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::quantity_management_mode?
|
|
2657
|
+
|
|
2658
|
+
def quantity_management_mode=: (
|
|
2659
|
+
MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::quantity_management_mode
|
|
2660
|
+
) -> MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::quantity_management_mode
|
|
2661
|
+
|
|
3584
2662
|
attr_reader starting_at: Time?
|
|
3585
2663
|
|
|
3586
2664
|
def starting_at=: (Time) -> Time
|
|
@@ -3591,26 +2669,28 @@ module MetronomeSDK
|
|
|
3591
2669
|
|
|
3592
2670
|
def initialize: (
|
|
3593
2671
|
collection_schedule: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::collection_schedule,
|
|
3594
|
-
initial_quantity: Float,
|
|
3595
2672
|
proration: MetronomeSDK::V2::ContractEditParams::AddSubscription::Proration,
|
|
3596
2673
|
subscription_rate: MetronomeSDK::V2::ContractEditParams::AddSubscription::SubscriptionRate,
|
|
3597
2674
|
?custom_fields: ::Hash[Symbol, String],
|
|
3598
2675
|
?description: String,
|
|
3599
2676
|
?ending_before: Time,
|
|
2677
|
+
?initial_quantity: Float,
|
|
3600
2678
|
?name: String,
|
|
2679
|
+
?quantity_management_mode: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::quantity_management_mode,
|
|
3601
2680
|
?starting_at: Time,
|
|
3602
2681
|
?temporary_id: String
|
|
3603
2682
|
) -> void
|
|
3604
2683
|
|
|
3605
2684
|
def to_hash: -> {
|
|
3606
2685
|
collection_schedule: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::collection_schedule,
|
|
3607
|
-
initial_quantity: Float,
|
|
3608
2686
|
proration: MetronomeSDK::V2::ContractEditParams::AddSubscription::Proration,
|
|
3609
2687
|
subscription_rate: MetronomeSDK::V2::ContractEditParams::AddSubscription::SubscriptionRate,
|
|
3610
2688
|
custom_fields: ::Hash[Symbol, String],
|
|
3611
2689
|
description: String,
|
|
3612
2690
|
ending_before: Time,
|
|
2691
|
+
initial_quantity: Float,
|
|
3613
2692
|
name: String,
|
|
2693
|
+
quantity_management_mode: MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::quantity_management_mode,
|
|
3614
2694
|
starting_at: Time,
|
|
3615
2695
|
temporary_id: String
|
|
3616
2696
|
}
|
|
@@ -3700,6 +2780,17 @@ module MetronomeSDK
|
|
|
3700
2780
|
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::SubscriptionRate::billing_frequency]
|
|
3701
2781
|
end
|
|
3702
2782
|
end
|
|
2783
|
+
|
|
2784
|
+
type quantity_management_mode = :SEAT_BASED | :QUANTITY_ONLY
|
|
2785
|
+
|
|
2786
|
+
module QuantityManagementMode
|
|
2787
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
2788
|
+
|
|
2789
|
+
SEAT_BASED: :SEAT_BASED
|
|
2790
|
+
QUANTITY_ONLY: :QUANTITY_ONLY
|
|
2791
|
+
|
|
2792
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::AddSubscription::quantity_management_mode]
|
|
2793
|
+
end
|
|
3703
2794
|
end
|
|
3704
2795
|
|
|
3705
2796
|
type archive_commit = { id: String }
|
|
@@ -3748,11 +2839,12 @@ module MetronomeSDK
|
|
|
3748
2839
|
access_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCommit::AccessSchedule,
|
|
3749
2840
|
applicable_product_ids: ::Array[String]?,
|
|
3750
2841
|
applicable_product_tags: ::Array[String]?,
|
|
3751
|
-
hierarchy_configuration: MetronomeSDK::
|
|
2842
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
3752
2843
|
invoice_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule,
|
|
3753
2844
|
netsuite_sales_order_id: String?,
|
|
3754
2845
|
priority: Float?,
|
|
3755
2846
|
product_id: String,
|
|
2847
|
+
rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::rate_type,
|
|
3756
2848
|
rollover_fraction: Float?
|
|
3757
2849
|
}
|
|
3758
2850
|
|
|
@@ -3769,11 +2861,11 @@ module MetronomeSDK
|
|
|
3769
2861
|
|
|
3770
2862
|
attr_accessor applicable_product_tags: ::Array[String]?
|
|
3771
2863
|
|
|
3772
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
|
2864
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
|
3773
2865
|
|
|
3774
2866
|
def hierarchy_configuration=: (
|
|
3775
|
-
MetronomeSDK::
|
|
3776
|
-
) -> MetronomeSDK::
|
|
2867
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
|
2868
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
|
3777
2869
|
|
|
3778
2870
|
attr_reader invoice_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule?
|
|
3779
2871
|
|
|
@@ -3789,6 +2881,12 @@ module MetronomeSDK
|
|
|
3789
2881
|
|
|
3790
2882
|
def product_id=: (String) -> String
|
|
3791
2883
|
|
|
2884
|
+
attr_reader rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::rate_type?
|
|
2885
|
+
|
|
2886
|
+
def rate_type=: (
|
|
2887
|
+
MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::rate_type
|
|
2888
|
+
) -> MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::rate_type
|
|
2889
|
+
|
|
3792
2890
|
attr_accessor rollover_fraction: Float?
|
|
3793
2891
|
|
|
3794
2892
|
def initialize: (
|
|
@@ -3796,11 +2894,12 @@ module MetronomeSDK
|
|
|
3796
2894
|
?access_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCommit::AccessSchedule,
|
|
3797
2895
|
?applicable_product_ids: ::Array[String]?,
|
|
3798
2896
|
?applicable_product_tags: ::Array[String]?,
|
|
3799
|
-
?hierarchy_configuration: MetronomeSDK::
|
|
2897
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
3800
2898
|
?invoice_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule,
|
|
3801
2899
|
?netsuite_sales_order_id: String?,
|
|
3802
2900
|
?priority: Float?,
|
|
3803
2901
|
?product_id: String,
|
|
2902
|
+
?rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::rate_type,
|
|
3804
2903
|
?rollover_fraction: Float?
|
|
3805
2904
|
) -> void
|
|
3806
2905
|
|
|
@@ -3809,11 +2908,12 @@ module MetronomeSDK
|
|
|
3809
2908
|
access_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCommit::AccessSchedule,
|
|
3810
2909
|
applicable_product_ids: ::Array[String]?,
|
|
3811
2910
|
applicable_product_tags: ::Array[String]?,
|
|
3812
|
-
hierarchy_configuration: MetronomeSDK::
|
|
2911
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
3813
2912
|
invoice_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule,
|
|
3814
2913
|
netsuite_sales_order_id: String?,
|
|
3815
2914
|
priority: Float?,
|
|
3816
2915
|
product_id: String,
|
|
2916
|
+
rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::rate_type,
|
|
3817
2917
|
rollover_fraction: Float?
|
|
3818
2918
|
}
|
|
3819
2919
|
|
|
@@ -3927,157 +3027,43 @@ module MetronomeSDK
|
|
|
3927
3027
|
end
|
|
3928
3028
|
end
|
|
3929
3029
|
|
|
3930
|
-
type
|
|
3030
|
+
type invoice_schedule =
|
|
3931
3031
|
{
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
3936
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::child_access
|
|
3937
|
-
|
|
3938
|
-
def initialize: (
|
|
3939
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::child_access
|
|
3940
|
-
) -> void
|
|
3941
|
-
|
|
3942
|
-
def to_hash: -> {
|
|
3943
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::child_access
|
|
3032
|
+
add_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::AddScheduleItem],
|
|
3033
|
+
remove_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::RemoveScheduleItem],
|
|
3034
|
+
update_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::UpdateScheduleItem]
|
|
3944
3035
|
}
|
|
3945
3036
|
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
| MetronomeSDK::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
|
3949
|
-
| MetronomeSDK::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
|
3037
|
+
class InvoiceSchedule < MetronomeSDK::Internal::Type::BaseModel
|
|
3038
|
+
attr_reader add_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::AddScheduleItem]?
|
|
3950
3039
|
|
|
3951
|
-
|
|
3952
|
-
|
|
3040
|
+
def add_schedule_items=: (
|
|
3041
|
+
::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::AddScheduleItem]
|
|
3042
|
+
) -> ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::AddScheduleItem]
|
|
3953
3043
|
|
|
3954
|
-
|
|
3955
|
-
{
|
|
3956
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
3957
|
-
}
|
|
3044
|
+
attr_reader remove_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::RemoveScheduleItem]?
|
|
3958
3045
|
|
|
3959
|
-
|
|
3960
|
-
|
|
3046
|
+
def remove_schedule_items=: (
|
|
3047
|
+
::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::RemoveScheduleItem]
|
|
3048
|
+
) -> ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::RemoveScheduleItem]
|
|
3961
3049
|
|
|
3962
|
-
|
|
3963
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
3964
|
-
) -> void
|
|
3050
|
+
attr_reader update_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::UpdateScheduleItem]?
|
|
3965
3051
|
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3052
|
+
def update_schedule_items=: (
|
|
3053
|
+
::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::UpdateScheduleItem]
|
|
3054
|
+
) -> ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::UpdateScheduleItem]
|
|
3969
3055
|
|
|
3970
|
-
|
|
3056
|
+
def initialize: (
|
|
3057
|
+
?add_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::AddScheduleItem],
|
|
3058
|
+
?remove_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::RemoveScheduleItem],
|
|
3059
|
+
?update_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::UpdateScheduleItem]
|
|
3060
|
+
) -> void
|
|
3971
3061
|
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
|
3978
|
-
end
|
|
3979
|
-
end
|
|
3980
|
-
|
|
3981
|
-
type commit_hierarchy_child_access_none =
|
|
3982
|
-
{
|
|
3983
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
3984
|
-
}
|
|
3985
|
-
|
|
3986
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
|
3987
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
3988
|
-
|
|
3989
|
-
def initialize: (
|
|
3990
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
3991
|
-
) -> void
|
|
3992
|
-
|
|
3993
|
-
def to_hash: -> {
|
|
3994
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
3995
|
-
}
|
|
3996
|
-
|
|
3997
|
-
type type_ = :NONE
|
|
3998
|
-
|
|
3999
|
-
module Type
|
|
4000
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
4001
|
-
|
|
4002
|
-
NONE: :NONE
|
|
4003
|
-
|
|
4004
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
|
4005
|
-
end
|
|
4006
|
-
end
|
|
4007
|
-
|
|
4008
|
-
type commit_hierarchy_child_access_contract_ids =
|
|
4009
|
-
{
|
|
4010
|
-
contract_ids: ::Array[String],
|
|
4011
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
4012
|
-
}
|
|
4013
|
-
|
|
4014
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
|
4015
|
-
attr_accessor contract_ids: ::Array[String]
|
|
4016
|
-
|
|
4017
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
4018
|
-
|
|
4019
|
-
def initialize: (
|
|
4020
|
-
contract_ids: ::Array[String],
|
|
4021
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
4022
|
-
) -> void
|
|
4023
|
-
|
|
4024
|
-
def to_hash: -> {
|
|
4025
|
-
contract_ids: ::Array[String],
|
|
4026
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
4027
|
-
}
|
|
4028
|
-
|
|
4029
|
-
type type_ = :CONTRACT_IDS
|
|
4030
|
-
|
|
4031
|
-
module Type
|
|
4032
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
4033
|
-
|
|
4034
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
|
4035
|
-
|
|
4036
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_]
|
|
4037
|
-
end
|
|
4038
|
-
end
|
|
4039
|
-
|
|
4040
|
-
def self?.variants: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::HierarchyConfiguration::child_access]
|
|
4041
|
-
end
|
|
4042
|
-
end
|
|
4043
|
-
|
|
4044
|
-
type invoice_schedule =
|
|
4045
|
-
{
|
|
4046
|
-
add_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::AddScheduleItem],
|
|
4047
|
-
remove_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::RemoveScheduleItem],
|
|
4048
|
-
update_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::UpdateScheduleItem]
|
|
4049
|
-
}
|
|
4050
|
-
|
|
4051
|
-
class InvoiceSchedule < MetronomeSDK::Internal::Type::BaseModel
|
|
4052
|
-
attr_reader add_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::AddScheduleItem]?
|
|
4053
|
-
|
|
4054
|
-
def add_schedule_items=: (
|
|
4055
|
-
::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::AddScheduleItem]
|
|
4056
|
-
) -> ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::AddScheduleItem]
|
|
4057
|
-
|
|
4058
|
-
attr_reader remove_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::RemoveScheduleItem]?
|
|
4059
|
-
|
|
4060
|
-
def remove_schedule_items=: (
|
|
4061
|
-
::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::RemoveScheduleItem]
|
|
4062
|
-
) -> ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::RemoveScheduleItem]
|
|
4063
|
-
|
|
4064
|
-
attr_reader update_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::UpdateScheduleItem]?
|
|
4065
|
-
|
|
4066
|
-
def update_schedule_items=: (
|
|
4067
|
-
::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::UpdateScheduleItem]
|
|
4068
|
-
) -> ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::UpdateScheduleItem]
|
|
4069
|
-
|
|
4070
|
-
def initialize: (
|
|
4071
|
-
?add_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::AddScheduleItem],
|
|
4072
|
-
?remove_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::RemoveScheduleItem],
|
|
4073
|
-
?update_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::UpdateScheduleItem]
|
|
4074
|
-
) -> void
|
|
4075
|
-
|
|
4076
|
-
def to_hash: -> {
|
|
4077
|
-
add_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::AddScheduleItem],
|
|
4078
|
-
remove_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::RemoveScheduleItem],
|
|
4079
|
-
update_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::UpdateScheduleItem]
|
|
4080
|
-
}
|
|
3062
|
+
def to_hash: -> {
|
|
3063
|
+
add_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::AddScheduleItem],
|
|
3064
|
+
remove_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::RemoveScheduleItem],
|
|
3065
|
+
update_schedule_items: ::Array[MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule::UpdateScheduleItem]
|
|
3066
|
+
}
|
|
4081
3067
|
|
|
4082
3068
|
type add_schedule_item =
|
|
4083
3069
|
{
|
|
@@ -4172,6 +3158,17 @@ module MetronomeSDK
|
|
|
4172
3158
|
}
|
|
4173
3159
|
end
|
|
4174
3160
|
end
|
|
3161
|
+
|
|
3162
|
+
type rate_type = :LIST_RATE | :COMMIT_RATE
|
|
3163
|
+
|
|
3164
|
+
module RateType
|
|
3165
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
3166
|
+
|
|
3167
|
+
LIST_RATE: :LIST_RATE
|
|
3168
|
+
COMMIT_RATE: :COMMIT_RATE
|
|
3169
|
+
|
|
3170
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::rate_type]
|
|
3171
|
+
end
|
|
4175
3172
|
end
|
|
4176
3173
|
|
|
4177
3174
|
type update_credit =
|
|
@@ -4180,10 +3177,11 @@ module MetronomeSDK
|
|
|
4180
3177
|
access_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCredit::AccessSchedule,
|
|
4181
3178
|
applicable_product_ids: ::Array[String]?,
|
|
4182
3179
|
applicable_product_tags: ::Array[String]?,
|
|
4183
|
-
hierarchy_configuration: MetronomeSDK::
|
|
3180
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
4184
3181
|
netsuite_sales_order_id: String?,
|
|
4185
3182
|
priority: Float?,
|
|
4186
|
-
product_id: String
|
|
3183
|
+
product_id: String,
|
|
3184
|
+
rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::rate_type
|
|
4187
3185
|
}
|
|
4188
3186
|
|
|
4189
3187
|
class UpdateCredit < MetronomeSDK::Internal::Type::BaseModel
|
|
@@ -4199,11 +3197,11 @@ module MetronomeSDK
|
|
|
4199
3197
|
|
|
4200
3198
|
attr_accessor applicable_product_tags: ::Array[String]?
|
|
4201
3199
|
|
|
4202
|
-
attr_reader hierarchy_configuration: MetronomeSDK::
|
|
3200
|
+
attr_reader hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration?
|
|
4203
3201
|
|
|
4204
3202
|
def hierarchy_configuration=: (
|
|
4205
|
-
MetronomeSDK::
|
|
4206
|
-
) -> MetronomeSDK::
|
|
3203
|
+
MetronomeSDK::CommitHierarchyConfiguration
|
|
3204
|
+
) -> MetronomeSDK::CommitHierarchyConfiguration
|
|
4207
3205
|
|
|
4208
3206
|
attr_accessor netsuite_sales_order_id: String?
|
|
4209
3207
|
|
|
@@ -4213,15 +3211,22 @@ module MetronomeSDK
|
|
|
4213
3211
|
|
|
4214
3212
|
def product_id=: (String) -> String
|
|
4215
3213
|
|
|
3214
|
+
attr_reader rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::rate_type?
|
|
3215
|
+
|
|
3216
|
+
def rate_type=: (
|
|
3217
|
+
MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::rate_type
|
|
3218
|
+
) -> MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::rate_type
|
|
3219
|
+
|
|
4216
3220
|
def initialize: (
|
|
4217
3221
|
credit_id: String,
|
|
4218
3222
|
?access_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCredit::AccessSchedule,
|
|
4219
3223
|
?applicable_product_ids: ::Array[String]?,
|
|
4220
3224
|
?applicable_product_tags: ::Array[String]?,
|
|
4221
|
-
?hierarchy_configuration: MetronomeSDK::
|
|
3225
|
+
?hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
4222
3226
|
?netsuite_sales_order_id: String?,
|
|
4223
3227
|
?priority: Float?,
|
|
4224
|
-
?product_id: String
|
|
3228
|
+
?product_id: String,
|
|
3229
|
+
?rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::rate_type
|
|
4225
3230
|
) -> void
|
|
4226
3231
|
|
|
4227
3232
|
def to_hash: -> {
|
|
@@ -4229,10 +3234,11 @@ module MetronomeSDK
|
|
|
4229
3234
|
access_schedule: MetronomeSDK::V2::ContractEditParams::UpdateCredit::AccessSchedule,
|
|
4230
3235
|
applicable_product_ids: ::Array[String]?,
|
|
4231
3236
|
applicable_product_tags: ::Array[String]?,
|
|
4232
|
-
hierarchy_configuration: MetronomeSDK::
|
|
3237
|
+
hierarchy_configuration: MetronomeSDK::CommitHierarchyConfiguration,
|
|
4233
3238
|
netsuite_sales_order_id: String?,
|
|
4234
3239
|
priority: Float?,
|
|
4235
|
-
product_id: String
|
|
3240
|
+
product_id: String,
|
|
3241
|
+
rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::rate_type
|
|
4236
3242
|
}
|
|
4237
3243
|
|
|
4238
3244
|
type access_schedule =
|
|
@@ -4345,118 +3351,15 @@ module MetronomeSDK
|
|
|
4345
3351
|
end
|
|
4346
3352
|
end
|
|
4347
3353
|
|
|
4348
|
-
type
|
|
4349
|
-
{
|
|
4350
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::child_access
|
|
4351
|
-
}
|
|
4352
|
-
|
|
4353
|
-
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
4354
|
-
attr_accessor child_access: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::child_access
|
|
4355
|
-
|
|
4356
|
-
def initialize: (
|
|
4357
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::child_access
|
|
4358
|
-
) -> void
|
|
4359
|
-
|
|
4360
|
-
def to_hash: -> {
|
|
4361
|
-
child_access: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::child_access
|
|
4362
|
-
}
|
|
4363
|
-
|
|
4364
|
-
type child_access =
|
|
4365
|
-
MetronomeSDK::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
|
4366
|
-
| MetronomeSDK::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
|
4367
|
-
| MetronomeSDK::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
|
4368
|
-
|
|
4369
|
-
module ChildAccess
|
|
4370
|
-
extend MetronomeSDK::Internal::Type::Union
|
|
4371
|
-
|
|
4372
|
-
type commit_hierarchy_child_access_all =
|
|
4373
|
-
{
|
|
4374
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
4375
|
-
}
|
|
4376
|
-
|
|
4377
|
-
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
|
4378
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
4379
|
-
|
|
4380
|
-
def initialize: (
|
|
4381
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
4382
|
-
) -> void
|
|
4383
|
-
|
|
4384
|
-
def to_hash: -> {
|
|
4385
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_
|
|
4386
|
-
}
|
|
3354
|
+
type rate_type = :LIST_RATE | :COMMIT_RATE
|
|
4387
3355
|
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
module Type
|
|
4391
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
4392
|
-
|
|
4393
|
-
ALL: :ALL
|
|
4394
|
-
|
|
4395
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::type_]
|
|
4396
|
-
end
|
|
4397
|
-
end
|
|
4398
|
-
|
|
4399
|
-
type commit_hierarchy_child_access_none =
|
|
4400
|
-
{
|
|
4401
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
4402
|
-
}
|
|
4403
|
-
|
|
4404
|
-
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
|
4405
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
4406
|
-
|
|
4407
|
-
def initialize: (
|
|
4408
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
4409
|
-
) -> void
|
|
4410
|
-
|
|
4411
|
-
def to_hash: -> {
|
|
4412
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_
|
|
4413
|
-
}
|
|
4414
|
-
|
|
4415
|
-
type type_ = :NONE
|
|
4416
|
-
|
|
4417
|
-
module Type
|
|
4418
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
4419
|
-
|
|
4420
|
-
NONE: :NONE
|
|
4421
|
-
|
|
4422
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::type_]
|
|
4423
|
-
end
|
|
4424
|
-
end
|
|
4425
|
-
|
|
4426
|
-
type commit_hierarchy_child_access_contract_ids =
|
|
4427
|
-
{
|
|
4428
|
-
contract_ids: ::Array[String],
|
|
4429
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
4430
|
-
}
|
|
4431
|
-
|
|
4432
|
-
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
|
4433
|
-
attr_accessor contract_ids: ::Array[String]
|
|
4434
|
-
|
|
4435
|
-
attr_accessor type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
4436
|
-
|
|
4437
|
-
def initialize: (
|
|
4438
|
-
contract_ids: ::Array[String],
|
|
4439
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
4440
|
-
) -> void
|
|
4441
|
-
|
|
4442
|
-
def to_hash: -> {
|
|
4443
|
-
contract_ids: ::Array[String],
|
|
4444
|
-
type: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::type_
|
|
4445
|
-
}
|
|
4446
|
-
|
|
4447
|
-
type type_ = :CONTRACT_IDS
|
|
4448
|
-
|
|
4449
|
-
module Type
|
|
4450
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
4451
|
-
|
|
4452
|
-
CONTRACT_IDS: :CONTRACT_IDS
|
|
3356
|
+
module RateType
|
|
3357
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
4453
3358
|
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
end
|
|
3359
|
+
LIST_RATE: :LIST_RATE
|
|
3360
|
+
COMMIT_RATE: :COMMIT_RATE
|
|
4457
3361
|
|
|
4458
|
-
|
|
4459
|
-
end
|
|
3362
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit::rate_type]
|
|
4460
3363
|
end
|
|
4461
3364
|
end
|
|
4462
3365
|
|
|
@@ -4465,7 +3368,7 @@ module MetronomeSDK
|
|
|
4465
3368
|
commit: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::Commit,
|
|
4466
3369
|
custom_credit_type_id: String?,
|
|
4467
3370
|
is_enabled: bool,
|
|
4468
|
-
payment_gate_config: MetronomeSDK::
|
|
3371
|
+
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
4469
3372
|
recharge_to_amount: Float,
|
|
4470
3373
|
threshold_amount: Float
|
|
4471
3374
|
}
|
|
@@ -4483,11 +3386,11 @@ module MetronomeSDK
|
|
|
4483
3386
|
|
|
4484
3387
|
def is_enabled=: (bool) -> bool
|
|
4485
3388
|
|
|
4486
|
-
attr_reader payment_gate_config: MetronomeSDK::
|
|
3389
|
+
attr_reader payment_gate_config: MetronomeSDK::PaymentGateConfigV2?
|
|
4487
3390
|
|
|
4488
3391
|
def payment_gate_config=: (
|
|
4489
|
-
MetronomeSDK::
|
|
4490
|
-
) -> MetronomeSDK::
|
|
3392
|
+
MetronomeSDK::PaymentGateConfigV2
|
|
3393
|
+
) -> MetronomeSDK::PaymentGateConfigV2
|
|
4491
3394
|
|
|
4492
3395
|
attr_reader recharge_to_amount: Float?
|
|
4493
3396
|
|
|
@@ -4501,7 +3404,7 @@ module MetronomeSDK
|
|
|
4501
3404
|
?commit: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::Commit,
|
|
4502
3405
|
?custom_credit_type_id: String?,
|
|
4503
3406
|
?is_enabled: bool,
|
|
4504
|
-
?payment_gate_config: MetronomeSDK::
|
|
3407
|
+
?payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
4505
3408
|
?recharge_to_amount: Float,
|
|
4506
3409
|
?threshold_amount: Float
|
|
4507
3410
|
) -> void
|
|
@@ -4510,7 +3413,7 @@ module MetronomeSDK
|
|
|
4510
3413
|
commit: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::Commit,
|
|
4511
3414
|
custom_credit_type_id: String?,
|
|
4512
3415
|
is_enabled: bool,
|
|
4513
|
-
payment_gate_config: MetronomeSDK::
|
|
3416
|
+
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
4514
3417
|
recharge_to_amount: Float,
|
|
4515
3418
|
threshold_amount: Float
|
|
4516
3419
|
}
|
|
@@ -4519,213 +3422,39 @@ module MetronomeSDK
|
|
|
4519
3422
|
{
|
|
4520
3423
|
applicable_product_ids: ::Array[String]?,
|
|
4521
3424
|
applicable_product_tags: ::Array[String]?,
|
|
4522
|
-
|
|
4523
|
-
name: String,
|
|
4524
|
-
product_id: String,
|
|
4525
|
-
specifiers: ::Array[MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::Commit::Specifier]?
|
|
3425
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
4526
3426
|
}
|
|
4527
3427
|
|
|
4528
|
-
class Commit < MetronomeSDK::
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
attr_accessor applicable_product_tags: ::Array[String]?
|
|
4532
|
-
|
|
4533
|
-
attr_reader description: String?
|
|
3428
|
+
class Commit < MetronomeSDK::Models::UpdateBaseThresholdCommit
|
|
3429
|
+
def applicable_product_ids: -> ::Array[String]?
|
|
4534
3430
|
|
|
4535
|
-
def
|
|
3431
|
+
def applicable_product_ids=: (
|
|
3432
|
+
::Array[String]? _
|
|
3433
|
+
) -> ::Array[String]?
|
|
4536
3434
|
|
|
4537
|
-
|
|
3435
|
+
def applicable_product_tags: -> ::Array[String]?
|
|
4538
3436
|
|
|
4539
|
-
def
|
|
3437
|
+
def applicable_product_tags=: (
|
|
3438
|
+
::Array[String]? _
|
|
3439
|
+
) -> ::Array[String]?
|
|
4540
3440
|
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
def product_id=: (String) -> String
|
|
3441
|
+
def specifiers: -> ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
4544
3442
|
|
|
4545
|
-
|
|
3443
|
+
def specifiers=: (
|
|
3444
|
+
::Array[MetronomeSDK::CommitSpecifierInput]? _
|
|
3445
|
+
) -> ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
4546
3446
|
|
|
4547
3447
|
def initialize: (
|
|
4548
3448
|
?applicable_product_ids: ::Array[String]?,
|
|
4549
3449
|
?applicable_product_tags: ::Array[String]?,
|
|
4550
|
-
?
|
|
4551
|
-
?name: String,
|
|
4552
|
-
?product_id: String,
|
|
4553
|
-
?specifiers: ::Array[MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::Commit::Specifier]?
|
|
3450
|
+
?specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
4554
3451
|
) -> void
|
|
4555
3452
|
|
|
4556
3453
|
def to_hash: -> {
|
|
4557
3454
|
applicable_product_ids: ::Array[String]?,
|
|
4558
3455
|
applicable_product_tags: ::Array[String]?,
|
|
4559
|
-
|
|
4560
|
-
name: String,
|
|
4561
|
-
product_id: String,
|
|
4562
|
-
specifiers: ::Array[MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::Commit::Specifier]?
|
|
3456
|
+
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]?
|
|
4563
3457
|
}
|
|
4564
|
-
|
|
4565
|
-
type specifier =
|
|
4566
|
-
{
|
|
4567
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
4568
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
4569
|
-
product_id: String,
|
|
4570
|
-
product_tags: ::Array[String]
|
|
4571
|
-
}
|
|
4572
|
-
|
|
4573
|
-
class Specifier < MetronomeSDK::Internal::Type::BaseModel
|
|
4574
|
-
attr_reader presentation_group_values: ::Hash[Symbol, String]?
|
|
4575
|
-
|
|
4576
|
-
def presentation_group_values=: (
|
|
4577
|
-
::Hash[Symbol, String]
|
|
4578
|
-
) -> ::Hash[Symbol, String]
|
|
4579
|
-
|
|
4580
|
-
attr_reader pricing_group_values: ::Hash[Symbol, String]?
|
|
4581
|
-
|
|
4582
|
-
def pricing_group_values=: (
|
|
4583
|
-
::Hash[Symbol, String]
|
|
4584
|
-
) -> ::Hash[Symbol, String]
|
|
4585
|
-
|
|
4586
|
-
attr_reader product_id: String?
|
|
4587
|
-
|
|
4588
|
-
def product_id=: (String) -> String
|
|
4589
|
-
|
|
4590
|
-
attr_reader product_tags: ::Array[String]?
|
|
4591
|
-
|
|
4592
|
-
def product_tags=: (::Array[String]) -> ::Array[String]
|
|
4593
|
-
|
|
4594
|
-
def initialize: (
|
|
4595
|
-
?presentation_group_values: ::Hash[Symbol, String],
|
|
4596
|
-
?pricing_group_values: ::Hash[Symbol, String],
|
|
4597
|
-
?product_id: String,
|
|
4598
|
-
?product_tags: ::Array[String]
|
|
4599
|
-
) -> void
|
|
4600
|
-
|
|
4601
|
-
def to_hash: -> {
|
|
4602
|
-
presentation_group_values: ::Hash[Symbol, String],
|
|
4603
|
-
pricing_group_values: ::Hash[Symbol, String],
|
|
4604
|
-
product_id: String,
|
|
4605
|
-
product_tags: ::Array[String]
|
|
4606
|
-
}
|
|
4607
|
-
end
|
|
4608
|
-
end
|
|
4609
|
-
|
|
4610
|
-
type payment_gate_config =
|
|
4611
|
-
{
|
|
4612
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
4613
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
4614
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
4615
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
4616
|
-
}
|
|
4617
|
-
|
|
4618
|
-
class PaymentGateConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
4619
|
-
attr_accessor payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type
|
|
4620
|
-
|
|
4621
|
-
attr_reader precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig?
|
|
4622
|
-
|
|
4623
|
-
def precalculated_tax_config=: (
|
|
4624
|
-
MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
4625
|
-
) -> MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
4626
|
-
|
|
4627
|
-
attr_reader stripe_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig?
|
|
4628
|
-
|
|
4629
|
-
def stripe_config=: (
|
|
4630
|
-
MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
4631
|
-
) -> MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
4632
|
-
|
|
4633
|
-
attr_reader tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type?
|
|
4634
|
-
|
|
4635
|
-
def tax_type=: (
|
|
4636
|
-
MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
4637
|
-
) -> MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
4638
|
-
|
|
4639
|
-
def initialize: (
|
|
4640
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
4641
|
-
?precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
4642
|
-
?stripe_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
4643
|
-
?tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
4644
|
-
) -> void
|
|
4645
|
-
|
|
4646
|
-
def to_hash: -> {
|
|
4647
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
4648
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
4649
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
4650
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type
|
|
4651
|
-
}
|
|
4652
|
-
|
|
4653
|
-
type payment_gate_type = :NONE | :STRIPE | :EXTERNAL
|
|
4654
|
-
|
|
4655
|
-
module PaymentGateType
|
|
4656
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
4657
|
-
|
|
4658
|
-
NONE: :NONE
|
|
4659
|
-
STRIPE: :STRIPE
|
|
4660
|
-
EXTERNAL: :EXTERNAL
|
|
4661
|
-
|
|
4662
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::payment_gate_type]
|
|
4663
|
-
end
|
|
4664
|
-
|
|
4665
|
-
type precalculated_tax_config =
|
|
4666
|
-
{ tax_amount: Float, tax_name: String }
|
|
4667
|
-
|
|
4668
|
-
class PrecalculatedTaxConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
4669
|
-
attr_accessor tax_amount: Float
|
|
4670
|
-
|
|
4671
|
-
attr_reader tax_name: String?
|
|
4672
|
-
|
|
4673
|
-
def tax_name=: (String) -> String
|
|
4674
|
-
|
|
4675
|
-
def initialize: (tax_amount: Float, ?tax_name: String) -> void
|
|
4676
|
-
|
|
4677
|
-
def to_hash: -> { tax_amount: Float, tax_name: String }
|
|
4678
|
-
end
|
|
4679
|
-
|
|
4680
|
-
type stripe_config =
|
|
4681
|
-
{
|
|
4682
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
4683
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
4684
|
-
}
|
|
4685
|
-
|
|
4686
|
-
class StripeConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
4687
|
-
attr_accessor payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type
|
|
4688
|
-
|
|
4689
|
-
attr_reader invoice_metadata: ::Hash[Symbol, String]?
|
|
4690
|
-
|
|
4691
|
-
def invoice_metadata=: (
|
|
4692
|
-
::Hash[Symbol, String]
|
|
4693
|
-
) -> ::Hash[Symbol, String]
|
|
4694
|
-
|
|
4695
|
-
def initialize: (
|
|
4696
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
4697
|
-
?invoice_metadata: ::Hash[Symbol, String]
|
|
4698
|
-
) -> void
|
|
4699
|
-
|
|
4700
|
-
def to_hash: -> {
|
|
4701
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
4702
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
4703
|
-
}
|
|
4704
|
-
|
|
4705
|
-
type payment_type = :INVOICE | :PAYMENT_INTENT
|
|
4706
|
-
|
|
4707
|
-
module PaymentType
|
|
4708
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
4709
|
-
|
|
4710
|
-
INVOICE: :INVOICE
|
|
4711
|
-
PAYMENT_INTENT: :PAYMENT_INTENT
|
|
4712
|
-
|
|
4713
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type]
|
|
4714
|
-
end
|
|
4715
|
-
end
|
|
4716
|
-
|
|
4717
|
-
type tax_type = :NONE | :STRIPE | :ANROK | :PRECALCULATED
|
|
4718
|
-
|
|
4719
|
-
module TaxType
|
|
4720
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
4721
|
-
|
|
4722
|
-
NONE: :NONE
|
|
4723
|
-
STRIPE: :STRIPE
|
|
4724
|
-
ANROK: :ANROK
|
|
4725
|
-
PRECALCULATED: :PRECALCULATED
|
|
4726
|
-
|
|
4727
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::PaymentGateConfig::tax_type]
|
|
4728
|
-
end
|
|
4729
3458
|
end
|
|
4730
3459
|
end
|
|
4731
3460
|
|
|
@@ -4734,7 +3463,8 @@ module MetronomeSDK
|
|
|
4734
3463
|
recurring_commit_id: String,
|
|
4735
3464
|
access_amount: MetronomeSDK::V2::ContractEditParams::UpdateRecurringCommit::AccessAmount,
|
|
4736
3465
|
ending_before: Time?,
|
|
4737
|
-
invoice_amount: MetronomeSDK::V2::ContractEditParams::UpdateRecurringCommit::InvoiceAmount
|
|
3466
|
+
invoice_amount: MetronomeSDK::V2::ContractEditParams::UpdateRecurringCommit::InvoiceAmount,
|
|
3467
|
+
rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateRecurringCommit::rate_type
|
|
4738
3468
|
}
|
|
4739
3469
|
|
|
4740
3470
|
class UpdateRecurringCommit < MetronomeSDK::Internal::Type::BaseModel
|
|
@@ -4754,18 +3484,26 @@ module MetronomeSDK
|
|
|
4754
3484
|
MetronomeSDK::V2::ContractEditParams::UpdateRecurringCommit::InvoiceAmount
|
|
4755
3485
|
) -> MetronomeSDK::V2::ContractEditParams::UpdateRecurringCommit::InvoiceAmount
|
|
4756
3486
|
|
|
3487
|
+
attr_reader rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateRecurringCommit::rate_type?
|
|
3488
|
+
|
|
3489
|
+
def rate_type=: (
|
|
3490
|
+
MetronomeSDK::Models::V2::ContractEditParams::UpdateRecurringCommit::rate_type
|
|
3491
|
+
) -> MetronomeSDK::Models::V2::ContractEditParams::UpdateRecurringCommit::rate_type
|
|
3492
|
+
|
|
4757
3493
|
def initialize: (
|
|
4758
3494
|
recurring_commit_id: String,
|
|
4759
3495
|
?access_amount: MetronomeSDK::V2::ContractEditParams::UpdateRecurringCommit::AccessAmount,
|
|
4760
3496
|
?ending_before: Time?,
|
|
4761
|
-
?invoice_amount: MetronomeSDK::V2::ContractEditParams::UpdateRecurringCommit::InvoiceAmount
|
|
3497
|
+
?invoice_amount: MetronomeSDK::V2::ContractEditParams::UpdateRecurringCommit::InvoiceAmount,
|
|
3498
|
+
?rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateRecurringCommit::rate_type
|
|
4762
3499
|
) -> void
|
|
4763
3500
|
|
|
4764
3501
|
def to_hash: -> {
|
|
4765
3502
|
recurring_commit_id: String,
|
|
4766
3503
|
access_amount: MetronomeSDK::V2::ContractEditParams::UpdateRecurringCommit::AccessAmount,
|
|
4767
3504
|
ending_before: Time?,
|
|
4768
|
-
invoice_amount: MetronomeSDK::V2::ContractEditParams::UpdateRecurringCommit::InvoiceAmount
|
|
3505
|
+
invoice_amount: MetronomeSDK::V2::ContractEditParams::UpdateRecurringCommit::InvoiceAmount,
|
|
3506
|
+
rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateRecurringCommit::rate_type
|
|
4769
3507
|
}
|
|
4770
3508
|
|
|
4771
3509
|
type access_amount = { quantity: Float, unit_price: Float }
|
|
@@ -4799,13 +3537,25 @@ module MetronomeSDK
|
|
|
4799
3537
|
|
|
4800
3538
|
def to_hash: -> { quantity: Float, unit_price: Float }
|
|
4801
3539
|
end
|
|
3540
|
+
|
|
3541
|
+
type rate_type = :LIST_RATE | :COMMIT_RATE
|
|
3542
|
+
|
|
3543
|
+
module RateType
|
|
3544
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
3545
|
+
|
|
3546
|
+
LIST_RATE: :LIST_RATE
|
|
3547
|
+
COMMIT_RATE: :COMMIT_RATE
|
|
3548
|
+
|
|
3549
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateRecurringCommit::rate_type]
|
|
3550
|
+
end
|
|
4802
3551
|
end
|
|
4803
3552
|
|
|
4804
3553
|
type update_recurring_credit =
|
|
4805
3554
|
{
|
|
4806
3555
|
recurring_credit_id: String,
|
|
4807
3556
|
access_amount: MetronomeSDK::V2::ContractEditParams::UpdateRecurringCredit::AccessAmount,
|
|
4808
|
-
ending_before: Time
|
|
3557
|
+
ending_before: Time?,
|
|
3558
|
+
rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateRecurringCredit::rate_type
|
|
4809
3559
|
}
|
|
4810
3560
|
|
|
4811
3561
|
class UpdateRecurringCredit < MetronomeSDK::Internal::Type::BaseModel
|
|
@@ -4819,16 +3569,24 @@ module MetronomeSDK
|
|
|
4819
3569
|
|
|
4820
3570
|
attr_accessor ending_before: Time?
|
|
4821
3571
|
|
|
3572
|
+
attr_reader rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateRecurringCredit::rate_type?
|
|
3573
|
+
|
|
3574
|
+
def rate_type=: (
|
|
3575
|
+
MetronomeSDK::Models::V2::ContractEditParams::UpdateRecurringCredit::rate_type
|
|
3576
|
+
) -> MetronomeSDK::Models::V2::ContractEditParams::UpdateRecurringCredit::rate_type
|
|
3577
|
+
|
|
4822
3578
|
def initialize: (
|
|
4823
3579
|
recurring_credit_id: String,
|
|
4824
3580
|
?access_amount: MetronomeSDK::V2::ContractEditParams::UpdateRecurringCredit::AccessAmount,
|
|
4825
|
-
?ending_before: Time
|
|
3581
|
+
?ending_before: Time?,
|
|
3582
|
+
?rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateRecurringCredit::rate_type
|
|
4826
3583
|
) -> void
|
|
4827
3584
|
|
|
4828
3585
|
def to_hash: -> {
|
|
4829
3586
|
recurring_credit_id: String,
|
|
4830
3587
|
access_amount: MetronomeSDK::V2::ContractEditParams::UpdateRecurringCredit::AccessAmount,
|
|
4831
|
-
ending_before: Time
|
|
3588
|
+
ending_before: Time?,
|
|
3589
|
+
rate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateRecurringCredit::rate_type
|
|
4832
3590
|
}
|
|
4833
3591
|
|
|
4834
3592
|
type access_amount = { quantity: Float, unit_price: Float }
|
|
@@ -4846,6 +3604,17 @@ module MetronomeSDK
|
|
|
4846
3604
|
|
|
4847
3605
|
def to_hash: -> { quantity: Float, unit_price: Float }
|
|
4848
3606
|
end
|
|
3607
|
+
|
|
3608
|
+
type rate_type = :LIST_RATE | :COMMIT_RATE
|
|
3609
|
+
|
|
3610
|
+
module RateType
|
|
3611
|
+
extend MetronomeSDK::Internal::Type::Enum
|
|
3612
|
+
|
|
3613
|
+
LIST_RATE: :LIST_RATE
|
|
3614
|
+
COMMIT_RATE: :COMMIT_RATE
|
|
3615
|
+
|
|
3616
|
+
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateRecurringCredit::rate_type]
|
|
3617
|
+
end
|
|
4849
3618
|
end
|
|
4850
3619
|
|
|
4851
3620
|
type update_scheduled_charge =
|
|
@@ -5013,196 +3782,46 @@ module MetronomeSDK
|
|
|
5013
3782
|
|
|
5014
3783
|
type update_spend_threshold_configuration =
|
|
5015
3784
|
{
|
|
5016
|
-
commit: MetronomeSDK::
|
|
3785
|
+
commit: MetronomeSDK::UpdateBaseThresholdCommit,
|
|
5017
3786
|
is_enabled: bool,
|
|
5018
|
-
payment_gate_config: MetronomeSDK::
|
|
3787
|
+
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
5019
3788
|
threshold_amount: Float
|
|
5020
3789
|
}
|
|
5021
3790
|
|
|
5022
3791
|
class UpdateSpendThresholdConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
5023
|
-
attr_reader commit: MetronomeSDK::
|
|
3792
|
+
attr_reader commit: MetronomeSDK::UpdateBaseThresholdCommit?
|
|
5024
3793
|
|
|
5025
3794
|
def commit=: (
|
|
5026
|
-
MetronomeSDK::
|
|
5027
|
-
) -> MetronomeSDK::
|
|
3795
|
+
MetronomeSDK::UpdateBaseThresholdCommit
|
|
3796
|
+
) -> MetronomeSDK::UpdateBaseThresholdCommit
|
|
5028
3797
|
|
|
5029
3798
|
attr_reader is_enabled: bool?
|
|
5030
3799
|
|
|
5031
3800
|
def is_enabled=: (bool) -> bool
|
|
5032
3801
|
|
|
5033
|
-
attr_reader payment_gate_config: MetronomeSDK::
|
|
3802
|
+
attr_reader payment_gate_config: MetronomeSDK::PaymentGateConfigV2?
|
|
5034
3803
|
|
|
5035
3804
|
def payment_gate_config=: (
|
|
5036
|
-
MetronomeSDK::
|
|
5037
|
-
) -> MetronomeSDK::
|
|
3805
|
+
MetronomeSDK::PaymentGateConfigV2
|
|
3806
|
+
) -> MetronomeSDK::PaymentGateConfigV2
|
|
5038
3807
|
|
|
5039
3808
|
attr_reader threshold_amount: Float?
|
|
5040
3809
|
|
|
5041
3810
|
def threshold_amount=: (Float) -> Float
|
|
5042
3811
|
|
|
5043
3812
|
def initialize: (
|
|
5044
|
-
?commit: MetronomeSDK::
|
|
3813
|
+
?commit: MetronomeSDK::UpdateBaseThresholdCommit,
|
|
5045
3814
|
?is_enabled: bool,
|
|
5046
|
-
?payment_gate_config: MetronomeSDK::
|
|
3815
|
+
?payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
5047
3816
|
?threshold_amount: Float
|
|
5048
3817
|
) -> void
|
|
5049
3818
|
|
|
5050
3819
|
def to_hash: -> {
|
|
5051
|
-
commit: MetronomeSDK::
|
|
3820
|
+
commit: MetronomeSDK::UpdateBaseThresholdCommit,
|
|
5052
3821
|
is_enabled: bool,
|
|
5053
|
-
payment_gate_config: MetronomeSDK::
|
|
3822
|
+
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
5054
3823
|
threshold_amount: Float
|
|
5055
3824
|
}
|
|
5056
|
-
|
|
5057
|
-
type commit =
|
|
5058
|
-
{ description: String, name: String, product_id: String }
|
|
5059
|
-
|
|
5060
|
-
class Commit < MetronomeSDK::Internal::Type::BaseModel
|
|
5061
|
-
attr_reader description: String?
|
|
5062
|
-
|
|
5063
|
-
def description=: (String) -> String
|
|
5064
|
-
|
|
5065
|
-
attr_reader name: String?
|
|
5066
|
-
|
|
5067
|
-
def name=: (String) -> String
|
|
5068
|
-
|
|
5069
|
-
attr_reader product_id: String?
|
|
5070
|
-
|
|
5071
|
-
def product_id=: (String) -> String
|
|
5072
|
-
|
|
5073
|
-
def initialize: (
|
|
5074
|
-
?description: String,
|
|
5075
|
-
?name: String,
|
|
5076
|
-
?product_id: String
|
|
5077
|
-
) -> void
|
|
5078
|
-
|
|
5079
|
-
def to_hash: -> {
|
|
5080
|
-
description: String,
|
|
5081
|
-
name: String,
|
|
5082
|
-
product_id: String
|
|
5083
|
-
}
|
|
5084
|
-
end
|
|
5085
|
-
|
|
5086
|
-
type payment_gate_config =
|
|
5087
|
-
{
|
|
5088
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
5089
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
5090
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
5091
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
5092
|
-
}
|
|
5093
|
-
|
|
5094
|
-
class PaymentGateConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
5095
|
-
attr_accessor payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type
|
|
5096
|
-
|
|
5097
|
-
attr_reader precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig?
|
|
5098
|
-
|
|
5099
|
-
def precalculated_tax_config=: (
|
|
5100
|
-
MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
5101
|
-
) -> MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig
|
|
5102
|
-
|
|
5103
|
-
attr_reader stripe_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig?
|
|
5104
|
-
|
|
5105
|
-
def stripe_config=: (
|
|
5106
|
-
MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
5107
|
-
) -> MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig
|
|
5108
|
-
|
|
5109
|
-
attr_reader tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type?
|
|
5110
|
-
|
|
5111
|
-
def tax_type=: (
|
|
5112
|
-
MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
5113
|
-
) -> MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
5114
|
-
|
|
5115
|
-
def initialize: (
|
|
5116
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
5117
|
-
?precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
5118
|
-
?stripe_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
5119
|
-
?tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
5120
|
-
) -> void
|
|
5121
|
-
|
|
5122
|
-
def to_hash: -> {
|
|
5123
|
-
payment_gate_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type,
|
|
5124
|
-
precalculated_tax_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
5125
|
-
stripe_config: MetronomeSDK::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig,
|
|
5126
|
-
tax_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type
|
|
5127
|
-
}
|
|
5128
|
-
|
|
5129
|
-
type payment_gate_type = :NONE | :STRIPE | :EXTERNAL
|
|
5130
|
-
|
|
5131
|
-
module PaymentGateType
|
|
5132
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
5133
|
-
|
|
5134
|
-
NONE: :NONE
|
|
5135
|
-
STRIPE: :STRIPE
|
|
5136
|
-
EXTERNAL: :EXTERNAL
|
|
5137
|
-
|
|
5138
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::payment_gate_type]
|
|
5139
|
-
end
|
|
5140
|
-
|
|
5141
|
-
type precalculated_tax_config =
|
|
5142
|
-
{ tax_amount: Float, tax_name: String }
|
|
5143
|
-
|
|
5144
|
-
class PrecalculatedTaxConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
5145
|
-
attr_accessor tax_amount: Float
|
|
5146
|
-
|
|
5147
|
-
attr_reader tax_name: String?
|
|
5148
|
-
|
|
5149
|
-
def tax_name=: (String) -> String
|
|
5150
|
-
|
|
5151
|
-
def initialize: (tax_amount: Float, ?tax_name: String) -> void
|
|
5152
|
-
|
|
5153
|
-
def to_hash: -> { tax_amount: Float, tax_name: String }
|
|
5154
|
-
end
|
|
5155
|
-
|
|
5156
|
-
type stripe_config =
|
|
5157
|
-
{
|
|
5158
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
5159
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
5160
|
-
}
|
|
5161
|
-
|
|
5162
|
-
class StripeConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
5163
|
-
attr_accessor payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type
|
|
5164
|
-
|
|
5165
|
-
attr_reader invoice_metadata: ::Hash[Symbol, String]?
|
|
5166
|
-
|
|
5167
|
-
def invoice_metadata=: (
|
|
5168
|
-
::Hash[Symbol, String]
|
|
5169
|
-
) -> ::Hash[Symbol, String]
|
|
5170
|
-
|
|
5171
|
-
def initialize: (
|
|
5172
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
5173
|
-
?invoice_metadata: ::Hash[Symbol, String]
|
|
5174
|
-
) -> void
|
|
5175
|
-
|
|
5176
|
-
def to_hash: -> {
|
|
5177
|
-
payment_type: MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type,
|
|
5178
|
-
invoice_metadata: ::Hash[Symbol, String]
|
|
5179
|
-
}
|
|
5180
|
-
|
|
5181
|
-
type payment_type = :INVOICE | :PAYMENT_INTENT
|
|
5182
|
-
|
|
5183
|
-
module PaymentType
|
|
5184
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
5185
|
-
|
|
5186
|
-
INVOICE: :INVOICE
|
|
5187
|
-
PAYMENT_INTENT: :PAYMENT_INTENT
|
|
5188
|
-
|
|
5189
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::StripeConfig::payment_type]
|
|
5190
|
-
end
|
|
5191
|
-
end
|
|
5192
|
-
|
|
5193
|
-
type tax_type = :NONE | :STRIPE | :ANROK | :PRECALCULATED
|
|
5194
|
-
|
|
5195
|
-
module TaxType
|
|
5196
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
5197
|
-
|
|
5198
|
-
NONE: :NONE
|
|
5199
|
-
STRIPE: :STRIPE
|
|
5200
|
-
ANROK: :ANROK
|
|
5201
|
-
PRECALCULATED: :PRECALCULATED
|
|
5202
|
-
|
|
5203
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V2::ContractEditParams::UpdateSpendThresholdConfiguration::PaymentGateConfig::tax_type]
|
|
5204
|
-
end
|
|
5205
|
-
end
|
|
5206
3825
|
end
|
|
5207
3826
|
|
|
5208
3827
|
type update_subscription =
|