orb-billing 1.53.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 +17 -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/plans/migration_cancel_response.rb +19 -1
- data/lib/orb/models/plans/migration_list_response.rb +19 -1
- data/lib/orb/models/plans/migration_retrieve_response.rb +19 -1
- 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 +513 -8
- data/lib/orb/models/subscription_price_intervals_params.rb +238 -3
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +514 -8
- 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/plans/migration_cancel_response.rbi +20 -0
- data/rbi/orb/models/plans/migration_list_response.rbi +20 -0
- data/rbi/orb/models/plans/migration_retrieve_response.rbi +20 -0
- 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 +2685 -1859
- data/rbi/orb/models/subscription_price_intervals_params.rbi +397 -4
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +2689 -1863
- 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/plans/migration_cancel_response.rbs +10 -0
- data/sig/orb/models/plans/migration_list_response.rbs +10 -0
- data/sig/orb/models/plans/migration_retrieve_response.rbs +10 -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 +341 -2
- data/sig/orb/models/subscription_price_intervals_params.rbs +156 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +341 -2
- 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 +2 -2
|
@@ -487,6 +487,7 @@ module Orb
|
|
|
487
487
|
| Orb::NewSubscriptionMinimumCompositePrice
|
|
488
488
|
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent
|
|
489
489
|
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput
|
|
490
|
+
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithMultiplier
|
|
490
491
|
|
|
491
492
|
module Price
|
|
492
493
|
extend Orb::Internal::Type::Union
|
|
@@ -2434,6 +2435,166 @@ module Orb
|
|
|
2434
2435
|
end
|
|
2435
2436
|
end
|
|
2436
2437
|
|
|
2438
|
+
type unit_with_multiplier =
|
|
2439
|
+
{
|
|
2440
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithMultiplier::cadence,
|
|
2441
|
+
item_id: String,
|
|
2442
|
+
model_type: :unit_with_multiplier,
|
|
2443
|
+
name: String,
|
|
2444
|
+
unit_with_multiplier_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
2445
|
+
billable_metric_id: String?,
|
|
2446
|
+
billed_in_advance: bool?,
|
|
2447
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2448
|
+
conversion_rate: Float?,
|
|
2449
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2450
|
+
currency: String?,
|
|
2451
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2452
|
+
external_price_id: String?,
|
|
2453
|
+
fixed_price_quantity: Float?,
|
|
2454
|
+
invoice_grouping_key: String?,
|
|
2455
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2456
|
+
license_type_id: String?,
|
|
2457
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2458
|
+
reference_id: String?
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2461
|
+
class UnitWithMultiplier < Orb::Internal::Type::BaseModel
|
|
2462
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithMultiplier::cadence
|
|
2463
|
+
|
|
2464
|
+
attr_accessor item_id: String
|
|
2465
|
+
|
|
2466
|
+
attr_accessor model_type: :unit_with_multiplier
|
|
2467
|
+
|
|
2468
|
+
attr_accessor name: String
|
|
2469
|
+
|
|
2470
|
+
attr_accessor unit_with_multiplier_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig
|
|
2471
|
+
|
|
2472
|
+
attr_accessor billable_metric_id: String?
|
|
2473
|
+
|
|
2474
|
+
attr_accessor billed_in_advance: bool?
|
|
2475
|
+
|
|
2476
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2477
|
+
|
|
2478
|
+
attr_accessor conversion_rate: Float?
|
|
2479
|
+
|
|
2480
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2481
|
+
|
|
2482
|
+
attr_accessor currency: String?
|
|
2483
|
+
|
|
2484
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2485
|
+
|
|
2486
|
+
attr_accessor external_price_id: String?
|
|
2487
|
+
|
|
2488
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2489
|
+
|
|
2490
|
+
attr_accessor invoice_grouping_key: String?
|
|
2491
|
+
|
|
2492
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2493
|
+
|
|
2494
|
+
attr_accessor license_type_id: String?
|
|
2495
|
+
|
|
2496
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2497
|
+
|
|
2498
|
+
attr_accessor reference_id: String?
|
|
2499
|
+
|
|
2500
|
+
def initialize: (
|
|
2501
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithMultiplier::cadence,
|
|
2502
|
+
item_id: String,
|
|
2503
|
+
name: String,
|
|
2504
|
+
unit_with_multiplier_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
2505
|
+
?billable_metric_id: String?,
|
|
2506
|
+
?billed_in_advance: bool?,
|
|
2507
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2508
|
+
?conversion_rate: Float?,
|
|
2509
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2510
|
+
?currency: String?,
|
|
2511
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2512
|
+
?external_price_id: String?,
|
|
2513
|
+
?fixed_price_quantity: Float?,
|
|
2514
|
+
?invoice_grouping_key: String?,
|
|
2515
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2516
|
+
?license_type_id: String?,
|
|
2517
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2518
|
+
?reference_id: String?,
|
|
2519
|
+
?model_type: :unit_with_multiplier
|
|
2520
|
+
) -> void
|
|
2521
|
+
|
|
2522
|
+
def to_hash: -> {
|
|
2523
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithMultiplier::cadence,
|
|
2524
|
+
item_id: String,
|
|
2525
|
+
model_type: :unit_with_multiplier,
|
|
2526
|
+
name: String,
|
|
2527
|
+
unit_with_multiplier_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
2528
|
+
billable_metric_id: String?,
|
|
2529
|
+
billed_in_advance: bool?,
|
|
2530
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2531
|
+
conversion_rate: Float?,
|
|
2532
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2533
|
+
currency: String?,
|
|
2534
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2535
|
+
external_price_id: String?,
|
|
2536
|
+
fixed_price_quantity: Float?,
|
|
2537
|
+
invoice_grouping_key: String?,
|
|
2538
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2539
|
+
license_type_id: String?,
|
|
2540
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2541
|
+
reference_id: String?
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
type cadence =
|
|
2545
|
+
:one_time
|
|
2546
|
+
| :monthly
|
|
2547
|
+
| :quarterly
|
|
2548
|
+
| :semi_annual
|
|
2549
|
+
| :annual
|
|
2550
|
+
| :custom
|
|
2551
|
+
|
|
2552
|
+
module Cadence
|
|
2553
|
+
extend Orb::Internal::Type::Enum
|
|
2554
|
+
|
|
2555
|
+
ONE_TIME: :one_time
|
|
2556
|
+
MONTHLY: :monthly
|
|
2557
|
+
QUARTERLY: :quarterly
|
|
2558
|
+
SEMI_ANNUAL: :semi_annual
|
|
2559
|
+
ANNUAL: :annual
|
|
2560
|
+
CUSTOM: :custom
|
|
2561
|
+
|
|
2562
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithMultiplier::cadence]
|
|
2563
|
+
end
|
|
2564
|
+
|
|
2565
|
+
type unit_with_multiplier_config =
|
|
2566
|
+
{
|
|
2567
|
+
default_display_name: String,
|
|
2568
|
+
display_name_key: String,
|
|
2569
|
+
multiplier_key: String,
|
|
2570
|
+
unit_amount: String
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
|
|
2574
|
+
attr_accessor default_display_name: String
|
|
2575
|
+
|
|
2576
|
+
attr_accessor display_name_key: String
|
|
2577
|
+
|
|
2578
|
+
attr_accessor multiplier_key: String
|
|
2579
|
+
|
|
2580
|
+
attr_accessor unit_amount: String
|
|
2581
|
+
|
|
2582
|
+
def initialize: (
|
|
2583
|
+
default_display_name: String,
|
|
2584
|
+
display_name_key: String,
|
|
2585
|
+
multiplier_key: String,
|
|
2586
|
+
unit_amount: String
|
|
2587
|
+
) -> void
|
|
2588
|
+
|
|
2589
|
+
def to_hash: -> {
|
|
2590
|
+
default_display_name: String,
|
|
2591
|
+
display_name_key: String,
|
|
2592
|
+
multiplier_key: String,
|
|
2593
|
+
unit_amount: String
|
|
2594
|
+
}
|
|
2595
|
+
end
|
|
2596
|
+
end
|
|
2597
|
+
|
|
2437
2598
|
def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::price]
|
|
2438
2599
|
end
|
|
2439
2600
|
end
|
|
@@ -2461,19 +2622,31 @@ module Orb
|
|
|
2461
2622
|
def to_hash: -> { adjustment_id: String }
|
|
2462
2623
|
end
|
|
2463
2624
|
|
|
2464
|
-
type remove_price =
|
|
2625
|
+
type remove_price =
|
|
2626
|
+
{
|
|
2627
|
+
external_price_id: String?,
|
|
2628
|
+
plan_phase_order: Integer?,
|
|
2629
|
+
price_id: String?
|
|
2630
|
+
}
|
|
2465
2631
|
|
|
2466
2632
|
class RemovePrice < Orb::Internal::Type::BaseModel
|
|
2467
2633
|
attr_accessor external_price_id: String?
|
|
2468
2634
|
|
|
2635
|
+
attr_accessor plan_phase_order: Integer?
|
|
2636
|
+
|
|
2469
2637
|
attr_accessor price_id: String?
|
|
2470
2638
|
|
|
2471
2639
|
def initialize: (
|
|
2472
2640
|
?external_price_id: String?,
|
|
2641
|
+
?plan_phase_order: Integer?,
|
|
2473
2642
|
?price_id: String?
|
|
2474
2643
|
) -> void
|
|
2475
2644
|
|
|
2476
|
-
def to_hash: -> {
|
|
2645
|
+
def to_hash: -> {
|
|
2646
|
+
external_price_id: String?,
|
|
2647
|
+
plan_phase_order: Integer?,
|
|
2648
|
+
price_id: String?
|
|
2649
|
+
}
|
|
2477
2650
|
end
|
|
2478
2651
|
|
|
2479
2652
|
type replace_adjustment =
|
|
@@ -2690,6 +2863,7 @@ module Orb
|
|
|
2690
2863
|
maximum_amount: String?,
|
|
2691
2864
|
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
2692
2865
|
minimum_amount: String?,
|
|
2866
|
+
plan_phase_order: Integer?,
|
|
2693
2867
|
price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
2694
2868
|
price_id: String?
|
|
2695
2869
|
}
|
|
@@ -2711,6 +2885,8 @@ module Orb
|
|
|
2711
2885
|
|
|
2712
2886
|
attr_accessor minimum_amount: String?
|
|
2713
2887
|
|
|
2888
|
+
attr_accessor plan_phase_order: Integer?
|
|
2889
|
+
|
|
2714
2890
|
attr_accessor price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?
|
|
2715
2891
|
|
|
2716
2892
|
attr_accessor price_id: String?
|
|
@@ -2724,6 +2900,7 @@ module Orb
|
|
|
2724
2900
|
?maximum_amount: String?,
|
|
2725
2901
|
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
2726
2902
|
?minimum_amount: String?,
|
|
2903
|
+
?plan_phase_order: Integer?,
|
|
2727
2904
|
?price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
2728
2905
|
?price_id: String?
|
|
2729
2906
|
) -> void
|
|
@@ -2737,6 +2914,7 @@ module Orb
|
|
|
2737
2914
|
maximum_amount: String?,
|
|
2738
2915
|
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
2739
2916
|
minimum_amount: String?,
|
|
2917
|
+
plan_phase_order: Integer?,
|
|
2740
2918
|
price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
2741
2919
|
price_id: String?
|
|
2742
2920
|
}
|
|
@@ -2778,6 +2956,7 @@ module Orb
|
|
|
2778
2956
|
| Orb::NewSubscriptionMinimumCompositePrice
|
|
2779
2957
|
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Percent
|
|
2780
2958
|
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::EventOutput
|
|
2959
|
+
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithMultiplier
|
|
2781
2960
|
|
|
2782
2961
|
module Price
|
|
2783
2962
|
extend Orb::Internal::Type::Union
|
|
@@ -4725,6 +4904,166 @@ module Orb
|
|
|
4725
4904
|
end
|
|
4726
4905
|
end
|
|
4727
4906
|
|
|
4907
|
+
type unit_with_multiplier =
|
|
4908
|
+
{
|
|
4909
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithMultiplier::cadence,
|
|
4910
|
+
item_id: String,
|
|
4911
|
+
model_type: :unit_with_multiplier,
|
|
4912
|
+
name: String,
|
|
4913
|
+
unit_with_multiplier_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
4914
|
+
billable_metric_id: String?,
|
|
4915
|
+
billed_in_advance: bool?,
|
|
4916
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
4917
|
+
conversion_rate: Float?,
|
|
4918
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
4919
|
+
currency: String?,
|
|
4920
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
4921
|
+
external_price_id: String?,
|
|
4922
|
+
fixed_price_quantity: Float?,
|
|
4923
|
+
invoice_grouping_key: String?,
|
|
4924
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
4925
|
+
license_type_id: String?,
|
|
4926
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
4927
|
+
reference_id: String?
|
|
4928
|
+
}
|
|
4929
|
+
|
|
4930
|
+
class UnitWithMultiplier < Orb::Internal::Type::BaseModel
|
|
4931
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithMultiplier::cadence
|
|
4932
|
+
|
|
4933
|
+
attr_accessor item_id: String
|
|
4934
|
+
|
|
4935
|
+
attr_accessor model_type: :unit_with_multiplier
|
|
4936
|
+
|
|
4937
|
+
attr_accessor name: String
|
|
4938
|
+
|
|
4939
|
+
attr_accessor unit_with_multiplier_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig
|
|
4940
|
+
|
|
4941
|
+
attr_accessor billable_metric_id: String?
|
|
4942
|
+
|
|
4943
|
+
attr_accessor billed_in_advance: bool?
|
|
4944
|
+
|
|
4945
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
4946
|
+
|
|
4947
|
+
attr_accessor conversion_rate: Float?
|
|
4948
|
+
|
|
4949
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
4950
|
+
|
|
4951
|
+
attr_accessor currency: String?
|
|
4952
|
+
|
|
4953
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
4954
|
+
|
|
4955
|
+
attr_accessor external_price_id: String?
|
|
4956
|
+
|
|
4957
|
+
attr_accessor fixed_price_quantity: Float?
|
|
4958
|
+
|
|
4959
|
+
attr_accessor invoice_grouping_key: String?
|
|
4960
|
+
|
|
4961
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
4962
|
+
|
|
4963
|
+
attr_accessor license_type_id: String?
|
|
4964
|
+
|
|
4965
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
4966
|
+
|
|
4967
|
+
attr_accessor reference_id: String?
|
|
4968
|
+
|
|
4969
|
+
def initialize: (
|
|
4970
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithMultiplier::cadence,
|
|
4971
|
+
item_id: String,
|
|
4972
|
+
name: String,
|
|
4973
|
+
unit_with_multiplier_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
4974
|
+
?billable_metric_id: String?,
|
|
4975
|
+
?billed_in_advance: bool?,
|
|
4976
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
4977
|
+
?conversion_rate: Float?,
|
|
4978
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
4979
|
+
?currency: String?,
|
|
4980
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
4981
|
+
?external_price_id: String?,
|
|
4982
|
+
?fixed_price_quantity: Float?,
|
|
4983
|
+
?invoice_grouping_key: String?,
|
|
4984
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
4985
|
+
?license_type_id: String?,
|
|
4986
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
4987
|
+
?reference_id: String?,
|
|
4988
|
+
?model_type: :unit_with_multiplier
|
|
4989
|
+
) -> void
|
|
4990
|
+
|
|
4991
|
+
def to_hash: -> {
|
|
4992
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithMultiplier::cadence,
|
|
4993
|
+
item_id: String,
|
|
4994
|
+
model_type: :unit_with_multiplier,
|
|
4995
|
+
name: String,
|
|
4996
|
+
unit_with_multiplier_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
4997
|
+
billable_metric_id: String?,
|
|
4998
|
+
billed_in_advance: bool?,
|
|
4999
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
5000
|
+
conversion_rate: Float?,
|
|
5001
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
5002
|
+
currency: String?,
|
|
5003
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
5004
|
+
external_price_id: String?,
|
|
5005
|
+
fixed_price_quantity: Float?,
|
|
5006
|
+
invoice_grouping_key: String?,
|
|
5007
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
5008
|
+
license_type_id: String?,
|
|
5009
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
5010
|
+
reference_id: String?
|
|
5011
|
+
}
|
|
5012
|
+
|
|
5013
|
+
type cadence =
|
|
5014
|
+
:one_time
|
|
5015
|
+
| :monthly
|
|
5016
|
+
| :quarterly
|
|
5017
|
+
| :semi_annual
|
|
5018
|
+
| :annual
|
|
5019
|
+
| :custom
|
|
5020
|
+
|
|
5021
|
+
module Cadence
|
|
5022
|
+
extend Orb::Internal::Type::Enum
|
|
5023
|
+
|
|
5024
|
+
ONE_TIME: :one_time
|
|
5025
|
+
MONTHLY: :monthly
|
|
5026
|
+
QUARTERLY: :quarterly
|
|
5027
|
+
SEMI_ANNUAL: :semi_annual
|
|
5028
|
+
ANNUAL: :annual
|
|
5029
|
+
CUSTOM: :custom
|
|
5030
|
+
|
|
5031
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithMultiplier::cadence]
|
|
5032
|
+
end
|
|
5033
|
+
|
|
5034
|
+
type unit_with_multiplier_config =
|
|
5035
|
+
{
|
|
5036
|
+
default_display_name: String,
|
|
5037
|
+
display_name_key: String,
|
|
5038
|
+
multiplier_key: String,
|
|
5039
|
+
unit_amount: String
|
|
5040
|
+
}
|
|
5041
|
+
|
|
5042
|
+
class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
|
|
5043
|
+
attr_accessor default_display_name: String
|
|
5044
|
+
|
|
5045
|
+
attr_accessor display_name_key: String
|
|
5046
|
+
|
|
5047
|
+
attr_accessor multiplier_key: String
|
|
5048
|
+
|
|
5049
|
+
attr_accessor unit_amount: String
|
|
5050
|
+
|
|
5051
|
+
def initialize: (
|
|
5052
|
+
default_display_name: String,
|
|
5053
|
+
display_name_key: String,
|
|
5054
|
+
multiplier_key: String,
|
|
5055
|
+
unit_amount: String
|
|
5056
|
+
) -> void
|
|
5057
|
+
|
|
5058
|
+
def to_hash: -> {
|
|
5059
|
+
default_display_name: String,
|
|
5060
|
+
display_name_key: String,
|
|
5061
|
+
multiplier_key: String,
|
|
5062
|
+
unit_amount: String
|
|
5063
|
+
}
|
|
5064
|
+
end
|
|
5065
|
+
end
|
|
5066
|
+
|
|
4728
5067
|
def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price]
|
|
4729
5068
|
end
|
|
4730
5069
|
end
|
|
@@ -267,14 +267,14 @@ module Orb
|
|
|
267
267
|
end
|
|
268
268
|
end
|
|
269
269
|
|
|
270
|
-
type status = :active | :pending_payment | :
|
|
270
|
+
type status = :active | :pending_payment | :deleted
|
|
271
271
|
|
|
272
272
|
module Status
|
|
273
273
|
extend Orb::Internal::Type::Enum
|
|
274
274
|
|
|
275
275
|
ACTIVE: :active
|
|
276
276
|
PENDING_PAYMENT: :pending_payment
|
|
277
|
-
|
|
277
|
+
DELETED: :deleted
|
|
278
278
|
|
|
279
279
|
def self?.values: -> ::Array[Orb::Models::Webhooks::CreditBlockAccountingSyncFailedStandardWebhookEvent::Block::status]
|
|
280
280
|
end
|
data/sig/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbs
CHANGED
|
@@ -267,14 +267,14 @@ module Orb
|
|
|
267
267
|
end
|
|
268
268
|
end
|
|
269
269
|
|
|
270
|
-
type status = :active | :pending_payment | :
|
|
270
|
+
type status = :active | :pending_payment | :deleted
|
|
271
271
|
|
|
272
272
|
module Status
|
|
273
273
|
extend Orb::Internal::Type::Enum
|
|
274
274
|
|
|
275
275
|
ACTIVE: :active
|
|
276
276
|
PENDING_PAYMENT: :pending_payment
|
|
277
|
-
|
|
277
|
+
DELETED: :deleted
|
|
278
278
|
|
|
279
279
|
def self?.values: -> ::Array[Orb::Models::Webhooks::CreditBlockAccountingSyncSucceededStandardWebhookEvent::Block::status]
|
|
280
280
|
end
|
|
@@ -216,14 +216,14 @@ module Orb
|
|
|
216
216
|
end
|
|
217
217
|
end
|
|
218
218
|
|
|
219
|
-
type status = :active | :pending_payment | :
|
|
219
|
+
type status = :active | :pending_payment | :deleted
|
|
220
220
|
|
|
221
221
|
module Status
|
|
222
222
|
extend Orb::Internal::Type::Enum
|
|
223
223
|
|
|
224
224
|
ACTIVE: :active
|
|
225
225
|
PENDING_PAYMENT: :pending_payment
|
|
226
|
-
|
|
226
|
+
DELETED: :deleted
|
|
227
227
|
|
|
228
228
|
def self?.values: -> ::Array[Orb::Models::Webhooks::CustomerCreditLedgerIncrementedStandardWebhookEvent::Properties::Block::status]
|
|
229
229
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: orb-billing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.55.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Orb
|
|
@@ -1989,7 +1989,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1989
1989
|
- !ruby/object:Gem::Version
|
|
1990
1990
|
version: '0'
|
|
1991
1991
|
requirements: []
|
|
1992
|
-
rubygems_version: 4.0.
|
|
1992
|
+
rubygems_version: 4.0.24
|
|
1993
1993
|
specification_version: 4
|
|
1994
1994
|
summary: Ruby library to access the Orb API
|
|
1995
1995
|
test_files: []
|