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
|
@@ -126,6 +126,7 @@ module Orb
|
|
|
126
126
|
| Orb::NewFloatingMinimumCompositePrice
|
|
127
127
|
| Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Percent
|
|
128
128
|
| Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::EventOutput
|
|
129
|
+
| Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::UnitWithMultiplier
|
|
129
130
|
|
|
130
131
|
module Price
|
|
131
132
|
extend Orb::Internal::Type::Union
|
|
@@ -1860,6 +1861,161 @@ module Orb
|
|
|
1860
1861
|
end
|
|
1861
1862
|
end
|
|
1862
1863
|
|
|
1864
|
+
type unit_with_multiplier =
|
|
1865
|
+
{
|
|
1866
|
+
cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::UnitWithMultiplier::cadence,
|
|
1867
|
+
currency: String,
|
|
1868
|
+
item_id: String,
|
|
1869
|
+
model_type: :unit_with_multiplier,
|
|
1870
|
+
name: String,
|
|
1871
|
+
unit_with_multiplier_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
1872
|
+
billable_metric_id: String?,
|
|
1873
|
+
billed_in_advance: bool?,
|
|
1874
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1875
|
+
conversion_rate: Float?,
|
|
1876
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1877
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1878
|
+
external_price_id: String?,
|
|
1879
|
+
fixed_price_quantity: Float?,
|
|
1880
|
+
invoice_grouping_key: String?,
|
|
1881
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1882
|
+
license_type_id: String?,
|
|
1883
|
+
metadata: ::Hash[Symbol, String?]?
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
class UnitWithMultiplier < Orb::Internal::Type::BaseModel
|
|
1887
|
+
attr_accessor cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::UnitWithMultiplier::cadence
|
|
1888
|
+
|
|
1889
|
+
attr_accessor currency: String
|
|
1890
|
+
|
|
1891
|
+
attr_accessor item_id: String
|
|
1892
|
+
|
|
1893
|
+
attr_accessor model_type: :unit_with_multiplier
|
|
1894
|
+
|
|
1895
|
+
attr_accessor name: String
|
|
1896
|
+
|
|
1897
|
+
attr_accessor unit_with_multiplier_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::UnitWithMultiplier::UnitWithMultiplierConfig
|
|
1898
|
+
|
|
1899
|
+
attr_accessor billable_metric_id: String?
|
|
1900
|
+
|
|
1901
|
+
attr_accessor billed_in_advance: bool?
|
|
1902
|
+
|
|
1903
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1904
|
+
|
|
1905
|
+
attr_accessor conversion_rate: Float?
|
|
1906
|
+
|
|
1907
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1908
|
+
|
|
1909
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
1910
|
+
|
|
1911
|
+
attr_accessor external_price_id: String?
|
|
1912
|
+
|
|
1913
|
+
attr_accessor fixed_price_quantity: Float?
|
|
1914
|
+
|
|
1915
|
+
attr_accessor invoice_grouping_key: String?
|
|
1916
|
+
|
|
1917
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1918
|
+
|
|
1919
|
+
attr_accessor license_type_id: String?
|
|
1920
|
+
|
|
1921
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
1922
|
+
|
|
1923
|
+
def initialize: (
|
|
1924
|
+
cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::UnitWithMultiplier::cadence,
|
|
1925
|
+
currency: String,
|
|
1926
|
+
item_id: String,
|
|
1927
|
+
name: String,
|
|
1928
|
+
unit_with_multiplier_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
1929
|
+
?billable_metric_id: String?,
|
|
1930
|
+
?billed_in_advance: bool?,
|
|
1931
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1932
|
+
?conversion_rate: Float?,
|
|
1933
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1934
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1935
|
+
?external_price_id: String?,
|
|
1936
|
+
?fixed_price_quantity: Float?,
|
|
1937
|
+
?invoice_grouping_key: String?,
|
|
1938
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1939
|
+
?license_type_id: String?,
|
|
1940
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
1941
|
+
?model_type: :unit_with_multiplier
|
|
1942
|
+
) -> void
|
|
1943
|
+
|
|
1944
|
+
def to_hash: -> {
|
|
1945
|
+
cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::UnitWithMultiplier::cadence,
|
|
1946
|
+
currency: String,
|
|
1947
|
+
item_id: String,
|
|
1948
|
+
model_type: :unit_with_multiplier,
|
|
1949
|
+
name: String,
|
|
1950
|
+
unit_with_multiplier_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
1951
|
+
billable_metric_id: String?,
|
|
1952
|
+
billed_in_advance: bool?,
|
|
1953
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1954
|
+
conversion_rate: Float?,
|
|
1955
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1956
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1957
|
+
external_price_id: String?,
|
|
1958
|
+
fixed_price_quantity: Float?,
|
|
1959
|
+
invoice_grouping_key: String?,
|
|
1960
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1961
|
+
license_type_id: String?,
|
|
1962
|
+
metadata: ::Hash[Symbol, String?]?
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1965
|
+
type cadence =
|
|
1966
|
+
:one_time
|
|
1967
|
+
| :monthly
|
|
1968
|
+
| :quarterly
|
|
1969
|
+
| :semi_annual
|
|
1970
|
+
| :annual
|
|
1971
|
+
| :custom
|
|
1972
|
+
|
|
1973
|
+
module Cadence
|
|
1974
|
+
extend Orb::Internal::Type::Enum
|
|
1975
|
+
|
|
1976
|
+
ONE_TIME: :one_time
|
|
1977
|
+
MONTHLY: :monthly
|
|
1978
|
+
QUARTERLY: :quarterly
|
|
1979
|
+
SEMI_ANNUAL: :semi_annual
|
|
1980
|
+
ANNUAL: :annual
|
|
1981
|
+
CUSTOM: :custom
|
|
1982
|
+
|
|
1983
|
+
def self?.values: -> ::Array[Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::UnitWithMultiplier::cadence]
|
|
1984
|
+
end
|
|
1985
|
+
|
|
1986
|
+
type unit_with_multiplier_config =
|
|
1987
|
+
{
|
|
1988
|
+
default_display_name: String,
|
|
1989
|
+
display_name_key: String,
|
|
1990
|
+
multiplier_key: String,
|
|
1991
|
+
unit_amount: String
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
|
|
1995
|
+
attr_accessor default_display_name: String
|
|
1996
|
+
|
|
1997
|
+
attr_accessor display_name_key: String
|
|
1998
|
+
|
|
1999
|
+
attr_accessor multiplier_key: String
|
|
2000
|
+
|
|
2001
|
+
attr_accessor unit_amount: String
|
|
2002
|
+
|
|
2003
|
+
def initialize: (
|
|
2004
|
+
default_display_name: String,
|
|
2005
|
+
display_name_key: String,
|
|
2006
|
+
multiplier_key: String,
|
|
2007
|
+
unit_amount: String
|
|
2008
|
+
) -> void
|
|
2009
|
+
|
|
2010
|
+
def to_hash: -> {
|
|
2011
|
+
default_display_name: String,
|
|
2012
|
+
display_name_key: String,
|
|
2013
|
+
multiplier_key: String,
|
|
2014
|
+
unit_amount: String
|
|
2015
|
+
}
|
|
2016
|
+
end
|
|
2017
|
+
end
|
|
2018
|
+
|
|
1863
2019
|
def self?.variants: -> ::Array[Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::price]
|
|
1864
2020
|
end
|
|
1865
2021
|
end
|
|
@@ -172,6 +172,7 @@ module Orb
|
|
|
172
172
|
| Orb::NewFloatingMinimumCompositePrice
|
|
173
173
|
| Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Percent
|
|
174
174
|
| Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::EventOutput
|
|
175
|
+
| Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::UnitWithMultiplier
|
|
175
176
|
|
|
176
177
|
module Price
|
|
177
178
|
extend Orb::Internal::Type::Union
|
|
@@ -1906,6 +1907,161 @@ module Orb
|
|
|
1906
1907
|
end
|
|
1907
1908
|
end
|
|
1908
1909
|
|
|
1910
|
+
type unit_with_multiplier =
|
|
1911
|
+
{
|
|
1912
|
+
cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::UnitWithMultiplier::cadence,
|
|
1913
|
+
currency: String,
|
|
1914
|
+
item_id: String,
|
|
1915
|
+
model_type: :unit_with_multiplier,
|
|
1916
|
+
name: String,
|
|
1917
|
+
unit_with_multiplier_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
1918
|
+
billable_metric_id: String?,
|
|
1919
|
+
billed_in_advance: bool?,
|
|
1920
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1921
|
+
conversion_rate: Float?,
|
|
1922
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1923
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1924
|
+
external_price_id: String?,
|
|
1925
|
+
fixed_price_quantity: Float?,
|
|
1926
|
+
invoice_grouping_key: String?,
|
|
1927
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1928
|
+
license_type_id: String?,
|
|
1929
|
+
metadata: ::Hash[Symbol, String?]?
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
class UnitWithMultiplier < Orb::Internal::Type::BaseModel
|
|
1933
|
+
attr_accessor cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::UnitWithMultiplier::cadence
|
|
1934
|
+
|
|
1935
|
+
attr_accessor currency: String
|
|
1936
|
+
|
|
1937
|
+
attr_accessor item_id: String
|
|
1938
|
+
|
|
1939
|
+
attr_accessor model_type: :unit_with_multiplier
|
|
1940
|
+
|
|
1941
|
+
attr_accessor name: String
|
|
1942
|
+
|
|
1943
|
+
attr_accessor unit_with_multiplier_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::UnitWithMultiplier::UnitWithMultiplierConfig
|
|
1944
|
+
|
|
1945
|
+
attr_accessor billable_metric_id: String?
|
|
1946
|
+
|
|
1947
|
+
attr_accessor billed_in_advance: bool?
|
|
1948
|
+
|
|
1949
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1950
|
+
|
|
1951
|
+
attr_accessor conversion_rate: Float?
|
|
1952
|
+
|
|
1953
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1954
|
+
|
|
1955
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
1956
|
+
|
|
1957
|
+
attr_accessor external_price_id: String?
|
|
1958
|
+
|
|
1959
|
+
attr_accessor fixed_price_quantity: Float?
|
|
1960
|
+
|
|
1961
|
+
attr_accessor invoice_grouping_key: String?
|
|
1962
|
+
|
|
1963
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1964
|
+
|
|
1965
|
+
attr_accessor license_type_id: String?
|
|
1966
|
+
|
|
1967
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
1968
|
+
|
|
1969
|
+
def initialize: (
|
|
1970
|
+
cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::UnitWithMultiplier::cadence,
|
|
1971
|
+
currency: String,
|
|
1972
|
+
item_id: String,
|
|
1973
|
+
name: String,
|
|
1974
|
+
unit_with_multiplier_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
1975
|
+
?billable_metric_id: String?,
|
|
1976
|
+
?billed_in_advance: bool?,
|
|
1977
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1978
|
+
?conversion_rate: Float?,
|
|
1979
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1980
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1981
|
+
?external_price_id: String?,
|
|
1982
|
+
?fixed_price_quantity: Float?,
|
|
1983
|
+
?invoice_grouping_key: String?,
|
|
1984
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1985
|
+
?license_type_id: String?,
|
|
1986
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
1987
|
+
?model_type: :unit_with_multiplier
|
|
1988
|
+
) -> void
|
|
1989
|
+
|
|
1990
|
+
def to_hash: -> {
|
|
1991
|
+
cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::UnitWithMultiplier::cadence,
|
|
1992
|
+
currency: String,
|
|
1993
|
+
item_id: String,
|
|
1994
|
+
model_type: :unit_with_multiplier,
|
|
1995
|
+
name: String,
|
|
1996
|
+
unit_with_multiplier_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::UnitWithMultiplier::UnitWithMultiplierConfig,
|
|
1997
|
+
billable_metric_id: String?,
|
|
1998
|
+
billed_in_advance: bool?,
|
|
1999
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2000
|
+
conversion_rate: Float?,
|
|
2001
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2002
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2003
|
+
external_price_id: String?,
|
|
2004
|
+
fixed_price_quantity: Float?,
|
|
2005
|
+
invoice_grouping_key: String?,
|
|
2006
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2007
|
+
license_type_id: String?,
|
|
2008
|
+
metadata: ::Hash[Symbol, String?]?
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
type cadence =
|
|
2012
|
+
:one_time
|
|
2013
|
+
| :monthly
|
|
2014
|
+
| :quarterly
|
|
2015
|
+
| :semi_annual
|
|
2016
|
+
| :annual
|
|
2017
|
+
| :custom
|
|
2018
|
+
|
|
2019
|
+
module Cadence
|
|
2020
|
+
extend Orb::Internal::Type::Enum
|
|
2021
|
+
|
|
2022
|
+
ONE_TIME: :one_time
|
|
2023
|
+
MONTHLY: :monthly
|
|
2024
|
+
QUARTERLY: :quarterly
|
|
2025
|
+
SEMI_ANNUAL: :semi_annual
|
|
2026
|
+
ANNUAL: :annual
|
|
2027
|
+
CUSTOM: :custom
|
|
2028
|
+
|
|
2029
|
+
def self?.values: -> ::Array[Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::UnitWithMultiplier::cadence]
|
|
2030
|
+
end
|
|
2031
|
+
|
|
2032
|
+
type unit_with_multiplier_config =
|
|
2033
|
+
{
|
|
2034
|
+
default_display_name: String,
|
|
2035
|
+
display_name_key: String,
|
|
2036
|
+
multiplier_key: String,
|
|
2037
|
+
unit_amount: String
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
|
|
2041
|
+
attr_accessor default_display_name: String
|
|
2042
|
+
|
|
2043
|
+
attr_accessor display_name_key: String
|
|
2044
|
+
|
|
2045
|
+
attr_accessor multiplier_key: String
|
|
2046
|
+
|
|
2047
|
+
attr_accessor unit_amount: String
|
|
2048
|
+
|
|
2049
|
+
def initialize: (
|
|
2050
|
+
default_display_name: String,
|
|
2051
|
+
display_name_key: String,
|
|
2052
|
+
multiplier_key: String,
|
|
2053
|
+
unit_amount: String
|
|
2054
|
+
) -> void
|
|
2055
|
+
|
|
2056
|
+
def to_hash: -> {
|
|
2057
|
+
default_display_name: String,
|
|
2058
|
+
display_name_key: String,
|
|
2059
|
+
multiplier_key: String,
|
|
2060
|
+
unit_amount: String
|
|
2061
|
+
}
|
|
2062
|
+
end
|
|
2063
|
+
end
|
|
2064
|
+
|
|
1909
2065
|
def self?.variants: -> ::Array[Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::price]
|
|
1910
2066
|
end
|
|
1911
2067
|
end
|