orb-billing 1.54.0 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +7 -0
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +496 -6
- data/lib/orb/models/beta_create_plan_version_params.rb +496 -6
- data/lib/orb/models/changed_subscription_resources.rb +2 -2
- data/lib/orb/models/credit_block_accounting_sync_failed_webhook_event.rb +4 -4
- data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +4 -4
- data/lib/orb/models/credit_block_list_invoices_response.rb +4 -4
- data/lib/orb/models/credit_block_retrieve_response.rb +4 -4
- data/lib/orb/models/credit_block_update_response.rb +4 -4
- data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +4 -4
- data/lib/orb/models/dimensional_price_groups/price_create_response.rb +2 -2
- data/lib/orb/models/invoice.rb +2 -2
- data/lib/orb/models/invoice_edited_webhook_event.rb +2 -2
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +2 -2
- data/lib/orb/models/invoice_line_item_create_response.rb +2 -2
- data/lib/orb/models/metric_update_params.rb +4 -3
- data/lib/orb/models/migration_cancel_params.rb +20 -0
- data/lib/orb/models/migration_cancel_response.rb +133 -0
- data/lib/orb/models/migration_create_params.rb +159 -0
- data/lib/orb/models/migration_create_response.rb +133 -0
- data/lib/orb/models/migration_list_params.rb +48 -0
- data/lib/orb/models/migration_list_response.rb +133 -0
- data/lib/orb/models/migration_retrieve_params.rb +20 -0
- data/lib/orb/models/migration_retrieve_response.rb +133 -0
- data/lib/orb/models/migration_subscription.rb +75 -0
- data/lib/orb/models/migrations/subscription_list_params.rb +74 -0
- data/lib/orb/models/per_price_cost.rb +2 -2
- data/lib/orb/models/plan.rb +2 -2
- data/lib/orb/models/plan_create_params.rb +246 -3
- data/lib/orb/models/plan_version.rb +2 -2
- data/lib/orb/models/plans/migration_cancel_response.rb +28 -8
- data/lib/orb/models/plans/migration_list_response.rb +28 -8
- data/lib/orb/models/plans/migration_retrieve_response.rb +28 -8
- data/lib/orb/models/price.rb +416 -1
- data/lib/orb/models/price_create_params.rb +231 -3
- data/lib/orb/models/price_edited_webhook_event.rb +2 -2
- data/lib/orb/models/price_evaluate_multiple_params.rb +238 -3
- data/lib/orb/models/price_evaluate_preview_events_params.rb +238 -3
- data/lib/orb/models/price_interval.rb +2 -2
- data/lib/orb/models/subscription_create_params.rb +495 -6
- data/lib/orb/models/subscription_price_intervals_params.rb +238 -3
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +496 -6
- data/lib/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rb +4 -4
- data/lib/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rb +4 -4
- data/lib/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rb +4 -4
- data/lib/orb/models/webhooks/invoice_edited_standard_webhook_event.rb +2 -2
- data/lib/orb/models/webhooks/price_edited_standard_webhook_event.rb +2 -2
- data/lib/orb/models.rb +12 -0
- data/lib/orb/resources/credit_blocks.rb +1 -1
- data/lib/orb/resources/dimensional_price_groups/prices.rb +1 -1
- data/lib/orb/resources/metrics.rb +11 -10
- data/lib/orb/resources/migrations/subscriptions.rb +60 -0
- data/lib/orb/resources/migrations.rb +153 -0
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +5 -5
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +12 -0
- data/rbi/orb/client.rbi +6 -0
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +2939 -2129
- data/rbi/orb/models/beta_create_plan_version_params.rbi +2937 -2127
- data/rbi/orb/models/changed_subscription_resources.rbi +2 -1
- data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +5 -5
- data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +5 -5
- data/rbi/orb/models/credit_block_list_invoices_response.rbi +5 -5
- data/rbi/orb/models/credit_block_retrieve_response.rbi +5 -5
- data/rbi/orb/models/credit_block_update_response.rbi +5 -5
- data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +5 -5
- data/rbi/orb/models/dimensional_price_groups/price_create_response.rbi +2 -1
- data/rbi/orb/models/invoice.rbi +2 -1
- data/rbi/orb/models/invoice_edited_webhook_event.rbi +2 -1
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +2 -1
- data/rbi/orb/models/invoice_line_item_create_response.rbi +2 -1
- data/rbi/orb/models/metric_update_params.rbi +6 -4
- data/rbi/orb/models/migration_cancel_params.rbi +35 -0
- data/rbi/orb/models/migration_cancel_response.rbi +218 -0
- data/rbi/orb/models/migration_create_params.rbi +248 -0
- data/rbi/orb/models/migration_create_response.rbi +218 -0
- data/rbi/orb/models/migration_list_params.rbi +66 -0
- data/rbi/orb/models/migration_list_response.rbi +214 -0
- data/rbi/orb/models/migration_retrieve_params.rbi +35 -0
- data/rbi/orb/models/migration_retrieve_response.rbi +221 -0
- data/rbi/orb/models/migration_subscription.rbi +112 -0
- data/rbi/orb/models/migrations/subscription_list_params.rbi +147 -0
- data/rbi/orb/models/per_price_cost.rbi +2 -1
- data/rbi/orb/models/plan.rbi +2 -1
- data/rbi/orb/models/plan_create_params.rbi +409 -4
- data/rbi/orb/models/plan_version.rbi +2 -1
- data/rbi/orb/models/plans/migration_cancel_response.rbi +36 -12
- data/rbi/orb/models/plans/migration_list_response.rbi +36 -12
- data/rbi/orb/models/plans/migration_retrieve_response.rbi +36 -12
- data/rbi/orb/models/price.rbi +716 -1
- data/rbi/orb/models/price_create_params.rbi +397 -4
- data/rbi/orb/models/price_edited_webhook_event.rbi +2 -1
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +397 -4
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +397 -4
- data/rbi/orb/models/price_interval.rbi +2 -1
- data/rbi/orb/models/subscription_create_params.rbi +2676 -1866
- data/rbi/orb/models/subscription_price_intervals_params.rbi +397 -4
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +2686 -1876
- data/rbi/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbi +5 -5
- data/rbi/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbi +5 -5
- data/rbi/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbi +5 -5
- data/rbi/orb/models/webhooks/invoice_edited_standard_webhook_event.rbi +2 -1
- data/rbi/orb/models/webhooks/price_edited_standard_webhook_event.rbi +2 -1
- data/rbi/orb/models.rbi +12 -0
- data/rbi/orb/resources/credit_blocks.rbi +1 -1
- data/rbi/orb/resources/metrics.rbi +13 -11
- data/rbi/orb/resources/migrations/subscriptions.rbi +54 -0
- data/rbi/orb/resources/migrations.rbi +130 -0
- data/rbi/orb/resources/prices.rbi +2 -1
- data/sig/orb/client.rbs +2 -0
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +322 -0
- data/sig/orb/models/beta_create_plan_version_params.rbs +322 -0
- data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +2 -2
- data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +2 -2
- data/sig/orb/models/credit_block_list_invoices_response.rbs +2 -2
- data/sig/orb/models/credit_block_retrieve_response.rbs +2 -2
- data/sig/orb/models/credit_block_update_response.rbs +2 -2
- data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +2 -2
- data/sig/orb/models/migration_cancel_params.rbs +23 -0
- data/sig/orb/models/migration_cancel_response.rbs +84 -0
- data/sig/orb/models/migration_create_params.rbs +126 -0
- data/sig/orb/models/migration_create_response.rbs +84 -0
- data/sig/orb/models/migration_list_params.rbs +43 -0
- data/sig/orb/models/migration_list_response.rbs +84 -0
- data/sig/orb/models/migration_retrieve_params.rbs +23 -0
- data/sig/orb/models/migration_retrieve_response.rbs +84 -0
- data/sig/orb/models/migration_subscription.rbs +54 -0
- data/sig/orb/models/migrations/subscription_list_params.rbs +64 -0
- data/sig/orb/models/plan_create_params.rbs +161 -0
- data/sig/orb/models/plans/migration_cancel_response.rbs +17 -4
- data/sig/orb/models/plans/migration_list_response.rbs +17 -4
- data/sig/orb/models/plans/migration_retrieve_response.rbs +17 -4
- data/sig/orb/models/price.rbs +305 -0
- data/sig/orb/models/price_create_params.rbs +151 -0
- data/sig/orb/models/price_evaluate_multiple_params.rbs +156 -0
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +156 -0
- data/sig/orb/models/subscription_create_params.rbs +322 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +156 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +322 -0
- data/sig/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbs +2 -2
- data/sig/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbs +2 -2
- data/sig/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbs +2 -2
- data/sig/orb/models.rbs +12 -0
- data/sig/orb/resources/migrations/subscriptions.rbs +18 -0
- data/sig/orb/resources/migrations.rbs +44 -0
- metadata +37 -1
|
@@ -501,6 +501,7 @@ module Orb
|
|
|
501
501
|
| Orb::NewPlanMinimumCompositePrice
|
|
502
502
|
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent
|
|
503
503
|
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput
|
|
504
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier
|
|
504
505
|
|
|
505
506
|
module Price
|
|
506
507
|
extend Orb::Internal::Type::Union
|
|
@@ -2451,6 +2452,166 @@ module Orb
|
|
|
2451
2452
|
end
|
|
2452
2453
|
end
|
|
2453
2454
|
|
|
2455
|
+
type unit_with_multiplier =
|
|
2456
|
+
{
|
|
2457
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::cadence,
|
|
2458
|
+
item_id: String,
|
|
2459
|
+
model_type: :unit_with_multiplier,
|
|
2460
|
+
name: String,
|
|
2461
|
+
unit_with_multiplier_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
2462
|
+
billable_metric_id: String?,
|
|
2463
|
+
billed_in_advance: bool?,
|
|
2464
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2465
|
+
conversion_rate: Float?,
|
|
2466
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2467
|
+
currency: String?,
|
|
2468
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2469
|
+
external_price_id: String?,
|
|
2470
|
+
fixed_price_quantity: Float?,
|
|
2471
|
+
invoice_grouping_key: String?,
|
|
2472
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2473
|
+
license_type_id: String?,
|
|
2474
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2475
|
+
reference_id: String?
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
class UnitWithMultiplier < Orb::Internal::Type::BaseModel
|
|
2479
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::cadence
|
|
2480
|
+
|
|
2481
|
+
attr_accessor item_id: String
|
|
2482
|
+
|
|
2483
|
+
attr_accessor model_type: :unit_with_multiplier
|
|
2484
|
+
|
|
2485
|
+
attr_accessor name: String
|
|
2486
|
+
|
|
2487
|
+
attr_accessor unit_with_multiplier_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig
|
|
2488
|
+
|
|
2489
|
+
attr_accessor billable_metric_id: String?
|
|
2490
|
+
|
|
2491
|
+
attr_accessor billed_in_advance: bool?
|
|
2492
|
+
|
|
2493
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2494
|
+
|
|
2495
|
+
attr_accessor conversion_rate: Float?
|
|
2496
|
+
|
|
2497
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2498
|
+
|
|
2499
|
+
attr_accessor currency: String?
|
|
2500
|
+
|
|
2501
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2502
|
+
|
|
2503
|
+
attr_accessor external_price_id: String?
|
|
2504
|
+
|
|
2505
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2506
|
+
|
|
2507
|
+
attr_accessor invoice_grouping_key: String?
|
|
2508
|
+
|
|
2509
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2510
|
+
|
|
2511
|
+
attr_accessor license_type_id: String?
|
|
2512
|
+
|
|
2513
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2514
|
+
|
|
2515
|
+
attr_accessor reference_id: String?
|
|
2516
|
+
|
|
2517
|
+
def initialize: (
|
|
2518
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::cadence,
|
|
2519
|
+
item_id: String,
|
|
2520
|
+
name: String,
|
|
2521
|
+
unit_with_multiplier_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
2522
|
+
?billable_metric_id: String?,
|
|
2523
|
+
?billed_in_advance: bool?,
|
|
2524
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2525
|
+
?conversion_rate: Float?,
|
|
2526
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2527
|
+
?currency: String?,
|
|
2528
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2529
|
+
?external_price_id: String?,
|
|
2530
|
+
?fixed_price_quantity: Float?,
|
|
2531
|
+
?invoice_grouping_key: String?,
|
|
2532
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2533
|
+
?license_type_id: String?,
|
|
2534
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2535
|
+
?reference_id: String?,
|
|
2536
|
+
?model_type: :unit_with_multiplier
|
|
2537
|
+
) -> void
|
|
2538
|
+
|
|
2539
|
+
def to_hash: -> {
|
|
2540
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::cadence,
|
|
2541
|
+
item_id: String,
|
|
2542
|
+
model_type: :unit_with_multiplier,
|
|
2543
|
+
name: String,
|
|
2544
|
+
unit_with_multiplier_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
2545
|
+
billable_metric_id: String?,
|
|
2546
|
+
billed_in_advance: bool?,
|
|
2547
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2548
|
+
conversion_rate: Float?,
|
|
2549
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2550
|
+
currency: String?,
|
|
2551
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2552
|
+
external_price_id: String?,
|
|
2553
|
+
fixed_price_quantity: Float?,
|
|
2554
|
+
invoice_grouping_key: String?,
|
|
2555
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2556
|
+
license_type_id: String?,
|
|
2557
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2558
|
+
reference_id: String?
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
type cadence =
|
|
2562
|
+
:one_time
|
|
2563
|
+
| :monthly
|
|
2564
|
+
| :quarterly
|
|
2565
|
+
| :semi_annual
|
|
2566
|
+
| :annual
|
|
2567
|
+
| :custom
|
|
2568
|
+
|
|
2569
|
+
module Cadence
|
|
2570
|
+
extend Orb::Internal::Type::Enum
|
|
2571
|
+
|
|
2572
|
+
ONE_TIME: :one_time
|
|
2573
|
+
MONTHLY: :monthly
|
|
2574
|
+
QUARTERLY: :quarterly
|
|
2575
|
+
SEMI_ANNUAL: :semi_annual
|
|
2576
|
+
ANNUAL: :annual
|
|
2577
|
+
CUSTOM: :custom
|
|
2578
|
+
|
|
2579
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::cadence]
|
|
2580
|
+
end
|
|
2581
|
+
|
|
2582
|
+
type unit_with_multiplier_config =
|
|
2583
|
+
{
|
|
2584
|
+
default_display_name: String,
|
|
2585
|
+
display_name_key: String,
|
|
2586
|
+
multiplier_key: String,
|
|
2587
|
+
unit_amount: String
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
|
|
2591
|
+
attr_accessor default_display_name: String
|
|
2592
|
+
|
|
2593
|
+
attr_accessor display_name_key: String
|
|
2594
|
+
|
|
2595
|
+
attr_accessor multiplier_key: String
|
|
2596
|
+
|
|
2597
|
+
attr_accessor unit_amount: String
|
|
2598
|
+
|
|
2599
|
+
def initialize: (
|
|
2600
|
+
default_display_name: String,
|
|
2601
|
+
display_name_key: String,
|
|
2602
|
+
multiplier_key: String,
|
|
2603
|
+
unit_amount: String
|
|
2604
|
+
) -> void
|
|
2605
|
+
|
|
2606
|
+
def to_hash: -> {
|
|
2607
|
+
default_display_name: String,
|
|
2608
|
+
display_name_key: String,
|
|
2609
|
+
multiplier_key: String,
|
|
2610
|
+
unit_amount: String
|
|
2611
|
+
}
|
|
2612
|
+
end
|
|
2613
|
+
end
|
|
2614
|
+
|
|
2454
2615
|
def self?.variants: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::price]
|
|
2455
2616
|
end
|
|
2456
2617
|
end
|
|
@@ -2934,6 +3095,7 @@ module Orb
|
|
|
2934
3095
|
| Orb::NewPlanMinimumCompositePrice
|
|
2935
3096
|
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent
|
|
2936
3097
|
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput
|
|
3098
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier
|
|
2937
3099
|
|
|
2938
3100
|
module Price
|
|
2939
3101
|
extend Orb::Internal::Type::Union
|
|
@@ -4884,6 +5046,166 @@ module Orb
|
|
|
4884
5046
|
end
|
|
4885
5047
|
end
|
|
4886
5048
|
|
|
5049
|
+
type unit_with_multiplier =
|
|
5050
|
+
{
|
|
5051
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::cadence,
|
|
5052
|
+
item_id: String,
|
|
5053
|
+
model_type: :unit_with_multiplier,
|
|
5054
|
+
name: String,
|
|
5055
|
+
unit_with_multiplier_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
5056
|
+
billable_metric_id: String?,
|
|
5057
|
+
billed_in_advance: bool?,
|
|
5058
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
5059
|
+
conversion_rate: Float?,
|
|
5060
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
5061
|
+
currency: String?,
|
|
5062
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
5063
|
+
external_price_id: String?,
|
|
5064
|
+
fixed_price_quantity: Float?,
|
|
5065
|
+
invoice_grouping_key: String?,
|
|
5066
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
5067
|
+
license_type_id: String?,
|
|
5068
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
5069
|
+
reference_id: String?
|
|
5070
|
+
}
|
|
5071
|
+
|
|
5072
|
+
class UnitWithMultiplier < Orb::Internal::Type::BaseModel
|
|
5073
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::cadence
|
|
5074
|
+
|
|
5075
|
+
attr_accessor item_id: String
|
|
5076
|
+
|
|
5077
|
+
attr_accessor model_type: :unit_with_multiplier
|
|
5078
|
+
|
|
5079
|
+
attr_accessor name: String
|
|
5080
|
+
|
|
5081
|
+
attr_accessor unit_with_multiplier_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig
|
|
5082
|
+
|
|
5083
|
+
attr_accessor billable_metric_id: String?
|
|
5084
|
+
|
|
5085
|
+
attr_accessor billed_in_advance: bool?
|
|
5086
|
+
|
|
5087
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
5088
|
+
|
|
5089
|
+
attr_accessor conversion_rate: Float?
|
|
5090
|
+
|
|
5091
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
5092
|
+
|
|
5093
|
+
attr_accessor currency: String?
|
|
5094
|
+
|
|
5095
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
5096
|
+
|
|
5097
|
+
attr_accessor external_price_id: String?
|
|
5098
|
+
|
|
5099
|
+
attr_accessor fixed_price_quantity: Float?
|
|
5100
|
+
|
|
5101
|
+
attr_accessor invoice_grouping_key: String?
|
|
5102
|
+
|
|
5103
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
5104
|
+
|
|
5105
|
+
attr_accessor license_type_id: String?
|
|
5106
|
+
|
|
5107
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
5108
|
+
|
|
5109
|
+
attr_accessor reference_id: String?
|
|
5110
|
+
|
|
5111
|
+
def initialize: (
|
|
5112
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::cadence,
|
|
5113
|
+
item_id: String,
|
|
5114
|
+
name: String,
|
|
5115
|
+
unit_with_multiplier_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
5116
|
+
?billable_metric_id: String?,
|
|
5117
|
+
?billed_in_advance: bool?,
|
|
5118
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
5119
|
+
?conversion_rate: Float?,
|
|
5120
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
5121
|
+
?currency: String?,
|
|
5122
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
5123
|
+
?external_price_id: String?,
|
|
5124
|
+
?fixed_price_quantity: Float?,
|
|
5125
|
+
?invoice_grouping_key: String?,
|
|
5126
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
5127
|
+
?license_type_id: String?,
|
|
5128
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
5129
|
+
?reference_id: String?,
|
|
5130
|
+
?model_type: :unit_with_multiplier
|
|
5131
|
+
) -> void
|
|
5132
|
+
|
|
5133
|
+
def to_hash: -> {
|
|
5134
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::cadence,
|
|
5135
|
+
item_id: String,
|
|
5136
|
+
model_type: :unit_with_multiplier,
|
|
5137
|
+
name: String,
|
|
5138
|
+
unit_with_multiplier_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
5139
|
+
billable_metric_id: String?,
|
|
5140
|
+
billed_in_advance: bool?,
|
|
5141
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
5142
|
+
conversion_rate: Float?,
|
|
5143
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
5144
|
+
currency: String?,
|
|
5145
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
5146
|
+
external_price_id: String?,
|
|
5147
|
+
fixed_price_quantity: Float?,
|
|
5148
|
+
invoice_grouping_key: String?,
|
|
5149
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
5150
|
+
license_type_id: String?,
|
|
5151
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
5152
|
+
reference_id: String?
|
|
5153
|
+
}
|
|
5154
|
+
|
|
5155
|
+
type cadence =
|
|
5156
|
+
:one_time
|
|
5157
|
+
| :monthly
|
|
5158
|
+
| :quarterly
|
|
5159
|
+
| :semi_annual
|
|
5160
|
+
| :annual
|
|
5161
|
+
| :custom
|
|
5162
|
+
|
|
5163
|
+
module Cadence
|
|
5164
|
+
extend Orb::Internal::Type::Enum
|
|
5165
|
+
|
|
5166
|
+
ONE_TIME: :one_time
|
|
5167
|
+
MONTHLY: :monthly
|
|
5168
|
+
QUARTERLY: :quarterly
|
|
5169
|
+
SEMI_ANNUAL: :semi_annual
|
|
5170
|
+
ANNUAL: :annual
|
|
5171
|
+
CUSTOM: :custom
|
|
5172
|
+
|
|
5173
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::cadence]
|
|
5174
|
+
end
|
|
5175
|
+
|
|
5176
|
+
type unit_with_multiplier_config =
|
|
5177
|
+
{
|
|
5178
|
+
default_display_name: String,
|
|
5179
|
+
display_name_key: String,
|
|
5180
|
+
multiplier_key: String,
|
|
5181
|
+
unit_amount: String
|
|
5182
|
+
}
|
|
5183
|
+
|
|
5184
|
+
class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
|
|
5185
|
+
attr_accessor default_display_name: String
|
|
5186
|
+
|
|
5187
|
+
attr_accessor display_name_key: String
|
|
5188
|
+
|
|
5189
|
+
attr_accessor multiplier_key: String
|
|
5190
|
+
|
|
5191
|
+
attr_accessor unit_amount: String
|
|
5192
|
+
|
|
5193
|
+
def initialize: (
|
|
5194
|
+
default_display_name: String,
|
|
5195
|
+
display_name_key: String,
|
|
5196
|
+
multiplier_key: String,
|
|
5197
|
+
unit_amount: String
|
|
5198
|
+
) -> void
|
|
5199
|
+
|
|
5200
|
+
def to_hash: -> {
|
|
5201
|
+
default_display_name: String,
|
|
5202
|
+
display_name_key: String,
|
|
5203
|
+
multiplier_key: String,
|
|
5204
|
+
unit_amount: String
|
|
5205
|
+
}
|
|
5206
|
+
end
|
|
5207
|
+
end
|
|
5208
|
+
|
|
4887
5209
|
def self?.variants: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::price]
|
|
4888
5210
|
end
|
|
4889
5211
|
end
|
|
@@ -495,6 +495,7 @@ module Orb
|
|
|
495
495
|
| Orb::NewPlanMinimumCompositePrice
|
|
496
496
|
| Orb::BetaCreatePlanVersionParams::AddPrice::Price::Percent
|
|
497
497
|
| Orb::BetaCreatePlanVersionParams::AddPrice::Price::EventOutput
|
|
498
|
+
| Orb::BetaCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier
|
|
498
499
|
|
|
499
500
|
module Price
|
|
500
501
|
extend Orb::Internal::Type::Union
|
|
@@ -2442,6 +2443,166 @@ module Orb
|
|
|
2442
2443
|
end
|
|
2443
2444
|
end
|
|
2444
2445
|
|
|
2446
|
+
type unit_with_multiplier =
|
|
2447
|
+
{
|
|
2448
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::cadence,
|
|
2449
|
+
item_id: String,
|
|
2450
|
+
model_type: :unit_with_multiplier,
|
|
2451
|
+
name: String,
|
|
2452
|
+
unit_with_multiplier_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
2453
|
+
billable_metric_id: String?,
|
|
2454
|
+
billed_in_advance: bool?,
|
|
2455
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2456
|
+
conversion_rate: Float?,
|
|
2457
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2458
|
+
currency: String?,
|
|
2459
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2460
|
+
external_price_id: String?,
|
|
2461
|
+
fixed_price_quantity: Float?,
|
|
2462
|
+
invoice_grouping_key: String?,
|
|
2463
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2464
|
+
license_type_id: String?,
|
|
2465
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2466
|
+
reference_id: String?
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
class UnitWithMultiplier < Orb::Internal::Type::BaseModel
|
|
2470
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::cadence
|
|
2471
|
+
|
|
2472
|
+
attr_accessor item_id: String
|
|
2473
|
+
|
|
2474
|
+
attr_accessor model_type: :unit_with_multiplier
|
|
2475
|
+
|
|
2476
|
+
attr_accessor name: String
|
|
2477
|
+
|
|
2478
|
+
attr_accessor unit_with_multiplier_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig
|
|
2479
|
+
|
|
2480
|
+
attr_accessor billable_metric_id: String?
|
|
2481
|
+
|
|
2482
|
+
attr_accessor billed_in_advance: bool?
|
|
2483
|
+
|
|
2484
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2485
|
+
|
|
2486
|
+
attr_accessor conversion_rate: Float?
|
|
2487
|
+
|
|
2488
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2489
|
+
|
|
2490
|
+
attr_accessor currency: String?
|
|
2491
|
+
|
|
2492
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2493
|
+
|
|
2494
|
+
attr_accessor external_price_id: String?
|
|
2495
|
+
|
|
2496
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2497
|
+
|
|
2498
|
+
attr_accessor invoice_grouping_key: String?
|
|
2499
|
+
|
|
2500
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2501
|
+
|
|
2502
|
+
attr_accessor license_type_id: String?
|
|
2503
|
+
|
|
2504
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2505
|
+
|
|
2506
|
+
attr_accessor reference_id: String?
|
|
2507
|
+
|
|
2508
|
+
def initialize: (
|
|
2509
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::cadence,
|
|
2510
|
+
item_id: String,
|
|
2511
|
+
name: String,
|
|
2512
|
+
unit_with_multiplier_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
2513
|
+
?billable_metric_id: String?,
|
|
2514
|
+
?billed_in_advance: bool?,
|
|
2515
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2516
|
+
?conversion_rate: Float?,
|
|
2517
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2518
|
+
?currency: String?,
|
|
2519
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2520
|
+
?external_price_id: String?,
|
|
2521
|
+
?fixed_price_quantity: Float?,
|
|
2522
|
+
?invoice_grouping_key: String?,
|
|
2523
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2524
|
+
?license_type_id: String?,
|
|
2525
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2526
|
+
?reference_id: String?,
|
|
2527
|
+
?model_type: :unit_with_multiplier
|
|
2528
|
+
) -> void
|
|
2529
|
+
|
|
2530
|
+
def to_hash: -> {
|
|
2531
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::cadence,
|
|
2532
|
+
item_id: String,
|
|
2533
|
+
model_type: :unit_with_multiplier,
|
|
2534
|
+
name: String,
|
|
2535
|
+
unit_with_multiplier_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
2536
|
+
billable_metric_id: String?,
|
|
2537
|
+
billed_in_advance: bool?,
|
|
2538
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2539
|
+
conversion_rate: Float?,
|
|
2540
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2541
|
+
currency: String?,
|
|
2542
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2543
|
+
external_price_id: String?,
|
|
2544
|
+
fixed_price_quantity: Float?,
|
|
2545
|
+
invoice_grouping_key: String?,
|
|
2546
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2547
|
+
license_type_id: String?,
|
|
2548
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2549
|
+
reference_id: String?
|
|
2550
|
+
}
|
|
2551
|
+
|
|
2552
|
+
type cadence =
|
|
2553
|
+
:one_time
|
|
2554
|
+
| :monthly
|
|
2555
|
+
| :quarterly
|
|
2556
|
+
| :semi_annual
|
|
2557
|
+
| :annual
|
|
2558
|
+
| :custom
|
|
2559
|
+
|
|
2560
|
+
module Cadence
|
|
2561
|
+
extend Orb::Internal::Type::Enum
|
|
2562
|
+
|
|
2563
|
+
ONE_TIME: :one_time
|
|
2564
|
+
MONTHLY: :monthly
|
|
2565
|
+
QUARTERLY: :quarterly
|
|
2566
|
+
SEMI_ANNUAL: :semi_annual
|
|
2567
|
+
ANNUAL: :annual
|
|
2568
|
+
CUSTOM: :custom
|
|
2569
|
+
|
|
2570
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::UnitWithMultiplier::cadence]
|
|
2571
|
+
end
|
|
2572
|
+
|
|
2573
|
+
type unit_with_multiplier_config =
|
|
2574
|
+
{
|
|
2575
|
+
default_display_name: String,
|
|
2576
|
+
display_name_key: String,
|
|
2577
|
+
multiplier_key: String,
|
|
2578
|
+
unit_amount: String
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
|
|
2582
|
+
attr_accessor default_display_name: String
|
|
2583
|
+
|
|
2584
|
+
attr_accessor display_name_key: String
|
|
2585
|
+
|
|
2586
|
+
attr_accessor multiplier_key: String
|
|
2587
|
+
|
|
2588
|
+
attr_accessor unit_amount: String
|
|
2589
|
+
|
|
2590
|
+
def initialize: (
|
|
2591
|
+
default_display_name: String,
|
|
2592
|
+
display_name_key: String,
|
|
2593
|
+
multiplier_key: String,
|
|
2594
|
+
unit_amount: String
|
|
2595
|
+
) -> void
|
|
2596
|
+
|
|
2597
|
+
def to_hash: -> {
|
|
2598
|
+
default_display_name: String,
|
|
2599
|
+
display_name_key: String,
|
|
2600
|
+
multiplier_key: String,
|
|
2601
|
+
unit_amount: String
|
|
2602
|
+
}
|
|
2603
|
+
end
|
|
2604
|
+
end
|
|
2605
|
+
|
|
2445
2606
|
def self?.variants: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::price]
|
|
2446
2607
|
end
|
|
2447
2608
|
end
|
|
@@ -2917,6 +3078,7 @@ module Orb
|
|
|
2917
3078
|
| Orb::NewPlanMinimumCompositePrice
|
|
2918
3079
|
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Percent
|
|
2919
3080
|
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::EventOutput
|
|
3081
|
+
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier
|
|
2920
3082
|
|
|
2921
3083
|
module Price
|
|
2922
3084
|
extend Orb::Internal::Type::Union
|
|
@@ -4864,6 +5026,166 @@ module Orb
|
|
|
4864
5026
|
end
|
|
4865
5027
|
end
|
|
4866
5028
|
|
|
5029
|
+
type unit_with_multiplier =
|
|
5030
|
+
{
|
|
5031
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::cadence,
|
|
5032
|
+
item_id: String,
|
|
5033
|
+
model_type: :unit_with_multiplier,
|
|
5034
|
+
name: String,
|
|
5035
|
+
unit_with_multiplier_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
5036
|
+
billable_metric_id: String?,
|
|
5037
|
+
billed_in_advance: bool?,
|
|
5038
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
5039
|
+
conversion_rate: Float?,
|
|
5040
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
5041
|
+
currency: String?,
|
|
5042
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
5043
|
+
external_price_id: String?,
|
|
5044
|
+
fixed_price_quantity: Float?,
|
|
5045
|
+
invoice_grouping_key: String?,
|
|
5046
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
5047
|
+
license_type_id: String?,
|
|
5048
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
5049
|
+
reference_id: String?
|
|
5050
|
+
}
|
|
5051
|
+
|
|
5052
|
+
class UnitWithMultiplier < Orb::Internal::Type::BaseModel
|
|
5053
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::cadence
|
|
5054
|
+
|
|
5055
|
+
attr_accessor item_id: String
|
|
5056
|
+
|
|
5057
|
+
attr_accessor model_type: :unit_with_multiplier
|
|
5058
|
+
|
|
5059
|
+
attr_accessor name: String
|
|
5060
|
+
|
|
5061
|
+
attr_accessor unit_with_multiplier_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig
|
|
5062
|
+
|
|
5063
|
+
attr_accessor billable_metric_id: String?
|
|
5064
|
+
|
|
5065
|
+
attr_accessor billed_in_advance: bool?
|
|
5066
|
+
|
|
5067
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
5068
|
+
|
|
5069
|
+
attr_accessor conversion_rate: Float?
|
|
5070
|
+
|
|
5071
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
5072
|
+
|
|
5073
|
+
attr_accessor currency: String?
|
|
5074
|
+
|
|
5075
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
5076
|
+
|
|
5077
|
+
attr_accessor external_price_id: String?
|
|
5078
|
+
|
|
5079
|
+
attr_accessor fixed_price_quantity: Float?
|
|
5080
|
+
|
|
5081
|
+
attr_accessor invoice_grouping_key: String?
|
|
5082
|
+
|
|
5083
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
5084
|
+
|
|
5085
|
+
attr_accessor license_type_id: String?
|
|
5086
|
+
|
|
5087
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
5088
|
+
|
|
5089
|
+
attr_accessor reference_id: String?
|
|
5090
|
+
|
|
5091
|
+
def initialize: (
|
|
5092
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::cadence,
|
|
5093
|
+
item_id: String,
|
|
5094
|
+
name: String,
|
|
5095
|
+
unit_with_multiplier_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
5096
|
+
?billable_metric_id: String?,
|
|
5097
|
+
?billed_in_advance: bool?,
|
|
5098
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
5099
|
+
?conversion_rate: Float?,
|
|
5100
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
5101
|
+
?currency: String?,
|
|
5102
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
5103
|
+
?external_price_id: String?,
|
|
5104
|
+
?fixed_price_quantity: Float?,
|
|
5105
|
+
?invoice_grouping_key: String?,
|
|
5106
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
5107
|
+
?license_type_id: String?,
|
|
5108
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
5109
|
+
?reference_id: String?,
|
|
5110
|
+
?model_type: :unit_with_multiplier
|
|
5111
|
+
) -> void
|
|
5112
|
+
|
|
5113
|
+
def to_hash: -> {
|
|
5114
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::cadence,
|
|
5115
|
+
item_id: String,
|
|
5116
|
+
model_type: :unit_with_multiplier,
|
|
5117
|
+
name: String,
|
|
5118
|
+
unit_with_multiplier_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
5119
|
+
billable_metric_id: String?,
|
|
5120
|
+
billed_in_advance: bool?,
|
|
5121
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
5122
|
+
conversion_rate: Float?,
|
|
5123
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
5124
|
+
currency: String?,
|
|
5125
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
5126
|
+
external_price_id: String?,
|
|
5127
|
+
fixed_price_quantity: Float?,
|
|
5128
|
+
invoice_grouping_key: String?,
|
|
5129
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
5130
|
+
license_type_id: String?,
|
|
5131
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
5132
|
+
reference_id: String?
|
|
5133
|
+
}
|
|
5134
|
+
|
|
5135
|
+
type cadence =
|
|
5136
|
+
:one_time
|
|
5137
|
+
| :monthly
|
|
5138
|
+
| :quarterly
|
|
5139
|
+
| :semi_annual
|
|
5140
|
+
| :annual
|
|
5141
|
+
| :custom
|
|
5142
|
+
|
|
5143
|
+
module Cadence
|
|
5144
|
+
extend Orb::Internal::Type::Enum
|
|
5145
|
+
|
|
5146
|
+
ONE_TIME: :one_time
|
|
5147
|
+
MONTHLY: :monthly
|
|
5148
|
+
QUARTERLY: :quarterly
|
|
5149
|
+
SEMI_ANNUAL: :semi_annual
|
|
5150
|
+
ANNUAL: :annual
|
|
5151
|
+
CUSTOM: :custom
|
|
5152
|
+
|
|
5153
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::UnitWithMultiplier::cadence]
|
|
5154
|
+
end
|
|
5155
|
+
|
|
5156
|
+
type unit_with_multiplier_config =
|
|
5157
|
+
{
|
|
5158
|
+
default_display_name: String,
|
|
5159
|
+
display_name_key: String,
|
|
5160
|
+
multiplier_key: String,
|
|
5161
|
+
unit_amount: String
|
|
5162
|
+
}
|
|
5163
|
+
|
|
5164
|
+
class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
|
|
5165
|
+
attr_accessor default_display_name: String
|
|
5166
|
+
|
|
5167
|
+
attr_accessor display_name_key: String
|
|
5168
|
+
|
|
5169
|
+
attr_accessor multiplier_key: String
|
|
5170
|
+
|
|
5171
|
+
attr_accessor unit_amount: String
|
|
5172
|
+
|
|
5173
|
+
def initialize: (
|
|
5174
|
+
default_display_name: String,
|
|
5175
|
+
display_name_key: String,
|
|
5176
|
+
multiplier_key: String,
|
|
5177
|
+
unit_amount: String
|
|
5178
|
+
) -> void
|
|
5179
|
+
|
|
5180
|
+
def to_hash: -> {
|
|
5181
|
+
default_display_name: String,
|
|
5182
|
+
display_name_key: String,
|
|
5183
|
+
multiplier_key: String,
|
|
5184
|
+
unit_amount: String
|
|
5185
|
+
}
|
|
5186
|
+
end
|
|
5187
|
+
end
|
|
5188
|
+
|
|
4867
5189
|
def self?.variants: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::price]
|
|
4868
5190
|
end
|
|
4869
5191
|
end
|