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
|
@@ -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
|
|
@@ -2795,6 +2956,7 @@ module Orb
|
|
|
2795
2956
|
| Orb::NewSubscriptionMinimumCompositePrice
|
|
2796
2957
|
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Percent
|
|
2797
2958
|
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::EventOutput
|
|
2959
|
+
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithMultiplier
|
|
2798
2960
|
|
|
2799
2961
|
module Price
|
|
2800
2962
|
extend Orb::Internal::Type::Union
|
|
@@ -4742,6 +4904,166 @@ module Orb
|
|
|
4742
4904
|
end
|
|
4743
4905
|
end
|
|
4744
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
|
+
|
|
4745
5067
|
def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price]
|
|
4746
5068
|
end
|
|
4747
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
|
data/sig/orb/models.rbs
CHANGED
|
@@ -359,6 +359,18 @@ module Orb
|
|
|
359
359
|
|
|
360
360
|
class MetricUpdateParams = Orb::Models::MetricUpdateParams
|
|
361
361
|
|
|
362
|
+
class MigrationCancelParams = Orb::Models::MigrationCancelParams
|
|
363
|
+
|
|
364
|
+
class MigrationCreateParams = Orb::Models::MigrationCreateParams
|
|
365
|
+
|
|
366
|
+
class MigrationListParams = Orb::Models::MigrationListParams
|
|
367
|
+
|
|
368
|
+
class MigrationRetrieveParams = Orb::Models::MigrationRetrieveParams
|
|
369
|
+
|
|
370
|
+
module Migrations = Orb::Models::Migrations
|
|
371
|
+
|
|
372
|
+
class MigrationSubscription = Orb::Models::MigrationSubscription
|
|
373
|
+
|
|
362
374
|
class Minimum = Orb::Models::Minimum
|
|
363
375
|
|
|
364
376
|
class MinimumInterval = Orb::Models::MinimumInterval
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Resources
|
|
3
|
+
class Migrations
|
|
4
|
+
class Subscriptions
|
|
5
|
+
def list: (
|
|
6
|
+
String migration_id,
|
|
7
|
+
?cursor: String?,
|
|
8
|
+
?limit: Integer,
|
|
9
|
+
?status: ::Array[Orb::Models::Migrations::SubscriptionListParams::status]?,
|
|
10
|
+
?subscription_id: ::Array[String]?,
|
|
11
|
+
?request_options: Orb::request_opts
|
|
12
|
+
) -> Orb::Internal::Page[Orb::MigrationSubscription]
|
|
13
|
+
|
|
14
|
+
def initialize: (client: Orb::Client) -> void
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Resources
|
|
3
|
+
class Migrations
|
|
4
|
+
attr_reader subscriptions: Orb::Resources::Migrations::Subscriptions
|
|
5
|
+
|
|
6
|
+
def create: (
|
|
7
|
+
effective_time: Orb::Models::MigrationCreateParams::effective_time,
|
|
8
|
+
target_plan_version_number: Integer,
|
|
9
|
+
?allow_invoice_credit_or_void: bool,
|
|
10
|
+
?can_defer_billing: bool,
|
|
11
|
+
?effective_date: Date?,
|
|
12
|
+
?excluded_subscription_ids: ::Array[String]?,
|
|
13
|
+
?external_plan_id: String?,
|
|
14
|
+
?in_trial: bool?,
|
|
15
|
+
?included_subscription_ids: ::Array[String]?,
|
|
16
|
+
?plan_id: String?,
|
|
17
|
+
?plan_version_numbers: ::Array[Integer]?,
|
|
18
|
+
?reason: String?,
|
|
19
|
+
?statuses: ::Array[Orb::Models::MigrationCreateParams::status],
|
|
20
|
+
?request_options: Orb::request_opts
|
|
21
|
+
) -> Orb::Models::MigrationCreateResponse
|
|
22
|
+
|
|
23
|
+
def retrieve: (
|
|
24
|
+
String migration_id,
|
|
25
|
+
?request_options: Orb::request_opts
|
|
26
|
+
) -> Orb::Models::MigrationRetrieveResponse
|
|
27
|
+
|
|
28
|
+
def list: (
|
|
29
|
+
?cursor: String?,
|
|
30
|
+
?external_plan_id: String?,
|
|
31
|
+
?limit: Integer,
|
|
32
|
+
?plan_id: String?,
|
|
33
|
+
?request_options: Orb::request_opts
|
|
34
|
+
) -> Orb::Internal::Page[Orb::Models::MigrationListResponse]
|
|
35
|
+
|
|
36
|
+
def cancel: (
|
|
37
|
+
String migration_id,
|
|
38
|
+
?request_options: Orb::request_opts
|
|
39
|
+
) -> Orb::Models::MigrationCancelResponse
|
|
40
|
+
|
|
41
|
+
def initialize: (client: Orb::Client) -> void
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
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.56.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Orb
|
|
@@ -333,6 +333,16 @@ files:
|
|
|
333
333
|
- lib/orb/models/metric_publish_params.rb
|
|
334
334
|
- lib/orb/models/metric_unarchive_params.rb
|
|
335
335
|
- lib/orb/models/metric_update_params.rb
|
|
336
|
+
- lib/orb/models/migration_cancel_params.rb
|
|
337
|
+
- lib/orb/models/migration_cancel_response.rb
|
|
338
|
+
- lib/orb/models/migration_create_params.rb
|
|
339
|
+
- lib/orb/models/migration_create_response.rb
|
|
340
|
+
- lib/orb/models/migration_list_params.rb
|
|
341
|
+
- lib/orb/models/migration_list_response.rb
|
|
342
|
+
- lib/orb/models/migration_retrieve_params.rb
|
|
343
|
+
- lib/orb/models/migration_retrieve_response.rb
|
|
344
|
+
- lib/orb/models/migration_subscription.rb
|
|
345
|
+
- lib/orb/models/migrations/subscription_list_params.rb
|
|
336
346
|
- lib/orb/models/minimum.rb
|
|
337
347
|
- lib/orb/models/minimum_interval.rb
|
|
338
348
|
- lib/orb/models/monetary_amount_discount_adjustment.rb
|
|
@@ -676,6 +686,8 @@ files:
|
|
|
676
686
|
- lib/orb/resources/licenses/external_licenses.rb
|
|
677
687
|
- lib/orb/resources/licenses/usage.rb
|
|
678
688
|
- lib/orb/resources/metrics.rb
|
|
689
|
+
- lib/orb/resources/migrations.rb
|
|
690
|
+
- lib/orb/resources/migrations/subscriptions.rb
|
|
679
691
|
- lib/orb/resources/plans.rb
|
|
680
692
|
- lib/orb/resources/plans/external_plan_id.rb
|
|
681
693
|
- lib/orb/resources/plans/migrations.rb
|
|
@@ -974,6 +986,16 @@ files:
|
|
|
974
986
|
- rbi/orb/models/metric_publish_params.rbi
|
|
975
987
|
- rbi/orb/models/metric_unarchive_params.rbi
|
|
976
988
|
- rbi/orb/models/metric_update_params.rbi
|
|
989
|
+
- rbi/orb/models/migration_cancel_params.rbi
|
|
990
|
+
- rbi/orb/models/migration_cancel_response.rbi
|
|
991
|
+
- rbi/orb/models/migration_create_params.rbi
|
|
992
|
+
- rbi/orb/models/migration_create_response.rbi
|
|
993
|
+
- rbi/orb/models/migration_list_params.rbi
|
|
994
|
+
- rbi/orb/models/migration_list_response.rbi
|
|
995
|
+
- rbi/orb/models/migration_retrieve_params.rbi
|
|
996
|
+
- rbi/orb/models/migration_retrieve_response.rbi
|
|
997
|
+
- rbi/orb/models/migration_subscription.rbi
|
|
998
|
+
- rbi/orb/models/migrations/subscription_list_params.rbi
|
|
977
999
|
- rbi/orb/models/minimum.rbi
|
|
978
1000
|
- rbi/orb/models/minimum_interval.rbi
|
|
979
1001
|
- rbi/orb/models/monetary_amount_discount_adjustment.rbi
|
|
@@ -1317,6 +1339,8 @@ files:
|
|
|
1317
1339
|
- rbi/orb/resources/licenses/external_licenses.rbi
|
|
1318
1340
|
- rbi/orb/resources/licenses/usage.rbi
|
|
1319
1341
|
- rbi/orb/resources/metrics.rbi
|
|
1342
|
+
- rbi/orb/resources/migrations.rbi
|
|
1343
|
+
- rbi/orb/resources/migrations/subscriptions.rbi
|
|
1320
1344
|
- rbi/orb/resources/plans.rbi
|
|
1321
1345
|
- rbi/orb/resources/plans/external_plan_id.rbi
|
|
1322
1346
|
- rbi/orb/resources/plans/migrations.rbi
|
|
@@ -1614,6 +1638,16 @@ files:
|
|
|
1614
1638
|
- sig/orb/models/metric_publish_params.rbs
|
|
1615
1639
|
- sig/orb/models/metric_unarchive_params.rbs
|
|
1616
1640
|
- sig/orb/models/metric_update_params.rbs
|
|
1641
|
+
- sig/orb/models/migration_cancel_params.rbs
|
|
1642
|
+
- sig/orb/models/migration_cancel_response.rbs
|
|
1643
|
+
- sig/orb/models/migration_create_params.rbs
|
|
1644
|
+
- sig/orb/models/migration_create_response.rbs
|
|
1645
|
+
- sig/orb/models/migration_list_params.rbs
|
|
1646
|
+
- sig/orb/models/migration_list_response.rbs
|
|
1647
|
+
- sig/orb/models/migration_retrieve_params.rbs
|
|
1648
|
+
- sig/orb/models/migration_retrieve_response.rbs
|
|
1649
|
+
- sig/orb/models/migration_subscription.rbs
|
|
1650
|
+
- sig/orb/models/migrations/subscription_list_params.rbs
|
|
1617
1651
|
- sig/orb/models/minimum.rbs
|
|
1618
1652
|
- sig/orb/models/minimum_interval.rbs
|
|
1619
1653
|
- sig/orb/models/monetary_amount_discount_adjustment.rbs
|
|
@@ -1957,6 +1991,8 @@ files:
|
|
|
1957
1991
|
- sig/orb/resources/licenses/external_licenses.rbs
|
|
1958
1992
|
- sig/orb/resources/licenses/usage.rbs
|
|
1959
1993
|
- sig/orb/resources/metrics.rbs
|
|
1994
|
+
- sig/orb/resources/migrations.rbs
|
|
1995
|
+
- sig/orb/resources/migrations/subscriptions.rbs
|
|
1960
1996
|
- sig/orb/resources/plans.rbs
|
|
1961
1997
|
- sig/orb/resources/plans/external_plan_id.rbs
|
|
1962
1998
|
- sig/orb/resources/plans/migrations.rbs
|