orb-billing 1.54.0 → 1.55.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 +8 -0
- data/README.md +1 -1
- 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/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/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/resources/credit_blocks.rb +1 -1
- data/lib/orb/resources/dimensional_price_groups/prices.rb +1 -1
- 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/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/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/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/resources/credit_blocks.rbi +1 -1
- data/rbi/orb/resources/prices.rbi +2 -1
- 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/plan_create_params.rbs +161 -0
- 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
- metadata +1 -1
|
@@ -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
|
|
@@ -265,14 +265,14 @@ module Orb
|
|
|
265
265
|
end
|
|
266
266
|
end
|
|
267
267
|
|
|
268
|
-
type status = :active | :pending_payment | :
|
|
268
|
+
type status = :active | :pending_payment | :deleted
|
|
269
269
|
|
|
270
270
|
module Status
|
|
271
271
|
extend Orb::Internal::Type::Enum
|
|
272
272
|
|
|
273
273
|
ACTIVE: :active
|
|
274
274
|
PENDING_PAYMENT: :pending_payment
|
|
275
|
-
|
|
275
|
+
DELETED: :deleted
|
|
276
276
|
|
|
277
277
|
def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::status]
|
|
278
278
|
end
|
|
@@ -265,14 +265,14 @@ module Orb
|
|
|
265
265
|
end
|
|
266
266
|
end
|
|
267
267
|
|
|
268
|
-
type status = :active | :pending_payment | :
|
|
268
|
+
type status = :active | :pending_payment | :deleted
|
|
269
269
|
|
|
270
270
|
module Status
|
|
271
271
|
extend Orb::Internal::Type::Enum
|
|
272
272
|
|
|
273
273
|
ACTIVE: :active
|
|
274
274
|
PENDING_PAYMENT: :pending_payment
|
|
275
|
-
|
|
275
|
+
DELETED: :deleted
|
|
276
276
|
|
|
277
277
|
def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Block::status]
|
|
278
278
|
end
|
|
@@ -158,14 +158,14 @@ module Orb
|
|
|
158
158
|
end
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
-
type status = :active | :pending_payment | :
|
|
161
|
+
type status = :active | :pending_payment | :deleted
|
|
162
162
|
|
|
163
163
|
module Status
|
|
164
164
|
extend Orb::Internal::Type::Enum
|
|
165
165
|
|
|
166
166
|
ACTIVE: :active
|
|
167
167
|
PENDING_PAYMENT: :pending_payment
|
|
168
|
-
|
|
168
|
+
DELETED: :deleted
|
|
169
169
|
|
|
170
170
|
def self?.values: -> ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::status]
|
|
171
171
|
end
|
|
@@ -137,14 +137,14 @@ module Orb
|
|
|
137
137
|
end
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
type status = :active | :pending_payment | :
|
|
140
|
+
type status = :active | :pending_payment | :deleted
|
|
141
141
|
|
|
142
142
|
module Status
|
|
143
143
|
extend Orb::Internal::Type::Enum
|
|
144
144
|
|
|
145
145
|
ACTIVE: :active
|
|
146
146
|
PENDING_PAYMENT: :pending_payment
|
|
147
|
-
|
|
147
|
+
DELETED: :deleted
|
|
148
148
|
|
|
149
149
|
def self?.values: -> ::Array[Orb::Models::CreditBlockRetrieveResponse::status]
|
|
150
150
|
end
|
|
@@ -137,14 +137,14 @@ module Orb
|
|
|
137
137
|
end
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
type status = :active | :pending_payment | :
|
|
140
|
+
type status = :active | :pending_payment | :deleted
|
|
141
141
|
|
|
142
142
|
module Status
|
|
143
143
|
extend Orb::Internal::Type::Enum
|
|
144
144
|
|
|
145
145
|
ACTIVE: :active
|
|
146
146
|
PENDING_PAYMENT: :pending_payment
|
|
147
|
-
|
|
147
|
+
DELETED: :deleted
|
|
148
148
|
|
|
149
149
|
def self?.values: -> ::Array[Orb::Models::CreditBlockUpdateResponse::status]
|
|
150
150
|
end
|
|
@@ -211,14 +211,14 @@ module Orb
|
|
|
211
211
|
end
|
|
212
212
|
end
|
|
213
213
|
|
|
214
|
-
type status = :active | :pending_payment | :
|
|
214
|
+
type status = :active | :pending_payment | :deleted
|
|
215
215
|
|
|
216
216
|
module Status
|
|
217
217
|
extend Orb::Internal::Type::Enum
|
|
218
218
|
|
|
219
219
|
ACTIVE: :active
|
|
220
220
|
PENDING_PAYMENT: :pending_payment
|
|
221
|
-
|
|
221
|
+
DELETED: :deleted
|
|
222
222
|
|
|
223
223
|
def self?.values: -> ::Array[Orb::Models::CustomerCreditLedgerIncrementedWebhookEvent::Properties::Block::status]
|
|
224
224
|
end
|
|
@@ -305,6 +305,7 @@ module Orb
|
|
|
305
305
|
| Orb::NewPlanMinimumCompositePrice
|
|
306
306
|
| Orb::PlanCreateParams::Price::Price::Percent
|
|
307
307
|
| Orb::PlanCreateParams::Price::Price::EventOutput
|
|
308
|
+
| Orb::PlanCreateParams::Price::Price::UnitWithMultiplier
|
|
308
309
|
|
|
309
310
|
module Price
|
|
310
311
|
extend Orb::Internal::Type::Union
|
|
@@ -2252,6 +2253,166 @@ module Orb
|
|
|
2252
2253
|
end
|
|
2253
2254
|
end
|
|
2254
2255
|
|
|
2256
|
+
type unit_with_multiplier =
|
|
2257
|
+
{
|
|
2258
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier::cadence,
|
|
2259
|
+
item_id: String,
|
|
2260
|
+
model_type: :unit_with_multiplier,
|
|
2261
|
+
name: String,
|
|
2262
|
+
unit_with_multiplier_config: Orb::PlanCreateParams::Price::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
2263
|
+
billable_metric_id: String?,
|
|
2264
|
+
billed_in_advance: bool?,
|
|
2265
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2266
|
+
conversion_rate: Float?,
|
|
2267
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2268
|
+
currency: String?,
|
|
2269
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2270
|
+
external_price_id: String?,
|
|
2271
|
+
fixed_price_quantity: Float?,
|
|
2272
|
+
invoice_grouping_key: String?,
|
|
2273
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2274
|
+
license_type_id: String?,
|
|
2275
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2276
|
+
reference_id: String?
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
class UnitWithMultiplier < Orb::Internal::Type::BaseModel
|
|
2280
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier::cadence
|
|
2281
|
+
|
|
2282
|
+
attr_accessor item_id: String
|
|
2283
|
+
|
|
2284
|
+
attr_accessor model_type: :unit_with_multiplier
|
|
2285
|
+
|
|
2286
|
+
attr_accessor name: String
|
|
2287
|
+
|
|
2288
|
+
attr_accessor unit_with_multiplier_config: Orb::PlanCreateParams::Price::Price::UnitWithMultiplier::UnitWithMultiplierConfig
|
|
2289
|
+
|
|
2290
|
+
attr_accessor billable_metric_id: String?
|
|
2291
|
+
|
|
2292
|
+
attr_accessor billed_in_advance: bool?
|
|
2293
|
+
|
|
2294
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2295
|
+
|
|
2296
|
+
attr_accessor conversion_rate: Float?
|
|
2297
|
+
|
|
2298
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2299
|
+
|
|
2300
|
+
attr_accessor currency: String?
|
|
2301
|
+
|
|
2302
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2303
|
+
|
|
2304
|
+
attr_accessor external_price_id: String?
|
|
2305
|
+
|
|
2306
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2307
|
+
|
|
2308
|
+
attr_accessor invoice_grouping_key: String?
|
|
2309
|
+
|
|
2310
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2311
|
+
|
|
2312
|
+
attr_accessor license_type_id: String?
|
|
2313
|
+
|
|
2314
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2315
|
+
|
|
2316
|
+
attr_accessor reference_id: String?
|
|
2317
|
+
|
|
2318
|
+
def initialize: (
|
|
2319
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier::cadence,
|
|
2320
|
+
item_id: String,
|
|
2321
|
+
name: String,
|
|
2322
|
+
unit_with_multiplier_config: Orb::PlanCreateParams::Price::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
2323
|
+
?billable_metric_id: String?,
|
|
2324
|
+
?billed_in_advance: bool?,
|
|
2325
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2326
|
+
?conversion_rate: Float?,
|
|
2327
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2328
|
+
?currency: String?,
|
|
2329
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2330
|
+
?external_price_id: String?,
|
|
2331
|
+
?fixed_price_quantity: Float?,
|
|
2332
|
+
?invoice_grouping_key: String?,
|
|
2333
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2334
|
+
?license_type_id: String?,
|
|
2335
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2336
|
+
?reference_id: String?,
|
|
2337
|
+
?model_type: :unit_with_multiplier
|
|
2338
|
+
) -> void
|
|
2339
|
+
|
|
2340
|
+
def to_hash: -> {
|
|
2341
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier::cadence,
|
|
2342
|
+
item_id: String,
|
|
2343
|
+
model_type: :unit_with_multiplier,
|
|
2344
|
+
name: String,
|
|
2345
|
+
unit_with_multiplier_config: Orb::PlanCreateParams::Price::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
2346
|
+
billable_metric_id: String?,
|
|
2347
|
+
billed_in_advance: bool?,
|
|
2348
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2349
|
+
conversion_rate: Float?,
|
|
2350
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2351
|
+
currency: String?,
|
|
2352
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2353
|
+
external_price_id: String?,
|
|
2354
|
+
fixed_price_quantity: Float?,
|
|
2355
|
+
invoice_grouping_key: String?,
|
|
2356
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2357
|
+
license_type_id: String?,
|
|
2358
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2359
|
+
reference_id: String?
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
type cadence =
|
|
2363
|
+
:one_time
|
|
2364
|
+
| :monthly
|
|
2365
|
+
| :quarterly
|
|
2366
|
+
| :semi_annual
|
|
2367
|
+
| :annual
|
|
2368
|
+
| :custom
|
|
2369
|
+
|
|
2370
|
+
module Cadence
|
|
2371
|
+
extend Orb::Internal::Type::Enum
|
|
2372
|
+
|
|
2373
|
+
ONE_TIME: :one_time
|
|
2374
|
+
MONTHLY: :monthly
|
|
2375
|
+
QUARTERLY: :quarterly
|
|
2376
|
+
SEMI_ANNUAL: :semi_annual
|
|
2377
|
+
ANNUAL: :annual
|
|
2378
|
+
CUSTOM: :custom
|
|
2379
|
+
|
|
2380
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier::cadence]
|
|
2381
|
+
end
|
|
2382
|
+
|
|
2383
|
+
type unit_with_multiplier_config =
|
|
2384
|
+
{
|
|
2385
|
+
default_display_name: String,
|
|
2386
|
+
display_name_key: String,
|
|
2387
|
+
multiplier_key: String,
|
|
2388
|
+
unit_amount: String
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
|
|
2392
|
+
attr_accessor default_display_name: String
|
|
2393
|
+
|
|
2394
|
+
attr_accessor display_name_key: String
|
|
2395
|
+
|
|
2396
|
+
attr_accessor multiplier_key: String
|
|
2397
|
+
|
|
2398
|
+
attr_accessor unit_amount: String
|
|
2399
|
+
|
|
2400
|
+
def initialize: (
|
|
2401
|
+
default_display_name: String,
|
|
2402
|
+
display_name_key: String,
|
|
2403
|
+
multiplier_key: String,
|
|
2404
|
+
unit_amount: String
|
|
2405
|
+
) -> void
|
|
2406
|
+
|
|
2407
|
+
def to_hash: -> {
|
|
2408
|
+
default_display_name: String,
|
|
2409
|
+
display_name_key: String,
|
|
2410
|
+
multiplier_key: String,
|
|
2411
|
+
unit_amount: String
|
|
2412
|
+
}
|
|
2413
|
+
end
|
|
2414
|
+
end
|
|
2415
|
+
|
|
2255
2416
|
def self?.variants: -> ::Array[Orb::Models::PlanCreateParams::Price::price]
|
|
2256
2417
|
end
|
|
2257
2418
|
end
|