orb-billing 0.12.0 → 1.0.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 +20 -0
- data/README.md +1 -1
- data/lib/orb/internal/type/base_model.rb +5 -5
- data/lib/orb/models/accounting_provider_config.rb +21 -0
- data/lib/orb/models/address.rb +45 -0
- data/lib/orb/models/address_input.rb +45 -0
- data/lib/orb/models/adjustment_interval.rb +66 -0
- data/lib/orb/models/aggregated_cost.rb +45 -0
- data/lib/orb/models/alert.rb +9 -60
- data/lib/orb/models/alert_create_for_customer_params.rb +3 -24
- data/lib/orb/models/alert_create_for_external_customer_params.rb +3 -24
- data/lib/orb/models/alert_create_for_subscription_params.rb +3 -23
- data/lib/orb/models/alert_update_params.rb +3 -22
- data/lib/orb/models/allocation.rb +27 -0
- data/lib/orb/models/amount_discount.rb +3 -59
- data/lib/orb/models/amount_discount_interval.rb +65 -0
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +193 -19201
- data/lib/orb/models/beta_create_plan_version_params.rb +183 -19025
- data/lib/orb/models/billable_metric_tiny.rb +15 -0
- data/lib/orb/models/billing_cycle_anchor_configuration.rb +41 -0
- data/lib/orb/models/billing_cycle_configuration.rb +32 -0
- data/lib/orb/models/bps_config.rb +24 -0
- data/lib/orb/models/bps_tier.rb +40 -0
- data/lib/orb/models/bulk_bps_config.rb +20 -0
- data/lib/orb/models/bulk_bps_tier.rb +32 -0
- data/lib/orb/models/bulk_config.rb +16 -0
- data/lib/orb/models/bulk_tier.rb +24 -0
- data/lib/orb/models/changed_subscription_resources.rb +40 -0
- data/lib/orb/models/conversion_rate_tier.rb +32 -0
- data/lib/orb/models/conversion_rate_tiered_config.rb +16 -0
- data/lib/orb/models/conversion_rate_unit_config.rb +16 -0
- data/lib/orb/models/coupon_redemption.rb +27 -0
- data/lib/orb/models/credit_note.rb +6 -51
- data/lib/orb/models/credit_note_tiny.rb +16 -0
- data/lib/orb/models/custom_expiration.rb +32 -0
- data/lib/orb/models/customer.rb +15 -426
- data/lib/orb/models/customer_create_params.rb +24 -527
- data/lib/orb/models/customer_hierarchy_config.rb +29 -0
- data/lib/orb/models/customer_minified.rb +21 -0
- data/lib/orb/models/customer_tax_id.rb +300 -0
- data/lib/orb/models/customer_update_by_external_id_params.rb +24 -529
- data/lib/orb/models/customer_update_params.rb +24 -527
- data/lib/orb/models/customers/balance_transaction_create_response.rb +6 -32
- data/lib/orb/models/customers/balance_transaction_list_response.rb +6 -32
- data/lib/orb/models/customers/cost_list_by_external_id_response.rb +3 -88
- data/lib/orb/models/customers/cost_list_response.rb +3 -87
- data/lib/orb/models/customers/credits/affected_block.rb +31 -0
- data/lib/orb/models/customers/credits/amendment_ledger_entry.rb +131 -0
- data/lib/orb/models/customers/credits/credit_block_expiry_ledger_entry.rb +137 -0
- data/lib/orb/models/customers/credits/decrement_ledger_entry.rb +152 -0
- data/lib/orb/models/customers/credits/expiration_change_ledger_entry.rb +141 -0
- data/lib/orb/models/customers/credits/increment_ledger_entry.rb +139 -0
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +8 -1177
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +8 -1169
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +8 -1173
- data/lib/orb/models/customers/credits/ledger_list_response.rb +8 -1161
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +3 -52
- data/lib/orb/models/customers/credits/top_up_create_response.rb +3 -51
- data/lib/orb/models/customers/credits/top_up_invoice_settings.rb +53 -0
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +3 -52
- data/lib/orb/models/customers/credits/top_up_list_response.rb +3 -51
- data/lib/orb/models/customers/credits/void_initiated_ledger_entry.rb +152 -0
- data/lib/orb/models/customers/credits/void_ledger_entry.rb +145 -0
- data/lib/orb/models/dimensional_price_configuration.rb +21 -0
- data/lib/orb/models/discount_override.rb +56 -0
- data/lib/orb/models/fixed_fee_quantity_schedule_entry.rb +33 -0
- data/lib/orb/models/fixed_fee_quantity_transition.rb +27 -0
- data/lib/orb/models/invoice.rb +56 -1777
- data/lib/orb/models/invoice_create_params.rb +3 -15
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +56 -1794
- data/lib/orb/models/invoice_line_item_create_response.rb +25 -1142
- data/lib/orb/models/invoice_tiny.rb +16 -0
- data/lib/orb/models/item_slim.rb +21 -0
- data/lib/orb/models/matrix_config.rb +32 -0
- data/lib/orb/models/matrix_sub_line_item.rb +61 -0
- data/lib/orb/models/matrix_value.rb +29 -0
- data/lib/orb/models/matrix_with_allocation_config.rb +40 -0
- data/lib/orb/models/maximum.rb +38 -0
- data/lib/orb/models/maximum_interval.rb +52 -0
- data/lib/orb/models/minimum.rb +38 -0
- data/lib/orb/models/minimum_interval.rb +52 -0
- data/lib/orb/models/monetary_amount_discount_adjustment.rb +87 -0
- data/lib/orb/models/monetary_maximum_adjustment.rb +87 -0
- data/lib/orb/models/monetary_minimum_adjustment.rb +95 -0
- data/lib/orb/models/monetary_percentage_discount_adjustment.rb +87 -0
- data/lib/orb/models/monetary_usage_discount_adjustment.rb +87 -0
- data/lib/orb/models/mutated_subscription.rb +302 -0
- data/lib/orb/models/new_accounting_sync_configuration.rb +23 -0
- data/lib/orb/models/new_allocation_price.rb +70 -0
- data/lib/orb/models/new_amount_discount.rb +120 -0
- data/lib/orb/models/new_avalara_tax_configuration.rb +37 -0
- data/lib/orb/models/new_billing_cycle_configuration.rb +37 -0
- data/lib/orb/models/new_dimensional_price_configuration.rb +36 -0
- data/lib/orb/models/new_floating_bps_price.rb +199 -0
- data/lib/orb/models/new_floating_bulk_bps_price.rb +197 -0
- data/lib/orb/models/new_floating_bulk_price.rb +197 -0
- data/lib/orb/models/new_floating_bulk_with_proration_price.rb +197 -0
- data/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +197 -0
- data/lib/orb/models/new_floating_grouped_allocation_price.rb +197 -0
- data/lib/orb/models/new_floating_grouped_tiered_package_price.rb +197 -0
- data/lib/orb/models/new_floating_grouped_tiered_price.rb +197 -0
- data/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +197 -0
- data/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +198 -0
- data/lib/orb/models/new_floating_matrix_price.rb +197 -0
- data/lib/orb/models/new_floating_matrix_with_allocation_price.rb +197 -0
- data/lib/orb/models/new_floating_matrix_with_display_name_price.rb +197 -0
- data/lib/orb/models/new_floating_max_group_tiered_package_price.rb +197 -0
- data/lib/orb/models/new_floating_package_price.rb +197 -0
- data/lib/orb/models/new_floating_package_with_allocation_price.rb +197 -0
- data/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +198 -0
- data/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +198 -0
- data/lib/orb/models/new_floating_threshold_total_amount_price.rb +197 -0
- data/lib/orb/models/new_floating_tiered_bps_price.rb +197 -0
- data/lib/orb/models/new_floating_tiered_package_price.rb +197 -0
- data/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +197 -0
- data/lib/orb/models/new_floating_tiered_price.rb +197 -0
- data/lib/orb/models/new_floating_tiered_with_minimum_price.rb +197 -0
- data/lib/orb/models/new_floating_tiered_with_proration_price.rb +197 -0
- data/lib/orb/models/new_floating_unit_price.rb +197 -0
- data/lib/orb/models/new_floating_unit_with_percent_price.rb +197 -0
- data/lib/orb/models/new_floating_unit_with_proration_price.rb +197 -0
- data/lib/orb/models/new_maximum.rb +120 -0
- data/lib/orb/models/new_minimum.rb +128 -0
- data/lib/orb/models/new_percentage_discount.rb +120 -0
- data/lib/orb/models/new_plan_bps_price.rb +196 -0
- data/lib/orb/models/new_plan_bulk_bps_price.rb +200 -0
- data/lib/orb/models/new_plan_bulk_price.rb +196 -0
- data/lib/orb/models/new_plan_bulk_with_proration_price.rb +198 -0
- data/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +198 -0
- data/lib/orb/models/new_plan_grouped_allocation_price.rb +198 -0
- data/lib/orb/models/new_plan_grouped_tiered_package_price.rb +198 -0
- data/lib/orb/models/new_plan_grouped_tiered_price.rb +198 -0
- data/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +198 -0
- data/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +199 -0
- data/lib/orb/models/new_plan_matrix_price.rb +200 -0
- data/lib/orb/models/new_plan_matrix_with_allocation_price.rb +198 -0
- data/lib/orb/models/new_plan_matrix_with_display_name_price.rb +198 -0
- data/lib/orb/models/new_plan_max_group_tiered_package_price.rb +198 -0
- data/lib/orb/models/new_plan_package_price.rb +200 -0
- data/lib/orb/models/new_plan_package_with_allocation_price.rb +198 -0
- data/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +199 -0
- data/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +199 -0
- data/lib/orb/models/new_plan_threshold_total_amount_price.rb +198 -0
- data/lib/orb/models/new_plan_tier_with_proration_price.rb +198 -0
- data/lib/orb/models/new_plan_tiered_bps_price.rb +198 -0
- data/lib/orb/models/new_plan_tiered_package_price.rb +198 -0
- data/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +198 -0
- data/lib/orb/models/new_plan_tiered_price.rb +200 -0
- data/lib/orb/models/new_plan_tiered_with_minimum_price.rb +198 -0
- data/lib/orb/models/new_plan_unit_price.rb +196 -0
- data/lib/orb/models/new_plan_unit_with_percent_price.rb +198 -0
- data/lib/orb/models/new_plan_unit_with_proration_price.rb +198 -0
- data/lib/orb/models/new_reporting_configuration.rb +15 -0
- data/lib/orb/models/new_sphere_configuration.rb +31 -0
- data/lib/orb/models/new_subscription_bps_price.rb +207 -0
- data/lib/orb/models/new_subscription_bulk_bps_price.rb +207 -0
- data/lib/orb/models/new_subscription_bulk_price.rb +207 -0
- data/lib/orb/models/new_subscription_bulk_with_proration_price.rb +207 -0
- data/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +207 -0
- data/lib/orb/models/new_subscription_grouped_allocation_price.rb +207 -0
- data/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +207 -0
- data/lib/orb/models/new_subscription_grouped_tiered_price.rb +207 -0
- data/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +207 -0
- data/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +208 -0
- data/lib/orb/models/new_subscription_matrix_price.rb +207 -0
- data/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +207 -0
- data/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +207 -0
- data/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +207 -0
- data/lib/orb/models/new_subscription_package_price.rb +207 -0
- data/lib/orb/models/new_subscription_package_with_allocation_price.rb +207 -0
- data/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +209 -0
- data/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +209 -0
- data/lib/orb/models/new_subscription_threshold_total_amount_price.rb +207 -0
- data/lib/orb/models/new_subscription_tier_with_proration_price.rb +207 -0
- data/lib/orb/models/new_subscription_tiered_bps_price.rb +207 -0
- data/lib/orb/models/new_subscription_tiered_package_price.rb +207 -0
- data/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +207 -0
- data/lib/orb/models/new_subscription_tiered_price.rb +207 -0
- data/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +207 -0
- data/lib/orb/models/new_subscription_unit_price.rb +207 -0
- data/lib/orb/models/new_subscription_unit_with_percent_price.rb +207 -0
- data/lib/orb/models/new_subscription_unit_with_proration_price.rb +207 -0
- data/lib/orb/models/new_tax_jar_configuration.rb +31 -0
- data/lib/orb/models/new_usage_discount.rb +120 -0
- data/lib/orb/models/other_sub_line_item.rb +54 -0
- data/lib/orb/models/package_config.rb +28 -0
- data/lib/orb/models/per_price_cost.rb +48 -0
- data/lib/orb/models/percentage_discount.rb +3 -59
- data/lib/orb/models/percentage_discount_interval.rb +69 -0
- data/lib/orb/models/plan.rb +22 -1040
- data/lib/orb/models/plan_create_params.rb +31 -8145
- data/lib/orb/models/plan_phase_amount_discount_adjustment.rb +87 -0
- data/lib/orb/models/plan_phase_maximum_adjustment.rb +87 -0
- data/lib/orb/models/plan_phase_minimum_adjustment.rb +95 -0
- data/lib/orb/models/plan_phase_percentage_discount_adjustment.rb +87 -0
- data/lib/orb/models/plan_phase_usage_discount_adjustment.rb +87 -0
- data/lib/orb/models/plan_version.rb +10 -672
- data/lib/orb/models/price.rb +1225 -10817
- data/lib/orb/models/price_create_params.rb +53 -472
- data/lib/orb/models/price_evaluate_multiple_params.rb +32 -8479
- data/lib/orb/models/price_evaluate_preview_events_params.rb +236 -0
- data/lib/orb/models/price_evaluate_preview_events_response.rb +51 -0
- data/lib/orb/models/price_interval.rb +113 -0
- data/lib/orb/models/sub_line_item_grouping.rb +23 -0
- data/lib/orb/models/sub_line_item_matrix_config.rb +16 -0
- data/lib/orb/models/subscription.rb +33 -1581
- data/lib/orb/models/subscription_change_apply_response.rb +3 -1904
- data/lib/orb/models/subscription_change_cancel_response.rb +3 -1905
- data/lib/orb/models/subscription_change_minified.rb +15 -0
- data/lib/orb/models/subscription_change_retrieve_response.rb +3 -1906
- data/lib/orb/models/subscription_create_params.rb +232 -19698
- data/lib/orb/models/subscription_fetch_costs_response.rb +3 -87
- data/lib/orb/models/subscription_minified.rb +15 -0
- data/lib/orb/models/subscription_price_intervals_params.rb +86 -9468
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +238 -19792
- data/lib/orb/models/subscription_trial_info.rb +15 -0
- data/lib/orb/models/tax_amount.rb +32 -0
- data/lib/orb/models/threshold.rb +24 -0
- data/lib/orb/models/tier.rb +32 -0
- data/lib/orb/models/tier_config.rb +27 -0
- data/lib/orb/models/tier_sub_line_item.rb +61 -0
- data/lib/orb/models/tiered_bps_config.rb +20 -0
- data/lib/orb/models/tiered_config.rb +16 -0
- data/lib/orb/models/tiered_conversion_rate_config.rb +31 -0
- data/lib/orb/models/transform_price_filter.rb +61 -0
- data/lib/orb/models/trial_discount.rb +3 -59
- data/lib/orb/models/unit_config.rb +16 -0
- data/lib/orb/models/unit_conversion_rate_config.rb +31 -0
- data/lib/orb/models/usage_discount.rb +3 -59
- data/lib/orb/models/usage_discount_interval.rb +69 -0
- data/lib/orb/models.rb +348 -0
- data/lib/orb/resources/alerts.rb +4 -4
- data/lib/orb/resources/customers/credits/ledger.rb +4 -4
- data/lib/orb/resources/customers.rb +21 -21
- data/lib/orb/resources/plans.rb +1 -1
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +82 -34
- data/lib/orb/resources/subscriptions.rb +24 -24
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +181 -11
- data/rbi/orb/models/accounting_provider_config.rbi +34 -0
- data/rbi/orb/models/address.rbi +55 -0
- data/rbi/orb/models/address_input.rbi +62 -0
- data/rbi/orb/models/adjustment_interval.rbi +93 -0
- data/rbi/orb/models/aggregated_cost.rbi +61 -0
- data/rbi/orb/models/alert.rbi +11 -84
- data/rbi/orb/models/alert_create_for_customer_params.rbi +3 -42
- data/rbi/orb/models/alert_create_for_external_customer_params.rbi +3 -48
- data/rbi/orb/models/alert_create_for_subscription_params.rbi +3 -38
- data/rbi/orb/models/alert_update_params.rbi +3 -31
- data/rbi/orb/models/allocation.rbi +45 -0
- data/rbi/orb/models/amount_discount.rbi +3 -112
- data/rbi/orb/models/amount_discount_interval.rbi +100 -0
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +558 -35618
- data/rbi/orb/models/beta_create_plan_version_params.rbi +558 -35610
- data/rbi/orb/models/billable_metric_tiny.rbi +21 -0
- data/rbi/orb/models/billing_cycle_anchor_configuration.rbi +61 -0
- data/rbi/orb/models/billing_cycle_configuration.rbi +70 -0
- data/rbi/orb/models/bps_config.rbi +36 -0
- data/rbi/orb/models/bps_tier.rbi +58 -0
- data/rbi/orb/models/bulk_bps_config.rbi +31 -0
- data/rbi/orb/models/bulk_bps_tier.rbi +50 -0
- data/rbi/orb/models/bulk_config.rbi +26 -0
- data/rbi/orb/models/bulk_tier.rbi +38 -0
- data/rbi/orb/models/changed_subscription_resources.rbi +61 -0
- data/rbi/orb/models/conversion_rate_tier.rbi +51 -0
- data/rbi/orb/models/conversion_rate_tiered_config.rbi +31 -0
- data/rbi/orb/models/conversion_rate_unit_config.rbi +27 -0
- data/rbi/orb/models/coupon_redemption.rbi +37 -0
- data/rbi/orb/models/credit_note.rbi +7 -87
- data/rbi/orb/models/credit_note_tiny.rbi +25 -0
- data/rbi/orb/models/custom_expiration.rbi +55 -0
- data/rbi/orb/models/customer.rbi +19 -522
- data/rbi/orb/models/customer_create_params.rbi +36 -957
- data/rbi/orb/models/customer_hierarchy_config.rbi +52 -0
- data/rbi/orb/models/customer_minified.rbi +32 -0
- data/rbi/orb/models/customer_tax_id.rbi +324 -0
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +36 -1436
- data/rbi/orb/models/customer_update_params.rbi +36 -957
- data/rbi/orb/models/customers/balance_transaction_create_response.rbi +8 -96
- data/rbi/orb/models/customers/balance_transaction_list_response.rbi +8 -96
- data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +5 -191
- data/rbi/orb/models/customers/cost_list_response.rbi +5 -182
- data/rbi/orb/models/customers/credits/affected_block.rbi +50 -0
- data/rbi/orb/models/customers/credits/amendment_ledger_entry.rbi +207 -0
- data/rbi/orb/models/customers/credits/credit_block_expiry_ledger_entry.rbi +209 -0
- data/rbi/orb/models/customers/credits/decrement_ledger_entry.rbi +225 -0
- data/rbi/orb/models/customers/credits/expiration_change_ledger_entry.rbi +213 -0
- data/rbi/orb/models/customers/credits/increment_ledger_entry.rbi +215 -0
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +7 -1854
- data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +7 -1854
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +7 -1854
- data/rbi/orb/models/customers/credits/ledger_list_response.rbi +7 -1854
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +4 -84
- data/rbi/orb/models/customers/credits/top_up_create_response.rbi +4 -84
- data/rbi/orb/models/customers/credits/top_up_invoice_settings.rbi +83 -0
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +4 -84
- data/rbi/orb/models/customers/credits/top_up_list_response.rbi +4 -84
- data/rbi/orb/models/customers/credits/void_initiated_ledger_entry.rbi +225 -0
- data/rbi/orb/models/customers/credits/void_ledger_entry.rbi +219 -0
- data/rbi/orb/models/dimensional_price_configuration.rbi +38 -0
- data/rbi/orb/models/discount_override.rbi +83 -0
- data/rbi/orb/models/fixed_fee_quantity_schedule_entry.rbi +48 -0
- data/rbi/orb/models/fixed_fee_quantity_transition.rbi +39 -0
- data/rbi/orb/models/invoice.rbi +212 -3345
- data/rbi/orb/models/invoice_create_params.rbi +4 -33
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +355 -4329
- data/rbi/orb/models/invoice_line_item_create_response.rbi +30 -2260
- data/rbi/orb/models/invoice_tiny.rbi +24 -0
- data/rbi/orb/models/item_slim.rbi +23 -0
- data/rbi/orb/models/matrix_config.rbi +50 -0
- data/rbi/orb/models/matrix_sub_line_item.rbi +87 -0
- data/rbi/orb/models/matrix_value.rbi +43 -0
- data/rbi/orb/models/matrix_with_allocation_config.rbi +61 -0
- data/rbi/orb/models/maximum.rbi +52 -0
- data/rbi/orb/models/maximum_interval.rbi +69 -0
- data/rbi/orb/models/minimum.rbi +52 -0
- data/rbi/orb/models/minimum_interval.rbi +69 -0
- data/rbi/orb/models/monetary_amount_discount_adjustment.rbi +125 -0
- data/rbi/orb/models/monetary_maximum_adjustment.rbi +123 -0
- data/rbi/orb/models/monetary_minimum_adjustment.rbi +131 -0
- data/rbi/orb/models/monetary_percentage_discount_adjustment.rbi +131 -0
- data/rbi/orb/models/monetary_usage_discount_adjustment.rbi +125 -0
- data/rbi/orb/models/mutated_subscription.rbi +412 -0
- data/rbi/orb/models/new_accounting_sync_configuration.rbi +40 -0
- data/rbi/orb/models/new_allocation_price.rbi +104 -0
- data/rbi/orb/models/new_amount_discount.rbi +179 -0
- data/rbi/orb/models/new_avalara_tax_configuration.rbi +68 -0
- data/rbi/orb/models/new_billing_cycle_configuration.rbi +79 -0
- data/rbi/orb/models/new_dimensional_price_configuration.rbi +55 -0
- data/rbi/orb/models/new_floating_bps_price.rbi +294 -0
- data/rbi/orb/models/new_floating_bulk_bps_price.rbi +309 -0
- data/rbi/orb/models/new_floating_bulk_price.rbi +298 -0
- data/rbi/orb/models/new_floating_bulk_with_proration_price.rbi +331 -0
- data/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi +338 -0
- data/rbi/orb/models/new_floating_grouped_allocation_price.rbi +331 -0
- data/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi +337 -0
- data/rbi/orb/models/new_floating_grouped_tiered_price.rbi +325 -0
- data/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi +348 -0
- data/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi +348 -0
- data/rbi/orb/models/new_floating_matrix_price.rbi +304 -0
- data/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi +345 -0
- data/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi +338 -0
- data/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi +338 -0
- data/rbi/orb/models/new_floating_package_price.rbi +306 -0
- data/rbi/orb/models/new_floating_package_with_allocation_price.rbi +338 -0
- data/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi +350 -0
- data/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi +349 -0
- data/rbi/orb/models/new_floating_threshold_total_amount_price.rbi +337 -0
- data/rbi/orb/models/new_floating_tiered_bps_price.rbi +317 -0
- data/rbi/orb/models/new_floating_tiered_package_price.rbi +325 -0
- data/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi +348 -0
- data/rbi/orb/models/new_floating_tiered_price.rbi +304 -0
- data/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi +331 -0
- data/rbi/orb/models/new_floating_tiered_with_proration_price.rbi +337 -0
- data/rbi/orb/models/new_floating_unit_price.rbi +298 -0
- data/rbi/orb/models/new_floating_unit_with_percent_price.rbi +328 -0
- data/rbi/orb/models/new_floating_unit_with_proration_price.rbi +331 -0
- data/rbi/orb/models/new_maximum.rbi +160 -0
- data/rbi/orb/models/new_minimum.rbi +168 -0
- data/rbi/orb/models/new_percentage_discount.rbi +193 -0
- data/rbi/orb/models/new_plan_bps_price.rbi +294 -0
- data/rbi/orb/models/new_plan_bulk_bps_price.rbi +297 -0
- data/rbi/orb/models/new_plan_bulk_price.rbi +295 -0
- data/rbi/orb/models/new_plan_bulk_with_proration_price.rbi +327 -0
- data/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi +333 -0
- data/rbi/orb/models/new_plan_grouped_allocation_price.rbi +327 -0
- data/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi +333 -0
- data/rbi/orb/models/new_plan_grouped_tiered_price.rbi +316 -0
- data/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi +340 -0
- data/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi +345 -0
- data/rbi/orb/models/new_plan_matrix_price.rbi +297 -0
- data/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi +341 -0
- data/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi +333 -0
- data/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi +333 -0
- data/rbi/orb/models/new_plan_package_price.rbi +297 -0
- data/rbi/orb/models/new_plan_package_with_allocation_price.rbi +333 -0
- data/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi +352 -0
- data/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi +351 -0
- data/rbi/orb/models/new_plan_threshold_total_amount_price.rbi +333 -0
- data/rbi/orb/models/new_plan_tier_with_proration_price.rbi +327 -0
- data/rbi/orb/models/new_plan_tiered_bps_price.rbi +304 -0
- data/rbi/orb/models/new_plan_tiered_package_price.rbi +316 -0
- data/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi +339 -0
- data/rbi/orb/models/new_plan_tiered_price.rbi +297 -0
- data/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi +327 -0
- data/rbi/orb/models/new_plan_unit_price.rbi +295 -0
- data/rbi/orb/models/new_plan_unit_with_percent_price.rbi +325 -0
- data/rbi/orb/models/new_plan_unit_with_proration_price.rbi +327 -0
- data/rbi/orb/models/new_reporting_configuration.rbi +23 -0
- data/rbi/orb/models/new_sphere_configuration.rbi +59 -0
- data/rbi/orb/models/new_subscription_bps_price.rbi +317 -0
- data/rbi/orb/models/new_subscription_bulk_bps_price.rbi +338 -0
- data/rbi/orb/models/new_subscription_bulk_price.rbi +321 -0
- data/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi +350 -0
- data/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_grouped_allocation_price.rbi +350 -0
- data/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_grouped_tiered_price.rbi +343 -0
- data/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_matrix_price.rbi +332 -0
- data/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi +368 -0
- data/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_package_price.rbi +338 -0
- data/rbi/orb/models/new_subscription_package_with_allocation_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi +362 -0
- data/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi +361 -0
- data/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_tier_with_proration_price.rbi +350 -0
- data/rbi/orb/models/new_subscription_tiered_bps_price.rbi +340 -0
- data/rbi/orb/models/new_subscription_tiered_package_price.rbi +343 -0
- data/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi +360 -0
- data/rbi/orb/models/new_subscription_tiered_price.rbi +332 -0
- data/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi +350 -0
- data/rbi/orb/models/new_subscription_unit_price.rbi +321 -0
- data/rbi/orb/models/new_subscription_unit_with_percent_price.rbi +349 -0
- data/rbi/orb/models/new_subscription_unit_with_proration_price.rbi +350 -0
- data/rbi/orb/models/new_tax_jar_configuration.rbi +59 -0
- data/rbi/orb/models/new_usage_discount.rbi +177 -0
- data/rbi/orb/models/other_sub_line_item.rbi +78 -0
- data/rbi/orb/models/package_config.rbi +39 -0
- data/rbi/orb/models/per_price_cost.rbi +96 -0
- data/rbi/orb/models/percentage_discount.rbi +3 -126
- data/rbi/orb/models/percentage_discount_interval.rbi +107 -0
- data/rbi/orb/models/plan.rbi +29 -1937
- data/rbi/orb/models/plan_create_params.rbi +112 -15428
- data/rbi/orb/models/plan_phase_amount_discount_adjustment.rbi +128 -0
- data/rbi/orb/models/plan_phase_maximum_adjustment.rbi +123 -0
- data/rbi/orb/models/plan_phase_minimum_adjustment.rbi +131 -0
- data/rbi/orb/models/plan_phase_percentage_discount_adjustment.rbi +131 -0
- data/rbi/orb/models/plan_phase_usage_discount_adjustment.rbi +125 -0
- data/rbi/orb/models/plan_version.rbi +13 -1252
- data/rbi/orb/models/price.rbi +3518 -26097
- data/rbi/orb/models/price_create_params.rbi +81 -937
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +112 -15566
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +411 -0
- data/rbi/orb/models/price_evaluate_preview_events_response.rbi +101 -0
- data/rbi/orb/models/price_interval.rbi +174 -0
- data/rbi/orb/models/sub_line_item_grouping.rbi +31 -0
- data/rbi/orb/models/sub_line_item_matrix_config.rbi +33 -0
- data/rbi/orb/models/subscription.rbi +51 -2939
- data/rbi/orb/models/subscription_change_apply_response.rbi +4 -3580
- data/rbi/orb/models/subscription_change_cancel_response.rbi +4 -3580
- data/rbi/orb/models/subscription_change_minified.rbi +23 -0
- data/rbi/orb/models/subscription_change_retrieve_response.rbi +4 -3582
- data/rbi/orb/models/subscription_create_params.rbi +686 -36613
- data/rbi/orb/models/subscription_fetch_costs_response.rbi +5 -182
- data/rbi/orb/models/subscription_minified.rbi +23 -0
- data/rbi/orb/models/subscription_price_intervals_params.rbi +224 -17694
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +696 -36631
- data/rbi/orb/models/subscription_trial_info.rbi +23 -0
- data/rbi/orb/models/tax_amount.rbi +50 -0
- data/rbi/orb/models/threshold.rbi +30 -0
- data/rbi/orb/models/tier.rbi +50 -0
- data/rbi/orb/models/tier_config.rbi +40 -0
- data/rbi/orb/models/tier_sub_line_item.rbi +87 -0
- data/rbi/orb/models/tiered_bps_config.rbi +29 -0
- data/rbi/orb/models/tiered_config.rbi +26 -0
- data/rbi/orb/models/tiered_conversion_rate_config.rbi +73 -0
- data/rbi/orb/models/transform_price_filter.rbi +106 -0
- data/rbi/orb/models/trial_discount.rbi +3 -104
- data/rbi/orb/models/unit_config.rbi +24 -0
- data/rbi/orb/models/unit_conversion_rate_config.rbi +71 -0
- data/rbi/orb/models/usage_discount.rbi +3 -104
- data/rbi/orb/models/usage_discount_interval.rbi +99 -0
- data/rbi/orb/models.rbi +398 -0
- data/rbi/orb/resources/alerts.rbi +4 -13
- data/rbi/orb/resources/customers.rbi +27 -51
- data/rbi/orb/resources/plans.rbi +28 -28
- data/rbi/orb/resources/prices.rbi +82 -36
- data/rbi/orb/resources/subscriptions.rbi +13 -19
- data/sig/orb/models/accounting_provider_config.rbs +19 -0
- data/sig/orb/models/address.rbs +45 -0
- data/sig/orb/models/address_input.rbs +45 -0
- data/sig/orb/models/adjustment_interval.rbs +53 -0
- data/sig/orb/models/aggregated_cost.rbs +40 -0
- data/sig/orb/models/alert.rbs +12 -44
- data/sig/orb/models/alert_create_for_customer_params.rbs +4 -14
- data/sig/orb/models/alert_create_for_external_customer_params.rbs +4 -14
- data/sig/orb/models/alert_create_for_subscription_params.rbs +4 -14
- data/sig/orb/models/alert_update_params.rbs +4 -14
- data/sig/orb/models/allocation.rbs +30 -0
- data/sig/orb/models/amount_discount.rbs +4 -57
- data/sig/orb/models/amount_discount_interval.rbs +55 -0
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +149 -13933
- data/sig/orb/models/beta_create_plan_version_params.rbs +146 -13914
- data/sig/orb/models/billable_metric_tiny.rbs +13 -0
- data/sig/orb/models/billing_cycle_anchor_configuration.rbs +18 -0
- data/sig/orb/models/billing_cycle_configuration.rbs +36 -0
- data/sig/orb/models/bps_config.rbs +15 -0
- data/sig/orb/models/bps_tier.rbs +35 -0
- data/sig/orb/models/bulk_bps_config.rbs +13 -0
- data/sig/orb/models/bulk_bps_tier.rbs +26 -0
- data/sig/orb/models/bulk_config.rbs +13 -0
- data/sig/orb/models/bulk_tier.rbs +15 -0
- data/sig/orb/models/changed_subscription_resources.rbs +35 -0
- data/sig/orb/models/conversion_rate_tier.rbs +26 -0
- data/sig/orb/models/conversion_rate_tiered_config.rbs +14 -0
- data/sig/orb/models/conversion_rate_unit_config.rbs +13 -0
- data/sig/orb/models/coupon_redemption.rbs +22 -0
- data/sig/orb/models/credit_note.rbs +8 -47
- data/sig/orb/models/credit_note_tiny.rbs +13 -0
- data/sig/orb/models/custom_expiration.rbs +36 -0
- data/sig/orb/models/customer.rbs +20 -471
- data/sig/orb/models/customer_create_params.rbs +27 -577
- data/sig/orb/models/customer_hierarchy_config.rbs +24 -0
- data/sig/orb/models/customer_minified.rbs +15 -0
- data/sig/orb/models/customer_tax_id.rbs +346 -0
- data/sig/orb/models/customer_update_by_external_id_params.rbs +27 -577
- data/sig/orb/models/customer_update_params.rbs +27 -577
- data/sig/orb/models/customers/balance_transaction_create_response.rbs +8 -28
- data/sig/orb/models/customers/balance_transaction_list_response.rbs +8 -28
- data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +4 -84
- data/sig/orb/models/customers/cost_list_response.rbs +4 -83
- data/sig/orb/models/customers/credits/affected_block.rbs +30 -0
- data/sig/orb/models/customers/credits/amendment_ledger_entry.rbs +105 -0
- data/sig/orb/models/customers/credits/credit_block_expiry_ledger_entry.rbs +107 -0
- data/sig/orb/models/customers/credits/decrement_ledger_entry.rbs +120 -0
- data/sig/orb/models/customers/credits/expiration_change_ledger_entry.rbs +110 -0
- data/sig/orb/models/customers/credits/increment_ledger_entry.rbs +110 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +7 -939
- data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +7 -939
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +7 -939
- data/sig/orb/models/customers/credits/ledger_list_response.rbs +7 -939
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +4 -38
- data/sig/orb/models/customers/credits/top_up_create_response.rbs +4 -38
- data/sig/orb/models/customers/credits/top_up_invoice_settings.rbs +41 -0
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +4 -38
- data/sig/orb/models/customers/credits/top_up_list_response.rbs +4 -38
- data/sig/orb/models/customers/credits/void_initiated_ledger_entry.rbs +120 -0
- data/sig/orb/models/customers/credits/void_ledger_entry.rbs +115 -0
- data/sig/orb/models/dimensional_price_configuration.rbs +22 -0
- data/sig/orb/models/discount_override.rbs +47 -0
- data/sig/orb/models/fixed_fee_quantity_schedule_entry.rbs +30 -0
- data/sig/orb/models/fixed_fee_quantity_transition.rbs +26 -0
- data/sig/orb/models/invoice.rbs +54 -1612
- data/sig/orb/models/invoice_create_params.rbs +4 -14
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +54 -1612
- data/sig/orb/models/invoice_line_item_create_response.rbs +18 -927
- data/sig/orb/models/invoice_tiny.rbs +13 -0
- data/sig/orb/models/item_slim.rbs +15 -0
- data/sig/orb/models/matrix_config.rbs +30 -0
- data/sig/orb/models/matrix_sub_line_item.rbs +55 -0
- data/sig/orb/models/matrix_value.rbs +22 -0
- data/sig/orb/models/matrix_with_allocation_config.rbs +35 -0
- data/sig/orb/models/maximum.rbs +30 -0
- data/sig/orb/models/maximum_interval.rbs +40 -0
- data/sig/orb/models/minimum.rbs +30 -0
- data/sig/orb/models/minimum_interval.rbs +40 -0
- data/sig/orb/models/monetary_amount_discount_adjustment.rbs +65 -0
- data/sig/orb/models/monetary_maximum_adjustment.rbs +65 -0
- data/sig/orb/models/monetary_minimum_adjustment.rbs +70 -0
- data/sig/orb/models/monetary_percentage_discount_adjustment.rbs +65 -0
- data/sig/orb/models/monetary_usage_discount_adjustment.rbs +65 -0
- data/sig/orb/models/mutated_subscription.rbs +178 -0
- data/sig/orb/models/new_accounting_sync_configuration.rbs +25 -0
- data/sig/orb/models/new_allocation_price.rbs +56 -0
- data/sig/orb/models/new_amount_discount.rbs +97 -0
- data/sig/orb/models/new_avalara_tax_configuration.rbs +40 -0
- data/sig/orb/models/new_billing_cycle_configuration.rbs +36 -0
- data/sig/orb/models/new_dimensional_price_configuration.rbs +30 -0
- data/sig/orb/models/new_floating_bps_price.rbs +135 -0
- data/sig/orb/models/new_floating_bulk_bps_price.rbs +135 -0
- data/sig/orb/models/new_floating_bulk_price.rbs +135 -0
- data/sig/orb/models/new_floating_bulk_with_proration_price.rbs +135 -0
- data/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +135 -0
- data/sig/orb/models/new_floating_grouped_allocation_price.rbs +135 -0
- data/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +135 -0
- data/sig/orb/models/new_floating_grouped_tiered_price.rbs +135 -0
- data/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +135 -0
- data/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +135 -0
- data/sig/orb/models/new_floating_matrix_price.rbs +135 -0
- data/sig/orb/models/new_floating_matrix_with_allocation_price.rbs +135 -0
- data/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +135 -0
- data/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +135 -0
- data/sig/orb/models/new_floating_package_price.rbs +135 -0
- data/sig/orb/models/new_floating_package_with_allocation_price.rbs +135 -0
- data/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +135 -0
- data/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +135 -0
- data/sig/orb/models/new_floating_threshold_total_amount_price.rbs +135 -0
- data/sig/orb/models/new_floating_tiered_bps_price.rbs +135 -0
- data/sig/orb/models/new_floating_tiered_package_price.rbs +135 -0
- data/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +135 -0
- data/sig/orb/models/new_floating_tiered_price.rbs +135 -0
- data/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +135 -0
- data/sig/orb/models/new_floating_tiered_with_proration_price.rbs +135 -0
- data/sig/orb/models/new_floating_unit_price.rbs +135 -0
- data/sig/orb/models/new_floating_unit_with_percent_price.rbs +135 -0
- data/sig/orb/models/new_floating_unit_with_proration_price.rbs +135 -0
- data/sig/orb/models/new_maximum.rbs +97 -0
- data/sig/orb/models/new_minimum.rbs +102 -0
- data/sig/orb/models/new_percentage_discount.rbs +97 -0
- data/sig/orb/models/new_plan_bps_price.rbs +135 -0
- data/sig/orb/models/new_plan_bulk_bps_price.rbs +135 -0
- data/sig/orb/models/new_plan_bulk_price.rbs +135 -0
- data/sig/orb/models/new_plan_bulk_with_proration_price.rbs +135 -0
- data/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +135 -0
- data/sig/orb/models/new_plan_grouped_allocation_price.rbs +135 -0
- data/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +135 -0
- data/sig/orb/models/new_plan_grouped_tiered_price.rbs +135 -0
- data/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +135 -0
- data/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +135 -0
- data/sig/orb/models/new_plan_matrix_price.rbs +135 -0
- data/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +135 -0
- data/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +135 -0
- data/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +135 -0
- data/sig/orb/models/new_plan_package_price.rbs +135 -0
- data/sig/orb/models/new_plan_package_with_allocation_price.rbs +135 -0
- data/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +135 -0
- data/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +135 -0
- data/sig/orb/models/new_plan_threshold_total_amount_price.rbs +135 -0
- data/sig/orb/models/new_plan_tier_with_proration_price.rbs +135 -0
- data/sig/orb/models/new_plan_tiered_bps_price.rbs +135 -0
- data/sig/orb/models/new_plan_tiered_package_price.rbs +135 -0
- data/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +135 -0
- data/sig/orb/models/new_plan_tiered_price.rbs +135 -0
- data/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +135 -0
- data/sig/orb/models/new_plan_unit_price.rbs +135 -0
- data/sig/orb/models/new_plan_unit_with_percent_price.rbs +135 -0
- data/sig/orb/models/new_plan_unit_with_proration_price.rbs +135 -0
- data/sig/orb/models/new_reporting_configuration.rbs +13 -0
- data/sig/orb/models/new_sphere_configuration.rbs +35 -0
- data/sig/orb/models/new_subscription_bps_price.rbs +140 -0
- data/sig/orb/models/new_subscription_bulk_bps_price.rbs +140 -0
- data/sig/orb/models/new_subscription_bulk_price.rbs +140 -0
- data/sig/orb/models/new_subscription_bulk_with_proration_price.rbs +140 -0
- data/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs +140 -0
- data/sig/orb/models/new_subscription_grouped_allocation_price.rbs +140 -0
- data/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs +140 -0
- data/sig/orb/models/new_subscription_grouped_tiered_price.rbs +140 -0
- data/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs +140 -0
- data/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs +140 -0
- data/sig/orb/models/new_subscription_matrix_price.rbs +140 -0
- data/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs +140 -0
- data/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs +140 -0
- data/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs +140 -0
- data/sig/orb/models/new_subscription_package_price.rbs +140 -0
- data/sig/orb/models/new_subscription_package_with_allocation_price.rbs +140 -0
- data/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs +140 -0
- data/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +140 -0
- data/sig/orb/models/new_subscription_threshold_total_amount_price.rbs +140 -0
- data/sig/orb/models/new_subscription_tier_with_proration_price.rbs +140 -0
- data/sig/orb/models/new_subscription_tiered_bps_price.rbs +140 -0
- data/sig/orb/models/new_subscription_tiered_package_price.rbs +140 -0
- data/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +140 -0
- data/sig/orb/models/new_subscription_tiered_price.rbs +140 -0
- data/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +140 -0
- data/sig/orb/models/new_subscription_unit_price.rbs +140 -0
- data/sig/orb/models/new_subscription_unit_with_percent_price.rbs +140 -0
- data/sig/orb/models/new_subscription_unit_with_proration_price.rbs +140 -0
- data/sig/orb/models/new_tax_jar_configuration.rbs +35 -0
- data/sig/orb/models/new_usage_discount.rbs +97 -0
- data/sig/orb/models/other_sub_line_item.rbs +50 -0
- data/sig/orb/models/package_config.rbs +15 -0
- data/sig/orb/models/per_price_cost.rbs +40 -0
- data/sig/orb/models/percentage_discount.rbs +4 -57
- data/sig/orb/models/percentage_discount_interval.rbs +55 -0
- data/sig/orb/models/plan.rbs +21 -871
- data/sig/orb/models/plan_create_params.rbs +28 -5952
- data/sig/orb/models/plan_phase_amount_discount_adjustment.rbs +65 -0
- data/sig/orb/models/plan_phase_maximum_adjustment.rbs +65 -0
- data/sig/orb/models/plan_phase_minimum_adjustment.rbs +70 -0
- data/sig/orb/models/plan_phase_percentage_discount_adjustment.rbs +65 -0
- data/sig/orb/models/plan_phase_usage_discount_adjustment.rbs +65 -0
- data/sig/orb/models/plan_version.rbs +5 -535
- data/sig/orb/models/price.rbs +2164 -11297
- data/sig/orb/models/price_create_params.rbs +58 -418
- data/sig/orb/models/price_evaluate_multiple_params.rbs +28 -6138
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +166 -0
- data/sig/orb/models/price_evaluate_preview_events_response.rbs +50 -0
- data/sig/orb/models/price_interval.rbs +65 -0
- data/sig/orb/models/sub_line_item_grouping.rbs +15 -0
- data/sig/orb/models/sub_line_item_matrix_config.rbs +13 -0
- data/sig/orb/models/subscription.rbs +39 -1274
- data/sig/orb/models/subscription_change_apply_response.rbs +4 -1467
- data/sig/orb/models/subscription_change_cancel_response.rbs +4 -1467
- data/sig/orb/models/subscription_change_minified.rbs +13 -0
- data/sig/orb/models/subscription_change_retrieve_response.rbs +4 -1467
- data/sig/orb/models/subscription_create_params.rbs +176 -14331
- data/sig/orb/models/subscription_fetch_costs_response.rbs +4 -82
- data/sig/orb/models/subscription_minified.rbs +13 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +61 -6945
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +178 -14333
- data/sig/orb/models/subscription_trial_info.rbs +13 -0
- data/sig/orb/models/tax_amount.rbs +30 -0
- data/sig/orb/models/threshold.rbs +13 -0
- data/sig/orb/models/tier.rbs +25 -0
- data/sig/orb/models/tier_config.rbs +26 -0
- data/sig/orb/models/tier_sub_line_item.rbs +55 -0
- data/sig/orb/models/tiered_bps_config.rbs +13 -0
- data/sig/orb/models/tiered_config.rbs +13 -0
- data/sig/orb/models/tiered_conversion_rate_config.rbs +35 -0
- data/sig/orb/models/transform_price_filter.rbs +56 -0
- data/sig/orb/models/trial_discount.rbs +4 -57
- data/sig/orb/models/unit_config.rbs +13 -0
- data/sig/orb/models/unit_conversion_rate_config.rbs +35 -0
- data/sig/orb/models/usage_discount.rbs +4 -57
- data/sig/orb/models/usage_discount_interval.rbs +55 -0
- data/sig/orb/models.rbs +342 -0
- data/sig/orb/resources/alerts.rbs +4 -4
- data/sig/orb/resources/customers.rbs +18 -18
- data/sig/orb/resources/prices.rbs +23 -13
- data/sig/orb/resources/subscriptions.rbs +13 -13
- metadata +545 -35
- data/lib/orb/models/subscription_cancel_response.rb +0 -1873
- data/lib/orb/models/subscription_create_response.rb +0 -1873
- data/lib/orb/models/subscription_price_intervals_response.rb +0 -1888
- data/lib/orb/models/subscription_redeem_coupon_response.rb +0 -1883
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +0 -1893
- data/lib/orb/models/subscription_trigger_phase_response.rb +0 -1883
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +0 -1897
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +0 -1912
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +0 -1908
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +0 -1897
- data/lib/orb/models/subscription_update_trial_response.rb +0 -1879
- data/rbi/orb/models/subscription_cancel_response.rbi +0 -3537
- data/rbi/orb/models/subscription_create_response.rbi +0 -3537
- data/rbi/orb/models/subscription_price_intervals_response.rbi +0 -3564
- data/rbi/orb/models/subscription_redeem_coupon_response.rbi +0 -3557
- data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +0 -3564
- data/rbi/orb/models/subscription_trigger_phase_response.rbi +0 -3557
- data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +0 -3566
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +0 -3566
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +0 -3566
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +0 -3566
- data/rbi/orb/models/subscription_update_trial_response.rbi +0 -3556
- data/sig/orb/models/subscription_cancel_response.rbs +0 -1445
- data/sig/orb/models/subscription_create_response.rbs +0 -1445
- data/sig/orb/models/subscription_price_intervals_response.rbs +0 -1445
- data/sig/orb/models/subscription_redeem_coupon_response.rbs +0 -1445
- data/sig/orb/models/subscription_schedule_plan_change_response.rbs +0 -1445
- data/sig/orb/models/subscription_trigger_phase_response.rbs +0 -1445
- data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +0 -1445
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +0 -1445
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +0 -1445
- data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +0 -1445
- data/sig/orb/models/subscription_update_trial_response.rbs +0 -1445
@@ -23,10 +23,8 @@ module Orb
|
|
23
23
|
|
24
24
|
# @!attribute accounting_sync_configuration
|
25
25
|
#
|
26
|
-
# @return [Orb::Models::
|
27
|
-
optional :accounting_sync_configuration,
|
28
|
-
-> { Orb::CustomerCreateParams::AccountingSyncConfiguration },
|
29
|
-
nil?: true
|
26
|
+
# @return [Orb::Models::NewAccountingSyncConfiguration, nil]
|
27
|
+
optional :accounting_sync_configuration, -> { Orb::NewAccountingSyncConfiguration }, nil?: true
|
30
28
|
|
31
29
|
# @!attribute additional_emails
|
32
30
|
# Additional email addresses for this customer. If populated, these email
|
@@ -45,8 +43,8 @@ module Orb
|
|
45
43
|
|
46
44
|
# @!attribute billing_address
|
47
45
|
#
|
48
|
-
# @return [Orb::Models::
|
49
|
-
optional :billing_address, -> { Orb::
|
46
|
+
# @return [Orb::Models::AddressInput, nil]
|
47
|
+
optional :billing_address, -> { Orb::AddressInput }, nil?: true
|
50
48
|
|
51
49
|
# @!attribute currency
|
52
50
|
# An ISO 4217 currency string used for the customer's invoices and balance. If not
|
@@ -71,8 +69,8 @@ module Orb
|
|
71
69
|
# @!attribute hierarchy
|
72
70
|
# The hierarchical relationships for this customer.
|
73
71
|
#
|
74
|
-
# @return [Orb::Models::
|
75
|
-
optional :hierarchy, -> { Orb::
|
72
|
+
# @return [Orb::Models::CustomerHierarchyConfig, nil]
|
73
|
+
optional :hierarchy, -> { Orb::CustomerHierarchyConfig }, nil?: true
|
76
74
|
|
77
75
|
# @!attribute metadata
|
78
76
|
# User-specified key/value pairs for the resource. Individual keys can be removed
|
@@ -99,17 +97,17 @@ module Orb
|
|
99
97
|
|
100
98
|
# @!attribute reporting_configuration
|
101
99
|
#
|
102
|
-
# @return [Orb::Models::
|
103
|
-
optional :reporting_configuration, -> { Orb::
|
100
|
+
# @return [Orb::Models::NewReportingConfiguration, nil]
|
101
|
+
optional :reporting_configuration, -> { Orb::NewReportingConfiguration }, nil?: true
|
104
102
|
|
105
103
|
# @!attribute shipping_address
|
106
104
|
#
|
107
|
-
# @return [Orb::Models::
|
108
|
-
optional :shipping_address, -> { Orb::
|
105
|
+
# @return [Orb::Models::AddressInput, nil]
|
106
|
+
optional :shipping_address, -> { Orb::AddressInput }, nil?: true
|
109
107
|
|
110
108
|
# @!attribute tax_configuration
|
111
109
|
#
|
112
|
-
# @return [Orb::Models::
|
110
|
+
# @return [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil]
|
113
111
|
optional :tax_configuration, union: -> { Orb::CustomerCreateParams::TaxConfiguration }, nil?: true
|
114
112
|
|
115
113
|
# @!attribute tax_id
|
@@ -219,8 +217,8 @@ module Orb
|
|
219
217
|
# | Venezuela | `ve_rif` | Venezuelan RIF Number |
|
220
218
|
# | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
|
221
219
|
#
|
222
|
-
# @return [Orb::Models::
|
223
|
-
optional :tax_id, -> { Orb::
|
220
|
+
# @return [Orb::Models::CustomerTaxID, nil]
|
221
|
+
optional :tax_id, -> { Orb::CustomerTaxID }, nil?: true
|
224
222
|
|
225
223
|
# @!attribute timezone
|
226
224
|
# A timezone identifier from the IANA timezone database, such as
|
@@ -238,13 +236,13 @@ module Orb
|
|
238
236
|
#
|
239
237
|
# @param name [String] The full name of the customer
|
240
238
|
#
|
241
|
-
# @param accounting_sync_configuration [Orb::Models::
|
239
|
+
# @param accounting_sync_configuration [Orb::Models::NewAccountingSyncConfiguration, nil]
|
242
240
|
#
|
243
241
|
# @param additional_emails [Array<String>, nil] Additional email addresses for this customer. If populated, these email addresse
|
244
242
|
#
|
245
243
|
# @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch
|
246
244
|
#
|
247
|
-
# @param billing_address [Orb::Models::
|
245
|
+
# @param billing_address [Orb::Models::AddressInput, nil]
|
248
246
|
#
|
249
247
|
# @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not
|
250
248
|
#
|
@@ -252,7 +250,7 @@ module Orb
|
|
252
250
|
#
|
253
251
|
# @param external_customer_id [String, nil] An optional user-defined ID for this customer resource, used throughout the syst
|
254
252
|
#
|
255
|
-
# @param hierarchy [Orb::Models::
|
253
|
+
# @param hierarchy [Orb::Models::CustomerHierarchyConfig, nil] The hierarchical relationships for this customer.
|
256
254
|
#
|
257
255
|
# @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed
|
258
256
|
#
|
@@ -260,120 +258,18 @@ module Orb
|
|
260
258
|
#
|
261
259
|
# @param payment_provider_id [String, nil] The ID of this customer in an external payments solution, such as Stripe. This i
|
262
260
|
#
|
263
|
-
# @param reporting_configuration [Orb::Models::
|
261
|
+
# @param reporting_configuration [Orb::Models::NewReportingConfiguration, nil]
|
264
262
|
#
|
265
|
-
# @param shipping_address [Orb::Models::
|
263
|
+
# @param shipping_address [Orb::Models::AddressInput, nil]
|
266
264
|
#
|
267
|
-
# @param tax_configuration [Orb::Models::
|
265
|
+
# @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil]
|
268
266
|
#
|
269
|
-
# @param tax_id [Orb::Models::
|
267
|
+
# @param tax_id [Orb::Models::CustomerTaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad
|
270
268
|
#
|
271
269
|
# @param timezone [String, nil] A timezone identifier from the IANA timezone database, such as `"America/Los_Ang
|
272
270
|
#
|
273
271
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
274
272
|
|
275
|
-
class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel
|
276
|
-
# @!attribute accounting_providers
|
277
|
-
#
|
278
|
-
# @return [Array<Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider>, nil]
|
279
|
-
optional :accounting_providers,
|
280
|
-
-> {
|
281
|
-
Orb::Internal::Type::ArrayOf[Orb::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]
|
282
|
-
},
|
283
|
-
nil?: true
|
284
|
-
|
285
|
-
# @!attribute excluded
|
286
|
-
#
|
287
|
-
# @return [Boolean, nil]
|
288
|
-
optional :excluded, Orb::Internal::Type::Boolean, nil?: true
|
289
|
-
|
290
|
-
# @!method initialize(accounting_providers: nil, excluded: nil)
|
291
|
-
# @param accounting_providers [Array<Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider>, nil]
|
292
|
-
# @param excluded [Boolean, nil]
|
293
|
-
|
294
|
-
class AccountingProvider < Orb::Internal::Type::BaseModel
|
295
|
-
# @!attribute external_provider_id
|
296
|
-
#
|
297
|
-
# @return [String]
|
298
|
-
required :external_provider_id, String
|
299
|
-
|
300
|
-
# @!attribute provider_type
|
301
|
-
#
|
302
|
-
# @return [String]
|
303
|
-
required :provider_type, String
|
304
|
-
|
305
|
-
# @!method initialize(external_provider_id:, provider_type:)
|
306
|
-
# @param external_provider_id [String]
|
307
|
-
# @param provider_type [String]
|
308
|
-
end
|
309
|
-
end
|
310
|
-
|
311
|
-
class BillingAddress < Orb::Internal::Type::BaseModel
|
312
|
-
# @!attribute city
|
313
|
-
#
|
314
|
-
# @return [String, nil]
|
315
|
-
optional :city, String, nil?: true
|
316
|
-
|
317
|
-
# @!attribute country
|
318
|
-
#
|
319
|
-
# @return [String, nil]
|
320
|
-
optional :country, String, nil?: true
|
321
|
-
|
322
|
-
# @!attribute line1
|
323
|
-
#
|
324
|
-
# @return [String, nil]
|
325
|
-
optional :line1, String, nil?: true
|
326
|
-
|
327
|
-
# @!attribute line2
|
328
|
-
#
|
329
|
-
# @return [String, nil]
|
330
|
-
optional :line2, String, nil?: true
|
331
|
-
|
332
|
-
# @!attribute postal_code
|
333
|
-
#
|
334
|
-
# @return [String, nil]
|
335
|
-
optional :postal_code, String, nil?: true
|
336
|
-
|
337
|
-
# @!attribute state
|
338
|
-
#
|
339
|
-
# @return [String, nil]
|
340
|
-
optional :state, String, nil?: true
|
341
|
-
|
342
|
-
# @!method initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil)
|
343
|
-
# @param city [String, nil]
|
344
|
-
# @param country [String, nil]
|
345
|
-
# @param line1 [String, nil]
|
346
|
-
# @param line2 [String, nil]
|
347
|
-
# @param postal_code [String, nil]
|
348
|
-
# @param state [String, nil]
|
349
|
-
end
|
350
|
-
|
351
|
-
class Hierarchy < Orb::Internal::Type::BaseModel
|
352
|
-
# @!attribute child_customer_ids
|
353
|
-
# A list of child customer IDs to add to the hierarchy. The desired child
|
354
|
-
# customers must not already be part of another hierarchy.
|
355
|
-
#
|
356
|
-
# @return [Array<String>, nil]
|
357
|
-
optional :child_customer_ids, Orb::Internal::Type::ArrayOf[String]
|
358
|
-
|
359
|
-
# @!attribute parent_customer_id
|
360
|
-
# The ID of the parent customer in the hierarchy. The desired parent customer must
|
361
|
-
# not be a child of another customer.
|
362
|
-
#
|
363
|
-
# @return [String, nil]
|
364
|
-
optional :parent_customer_id, String, nil?: true
|
365
|
-
|
366
|
-
# @!method initialize(child_customer_ids: nil, parent_customer_id: nil)
|
367
|
-
# Some parameter documentations has been truncated, see
|
368
|
-
# {Orb::Models::CustomerCreateParams::Hierarchy} for more details.
|
369
|
-
#
|
370
|
-
# The hierarchical relationships for this customer.
|
371
|
-
#
|
372
|
-
# @param child_customer_ids [Array<String>] A list of child customer IDs to add to the hierarchy. The desired child customer
|
373
|
-
#
|
374
|
-
# @param parent_customer_id [String, nil] The ID of the parent customer in the hierarchy. The desired parent customer must
|
375
|
-
end
|
376
|
-
|
377
273
|
# This is used for creating charges or invoices in an external system via Orb.
|
378
274
|
# When not in test mode, the connection must first be configured in the Orb
|
379
275
|
# webapp.
|
@@ -390,418 +286,19 @@ module Orb
|
|
390
286
|
# @return [Array<Symbol>]
|
391
287
|
end
|
392
288
|
|
393
|
-
class ReportingConfiguration < Orb::Internal::Type::BaseModel
|
394
|
-
# @!attribute exempt
|
395
|
-
#
|
396
|
-
# @return [Boolean]
|
397
|
-
required :exempt, Orb::Internal::Type::Boolean
|
398
|
-
|
399
|
-
# @!method initialize(exempt:)
|
400
|
-
# @param exempt [Boolean]
|
401
|
-
end
|
402
|
-
|
403
|
-
class ShippingAddress < Orb::Internal::Type::BaseModel
|
404
|
-
# @!attribute city
|
405
|
-
#
|
406
|
-
# @return [String, nil]
|
407
|
-
optional :city, String, nil?: true
|
408
|
-
|
409
|
-
# @!attribute country
|
410
|
-
#
|
411
|
-
# @return [String, nil]
|
412
|
-
optional :country, String, nil?: true
|
413
|
-
|
414
|
-
# @!attribute line1
|
415
|
-
#
|
416
|
-
# @return [String, nil]
|
417
|
-
optional :line1, String, nil?: true
|
418
|
-
|
419
|
-
# @!attribute line2
|
420
|
-
#
|
421
|
-
# @return [String, nil]
|
422
|
-
optional :line2, String, nil?: true
|
423
|
-
|
424
|
-
# @!attribute postal_code
|
425
|
-
#
|
426
|
-
# @return [String, nil]
|
427
|
-
optional :postal_code, String, nil?: true
|
428
|
-
|
429
|
-
# @!attribute state
|
430
|
-
#
|
431
|
-
# @return [String, nil]
|
432
|
-
optional :state, String, nil?: true
|
433
|
-
|
434
|
-
# @!method initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil)
|
435
|
-
# @param city [String, nil]
|
436
|
-
# @param country [String, nil]
|
437
|
-
# @param line1 [String, nil]
|
438
|
-
# @param line2 [String, nil]
|
439
|
-
# @param postal_code [String, nil]
|
440
|
-
# @param state [String, nil]
|
441
|
-
end
|
442
|
-
|
443
289
|
module TaxConfiguration
|
444
290
|
extend Orb::Internal::Type::Union
|
445
291
|
|
446
292
|
discriminator :tax_provider
|
447
293
|
|
448
|
-
variant :avalara, -> { Orb::
|
449
|
-
|
450
|
-
variant :taxjar, -> { Orb::CustomerCreateParams::TaxConfiguration::Taxjar }
|
451
|
-
|
452
|
-
variant :sphere, -> { Orb::CustomerCreateParams::TaxConfiguration::Sphere }
|
453
|
-
|
454
|
-
class Avalara < Orb::Internal::Type::BaseModel
|
455
|
-
# @!attribute tax_exempt
|
456
|
-
#
|
457
|
-
# @return [Boolean]
|
458
|
-
required :tax_exempt, Orb::Internal::Type::Boolean
|
459
|
-
|
460
|
-
# @!attribute tax_provider
|
461
|
-
#
|
462
|
-
# @return [Symbol, :avalara]
|
463
|
-
required :tax_provider, const: :avalara
|
464
|
-
|
465
|
-
# @!attribute tax_exemption_code
|
466
|
-
#
|
467
|
-
# @return [String, nil]
|
468
|
-
optional :tax_exemption_code, String, nil?: true
|
469
|
-
|
470
|
-
# @!method initialize(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara)
|
471
|
-
# @param tax_exempt [Boolean]
|
472
|
-
# @param tax_exemption_code [String, nil]
|
473
|
-
# @param tax_provider [Symbol, :avalara]
|
474
|
-
end
|
475
|
-
|
476
|
-
class Taxjar < Orb::Internal::Type::BaseModel
|
477
|
-
# @!attribute tax_exempt
|
478
|
-
#
|
479
|
-
# @return [Boolean]
|
480
|
-
required :tax_exempt, Orb::Internal::Type::Boolean
|
481
|
-
|
482
|
-
# @!attribute tax_provider
|
483
|
-
#
|
484
|
-
# @return [Symbol, :taxjar]
|
485
|
-
required :tax_provider, const: :taxjar
|
486
|
-
|
487
|
-
# @!method initialize(tax_exempt:, tax_provider: :taxjar)
|
488
|
-
# @param tax_exempt [Boolean]
|
489
|
-
# @param tax_provider [Symbol, :taxjar]
|
490
|
-
end
|
294
|
+
variant :avalara, -> { Orb::NewAvalaraTaxConfiguration }
|
491
295
|
|
492
|
-
|
493
|
-
# @!attribute tax_exempt
|
494
|
-
#
|
495
|
-
# @return [Boolean]
|
496
|
-
required :tax_exempt, Orb::Internal::Type::Boolean
|
296
|
+
variant :taxjar, -> { Orb::NewTaxJarConfiguration }
|
497
297
|
|
498
|
-
|
499
|
-
#
|
500
|
-
# @return [Symbol, :sphere]
|
501
|
-
required :tax_provider, const: :sphere
|
502
|
-
|
503
|
-
# @!method initialize(tax_exempt:, tax_provider: :sphere)
|
504
|
-
# @param tax_exempt [Boolean]
|
505
|
-
# @param tax_provider [Symbol, :sphere]
|
506
|
-
end
|
298
|
+
variant :sphere, -> { Orb::NewSphereConfiguration }
|
507
299
|
|
508
300
|
# @!method self.variants
|
509
|
-
# @return [Array(Orb::Models::
|
510
|
-
end
|
511
|
-
|
512
|
-
class TaxID < Orb::Internal::Type::BaseModel
|
513
|
-
# @!attribute country
|
514
|
-
#
|
515
|
-
# @return [Symbol, Orb::Models::CustomerCreateParams::TaxID::Country]
|
516
|
-
required :country, enum: -> { Orb::CustomerCreateParams::TaxID::Country }
|
517
|
-
|
518
|
-
# @!attribute type
|
519
|
-
#
|
520
|
-
# @return [Symbol, Orb::Models::CustomerCreateParams::TaxID::Type]
|
521
|
-
required :type, enum: -> { Orb::CustomerCreateParams::TaxID::Type }
|
522
|
-
|
523
|
-
# @!attribute value
|
524
|
-
#
|
525
|
-
# @return [String]
|
526
|
-
required :value, String
|
527
|
-
|
528
|
-
# @!method initialize(country:, type:, value:)
|
529
|
-
# Tax IDs are commonly required to be displayed on customer invoices, which are
|
530
|
-
# added to the headers of invoices.
|
531
|
-
#
|
532
|
-
# ### Supported Tax ID Countries and Types
|
533
|
-
#
|
534
|
-
# | Country | Type | Description |
|
535
|
-
# | -------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
|
536
|
-
# | Andorra | `ad_nrt` | Andorran NRT Number |
|
537
|
-
# | Argentina | `ar_cuit` | Argentinian Tax ID Number |
|
538
|
-
# | Australia | `au_abn` | Australian Business Number (AU ABN) |
|
539
|
-
# | Australia | `au_arn` | Australian Taxation Office Reference Number |
|
540
|
-
# | Austria | `eu_vat` | European VAT Number |
|
541
|
-
# | Bahrain | `bh_vat` | Bahraini VAT Number |
|
542
|
-
# | Belgium | `eu_vat` | European VAT Number |
|
543
|
-
# | Bolivia | `bo_tin` | Bolivian Tax ID |
|
544
|
-
# | Brazil | `br_cnpj` | Brazilian CNPJ Number |
|
545
|
-
# | Brazil | `br_cpf` | Brazilian CPF Number |
|
546
|
-
# | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
|
547
|
-
# | Bulgaria | `eu_vat` | European VAT Number |
|
548
|
-
# | Canada | `ca_bn` | Canadian BN |
|
549
|
-
# | Canada | `ca_gst_hst` | Canadian GST/HST Number |
|
550
|
-
# | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
|
551
|
-
# | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
|
552
|
-
# | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
|
553
|
-
# | Canada | `ca_qst` | Canadian QST Number (Québec) |
|
554
|
-
# | Chile | `cl_tin` | Chilean TIN |
|
555
|
-
# | China | `cn_tin` | Chinese Tax ID |
|
556
|
-
# | Colombia | `co_nit` | Colombian NIT Number |
|
557
|
-
# | Costa Rica | `cr_tin` | Costa Rican Tax ID |
|
558
|
-
# | Croatia | `eu_vat` | European VAT Number |
|
559
|
-
# | Cyprus | `eu_vat` | European VAT Number |
|
560
|
-
# | Czech Republic | `eu_vat` | European VAT Number |
|
561
|
-
# | Denmark | `eu_vat` | European VAT Number |
|
562
|
-
# | Dominican Republic | `do_rcn` | Dominican RCN Number |
|
563
|
-
# | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
|
564
|
-
# | Egypt | `eg_tin` | Egyptian Tax Identification Number |
|
565
|
-
# | El Salvador | `sv_nit` | El Salvadorian NIT Number |
|
566
|
-
# | Estonia | `eu_vat` | European VAT Number |
|
567
|
-
# | EU | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
|
568
|
-
# | Finland | `eu_vat` | European VAT Number |
|
569
|
-
# | France | `eu_vat` | European VAT Number |
|
570
|
-
# | Georgia | `ge_vat` | Georgian VAT |
|
571
|
-
# | Germany | `eu_vat` | European VAT Number |
|
572
|
-
# | Greece | `eu_vat` | European VAT Number |
|
573
|
-
# | Hong Kong | `hk_br` | Hong Kong BR Number |
|
574
|
-
# | Hungary | `eu_vat` | European VAT Number |
|
575
|
-
# | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
|
576
|
-
# | Iceland | `is_vat` | Icelandic VAT |
|
577
|
-
# | India | `in_gst` | Indian GST Number |
|
578
|
-
# | Indonesia | `id_npwp` | Indonesian NPWP Number |
|
579
|
-
# | Ireland | `eu_vat` | European VAT Number |
|
580
|
-
# | Israel | `il_vat` | Israel VAT |
|
581
|
-
# | Italy | `eu_vat` | European VAT Number |
|
582
|
-
# | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
|
583
|
-
# | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
|
584
|
-
# | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
|
585
|
-
# | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
|
586
|
-
# | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
|
587
|
-
# | Latvia | `eu_vat` | European VAT Number |
|
588
|
-
# | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
|
589
|
-
# | Lithuania | `eu_vat` | European VAT Number |
|
590
|
-
# | Luxembourg | `eu_vat` | European VAT Number |
|
591
|
-
# | Malaysia | `my_frp` | Malaysian FRP Number |
|
592
|
-
# | Malaysia | `my_itn` | Malaysian ITN |
|
593
|
-
# | Malaysia | `my_sst` | Malaysian SST Number |
|
594
|
-
# | Malta | `eu_vat ` | European VAT Number |
|
595
|
-
# | Mexico | `mx_rfc` | Mexican RFC Number |
|
596
|
-
# | Netherlands | `eu_vat` | European VAT Number |
|
597
|
-
# | New Zealand | `nz_gst` | New Zealand GST Number |
|
598
|
-
# | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
|
599
|
-
# | Norway | `no_vat` | Norwegian VAT Number |
|
600
|
-
# | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
|
601
|
-
# | Oman | `om_vat` | Omani VAT Number |
|
602
|
-
# | Peru | `pe_ruc` | Peruvian RUC Number |
|
603
|
-
# | Philippines | `ph_tin ` | Philippines Tax Identification Number |
|
604
|
-
# | Poland | `eu_vat` | European VAT Number |
|
605
|
-
# | Portugal | `eu_vat` | European VAT Number |
|
606
|
-
# | Romania | `eu_vat` | European VAT Number |
|
607
|
-
# | Romania | `ro_tin` | Romanian Tax ID Number |
|
608
|
-
# | Russia | `ru_inn` | Russian INN |
|
609
|
-
# | Russia | `ru_kpp` | Russian KPP |
|
610
|
-
# | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
|
611
|
-
# | Serbia | `rs_pib` | Serbian PIB Number |
|
612
|
-
# | Singapore | `sg_gst` | Singaporean GST |
|
613
|
-
# | Singapore | `sg_uen` | Singaporean UEN |
|
614
|
-
# | Slovakia | `eu_vat` | European VAT Number |
|
615
|
-
# | Slovenia | `eu_vat` | European VAT Number |
|
616
|
-
# | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
|
617
|
-
# | South Africa | `za_vat` | South African VAT Number |
|
618
|
-
# | South Korea | `kr_brn` | Korean BRN |
|
619
|
-
# | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
|
620
|
-
# | Spain | `eu_vat` | European VAT Number |
|
621
|
-
# | Sweden | `eu_vat` | European VAT Number |
|
622
|
-
# | Switzerland | `ch_vat` | Switzerland VAT Number |
|
623
|
-
# | Taiwan | `tw_vat` | Taiwanese VAT |
|
624
|
-
# | Thailand | `th_vat` | Thai VAT |
|
625
|
-
# | Turkey | `tr_tin` | Turkish Tax Identification Number |
|
626
|
-
# | Ukraine | `ua_vat` | Ukrainian VAT |
|
627
|
-
# | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
|
628
|
-
# | United Kingdom | `eu_vat` | Northern Ireland VAT Number |
|
629
|
-
# | United Kingdom | `gb_vat` | United Kingdom VAT Number |
|
630
|
-
# | United States | `us_ein` | United States EIN |
|
631
|
-
# | Uruguay | `uy_ruc` | Uruguayan RUC Number |
|
632
|
-
# | Venezuela | `ve_rif` | Venezuelan RIF Number |
|
633
|
-
# | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
|
634
|
-
#
|
635
|
-
# @param country [Symbol, Orb::Models::CustomerCreateParams::TaxID::Country]
|
636
|
-
# @param type [Symbol, Orb::Models::CustomerCreateParams::TaxID::Type]
|
637
|
-
# @param value [String]
|
638
|
-
|
639
|
-
# @see Orb::Models::CustomerCreateParams::TaxID#country
|
640
|
-
module Country
|
641
|
-
extend Orb::Internal::Type::Enum
|
642
|
-
|
643
|
-
AD = :AD
|
644
|
-
AE = :AE
|
645
|
-
AR = :AR
|
646
|
-
AT = :AT
|
647
|
-
AU = :AU
|
648
|
-
BE = :BE
|
649
|
-
BG = :BG
|
650
|
-
BH = :BH
|
651
|
-
BO = :BO
|
652
|
-
BR = :BR
|
653
|
-
CA = :CA
|
654
|
-
CH = :CH
|
655
|
-
CL = :CL
|
656
|
-
CN = :CN
|
657
|
-
CO = :CO
|
658
|
-
CR = :CR
|
659
|
-
CY = :CY
|
660
|
-
CZ = :CZ
|
661
|
-
DE = :DE
|
662
|
-
DK = :DK
|
663
|
-
EE = :EE
|
664
|
-
DO = :DO
|
665
|
-
EC = :EC
|
666
|
-
EG = :EG
|
667
|
-
ES = :ES
|
668
|
-
EU = :EU
|
669
|
-
FI = :FI
|
670
|
-
FR = :FR
|
671
|
-
GB = :GB
|
672
|
-
GE = :GE
|
673
|
-
GR = :GR
|
674
|
-
HK = :HK
|
675
|
-
HR = :HR
|
676
|
-
HU = :HU
|
677
|
-
ID = :ID
|
678
|
-
IE = :IE
|
679
|
-
IL = :IL
|
680
|
-
IN = :IN
|
681
|
-
IS = :IS
|
682
|
-
IT = :IT
|
683
|
-
JP = :JP
|
684
|
-
KE = :KE
|
685
|
-
KR = :KR
|
686
|
-
KZ = :KZ
|
687
|
-
LI = :LI
|
688
|
-
LT = :LT
|
689
|
-
LU = :LU
|
690
|
-
LV = :LV
|
691
|
-
MT = :MT
|
692
|
-
MX = :MX
|
693
|
-
MY = :MY
|
694
|
-
NG = :NG
|
695
|
-
NL = :NL
|
696
|
-
NO = :NO
|
697
|
-
NZ = :NZ
|
698
|
-
OM = :OM
|
699
|
-
PE = :PE
|
700
|
-
PH = :PH
|
701
|
-
PL = :PL
|
702
|
-
PT = :PT
|
703
|
-
RO = :RO
|
704
|
-
RS = :RS
|
705
|
-
RU = :RU
|
706
|
-
SA = :SA
|
707
|
-
SE = :SE
|
708
|
-
SG = :SG
|
709
|
-
SI = :SI
|
710
|
-
SK = :SK
|
711
|
-
SV = :SV
|
712
|
-
TH = :TH
|
713
|
-
TR = :TR
|
714
|
-
TW = :TW
|
715
|
-
UA = :UA
|
716
|
-
US = :US
|
717
|
-
UY = :UY
|
718
|
-
VE = :VE
|
719
|
-
VN = :VN
|
720
|
-
ZA = :ZA
|
721
|
-
|
722
|
-
# @!method self.values
|
723
|
-
# @return [Array<Symbol>]
|
724
|
-
end
|
725
|
-
|
726
|
-
# @see Orb::Models::CustomerCreateParams::TaxID#type
|
727
|
-
module Type
|
728
|
-
extend Orb::Internal::Type::Enum
|
729
|
-
|
730
|
-
AD_NRT = :ad_nrt
|
731
|
-
AE_TRN = :ae_trn
|
732
|
-
AR_CUIT = :ar_cuit
|
733
|
-
EU_VAT = :eu_vat
|
734
|
-
AU_ABN = :au_abn
|
735
|
-
AU_ARN = :au_arn
|
736
|
-
BG_UIC = :bg_uic
|
737
|
-
BH_VAT = :bh_vat
|
738
|
-
BO_TIN = :bo_tin
|
739
|
-
BR_CNPJ = :br_cnpj
|
740
|
-
BR_CPF = :br_cpf
|
741
|
-
CA_BN = :ca_bn
|
742
|
-
CA_GST_HST = :ca_gst_hst
|
743
|
-
CA_PST_BC = :ca_pst_bc
|
744
|
-
CA_PST_MB = :ca_pst_mb
|
745
|
-
CA_PST_SK = :ca_pst_sk
|
746
|
-
CA_QST = :ca_qst
|
747
|
-
CH_VAT = :ch_vat
|
748
|
-
CL_TIN = :cl_tin
|
749
|
-
CN_TIN = :cn_tin
|
750
|
-
CO_NIT = :co_nit
|
751
|
-
CR_TIN = :cr_tin
|
752
|
-
DO_RCN = :do_rcn
|
753
|
-
EC_RUC = :ec_ruc
|
754
|
-
EG_TIN = :eg_tin
|
755
|
-
ES_CIF = :es_cif
|
756
|
-
EU_OSS_VAT = :eu_oss_vat
|
757
|
-
GB_VAT = :gb_vat
|
758
|
-
GE_VAT = :ge_vat
|
759
|
-
HK_BR = :hk_br
|
760
|
-
HU_TIN = :hu_tin
|
761
|
-
ID_NPWP = :id_npwp
|
762
|
-
IL_VAT = :il_vat
|
763
|
-
IN_GST = :in_gst
|
764
|
-
IS_VAT = :is_vat
|
765
|
-
JP_CN = :jp_cn
|
766
|
-
JP_RN = :jp_rn
|
767
|
-
JP_TRN = :jp_trn
|
768
|
-
KE_PIN = :ke_pin
|
769
|
-
KR_BRN = :kr_brn
|
770
|
-
KZ_BIN = :kz_bin
|
771
|
-
LI_UID = :li_uid
|
772
|
-
MX_RFC = :mx_rfc
|
773
|
-
MY_FRP = :my_frp
|
774
|
-
MY_ITN = :my_itn
|
775
|
-
MY_SST = :my_sst
|
776
|
-
NG_TIN = :ng_tin
|
777
|
-
NO_VAT = :no_vat
|
778
|
-
NO_VOEC = :no_voec
|
779
|
-
NZ_GST = :nz_gst
|
780
|
-
OM_VAT = :om_vat
|
781
|
-
PE_RUC = :pe_ruc
|
782
|
-
PH_TIN = :ph_tin
|
783
|
-
RO_TIN = :ro_tin
|
784
|
-
RS_PIB = :rs_pib
|
785
|
-
RU_INN = :ru_inn
|
786
|
-
RU_KPP = :ru_kpp
|
787
|
-
SA_VAT = :sa_vat
|
788
|
-
SG_GST = :sg_gst
|
789
|
-
SG_UEN = :sg_uen
|
790
|
-
SI_TIN = :si_tin
|
791
|
-
SV_NIT = :sv_nit
|
792
|
-
TH_VAT = :th_vat
|
793
|
-
TR_TIN = :tr_tin
|
794
|
-
TW_VAT = :tw_vat
|
795
|
-
UA_VAT = :ua_vat
|
796
|
-
US_EIN = :us_ein
|
797
|
-
UY_RUC = :uy_ruc
|
798
|
-
VE_RIF = :ve_rif
|
799
|
-
VN_TIN = :vn_tin
|
800
|
-
ZA_VAT = :za_vat
|
801
|
-
|
802
|
-
# @!method self.values
|
803
|
-
# @return [Array<Symbol>]
|
804
|
-
end
|
301
|
+
# @return [Array(Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration)]
|
805
302
|
end
|
806
303
|
end
|
807
304
|
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Orb
|
4
|
+
module Models
|
5
|
+
class CustomerHierarchyConfig < Orb::Internal::Type::BaseModel
|
6
|
+
# @!attribute child_customer_ids
|
7
|
+
# A list of child customer IDs to add to the hierarchy. The desired child
|
8
|
+
# customers must not already be part of another hierarchy.
|
9
|
+
#
|
10
|
+
# @return [Array<String>, nil]
|
11
|
+
optional :child_customer_ids, Orb::Internal::Type::ArrayOf[String]
|
12
|
+
|
13
|
+
# @!attribute parent_customer_id
|
14
|
+
# The ID of the parent customer in the hierarchy. The desired parent customer must
|
15
|
+
# not be a child of another customer.
|
16
|
+
#
|
17
|
+
# @return [String, nil]
|
18
|
+
optional :parent_customer_id, String, nil?: true
|
19
|
+
|
20
|
+
# @!method initialize(child_customer_ids: nil, parent_customer_id: nil)
|
21
|
+
# Some parameter documentations has been truncated, see
|
22
|
+
# {Orb::Models::CustomerHierarchyConfig} for more details.
|
23
|
+
#
|
24
|
+
# @param child_customer_ids [Array<String>] A list of child customer IDs to add to the hierarchy. The desired child customer
|
25
|
+
#
|
26
|
+
# @param parent_customer_id [String, nil] The ID of the parent customer in the hierarchy. The desired parent customer must
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|