orb-billing 0.1.0.pre.alpha.37 → 0.1.0.pre.alpha.39
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/README.md +29 -5
- data/lib/orb/client.rb +4 -0
- data/lib/orb/internal/page.rb +6 -2
- data/lib/orb/internal/transport/base_client.rb +3 -3
- data/lib/orb/internal/transport/pooled_net_requester.rb +2 -2
- data/lib/orb/internal/type/array_of.rb +5 -3
- data/lib/orb/internal/type/base_model.rb +19 -16
- data/lib/orb/internal/type/base_page.rb +4 -1
- data/lib/orb/internal/type/{boolean_model.rb → boolean.rb} +2 -2
- data/lib/orb/internal/type/converter.rb +26 -23
- data/lib/orb/internal/type/enum.rb +10 -8
- data/lib/orb/internal/type/hash_of.rb +3 -1
- data/lib/orb/internal/util.rb +29 -50
- data/lib/orb/models/alert.rb +10 -10
- data/lib/orb/models/alert_create_for_customer_params.rb +3 -3
- data/lib/orb/models/alert_create_for_external_customer_params.rb +3 -3
- data/lib/orb/models/alert_create_for_subscription_params.rb +3 -3
- data/lib/orb/models/alert_list_params.rb +5 -5
- data/lib/orb/models/alert_update_params.rb +3 -3
- data/lib/orb/models/amount_discount.rb +1 -1
- data/lib/orb/models/billable_metric.rb +7 -7
- data/lib/orb/models/coupon.rb +7 -7
- data/lib/orb/models/coupon_create_params.rb +2 -2
- data/lib/orb/models/coupon_list_params.rb +3 -3
- data/lib/orb/models/coupons/subscription_list_params.rb +1 -1
- data/lib/orb/models/credit_note.rb +1 -1
- data/lib/orb/models/credit_note_list_params.rb +5 -5
- data/lib/orb/models/customer.rb +237 -237
- data/lib/orb/models/customer_create_params.rb +229 -229
- data/lib/orb/models/customer_list_params.rb +5 -5
- data/lib/orb/models/customer_update_by_external_id_params.rb +230 -230
- data/lib/orb/models/customer_update_params.rb +230 -230
- data/lib/orb/models/customers/balance_transaction_create_response.rb +2 -2
- data/lib/orb/models/customers/balance_transaction_list_params.rb +5 -5
- data/lib/orb/models/customers/balance_transaction_list_response.rb +2 -2
- data/lib/orb/models/customers/cost_list_by_external_id_params.rb +6 -6
- data/lib/orb/models/customers/cost_list_params.rb +6 -6
- data/lib/orb/models/customers/credit_list_by_external_id_params.rb +3 -3
- data/lib/orb/models/customers/credit_list_params.rb +3 -3
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +22 -22
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +22 -22
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +22 -22
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +22 -22
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +5 -5
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +22 -22
- data/lib/orb/models/customers/credits/ledger_list_params.rb +5 -5
- data/lib/orb/models/customers/credits/ledger_list_response.rb +22 -22
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +10 -10
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +9 -9
- data/lib/orb/models/customers/credits/top_up_create_params.rb +10 -10
- data/lib/orb/models/customers/credits/top_up_create_response.rb +9 -9
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +1 -1
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +9 -9
- data/lib/orb/models/customers/credits/top_up_list_params.rb +1 -1
- data/lib/orb/models/customers/credits/top_up_list_response.rb +9 -9
- data/lib/orb/models/dimensional_price_group.rb +7 -7
- data/lib/orb/models/dimensional_price_group_create_params.rb +2 -2
- data/lib/orb/models/dimensional_price_group_list_params.rb +1 -1
- data/lib/orb/models/evaluate_price_group.rb +1 -1
- data/lib/orb/models/event_ingest_params.rb +8 -8
- data/lib/orb/models/event_ingest_response.rb +4 -4
- data/lib/orb/models/event_search_params.rb +5 -5
- data/lib/orb/models/event_search_response.rb +9 -9
- data/lib/orb/models/event_update_params.rb +4 -4
- data/lib/orb/models/events/backfill_close_response.rb +8 -8
- data/lib/orb/models/events/backfill_create_params.rb +12 -12
- data/lib/orb/models/events/backfill_create_response.rb +8 -8
- data/lib/orb/models/events/backfill_fetch_response.rb +8 -8
- data/lib/orb/models/events/backfill_list_params.rb +1 -1
- data/lib/orb/models/events/backfill_list_response.rb +8 -8
- data/lib/orb/models/events/backfill_revert_response.rb +8 -8
- data/lib/orb/models/events/event_volumes.rb +1 -1
- data/lib/orb/models/events/volume_list_params.rb +7 -7
- data/lib/orb/models/invoice.rb +278 -278
- data/lib/orb/models/invoice_create_params.rb +13 -12
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +274 -274
- data/lib/orb/models/invoice_issue_params.rb +5 -5
- data/lib/orb/models/invoice_line_item_create_params.rb +1 -1
- data/lib/orb/models/invoice_line_item_create_response.rb +32 -32
- data/lib/orb/models/invoice_list_params.rb +13 -13
- data/lib/orb/models/invoice_update_params.rb +2 -2
- data/lib/orb/models/item.rb +2 -2
- data/lib/orb/models/item_list_params.rb +1 -1
- data/lib/orb/models/metric_create_params.rb +2 -2
- data/lib/orb/models/metric_list_params.rb +5 -5
- data/lib/orb/models/metric_update_params.rb +2 -2
- data/lib/orb/models/pagination_metadata.rb +1 -1
- data/lib/orb/models/percentage_discount.rb +2 -2
- data/lib/orb/models/plan.rb +40 -40
- data/lib/orb/models/plan_create_params.rb +292 -292
- data/lib/orb/models/plan_list_params.rb +5 -5
- data/lib/orb/models/plan_update_params.rb +4 -4
- data/lib/orb/models/plans/external_plan_id_update_params.rb +4 -4
- data/lib/orb/models/price.rb +186 -186
- data/lib/orb/models/price_create_params.rb +21 -21
- data/lib/orb/models/price_evaluate_params.rb +4 -4
- data/lib/orb/models/price_list_params.rb +1 -1
- data/lib/orb/models/price_update_params.rb +2 -2
- data/lib/orb/models/prices/external_price_id_update_params.rb +2 -2
- data/lib/orb/models/subscription.rb +120 -93
- data/lib/orb/models/subscription_cancel_params.rb +4 -4
- data/lib/orb/models/subscription_cancel_response.rb +156 -78
- data/lib/orb/models/subscription_change_apply_params.rb +33 -0
- data/lib/orb/models/subscription_change_apply_response.rb +1372 -0
- data/lib/orb/models/subscription_change_cancel_params.rb +19 -0
- data/lib/orb/models/subscription_change_cancel_response.rb +1372 -0
- data/lib/orb/models/subscription_change_retrieve_params.rb +19 -0
- data/lib/orb/models/subscription_change_retrieve_response.rb +1372 -0
- data/lib/orb/models/subscription_create_params.rb +705 -705
- data/lib/orb/models/subscription_create_response.rb +156 -78
- data/lib/orb/models/subscription_fetch_costs_params.rb +6 -6
- data/lib/orb/models/subscription_fetch_schedule_params.rb +5 -5
- data/lib/orb/models/subscription_fetch_schedule_response.rb +2 -2
- data/lib/orb/models/subscription_fetch_usage_params.rb +8 -8
- data/lib/orb/models/subscription_list_params.rb +5 -5
- data/lib/orb/models/subscription_price_intervals_params.rb +358 -358
- data/lib/orb/models/subscription_price_intervals_response.rb +158 -78
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +715 -715
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +158 -78
- data/lib/orb/models/subscription_trigger_phase_params.rb +4 -4
- data/lib/orb/models/subscription_trigger_phase_response.rb +158 -78
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +158 -78
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +159 -79
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +158 -78
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +9 -9
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +158 -78
- data/lib/orb/models/subscription_update_params.rb +11 -11
- data/lib/orb/models/subscription_update_trial_params.rb +4 -4
- data/lib/orb/models/subscription_update_trial_response.rb +158 -78
- data/lib/orb/models/trial_discount.rb +1 -1
- data/lib/orb/models/usage_discount.rb +2 -2
- data/lib/orb/request_options.rb +7 -7
- data/lib/orb/resources/alerts.rb +40 -35
- data/lib/orb/resources/coupons/subscriptions.rb +3 -3
- data/lib/orb/resources/coupons.rb +9 -9
- data/lib/orb/resources/credit_notes.rb +10 -5
- data/lib/orb/resources/customers/balance_transactions.rb +28 -23
- data/lib/orb/resources/customers/costs.rb +232 -232
- data/lib/orb/resources/customers/credits/ledger.rb +348 -338
- data/lib/orb/resources/customers/credits/top_ups.rb +12 -12
- data/lib/orb/resources/customers/credits.rb +8 -8
- data/lib/orb/resources/customers.rb +61 -56
- data/lib/orb/resources/dimensional_price_groups.rb +6 -6
- data/lib/orb/resources/events/backfills.rb +49 -49
- data/lib/orb/resources/events/volume.rb +10 -10
- data/lib/orb/resources/events.rb +295 -295
- data/lib/orb/resources/invoice_line_items.rb +1 -1
- data/lib/orb/resources/invoices.rb +40 -31
- data/lib/orb/resources/items.rb +1 -1
- data/lib/orb/resources/metrics.rb +13 -8
- data/lib/orb/resources/plans/external_plan_id.rb +14 -14
- data/lib/orb/resources/plans.rb +24 -19
- data/lib/orb/resources/prices/external_price_id.rb +4 -4
- data/lib/orb/resources/prices.rb +30 -30
- data/lib/orb/resources/subscription_changes.rb +87 -0
- data/lib/orb/resources/subscriptions.rb +817 -807
- data/lib/orb/resources/top_level.rb +4 -4
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +8 -1
- data/rbi/lib/orb/client.rbi +5 -4
- data/rbi/lib/orb/errors.rbi +3 -6
- data/rbi/lib/orb/internal/page.rbi +3 -6
- data/rbi/lib/orb/internal/transport/base_client.rbi +13 -27
- data/rbi/lib/orb/internal/transport/pooled_net_requester.rbi +7 -13
- data/rbi/lib/orb/internal/type/array_of.rbi +10 -18
- data/rbi/lib/orb/internal/type/base_model.rbi +45 -64
- data/rbi/lib/orb/internal/type/base_page.rbi +5 -10
- data/rbi/lib/orb/internal/type/{boolean_model.rbi → boolean.rbi} +5 -9
- data/rbi/lib/orb/internal/type/converter.rbi +25 -31
- data/rbi/lib/orb/internal/type/enum.rbi +14 -20
- data/rbi/lib/orb/internal/type/hash_of.rbi +8 -16
- data/rbi/lib/orb/internal/type/request_parameters.rbi +1 -2
- data/rbi/lib/orb/internal/type/union.rbi +10 -20
- data/rbi/lib/orb/internal/type/unknown.rbi +4 -8
- data/rbi/lib/orb/internal/util.rbi +40 -72
- data/rbi/lib/orb/internal.rbi +1 -1
- data/rbi/lib/orb/models/alert.rbi +21 -33
- data/rbi/lib/orb/models/alert_create_for_customer_params.rbi +8 -13
- data/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi +8 -13
- data/rbi/lib/orb/models/alert_create_for_subscription_params.rbi +8 -13
- data/rbi/lib/orb/models/alert_disable_params.rbi +2 -4
- data/rbi/lib/orb/models/alert_enable_params.rbi +2 -4
- data/rbi/lib/orb/models/alert_list_params.rbi +3 -6
- data/rbi/lib/orb/models/alert_retrieve_params.rbi +2 -4
- data/rbi/lib/orb/models/alert_update_params.rbi +7 -11
- data/rbi/lib/orb/models/amount_discount.rbi +4 -7
- data/rbi/lib/orb/models/billable_metric.rbi +10 -13
- data/rbi/lib/orb/models/billing_cycle_relative_date.rbi +1 -2
- data/rbi/lib/orb/models/coupon.rbi +9 -11
- data/rbi/lib/orb/models/coupon_archive_params.rbi +2 -4
- data/rbi/lib/orb/models/coupon_create_params.rbi +8 -14
- data/rbi/lib/orb/models/coupon_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/coupon_list_params.rbi +3 -4
- data/rbi/lib/orb/models/coupons/subscription_list_params.rbi +3 -5
- data/rbi/lib/orb/models/credit_note.rbi +22 -45
- data/rbi/lib/orb/models/credit_note_create_params.rbi +5 -10
- data/rbi/lib/orb/models/credit_note_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/credit_note_list_params.rbi +3 -6
- data/rbi/lib/orb/models/customer.rbi +256 -281
- data/rbi/lib/orb/models/customer_create_params.rbi +251 -276
- data/rbi/lib/orb/models/customer_delete_params.rbi +2 -4
- data/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi +2 -4
- data/rbi/lib/orb/models/customer_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/customer_list_params.rbi +3 -6
- data/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +2 -4
- data/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +2 -4
- data/rbi/lib/orb/models/customer_update_by_external_id_params.rbi +252 -277
- data/rbi/lib/orb/models/customer_update_params.rbi +252 -277
- data/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi +3 -6
- data/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi +10 -19
- data/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi +3 -6
- data/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi +10 -19
- data/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi +8 -10
- data/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi +6 -12
- data/rbi/lib/orb/models/customers/cost_list_params.rbi +8 -10
- data/rbi/lib/orb/models/customers/cost_list_response.rbi +6 -12
- data/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi +3 -4
- data/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi +2 -4
- data/rbi/lib/orb/models/customers/credit_list_params.rbi +3 -4
- data/rbi/lib/orb/models/customers/credit_list_response.rbi +2 -4
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +26 -33
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +79 -136
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi +26 -33
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi +78 -135
- data/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +5 -10
- data/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +79 -136
- data/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi +5 -10
- data/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi +74 -131
- data/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +13 -19
- data/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +12 -18
- data/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi +13 -19
- data/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi +12 -18
- data/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +2 -4
- data/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi +2 -4
- data/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +3 -5
- data/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +12 -18
- data/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi +3 -5
- data/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi +12 -18
- data/rbi/lib/orb/models/dimensional_price_group.rbi +8 -9
- data/rbi/lib/orb/models/dimensional_price_group_create_params.rbi +4 -7
- data/rbi/lib/orb/models/dimensional_price_group_list_params.rbi +3 -5
- data/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi +2 -4
- data/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +2 -4
- data/rbi/lib/orb/models/dimensional_price_groups.rbi +2 -4
- data/rbi/lib/orb/models/discount.rbi +1 -2
- data/rbi/lib/orb/models/evaluate_price_group.rbi +3 -6
- data/rbi/lib/orb/models/event_deprecate_params.rbi +2 -4
- data/rbi/lib/orb/models/event_deprecate_response.rbi +2 -4
- data/rbi/lib/orb/models/event_ingest_params.rbi +10 -13
- data/rbi/lib/orb/models/event_ingest_response.rbi +10 -16
- data/rbi/lib/orb/models/event_search_params.rbi +7 -9
- data/rbi/lib/orb/models/event_search_response.rbi +11 -14
- data/rbi/lib/orb/models/event_update_params.rbi +5 -6
- data/rbi/lib/orb/models/event_update_response.rbi +2 -4
- data/rbi/lib/orb/models/events/backfill_close_params.rbi +2 -4
- data/rbi/lib/orb/models/events/backfill_close_response.rbi +10 -14
- data/rbi/lib/orb/models/events/backfill_create_params.rbi +13 -16
- data/rbi/lib/orb/models/events/backfill_create_response.rbi +10 -14
- data/rbi/lib/orb/models/events/backfill_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/events/backfill_fetch_response.rbi +10 -14
- data/rbi/lib/orb/models/events/backfill_list_params.rbi +3 -5
- data/rbi/lib/orb/models/events/backfill_list_response.rbi +10 -14
- data/rbi/lib/orb/models/events/backfill_revert_params.rbi +2 -4
- data/rbi/lib/orb/models/events/backfill_revert_response.rbi +10 -14
- data/rbi/lib/orb/models/events/event_volumes.rbi +5 -9
- data/rbi/lib/orb/models/events/volume_list_params.rbi +9 -11
- data/rbi/lib/orb/models/invoice.rbi +388 -465
- data/rbi/lib/orb/models/invoice_create_params.rbi +19 -26
- data/rbi/lib/orb/models/invoice_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi +2 -4
- data/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +381 -460
- data/rbi/lib/orb/models/invoice_issue_params.rbi +6 -8
- data/rbi/lib/orb/models/invoice_level_discount.rbi +1 -2
- data/rbi/lib/orb/models/invoice_line_item_create_params.rbi +3 -5
- data/rbi/lib/orb/models/invoice_line_item_create_response.rbi +101 -143
- data/rbi/lib/orb/models/invoice_list_params.rbi +8 -13
- data/rbi/lib/orb/models/invoice_mark_paid_params.rbi +2 -4
- data/rbi/lib/orb/models/invoice_pay_params.rbi +2 -4
- data/rbi/lib/orb/models/invoice_update_params.rbi +4 -6
- data/rbi/lib/orb/models/invoice_void_params.rbi +2 -4
- data/rbi/lib/orb/models/item.rbi +7 -12
- data/rbi/lib/orb/models/item_create_params.rbi +2 -4
- data/rbi/lib/orb/models/item_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/item_list_params.rbi +3 -5
- data/rbi/lib/orb/models/item_update_params.rbi +5 -10
- data/rbi/lib/orb/models/metric_create_params.rbi +4 -6
- data/rbi/lib/orb/models/metric_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/metric_list_params.rbi +3 -6
- data/rbi/lib/orb/models/metric_update_params.rbi +4 -6
- data/rbi/lib/orb/models/pagination_metadata.rbi +2 -4
- data/rbi/lib/orb/models/percentage_discount.rbi +5 -8
- data/rbi/lib/orb/models/plan.rbi +180 -219
- data/rbi/lib/orb/models/plan_create_params.rbi +670 -951
- data/rbi/lib/orb/models/plan_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/plan_list_params.rbi +4 -8
- data/rbi/lib/orb/models/plan_update_params.rbi +6 -8
- data/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi +6 -8
- data/rbi/lib/orb/models/price.rbi +827 -1494
- data/rbi/lib/orb/models/price_create_params.rbi +60 -101
- data/rbi/lib/orb/models/price_evaluate_params.rbi +6 -9
- data/rbi/lib/orb/models/price_evaluate_response.rbi +2 -4
- data/rbi/lib/orb/models/price_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/price_list_params.rbi +3 -5
- data/rbi/lib/orb/models/price_update_params.rbi +4 -6
- data/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/prices/external_price_id_update_params.rbi +4 -6
- data/rbi/lib/orb/models/subscription.rbi +167 -187
- data/rbi/lib/orb/models/subscription_cancel_params.rbi +5 -7
- data/rbi/lib/orb/models/subscription_cancel_response.rbi +224 -178
- data/rbi/lib/orb/models/subscription_change_apply_params.rbi +40 -0
- data/rbi/lib/orb/models/subscription_change_apply_response.rbi +1554 -0
- data/rbi/lib/orb/models/subscription_change_cancel_params.rbi +18 -0
- data/rbi/lib/orb/models/subscription_change_cancel_response.rbi +1565 -0
- data/rbi/lib/orb/models/subscription_change_retrieve_params.rbi +18 -0
- data/rbi/lib/orb/models/subscription_change_retrieve_response.rbi +1581 -0
- data/rbi/lib/orb/models/subscription_create_params.rbi +1372 -1968
- data/rbi/lib/orb/models/subscription_create_response.rbi +224 -178
- data/rbi/lib/orb/models/subscription_fetch_costs_params.rbi +8 -10
- data/rbi/lib/orb/models/subscription_fetch_costs_response.rbi +6 -12
- data/rbi/lib/orb/models/subscription_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi +3 -6
- data/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi +6 -10
- data/rbi/lib/orb/models/subscription_fetch_usage_params.rbi +12 -17
- data/rbi/lib/orb/models/subscription_list_params.rbi +4 -8
- data/rbi/lib/orb/models/subscription_price_intervals_params.rbi +772 -1124
- data/rbi/lib/orb/models/subscription_price_intervals_response.rbi +228 -178
- data/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi +1396 -1993
- data/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +238 -182
- data/rbi/lib/orb/models/subscription_trigger_phase_params.rbi +5 -7
- data/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +224 -178
- data/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi +2 -4
- data/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +238 -182
- data/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +2 -4
- data/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +265 -199
- data/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +2 -4
- data/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +264 -198
- data/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi +11 -15
- data/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi +238 -182
- data/rbi/lib/orb/models/subscription_update_params.rbi +12 -15
- data/rbi/lib/orb/models/subscription_update_trial_params.rbi +6 -9
- data/rbi/lib/orb/models/subscription_update_trial_response.rbi +224 -178
- data/rbi/lib/orb/models/subscription_usage.rbi +24 -43
- data/rbi/lib/orb/models/subscriptions.rbi +2 -4
- data/rbi/lib/orb/models/top_level_ping_params.rbi +2 -4
- data/rbi/lib/orb/models/top_level_ping_response.rbi +2 -4
- data/rbi/lib/orb/models/trial_discount.rbi +4 -8
- data/rbi/lib/orb/models/usage_discount.rbi +5 -8
- data/rbi/lib/orb/request_options.rbi +9 -11
- data/rbi/lib/orb/resources/alerts.rbi +44 -60
- data/rbi/lib/orb/resources/coupons/subscriptions.rbi +6 -9
- data/rbi/lib/orb/resources/coupons.rbi +18 -25
- data/rbi/lib/orb/resources/credit_notes.rbi +9 -15
- data/rbi/lib/orb/resources/customers/balance_transactions.rbi +26 -31
- data/rbi/lib/orb/resources/customers/costs.rbi +241 -246
- data/rbi/lib/orb/resources/customers/credits/ledger.rbi +387 -396
- data/rbi/lib/orb/resources/customers/credits/top_ups.rbi +29 -40
- data/rbi/lib/orb/resources/customers/credits.rbi +15 -20
- data/rbi/lib/orb/resources/customers.rbi +407 -417
- data/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +2 -4
- data/rbi/lib/orb/resources/dimensional_price_groups.rbi +13 -19
- data/rbi/lib/orb/resources/events/backfills.rbi +61 -69
- data/rbi/lib/orb/resources/events/volume.rbi +19 -22
- data/rbi/lib/orb/resources/events.rbi +311 -319
- data/rbi/lib/orb/resources/invoice_line_items.rbi +4 -7
- data/rbi/lib/orb/resources/invoices.rbi +62 -76
- data/rbi/lib/orb/resources/items.rbi +7 -14
- data/rbi/lib/orb/resources/metrics.rbi +17 -25
- data/rbi/lib/orb/resources/plans/external_plan_id.rbi +21 -25
- data/rbi/lib/orb/resources/plans.rbi +63 -71
- data/rbi/lib/orb/resources/prices/external_price_id.rbi +9 -13
- data/rbi/lib/orb/resources/prices.rbi +77 -87
- data/rbi/lib/orb/resources/subscription_changes.rbi +61 -0
- data/rbi/lib/orb/resources/subscriptions.rbi +933 -963
- data/rbi/lib/orb/resources/top_level.rbi +6 -8
- data/rbi/lib/orb/version.rbi +1 -1
- data/sig/orb/client.rbs +2 -0
- data/sig/orb/internal/type/array_of.rbs +2 -2
- data/sig/orb/internal/type/{boolean_model.rbs → boolean.rbs} +1 -1
- data/sig/orb/internal/util.rbs +5 -5
- data/sig/orb/models/subscription.rbs +14 -0
- data/sig/orb/models/subscription_cancel_response.rbs +47 -2
- data/sig/orb/models/subscription_change_apply_params.rbs +24 -0
- data/sig/orb/models/subscription_change_apply_response.rbs +784 -0
- data/sig/orb/models/subscription_change_cancel_params.rbs +15 -0
- data/sig/orb/models/subscription_change_cancel_response.rbs +784 -0
- data/sig/orb/models/subscription_change_retrieve_params.rbs +15 -0
- data/sig/orb/models/subscription_change_retrieve_response.rbs +784 -0
- data/sig/orb/models/subscription_create_response.rbs +47 -2
- data/sig/orb/models/subscription_price_intervals_response.rbs +47 -2
- data/sig/orb/models/subscription_schedule_plan_change_response.rbs +47 -2
- data/sig/orb/models/subscription_trigger_phase_response.rbs +47 -2
- data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +47 -2
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +47 -2
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +47 -2
- data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +47 -2
- data/sig/orb/models/subscription_update_trial_response.rbs +47 -2
- data/sig/orb/resources/customers.rbs +2 -2
- data/sig/orb/resources/subscription_changes.rbs +24 -0
- data/sig/orb/version.rbs +1 -1
- metadata +26 -5
@@ -7,7 +7,7 @@ module Orb
|
|
7
7
|
include Orb::Internal::Type::RequestParameters
|
8
8
|
|
9
9
|
# An ISO 4217 currency string for invoices generated by subscriptions on this
|
10
|
-
#
|
10
|
+
# plan.
|
11
11
|
sig { returns(String) }
|
12
12
|
attr_accessor :currency
|
13
13
|
|
@@ -15,37 +15,37 @@ module Orb
|
|
15
15
|
attr_accessor :name
|
16
16
|
|
17
17
|
# Prices for this plan. If the plan has phases, this includes prices across all
|
18
|
-
#
|
18
|
+
# phases of the plan.
|
19
19
|
sig do
|
20
20
|
returns(
|
21
21
|
T::Array[
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
22
|
+
T.any(
|
23
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice,
|
24
|
+
Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice,
|
25
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice,
|
26
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice,
|
27
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice,
|
28
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice,
|
29
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice,
|
30
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice,
|
31
|
+
Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice,
|
32
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice,
|
33
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice,
|
34
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice,
|
35
|
+
Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice,
|
36
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice,
|
37
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice,
|
38
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice,
|
39
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice,
|
40
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice,
|
41
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice,
|
42
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice,
|
43
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice,
|
44
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice,
|
45
|
+
Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice,
|
46
|
+
Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice,
|
47
|
+
Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice
|
48
|
+
)
|
49
49
|
]
|
50
50
|
)
|
51
51
|
end
|
@@ -59,19 +59,19 @@ module Orb
|
|
59
59
|
attr_accessor :external_plan_id
|
60
60
|
|
61
61
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
62
|
-
#
|
63
|
-
#
|
62
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
63
|
+
# by setting `metadata` to `null`.
|
64
64
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
65
65
|
attr_accessor :metadata
|
66
66
|
|
67
67
|
# The net terms determines the difference between the invoice date and the issue
|
68
|
-
#
|
69
|
-
#
|
68
|
+
# date for the invoice. If you intend the invoice to be due on issue, set this
|
69
|
+
# to 0.
|
70
70
|
sig { returns(T.nilable(Integer)) }
|
71
71
|
attr_accessor :net_terms
|
72
72
|
|
73
73
|
# The status of the plan to create (either active or draft). If not specified,
|
74
|
-
#
|
74
|
+
# this defaults to active.
|
75
75
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Status::OrSymbol)) }
|
76
76
|
attr_reader :status
|
77
77
|
|
@@ -83,34 +83,34 @@ module Orb
|
|
83
83
|
currency: String,
|
84
84
|
name: String,
|
85
85
|
prices: T::Array[
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
86
|
+
T.any(
|
87
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice,
|
88
|
+
Orb::Internal::AnyHash,
|
89
|
+
Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice,
|
90
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice,
|
91
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice,
|
92
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice,
|
93
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice,
|
94
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice,
|
95
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice,
|
96
|
+
Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice,
|
97
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice,
|
98
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice,
|
99
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice,
|
100
|
+
Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice,
|
101
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice,
|
102
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice,
|
103
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice,
|
104
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice,
|
105
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice,
|
106
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice,
|
107
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice,
|
108
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice,
|
109
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice,
|
110
|
+
Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice,
|
111
|
+
Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice,
|
112
|
+
Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice
|
113
|
+
)
|
114
114
|
],
|
115
115
|
default_invoice_memo: T.nilable(String),
|
116
116
|
external_plan_id: T.nilable(String),
|
@@ -131,9 +131,7 @@ module Orb
|
|
131
131
|
net_terms: nil,
|
132
132
|
status: nil,
|
133
133
|
request_options: {}
|
134
|
-
)
|
135
|
-
end
|
136
|
-
|
134
|
+
); end
|
137
135
|
sig do
|
138
136
|
override
|
139
137
|
.returns(
|
@@ -141,33 +139,33 @@ module Orb
|
|
141
139
|
currency: String,
|
142
140
|
name: String,
|
143
141
|
prices: T::Array[
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
142
|
+
T.any(
|
143
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice,
|
144
|
+
Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice,
|
145
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice,
|
146
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice,
|
147
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice,
|
148
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice,
|
149
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice,
|
150
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice,
|
151
|
+
Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice,
|
152
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice,
|
153
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice,
|
154
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice,
|
155
|
+
Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice,
|
156
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice,
|
157
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice,
|
158
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice,
|
159
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice,
|
160
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice,
|
161
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice,
|
162
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice,
|
163
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice,
|
164
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice,
|
165
|
+
Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice,
|
166
|
+
Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice,
|
167
|
+
Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice
|
168
|
+
)
|
171
169
|
],
|
172
170
|
default_invoice_memo: T.nilable(String),
|
173
171
|
external_plan_id: T.nilable(String),
|
@@ -178,8 +176,7 @@ module Orb
|
|
178
176
|
}
|
179
177
|
)
|
180
178
|
end
|
181
|
-
def to_hash
|
182
|
-
end
|
179
|
+
def to_hash; end
|
183
180
|
|
184
181
|
module Price
|
185
182
|
extend Orb::Internal::Type::Union
|
@@ -212,17 +209,17 @@ module Orb
|
|
212
209
|
attr_writer :unit_config
|
213
210
|
|
214
211
|
# The id of the billable metric for the price. Only needed if the price is
|
215
|
-
#
|
212
|
+
# usage-based.
|
216
213
|
sig { returns(T.nilable(String)) }
|
217
214
|
attr_accessor :billable_metric_id
|
218
215
|
|
219
216
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
220
|
-
#
|
217
|
+
# this is true, and in-arrears if this is false.
|
221
218
|
sig { returns(T.nilable(T::Boolean)) }
|
222
219
|
attr_accessor :billed_in_advance
|
223
220
|
|
224
221
|
# For custom cadence: specifies the duration of the billing period in days or
|
225
|
-
#
|
222
|
+
# months.
|
226
223
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration)) }
|
227
224
|
attr_reader :billing_cycle_configuration
|
228
225
|
|
@@ -244,7 +241,7 @@ module Orb
|
|
244
241
|
attr_accessor :conversion_rate
|
245
242
|
|
246
243
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
247
|
-
#
|
244
|
+
# price is billed.
|
248
245
|
sig { returns(T.nilable(String)) }
|
249
246
|
attr_accessor :currency
|
250
247
|
|
@@ -253,7 +250,7 @@ module Orb
|
|
253
250
|
attr_accessor :external_price_id
|
254
251
|
|
255
252
|
# If the Price represents a fixed cost, this represents the quantity of units
|
256
|
-
#
|
253
|
+
# applied.
|
257
254
|
sig { returns(T.nilable(Float)) }
|
258
255
|
attr_accessor :fixed_price_quantity
|
259
256
|
|
@@ -262,7 +259,7 @@ module Orb
|
|
262
259
|
attr_accessor :invoice_grouping_key
|
263
260
|
|
264
261
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
265
|
-
#
|
262
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
266
263
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration)) }
|
267
264
|
attr_reader :invoicing_cycle_configuration
|
268
265
|
|
@@ -280,8 +277,8 @@ module Orb
|
|
280
277
|
attr_writer :invoicing_cycle_configuration
|
281
278
|
|
282
279
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
283
|
-
#
|
284
|
-
#
|
280
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
281
|
+
# by setting `metadata` to `null`.
|
285
282
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
286
283
|
attr_accessor :metadata
|
287
284
|
|
@@ -331,9 +328,7 @@ module Orb
|
|
331
328
|
invoicing_cycle_configuration: nil,
|
332
329
|
metadata: nil,
|
333
330
|
model_type: :unit
|
334
|
-
)
|
335
|
-
end
|
336
|
-
|
331
|
+
); end
|
337
332
|
sig do
|
338
333
|
override
|
339
334
|
.returns(
|
@@ -356,8 +351,7 @@ module Orb
|
|
356
351
|
}
|
357
352
|
)
|
358
353
|
end
|
359
|
-
def to_hash
|
360
|
-
end
|
354
|
+
def to_hash; end
|
361
355
|
|
362
356
|
# The cadence to bill for this price on.
|
363
357
|
module Cadence
|
@@ -379,8 +373,7 @@ module Orb
|
|
379
373
|
CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol)
|
380
374
|
|
381
375
|
sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol]) }
|
382
|
-
def self.values
|
383
|
-
end
|
376
|
+
def self.values; end
|
384
377
|
end
|
385
378
|
|
386
379
|
class UnitConfig < Orb::Internal::Type::BaseModel
|
@@ -389,12 +382,10 @@ module Orb
|
|
389
382
|
attr_accessor :unit_amount
|
390
383
|
|
391
384
|
sig { params(unit_amount: String).returns(T.attached_class) }
|
392
|
-
def self.new(unit_amount:)
|
393
|
-
end
|
385
|
+
def self.new(unit_amount:); end
|
394
386
|
|
395
387
|
sig { override.returns({unit_amount: String}) }
|
396
|
-
def to_hash
|
397
|
-
end
|
388
|
+
def to_hash; end
|
398
389
|
end
|
399
390
|
|
400
391
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -411,7 +402,7 @@ module Orb
|
|
411
402
|
attr_accessor :duration_unit
|
412
403
|
|
413
404
|
# For custom cadence: specifies the duration of the billing period in days or
|
414
|
-
#
|
405
|
+
# months.
|
415
406
|
sig do
|
416
407
|
params(
|
417
408
|
duration: Integer,
|
@@ -419,8 +410,7 @@ module Orb
|
|
419
410
|
)
|
420
411
|
.returns(T.attached_class)
|
421
412
|
end
|
422
|
-
def self.new(duration:, duration_unit:)
|
423
|
-
end
|
413
|
+
def self.new(duration:, duration_unit:); end
|
424
414
|
|
425
415
|
sig do
|
426
416
|
override
|
@@ -431,8 +421,7 @@ module Orb
|
|
431
421
|
}
|
432
422
|
)
|
433
423
|
end
|
434
|
-
def to_hash
|
435
|
-
end
|
424
|
+
def to_hash; end
|
436
425
|
|
437
426
|
# The unit of billing period duration.
|
438
427
|
module DurationUnit
|
@@ -466,12 +455,11 @@ module Orb
|
|
466
455
|
override
|
467
456
|
.returns(
|
468
457
|
T::Array[
|
469
|
-
|
458
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
470
459
|
]
|
471
460
|
)
|
472
461
|
end
|
473
|
-
def self.values
|
474
|
-
end
|
462
|
+
def self.values; end
|
475
463
|
end
|
476
464
|
end
|
477
465
|
|
@@ -489,7 +477,7 @@ module Orb
|
|
489
477
|
attr_accessor :duration_unit
|
490
478
|
|
491
479
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
492
|
-
#
|
480
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
493
481
|
sig do
|
494
482
|
params(
|
495
483
|
duration: Integer,
|
@@ -497,8 +485,7 @@ module Orb
|
|
497
485
|
)
|
498
486
|
.returns(T.attached_class)
|
499
487
|
end
|
500
|
-
def self.new(duration:, duration_unit:)
|
501
|
-
end
|
488
|
+
def self.new(duration:, duration_unit:); end
|
502
489
|
|
503
490
|
sig do
|
504
491
|
override
|
@@ -509,8 +496,7 @@ module Orb
|
|
509
496
|
}
|
510
497
|
)
|
511
498
|
end
|
512
|
-
def to_hash
|
513
|
-
end
|
499
|
+
def to_hash; end
|
514
500
|
|
515
501
|
# The unit of billing period duration.
|
516
502
|
module DurationUnit
|
@@ -544,12 +530,11 @@ module Orb
|
|
544
530
|
override
|
545
531
|
.returns(
|
546
532
|
T::Array[
|
547
|
-
|
533
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
548
534
|
]
|
549
535
|
)
|
550
536
|
end
|
551
|
-
def self.values
|
552
|
-
end
|
537
|
+
def self.values; end
|
553
538
|
end
|
554
539
|
end
|
555
540
|
end
|
@@ -582,17 +567,17 @@ module Orb
|
|
582
567
|
attr_writer :package_config
|
583
568
|
|
584
569
|
# The id of the billable metric for the price. Only needed if the price is
|
585
|
-
#
|
570
|
+
# usage-based.
|
586
571
|
sig { returns(T.nilable(String)) }
|
587
572
|
attr_accessor :billable_metric_id
|
588
573
|
|
589
574
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
590
|
-
#
|
575
|
+
# this is true, and in-arrears if this is false.
|
591
576
|
sig { returns(T.nilable(T::Boolean)) }
|
592
577
|
attr_accessor :billed_in_advance
|
593
578
|
|
594
579
|
# For custom cadence: specifies the duration of the billing period in days or
|
595
|
-
#
|
580
|
+
# months.
|
596
581
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration)) }
|
597
582
|
attr_reader :billing_cycle_configuration
|
598
583
|
|
@@ -614,7 +599,7 @@ module Orb
|
|
614
599
|
attr_accessor :conversion_rate
|
615
600
|
|
616
601
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
617
|
-
#
|
602
|
+
# price is billed.
|
618
603
|
sig { returns(T.nilable(String)) }
|
619
604
|
attr_accessor :currency
|
620
605
|
|
@@ -623,7 +608,7 @@ module Orb
|
|
623
608
|
attr_accessor :external_price_id
|
624
609
|
|
625
610
|
# If the Price represents a fixed cost, this represents the quantity of units
|
626
|
-
#
|
611
|
+
# applied.
|
627
612
|
sig { returns(T.nilable(Float)) }
|
628
613
|
attr_accessor :fixed_price_quantity
|
629
614
|
|
@@ -632,7 +617,7 @@ module Orb
|
|
632
617
|
attr_accessor :invoice_grouping_key
|
633
618
|
|
634
619
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
635
|
-
#
|
620
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
636
621
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration)) }
|
637
622
|
attr_reader :invoicing_cycle_configuration
|
638
623
|
|
@@ -650,8 +635,8 @@ module Orb
|
|
650
635
|
attr_writer :invoicing_cycle_configuration
|
651
636
|
|
652
637
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
653
|
-
#
|
654
|
-
#
|
638
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
639
|
+
# by setting `metadata` to `null`.
|
655
640
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
656
641
|
attr_accessor :metadata
|
657
642
|
|
@@ -701,9 +686,7 @@ module Orb
|
|
701
686
|
invoicing_cycle_configuration: nil,
|
702
687
|
metadata: nil,
|
703
688
|
model_type: :package
|
704
|
-
)
|
705
|
-
end
|
706
|
-
|
689
|
+
); end
|
707
690
|
sig do
|
708
691
|
override
|
709
692
|
.returns(
|
@@ -726,8 +709,7 @@ module Orb
|
|
726
709
|
}
|
727
710
|
)
|
728
711
|
end
|
729
|
-
def to_hash
|
730
|
-
end
|
712
|
+
def to_hash; end
|
731
713
|
|
732
714
|
# The cadence to bill for this price on.
|
733
715
|
module Cadence
|
@@ -753,8 +735,7 @@ module Orb
|
|
753
735
|
override
|
754
736
|
.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol])
|
755
737
|
end
|
756
|
-
def self.values
|
757
|
-
end
|
738
|
+
def self.values; end
|
758
739
|
end
|
759
740
|
|
760
741
|
class PackageConfig < Orb::Internal::Type::BaseModel
|
@@ -763,17 +744,15 @@ module Orb
|
|
763
744
|
attr_accessor :package_amount
|
764
745
|
|
765
746
|
# An integer amount to represent package size. For example, 1000 here would divide
|
766
|
-
#
|
747
|
+
# usage by 1000 before multiplying by package_amount in rating
|
767
748
|
sig { returns(Integer) }
|
768
749
|
attr_accessor :package_size
|
769
750
|
|
770
751
|
sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) }
|
771
|
-
def self.new(package_amount:, package_size:)
|
772
|
-
end
|
752
|
+
def self.new(package_amount:, package_size:); end
|
773
753
|
|
774
754
|
sig { override.returns({package_amount: String, package_size: Integer}) }
|
775
|
-
def to_hash
|
776
|
-
end
|
755
|
+
def to_hash; end
|
777
756
|
end
|
778
757
|
|
779
758
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -790,7 +769,7 @@ module Orb
|
|
790
769
|
attr_accessor :duration_unit
|
791
770
|
|
792
771
|
# For custom cadence: specifies the duration of the billing period in days or
|
793
|
-
#
|
772
|
+
# months.
|
794
773
|
sig do
|
795
774
|
params(
|
796
775
|
duration: Integer,
|
@@ -798,8 +777,7 @@ module Orb
|
|
798
777
|
)
|
799
778
|
.returns(T.attached_class)
|
800
779
|
end
|
801
|
-
def self.new(duration:, duration_unit:)
|
802
|
-
end
|
780
|
+
def self.new(duration:, duration_unit:); end
|
803
781
|
|
804
782
|
sig do
|
805
783
|
override
|
@@ -810,8 +788,7 @@ module Orb
|
|
810
788
|
}
|
811
789
|
)
|
812
790
|
end
|
813
|
-
def to_hash
|
814
|
-
end
|
791
|
+
def to_hash; end
|
815
792
|
|
816
793
|
# The unit of billing period duration.
|
817
794
|
module DurationUnit
|
@@ -845,12 +822,11 @@ module Orb
|
|
845
822
|
override
|
846
823
|
.returns(
|
847
824
|
T::Array[
|
848
|
-
|
825
|
+
Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
849
826
|
]
|
850
827
|
)
|
851
828
|
end
|
852
|
-
def self.values
|
853
|
-
end
|
829
|
+
def self.values; end
|
854
830
|
end
|
855
831
|
end
|
856
832
|
|
@@ -868,7 +844,7 @@ module Orb
|
|
868
844
|
attr_accessor :duration_unit
|
869
845
|
|
870
846
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
871
|
-
#
|
847
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
872
848
|
sig do
|
873
849
|
params(
|
874
850
|
duration: Integer,
|
@@ -876,8 +852,7 @@ module Orb
|
|
876
852
|
)
|
877
853
|
.returns(T.attached_class)
|
878
854
|
end
|
879
|
-
def self.new(duration:, duration_unit:)
|
880
|
-
end
|
855
|
+
def self.new(duration:, duration_unit:); end
|
881
856
|
|
882
857
|
sig do
|
883
858
|
override
|
@@ -888,8 +863,7 @@ module Orb
|
|
888
863
|
}
|
889
864
|
)
|
890
865
|
end
|
891
|
-
def to_hash
|
892
|
-
end
|
866
|
+
def to_hash; end
|
893
867
|
|
894
868
|
# The unit of billing period duration.
|
895
869
|
module DurationUnit
|
@@ -923,12 +897,11 @@ module Orb
|
|
923
897
|
override
|
924
898
|
.returns(
|
925
899
|
T::Array[
|
926
|
-
|
900
|
+
Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
927
901
|
]
|
928
902
|
)
|
929
903
|
end
|
930
|
-
def self.values
|
931
|
-
end
|
904
|
+
def self.values; end
|
932
905
|
end
|
933
906
|
end
|
934
907
|
end
|
@@ -961,17 +934,17 @@ module Orb
|
|
961
934
|
attr_accessor :name
|
962
935
|
|
963
936
|
# The id of the billable metric for the price. Only needed if the price is
|
964
|
-
#
|
937
|
+
# usage-based.
|
965
938
|
sig { returns(T.nilable(String)) }
|
966
939
|
attr_accessor :billable_metric_id
|
967
940
|
|
968
941
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
969
|
-
#
|
942
|
+
# this is true, and in-arrears if this is false.
|
970
943
|
sig { returns(T.nilable(T::Boolean)) }
|
971
944
|
attr_accessor :billed_in_advance
|
972
945
|
|
973
946
|
# For custom cadence: specifies the duration of the billing period in days or
|
974
|
-
#
|
947
|
+
# months.
|
975
948
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration)) }
|
976
949
|
attr_reader :billing_cycle_configuration
|
977
950
|
|
@@ -993,7 +966,7 @@ module Orb
|
|
993
966
|
attr_accessor :conversion_rate
|
994
967
|
|
995
968
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
996
|
-
#
|
969
|
+
# price is billed.
|
997
970
|
sig { returns(T.nilable(String)) }
|
998
971
|
attr_accessor :currency
|
999
972
|
|
@@ -1002,7 +975,7 @@ module Orb
|
|
1002
975
|
attr_accessor :external_price_id
|
1003
976
|
|
1004
977
|
# If the Price represents a fixed cost, this represents the quantity of units
|
1005
|
-
#
|
978
|
+
# applied.
|
1006
979
|
sig { returns(T.nilable(Float)) }
|
1007
980
|
attr_accessor :fixed_price_quantity
|
1008
981
|
|
@@ -1011,7 +984,7 @@ module Orb
|
|
1011
984
|
attr_accessor :invoice_grouping_key
|
1012
985
|
|
1013
986
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
1014
|
-
#
|
987
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
1015
988
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration)) }
|
1016
989
|
attr_reader :invoicing_cycle_configuration
|
1017
990
|
|
@@ -1029,8 +1002,8 @@ module Orb
|
|
1029
1002
|
attr_writer :invoicing_cycle_configuration
|
1030
1003
|
|
1031
1004
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
1032
|
-
#
|
1033
|
-
#
|
1005
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
1006
|
+
# by setting `metadata` to `null`.
|
1034
1007
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
1035
1008
|
attr_accessor :metadata
|
1036
1009
|
|
@@ -1080,9 +1053,7 @@ module Orb
|
|
1080
1053
|
invoicing_cycle_configuration: nil,
|
1081
1054
|
metadata: nil,
|
1082
1055
|
model_type: :matrix
|
1083
|
-
)
|
1084
|
-
end
|
1085
|
-
|
1056
|
+
); end
|
1086
1057
|
sig do
|
1087
1058
|
override
|
1088
1059
|
.returns(
|
@@ -1105,8 +1076,7 @@ module Orb
|
|
1105
1076
|
}
|
1106
1077
|
)
|
1107
1078
|
end
|
1108
|
-
def to_hash
|
1109
|
-
end
|
1079
|
+
def to_hash; end
|
1110
1080
|
|
1111
1081
|
# The cadence to bill for this price on.
|
1112
1082
|
module Cadence
|
@@ -1131,8 +1101,7 @@ module Orb
|
|
1131
1101
|
sig do
|
1132
1102
|
override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol])
|
1133
1103
|
end
|
1134
|
-
def self.values
|
1135
|
-
end
|
1104
|
+
def self.values; end
|
1136
1105
|
end
|
1137
1106
|
|
1138
1107
|
class MatrixConfig < Orb::Internal::Type::BaseModel
|
@@ -1153,16 +1122,15 @@ module Orb
|
|
1153
1122
|
default_unit_amount: String,
|
1154
1123
|
dimensions: T::Array[T.nilable(String)],
|
1155
1124
|
matrix_values: T::Array[
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1125
|
+
T.any(
|
1126
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue,
|
1127
|
+
Orb::Internal::AnyHash
|
1128
|
+
)
|
1160
1129
|
]
|
1161
1130
|
)
|
1162
1131
|
.returns(T.attached_class)
|
1163
1132
|
end
|
1164
|
-
def self.new(default_unit_amount:, dimensions:, matrix_values:)
|
1165
|
-
end
|
1133
|
+
def self.new(default_unit_amount:, dimensions:, matrix_values:); end
|
1166
1134
|
|
1167
1135
|
sig do
|
1168
1136
|
override
|
@@ -1174,13 +1142,12 @@ module Orb
|
|
1174
1142
|
}
|
1175
1143
|
)
|
1176
1144
|
end
|
1177
|
-
def to_hash
|
1178
|
-
end
|
1145
|
+
def to_hash; end
|
1179
1146
|
|
1180
1147
|
class MatrixValue < Orb::Internal::Type::BaseModel
|
1181
1148
|
# One or two matrix keys to filter usage to this Matrix value by. For example,
|
1182
|
-
#
|
1183
|
-
#
|
1149
|
+
# ["region", "tier"] could be used to filter cloud usage by a cloud region and an
|
1150
|
+
# instance tier.
|
1184
1151
|
sig { returns(T::Array[T.nilable(String)]) }
|
1185
1152
|
attr_accessor :dimension_values
|
1186
1153
|
|
@@ -1194,12 +1161,10 @@ module Orb
|
|
1194
1161
|
unit_amount: String
|
1195
1162
|
).returns(T.attached_class)
|
1196
1163
|
end
|
1197
|
-
def self.new(dimension_values:, unit_amount:)
|
1198
|
-
end
|
1164
|
+
def self.new(dimension_values:, unit_amount:); end
|
1199
1165
|
|
1200
1166
|
sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) }
|
1201
|
-
def to_hash
|
1202
|
-
end
|
1167
|
+
def to_hash; end
|
1203
1168
|
end
|
1204
1169
|
end
|
1205
1170
|
|
@@ -1217,7 +1182,7 @@ module Orb
|
|
1217
1182
|
attr_accessor :duration_unit
|
1218
1183
|
|
1219
1184
|
# For custom cadence: specifies the duration of the billing period in days or
|
1220
|
-
#
|
1185
|
+
# months.
|
1221
1186
|
sig do
|
1222
1187
|
params(
|
1223
1188
|
duration: Integer,
|
@@ -1225,8 +1190,7 @@ module Orb
|
|
1225
1190
|
)
|
1226
1191
|
.returns(T.attached_class)
|
1227
1192
|
end
|
1228
|
-
def self.new(duration:, duration_unit:)
|
1229
|
-
end
|
1193
|
+
def self.new(duration:, duration_unit:); end
|
1230
1194
|
|
1231
1195
|
sig do
|
1232
1196
|
override
|
@@ -1237,8 +1201,7 @@ module Orb
|
|
1237
1201
|
}
|
1238
1202
|
)
|
1239
1203
|
end
|
1240
|
-
def to_hash
|
1241
|
-
end
|
1204
|
+
def to_hash; end
|
1242
1205
|
|
1243
1206
|
# The unit of billing period duration.
|
1244
1207
|
module DurationUnit
|
@@ -1272,12 +1235,11 @@ module Orb
|
|
1272
1235
|
override
|
1273
1236
|
.returns(
|
1274
1237
|
T::Array[
|
1275
|
-
|
1238
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
1276
1239
|
]
|
1277
1240
|
)
|
1278
1241
|
end
|
1279
|
-
def self.values
|
1280
|
-
end
|
1242
|
+
def self.values; end
|
1281
1243
|
end
|
1282
1244
|
end
|
1283
1245
|
|
@@ -1295,7 +1257,7 @@ module Orb
|
|
1295
1257
|
attr_accessor :duration_unit
|
1296
1258
|
|
1297
1259
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
1298
|
-
#
|
1260
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
1299
1261
|
sig do
|
1300
1262
|
params(
|
1301
1263
|
duration: Integer,
|
@@ -1303,8 +1265,7 @@ module Orb
|
|
1303
1265
|
)
|
1304
1266
|
.returns(T.attached_class)
|
1305
1267
|
end
|
1306
|
-
def self.new(duration:, duration_unit:)
|
1307
|
-
end
|
1268
|
+
def self.new(duration:, duration_unit:); end
|
1308
1269
|
|
1309
1270
|
sig do
|
1310
1271
|
override
|
@@ -1315,8 +1276,7 @@ module Orb
|
|
1315
1276
|
}
|
1316
1277
|
)
|
1317
1278
|
end
|
1318
|
-
def to_hash
|
1319
|
-
end
|
1279
|
+
def to_hash; end
|
1320
1280
|
|
1321
1281
|
# The unit of billing period duration.
|
1322
1282
|
module DurationUnit
|
@@ -1350,12 +1310,11 @@ module Orb
|
|
1350
1310
|
override
|
1351
1311
|
.returns(
|
1352
1312
|
T::Array[
|
1353
|
-
|
1313
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
1354
1314
|
]
|
1355
1315
|
)
|
1356
1316
|
end
|
1357
|
-
def self.values
|
1358
|
-
end
|
1317
|
+
def self.values; end
|
1359
1318
|
end
|
1360
1319
|
end
|
1361
1320
|
end
|
@@ -1388,17 +1347,17 @@ module Orb
|
|
1388
1347
|
attr_writer :tiered_config
|
1389
1348
|
|
1390
1349
|
# The id of the billable metric for the price. Only needed if the price is
|
1391
|
-
#
|
1350
|
+
# usage-based.
|
1392
1351
|
sig { returns(T.nilable(String)) }
|
1393
1352
|
attr_accessor :billable_metric_id
|
1394
1353
|
|
1395
1354
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
1396
|
-
#
|
1355
|
+
# this is true, and in-arrears if this is false.
|
1397
1356
|
sig { returns(T.nilable(T::Boolean)) }
|
1398
1357
|
attr_accessor :billed_in_advance
|
1399
1358
|
|
1400
1359
|
# For custom cadence: specifies the duration of the billing period in days or
|
1401
|
-
#
|
1360
|
+
# months.
|
1402
1361
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration)) }
|
1403
1362
|
attr_reader :billing_cycle_configuration
|
1404
1363
|
|
@@ -1420,7 +1379,7 @@ module Orb
|
|
1420
1379
|
attr_accessor :conversion_rate
|
1421
1380
|
|
1422
1381
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
1423
|
-
#
|
1382
|
+
# price is billed.
|
1424
1383
|
sig { returns(T.nilable(String)) }
|
1425
1384
|
attr_accessor :currency
|
1426
1385
|
|
@@ -1429,7 +1388,7 @@ module Orb
|
|
1429
1388
|
attr_accessor :external_price_id
|
1430
1389
|
|
1431
1390
|
# If the Price represents a fixed cost, this represents the quantity of units
|
1432
|
-
#
|
1391
|
+
# applied.
|
1433
1392
|
sig { returns(T.nilable(Float)) }
|
1434
1393
|
attr_accessor :fixed_price_quantity
|
1435
1394
|
|
@@ -1438,7 +1397,7 @@ module Orb
|
|
1438
1397
|
attr_accessor :invoice_grouping_key
|
1439
1398
|
|
1440
1399
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
1441
|
-
#
|
1400
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
1442
1401
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration)) }
|
1443
1402
|
attr_reader :invoicing_cycle_configuration
|
1444
1403
|
|
@@ -1456,8 +1415,8 @@ module Orb
|
|
1456
1415
|
attr_writer :invoicing_cycle_configuration
|
1457
1416
|
|
1458
1417
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
1459
|
-
#
|
1460
|
-
#
|
1418
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
1419
|
+
# by setting `metadata` to `null`.
|
1461
1420
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
1462
1421
|
attr_accessor :metadata
|
1463
1422
|
|
@@ -1507,9 +1466,7 @@ module Orb
|
|
1507
1466
|
invoicing_cycle_configuration: nil,
|
1508
1467
|
metadata: nil,
|
1509
1468
|
model_type: :tiered
|
1510
|
-
)
|
1511
|
-
end
|
1512
|
-
|
1469
|
+
); end
|
1513
1470
|
sig do
|
1514
1471
|
override
|
1515
1472
|
.returns(
|
@@ -1532,8 +1489,7 @@ module Orb
|
|
1532
1489
|
}
|
1533
1490
|
)
|
1534
1491
|
end
|
1535
|
-
def to_hash
|
1536
|
-
end
|
1492
|
+
def to_hash; end
|
1537
1493
|
|
1538
1494
|
# The cadence to bill for this price on.
|
1539
1495
|
module Cadence
|
@@ -1558,8 +1514,7 @@ module Orb
|
|
1558
1514
|
sig do
|
1559
1515
|
override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol])
|
1560
1516
|
end
|
1561
|
-
def self.values
|
1562
|
-
end
|
1517
|
+
def self.values; end
|
1563
1518
|
end
|
1564
1519
|
|
1565
1520
|
class TieredConfig < Orb::Internal::Type::BaseModel
|
@@ -1570,26 +1525,24 @@ module Orb
|
|
1570
1525
|
sig do
|
1571
1526
|
params(
|
1572
1527
|
tiers: T::Array[
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1528
|
+
T.any(
|
1529
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier,
|
1530
|
+
Orb::Internal::AnyHash
|
1531
|
+
)
|
1577
1532
|
]
|
1578
1533
|
)
|
1579
1534
|
.returns(T.attached_class)
|
1580
1535
|
end
|
1581
|
-
def self.new(tiers:)
|
1582
|
-
end
|
1536
|
+
def self.new(tiers:); end
|
1583
1537
|
|
1584
1538
|
sig do
|
1585
1539
|
override
|
1586
1540
|
.returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]})
|
1587
1541
|
end
|
1588
|
-
def to_hash
|
1589
|
-
end
|
1542
|
+
def to_hash; end
|
1590
1543
|
|
1591
1544
|
class Tier < Orb::Internal::Type::BaseModel
|
1592
|
-
#
|
1545
|
+
# Exclusive tier starting value
|
1593
1546
|
sig { returns(Float) }
|
1594
1547
|
attr_accessor :first_unit
|
1595
1548
|
|
@@ -1597,7 +1550,7 @@ module Orb
|
|
1597
1550
|
sig { returns(String) }
|
1598
1551
|
attr_accessor :unit_amount
|
1599
1552
|
|
1600
|
-
#
|
1553
|
+
# Inclusive tier ending value. If null, this is treated as the last tier
|
1601
1554
|
sig { returns(T.nilable(Float)) }
|
1602
1555
|
attr_accessor :last_unit
|
1603
1556
|
|
@@ -1608,12 +1561,10 @@ module Orb
|
|
1608
1561
|
last_unit: T.nilable(Float)
|
1609
1562
|
).returns(T.attached_class)
|
1610
1563
|
end
|
1611
|
-
def self.new(first_unit:, unit_amount:, last_unit: nil)
|
1612
|
-
end
|
1564
|
+
def self.new(first_unit:, unit_amount:, last_unit: nil); end
|
1613
1565
|
|
1614
1566
|
sig { override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) }
|
1615
|
-
def to_hash
|
1616
|
-
end
|
1567
|
+
def to_hash; end
|
1617
1568
|
end
|
1618
1569
|
end
|
1619
1570
|
|
@@ -1631,7 +1582,7 @@ module Orb
|
|
1631
1582
|
attr_accessor :duration_unit
|
1632
1583
|
|
1633
1584
|
# For custom cadence: specifies the duration of the billing period in days or
|
1634
|
-
#
|
1585
|
+
# months.
|
1635
1586
|
sig do
|
1636
1587
|
params(
|
1637
1588
|
duration: Integer,
|
@@ -1639,8 +1590,7 @@ module Orb
|
|
1639
1590
|
)
|
1640
1591
|
.returns(T.attached_class)
|
1641
1592
|
end
|
1642
|
-
def self.new(duration:, duration_unit:)
|
1643
|
-
end
|
1593
|
+
def self.new(duration:, duration_unit:); end
|
1644
1594
|
|
1645
1595
|
sig do
|
1646
1596
|
override
|
@@ -1651,8 +1601,7 @@ module Orb
|
|
1651
1601
|
}
|
1652
1602
|
)
|
1653
1603
|
end
|
1654
|
-
def to_hash
|
1655
|
-
end
|
1604
|
+
def to_hash; end
|
1656
1605
|
|
1657
1606
|
# The unit of billing period duration.
|
1658
1607
|
module DurationUnit
|
@@ -1686,12 +1635,11 @@ module Orb
|
|
1686
1635
|
override
|
1687
1636
|
.returns(
|
1688
1637
|
T::Array[
|
1689
|
-
|
1638
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
1690
1639
|
]
|
1691
1640
|
)
|
1692
1641
|
end
|
1693
|
-
def self.values
|
1694
|
-
end
|
1642
|
+
def self.values; end
|
1695
1643
|
end
|
1696
1644
|
end
|
1697
1645
|
|
@@ -1709,7 +1657,7 @@ module Orb
|
|
1709
1657
|
attr_accessor :duration_unit
|
1710
1658
|
|
1711
1659
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
1712
|
-
#
|
1660
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
1713
1661
|
sig do
|
1714
1662
|
params(
|
1715
1663
|
duration: Integer,
|
@@ -1717,8 +1665,7 @@ module Orb
|
|
1717
1665
|
)
|
1718
1666
|
.returns(T.attached_class)
|
1719
1667
|
end
|
1720
|
-
def self.new(duration:, duration_unit:)
|
1721
|
-
end
|
1668
|
+
def self.new(duration:, duration_unit:); end
|
1722
1669
|
|
1723
1670
|
sig do
|
1724
1671
|
override
|
@@ -1729,8 +1676,7 @@ module Orb
|
|
1729
1676
|
}
|
1730
1677
|
)
|
1731
1678
|
end
|
1732
|
-
def to_hash
|
1733
|
-
end
|
1679
|
+
def to_hash; end
|
1734
1680
|
|
1735
1681
|
# The unit of billing period duration.
|
1736
1682
|
module DurationUnit
|
@@ -1764,12 +1710,11 @@ module Orb
|
|
1764
1710
|
override
|
1765
1711
|
.returns(
|
1766
1712
|
T::Array[
|
1767
|
-
|
1713
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
1768
1714
|
]
|
1769
1715
|
)
|
1770
1716
|
end
|
1771
|
-
def self.values
|
1772
|
-
end
|
1717
|
+
def self.values; end
|
1773
1718
|
end
|
1774
1719
|
end
|
1775
1720
|
end
|
@@ -1805,17 +1750,17 @@ module Orb
|
|
1805
1750
|
attr_writer :tiered_bps_config
|
1806
1751
|
|
1807
1752
|
# The id of the billable metric for the price. Only needed if the price is
|
1808
|
-
#
|
1753
|
+
# usage-based.
|
1809
1754
|
sig { returns(T.nilable(String)) }
|
1810
1755
|
attr_accessor :billable_metric_id
|
1811
1756
|
|
1812
1757
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
1813
|
-
#
|
1758
|
+
# this is true, and in-arrears if this is false.
|
1814
1759
|
sig { returns(T.nilable(T::Boolean)) }
|
1815
1760
|
attr_accessor :billed_in_advance
|
1816
1761
|
|
1817
1762
|
# For custom cadence: specifies the duration of the billing period in days or
|
1818
|
-
#
|
1763
|
+
# months.
|
1819
1764
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration)) }
|
1820
1765
|
attr_reader :billing_cycle_configuration
|
1821
1766
|
|
@@ -1837,7 +1782,7 @@ module Orb
|
|
1837
1782
|
attr_accessor :conversion_rate
|
1838
1783
|
|
1839
1784
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
1840
|
-
#
|
1785
|
+
# price is billed.
|
1841
1786
|
sig { returns(T.nilable(String)) }
|
1842
1787
|
attr_accessor :currency
|
1843
1788
|
|
@@ -1846,7 +1791,7 @@ module Orb
|
|
1846
1791
|
attr_accessor :external_price_id
|
1847
1792
|
|
1848
1793
|
# If the Price represents a fixed cost, this represents the quantity of units
|
1849
|
-
#
|
1794
|
+
# applied.
|
1850
1795
|
sig { returns(T.nilable(Float)) }
|
1851
1796
|
attr_accessor :fixed_price_quantity
|
1852
1797
|
|
@@ -1855,7 +1800,7 @@ module Orb
|
|
1855
1800
|
attr_accessor :invoice_grouping_key
|
1856
1801
|
|
1857
1802
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
1858
|
-
#
|
1803
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
1859
1804
|
sig do
|
1860
1805
|
returns(
|
1861
1806
|
T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration)
|
@@ -1877,8 +1822,8 @@ module Orb
|
|
1877
1822
|
attr_writer :invoicing_cycle_configuration
|
1878
1823
|
|
1879
1824
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
1880
|
-
#
|
1881
|
-
#
|
1825
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
1826
|
+
# by setting `metadata` to `null`.
|
1882
1827
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
1883
1828
|
attr_accessor :metadata
|
1884
1829
|
|
@@ -1931,9 +1876,7 @@ module Orb
|
|
1931
1876
|
invoicing_cycle_configuration: nil,
|
1932
1877
|
metadata: nil,
|
1933
1878
|
model_type: :tiered_bps
|
1934
|
-
)
|
1935
|
-
end
|
1936
|
-
|
1879
|
+
); end
|
1937
1880
|
sig do
|
1938
1881
|
override
|
1939
1882
|
.returns(
|
@@ -1956,8 +1899,7 @@ module Orb
|
|
1956
1899
|
}
|
1957
1900
|
)
|
1958
1901
|
end
|
1959
|
-
def to_hash
|
1960
|
-
end
|
1902
|
+
def to_hash; end
|
1961
1903
|
|
1962
1904
|
# The cadence to bill for this price on.
|
1963
1905
|
module Cadence
|
@@ -1985,29 +1927,27 @@ module Orb
|
|
1985
1927
|
override
|
1986
1928
|
.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol])
|
1987
1929
|
end
|
1988
|
-
def self.values
|
1989
|
-
end
|
1930
|
+
def self.values; end
|
1990
1931
|
end
|
1991
1932
|
|
1992
1933
|
class TieredBpsConfig < Orb::Internal::Type::BaseModel
|
1993
1934
|
# Tiers for a Graduated BPS pricing model, where usage is bucketed into specified
|
1994
|
-
#
|
1935
|
+
# tiers
|
1995
1936
|
sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]) }
|
1996
1937
|
attr_accessor :tiers
|
1997
1938
|
|
1998
1939
|
sig do
|
1999
1940
|
params(
|
2000
1941
|
tiers: T::Array[
|
2001
|
-
|
2002
|
-
|
2003
|
-
|
2004
|
-
|
1942
|
+
T.any(
|
1943
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier,
|
1944
|
+
Orb::Internal::AnyHash
|
1945
|
+
)
|
2005
1946
|
]
|
2006
1947
|
)
|
2007
1948
|
.returns(T.attached_class)
|
2008
1949
|
end
|
2009
|
-
def self.new(tiers:)
|
2010
|
-
end
|
1950
|
+
def self.new(tiers:); end
|
2011
1951
|
|
2012
1952
|
sig do
|
2013
1953
|
override
|
@@ -2015,19 +1955,18 @@ module Orb
|
|
2015
1955
|
{tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]}
|
2016
1956
|
)
|
2017
1957
|
end
|
2018
|
-
def to_hash
|
2019
|
-
end
|
1958
|
+
def to_hash; end
|
2020
1959
|
|
2021
1960
|
class Tier < Orb::Internal::Type::BaseModel
|
2022
1961
|
# Per-event basis point rate
|
2023
1962
|
sig { returns(Float) }
|
2024
1963
|
attr_accessor :bps
|
2025
1964
|
|
2026
|
-
#
|
1965
|
+
# Exclusive tier starting value
|
2027
1966
|
sig { returns(String) }
|
2028
1967
|
attr_accessor :minimum_amount
|
2029
1968
|
|
2030
|
-
#
|
1969
|
+
# Inclusive tier ending value
|
2031
1970
|
sig { returns(T.nilable(String)) }
|
2032
1971
|
attr_accessor :maximum_amount
|
2033
1972
|
|
@@ -2044,8 +1983,7 @@ module Orb
|
|
2044
1983
|
)
|
2045
1984
|
.returns(T.attached_class)
|
2046
1985
|
end
|
2047
|
-
def self.new(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil)
|
2048
|
-
end
|
1986
|
+
def self.new(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil); end
|
2049
1987
|
|
2050
1988
|
sig do
|
2051
1989
|
override
|
@@ -2058,8 +1996,7 @@ module Orb
|
|
2058
1996
|
}
|
2059
1997
|
)
|
2060
1998
|
end
|
2061
|
-
def to_hash
|
2062
|
-
end
|
1999
|
+
def to_hash; end
|
2063
2000
|
end
|
2064
2001
|
end
|
2065
2002
|
|
@@ -2077,7 +2014,7 @@ module Orb
|
|
2077
2014
|
attr_accessor :duration_unit
|
2078
2015
|
|
2079
2016
|
# For custom cadence: specifies the duration of the billing period in days or
|
2080
|
-
#
|
2017
|
+
# months.
|
2081
2018
|
sig do
|
2082
2019
|
params(
|
2083
2020
|
duration: Integer,
|
@@ -2085,8 +2022,7 @@ module Orb
|
|
2085
2022
|
)
|
2086
2023
|
.returns(T.attached_class)
|
2087
2024
|
end
|
2088
|
-
def self.new(duration:, duration_unit:)
|
2089
|
-
end
|
2025
|
+
def self.new(duration:, duration_unit:); end
|
2090
2026
|
|
2091
2027
|
sig do
|
2092
2028
|
override
|
@@ -2097,8 +2033,7 @@ module Orb
|
|
2097
2033
|
}
|
2098
2034
|
)
|
2099
2035
|
end
|
2100
|
-
def to_hash
|
2101
|
-
end
|
2036
|
+
def to_hash; end
|
2102
2037
|
|
2103
2038
|
# The unit of billing period duration.
|
2104
2039
|
module DurationUnit
|
@@ -2132,12 +2067,11 @@ module Orb
|
|
2132
2067
|
override
|
2133
2068
|
.returns(
|
2134
2069
|
T::Array[
|
2135
|
-
|
2070
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
2136
2071
|
]
|
2137
2072
|
)
|
2138
2073
|
end
|
2139
|
-
def self.values
|
2140
|
-
end
|
2074
|
+
def self.values; end
|
2141
2075
|
end
|
2142
2076
|
end
|
2143
2077
|
|
@@ -2155,7 +2089,7 @@ module Orb
|
|
2155
2089
|
attr_accessor :duration_unit
|
2156
2090
|
|
2157
2091
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
2158
|
-
#
|
2092
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
2159
2093
|
sig do
|
2160
2094
|
params(
|
2161
2095
|
duration: Integer,
|
@@ -2163,8 +2097,7 @@ module Orb
|
|
2163
2097
|
)
|
2164
2098
|
.returns(T.attached_class)
|
2165
2099
|
end
|
2166
|
-
def self.new(duration:, duration_unit:)
|
2167
|
-
end
|
2100
|
+
def self.new(duration:, duration_unit:); end
|
2168
2101
|
|
2169
2102
|
sig do
|
2170
2103
|
override
|
@@ -2175,8 +2108,7 @@ module Orb
|
|
2175
2108
|
}
|
2176
2109
|
)
|
2177
2110
|
end
|
2178
|
-
def to_hash
|
2179
|
-
end
|
2111
|
+
def to_hash; end
|
2180
2112
|
|
2181
2113
|
# The unit of billing period duration.
|
2182
2114
|
module DurationUnit
|
@@ -2210,12 +2142,11 @@ module Orb
|
|
2210
2142
|
override
|
2211
2143
|
.returns(
|
2212
2144
|
T::Array[
|
2213
|
-
|
2145
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
2214
2146
|
]
|
2215
2147
|
)
|
2216
2148
|
end
|
2217
|
-
def self.values
|
2218
|
-
end
|
2149
|
+
def self.values; end
|
2219
2150
|
end
|
2220
2151
|
end
|
2221
2152
|
end
|
@@ -2248,17 +2179,17 @@ module Orb
|
|
2248
2179
|
attr_accessor :name
|
2249
2180
|
|
2250
2181
|
# The id of the billable metric for the price. Only needed if the price is
|
2251
|
-
#
|
2182
|
+
# usage-based.
|
2252
2183
|
sig { returns(T.nilable(String)) }
|
2253
2184
|
attr_accessor :billable_metric_id
|
2254
2185
|
|
2255
2186
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
2256
|
-
#
|
2187
|
+
# this is true, and in-arrears if this is false.
|
2257
2188
|
sig { returns(T.nilable(T::Boolean)) }
|
2258
2189
|
attr_accessor :billed_in_advance
|
2259
2190
|
|
2260
2191
|
# For custom cadence: specifies the duration of the billing period in days or
|
2261
|
-
#
|
2192
|
+
# months.
|
2262
2193
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration)) }
|
2263
2194
|
attr_reader :billing_cycle_configuration
|
2264
2195
|
|
@@ -2280,7 +2211,7 @@ module Orb
|
|
2280
2211
|
attr_accessor :conversion_rate
|
2281
2212
|
|
2282
2213
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
2283
|
-
#
|
2214
|
+
# price is billed.
|
2284
2215
|
sig { returns(T.nilable(String)) }
|
2285
2216
|
attr_accessor :currency
|
2286
2217
|
|
@@ -2289,7 +2220,7 @@ module Orb
|
|
2289
2220
|
attr_accessor :external_price_id
|
2290
2221
|
|
2291
2222
|
# If the Price represents a fixed cost, this represents the quantity of units
|
2292
|
-
#
|
2223
|
+
# applied.
|
2293
2224
|
sig { returns(T.nilable(Float)) }
|
2294
2225
|
attr_accessor :fixed_price_quantity
|
2295
2226
|
|
@@ -2298,7 +2229,7 @@ module Orb
|
|
2298
2229
|
attr_accessor :invoice_grouping_key
|
2299
2230
|
|
2300
2231
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
2301
|
-
#
|
2232
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
2302
2233
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration)) }
|
2303
2234
|
attr_reader :invoicing_cycle_configuration
|
2304
2235
|
|
@@ -2316,8 +2247,8 @@ module Orb
|
|
2316
2247
|
attr_writer :invoicing_cycle_configuration
|
2317
2248
|
|
2318
2249
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
2319
|
-
#
|
2320
|
-
#
|
2250
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
2251
|
+
# by setting `metadata` to `null`.
|
2321
2252
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
2322
2253
|
attr_accessor :metadata
|
2323
2254
|
|
@@ -2367,9 +2298,7 @@ module Orb
|
|
2367
2298
|
invoicing_cycle_configuration: nil,
|
2368
2299
|
metadata: nil,
|
2369
2300
|
model_type: :bps
|
2370
|
-
)
|
2371
|
-
end
|
2372
|
-
|
2301
|
+
); end
|
2373
2302
|
sig do
|
2374
2303
|
override
|
2375
2304
|
.returns(
|
@@ -2392,8 +2321,7 @@ module Orb
|
|
2392
2321
|
}
|
2393
2322
|
)
|
2394
2323
|
end
|
2395
|
-
def to_hash
|
2396
|
-
end
|
2324
|
+
def to_hash; end
|
2397
2325
|
|
2398
2326
|
class BpsConfig < Orb::Internal::Type::BaseModel
|
2399
2327
|
# Basis point take rate per event
|
@@ -2405,12 +2333,10 @@ module Orb
|
|
2405
2333
|
attr_accessor :per_unit_maximum
|
2406
2334
|
|
2407
2335
|
sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) }
|
2408
|
-
def self.new(bps:, per_unit_maximum: nil)
|
2409
|
-
end
|
2336
|
+
def self.new(bps:, per_unit_maximum: nil); end
|
2410
2337
|
|
2411
2338
|
sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) }
|
2412
|
-
def to_hash
|
2413
|
-
end
|
2339
|
+
def to_hash; end
|
2414
2340
|
end
|
2415
2341
|
|
2416
2342
|
# The cadence to bill for this price on.
|
@@ -2432,8 +2358,7 @@ module Orb
|
|
2432
2358
|
CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol)
|
2433
2359
|
|
2434
2360
|
sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol]) }
|
2435
|
-
def self.values
|
2436
|
-
end
|
2361
|
+
def self.values; end
|
2437
2362
|
end
|
2438
2363
|
|
2439
2364
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -2450,7 +2375,7 @@ module Orb
|
|
2450
2375
|
attr_accessor :duration_unit
|
2451
2376
|
|
2452
2377
|
# For custom cadence: specifies the duration of the billing period in days or
|
2453
|
-
#
|
2378
|
+
# months.
|
2454
2379
|
sig do
|
2455
2380
|
params(
|
2456
2381
|
duration: Integer,
|
@@ -2458,8 +2383,7 @@ module Orb
|
|
2458
2383
|
)
|
2459
2384
|
.returns(T.attached_class)
|
2460
2385
|
end
|
2461
|
-
def self.new(duration:, duration_unit:)
|
2462
|
-
end
|
2386
|
+
def self.new(duration:, duration_unit:); end
|
2463
2387
|
|
2464
2388
|
sig do
|
2465
2389
|
override
|
@@ -2470,8 +2394,7 @@ module Orb
|
|
2470
2394
|
}
|
2471
2395
|
)
|
2472
2396
|
end
|
2473
|
-
def to_hash
|
2474
|
-
end
|
2397
|
+
def to_hash; end
|
2475
2398
|
|
2476
2399
|
# The unit of billing period duration.
|
2477
2400
|
module DurationUnit
|
@@ -2505,12 +2428,11 @@ module Orb
|
|
2505
2428
|
override
|
2506
2429
|
.returns(
|
2507
2430
|
T::Array[
|
2508
|
-
|
2431
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
2509
2432
|
]
|
2510
2433
|
)
|
2511
2434
|
end
|
2512
|
-
def self.values
|
2513
|
-
end
|
2435
|
+
def self.values; end
|
2514
2436
|
end
|
2515
2437
|
end
|
2516
2438
|
|
@@ -2528,7 +2450,7 @@ module Orb
|
|
2528
2450
|
attr_accessor :duration_unit
|
2529
2451
|
|
2530
2452
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
2531
|
-
#
|
2453
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
2532
2454
|
sig do
|
2533
2455
|
params(
|
2534
2456
|
duration: Integer,
|
@@ -2536,8 +2458,7 @@ module Orb
|
|
2536
2458
|
)
|
2537
2459
|
.returns(T.attached_class)
|
2538
2460
|
end
|
2539
|
-
def self.new(duration:, duration_unit:)
|
2540
|
-
end
|
2461
|
+
def self.new(duration:, duration_unit:); end
|
2541
2462
|
|
2542
2463
|
sig do
|
2543
2464
|
override
|
@@ -2548,8 +2469,7 @@ module Orb
|
|
2548
2469
|
}
|
2549
2470
|
)
|
2550
2471
|
end
|
2551
|
-
def to_hash
|
2552
|
-
end
|
2472
|
+
def to_hash; end
|
2553
2473
|
|
2554
2474
|
# The unit of billing period duration.
|
2555
2475
|
module DurationUnit
|
@@ -2583,12 +2503,11 @@ module Orb
|
|
2583
2503
|
override
|
2584
2504
|
.returns(
|
2585
2505
|
T::Array[
|
2586
|
-
|
2506
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
2587
2507
|
]
|
2588
2508
|
)
|
2589
2509
|
end
|
2590
|
-
def self.values
|
2591
|
-
end
|
2510
|
+
def self.values; end
|
2592
2511
|
end
|
2593
2512
|
end
|
2594
2513
|
end
|
@@ -2621,17 +2540,17 @@ module Orb
|
|
2621
2540
|
attr_accessor :name
|
2622
2541
|
|
2623
2542
|
# The id of the billable metric for the price. Only needed if the price is
|
2624
|
-
#
|
2543
|
+
# usage-based.
|
2625
2544
|
sig { returns(T.nilable(String)) }
|
2626
2545
|
attr_accessor :billable_metric_id
|
2627
2546
|
|
2628
2547
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
2629
|
-
#
|
2548
|
+
# this is true, and in-arrears if this is false.
|
2630
2549
|
sig { returns(T.nilable(T::Boolean)) }
|
2631
2550
|
attr_accessor :billed_in_advance
|
2632
2551
|
|
2633
2552
|
# For custom cadence: specifies the duration of the billing period in days or
|
2634
|
-
#
|
2553
|
+
# months.
|
2635
2554
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration)) }
|
2636
2555
|
attr_reader :billing_cycle_configuration
|
2637
2556
|
|
@@ -2653,7 +2572,7 @@ module Orb
|
|
2653
2572
|
attr_accessor :conversion_rate
|
2654
2573
|
|
2655
2574
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
2656
|
-
#
|
2575
|
+
# price is billed.
|
2657
2576
|
sig { returns(T.nilable(String)) }
|
2658
2577
|
attr_accessor :currency
|
2659
2578
|
|
@@ -2662,7 +2581,7 @@ module Orb
|
|
2662
2581
|
attr_accessor :external_price_id
|
2663
2582
|
|
2664
2583
|
# If the Price represents a fixed cost, this represents the quantity of units
|
2665
|
-
#
|
2584
|
+
# applied.
|
2666
2585
|
sig { returns(T.nilable(Float)) }
|
2667
2586
|
attr_accessor :fixed_price_quantity
|
2668
2587
|
|
@@ -2671,7 +2590,7 @@ module Orb
|
|
2671
2590
|
attr_accessor :invoice_grouping_key
|
2672
2591
|
|
2673
2592
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
2674
|
-
#
|
2593
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
2675
2594
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration)) }
|
2676
2595
|
attr_reader :invoicing_cycle_configuration
|
2677
2596
|
|
@@ -2689,8 +2608,8 @@ module Orb
|
|
2689
2608
|
attr_writer :invoicing_cycle_configuration
|
2690
2609
|
|
2691
2610
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
2692
|
-
#
|
2693
|
-
#
|
2611
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
2612
|
+
# by setting `metadata` to `null`.
|
2694
2613
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
2695
2614
|
attr_accessor :metadata
|
2696
2615
|
|
@@ -2740,9 +2659,7 @@ module Orb
|
|
2740
2659
|
invoicing_cycle_configuration: nil,
|
2741
2660
|
metadata: nil,
|
2742
2661
|
model_type: :bulk_bps
|
2743
|
-
)
|
2744
|
-
end
|
2745
|
-
|
2662
|
+
); end
|
2746
2663
|
sig do
|
2747
2664
|
override
|
2748
2665
|
.returns(
|
@@ -2765,35 +2682,32 @@ module Orb
|
|
2765
2682
|
}
|
2766
2683
|
)
|
2767
2684
|
end
|
2768
|
-
def to_hash
|
2769
|
-
end
|
2685
|
+
def to_hash; end
|
2770
2686
|
|
2771
2687
|
class BulkBpsConfig < Orb::Internal::Type::BaseModel
|
2772
2688
|
# Tiers for a bulk BPS pricing model where all usage is aggregated to a single
|
2773
|
-
#
|
2689
|
+
# tier based on total volume
|
2774
2690
|
sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]) }
|
2775
2691
|
attr_accessor :tiers
|
2776
2692
|
|
2777
2693
|
sig do
|
2778
2694
|
params(
|
2779
2695
|
tiers: T::Array[
|
2780
|
-
|
2781
|
-
|
2782
|
-
|
2783
|
-
|
2696
|
+
T.any(
|
2697
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier,
|
2698
|
+
Orb::Internal::AnyHash
|
2699
|
+
)
|
2784
2700
|
]
|
2785
2701
|
)
|
2786
2702
|
.returns(T.attached_class)
|
2787
2703
|
end
|
2788
|
-
def self.new(tiers:)
|
2789
|
-
end
|
2704
|
+
def self.new(tiers:); end
|
2790
2705
|
|
2791
2706
|
sig do
|
2792
2707
|
override
|
2793
2708
|
.returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]})
|
2794
2709
|
end
|
2795
|
-
def to_hash
|
2796
|
-
end
|
2710
|
+
def to_hash; end
|
2797
2711
|
|
2798
2712
|
class Tier < Orb::Internal::Type::BaseModel
|
2799
2713
|
# Basis points to rate on
|
@@ -2812,8 +2726,7 @@ module Orb
|
|
2812
2726
|
params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String))
|
2813
2727
|
.returns(T.attached_class)
|
2814
2728
|
end
|
2815
|
-
def self.new(bps:, maximum_amount: nil, per_unit_maximum: nil)
|
2816
|
-
end
|
2729
|
+
def self.new(bps:, maximum_amount: nil, per_unit_maximum: nil); end
|
2817
2730
|
|
2818
2731
|
sig do
|
2819
2732
|
override.returns(
|
@@ -2824,8 +2737,7 @@ module Orb
|
|
2824
2737
|
}
|
2825
2738
|
)
|
2826
2739
|
end
|
2827
|
-
def to_hash
|
2828
|
-
end
|
2740
|
+
def to_hash; end
|
2829
2741
|
end
|
2830
2742
|
end
|
2831
2743
|
|
@@ -2853,8 +2765,7 @@ module Orb
|
|
2853
2765
|
override
|
2854
2766
|
.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol])
|
2855
2767
|
end
|
2856
|
-
def self.values
|
2857
|
-
end
|
2768
|
+
def self.values; end
|
2858
2769
|
end
|
2859
2770
|
|
2860
2771
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -2871,7 +2782,7 @@ module Orb
|
|
2871
2782
|
attr_accessor :duration_unit
|
2872
2783
|
|
2873
2784
|
# For custom cadence: specifies the duration of the billing period in days or
|
2874
|
-
#
|
2785
|
+
# months.
|
2875
2786
|
sig do
|
2876
2787
|
params(
|
2877
2788
|
duration: Integer,
|
@@ -2879,8 +2790,7 @@ module Orb
|
|
2879
2790
|
)
|
2880
2791
|
.returns(T.attached_class)
|
2881
2792
|
end
|
2882
|
-
def self.new(duration:, duration_unit:)
|
2883
|
-
end
|
2793
|
+
def self.new(duration:, duration_unit:); end
|
2884
2794
|
|
2885
2795
|
sig do
|
2886
2796
|
override
|
@@ -2891,8 +2801,7 @@ module Orb
|
|
2891
2801
|
}
|
2892
2802
|
)
|
2893
2803
|
end
|
2894
|
-
def to_hash
|
2895
|
-
end
|
2804
|
+
def to_hash; end
|
2896
2805
|
|
2897
2806
|
# The unit of billing period duration.
|
2898
2807
|
module DurationUnit
|
@@ -2926,12 +2835,11 @@ module Orb
|
|
2926
2835
|
override
|
2927
2836
|
.returns(
|
2928
2837
|
T::Array[
|
2929
|
-
|
2838
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
2930
2839
|
]
|
2931
2840
|
)
|
2932
2841
|
end
|
2933
|
-
def self.values
|
2934
|
-
end
|
2842
|
+
def self.values; end
|
2935
2843
|
end
|
2936
2844
|
end
|
2937
2845
|
|
@@ -2949,7 +2857,7 @@ module Orb
|
|
2949
2857
|
attr_accessor :duration_unit
|
2950
2858
|
|
2951
2859
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
2952
|
-
#
|
2860
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
2953
2861
|
sig do
|
2954
2862
|
params(
|
2955
2863
|
duration: Integer,
|
@@ -2957,8 +2865,7 @@ module Orb
|
|
2957
2865
|
)
|
2958
2866
|
.returns(T.attached_class)
|
2959
2867
|
end
|
2960
|
-
def self.new(duration:, duration_unit:)
|
2961
|
-
end
|
2868
|
+
def self.new(duration:, duration_unit:); end
|
2962
2869
|
|
2963
2870
|
sig do
|
2964
2871
|
override
|
@@ -2969,8 +2876,7 @@ module Orb
|
|
2969
2876
|
}
|
2970
2877
|
)
|
2971
2878
|
end
|
2972
|
-
def to_hash
|
2973
|
-
end
|
2879
|
+
def to_hash; end
|
2974
2880
|
|
2975
2881
|
# The unit of billing period duration.
|
2976
2882
|
module DurationUnit
|
@@ -3004,12 +2910,11 @@ module Orb
|
|
3004
2910
|
override
|
3005
2911
|
.returns(
|
3006
2912
|
T::Array[
|
3007
|
-
|
2913
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
3008
2914
|
]
|
3009
2915
|
)
|
3010
2916
|
end
|
3011
|
-
def self.values
|
3012
|
-
end
|
2917
|
+
def self.values; end
|
3013
2918
|
end
|
3014
2919
|
end
|
3015
2920
|
end
|
@@ -3042,17 +2947,17 @@ module Orb
|
|
3042
2947
|
attr_accessor :name
|
3043
2948
|
|
3044
2949
|
# The id of the billable metric for the price. Only needed if the price is
|
3045
|
-
#
|
2950
|
+
# usage-based.
|
3046
2951
|
sig { returns(T.nilable(String)) }
|
3047
2952
|
attr_accessor :billable_metric_id
|
3048
2953
|
|
3049
2954
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
3050
|
-
#
|
2955
|
+
# this is true, and in-arrears if this is false.
|
3051
2956
|
sig { returns(T.nilable(T::Boolean)) }
|
3052
2957
|
attr_accessor :billed_in_advance
|
3053
2958
|
|
3054
2959
|
# For custom cadence: specifies the duration of the billing period in days or
|
3055
|
-
#
|
2960
|
+
# months.
|
3056
2961
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration)) }
|
3057
2962
|
attr_reader :billing_cycle_configuration
|
3058
2963
|
|
@@ -3074,7 +2979,7 @@ module Orb
|
|
3074
2979
|
attr_accessor :conversion_rate
|
3075
2980
|
|
3076
2981
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
3077
|
-
#
|
2982
|
+
# price is billed.
|
3078
2983
|
sig { returns(T.nilable(String)) }
|
3079
2984
|
attr_accessor :currency
|
3080
2985
|
|
@@ -3083,7 +2988,7 @@ module Orb
|
|
3083
2988
|
attr_accessor :external_price_id
|
3084
2989
|
|
3085
2990
|
# If the Price represents a fixed cost, this represents the quantity of units
|
3086
|
-
#
|
2991
|
+
# applied.
|
3087
2992
|
sig { returns(T.nilable(Float)) }
|
3088
2993
|
attr_accessor :fixed_price_quantity
|
3089
2994
|
|
@@ -3092,7 +2997,7 @@ module Orb
|
|
3092
2997
|
attr_accessor :invoice_grouping_key
|
3093
2998
|
|
3094
2999
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
3095
|
-
#
|
3000
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
3096
3001
|
sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration)) }
|
3097
3002
|
attr_reader :invoicing_cycle_configuration
|
3098
3003
|
|
@@ -3110,8 +3015,8 @@ module Orb
|
|
3110
3015
|
attr_writer :invoicing_cycle_configuration
|
3111
3016
|
|
3112
3017
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
3113
|
-
#
|
3114
|
-
#
|
3018
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
3019
|
+
# by setting `metadata` to `null`.
|
3115
3020
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
3116
3021
|
attr_accessor :metadata
|
3117
3022
|
|
@@ -3161,9 +3066,7 @@ module Orb
|
|
3161
3066
|
invoicing_cycle_configuration: nil,
|
3162
3067
|
metadata: nil,
|
3163
3068
|
model_type: :bulk
|
3164
|
-
)
|
3165
|
-
end
|
3166
|
-
|
3069
|
+
); end
|
3167
3070
|
sig do
|
3168
3071
|
override
|
3169
3072
|
.returns(
|
@@ -3186,8 +3089,7 @@ module Orb
|
|
3186
3089
|
}
|
3187
3090
|
)
|
3188
3091
|
end
|
3189
|
-
def to_hash
|
3190
|
-
end
|
3092
|
+
def to_hash; end
|
3191
3093
|
|
3192
3094
|
class BulkConfig < Orb::Internal::Type::BaseModel
|
3193
3095
|
# Bulk tiers for rating based on total usage volume
|
@@ -3200,15 +3102,13 @@ module Orb
|
|
3200
3102
|
)
|
3201
3103
|
.returns(T.attached_class)
|
3202
3104
|
end
|
3203
|
-
def self.new(tiers:)
|
3204
|
-
end
|
3105
|
+
def self.new(tiers:); end
|
3205
3106
|
|
3206
3107
|
sig do
|
3207
3108
|
override
|
3208
3109
|
.returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]})
|
3209
3110
|
end
|
3210
|
-
def to_hash
|
3211
|
-
end
|
3111
|
+
def to_hash; end
|
3212
3112
|
|
3213
3113
|
class Tier < Orb::Internal::Type::BaseModel
|
3214
3114
|
# Amount per unit
|
@@ -3220,12 +3120,10 @@ module Orb
|
|
3220
3120
|
attr_accessor :maximum_units
|
3221
3121
|
|
3222
3122
|
sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) }
|
3223
|
-
def self.new(unit_amount:, maximum_units: nil)
|
3224
|
-
end
|
3123
|
+
def self.new(unit_amount:, maximum_units: nil); end
|
3225
3124
|
|
3226
3125
|
sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) }
|
3227
|
-
def to_hash
|
3228
|
-
end
|
3126
|
+
def to_hash; end
|
3229
3127
|
end
|
3230
3128
|
end
|
3231
3129
|
|
@@ -3249,8 +3147,7 @@ module Orb
|
|
3249
3147
|
CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol)
|
3250
3148
|
|
3251
3149
|
sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol]) }
|
3252
|
-
def self.values
|
3253
|
-
end
|
3150
|
+
def self.values; end
|
3254
3151
|
end
|
3255
3152
|
|
3256
3153
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -3267,7 +3164,7 @@ module Orb
|
|
3267
3164
|
attr_accessor :duration_unit
|
3268
3165
|
|
3269
3166
|
# For custom cadence: specifies the duration of the billing period in days or
|
3270
|
-
#
|
3167
|
+
# months.
|
3271
3168
|
sig do
|
3272
3169
|
params(
|
3273
3170
|
duration: Integer,
|
@@ -3275,8 +3172,7 @@ module Orb
|
|
3275
3172
|
)
|
3276
3173
|
.returns(T.attached_class)
|
3277
3174
|
end
|
3278
|
-
def self.new(duration:, duration_unit:)
|
3279
|
-
end
|
3175
|
+
def self.new(duration:, duration_unit:); end
|
3280
3176
|
|
3281
3177
|
sig do
|
3282
3178
|
override
|
@@ -3287,8 +3183,7 @@ module Orb
|
|
3287
3183
|
}
|
3288
3184
|
)
|
3289
3185
|
end
|
3290
|
-
def to_hash
|
3291
|
-
end
|
3186
|
+
def to_hash; end
|
3292
3187
|
|
3293
3188
|
# The unit of billing period duration.
|
3294
3189
|
module DurationUnit
|
@@ -3322,12 +3217,11 @@ module Orb
|
|
3322
3217
|
override
|
3323
3218
|
.returns(
|
3324
3219
|
T::Array[
|
3325
|
-
|
3220
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
3326
3221
|
]
|
3327
3222
|
)
|
3328
3223
|
end
|
3329
|
-
def self.values
|
3330
|
-
end
|
3224
|
+
def self.values; end
|
3331
3225
|
end
|
3332
3226
|
end
|
3333
3227
|
|
@@ -3345,7 +3239,7 @@ module Orb
|
|
3345
3239
|
attr_accessor :duration_unit
|
3346
3240
|
|
3347
3241
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
3348
|
-
#
|
3242
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
3349
3243
|
sig do
|
3350
3244
|
params(
|
3351
3245
|
duration: Integer,
|
@@ -3353,8 +3247,7 @@ module Orb
|
|
3353
3247
|
)
|
3354
3248
|
.returns(T.attached_class)
|
3355
3249
|
end
|
3356
|
-
def self.new(duration:, duration_unit:)
|
3357
|
-
end
|
3250
|
+
def self.new(duration:, duration_unit:); end
|
3358
3251
|
|
3359
3252
|
sig do
|
3360
3253
|
override
|
@@ -3365,8 +3258,7 @@ module Orb
|
|
3365
3258
|
}
|
3366
3259
|
)
|
3367
3260
|
end
|
3368
|
-
def to_hash
|
3369
|
-
end
|
3261
|
+
def to_hash; end
|
3370
3262
|
|
3371
3263
|
# The unit of billing period duration.
|
3372
3264
|
module DurationUnit
|
@@ -3400,12 +3292,11 @@ module Orb
|
|
3400
3292
|
override
|
3401
3293
|
.returns(
|
3402
3294
|
T::Array[
|
3403
|
-
|
3295
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
3404
3296
|
]
|
3405
3297
|
)
|
3406
3298
|
end
|
3407
|
-
def self.values
|
3408
|
-
end
|
3299
|
+
def self.values; end
|
3409
3300
|
end
|
3410
3301
|
end
|
3411
3302
|
end
|
@@ -3430,17 +3321,17 @@ module Orb
|
|
3430
3321
|
attr_accessor :threshold_total_amount_config
|
3431
3322
|
|
3432
3323
|
# The id of the billable metric for the price. Only needed if the price is
|
3433
|
-
#
|
3324
|
+
# usage-based.
|
3434
3325
|
sig { returns(T.nilable(String)) }
|
3435
3326
|
attr_accessor :billable_metric_id
|
3436
3327
|
|
3437
3328
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
3438
|
-
#
|
3329
|
+
# this is true, and in-arrears if this is false.
|
3439
3330
|
sig { returns(T.nilable(T::Boolean)) }
|
3440
3331
|
attr_accessor :billed_in_advance
|
3441
3332
|
|
3442
3333
|
# For custom cadence: specifies the duration of the billing period in days or
|
3443
|
-
#
|
3334
|
+
# months.
|
3444
3335
|
sig do
|
3445
3336
|
returns(
|
3446
3337
|
T.nilable(
|
@@ -3468,7 +3359,7 @@ module Orb
|
|
3468
3359
|
attr_accessor :conversion_rate
|
3469
3360
|
|
3470
3361
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
3471
|
-
#
|
3362
|
+
# price is billed.
|
3472
3363
|
sig { returns(T.nilable(String)) }
|
3473
3364
|
attr_accessor :currency
|
3474
3365
|
|
@@ -3477,7 +3368,7 @@ module Orb
|
|
3477
3368
|
attr_accessor :external_price_id
|
3478
3369
|
|
3479
3370
|
# If the Price represents a fixed cost, this represents the quantity of units
|
3480
|
-
#
|
3371
|
+
# applied.
|
3481
3372
|
sig { returns(T.nilable(Float)) }
|
3482
3373
|
attr_accessor :fixed_price_quantity
|
3483
3374
|
|
@@ -3486,7 +3377,7 @@ module Orb
|
|
3486
3377
|
attr_accessor :invoice_grouping_key
|
3487
3378
|
|
3488
3379
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
3489
|
-
#
|
3380
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
3490
3381
|
sig do
|
3491
3382
|
returns(
|
3492
3383
|
T.nilable(
|
@@ -3510,8 +3401,8 @@ module Orb
|
|
3510
3401
|
attr_writer :invoicing_cycle_configuration
|
3511
3402
|
|
3512
3403
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
3513
|
-
#
|
3514
|
-
#
|
3404
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
3405
|
+
# by setting `metadata` to `null`.
|
3515
3406
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
3516
3407
|
attr_accessor :metadata
|
3517
3408
|
|
@@ -3561,9 +3452,7 @@ module Orb
|
|
3561
3452
|
invoicing_cycle_configuration: nil,
|
3562
3453
|
metadata: nil,
|
3563
3454
|
model_type: :threshold_total_amount
|
3564
|
-
)
|
3565
|
-
end
|
3566
|
-
|
3455
|
+
); end
|
3567
3456
|
sig do
|
3568
3457
|
override
|
3569
3458
|
.returns(
|
@@ -3590,8 +3479,7 @@ module Orb
|
|
3590
3479
|
}
|
3591
3480
|
)
|
3592
3481
|
end
|
3593
|
-
def to_hash
|
3594
|
-
end
|
3482
|
+
def to_hash; end
|
3595
3483
|
|
3596
3484
|
# The cadence to bill for this price on.
|
3597
3485
|
module Cadence
|
@@ -3645,8 +3533,7 @@ module Orb
|
|
3645
3533
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol]
|
3646
3534
|
)
|
3647
3535
|
end
|
3648
|
-
def self.values
|
3649
|
-
end
|
3536
|
+
def self.values; end
|
3650
3537
|
end
|
3651
3538
|
|
3652
3539
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -3663,7 +3550,7 @@ module Orb
|
|
3663
3550
|
attr_accessor :duration_unit
|
3664
3551
|
|
3665
3552
|
# For custom cadence: specifies the duration of the billing period in days or
|
3666
|
-
#
|
3553
|
+
# months.
|
3667
3554
|
sig do
|
3668
3555
|
params(
|
3669
3556
|
duration: Integer,
|
@@ -3671,8 +3558,7 @@ module Orb
|
|
3671
3558
|
)
|
3672
3559
|
.returns(T.attached_class)
|
3673
3560
|
end
|
3674
|
-
def self.new(duration:, duration_unit:)
|
3675
|
-
end
|
3561
|
+
def self.new(duration:, duration_unit:); end
|
3676
3562
|
|
3677
3563
|
sig do
|
3678
3564
|
override
|
@@ -3683,8 +3569,7 @@ module Orb
|
|
3683
3569
|
}
|
3684
3570
|
)
|
3685
3571
|
end
|
3686
|
-
def to_hash
|
3687
|
-
end
|
3572
|
+
def to_hash; end
|
3688
3573
|
|
3689
3574
|
# The unit of billing period duration.
|
3690
3575
|
module DurationUnit
|
@@ -3718,12 +3603,11 @@ module Orb
|
|
3718
3603
|
override
|
3719
3604
|
.returns(
|
3720
3605
|
T::Array[
|
3721
|
-
|
3606
|
+
Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
3722
3607
|
]
|
3723
3608
|
)
|
3724
3609
|
end
|
3725
|
-
def self.values
|
3726
|
-
end
|
3610
|
+
def self.values; end
|
3727
3611
|
end
|
3728
3612
|
end
|
3729
3613
|
|
@@ -3741,7 +3625,7 @@ module Orb
|
|
3741
3625
|
attr_accessor :duration_unit
|
3742
3626
|
|
3743
3627
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
3744
|
-
#
|
3628
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
3745
3629
|
sig do
|
3746
3630
|
params(
|
3747
3631
|
duration: Integer,
|
@@ -3749,8 +3633,7 @@ module Orb
|
|
3749
3633
|
)
|
3750
3634
|
.returns(T.attached_class)
|
3751
3635
|
end
|
3752
|
-
def self.new(duration:, duration_unit:)
|
3753
|
-
end
|
3636
|
+
def self.new(duration:, duration_unit:); end
|
3754
3637
|
|
3755
3638
|
sig do
|
3756
3639
|
override
|
@@ -3761,8 +3644,7 @@ module Orb
|
|
3761
3644
|
}
|
3762
3645
|
)
|
3763
3646
|
end
|
3764
|
-
def to_hash
|
3765
|
-
end
|
3647
|
+
def to_hash; end
|
3766
3648
|
|
3767
3649
|
# The unit of billing period duration.
|
3768
3650
|
module DurationUnit
|
@@ -3796,12 +3678,11 @@ module Orb
|
|
3796
3678
|
override
|
3797
3679
|
.returns(
|
3798
3680
|
T::Array[
|
3799
|
-
|
3681
|
+
Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
3800
3682
|
]
|
3801
3683
|
)
|
3802
3684
|
end
|
3803
|
-
def self.values
|
3804
|
-
end
|
3685
|
+
def self.values; end
|
3805
3686
|
end
|
3806
3687
|
end
|
3807
3688
|
end
|
@@ -3826,17 +3707,17 @@ module Orb
|
|
3826
3707
|
attr_accessor :tiered_package_config
|
3827
3708
|
|
3828
3709
|
# The id of the billable metric for the price. Only needed if the price is
|
3829
|
-
#
|
3710
|
+
# usage-based.
|
3830
3711
|
sig { returns(T.nilable(String)) }
|
3831
3712
|
attr_accessor :billable_metric_id
|
3832
3713
|
|
3833
3714
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
3834
|
-
#
|
3715
|
+
# this is true, and in-arrears if this is false.
|
3835
3716
|
sig { returns(T.nilable(T::Boolean)) }
|
3836
3717
|
attr_accessor :billed_in_advance
|
3837
3718
|
|
3838
3719
|
# For custom cadence: specifies the duration of the billing period in days or
|
3839
|
-
#
|
3720
|
+
# months.
|
3840
3721
|
sig do
|
3841
3722
|
returns(
|
3842
3723
|
T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration)
|
@@ -3862,7 +3743,7 @@ module Orb
|
|
3862
3743
|
attr_accessor :conversion_rate
|
3863
3744
|
|
3864
3745
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
3865
|
-
#
|
3746
|
+
# price is billed.
|
3866
3747
|
sig { returns(T.nilable(String)) }
|
3867
3748
|
attr_accessor :currency
|
3868
3749
|
|
@@ -3871,7 +3752,7 @@ module Orb
|
|
3871
3752
|
attr_accessor :external_price_id
|
3872
3753
|
|
3873
3754
|
# If the Price represents a fixed cost, this represents the quantity of units
|
3874
|
-
#
|
3755
|
+
# applied.
|
3875
3756
|
sig { returns(T.nilable(Float)) }
|
3876
3757
|
attr_accessor :fixed_price_quantity
|
3877
3758
|
|
@@ -3880,7 +3761,7 @@ module Orb
|
|
3880
3761
|
attr_accessor :invoice_grouping_key
|
3881
3762
|
|
3882
3763
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
3883
|
-
#
|
3764
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
3884
3765
|
sig do
|
3885
3766
|
returns(
|
3886
3767
|
T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration)
|
@@ -3902,8 +3783,8 @@ module Orb
|
|
3902
3783
|
attr_writer :invoicing_cycle_configuration
|
3903
3784
|
|
3904
3785
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
3905
|
-
#
|
3906
|
-
#
|
3786
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
3787
|
+
# by setting `metadata` to `null`.
|
3907
3788
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
3908
3789
|
attr_accessor :metadata
|
3909
3790
|
|
@@ -3953,9 +3834,7 @@ module Orb
|
|
3953
3834
|
invoicing_cycle_configuration: nil,
|
3954
3835
|
metadata: nil,
|
3955
3836
|
model_type: :tiered_package
|
3956
|
-
)
|
3957
|
-
end
|
3958
|
-
|
3837
|
+
); end
|
3959
3838
|
sig do
|
3960
3839
|
override
|
3961
3840
|
.returns(
|
@@ -3978,8 +3857,7 @@ module Orb
|
|
3978
3857
|
}
|
3979
3858
|
)
|
3980
3859
|
end
|
3981
|
-
def to_hash
|
3982
|
-
end
|
3860
|
+
def to_hash; end
|
3983
3861
|
|
3984
3862
|
# The cadence to bill for this price on.
|
3985
3863
|
module Cadence
|
@@ -4016,8 +3894,7 @@ module Orb
|
|
4016
3894
|
override
|
4017
3895
|
.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol])
|
4018
3896
|
end
|
4019
|
-
def self.values
|
4020
|
-
end
|
3897
|
+
def self.values; end
|
4021
3898
|
end
|
4022
3899
|
|
4023
3900
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -4034,7 +3911,7 @@ module Orb
|
|
4034
3911
|
attr_accessor :duration_unit
|
4035
3912
|
|
4036
3913
|
# For custom cadence: specifies the duration of the billing period in days or
|
4037
|
-
#
|
3914
|
+
# months.
|
4038
3915
|
sig do
|
4039
3916
|
params(
|
4040
3917
|
duration: Integer,
|
@@ -4042,8 +3919,7 @@ module Orb
|
|
4042
3919
|
)
|
4043
3920
|
.returns(T.attached_class)
|
4044
3921
|
end
|
4045
|
-
def self.new(duration:, duration_unit:)
|
4046
|
-
end
|
3922
|
+
def self.new(duration:, duration_unit:); end
|
4047
3923
|
|
4048
3924
|
sig do
|
4049
3925
|
override
|
@@ -4054,8 +3930,7 @@ module Orb
|
|
4054
3930
|
}
|
4055
3931
|
)
|
4056
3932
|
end
|
4057
|
-
def to_hash
|
4058
|
-
end
|
3933
|
+
def to_hash; end
|
4059
3934
|
|
4060
3935
|
# The unit of billing period duration.
|
4061
3936
|
module DurationUnit
|
@@ -4089,12 +3964,11 @@ module Orb
|
|
4089
3964
|
override
|
4090
3965
|
.returns(
|
4091
3966
|
T::Array[
|
4092
|
-
|
3967
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
4093
3968
|
]
|
4094
3969
|
)
|
4095
3970
|
end
|
4096
|
-
def self.values
|
4097
|
-
end
|
3971
|
+
def self.values; end
|
4098
3972
|
end
|
4099
3973
|
end
|
4100
3974
|
|
@@ -4112,7 +3986,7 @@ module Orb
|
|
4112
3986
|
attr_accessor :duration_unit
|
4113
3987
|
|
4114
3988
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
4115
|
-
#
|
3989
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
4116
3990
|
sig do
|
4117
3991
|
params(
|
4118
3992
|
duration: Integer,
|
@@ -4120,8 +3994,7 @@ module Orb
|
|
4120
3994
|
)
|
4121
3995
|
.returns(T.attached_class)
|
4122
3996
|
end
|
4123
|
-
def self.new(duration:, duration_unit:)
|
4124
|
-
end
|
3997
|
+
def self.new(duration:, duration_unit:); end
|
4125
3998
|
|
4126
3999
|
sig do
|
4127
4000
|
override
|
@@ -4132,8 +4005,7 @@ module Orb
|
|
4132
4005
|
}
|
4133
4006
|
)
|
4134
4007
|
end
|
4135
|
-
def to_hash
|
4136
|
-
end
|
4008
|
+
def to_hash; end
|
4137
4009
|
|
4138
4010
|
# The unit of billing period duration.
|
4139
4011
|
module DurationUnit
|
@@ -4167,12 +4039,11 @@ module Orb
|
|
4167
4039
|
override
|
4168
4040
|
.returns(
|
4169
4041
|
T::Array[
|
4170
|
-
|
4042
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
4171
4043
|
]
|
4172
4044
|
)
|
4173
4045
|
end
|
4174
|
-
def self.values
|
4175
|
-
end
|
4046
|
+
def self.values; end
|
4176
4047
|
end
|
4177
4048
|
end
|
4178
4049
|
end
|
@@ -4197,17 +4068,17 @@ module Orb
|
|
4197
4068
|
attr_accessor :tiered_with_minimum_config
|
4198
4069
|
|
4199
4070
|
# The id of the billable metric for the price. Only needed if the price is
|
4200
|
-
#
|
4071
|
+
# usage-based.
|
4201
4072
|
sig { returns(T.nilable(String)) }
|
4202
4073
|
attr_accessor :billable_metric_id
|
4203
4074
|
|
4204
4075
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
4205
|
-
#
|
4076
|
+
# this is true, and in-arrears if this is false.
|
4206
4077
|
sig { returns(T.nilable(T::Boolean)) }
|
4207
4078
|
attr_accessor :billed_in_advance
|
4208
4079
|
|
4209
4080
|
# For custom cadence: specifies the duration of the billing period in days or
|
4210
|
-
#
|
4081
|
+
# months.
|
4211
4082
|
sig do
|
4212
4083
|
returns(
|
4213
4084
|
T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration)
|
@@ -4233,7 +4104,7 @@ module Orb
|
|
4233
4104
|
attr_accessor :conversion_rate
|
4234
4105
|
|
4235
4106
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
4236
|
-
#
|
4107
|
+
# price is billed.
|
4237
4108
|
sig { returns(T.nilable(String)) }
|
4238
4109
|
attr_accessor :currency
|
4239
4110
|
|
@@ -4242,7 +4113,7 @@ module Orb
|
|
4242
4113
|
attr_accessor :external_price_id
|
4243
4114
|
|
4244
4115
|
# If the Price represents a fixed cost, this represents the quantity of units
|
4245
|
-
#
|
4116
|
+
# applied.
|
4246
4117
|
sig { returns(T.nilable(Float)) }
|
4247
4118
|
attr_accessor :fixed_price_quantity
|
4248
4119
|
|
@@ -4251,7 +4122,7 @@ module Orb
|
|
4251
4122
|
attr_accessor :invoice_grouping_key
|
4252
4123
|
|
4253
4124
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
4254
|
-
#
|
4125
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
4255
4126
|
sig do
|
4256
4127
|
returns(
|
4257
4128
|
T.nilable(
|
@@ -4275,8 +4146,8 @@ module Orb
|
|
4275
4146
|
attr_writer :invoicing_cycle_configuration
|
4276
4147
|
|
4277
4148
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
4278
|
-
#
|
4279
|
-
#
|
4149
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
4150
|
+
# by setting `metadata` to `null`.
|
4280
4151
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
4281
4152
|
attr_accessor :metadata
|
4282
4153
|
|
@@ -4326,9 +4197,7 @@ module Orb
|
|
4326
4197
|
invoicing_cycle_configuration: nil,
|
4327
4198
|
metadata: nil,
|
4328
4199
|
model_type: :tiered_with_minimum
|
4329
|
-
)
|
4330
|
-
end
|
4331
|
-
|
4200
|
+
); end
|
4332
4201
|
sig do
|
4333
4202
|
override
|
4334
4203
|
.returns(
|
@@ -4353,8 +4222,7 @@ module Orb
|
|
4353
4222
|
}
|
4354
4223
|
)
|
4355
4224
|
end
|
4356
|
-
def to_hash
|
4357
|
-
end
|
4225
|
+
def to_hash; end
|
4358
4226
|
|
4359
4227
|
# The cadence to bill for this price on.
|
4360
4228
|
module Cadence
|
@@ -4402,8 +4270,7 @@ module Orb
|
|
4402
4270
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol]
|
4403
4271
|
)
|
4404
4272
|
end
|
4405
|
-
def self.values
|
4406
|
-
end
|
4273
|
+
def self.values; end
|
4407
4274
|
end
|
4408
4275
|
|
4409
4276
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -4420,7 +4287,7 @@ module Orb
|
|
4420
4287
|
attr_accessor :duration_unit
|
4421
4288
|
|
4422
4289
|
# For custom cadence: specifies the duration of the billing period in days or
|
4423
|
-
#
|
4290
|
+
# months.
|
4424
4291
|
sig do
|
4425
4292
|
params(
|
4426
4293
|
duration: Integer,
|
@@ -4428,8 +4295,7 @@ module Orb
|
|
4428
4295
|
)
|
4429
4296
|
.returns(T.attached_class)
|
4430
4297
|
end
|
4431
|
-
def self.new(duration:, duration_unit:)
|
4432
|
-
end
|
4298
|
+
def self.new(duration:, duration_unit:); end
|
4433
4299
|
|
4434
4300
|
sig do
|
4435
4301
|
override
|
@@ -4440,8 +4306,7 @@ module Orb
|
|
4440
4306
|
}
|
4441
4307
|
)
|
4442
4308
|
end
|
4443
|
-
def to_hash
|
4444
|
-
end
|
4309
|
+
def to_hash; end
|
4445
4310
|
|
4446
4311
|
# The unit of billing period duration.
|
4447
4312
|
module DurationUnit
|
@@ -4475,12 +4340,11 @@ module Orb
|
|
4475
4340
|
override
|
4476
4341
|
.returns(
|
4477
4342
|
T::Array[
|
4478
|
-
|
4343
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
4479
4344
|
]
|
4480
4345
|
)
|
4481
4346
|
end
|
4482
|
-
def self.values
|
4483
|
-
end
|
4347
|
+
def self.values; end
|
4484
4348
|
end
|
4485
4349
|
end
|
4486
4350
|
|
@@ -4498,7 +4362,7 @@ module Orb
|
|
4498
4362
|
attr_accessor :duration_unit
|
4499
4363
|
|
4500
4364
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
4501
|
-
#
|
4365
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
4502
4366
|
sig do
|
4503
4367
|
params(
|
4504
4368
|
duration: Integer,
|
@@ -4506,8 +4370,7 @@ module Orb
|
|
4506
4370
|
)
|
4507
4371
|
.returns(T.attached_class)
|
4508
4372
|
end
|
4509
|
-
def self.new(duration:, duration_unit:)
|
4510
|
-
end
|
4373
|
+
def self.new(duration:, duration_unit:); end
|
4511
4374
|
|
4512
4375
|
sig do
|
4513
4376
|
override
|
@@ -4518,8 +4381,7 @@ module Orb
|
|
4518
4381
|
}
|
4519
4382
|
)
|
4520
4383
|
end
|
4521
|
-
def to_hash
|
4522
|
-
end
|
4384
|
+
def to_hash; end
|
4523
4385
|
|
4524
4386
|
# The unit of billing period duration.
|
4525
4387
|
module DurationUnit
|
@@ -4553,12 +4415,11 @@ module Orb
|
|
4553
4415
|
override
|
4554
4416
|
.returns(
|
4555
4417
|
T::Array[
|
4556
|
-
|
4418
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
4557
4419
|
]
|
4558
4420
|
)
|
4559
4421
|
end
|
4560
|
-
def self.values
|
4561
|
-
end
|
4422
|
+
def self.values; end
|
4562
4423
|
end
|
4563
4424
|
end
|
4564
4425
|
end
|
@@ -4583,17 +4444,17 @@ module Orb
|
|
4583
4444
|
attr_accessor :unit_with_percent_config
|
4584
4445
|
|
4585
4446
|
# The id of the billable metric for the price. Only needed if the price is
|
4586
|
-
#
|
4447
|
+
# usage-based.
|
4587
4448
|
sig { returns(T.nilable(String)) }
|
4588
4449
|
attr_accessor :billable_metric_id
|
4589
4450
|
|
4590
4451
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
4591
|
-
#
|
4452
|
+
# this is true, and in-arrears if this is false.
|
4592
4453
|
sig { returns(T.nilable(T::Boolean)) }
|
4593
4454
|
attr_accessor :billed_in_advance
|
4594
4455
|
|
4595
4456
|
# For custom cadence: specifies the duration of the billing period in days or
|
4596
|
-
#
|
4457
|
+
# months.
|
4597
4458
|
sig do
|
4598
4459
|
returns(
|
4599
4460
|
T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration)
|
@@ -4619,7 +4480,7 @@ module Orb
|
|
4619
4480
|
attr_accessor :conversion_rate
|
4620
4481
|
|
4621
4482
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
4622
|
-
#
|
4483
|
+
# price is billed.
|
4623
4484
|
sig { returns(T.nilable(String)) }
|
4624
4485
|
attr_accessor :currency
|
4625
4486
|
|
@@ -4628,7 +4489,7 @@ module Orb
|
|
4628
4489
|
attr_accessor :external_price_id
|
4629
4490
|
|
4630
4491
|
# If the Price represents a fixed cost, this represents the quantity of units
|
4631
|
-
#
|
4492
|
+
# applied.
|
4632
4493
|
sig { returns(T.nilable(Float)) }
|
4633
4494
|
attr_accessor :fixed_price_quantity
|
4634
4495
|
|
@@ -4637,7 +4498,7 @@ module Orb
|
|
4637
4498
|
attr_accessor :invoice_grouping_key
|
4638
4499
|
|
4639
4500
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
4640
|
-
#
|
4501
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
4641
4502
|
sig do
|
4642
4503
|
returns(
|
4643
4504
|
T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration)
|
@@ -4659,8 +4520,8 @@ module Orb
|
|
4659
4520
|
attr_writer :invoicing_cycle_configuration
|
4660
4521
|
|
4661
4522
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
4662
|
-
#
|
4663
|
-
#
|
4523
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
4524
|
+
# by setting `metadata` to `null`.
|
4664
4525
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
4665
4526
|
attr_accessor :metadata
|
4666
4527
|
|
@@ -4710,9 +4571,7 @@ module Orb
|
|
4710
4571
|
invoicing_cycle_configuration: nil,
|
4711
4572
|
metadata: nil,
|
4712
4573
|
model_type: :unit_with_percent
|
4713
|
-
)
|
4714
|
-
end
|
4715
|
-
|
4574
|
+
); end
|
4716
4575
|
sig do
|
4717
4576
|
override
|
4718
4577
|
.returns(
|
@@ -4735,8 +4594,7 @@ module Orb
|
|
4735
4594
|
}
|
4736
4595
|
)
|
4737
4596
|
end
|
4738
|
-
def to_hash
|
4739
|
-
end
|
4597
|
+
def to_hash; end
|
4740
4598
|
|
4741
4599
|
# The cadence to bill for this price on.
|
4742
4600
|
module Cadence
|
@@ -4778,8 +4636,7 @@ module Orb
|
|
4778
4636
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol]
|
4779
4637
|
)
|
4780
4638
|
end
|
4781
|
-
def self.values
|
4782
|
-
end
|
4639
|
+
def self.values; end
|
4783
4640
|
end
|
4784
4641
|
|
4785
4642
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -4796,7 +4653,7 @@ module Orb
|
|
4796
4653
|
attr_accessor :duration_unit
|
4797
4654
|
|
4798
4655
|
# For custom cadence: specifies the duration of the billing period in days or
|
4799
|
-
#
|
4656
|
+
# months.
|
4800
4657
|
sig do
|
4801
4658
|
params(
|
4802
4659
|
duration: Integer,
|
@@ -4804,8 +4661,7 @@ module Orb
|
|
4804
4661
|
)
|
4805
4662
|
.returns(T.attached_class)
|
4806
4663
|
end
|
4807
|
-
def self.new(duration:, duration_unit:)
|
4808
|
-
end
|
4664
|
+
def self.new(duration:, duration_unit:); end
|
4809
4665
|
|
4810
4666
|
sig do
|
4811
4667
|
override
|
@@ -4816,8 +4672,7 @@ module Orb
|
|
4816
4672
|
}
|
4817
4673
|
)
|
4818
4674
|
end
|
4819
|
-
def to_hash
|
4820
|
-
end
|
4675
|
+
def to_hash; end
|
4821
4676
|
|
4822
4677
|
# The unit of billing period duration.
|
4823
4678
|
module DurationUnit
|
@@ -4851,12 +4706,11 @@ module Orb
|
|
4851
4706
|
override
|
4852
4707
|
.returns(
|
4853
4708
|
T::Array[
|
4854
|
-
|
4709
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
4855
4710
|
]
|
4856
4711
|
)
|
4857
4712
|
end
|
4858
|
-
def self.values
|
4859
|
-
end
|
4713
|
+
def self.values; end
|
4860
4714
|
end
|
4861
4715
|
end
|
4862
4716
|
|
@@ -4874,7 +4728,7 @@ module Orb
|
|
4874
4728
|
attr_accessor :duration_unit
|
4875
4729
|
|
4876
4730
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
4877
|
-
#
|
4731
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
4878
4732
|
sig do
|
4879
4733
|
params(
|
4880
4734
|
duration: Integer,
|
@@ -4882,8 +4736,7 @@ module Orb
|
|
4882
4736
|
)
|
4883
4737
|
.returns(T.attached_class)
|
4884
4738
|
end
|
4885
|
-
def self.new(duration:, duration_unit:)
|
4886
|
-
end
|
4739
|
+
def self.new(duration:, duration_unit:); end
|
4887
4740
|
|
4888
4741
|
sig do
|
4889
4742
|
override
|
@@ -4894,8 +4747,7 @@ module Orb
|
|
4894
4747
|
}
|
4895
4748
|
)
|
4896
4749
|
end
|
4897
|
-
def to_hash
|
4898
|
-
end
|
4750
|
+
def to_hash; end
|
4899
4751
|
|
4900
4752
|
# The unit of billing period duration.
|
4901
4753
|
module DurationUnit
|
@@ -4929,12 +4781,11 @@ module Orb
|
|
4929
4781
|
override
|
4930
4782
|
.returns(
|
4931
4783
|
T::Array[
|
4932
|
-
|
4784
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
4933
4785
|
]
|
4934
4786
|
)
|
4935
4787
|
end
|
4936
|
-
def self.values
|
4937
|
-
end
|
4788
|
+
def self.values; end
|
4938
4789
|
end
|
4939
4790
|
end
|
4940
4791
|
end
|
@@ -4959,17 +4810,17 @@ module Orb
|
|
4959
4810
|
attr_accessor :package_with_allocation_config
|
4960
4811
|
|
4961
4812
|
# The id of the billable metric for the price. Only needed if the price is
|
4962
|
-
#
|
4813
|
+
# usage-based.
|
4963
4814
|
sig { returns(T.nilable(String)) }
|
4964
4815
|
attr_accessor :billable_metric_id
|
4965
4816
|
|
4966
4817
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
4967
|
-
#
|
4818
|
+
# this is true, and in-arrears if this is false.
|
4968
4819
|
sig { returns(T.nilable(T::Boolean)) }
|
4969
4820
|
attr_accessor :billed_in_advance
|
4970
4821
|
|
4971
4822
|
# For custom cadence: specifies the duration of the billing period in days or
|
4972
|
-
#
|
4823
|
+
# months.
|
4973
4824
|
sig do
|
4974
4825
|
returns(
|
4975
4826
|
T.nilable(
|
@@ -4997,7 +4848,7 @@ module Orb
|
|
4997
4848
|
attr_accessor :conversion_rate
|
4998
4849
|
|
4999
4850
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
5000
|
-
#
|
4851
|
+
# price is billed.
|
5001
4852
|
sig { returns(T.nilable(String)) }
|
5002
4853
|
attr_accessor :currency
|
5003
4854
|
|
@@ -5006,7 +4857,7 @@ module Orb
|
|
5006
4857
|
attr_accessor :external_price_id
|
5007
4858
|
|
5008
4859
|
# If the Price represents a fixed cost, this represents the quantity of units
|
5009
|
-
#
|
4860
|
+
# applied.
|
5010
4861
|
sig { returns(T.nilable(Float)) }
|
5011
4862
|
attr_accessor :fixed_price_quantity
|
5012
4863
|
|
@@ -5015,7 +4866,7 @@ module Orb
|
|
5015
4866
|
attr_accessor :invoice_grouping_key
|
5016
4867
|
|
5017
4868
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
5018
|
-
#
|
4869
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
5019
4870
|
sig do
|
5020
4871
|
returns(
|
5021
4872
|
T.nilable(
|
@@ -5039,8 +4890,8 @@ module Orb
|
|
5039
4890
|
attr_writer :invoicing_cycle_configuration
|
5040
4891
|
|
5041
4892
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
5042
|
-
#
|
5043
|
-
#
|
4893
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
4894
|
+
# by setting `metadata` to `null`.
|
5044
4895
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
5045
4896
|
attr_accessor :metadata
|
5046
4897
|
|
@@ -5090,9 +4941,7 @@ module Orb
|
|
5090
4941
|
invoicing_cycle_configuration: nil,
|
5091
4942
|
metadata: nil,
|
5092
4943
|
model_type: :package_with_allocation
|
5093
|
-
)
|
5094
|
-
end
|
5095
|
-
|
4944
|
+
); end
|
5096
4945
|
sig do
|
5097
4946
|
override
|
5098
4947
|
.returns(
|
@@ -5119,8 +4968,7 @@ module Orb
|
|
5119
4968
|
}
|
5120
4969
|
)
|
5121
4970
|
end
|
5122
|
-
def to_hash
|
5123
|
-
end
|
4971
|
+
def to_hash; end
|
5124
4972
|
|
5125
4973
|
# The cadence to bill for this price on.
|
5126
4974
|
module Cadence
|
@@ -5174,8 +5022,7 @@ module Orb
|
|
5174
5022
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol]
|
5175
5023
|
)
|
5176
5024
|
end
|
5177
|
-
def self.values
|
5178
|
-
end
|
5025
|
+
def self.values; end
|
5179
5026
|
end
|
5180
5027
|
|
5181
5028
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -5192,7 +5039,7 @@ module Orb
|
|
5192
5039
|
attr_accessor :duration_unit
|
5193
5040
|
|
5194
5041
|
# For custom cadence: specifies the duration of the billing period in days or
|
5195
|
-
#
|
5042
|
+
# months.
|
5196
5043
|
sig do
|
5197
5044
|
params(
|
5198
5045
|
duration: Integer,
|
@@ -5200,8 +5047,7 @@ module Orb
|
|
5200
5047
|
)
|
5201
5048
|
.returns(T.attached_class)
|
5202
5049
|
end
|
5203
|
-
def self.new(duration:, duration_unit:)
|
5204
|
-
end
|
5050
|
+
def self.new(duration:, duration_unit:); end
|
5205
5051
|
|
5206
5052
|
sig do
|
5207
5053
|
override
|
@@ -5212,8 +5058,7 @@ module Orb
|
|
5212
5058
|
}
|
5213
5059
|
)
|
5214
5060
|
end
|
5215
|
-
def to_hash
|
5216
|
-
end
|
5061
|
+
def to_hash; end
|
5217
5062
|
|
5218
5063
|
# The unit of billing period duration.
|
5219
5064
|
module DurationUnit
|
@@ -5247,12 +5092,11 @@ module Orb
|
|
5247
5092
|
override
|
5248
5093
|
.returns(
|
5249
5094
|
T::Array[
|
5250
|
-
|
5095
|
+
Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
5251
5096
|
]
|
5252
5097
|
)
|
5253
5098
|
end
|
5254
|
-
def self.values
|
5255
|
-
end
|
5099
|
+
def self.values; end
|
5256
5100
|
end
|
5257
5101
|
end
|
5258
5102
|
|
@@ -5270,7 +5114,7 @@ module Orb
|
|
5270
5114
|
attr_accessor :duration_unit
|
5271
5115
|
|
5272
5116
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
5273
|
-
#
|
5117
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
5274
5118
|
sig do
|
5275
5119
|
params(
|
5276
5120
|
duration: Integer,
|
@@ -5278,8 +5122,7 @@ module Orb
|
|
5278
5122
|
)
|
5279
5123
|
.returns(T.attached_class)
|
5280
5124
|
end
|
5281
|
-
def self.new(duration:, duration_unit:)
|
5282
|
-
end
|
5125
|
+
def self.new(duration:, duration_unit:); end
|
5283
5126
|
|
5284
5127
|
sig do
|
5285
5128
|
override
|
@@ -5290,8 +5133,7 @@ module Orb
|
|
5290
5133
|
}
|
5291
5134
|
)
|
5292
5135
|
end
|
5293
|
-
def to_hash
|
5294
|
-
end
|
5136
|
+
def to_hash; end
|
5295
5137
|
|
5296
5138
|
# The unit of billing period duration.
|
5297
5139
|
module DurationUnit
|
@@ -5325,12 +5167,11 @@ module Orb
|
|
5325
5167
|
override
|
5326
5168
|
.returns(
|
5327
5169
|
T::Array[
|
5328
|
-
|
5170
|
+
Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
5329
5171
|
]
|
5330
5172
|
)
|
5331
5173
|
end
|
5332
|
-
def self.values
|
5333
|
-
end
|
5174
|
+
def self.values; end
|
5334
5175
|
end
|
5335
5176
|
end
|
5336
5177
|
end
|
@@ -5355,17 +5196,17 @@ module Orb
|
|
5355
5196
|
attr_accessor :tiered_with_proration_config
|
5356
5197
|
|
5357
5198
|
# The id of the billable metric for the price. Only needed if the price is
|
5358
|
-
#
|
5199
|
+
# usage-based.
|
5359
5200
|
sig { returns(T.nilable(String)) }
|
5360
5201
|
attr_accessor :billable_metric_id
|
5361
5202
|
|
5362
5203
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
5363
|
-
#
|
5204
|
+
# this is true, and in-arrears if this is false.
|
5364
5205
|
sig { returns(T.nilable(T::Boolean)) }
|
5365
5206
|
attr_accessor :billed_in_advance
|
5366
5207
|
|
5367
5208
|
# For custom cadence: specifies the duration of the billing period in days or
|
5368
|
-
#
|
5209
|
+
# months.
|
5369
5210
|
sig do
|
5370
5211
|
returns(
|
5371
5212
|
T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration)
|
@@ -5391,7 +5232,7 @@ module Orb
|
|
5391
5232
|
attr_accessor :conversion_rate
|
5392
5233
|
|
5393
5234
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
5394
|
-
#
|
5235
|
+
# price is billed.
|
5395
5236
|
sig { returns(T.nilable(String)) }
|
5396
5237
|
attr_accessor :currency
|
5397
5238
|
|
@@ -5400,7 +5241,7 @@ module Orb
|
|
5400
5241
|
attr_accessor :external_price_id
|
5401
5242
|
|
5402
5243
|
# If the Price represents a fixed cost, this represents the quantity of units
|
5403
|
-
#
|
5244
|
+
# applied.
|
5404
5245
|
sig { returns(T.nilable(Float)) }
|
5405
5246
|
attr_accessor :fixed_price_quantity
|
5406
5247
|
|
@@ -5409,7 +5250,7 @@ module Orb
|
|
5409
5250
|
attr_accessor :invoice_grouping_key
|
5410
5251
|
|
5411
5252
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
5412
|
-
#
|
5253
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
5413
5254
|
sig do
|
5414
5255
|
returns(
|
5415
5256
|
T.nilable(
|
@@ -5433,8 +5274,8 @@ module Orb
|
|
5433
5274
|
attr_writer :invoicing_cycle_configuration
|
5434
5275
|
|
5435
5276
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
5436
|
-
#
|
5437
|
-
#
|
5277
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
5278
|
+
# by setting `metadata` to `null`.
|
5438
5279
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
5439
5280
|
attr_accessor :metadata
|
5440
5281
|
|
@@ -5484,9 +5325,7 @@ module Orb
|
|
5484
5325
|
invoicing_cycle_configuration: nil,
|
5485
5326
|
metadata: nil,
|
5486
5327
|
model_type: :tiered_with_proration
|
5487
|
-
)
|
5488
|
-
end
|
5489
|
-
|
5328
|
+
); end
|
5490
5329
|
sig do
|
5491
5330
|
override
|
5492
5331
|
.returns(
|
@@ -5511,8 +5350,7 @@ module Orb
|
|
5511
5350
|
}
|
5512
5351
|
)
|
5513
5352
|
end
|
5514
|
-
def to_hash
|
5515
|
-
end
|
5353
|
+
def to_hash; end
|
5516
5354
|
|
5517
5355
|
# The cadence to bill for this price on.
|
5518
5356
|
module Cadence
|
@@ -5560,8 +5398,7 @@ module Orb
|
|
5560
5398
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol]
|
5561
5399
|
)
|
5562
5400
|
end
|
5563
|
-
def self.values
|
5564
|
-
end
|
5401
|
+
def self.values; end
|
5565
5402
|
end
|
5566
5403
|
|
5567
5404
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -5578,7 +5415,7 @@ module Orb
|
|
5578
5415
|
attr_accessor :duration_unit
|
5579
5416
|
|
5580
5417
|
# For custom cadence: specifies the duration of the billing period in days or
|
5581
|
-
#
|
5418
|
+
# months.
|
5582
5419
|
sig do
|
5583
5420
|
params(
|
5584
5421
|
duration: Integer,
|
@@ -5586,8 +5423,7 @@ module Orb
|
|
5586
5423
|
)
|
5587
5424
|
.returns(T.attached_class)
|
5588
5425
|
end
|
5589
|
-
def self.new(duration:, duration_unit:)
|
5590
|
-
end
|
5426
|
+
def self.new(duration:, duration_unit:); end
|
5591
5427
|
|
5592
5428
|
sig do
|
5593
5429
|
override
|
@@ -5598,8 +5434,7 @@ module Orb
|
|
5598
5434
|
}
|
5599
5435
|
)
|
5600
5436
|
end
|
5601
|
-
def to_hash
|
5602
|
-
end
|
5437
|
+
def to_hash; end
|
5603
5438
|
|
5604
5439
|
# The unit of billing period duration.
|
5605
5440
|
module DurationUnit
|
@@ -5633,12 +5468,11 @@ module Orb
|
|
5633
5468
|
override
|
5634
5469
|
.returns(
|
5635
5470
|
T::Array[
|
5636
|
-
|
5471
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
5637
5472
|
]
|
5638
5473
|
)
|
5639
5474
|
end
|
5640
|
-
def self.values
|
5641
|
-
end
|
5475
|
+
def self.values; end
|
5642
5476
|
end
|
5643
5477
|
end
|
5644
5478
|
|
@@ -5656,7 +5490,7 @@ module Orb
|
|
5656
5490
|
attr_accessor :duration_unit
|
5657
5491
|
|
5658
5492
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
5659
|
-
#
|
5493
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
5660
5494
|
sig do
|
5661
5495
|
params(
|
5662
5496
|
duration: Integer,
|
@@ -5664,8 +5498,7 @@ module Orb
|
|
5664
5498
|
)
|
5665
5499
|
.returns(T.attached_class)
|
5666
5500
|
end
|
5667
|
-
def self.new(duration:, duration_unit:)
|
5668
|
-
end
|
5501
|
+
def self.new(duration:, duration_unit:); end
|
5669
5502
|
|
5670
5503
|
sig do
|
5671
5504
|
override
|
@@ -5676,8 +5509,7 @@ module Orb
|
|
5676
5509
|
}
|
5677
5510
|
)
|
5678
5511
|
end
|
5679
|
-
def to_hash
|
5680
|
-
end
|
5512
|
+
def to_hash; end
|
5681
5513
|
|
5682
5514
|
# The unit of billing period duration.
|
5683
5515
|
module DurationUnit
|
@@ -5711,12 +5543,11 @@ module Orb
|
|
5711
5543
|
override
|
5712
5544
|
.returns(
|
5713
5545
|
T::Array[
|
5714
|
-
|
5546
|
+
Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
5715
5547
|
]
|
5716
5548
|
)
|
5717
5549
|
end
|
5718
|
-
def self.values
|
5719
|
-
end
|
5550
|
+
def self.values; end
|
5720
5551
|
end
|
5721
5552
|
end
|
5722
5553
|
end
|
@@ -5741,17 +5572,17 @@ module Orb
|
|
5741
5572
|
attr_accessor :unit_with_proration_config
|
5742
5573
|
|
5743
5574
|
# The id of the billable metric for the price. Only needed if the price is
|
5744
|
-
#
|
5575
|
+
# usage-based.
|
5745
5576
|
sig { returns(T.nilable(String)) }
|
5746
5577
|
attr_accessor :billable_metric_id
|
5747
5578
|
|
5748
5579
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
5749
|
-
#
|
5580
|
+
# this is true, and in-arrears if this is false.
|
5750
5581
|
sig { returns(T.nilable(T::Boolean)) }
|
5751
5582
|
attr_accessor :billed_in_advance
|
5752
5583
|
|
5753
5584
|
# For custom cadence: specifies the duration of the billing period in days or
|
5754
|
-
#
|
5585
|
+
# months.
|
5755
5586
|
sig do
|
5756
5587
|
returns(
|
5757
5588
|
T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration)
|
@@ -5777,7 +5608,7 @@ module Orb
|
|
5777
5608
|
attr_accessor :conversion_rate
|
5778
5609
|
|
5779
5610
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
5780
|
-
#
|
5611
|
+
# price is billed.
|
5781
5612
|
sig { returns(T.nilable(String)) }
|
5782
5613
|
attr_accessor :currency
|
5783
5614
|
|
@@ -5786,7 +5617,7 @@ module Orb
|
|
5786
5617
|
attr_accessor :external_price_id
|
5787
5618
|
|
5788
5619
|
# If the Price represents a fixed cost, this represents the quantity of units
|
5789
|
-
#
|
5620
|
+
# applied.
|
5790
5621
|
sig { returns(T.nilable(Float)) }
|
5791
5622
|
attr_accessor :fixed_price_quantity
|
5792
5623
|
|
@@ -5795,7 +5626,7 @@ module Orb
|
|
5795
5626
|
attr_accessor :invoice_grouping_key
|
5796
5627
|
|
5797
5628
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
5798
|
-
#
|
5629
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
5799
5630
|
sig do
|
5800
5631
|
returns(
|
5801
5632
|
T.nilable(
|
@@ -5819,8 +5650,8 @@ module Orb
|
|
5819
5650
|
attr_writer :invoicing_cycle_configuration
|
5820
5651
|
|
5821
5652
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
5822
|
-
#
|
5823
|
-
#
|
5653
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
5654
|
+
# by setting `metadata` to `null`.
|
5824
5655
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
5825
5656
|
attr_accessor :metadata
|
5826
5657
|
|
@@ -5870,9 +5701,7 @@ module Orb
|
|
5870
5701
|
invoicing_cycle_configuration: nil,
|
5871
5702
|
metadata: nil,
|
5872
5703
|
model_type: :unit_with_proration
|
5873
|
-
)
|
5874
|
-
end
|
5875
|
-
|
5704
|
+
); end
|
5876
5705
|
sig do
|
5877
5706
|
override
|
5878
5707
|
.returns(
|
@@ -5897,8 +5726,7 @@ module Orb
|
|
5897
5726
|
}
|
5898
5727
|
)
|
5899
5728
|
end
|
5900
|
-
def to_hash
|
5901
|
-
end
|
5729
|
+
def to_hash; end
|
5902
5730
|
|
5903
5731
|
# The cadence to bill for this price on.
|
5904
5732
|
module Cadence
|
@@ -5946,8 +5774,7 @@ module Orb
|
|
5946
5774
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol]
|
5947
5775
|
)
|
5948
5776
|
end
|
5949
|
-
def self.values
|
5950
|
-
end
|
5777
|
+
def self.values; end
|
5951
5778
|
end
|
5952
5779
|
|
5953
5780
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -5964,7 +5791,7 @@ module Orb
|
|
5964
5791
|
attr_accessor :duration_unit
|
5965
5792
|
|
5966
5793
|
# For custom cadence: specifies the duration of the billing period in days or
|
5967
|
-
#
|
5794
|
+
# months.
|
5968
5795
|
sig do
|
5969
5796
|
params(
|
5970
5797
|
duration: Integer,
|
@@ -5972,8 +5799,7 @@ module Orb
|
|
5972
5799
|
)
|
5973
5800
|
.returns(T.attached_class)
|
5974
5801
|
end
|
5975
|
-
def self.new(duration:, duration_unit:)
|
5976
|
-
end
|
5802
|
+
def self.new(duration:, duration_unit:); end
|
5977
5803
|
|
5978
5804
|
sig do
|
5979
5805
|
override
|
@@ -5984,8 +5810,7 @@ module Orb
|
|
5984
5810
|
}
|
5985
5811
|
)
|
5986
5812
|
end
|
5987
|
-
def to_hash
|
5988
|
-
end
|
5813
|
+
def to_hash; end
|
5989
5814
|
|
5990
5815
|
# The unit of billing period duration.
|
5991
5816
|
module DurationUnit
|
@@ -6019,12 +5844,11 @@ module Orb
|
|
6019
5844
|
override
|
6020
5845
|
.returns(
|
6021
5846
|
T::Array[
|
6022
|
-
|
5847
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
6023
5848
|
]
|
6024
5849
|
)
|
6025
5850
|
end
|
6026
|
-
def self.values
|
6027
|
-
end
|
5851
|
+
def self.values; end
|
6028
5852
|
end
|
6029
5853
|
end
|
6030
5854
|
|
@@ -6042,7 +5866,7 @@ module Orb
|
|
6042
5866
|
attr_accessor :duration_unit
|
6043
5867
|
|
6044
5868
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
6045
|
-
#
|
5869
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
6046
5870
|
sig do
|
6047
5871
|
params(
|
6048
5872
|
duration: Integer,
|
@@ -6050,8 +5874,7 @@ module Orb
|
|
6050
5874
|
)
|
6051
5875
|
.returns(T.attached_class)
|
6052
5876
|
end
|
6053
|
-
def self.new(duration:, duration_unit:)
|
6054
|
-
end
|
5877
|
+
def self.new(duration:, duration_unit:); end
|
6055
5878
|
|
6056
5879
|
sig do
|
6057
5880
|
override
|
@@ -6062,8 +5885,7 @@ module Orb
|
|
6062
5885
|
}
|
6063
5886
|
)
|
6064
5887
|
end
|
6065
|
-
def to_hash
|
6066
|
-
end
|
5888
|
+
def to_hash; end
|
6067
5889
|
|
6068
5890
|
# The unit of billing period duration.
|
6069
5891
|
module DurationUnit
|
@@ -6097,12 +5919,11 @@ module Orb
|
|
6097
5919
|
override
|
6098
5920
|
.returns(
|
6099
5921
|
T::Array[
|
6100
|
-
|
5922
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
6101
5923
|
]
|
6102
5924
|
)
|
6103
5925
|
end
|
6104
|
-
def self.values
|
6105
|
-
end
|
5926
|
+
def self.values; end
|
6106
5927
|
end
|
6107
5928
|
end
|
6108
5929
|
end
|
@@ -6127,17 +5948,17 @@ module Orb
|
|
6127
5948
|
attr_accessor :name
|
6128
5949
|
|
6129
5950
|
# The id of the billable metric for the price. Only needed if the price is
|
6130
|
-
#
|
5951
|
+
# usage-based.
|
6131
5952
|
sig { returns(T.nilable(String)) }
|
6132
5953
|
attr_accessor :billable_metric_id
|
6133
5954
|
|
6134
5955
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
6135
|
-
#
|
5956
|
+
# this is true, and in-arrears if this is false.
|
6136
5957
|
sig { returns(T.nilable(T::Boolean)) }
|
6137
5958
|
attr_accessor :billed_in_advance
|
6138
5959
|
|
6139
5960
|
# For custom cadence: specifies the duration of the billing period in days or
|
6140
|
-
#
|
5961
|
+
# months.
|
6141
5962
|
sig do
|
6142
5963
|
returns(
|
6143
5964
|
T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration)
|
@@ -6163,7 +5984,7 @@ module Orb
|
|
6163
5984
|
attr_accessor :conversion_rate
|
6164
5985
|
|
6165
5986
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
6166
|
-
#
|
5987
|
+
# price is billed.
|
6167
5988
|
sig { returns(T.nilable(String)) }
|
6168
5989
|
attr_accessor :currency
|
6169
5990
|
|
@@ -6172,7 +5993,7 @@ module Orb
|
|
6172
5993
|
attr_accessor :external_price_id
|
6173
5994
|
|
6174
5995
|
# If the Price represents a fixed cost, this represents the quantity of units
|
6175
|
-
#
|
5996
|
+
# applied.
|
6176
5997
|
sig { returns(T.nilable(Float)) }
|
6177
5998
|
attr_accessor :fixed_price_quantity
|
6178
5999
|
|
@@ -6181,7 +6002,7 @@ module Orb
|
|
6181
6002
|
attr_accessor :invoice_grouping_key
|
6182
6003
|
|
6183
6004
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
6184
|
-
#
|
6005
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
6185
6006
|
sig do
|
6186
6007
|
returns(
|
6187
6008
|
T.nilable(
|
@@ -6205,8 +6026,8 @@ module Orb
|
|
6205
6026
|
attr_writer :invoicing_cycle_configuration
|
6206
6027
|
|
6207
6028
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
6208
|
-
#
|
6209
|
-
#
|
6029
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
6030
|
+
# by setting `metadata` to `null`.
|
6210
6031
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
6211
6032
|
attr_accessor :metadata
|
6212
6033
|
|
@@ -6256,9 +6077,7 @@ module Orb
|
|
6256
6077
|
invoicing_cycle_configuration: nil,
|
6257
6078
|
metadata: nil,
|
6258
6079
|
model_type: :grouped_allocation
|
6259
|
-
)
|
6260
|
-
end
|
6261
|
-
|
6080
|
+
); end
|
6262
6081
|
sig do
|
6263
6082
|
override
|
6264
6083
|
.returns(
|
@@ -6283,8 +6102,7 @@ module Orb
|
|
6283
6102
|
}
|
6284
6103
|
)
|
6285
6104
|
end
|
6286
|
-
def to_hash
|
6287
|
-
end
|
6105
|
+
def to_hash; end
|
6288
6106
|
|
6289
6107
|
# The cadence to bill for this price on.
|
6290
6108
|
module Cadence
|
@@ -6332,8 +6150,7 @@ module Orb
|
|
6332
6150
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol]
|
6333
6151
|
)
|
6334
6152
|
end
|
6335
|
-
def self.values
|
6336
|
-
end
|
6153
|
+
def self.values; end
|
6337
6154
|
end
|
6338
6155
|
|
6339
6156
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -6350,7 +6167,7 @@ module Orb
|
|
6350
6167
|
attr_accessor :duration_unit
|
6351
6168
|
|
6352
6169
|
# For custom cadence: specifies the duration of the billing period in days or
|
6353
|
-
#
|
6170
|
+
# months.
|
6354
6171
|
sig do
|
6355
6172
|
params(
|
6356
6173
|
duration: Integer,
|
@@ -6358,8 +6175,7 @@ module Orb
|
|
6358
6175
|
)
|
6359
6176
|
.returns(T.attached_class)
|
6360
6177
|
end
|
6361
|
-
def self.new(duration:, duration_unit:)
|
6362
|
-
end
|
6178
|
+
def self.new(duration:, duration_unit:); end
|
6363
6179
|
|
6364
6180
|
sig do
|
6365
6181
|
override
|
@@ -6370,8 +6186,7 @@ module Orb
|
|
6370
6186
|
}
|
6371
6187
|
)
|
6372
6188
|
end
|
6373
|
-
def to_hash
|
6374
|
-
end
|
6189
|
+
def to_hash; end
|
6375
6190
|
|
6376
6191
|
# The unit of billing period duration.
|
6377
6192
|
module DurationUnit
|
@@ -6405,12 +6220,11 @@ module Orb
|
|
6405
6220
|
override
|
6406
6221
|
.returns(
|
6407
6222
|
T::Array[
|
6408
|
-
|
6223
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
6409
6224
|
]
|
6410
6225
|
)
|
6411
6226
|
end
|
6412
|
-
def self.values
|
6413
|
-
end
|
6227
|
+
def self.values; end
|
6414
6228
|
end
|
6415
6229
|
end
|
6416
6230
|
|
@@ -6428,7 +6242,7 @@ module Orb
|
|
6428
6242
|
attr_accessor :duration_unit
|
6429
6243
|
|
6430
6244
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
6431
|
-
#
|
6245
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
6432
6246
|
sig do
|
6433
6247
|
params(
|
6434
6248
|
duration: Integer,
|
@@ -6436,8 +6250,7 @@ module Orb
|
|
6436
6250
|
)
|
6437
6251
|
.returns(T.attached_class)
|
6438
6252
|
end
|
6439
|
-
def self.new(duration:, duration_unit:)
|
6440
|
-
end
|
6253
|
+
def self.new(duration:, duration_unit:); end
|
6441
6254
|
|
6442
6255
|
sig do
|
6443
6256
|
override
|
@@ -6448,8 +6261,7 @@ module Orb
|
|
6448
6261
|
}
|
6449
6262
|
)
|
6450
6263
|
end
|
6451
|
-
def to_hash
|
6452
|
-
end
|
6264
|
+
def to_hash; end
|
6453
6265
|
|
6454
6266
|
# The unit of billing period duration.
|
6455
6267
|
module DurationUnit
|
@@ -6483,12 +6295,11 @@ module Orb
|
|
6483
6295
|
override
|
6484
6296
|
.returns(
|
6485
6297
|
T::Array[
|
6486
|
-
|
6298
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
6487
6299
|
]
|
6488
6300
|
)
|
6489
6301
|
end
|
6490
|
-
def self.values
|
6491
|
-
end
|
6302
|
+
def self.values; end
|
6492
6303
|
end
|
6493
6304
|
end
|
6494
6305
|
end
|
@@ -6513,17 +6324,17 @@ module Orb
|
|
6513
6324
|
attr_accessor :name
|
6514
6325
|
|
6515
6326
|
# The id of the billable metric for the price. Only needed if the price is
|
6516
|
-
#
|
6327
|
+
# usage-based.
|
6517
6328
|
sig { returns(T.nilable(String)) }
|
6518
6329
|
attr_accessor :billable_metric_id
|
6519
6330
|
|
6520
6331
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
6521
|
-
#
|
6332
|
+
# this is true, and in-arrears if this is false.
|
6522
6333
|
sig { returns(T.nilable(T::Boolean)) }
|
6523
6334
|
attr_accessor :billed_in_advance
|
6524
6335
|
|
6525
6336
|
# For custom cadence: specifies the duration of the billing period in days or
|
6526
|
-
#
|
6337
|
+
# months.
|
6527
6338
|
sig do
|
6528
6339
|
returns(
|
6529
6340
|
T.nilable(
|
@@ -6551,7 +6362,7 @@ module Orb
|
|
6551
6362
|
attr_accessor :conversion_rate
|
6552
6363
|
|
6553
6364
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
6554
|
-
#
|
6365
|
+
# price is billed.
|
6555
6366
|
sig { returns(T.nilable(String)) }
|
6556
6367
|
attr_accessor :currency
|
6557
6368
|
|
@@ -6560,7 +6371,7 @@ module Orb
|
|
6560
6371
|
attr_accessor :external_price_id
|
6561
6372
|
|
6562
6373
|
# If the Price represents a fixed cost, this represents the quantity of units
|
6563
|
-
#
|
6374
|
+
# applied.
|
6564
6375
|
sig { returns(T.nilable(Float)) }
|
6565
6376
|
attr_accessor :fixed_price_quantity
|
6566
6377
|
|
@@ -6569,7 +6380,7 @@ module Orb
|
|
6569
6380
|
attr_accessor :invoice_grouping_key
|
6570
6381
|
|
6571
6382
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
6572
|
-
#
|
6383
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
6573
6384
|
sig do
|
6574
6385
|
returns(
|
6575
6386
|
T.nilable(
|
@@ -6593,8 +6404,8 @@ module Orb
|
|
6593
6404
|
attr_writer :invoicing_cycle_configuration
|
6594
6405
|
|
6595
6406
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
6596
|
-
#
|
6597
|
-
#
|
6407
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
6408
|
+
# by setting `metadata` to `null`.
|
6598
6409
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
6599
6410
|
attr_accessor :metadata
|
6600
6411
|
|
@@ -6644,9 +6455,7 @@ module Orb
|
|
6644
6455
|
invoicing_cycle_configuration: nil,
|
6645
6456
|
metadata: nil,
|
6646
6457
|
model_type: :grouped_with_prorated_minimum
|
6647
|
-
)
|
6648
|
-
end
|
6649
|
-
|
6458
|
+
); end
|
6650
6459
|
sig do
|
6651
6460
|
override
|
6652
6461
|
.returns(
|
@@ -6673,8 +6482,7 @@ module Orb
|
|
6673
6482
|
}
|
6674
6483
|
)
|
6675
6484
|
end
|
6676
|
-
def to_hash
|
6677
|
-
end
|
6485
|
+
def to_hash; end
|
6678
6486
|
|
6679
6487
|
# The cadence to bill for this price on.
|
6680
6488
|
module Cadence
|
@@ -6728,8 +6536,7 @@ module Orb
|
|
6728
6536
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol]
|
6729
6537
|
)
|
6730
6538
|
end
|
6731
|
-
def self.values
|
6732
|
-
end
|
6539
|
+
def self.values; end
|
6733
6540
|
end
|
6734
6541
|
|
6735
6542
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -6746,7 +6553,7 @@ module Orb
|
|
6746
6553
|
attr_accessor :duration_unit
|
6747
6554
|
|
6748
6555
|
# For custom cadence: specifies the duration of the billing period in days or
|
6749
|
-
#
|
6556
|
+
# months.
|
6750
6557
|
sig do
|
6751
6558
|
params(
|
6752
6559
|
duration: Integer,
|
@@ -6754,8 +6561,7 @@ module Orb
|
|
6754
6561
|
)
|
6755
6562
|
.returns(T.attached_class)
|
6756
6563
|
end
|
6757
|
-
def self.new(duration:, duration_unit:)
|
6758
|
-
end
|
6564
|
+
def self.new(duration:, duration_unit:); end
|
6759
6565
|
|
6760
6566
|
sig do
|
6761
6567
|
override
|
@@ -6766,8 +6572,7 @@ module Orb
|
|
6766
6572
|
}
|
6767
6573
|
)
|
6768
6574
|
end
|
6769
|
-
def to_hash
|
6770
|
-
end
|
6575
|
+
def to_hash; end
|
6771
6576
|
|
6772
6577
|
# The unit of billing period duration.
|
6773
6578
|
module DurationUnit
|
@@ -6801,12 +6606,11 @@ module Orb
|
|
6801
6606
|
override
|
6802
6607
|
.returns(
|
6803
6608
|
T::Array[
|
6804
|
-
|
6609
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
6805
6610
|
]
|
6806
6611
|
)
|
6807
6612
|
end
|
6808
|
-
def self.values
|
6809
|
-
end
|
6613
|
+
def self.values; end
|
6810
6614
|
end
|
6811
6615
|
end
|
6812
6616
|
|
@@ -6824,7 +6628,7 @@ module Orb
|
|
6824
6628
|
attr_accessor :duration_unit
|
6825
6629
|
|
6826
6630
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
6827
|
-
#
|
6631
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
6828
6632
|
sig do
|
6829
6633
|
params(
|
6830
6634
|
duration: Integer,
|
@@ -6832,8 +6636,7 @@ module Orb
|
|
6832
6636
|
)
|
6833
6637
|
.returns(T.attached_class)
|
6834
6638
|
end
|
6835
|
-
def self.new(duration:, duration_unit:)
|
6836
|
-
end
|
6639
|
+
def self.new(duration:, duration_unit:); end
|
6837
6640
|
|
6838
6641
|
sig do
|
6839
6642
|
override
|
@@ -6844,8 +6647,7 @@ module Orb
|
|
6844
6647
|
}
|
6845
6648
|
)
|
6846
6649
|
end
|
6847
|
-
def to_hash
|
6848
|
-
end
|
6650
|
+
def to_hash; end
|
6849
6651
|
|
6850
6652
|
# The unit of billing period duration.
|
6851
6653
|
module DurationUnit
|
@@ -6879,12 +6681,11 @@ module Orb
|
|
6879
6681
|
override
|
6880
6682
|
.returns(
|
6881
6683
|
T::Array[
|
6882
|
-
|
6684
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
6883
6685
|
]
|
6884
6686
|
)
|
6885
6687
|
end
|
6886
|
-
def self.values
|
6887
|
-
end
|
6688
|
+
def self.values; end
|
6888
6689
|
end
|
6889
6690
|
end
|
6890
6691
|
end
|
@@ -6909,17 +6710,17 @@ module Orb
|
|
6909
6710
|
attr_accessor :name
|
6910
6711
|
|
6911
6712
|
# The id of the billable metric for the price. Only needed if the price is
|
6912
|
-
#
|
6713
|
+
# usage-based.
|
6913
6714
|
sig { returns(T.nilable(String)) }
|
6914
6715
|
attr_accessor :billable_metric_id
|
6915
6716
|
|
6916
6717
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
6917
|
-
#
|
6718
|
+
# this is true, and in-arrears if this is false.
|
6918
6719
|
sig { returns(T.nilable(T::Boolean)) }
|
6919
6720
|
attr_accessor :billed_in_advance
|
6920
6721
|
|
6921
6722
|
# For custom cadence: specifies the duration of the billing period in days or
|
6922
|
-
#
|
6723
|
+
# months.
|
6923
6724
|
sig do
|
6924
6725
|
returns(
|
6925
6726
|
T.nilable(
|
@@ -6947,7 +6748,7 @@ module Orb
|
|
6947
6748
|
attr_accessor :conversion_rate
|
6948
6749
|
|
6949
6750
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
6950
|
-
#
|
6751
|
+
# price is billed.
|
6951
6752
|
sig { returns(T.nilable(String)) }
|
6952
6753
|
attr_accessor :currency
|
6953
6754
|
|
@@ -6956,7 +6757,7 @@ module Orb
|
|
6956
6757
|
attr_accessor :external_price_id
|
6957
6758
|
|
6958
6759
|
# If the Price represents a fixed cost, this represents the quantity of units
|
6959
|
-
#
|
6760
|
+
# applied.
|
6960
6761
|
sig { returns(T.nilable(Float)) }
|
6961
6762
|
attr_accessor :fixed_price_quantity
|
6962
6763
|
|
@@ -6965,7 +6766,7 @@ module Orb
|
|
6965
6766
|
attr_accessor :invoice_grouping_key
|
6966
6767
|
|
6967
6768
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
6968
|
-
#
|
6769
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
6969
6770
|
sig do
|
6970
6771
|
returns(
|
6971
6772
|
T.nilable(
|
@@ -6989,8 +6790,8 @@ module Orb
|
|
6989
6790
|
attr_writer :invoicing_cycle_configuration
|
6990
6791
|
|
6991
6792
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
6992
|
-
#
|
6993
|
-
#
|
6793
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
6794
|
+
# by setting `metadata` to `null`.
|
6994
6795
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
6995
6796
|
attr_accessor :metadata
|
6996
6797
|
|
@@ -7040,9 +6841,7 @@ module Orb
|
|
7040
6841
|
invoicing_cycle_configuration: nil,
|
7041
6842
|
metadata: nil,
|
7042
6843
|
model_type: :grouped_with_metered_minimum
|
7043
|
-
)
|
7044
|
-
end
|
7045
|
-
|
6844
|
+
); end
|
7046
6845
|
sig do
|
7047
6846
|
override
|
7048
6847
|
.returns(
|
@@ -7069,8 +6868,7 @@ module Orb
|
|
7069
6868
|
}
|
7070
6869
|
)
|
7071
6870
|
end
|
7072
|
-
def to_hash
|
7073
|
-
end
|
6871
|
+
def to_hash; end
|
7074
6872
|
|
7075
6873
|
# The cadence to bill for this price on.
|
7076
6874
|
module Cadence
|
@@ -7124,8 +6922,7 @@ module Orb
|
|
7124
6922
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol]
|
7125
6923
|
)
|
7126
6924
|
end
|
7127
|
-
def self.values
|
7128
|
-
end
|
6925
|
+
def self.values; end
|
7129
6926
|
end
|
7130
6927
|
|
7131
6928
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -7142,7 +6939,7 @@ module Orb
|
|
7142
6939
|
attr_accessor :duration_unit
|
7143
6940
|
|
7144
6941
|
# For custom cadence: specifies the duration of the billing period in days or
|
7145
|
-
#
|
6942
|
+
# months.
|
7146
6943
|
sig do
|
7147
6944
|
params(
|
7148
6945
|
duration: Integer,
|
@@ -7150,8 +6947,7 @@ module Orb
|
|
7150
6947
|
)
|
7151
6948
|
.returns(T.attached_class)
|
7152
6949
|
end
|
7153
|
-
def self.new(duration:, duration_unit:)
|
7154
|
-
end
|
6950
|
+
def self.new(duration:, duration_unit:); end
|
7155
6951
|
|
7156
6952
|
sig do
|
7157
6953
|
override
|
@@ -7162,8 +6958,7 @@ module Orb
|
|
7162
6958
|
}
|
7163
6959
|
)
|
7164
6960
|
end
|
7165
|
-
def to_hash
|
7166
|
-
end
|
6961
|
+
def to_hash; end
|
7167
6962
|
|
7168
6963
|
# The unit of billing period duration.
|
7169
6964
|
module DurationUnit
|
@@ -7197,12 +6992,11 @@ module Orb
|
|
7197
6992
|
override
|
7198
6993
|
.returns(
|
7199
6994
|
T::Array[
|
7200
|
-
|
6995
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
7201
6996
|
]
|
7202
6997
|
)
|
7203
6998
|
end
|
7204
|
-
def self.values
|
7205
|
-
end
|
6999
|
+
def self.values; end
|
7206
7000
|
end
|
7207
7001
|
end
|
7208
7002
|
|
@@ -7220,7 +7014,7 @@ module Orb
|
|
7220
7014
|
attr_accessor :duration_unit
|
7221
7015
|
|
7222
7016
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
7223
|
-
#
|
7017
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
7224
7018
|
sig do
|
7225
7019
|
params(
|
7226
7020
|
duration: Integer,
|
@@ -7228,8 +7022,7 @@ module Orb
|
|
7228
7022
|
)
|
7229
7023
|
.returns(T.attached_class)
|
7230
7024
|
end
|
7231
|
-
def self.new(duration:, duration_unit:)
|
7232
|
-
end
|
7025
|
+
def self.new(duration:, duration_unit:); end
|
7233
7026
|
|
7234
7027
|
sig do
|
7235
7028
|
override
|
@@ -7240,8 +7033,7 @@ module Orb
|
|
7240
7033
|
}
|
7241
7034
|
)
|
7242
7035
|
end
|
7243
|
-
def to_hash
|
7244
|
-
end
|
7036
|
+
def to_hash; end
|
7245
7037
|
|
7246
7038
|
# The unit of billing period duration.
|
7247
7039
|
module DurationUnit
|
@@ -7275,12 +7067,11 @@ module Orb
|
|
7275
7067
|
override
|
7276
7068
|
.returns(
|
7277
7069
|
T::Array[
|
7278
|
-
|
7070
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
7279
7071
|
]
|
7280
7072
|
)
|
7281
7073
|
end
|
7282
|
-
def self.values
|
7283
|
-
end
|
7074
|
+
def self.values; end
|
7284
7075
|
end
|
7285
7076
|
end
|
7286
7077
|
end
|
@@ -7305,17 +7096,17 @@ module Orb
|
|
7305
7096
|
attr_accessor :name
|
7306
7097
|
|
7307
7098
|
# The id of the billable metric for the price. Only needed if the price is
|
7308
|
-
#
|
7099
|
+
# usage-based.
|
7309
7100
|
sig { returns(T.nilable(String)) }
|
7310
7101
|
attr_accessor :billable_metric_id
|
7311
7102
|
|
7312
7103
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
7313
|
-
#
|
7104
|
+
# this is true, and in-arrears if this is false.
|
7314
7105
|
sig { returns(T.nilable(T::Boolean)) }
|
7315
7106
|
attr_accessor :billed_in_advance
|
7316
7107
|
|
7317
7108
|
# For custom cadence: specifies the duration of the billing period in days or
|
7318
|
-
#
|
7109
|
+
# months.
|
7319
7110
|
sig do
|
7320
7111
|
returns(
|
7321
7112
|
T.nilable(
|
@@ -7343,7 +7134,7 @@ module Orb
|
|
7343
7134
|
attr_accessor :conversion_rate
|
7344
7135
|
|
7345
7136
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
7346
|
-
#
|
7137
|
+
# price is billed.
|
7347
7138
|
sig { returns(T.nilable(String)) }
|
7348
7139
|
attr_accessor :currency
|
7349
7140
|
|
@@ -7352,7 +7143,7 @@ module Orb
|
|
7352
7143
|
attr_accessor :external_price_id
|
7353
7144
|
|
7354
7145
|
# If the Price represents a fixed cost, this represents the quantity of units
|
7355
|
-
#
|
7146
|
+
# applied.
|
7356
7147
|
sig { returns(T.nilable(Float)) }
|
7357
7148
|
attr_accessor :fixed_price_quantity
|
7358
7149
|
|
@@ -7361,7 +7152,7 @@ module Orb
|
|
7361
7152
|
attr_accessor :invoice_grouping_key
|
7362
7153
|
|
7363
7154
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
7364
|
-
#
|
7155
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
7365
7156
|
sig do
|
7366
7157
|
returns(
|
7367
7158
|
T.nilable(
|
@@ -7385,8 +7176,8 @@ module Orb
|
|
7385
7176
|
attr_writer :invoicing_cycle_configuration
|
7386
7177
|
|
7387
7178
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
7388
|
-
#
|
7389
|
-
#
|
7179
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
7180
|
+
# by setting `metadata` to `null`.
|
7390
7181
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
7391
7182
|
attr_accessor :metadata
|
7392
7183
|
|
@@ -7436,9 +7227,7 @@ module Orb
|
|
7436
7227
|
invoicing_cycle_configuration: nil,
|
7437
7228
|
metadata: nil,
|
7438
7229
|
model_type: :matrix_with_display_name
|
7439
|
-
)
|
7440
|
-
end
|
7441
|
-
|
7230
|
+
); end
|
7442
7231
|
sig do
|
7443
7232
|
override
|
7444
7233
|
.returns(
|
@@ -7465,8 +7254,7 @@ module Orb
|
|
7465
7254
|
}
|
7466
7255
|
)
|
7467
7256
|
end
|
7468
|
-
def to_hash
|
7469
|
-
end
|
7257
|
+
def to_hash; end
|
7470
7258
|
|
7471
7259
|
# The cadence to bill for this price on.
|
7472
7260
|
module Cadence
|
@@ -7520,8 +7308,7 @@ module Orb
|
|
7520
7308
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol]
|
7521
7309
|
)
|
7522
7310
|
end
|
7523
|
-
def self.values
|
7524
|
-
end
|
7311
|
+
def self.values; end
|
7525
7312
|
end
|
7526
7313
|
|
7527
7314
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -7538,7 +7325,7 @@ module Orb
|
|
7538
7325
|
attr_accessor :duration_unit
|
7539
7326
|
|
7540
7327
|
# For custom cadence: specifies the duration of the billing period in days or
|
7541
|
-
#
|
7328
|
+
# months.
|
7542
7329
|
sig do
|
7543
7330
|
params(
|
7544
7331
|
duration: Integer,
|
@@ -7546,8 +7333,7 @@ module Orb
|
|
7546
7333
|
)
|
7547
7334
|
.returns(T.attached_class)
|
7548
7335
|
end
|
7549
|
-
def self.new(duration:, duration_unit:)
|
7550
|
-
end
|
7336
|
+
def self.new(duration:, duration_unit:); end
|
7551
7337
|
|
7552
7338
|
sig do
|
7553
7339
|
override
|
@@ -7558,8 +7344,7 @@ module Orb
|
|
7558
7344
|
}
|
7559
7345
|
)
|
7560
7346
|
end
|
7561
|
-
def to_hash
|
7562
|
-
end
|
7347
|
+
def to_hash; end
|
7563
7348
|
|
7564
7349
|
# The unit of billing period duration.
|
7565
7350
|
module DurationUnit
|
@@ -7593,12 +7378,11 @@ module Orb
|
|
7593
7378
|
override
|
7594
7379
|
.returns(
|
7595
7380
|
T::Array[
|
7596
|
-
|
7381
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
7597
7382
|
]
|
7598
7383
|
)
|
7599
7384
|
end
|
7600
|
-
def self.values
|
7601
|
-
end
|
7385
|
+
def self.values; end
|
7602
7386
|
end
|
7603
7387
|
end
|
7604
7388
|
|
@@ -7616,7 +7400,7 @@ module Orb
|
|
7616
7400
|
attr_accessor :duration_unit
|
7617
7401
|
|
7618
7402
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
7619
|
-
#
|
7403
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
7620
7404
|
sig do
|
7621
7405
|
params(
|
7622
7406
|
duration: Integer,
|
@@ -7624,8 +7408,7 @@ module Orb
|
|
7624
7408
|
)
|
7625
7409
|
.returns(T.attached_class)
|
7626
7410
|
end
|
7627
|
-
def self.new(duration:, duration_unit:)
|
7628
|
-
end
|
7411
|
+
def self.new(duration:, duration_unit:); end
|
7629
7412
|
|
7630
7413
|
sig do
|
7631
7414
|
override
|
@@ -7636,8 +7419,7 @@ module Orb
|
|
7636
7419
|
}
|
7637
7420
|
)
|
7638
7421
|
end
|
7639
|
-
def to_hash
|
7640
|
-
end
|
7422
|
+
def to_hash; end
|
7641
7423
|
|
7642
7424
|
# The unit of billing period duration.
|
7643
7425
|
module DurationUnit
|
@@ -7671,12 +7453,11 @@ module Orb
|
|
7671
7453
|
override
|
7672
7454
|
.returns(
|
7673
7455
|
T::Array[
|
7674
|
-
|
7456
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
7675
7457
|
]
|
7676
7458
|
)
|
7677
7459
|
end
|
7678
|
-
def self.values
|
7679
|
-
end
|
7460
|
+
def self.values; end
|
7680
7461
|
end
|
7681
7462
|
end
|
7682
7463
|
end
|
@@ -7701,17 +7482,17 @@ module Orb
|
|
7701
7482
|
attr_accessor :name
|
7702
7483
|
|
7703
7484
|
# The id of the billable metric for the price. Only needed if the price is
|
7704
|
-
#
|
7485
|
+
# usage-based.
|
7705
7486
|
sig { returns(T.nilable(String)) }
|
7706
7487
|
attr_accessor :billable_metric_id
|
7707
7488
|
|
7708
7489
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
7709
|
-
#
|
7490
|
+
# this is true, and in-arrears if this is false.
|
7710
7491
|
sig { returns(T.nilable(T::Boolean)) }
|
7711
7492
|
attr_accessor :billed_in_advance
|
7712
7493
|
|
7713
7494
|
# For custom cadence: specifies the duration of the billing period in days or
|
7714
|
-
#
|
7495
|
+
# months.
|
7715
7496
|
sig do
|
7716
7497
|
returns(
|
7717
7498
|
T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration)
|
@@ -7737,7 +7518,7 @@ module Orb
|
|
7737
7518
|
attr_accessor :conversion_rate
|
7738
7519
|
|
7739
7520
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
7740
|
-
#
|
7521
|
+
# price is billed.
|
7741
7522
|
sig { returns(T.nilable(String)) }
|
7742
7523
|
attr_accessor :currency
|
7743
7524
|
|
@@ -7746,7 +7527,7 @@ module Orb
|
|
7746
7527
|
attr_accessor :external_price_id
|
7747
7528
|
|
7748
7529
|
# If the Price represents a fixed cost, this represents the quantity of units
|
7749
|
-
#
|
7530
|
+
# applied.
|
7750
7531
|
sig { returns(T.nilable(Float)) }
|
7751
7532
|
attr_accessor :fixed_price_quantity
|
7752
7533
|
|
@@ -7755,7 +7536,7 @@ module Orb
|
|
7755
7536
|
attr_accessor :invoice_grouping_key
|
7756
7537
|
|
7757
7538
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
7758
|
-
#
|
7539
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
7759
7540
|
sig do
|
7760
7541
|
returns(
|
7761
7542
|
T.nilable(
|
@@ -7779,8 +7560,8 @@ module Orb
|
|
7779
7560
|
attr_writer :invoicing_cycle_configuration
|
7780
7561
|
|
7781
7562
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
7782
|
-
#
|
7783
|
-
#
|
7563
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
7564
|
+
# by setting `metadata` to `null`.
|
7784
7565
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
7785
7566
|
attr_accessor :metadata
|
7786
7567
|
|
@@ -7830,9 +7611,7 @@ module Orb
|
|
7830
7611
|
invoicing_cycle_configuration: nil,
|
7831
7612
|
metadata: nil,
|
7832
7613
|
model_type: :bulk_with_proration
|
7833
|
-
)
|
7834
|
-
end
|
7835
|
-
|
7614
|
+
); end
|
7836
7615
|
sig do
|
7837
7616
|
override
|
7838
7617
|
.returns(
|
@@ -7857,8 +7636,7 @@ module Orb
|
|
7857
7636
|
}
|
7858
7637
|
)
|
7859
7638
|
end
|
7860
|
-
def to_hash
|
7861
|
-
end
|
7639
|
+
def to_hash; end
|
7862
7640
|
|
7863
7641
|
# The cadence to bill for this price on.
|
7864
7642
|
module Cadence
|
@@ -7906,8 +7684,7 @@ module Orb
|
|
7906
7684
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol]
|
7907
7685
|
)
|
7908
7686
|
end
|
7909
|
-
def self.values
|
7910
|
-
end
|
7687
|
+
def self.values; end
|
7911
7688
|
end
|
7912
7689
|
|
7913
7690
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -7924,7 +7701,7 @@ module Orb
|
|
7924
7701
|
attr_accessor :duration_unit
|
7925
7702
|
|
7926
7703
|
# For custom cadence: specifies the duration of the billing period in days or
|
7927
|
-
#
|
7704
|
+
# months.
|
7928
7705
|
sig do
|
7929
7706
|
params(
|
7930
7707
|
duration: Integer,
|
@@ -7932,8 +7709,7 @@ module Orb
|
|
7932
7709
|
)
|
7933
7710
|
.returns(T.attached_class)
|
7934
7711
|
end
|
7935
|
-
def self.new(duration:, duration_unit:)
|
7936
|
-
end
|
7712
|
+
def self.new(duration:, duration_unit:); end
|
7937
7713
|
|
7938
7714
|
sig do
|
7939
7715
|
override
|
@@ -7944,8 +7720,7 @@ module Orb
|
|
7944
7720
|
}
|
7945
7721
|
)
|
7946
7722
|
end
|
7947
|
-
def to_hash
|
7948
|
-
end
|
7723
|
+
def to_hash; end
|
7949
7724
|
|
7950
7725
|
# The unit of billing period duration.
|
7951
7726
|
module DurationUnit
|
@@ -7979,12 +7754,11 @@ module Orb
|
|
7979
7754
|
override
|
7980
7755
|
.returns(
|
7981
7756
|
T::Array[
|
7982
|
-
|
7757
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
7983
7758
|
]
|
7984
7759
|
)
|
7985
7760
|
end
|
7986
|
-
def self.values
|
7987
|
-
end
|
7761
|
+
def self.values; end
|
7988
7762
|
end
|
7989
7763
|
end
|
7990
7764
|
|
@@ -8002,7 +7776,7 @@ module Orb
|
|
8002
7776
|
attr_accessor :duration_unit
|
8003
7777
|
|
8004
7778
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
8005
|
-
#
|
7779
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
8006
7780
|
sig do
|
8007
7781
|
params(
|
8008
7782
|
duration: Integer,
|
@@ -8010,8 +7784,7 @@ module Orb
|
|
8010
7784
|
)
|
8011
7785
|
.returns(T.attached_class)
|
8012
7786
|
end
|
8013
|
-
def self.new(duration:, duration_unit:)
|
8014
|
-
end
|
7787
|
+
def self.new(duration:, duration_unit:); end
|
8015
7788
|
|
8016
7789
|
sig do
|
8017
7790
|
override
|
@@ -8022,8 +7795,7 @@ module Orb
|
|
8022
7795
|
}
|
8023
7796
|
)
|
8024
7797
|
end
|
8025
|
-
def to_hash
|
8026
|
-
end
|
7798
|
+
def to_hash; end
|
8027
7799
|
|
8028
7800
|
# The unit of billing period duration.
|
8029
7801
|
module DurationUnit
|
@@ -8057,12 +7829,11 @@ module Orb
|
|
8057
7829
|
override
|
8058
7830
|
.returns(
|
8059
7831
|
T::Array[
|
8060
|
-
|
7832
|
+
Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
8061
7833
|
]
|
8062
7834
|
)
|
8063
7835
|
end
|
8064
|
-
def self.values
|
8065
|
-
end
|
7836
|
+
def self.values; end
|
8066
7837
|
end
|
8067
7838
|
end
|
8068
7839
|
end
|
@@ -8087,17 +7858,17 @@ module Orb
|
|
8087
7858
|
attr_accessor :name
|
8088
7859
|
|
8089
7860
|
# The id of the billable metric for the price. Only needed if the price is
|
8090
|
-
#
|
7861
|
+
# usage-based.
|
8091
7862
|
sig { returns(T.nilable(String)) }
|
8092
7863
|
attr_accessor :billable_metric_id
|
8093
7864
|
|
8094
7865
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
8095
|
-
#
|
7866
|
+
# this is true, and in-arrears if this is false.
|
8096
7867
|
sig { returns(T.nilable(T::Boolean)) }
|
8097
7868
|
attr_accessor :billed_in_advance
|
8098
7869
|
|
8099
7870
|
# For custom cadence: specifies the duration of the billing period in days or
|
8100
|
-
#
|
7871
|
+
# months.
|
8101
7872
|
sig do
|
8102
7873
|
returns(
|
8103
7874
|
T.nilable(
|
@@ -8125,7 +7896,7 @@ module Orb
|
|
8125
7896
|
attr_accessor :conversion_rate
|
8126
7897
|
|
8127
7898
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
8128
|
-
#
|
7899
|
+
# price is billed.
|
8129
7900
|
sig { returns(T.nilable(String)) }
|
8130
7901
|
attr_accessor :currency
|
8131
7902
|
|
@@ -8134,7 +7905,7 @@ module Orb
|
|
8134
7905
|
attr_accessor :external_price_id
|
8135
7906
|
|
8136
7907
|
# If the Price represents a fixed cost, this represents the quantity of units
|
8137
|
-
#
|
7908
|
+
# applied.
|
8138
7909
|
sig { returns(T.nilable(Float)) }
|
8139
7910
|
attr_accessor :fixed_price_quantity
|
8140
7911
|
|
@@ -8143,7 +7914,7 @@ module Orb
|
|
8143
7914
|
attr_accessor :invoice_grouping_key
|
8144
7915
|
|
8145
7916
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
8146
|
-
#
|
7917
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
8147
7918
|
sig do
|
8148
7919
|
returns(
|
8149
7920
|
T.nilable(
|
@@ -8167,8 +7938,8 @@ module Orb
|
|
8167
7938
|
attr_writer :invoicing_cycle_configuration
|
8168
7939
|
|
8169
7940
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
8170
|
-
#
|
8171
|
-
#
|
7941
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
7942
|
+
# by setting `metadata` to `null`.
|
8172
7943
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
8173
7944
|
attr_accessor :metadata
|
8174
7945
|
|
@@ -8218,9 +7989,7 @@ module Orb
|
|
8218
7989
|
invoicing_cycle_configuration: nil,
|
8219
7990
|
metadata: nil,
|
8220
7991
|
model_type: :grouped_tiered_package
|
8221
|
-
)
|
8222
|
-
end
|
8223
|
-
|
7992
|
+
); end
|
8224
7993
|
sig do
|
8225
7994
|
override
|
8226
7995
|
.returns(
|
@@ -8247,8 +8016,7 @@ module Orb
|
|
8247
8016
|
}
|
8248
8017
|
)
|
8249
8018
|
end
|
8250
|
-
def to_hash
|
8251
|
-
end
|
8019
|
+
def to_hash; end
|
8252
8020
|
|
8253
8021
|
# The cadence to bill for this price on.
|
8254
8022
|
module Cadence
|
@@ -8302,8 +8070,7 @@ module Orb
|
|
8302
8070
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol]
|
8303
8071
|
)
|
8304
8072
|
end
|
8305
|
-
def self.values
|
8306
|
-
end
|
8073
|
+
def self.values; end
|
8307
8074
|
end
|
8308
8075
|
|
8309
8076
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -8320,7 +8087,7 @@ module Orb
|
|
8320
8087
|
attr_accessor :duration_unit
|
8321
8088
|
|
8322
8089
|
# For custom cadence: specifies the duration of the billing period in days or
|
8323
|
-
#
|
8090
|
+
# months.
|
8324
8091
|
sig do
|
8325
8092
|
params(
|
8326
8093
|
duration: Integer,
|
@@ -8328,8 +8095,7 @@ module Orb
|
|
8328
8095
|
)
|
8329
8096
|
.returns(T.attached_class)
|
8330
8097
|
end
|
8331
|
-
def self.new(duration:, duration_unit:)
|
8332
|
-
end
|
8098
|
+
def self.new(duration:, duration_unit:); end
|
8333
8099
|
|
8334
8100
|
sig do
|
8335
8101
|
override
|
@@ -8340,8 +8106,7 @@ module Orb
|
|
8340
8106
|
}
|
8341
8107
|
)
|
8342
8108
|
end
|
8343
|
-
def to_hash
|
8344
|
-
end
|
8109
|
+
def to_hash; end
|
8345
8110
|
|
8346
8111
|
# The unit of billing period duration.
|
8347
8112
|
module DurationUnit
|
@@ -8375,12 +8140,11 @@ module Orb
|
|
8375
8140
|
override
|
8376
8141
|
.returns(
|
8377
8142
|
T::Array[
|
8378
|
-
|
8143
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
8379
8144
|
]
|
8380
8145
|
)
|
8381
8146
|
end
|
8382
|
-
def self.values
|
8383
|
-
end
|
8147
|
+
def self.values; end
|
8384
8148
|
end
|
8385
8149
|
end
|
8386
8150
|
|
@@ -8398,7 +8162,7 @@ module Orb
|
|
8398
8162
|
attr_accessor :duration_unit
|
8399
8163
|
|
8400
8164
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
8401
|
-
#
|
8165
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
8402
8166
|
sig do
|
8403
8167
|
params(
|
8404
8168
|
duration: Integer,
|
@@ -8406,8 +8170,7 @@ module Orb
|
|
8406
8170
|
)
|
8407
8171
|
.returns(T.attached_class)
|
8408
8172
|
end
|
8409
|
-
def self.new(duration:, duration_unit:)
|
8410
|
-
end
|
8173
|
+
def self.new(duration:, duration_unit:); end
|
8411
8174
|
|
8412
8175
|
sig do
|
8413
8176
|
override
|
@@ -8418,8 +8181,7 @@ module Orb
|
|
8418
8181
|
}
|
8419
8182
|
)
|
8420
8183
|
end
|
8421
|
-
def to_hash
|
8422
|
-
end
|
8184
|
+
def to_hash; end
|
8423
8185
|
|
8424
8186
|
# The unit of billing period duration.
|
8425
8187
|
module DurationUnit
|
@@ -8453,12 +8215,11 @@ module Orb
|
|
8453
8215
|
override
|
8454
8216
|
.returns(
|
8455
8217
|
T::Array[
|
8456
|
-
|
8218
|
+
Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
8457
8219
|
]
|
8458
8220
|
)
|
8459
8221
|
end
|
8460
|
-
def self.values
|
8461
|
-
end
|
8222
|
+
def self.values; end
|
8462
8223
|
end
|
8463
8224
|
end
|
8464
8225
|
end
|
@@ -8483,17 +8244,17 @@ module Orb
|
|
8483
8244
|
attr_accessor :name
|
8484
8245
|
|
8485
8246
|
# The id of the billable metric for the price. Only needed if the price is
|
8486
|
-
#
|
8247
|
+
# usage-based.
|
8487
8248
|
sig { returns(T.nilable(String)) }
|
8488
8249
|
attr_accessor :billable_metric_id
|
8489
8250
|
|
8490
8251
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
8491
|
-
#
|
8252
|
+
# this is true, and in-arrears if this is false.
|
8492
8253
|
sig { returns(T.nilable(T::Boolean)) }
|
8493
8254
|
attr_accessor :billed_in_advance
|
8494
8255
|
|
8495
8256
|
# For custom cadence: specifies the duration of the billing period in days or
|
8496
|
-
#
|
8257
|
+
# months.
|
8497
8258
|
sig do
|
8498
8259
|
returns(
|
8499
8260
|
T.nilable(
|
@@ -8521,7 +8282,7 @@ module Orb
|
|
8521
8282
|
attr_accessor :conversion_rate
|
8522
8283
|
|
8523
8284
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
8524
|
-
#
|
8285
|
+
# price is billed.
|
8525
8286
|
sig { returns(T.nilable(String)) }
|
8526
8287
|
attr_accessor :currency
|
8527
8288
|
|
@@ -8530,7 +8291,7 @@ module Orb
|
|
8530
8291
|
attr_accessor :external_price_id
|
8531
8292
|
|
8532
8293
|
# If the Price represents a fixed cost, this represents the quantity of units
|
8533
|
-
#
|
8294
|
+
# applied.
|
8534
8295
|
sig { returns(T.nilable(Float)) }
|
8535
8296
|
attr_accessor :fixed_price_quantity
|
8536
8297
|
|
@@ -8539,7 +8300,7 @@ module Orb
|
|
8539
8300
|
attr_accessor :invoice_grouping_key
|
8540
8301
|
|
8541
8302
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
8542
|
-
#
|
8303
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
8543
8304
|
sig do
|
8544
8305
|
returns(
|
8545
8306
|
T.nilable(
|
@@ -8563,8 +8324,8 @@ module Orb
|
|
8563
8324
|
attr_writer :invoicing_cycle_configuration
|
8564
8325
|
|
8565
8326
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
8566
|
-
#
|
8567
|
-
#
|
8327
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
8328
|
+
# by setting `metadata` to `null`.
|
8568
8329
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
8569
8330
|
attr_accessor :metadata
|
8570
8331
|
|
@@ -8614,9 +8375,7 @@ module Orb
|
|
8614
8375
|
invoicing_cycle_configuration: nil,
|
8615
8376
|
metadata: nil,
|
8616
8377
|
model_type: :max_group_tiered_package
|
8617
|
-
)
|
8618
|
-
end
|
8619
|
-
|
8378
|
+
); end
|
8620
8379
|
sig do
|
8621
8380
|
override
|
8622
8381
|
.returns(
|
@@ -8643,8 +8402,7 @@ module Orb
|
|
8643
8402
|
}
|
8644
8403
|
)
|
8645
8404
|
end
|
8646
|
-
def to_hash
|
8647
|
-
end
|
8405
|
+
def to_hash; end
|
8648
8406
|
|
8649
8407
|
# The cadence to bill for this price on.
|
8650
8408
|
module Cadence
|
@@ -8698,8 +8456,7 @@ module Orb
|
|
8698
8456
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol]
|
8699
8457
|
)
|
8700
8458
|
end
|
8701
|
-
def self.values
|
8702
|
-
end
|
8459
|
+
def self.values; end
|
8703
8460
|
end
|
8704
8461
|
|
8705
8462
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -8716,7 +8473,7 @@ module Orb
|
|
8716
8473
|
attr_accessor :duration_unit
|
8717
8474
|
|
8718
8475
|
# For custom cadence: specifies the duration of the billing period in days or
|
8719
|
-
#
|
8476
|
+
# months.
|
8720
8477
|
sig do
|
8721
8478
|
params(
|
8722
8479
|
duration: Integer,
|
@@ -8724,8 +8481,7 @@ module Orb
|
|
8724
8481
|
)
|
8725
8482
|
.returns(T.attached_class)
|
8726
8483
|
end
|
8727
|
-
def self.new(duration:, duration_unit:)
|
8728
|
-
end
|
8484
|
+
def self.new(duration:, duration_unit:); end
|
8729
8485
|
|
8730
8486
|
sig do
|
8731
8487
|
override
|
@@ -8736,8 +8492,7 @@ module Orb
|
|
8736
8492
|
}
|
8737
8493
|
)
|
8738
8494
|
end
|
8739
|
-
def to_hash
|
8740
|
-
end
|
8495
|
+
def to_hash; end
|
8741
8496
|
|
8742
8497
|
# The unit of billing period duration.
|
8743
8498
|
module DurationUnit
|
@@ -8771,12 +8526,11 @@ module Orb
|
|
8771
8526
|
override
|
8772
8527
|
.returns(
|
8773
8528
|
T::Array[
|
8774
|
-
|
8529
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
8775
8530
|
]
|
8776
8531
|
)
|
8777
8532
|
end
|
8778
|
-
def self.values
|
8779
|
-
end
|
8533
|
+
def self.values; end
|
8780
8534
|
end
|
8781
8535
|
end
|
8782
8536
|
|
@@ -8794,7 +8548,7 @@ module Orb
|
|
8794
8548
|
attr_accessor :duration_unit
|
8795
8549
|
|
8796
8550
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
8797
|
-
#
|
8551
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
8798
8552
|
sig do
|
8799
8553
|
params(
|
8800
8554
|
duration: Integer,
|
@@ -8802,8 +8556,7 @@ module Orb
|
|
8802
8556
|
)
|
8803
8557
|
.returns(T.attached_class)
|
8804
8558
|
end
|
8805
|
-
def self.new(duration:, duration_unit:)
|
8806
|
-
end
|
8559
|
+
def self.new(duration:, duration_unit:); end
|
8807
8560
|
|
8808
8561
|
sig do
|
8809
8562
|
override
|
@@ -8814,8 +8567,7 @@ module Orb
|
|
8814
8567
|
}
|
8815
8568
|
)
|
8816
8569
|
end
|
8817
|
-
def to_hash
|
8818
|
-
end
|
8570
|
+
def to_hash; end
|
8819
8571
|
|
8820
8572
|
# The unit of billing period duration.
|
8821
8573
|
module DurationUnit
|
@@ -8849,12 +8601,11 @@ module Orb
|
|
8849
8601
|
override
|
8850
8602
|
.returns(
|
8851
8603
|
T::Array[
|
8852
|
-
|
8604
|
+
Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
8853
8605
|
]
|
8854
8606
|
)
|
8855
8607
|
end
|
8856
|
-
def self.values
|
8857
|
-
end
|
8608
|
+
def self.values; end
|
8858
8609
|
end
|
8859
8610
|
end
|
8860
8611
|
end
|
@@ -8883,17 +8634,17 @@ module Orb
|
|
8883
8634
|
attr_accessor :scalable_matrix_with_unit_pricing_config
|
8884
8635
|
|
8885
8636
|
# The id of the billable metric for the price. Only needed if the price is
|
8886
|
-
#
|
8637
|
+
# usage-based.
|
8887
8638
|
sig { returns(T.nilable(String)) }
|
8888
8639
|
attr_accessor :billable_metric_id
|
8889
8640
|
|
8890
8641
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
8891
|
-
#
|
8642
|
+
# this is true, and in-arrears if this is false.
|
8892
8643
|
sig { returns(T.nilable(T::Boolean)) }
|
8893
8644
|
attr_accessor :billed_in_advance
|
8894
8645
|
|
8895
8646
|
# For custom cadence: specifies the duration of the billing period in days or
|
8896
|
-
#
|
8647
|
+
# months.
|
8897
8648
|
sig do
|
8898
8649
|
returns(
|
8899
8650
|
T.nilable(
|
@@ -8921,7 +8672,7 @@ module Orb
|
|
8921
8672
|
attr_accessor :conversion_rate
|
8922
8673
|
|
8923
8674
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
8924
|
-
#
|
8675
|
+
# price is billed.
|
8925
8676
|
sig { returns(T.nilable(String)) }
|
8926
8677
|
attr_accessor :currency
|
8927
8678
|
|
@@ -8930,7 +8681,7 @@ module Orb
|
|
8930
8681
|
attr_accessor :external_price_id
|
8931
8682
|
|
8932
8683
|
# If the Price represents a fixed cost, this represents the quantity of units
|
8933
|
-
#
|
8684
|
+
# applied.
|
8934
8685
|
sig { returns(T.nilable(Float)) }
|
8935
8686
|
attr_accessor :fixed_price_quantity
|
8936
8687
|
|
@@ -8939,7 +8690,7 @@ module Orb
|
|
8939
8690
|
attr_accessor :invoice_grouping_key
|
8940
8691
|
|
8941
8692
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
8942
|
-
#
|
8693
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
8943
8694
|
sig do
|
8944
8695
|
returns(
|
8945
8696
|
T.nilable(
|
@@ -8963,8 +8714,8 @@ module Orb
|
|
8963
8714
|
attr_writer :invoicing_cycle_configuration
|
8964
8715
|
|
8965
8716
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
8966
|
-
#
|
8967
|
-
#
|
8717
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
8718
|
+
# by setting `metadata` to `null`.
|
8968
8719
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
8969
8720
|
attr_accessor :metadata
|
8970
8721
|
|
@@ -9014,9 +8765,7 @@ module Orb
|
|
9014
8765
|
invoicing_cycle_configuration: nil,
|
9015
8766
|
metadata: nil,
|
9016
8767
|
model_type: :scalable_matrix_with_unit_pricing
|
9017
|
-
)
|
9018
|
-
end
|
9019
|
-
|
8768
|
+
); end
|
9020
8769
|
sig do
|
9021
8770
|
override
|
9022
8771
|
.returns(
|
@@ -9043,8 +8792,7 @@ module Orb
|
|
9043
8792
|
}
|
9044
8793
|
)
|
9045
8794
|
end
|
9046
|
-
def to_hash
|
9047
|
-
end
|
8795
|
+
def to_hash; end
|
9048
8796
|
|
9049
8797
|
# The cadence to bill for this price on.
|
9050
8798
|
module Cadence
|
@@ -9098,8 +8846,7 @@ module Orb
|
|
9098
8846
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol]
|
9099
8847
|
)
|
9100
8848
|
end
|
9101
|
-
def self.values
|
9102
|
-
end
|
8849
|
+
def self.values; end
|
9103
8850
|
end
|
9104
8851
|
|
9105
8852
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -9116,7 +8863,7 @@ module Orb
|
|
9116
8863
|
attr_accessor :duration_unit
|
9117
8864
|
|
9118
8865
|
# For custom cadence: specifies the duration of the billing period in days or
|
9119
|
-
#
|
8866
|
+
# months.
|
9120
8867
|
sig do
|
9121
8868
|
params(
|
9122
8869
|
duration: Integer,
|
@@ -9124,8 +8871,7 @@ module Orb
|
|
9124
8871
|
)
|
9125
8872
|
.returns(T.attached_class)
|
9126
8873
|
end
|
9127
|
-
def self.new(duration:, duration_unit:)
|
9128
|
-
end
|
8874
|
+
def self.new(duration:, duration_unit:); end
|
9129
8875
|
|
9130
8876
|
sig do
|
9131
8877
|
override
|
@@ -9136,8 +8882,7 @@ module Orb
|
|
9136
8882
|
}
|
9137
8883
|
)
|
9138
8884
|
end
|
9139
|
-
def to_hash
|
9140
|
-
end
|
8885
|
+
def to_hash; end
|
9141
8886
|
|
9142
8887
|
# The unit of billing period duration.
|
9143
8888
|
module DurationUnit
|
@@ -9171,12 +8916,11 @@ module Orb
|
|
9171
8916
|
override
|
9172
8917
|
.returns(
|
9173
8918
|
T::Array[
|
9174
|
-
|
8919
|
+
Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
9175
8920
|
]
|
9176
8921
|
)
|
9177
8922
|
end
|
9178
|
-
def self.values
|
9179
|
-
end
|
8923
|
+
def self.values; end
|
9180
8924
|
end
|
9181
8925
|
end
|
9182
8926
|
|
@@ -9194,7 +8938,7 @@ module Orb
|
|
9194
8938
|
attr_accessor :duration_unit
|
9195
8939
|
|
9196
8940
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
9197
|
-
#
|
8941
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
9198
8942
|
sig do
|
9199
8943
|
params(
|
9200
8944
|
duration: Integer,
|
@@ -9202,8 +8946,7 @@ module Orb
|
|
9202
8946
|
)
|
9203
8947
|
.returns(T.attached_class)
|
9204
8948
|
end
|
9205
|
-
def self.new(duration:, duration_unit:)
|
9206
|
-
end
|
8949
|
+
def self.new(duration:, duration_unit:); end
|
9207
8950
|
|
9208
8951
|
sig do
|
9209
8952
|
override
|
@@ -9214,8 +8957,7 @@ module Orb
|
|
9214
8957
|
}
|
9215
8958
|
)
|
9216
8959
|
end
|
9217
|
-
def to_hash
|
9218
|
-
end
|
8960
|
+
def to_hash; end
|
9219
8961
|
|
9220
8962
|
# The unit of billing period duration.
|
9221
8963
|
module DurationUnit
|
@@ -9249,12 +8991,11 @@ module Orb
|
|
9249
8991
|
override
|
9250
8992
|
.returns(
|
9251
8993
|
T::Array[
|
9252
|
-
|
8994
|
+
Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
9253
8995
|
]
|
9254
8996
|
)
|
9255
8997
|
end
|
9256
|
-
def self.values
|
9257
|
-
end
|
8998
|
+
def self.values; end
|
9258
8999
|
end
|
9259
9000
|
end
|
9260
9001
|
end
|
@@ -9283,17 +9024,17 @@ module Orb
|
|
9283
9024
|
attr_accessor :scalable_matrix_with_tiered_pricing_config
|
9284
9025
|
|
9285
9026
|
# The id of the billable metric for the price. Only needed if the price is
|
9286
|
-
#
|
9027
|
+
# usage-based.
|
9287
9028
|
sig { returns(T.nilable(String)) }
|
9288
9029
|
attr_accessor :billable_metric_id
|
9289
9030
|
|
9290
9031
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
9291
|
-
#
|
9032
|
+
# this is true, and in-arrears if this is false.
|
9292
9033
|
sig { returns(T.nilable(T::Boolean)) }
|
9293
9034
|
attr_accessor :billed_in_advance
|
9294
9035
|
|
9295
9036
|
# For custom cadence: specifies the duration of the billing period in days or
|
9296
|
-
#
|
9037
|
+
# months.
|
9297
9038
|
sig do
|
9298
9039
|
returns(
|
9299
9040
|
T.nilable(
|
@@ -9321,7 +9062,7 @@ module Orb
|
|
9321
9062
|
attr_accessor :conversion_rate
|
9322
9063
|
|
9323
9064
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
9324
|
-
#
|
9065
|
+
# price is billed.
|
9325
9066
|
sig { returns(T.nilable(String)) }
|
9326
9067
|
attr_accessor :currency
|
9327
9068
|
|
@@ -9330,7 +9071,7 @@ module Orb
|
|
9330
9071
|
attr_accessor :external_price_id
|
9331
9072
|
|
9332
9073
|
# If the Price represents a fixed cost, this represents the quantity of units
|
9333
|
-
#
|
9074
|
+
# applied.
|
9334
9075
|
sig { returns(T.nilable(Float)) }
|
9335
9076
|
attr_accessor :fixed_price_quantity
|
9336
9077
|
|
@@ -9339,7 +9080,7 @@ module Orb
|
|
9339
9080
|
attr_accessor :invoice_grouping_key
|
9340
9081
|
|
9341
9082
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
9342
|
-
#
|
9083
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
9343
9084
|
sig do
|
9344
9085
|
returns(
|
9345
9086
|
T.nilable(
|
@@ -9363,8 +9104,8 @@ module Orb
|
|
9363
9104
|
attr_writer :invoicing_cycle_configuration
|
9364
9105
|
|
9365
9106
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
9366
|
-
#
|
9367
|
-
#
|
9107
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
9108
|
+
# by setting `metadata` to `null`.
|
9368
9109
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
9369
9110
|
attr_accessor :metadata
|
9370
9111
|
|
@@ -9414,9 +9155,7 @@ module Orb
|
|
9414
9155
|
invoicing_cycle_configuration: nil,
|
9415
9156
|
metadata: nil,
|
9416
9157
|
model_type: :scalable_matrix_with_tiered_pricing
|
9417
|
-
)
|
9418
|
-
end
|
9419
|
-
|
9158
|
+
); end
|
9420
9159
|
sig do
|
9421
9160
|
override
|
9422
9161
|
.returns(
|
@@ -9443,8 +9182,7 @@ module Orb
|
|
9443
9182
|
}
|
9444
9183
|
)
|
9445
9184
|
end
|
9446
|
-
def to_hash
|
9447
|
-
end
|
9185
|
+
def to_hash; end
|
9448
9186
|
|
9449
9187
|
# The cadence to bill for this price on.
|
9450
9188
|
module Cadence
|
@@ -9498,8 +9236,7 @@ module Orb
|
|
9498
9236
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol]
|
9499
9237
|
)
|
9500
9238
|
end
|
9501
|
-
def self.values
|
9502
|
-
end
|
9239
|
+
def self.values; end
|
9503
9240
|
end
|
9504
9241
|
|
9505
9242
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -9516,7 +9253,7 @@ module Orb
|
|
9516
9253
|
attr_accessor :duration_unit
|
9517
9254
|
|
9518
9255
|
# For custom cadence: specifies the duration of the billing period in days or
|
9519
|
-
#
|
9256
|
+
# months.
|
9520
9257
|
sig do
|
9521
9258
|
params(
|
9522
9259
|
duration: Integer,
|
@@ -9524,8 +9261,7 @@ module Orb
|
|
9524
9261
|
)
|
9525
9262
|
.returns(T.attached_class)
|
9526
9263
|
end
|
9527
|
-
def self.new(duration:, duration_unit:)
|
9528
|
-
end
|
9264
|
+
def self.new(duration:, duration_unit:); end
|
9529
9265
|
|
9530
9266
|
sig do
|
9531
9267
|
override
|
@@ -9536,8 +9272,7 @@ module Orb
|
|
9536
9272
|
}
|
9537
9273
|
)
|
9538
9274
|
end
|
9539
|
-
def to_hash
|
9540
|
-
end
|
9275
|
+
def to_hash; end
|
9541
9276
|
|
9542
9277
|
# The unit of billing period duration.
|
9543
9278
|
module DurationUnit
|
@@ -9571,12 +9306,11 @@ module Orb
|
|
9571
9306
|
override
|
9572
9307
|
.returns(
|
9573
9308
|
T::Array[
|
9574
|
-
|
9309
|
+
Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
9575
9310
|
]
|
9576
9311
|
)
|
9577
9312
|
end
|
9578
|
-
def self.values
|
9579
|
-
end
|
9313
|
+
def self.values; end
|
9580
9314
|
end
|
9581
9315
|
end
|
9582
9316
|
|
@@ -9594,7 +9328,7 @@ module Orb
|
|
9594
9328
|
attr_accessor :duration_unit
|
9595
9329
|
|
9596
9330
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
9597
|
-
#
|
9331
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
9598
9332
|
sig do
|
9599
9333
|
params(
|
9600
9334
|
duration: Integer,
|
@@ -9602,8 +9336,7 @@ module Orb
|
|
9602
9336
|
)
|
9603
9337
|
.returns(T.attached_class)
|
9604
9338
|
end
|
9605
|
-
def self.new(duration:, duration_unit:)
|
9606
|
-
end
|
9339
|
+
def self.new(duration:, duration_unit:); end
|
9607
9340
|
|
9608
9341
|
sig do
|
9609
9342
|
override
|
@@ -9614,8 +9347,7 @@ module Orb
|
|
9614
9347
|
}
|
9615
9348
|
)
|
9616
9349
|
end
|
9617
|
-
def to_hash
|
9618
|
-
end
|
9350
|
+
def to_hash; end
|
9619
9351
|
|
9620
9352
|
# The unit of billing period duration.
|
9621
9353
|
module DurationUnit
|
@@ -9649,12 +9381,11 @@ module Orb
|
|
9649
9381
|
override
|
9650
9382
|
.returns(
|
9651
9383
|
T::Array[
|
9652
|
-
|
9384
|
+
Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
9653
9385
|
]
|
9654
9386
|
)
|
9655
9387
|
end
|
9656
|
-
def self.values
|
9657
|
-
end
|
9388
|
+
def self.values; end
|
9658
9389
|
end
|
9659
9390
|
end
|
9660
9391
|
end
|
@@ -9679,17 +9410,17 @@ module Orb
|
|
9679
9410
|
attr_accessor :name
|
9680
9411
|
|
9681
9412
|
# The id of the billable metric for the price. Only needed if the price is
|
9682
|
-
#
|
9413
|
+
# usage-based.
|
9683
9414
|
sig { returns(T.nilable(String)) }
|
9684
9415
|
attr_accessor :billable_metric_id
|
9685
9416
|
|
9686
9417
|
# If the Price represents a fixed cost, the price will be billed in-advance if
|
9687
|
-
#
|
9418
|
+
# this is true, and in-arrears if this is false.
|
9688
9419
|
sig { returns(T.nilable(T::Boolean)) }
|
9689
9420
|
attr_accessor :billed_in_advance
|
9690
9421
|
|
9691
9422
|
# For custom cadence: specifies the duration of the billing period in days or
|
9692
|
-
#
|
9423
|
+
# months.
|
9693
9424
|
sig do
|
9694
9425
|
returns(
|
9695
9426
|
T.nilable(
|
@@ -9717,7 +9448,7 @@ module Orb
|
|
9717
9448
|
attr_accessor :conversion_rate
|
9718
9449
|
|
9719
9450
|
# An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
9720
|
-
#
|
9451
|
+
# price is billed.
|
9721
9452
|
sig { returns(T.nilable(String)) }
|
9722
9453
|
attr_accessor :currency
|
9723
9454
|
|
@@ -9726,7 +9457,7 @@ module Orb
|
|
9726
9457
|
attr_accessor :external_price_id
|
9727
9458
|
|
9728
9459
|
# If the Price represents a fixed cost, this represents the quantity of units
|
9729
|
-
#
|
9460
|
+
# applied.
|
9730
9461
|
sig { returns(T.nilable(Float)) }
|
9731
9462
|
attr_accessor :fixed_price_quantity
|
9732
9463
|
|
@@ -9735,7 +9466,7 @@ module Orb
|
|
9735
9466
|
attr_accessor :invoice_grouping_key
|
9736
9467
|
|
9737
9468
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
9738
|
-
#
|
9469
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
9739
9470
|
sig do
|
9740
9471
|
returns(
|
9741
9472
|
T.nilable(
|
@@ -9759,8 +9490,8 @@ module Orb
|
|
9759
9490
|
attr_writer :invoicing_cycle_configuration
|
9760
9491
|
|
9761
9492
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
9762
|
-
#
|
9763
|
-
#
|
9493
|
+
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
9494
|
+
# by setting `metadata` to `null`.
|
9764
9495
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
9765
9496
|
attr_accessor :metadata
|
9766
9497
|
|
@@ -9810,9 +9541,7 @@ module Orb
|
|
9810
9541
|
invoicing_cycle_configuration: nil,
|
9811
9542
|
metadata: nil,
|
9812
9543
|
model_type: :cumulative_grouped_bulk
|
9813
|
-
)
|
9814
|
-
end
|
9815
|
-
|
9544
|
+
); end
|
9816
9545
|
sig do
|
9817
9546
|
override
|
9818
9547
|
.returns(
|
@@ -9839,8 +9568,7 @@ module Orb
|
|
9839
9568
|
}
|
9840
9569
|
)
|
9841
9570
|
end
|
9842
|
-
def to_hash
|
9843
|
-
end
|
9571
|
+
def to_hash; end
|
9844
9572
|
|
9845
9573
|
# The cadence to bill for this price on.
|
9846
9574
|
module Cadence
|
@@ -9894,8 +9622,7 @@ module Orb
|
|
9894
9622
|
T::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol]
|
9895
9623
|
)
|
9896
9624
|
end
|
9897
|
-
def self.values
|
9898
|
-
end
|
9625
|
+
def self.values; end
|
9899
9626
|
end
|
9900
9627
|
|
9901
9628
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
@@ -9912,7 +9639,7 @@ module Orb
|
|
9912
9639
|
attr_accessor :duration_unit
|
9913
9640
|
|
9914
9641
|
# For custom cadence: specifies the duration of the billing period in days or
|
9915
|
-
#
|
9642
|
+
# months.
|
9916
9643
|
sig do
|
9917
9644
|
params(
|
9918
9645
|
duration: Integer,
|
@@ -9920,8 +9647,7 @@ module Orb
|
|
9920
9647
|
)
|
9921
9648
|
.returns(T.attached_class)
|
9922
9649
|
end
|
9923
|
-
def self.new(duration:, duration_unit:)
|
9924
|
-
end
|
9650
|
+
def self.new(duration:, duration_unit:); end
|
9925
9651
|
|
9926
9652
|
sig do
|
9927
9653
|
override
|
@@ -9932,8 +9658,7 @@ module Orb
|
|
9932
9658
|
}
|
9933
9659
|
)
|
9934
9660
|
end
|
9935
|
-
def to_hash
|
9936
|
-
end
|
9661
|
+
def to_hash; end
|
9937
9662
|
|
9938
9663
|
# The unit of billing period duration.
|
9939
9664
|
module DurationUnit
|
@@ -9967,12 +9692,11 @@ module Orb
|
|
9967
9692
|
override
|
9968
9693
|
.returns(
|
9969
9694
|
T::Array[
|
9970
|
-
|
9695
|
+
Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol
|
9971
9696
|
]
|
9972
9697
|
)
|
9973
9698
|
end
|
9974
|
-
def self.values
|
9975
|
-
end
|
9699
|
+
def self.values; end
|
9976
9700
|
end
|
9977
9701
|
end
|
9978
9702
|
|
@@ -9990,7 +9714,7 @@ module Orb
|
|
9990
9714
|
attr_accessor :duration_unit
|
9991
9715
|
|
9992
9716
|
# Within each billing cycle, specifies the cadence at which invoices are produced.
|
9993
|
-
#
|
9717
|
+
# If unspecified, a single invoice is produced per billing cycle.
|
9994
9718
|
sig do
|
9995
9719
|
params(
|
9996
9720
|
duration: Integer,
|
@@ -9998,8 +9722,7 @@ module Orb
|
|
9998
9722
|
)
|
9999
9723
|
.returns(T.attached_class)
|
10000
9724
|
end
|
10001
|
-
def self.new(duration:, duration_unit:)
|
10002
|
-
end
|
9725
|
+
def self.new(duration:, duration_unit:); end
|
10003
9726
|
|
10004
9727
|
sig do
|
10005
9728
|
override
|
@@ -10010,8 +9733,7 @@ module Orb
|
|
10010
9733
|
}
|
10011
9734
|
)
|
10012
9735
|
end
|
10013
|
-
def to_hash
|
10014
|
-
end
|
9736
|
+
def to_hash; end
|
10015
9737
|
|
10016
9738
|
# The unit of billing period duration.
|
10017
9739
|
module DurationUnit
|
@@ -10045,12 +9767,11 @@ module Orb
|
|
10045
9767
|
override
|
10046
9768
|
.returns(
|
10047
9769
|
T::Array[
|
10048
|
-
|
9770
|
+
Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol
|
10049
9771
|
]
|
10050
9772
|
)
|
10051
9773
|
end
|
10052
|
-
def self.values
|
10053
|
-
end
|
9774
|
+
def self.values; end
|
10054
9775
|
end
|
10055
9776
|
end
|
10056
9777
|
end
|
@@ -10061,12 +9782,11 @@ module Orb
|
|
10061
9782
|
[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice]
|
10062
9783
|
)
|
10063
9784
|
end
|
10064
|
-
def self.variants
|
10065
|
-
end
|
9785
|
+
def self.variants; end
|
10066
9786
|
end
|
10067
9787
|
|
10068
9788
|
# The status of the plan to create (either active or draft). If not specified,
|
10069
|
-
#
|
9789
|
+
# this defaults to active.
|
10070
9790
|
module Status
|
10071
9791
|
extend Orb::Internal::Type::Enum
|
10072
9792
|
|
@@ -10077,8 +9797,7 @@ module Orb
|
|
10077
9797
|
DRAFT = T.let(:draft, Orb::Models::PlanCreateParams::Status::TaggedSymbol)
|
10078
9798
|
|
10079
9799
|
sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Status::TaggedSymbol]) }
|
10080
|
-
def self.values
|
10081
|
-
end
|
9800
|
+
def self.values; end
|
10082
9801
|
end
|
10083
9802
|
end
|
10084
9803
|
end
|