orb-billing 0.12.0 → 1.0.1
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 +28 -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
@@ -30,21 +30,10 @@ module Orb
|
|
30
30
|
end
|
31
31
|
attr_writer :auto_collection
|
32
32
|
|
33
|
-
sig
|
34
|
-
returns(
|
35
|
-
T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress)
|
36
|
-
)
|
37
|
-
end
|
33
|
+
sig { returns(T.nilable(Orb::Address)) }
|
38
34
|
attr_reader :billing_address
|
39
35
|
|
40
|
-
sig
|
41
|
-
params(
|
42
|
-
billing_address:
|
43
|
-
T.nilable(
|
44
|
-
Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress::OrHash
|
45
|
-
)
|
46
|
-
).void
|
47
|
-
end
|
36
|
+
sig { params(billing_address: T.nilable(Orb::Address::OrHash)).void }
|
48
37
|
attr_writer :billing_address
|
49
38
|
|
50
39
|
# The creation time of the resource in Orb.
|
@@ -61,14 +50,10 @@ module Orb
|
|
61
50
|
sig { returns(String) }
|
62
51
|
attr_accessor :currency
|
63
52
|
|
64
|
-
sig { returns(Orb::
|
53
|
+
sig { returns(Orb::CustomerMinified) }
|
65
54
|
attr_reader :customer
|
66
55
|
|
67
|
-
sig
|
68
|
-
params(
|
69
|
-
customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer::OrHash
|
70
|
-
).void
|
71
|
-
end
|
56
|
+
sig { params(customer: Orb::CustomerMinified::OrHash).void }
|
72
57
|
attr_writer :customer
|
73
58
|
|
74
59
|
sig do
|
@@ -185,20 +170,11 @@ module Orb
|
|
185
170
|
# | Uruguay | `uy_ruc` | Uruguayan RUC Number |
|
186
171
|
# | Venezuela | `ve_rif` | Venezuelan RIF Number |
|
187
172
|
# | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
|
188
|
-
sig
|
189
|
-
returns(
|
190
|
-
T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID)
|
191
|
-
)
|
192
|
-
end
|
173
|
+
sig { returns(T.nilable(Orb::CustomerTaxID)) }
|
193
174
|
attr_reader :customer_tax_id
|
194
175
|
|
195
176
|
sig do
|
196
|
-
params(
|
197
|
-
customer_tax_id:
|
198
|
-
T.nilable(
|
199
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::OrHash
|
200
|
-
)
|
201
|
-
).void
|
177
|
+
params(customer_tax_id: T.nilable(Orb::CustomerTaxID::OrHash)).void
|
202
178
|
end
|
203
179
|
attr_writer :customer_tax_id
|
204
180
|
|
@@ -260,19 +236,10 @@ module Orb
|
|
260
236
|
end
|
261
237
|
attr_accessor :line_items
|
262
238
|
|
263
|
-
sig
|
264
|
-
returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum))
|
265
|
-
end
|
239
|
+
sig { returns(T.nilable(Orb::Maximum)) }
|
266
240
|
attr_reader :maximum
|
267
241
|
|
268
|
-
sig
|
269
|
-
params(
|
270
|
-
maximum:
|
271
|
-
T.nilable(
|
272
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::OrHash
|
273
|
-
)
|
274
|
-
).void
|
275
|
-
end
|
242
|
+
sig { params(maximum: T.nilable(Orb::Maximum::OrHash)).void }
|
276
243
|
attr_writer :maximum
|
277
244
|
|
278
245
|
sig { returns(T.nilable(String)) }
|
@@ -289,19 +256,10 @@ module Orb
|
|
289
256
|
sig { returns(T::Hash[Symbol, String]) }
|
290
257
|
attr_accessor :metadata
|
291
258
|
|
292
|
-
sig
|
293
|
-
returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum))
|
294
|
-
end
|
259
|
+
sig { returns(T.nilable(Orb::Minimum)) }
|
295
260
|
attr_reader :minimum
|
296
261
|
|
297
|
-
sig
|
298
|
-
params(
|
299
|
-
minimum:
|
300
|
-
T.nilable(
|
301
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::OrHash
|
302
|
-
)
|
303
|
-
).void
|
304
|
-
end
|
262
|
+
sig { params(minimum: T.nilable(Orb::Minimum::OrHash)).void }
|
305
263
|
attr_writer :minimum
|
306
264
|
|
307
265
|
sig { returns(T.nilable(String)) }
|
@@ -336,21 +294,10 @@ module Orb
|
|
336
294
|
sig { returns(T.nilable(Time)) }
|
337
295
|
attr_accessor :scheduled_issue_at
|
338
296
|
|
339
|
-
sig
|
340
|
-
returns(
|
341
|
-
T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress)
|
342
|
-
)
|
343
|
-
end
|
297
|
+
sig { returns(T.nilable(Orb::Address)) }
|
344
298
|
attr_reader :shipping_address
|
345
299
|
|
346
|
-
sig
|
347
|
-
params(
|
348
|
-
shipping_address:
|
349
|
-
T.nilable(
|
350
|
-
Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress::OrHash
|
351
|
-
)
|
352
|
-
).void
|
353
|
-
end
|
300
|
+
sig { params(shipping_address: T.nilable(Orb::Address::OrHash)).void }
|
354
301
|
attr_writer :shipping_address
|
355
302
|
|
356
303
|
sig do
|
@@ -358,20 +305,11 @@ module Orb
|
|
358
305
|
end
|
359
306
|
attr_accessor :status
|
360
307
|
|
361
|
-
sig
|
362
|
-
returns(
|
363
|
-
T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription)
|
364
|
-
)
|
365
|
-
end
|
308
|
+
sig { returns(T.nilable(Orb::SubscriptionMinified)) }
|
366
309
|
attr_reader :subscription
|
367
310
|
|
368
311
|
sig do
|
369
|
-
params(
|
370
|
-
subscription:
|
371
|
-
T.nilable(
|
372
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Subscription::OrHash
|
373
|
-
)
|
374
|
-
).void
|
312
|
+
params(subscription: T.nilable(Orb::SubscriptionMinified::OrHash)).void
|
375
313
|
end
|
376
314
|
attr_writer :subscription
|
377
315
|
|
@@ -409,25 +347,19 @@ module Orb
|
|
409
347
|
amount_due: String,
|
410
348
|
auto_collection:
|
411
349
|
Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection::OrHash,
|
412
|
-
billing_address:
|
413
|
-
T.nilable(
|
414
|
-
Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress::OrHash
|
415
|
-
),
|
350
|
+
billing_address: T.nilable(Orb::Address::OrHash),
|
416
351
|
created_at: Time,
|
417
352
|
credit_notes:
|
418
353
|
T::Array[
|
419
354
|
Orb::Models::InvoiceFetchUpcomingResponse::CreditNote::OrHash
|
420
355
|
],
|
421
356
|
currency: String,
|
422
|
-
customer: Orb::
|
357
|
+
customer: Orb::CustomerMinified::OrHash,
|
423
358
|
customer_balance_transactions:
|
424
359
|
T::Array[
|
425
360
|
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::OrHash
|
426
361
|
],
|
427
|
-
customer_tax_id:
|
428
|
-
T.nilable(
|
429
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::OrHash
|
430
|
-
),
|
362
|
+
customer_tax_id: T.nilable(Orb::CustomerTaxID::OrHash),
|
431
363
|
discount: T.anything,
|
432
364
|
discounts:
|
433
365
|
T::Array[
|
@@ -450,17 +382,11 @@ module Orb
|
|
450
382
|
T::Array[
|
451
383
|
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::OrHash
|
452
384
|
],
|
453
|
-
maximum:
|
454
|
-
T.nilable(
|
455
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::OrHash
|
456
|
-
),
|
385
|
+
maximum: T.nilable(Orb::Maximum::OrHash),
|
457
386
|
maximum_amount: T.nilable(String),
|
458
387
|
memo: T.nilable(String),
|
459
388
|
metadata: T::Hash[Symbol, String],
|
460
|
-
minimum:
|
461
|
-
T.nilable(
|
462
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::OrHash
|
463
|
-
),
|
389
|
+
minimum: T.nilable(Orb::Minimum::OrHash),
|
464
390
|
minimum_amount: T.nilable(String),
|
465
391
|
paid_at: T.nilable(Time),
|
466
392
|
payment_attempts:
|
@@ -470,15 +396,9 @@ module Orb
|
|
470
396
|
payment_failed_at: T.nilable(Time),
|
471
397
|
payment_started_at: T.nilable(Time),
|
472
398
|
scheduled_issue_at: T.nilable(Time),
|
473
|
-
shipping_address:
|
474
|
-
T.nilable(
|
475
|
-
Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress::OrHash
|
476
|
-
),
|
399
|
+
shipping_address: T.nilable(Orb::Address::OrHash),
|
477
400
|
status: Orb::Models::InvoiceFetchUpcomingResponse::Status::OrSymbol,
|
478
|
-
subscription:
|
479
|
-
T.nilable(
|
480
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Subscription::OrHash
|
481
|
-
),
|
401
|
+
subscription: T.nilable(Orb::SubscriptionMinified::OrHash),
|
482
402
|
subtotal: String,
|
483
403
|
sync_failed_at: T.nilable(Time),
|
484
404
|
target_date: Time,
|
@@ -693,23 +613,17 @@ module Orb
|
|
693
613
|
amount_due: String,
|
694
614
|
auto_collection:
|
695
615
|
Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection,
|
696
|
-
billing_address:
|
697
|
-
T.nilable(
|
698
|
-
Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress
|
699
|
-
),
|
616
|
+
billing_address: T.nilable(Orb::Address),
|
700
617
|
created_at: Time,
|
701
618
|
credit_notes:
|
702
619
|
T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote],
|
703
620
|
currency: String,
|
704
|
-
customer: Orb::
|
621
|
+
customer: Orb::CustomerMinified,
|
705
622
|
customer_balance_transactions:
|
706
623
|
T::Array[
|
707
624
|
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction
|
708
625
|
],
|
709
|
-
customer_tax_id:
|
710
|
-
T.nilable(
|
711
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID
|
712
|
-
),
|
626
|
+
customer_tax_id: T.nilable(Orb::CustomerTaxID),
|
713
627
|
discount: T.anything,
|
714
628
|
discounts: T::Array[Orb::InvoiceLevelDiscount::Variants],
|
715
629
|
due_date: T.nilable(Time),
|
@@ -723,13 +637,11 @@ module Orb
|
|
723
637
|
issued_at: T.nilable(Time),
|
724
638
|
line_items:
|
725
639
|
T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem],
|
726
|
-
maximum:
|
727
|
-
T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum),
|
640
|
+
maximum: T.nilable(Orb::Maximum),
|
728
641
|
maximum_amount: T.nilable(String),
|
729
642
|
memo: T.nilable(String),
|
730
643
|
metadata: T::Hash[Symbol, String],
|
731
|
-
minimum:
|
732
|
-
T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum),
|
644
|
+
minimum: T.nilable(Orb::Minimum),
|
733
645
|
minimum_amount: T.nilable(String),
|
734
646
|
paid_at: T.nilable(Time),
|
735
647
|
payment_attempts:
|
@@ -739,16 +651,10 @@ module Orb
|
|
739
651
|
payment_failed_at: T.nilable(Time),
|
740
652
|
payment_started_at: T.nilable(Time),
|
741
653
|
scheduled_issue_at: T.nilable(Time),
|
742
|
-
shipping_address:
|
743
|
-
T.nilable(
|
744
|
-
Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress
|
745
|
-
),
|
654
|
+
shipping_address: T.nilable(Orb::Address),
|
746
655
|
status:
|
747
656
|
Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol,
|
748
|
-
subscription:
|
749
|
-
T.nilable(
|
750
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Subscription
|
751
|
-
),
|
657
|
+
subscription: T.nilable(Orb::SubscriptionMinified),
|
752
658
|
subtotal: String,
|
753
659
|
sync_failed_at: T.nilable(Time),
|
754
660
|
target_date: Time,
|
@@ -834,62 +740,6 @@ module Orb
|
|
834
740
|
end
|
835
741
|
end
|
836
742
|
|
837
|
-
class BillingAddress < Orb::Internal::Type::BaseModel
|
838
|
-
OrHash =
|
839
|
-
T.type_alias do
|
840
|
-
T.any(
|
841
|
-
Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress,
|
842
|
-
Orb::Internal::AnyHash
|
843
|
-
)
|
844
|
-
end
|
845
|
-
|
846
|
-
sig { returns(T.nilable(String)) }
|
847
|
-
attr_accessor :city
|
848
|
-
|
849
|
-
sig { returns(T.nilable(String)) }
|
850
|
-
attr_accessor :country
|
851
|
-
|
852
|
-
sig { returns(T.nilable(String)) }
|
853
|
-
attr_accessor :line1
|
854
|
-
|
855
|
-
sig { returns(T.nilable(String)) }
|
856
|
-
attr_accessor :line2
|
857
|
-
|
858
|
-
sig { returns(T.nilable(String)) }
|
859
|
-
attr_accessor :postal_code
|
860
|
-
|
861
|
-
sig { returns(T.nilable(String)) }
|
862
|
-
attr_accessor :state
|
863
|
-
|
864
|
-
sig do
|
865
|
-
params(
|
866
|
-
city: T.nilable(String),
|
867
|
-
country: T.nilable(String),
|
868
|
-
line1: T.nilable(String),
|
869
|
-
line2: T.nilable(String),
|
870
|
-
postal_code: T.nilable(String),
|
871
|
-
state: T.nilable(String)
|
872
|
-
).returns(T.attached_class)
|
873
|
-
end
|
874
|
-
def self.new(city:, country:, line1:, line2:, postal_code:, state:)
|
875
|
-
end
|
876
|
-
|
877
|
-
sig do
|
878
|
-
override.returns(
|
879
|
-
{
|
880
|
-
city: T.nilable(String),
|
881
|
-
country: T.nilable(String),
|
882
|
-
line1: T.nilable(String),
|
883
|
-
line2: T.nilable(String),
|
884
|
-
postal_code: T.nilable(String),
|
885
|
-
state: T.nilable(String)
|
886
|
-
}
|
887
|
-
)
|
888
|
-
end
|
889
|
-
def to_hash
|
890
|
-
end
|
891
|
-
end
|
892
|
-
|
893
743
|
class CreditNote < Orb::Internal::Type::BaseModel
|
894
744
|
OrHash =
|
895
745
|
T.type_alias do
|
@@ -965,38 +815,6 @@ module Orb
|
|
965
815
|
end
|
966
816
|
end
|
967
817
|
|
968
|
-
class Customer < Orb::Internal::Type::BaseModel
|
969
|
-
OrHash =
|
970
|
-
T.type_alias do
|
971
|
-
T.any(
|
972
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Customer,
|
973
|
-
Orb::Internal::AnyHash
|
974
|
-
)
|
975
|
-
end
|
976
|
-
|
977
|
-
sig { returns(String) }
|
978
|
-
attr_accessor :id
|
979
|
-
|
980
|
-
sig { returns(T.nilable(String)) }
|
981
|
-
attr_accessor :external_customer_id
|
982
|
-
|
983
|
-
sig do
|
984
|
-
params(id: String, external_customer_id: T.nilable(String)).returns(
|
985
|
-
T.attached_class
|
986
|
-
)
|
987
|
-
end
|
988
|
-
def self.new(id:, external_customer_id:)
|
989
|
-
end
|
990
|
-
|
991
|
-
sig do
|
992
|
-
override.returns(
|
993
|
-
{ id: String, external_customer_id: T.nilable(String) }
|
994
|
-
)
|
995
|
-
end
|
996
|
-
def to_hash
|
997
|
-
end
|
998
|
-
end
|
999
|
-
|
1000
818
|
class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel
|
1001
819
|
OrHash =
|
1002
820
|
T.type_alias do
|
@@ -1025,23 +843,10 @@ module Orb
|
|
1025
843
|
sig { returns(Time) }
|
1026
844
|
attr_accessor :created_at
|
1027
845
|
|
1028
|
-
sig
|
1029
|
-
returns(
|
1030
|
-
T.nilable(
|
1031
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote
|
1032
|
-
)
|
1033
|
-
)
|
1034
|
-
end
|
846
|
+
sig { returns(T.nilable(Orb::CreditNoteTiny)) }
|
1035
847
|
attr_reader :credit_note
|
1036
848
|
|
1037
|
-
sig
|
1038
|
-
params(
|
1039
|
-
credit_note:
|
1040
|
-
T.nilable(
|
1041
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote::OrHash
|
1042
|
-
)
|
1043
|
-
).void
|
1044
|
-
end
|
849
|
+
sig { params(credit_note: T.nilable(Orb::CreditNoteTiny::OrHash)).void }
|
1045
850
|
attr_writer :credit_note
|
1046
851
|
|
1047
852
|
# An optional description provided for manual customer balance adjustments.
|
@@ -1053,23 +858,10 @@ module Orb
|
|
1053
858
|
sig { returns(String) }
|
1054
859
|
attr_accessor :ending_balance
|
1055
860
|
|
1056
|
-
sig
|
1057
|
-
returns(
|
1058
|
-
T.nilable(
|
1059
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice
|
1060
|
-
)
|
1061
|
-
)
|
1062
|
-
end
|
861
|
+
sig { returns(T.nilable(Orb::InvoiceTiny)) }
|
1063
862
|
attr_reader :invoice
|
1064
863
|
|
1065
|
-
sig
|
1066
|
-
params(
|
1067
|
-
invoice:
|
1068
|
-
T.nilable(
|
1069
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice::OrHash
|
1070
|
-
)
|
1071
|
-
).void
|
1072
|
-
end
|
864
|
+
sig { params(invoice: T.nilable(Orb::InvoiceTiny::OrHash)).void }
|
1073
865
|
attr_writer :invoice
|
1074
866
|
|
1075
867
|
# The original value of the customer's balance prior to the transaction, in the
|
@@ -1091,16 +883,10 @@ module Orb
|
|
1091
883
|
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::OrSymbol,
|
1092
884
|
amount: String,
|
1093
885
|
created_at: Time,
|
1094
|
-
credit_note:
|
1095
|
-
T.nilable(
|
1096
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote::OrHash
|
1097
|
-
),
|
886
|
+
credit_note: T.nilable(Orb::CreditNoteTiny::OrHash),
|
1098
887
|
description: T.nilable(String),
|
1099
888
|
ending_balance: String,
|
1100
|
-
invoice:
|
1101
|
-
T.nilable(
|
1102
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice::OrHash
|
1103
|
-
),
|
889
|
+
invoice: T.nilable(Orb::InvoiceTiny::OrHash),
|
1104
890
|
starting_balance: String,
|
1105
891
|
type:
|
1106
892
|
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::OrSymbol
|
@@ -1136,16 +922,10 @@ module Orb
|
|
1136
922
|
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol,
|
1137
923
|
amount: String,
|
1138
924
|
created_at: Time,
|
1139
|
-
credit_note:
|
1140
|
-
T.nilable(
|
1141
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote
|
1142
|
-
),
|
925
|
+
credit_note: T.nilable(Orb::CreditNoteTiny),
|
1143
926
|
description: T.nilable(String),
|
1144
927
|
ending_balance: String,
|
1145
|
-
invoice:
|
1146
|
-
T.nilable(
|
1147
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice
|
1148
|
-
),
|
928
|
+
invoice: T.nilable(Orb::InvoiceTiny),
|
1149
929
|
starting_balance: String,
|
1150
930
|
type:
|
1151
931
|
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol
|
@@ -1224,56 +1004,6 @@ module Orb
|
|
1224
1004
|
end
|
1225
1005
|
end
|
1226
1006
|
|
1227
|
-
class CreditNote < Orb::Internal::Type::BaseModel
|
1228
|
-
OrHash =
|
1229
|
-
T.type_alias do
|
1230
|
-
T.any(
|
1231
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote,
|
1232
|
-
Orb::Internal::AnyHash
|
1233
|
-
)
|
1234
|
-
end
|
1235
|
-
|
1236
|
-
# The id of the Credit note
|
1237
|
-
sig { returns(String) }
|
1238
|
-
attr_accessor :id
|
1239
|
-
|
1240
|
-
sig { params(id: String).returns(T.attached_class) }
|
1241
|
-
def self.new(
|
1242
|
-
# The id of the Credit note
|
1243
|
-
id:
|
1244
|
-
)
|
1245
|
-
end
|
1246
|
-
|
1247
|
-
sig { override.returns({ id: String }) }
|
1248
|
-
def to_hash
|
1249
|
-
end
|
1250
|
-
end
|
1251
|
-
|
1252
|
-
class Invoice < Orb::Internal::Type::BaseModel
|
1253
|
-
OrHash =
|
1254
|
-
T.type_alias do
|
1255
|
-
T.any(
|
1256
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice,
|
1257
|
-
Orb::Internal::AnyHash
|
1258
|
-
)
|
1259
|
-
end
|
1260
|
-
|
1261
|
-
# The Invoice id
|
1262
|
-
sig { returns(String) }
|
1263
|
-
attr_accessor :id
|
1264
|
-
|
1265
|
-
sig { params(id: String).returns(T.attached_class) }
|
1266
|
-
def self.new(
|
1267
|
-
# The Invoice id
|
1268
|
-
id:
|
1269
|
-
)
|
1270
|
-
end
|
1271
|
-
|
1272
|
-
sig { override.returns({ id: String }) }
|
1273
|
-
def to_hash
|
1274
|
-
end
|
1275
|
-
end
|
1276
|
-
|
1277
1007
|
module Type
|
1278
1008
|
extend Orb::Internal::Type::Enum
|
1279
1009
|
|
@@ -1309,4029 +1039,402 @@ module Orb
|
|
1309
1039
|
end
|
1310
1040
|
end
|
1311
1041
|
|
1312
|
-
|
1313
|
-
|
1042
|
+
module InvoiceSource
|
1043
|
+
extend Orb::Internal::Type::Enum
|
1044
|
+
|
1045
|
+
TaggedSymbol =
|
1314
1046
|
T.type_alias do
|
1315
|
-
T.
|
1316
|
-
|
1317
|
-
Orb::
|
1047
|
+
T.all(
|
1048
|
+
Symbol,
|
1049
|
+
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource
|
1318
1050
|
)
|
1319
1051
|
end
|
1052
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1053
|
+
|
1054
|
+
SUBSCRIPTION =
|
1055
|
+
T.let(
|
1056
|
+
:subscription,
|
1057
|
+
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol
|
1058
|
+
)
|
1059
|
+
PARTIAL =
|
1060
|
+
T.let(
|
1061
|
+
:partial,
|
1062
|
+
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol
|
1063
|
+
)
|
1064
|
+
ONE_OFF =
|
1065
|
+
T.let(
|
1066
|
+
:one_off,
|
1067
|
+
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol
|
1068
|
+
)
|
1320
1069
|
|
1321
1070
|
sig do
|
1322
|
-
returns(
|
1323
|
-
|
1071
|
+
override.returns(
|
1072
|
+
T::Array[
|
1073
|
+
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol
|
1074
|
+
]
|
1324
1075
|
)
|
1325
1076
|
end
|
1326
|
-
|
1077
|
+
def self.values
|
1078
|
+
end
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
class LineItem < Orb::Internal::Type::BaseModel
|
1082
|
+
OrHash =
|
1083
|
+
T.type_alias do
|
1084
|
+
T.any(
|
1085
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem,
|
1086
|
+
Orb::Internal::AnyHash
|
1087
|
+
)
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
# A unique ID for this line item.
|
1091
|
+
sig { returns(String) }
|
1092
|
+
attr_accessor :id
|
1327
1093
|
|
1094
|
+
# The line amount after any adjustments and before overage conversion, credits and
|
1095
|
+
# partial invoicing.
|
1096
|
+
sig { returns(String) }
|
1097
|
+
attr_accessor :adjusted_subtotal
|
1098
|
+
|
1099
|
+
# All adjustments applied to the line item in the order they were applied based on
|
1100
|
+
# invoice calculations (ie. usage discounts -> amount discounts -> percentage
|
1101
|
+
# discounts -> minimums -> maximums).
|
1328
1102
|
sig do
|
1329
1103
|
returns(
|
1330
|
-
|
1104
|
+
T::Array[
|
1105
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Variants
|
1106
|
+
]
|
1331
1107
|
)
|
1332
1108
|
end
|
1333
|
-
attr_accessor :
|
1109
|
+
attr_accessor :adjustments
|
1334
1110
|
|
1111
|
+
# The final amount for a line item after all adjustments and pre paid credits have
|
1112
|
+
# been applied.
|
1335
1113
|
sig { returns(String) }
|
1336
|
-
attr_accessor :
|
1114
|
+
attr_accessor :amount
|
1337
1115
|
|
1338
|
-
#
|
1339
|
-
|
1340
|
-
|
1341
|
-
# ### Supported Tax ID Countries and Types
|
1342
|
-
#
|
1343
|
-
# | Country | Type | Description |
|
1344
|
-
# | -------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
|
1345
|
-
# | Andorra | `ad_nrt` | Andorran NRT Number |
|
1346
|
-
# | Argentina | `ar_cuit` | Argentinian Tax ID Number |
|
1347
|
-
# | Australia | `au_abn` | Australian Business Number (AU ABN) |
|
1348
|
-
# | Australia | `au_arn` | Australian Taxation Office Reference Number |
|
1349
|
-
# | Austria | `eu_vat` | European VAT Number |
|
1350
|
-
# | Bahrain | `bh_vat` | Bahraini VAT Number |
|
1351
|
-
# | Belgium | `eu_vat` | European VAT Number |
|
1352
|
-
# | Bolivia | `bo_tin` | Bolivian Tax ID |
|
1353
|
-
# | Brazil | `br_cnpj` | Brazilian CNPJ Number |
|
1354
|
-
# | Brazil | `br_cpf` | Brazilian CPF Number |
|
1355
|
-
# | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
|
1356
|
-
# | Bulgaria | `eu_vat` | European VAT Number |
|
1357
|
-
# | Canada | `ca_bn` | Canadian BN |
|
1358
|
-
# | Canada | `ca_gst_hst` | Canadian GST/HST Number |
|
1359
|
-
# | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
|
1360
|
-
# | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
|
1361
|
-
# | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
|
1362
|
-
# | Canada | `ca_qst` | Canadian QST Number (Québec) |
|
1363
|
-
# | Chile | `cl_tin` | Chilean TIN |
|
1364
|
-
# | China | `cn_tin` | Chinese Tax ID |
|
1365
|
-
# | Colombia | `co_nit` | Colombian NIT Number |
|
1366
|
-
# | Costa Rica | `cr_tin` | Costa Rican Tax ID |
|
1367
|
-
# | Croatia | `eu_vat` | European VAT Number |
|
1368
|
-
# | Cyprus | `eu_vat` | European VAT Number |
|
1369
|
-
# | Czech Republic | `eu_vat` | European VAT Number |
|
1370
|
-
# | Denmark | `eu_vat` | European VAT Number |
|
1371
|
-
# | Dominican Republic | `do_rcn` | Dominican RCN Number |
|
1372
|
-
# | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
|
1373
|
-
# | Egypt | `eg_tin` | Egyptian Tax Identification Number |
|
1374
|
-
# | El Salvador | `sv_nit` | El Salvadorian NIT Number |
|
1375
|
-
# | Estonia | `eu_vat` | European VAT Number |
|
1376
|
-
# | EU | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
|
1377
|
-
# | Finland | `eu_vat` | European VAT Number |
|
1378
|
-
# | France | `eu_vat` | European VAT Number |
|
1379
|
-
# | Georgia | `ge_vat` | Georgian VAT |
|
1380
|
-
# | Germany | `eu_vat` | European VAT Number |
|
1381
|
-
# | Greece | `eu_vat` | European VAT Number |
|
1382
|
-
# | Hong Kong | `hk_br` | Hong Kong BR Number |
|
1383
|
-
# | Hungary | `eu_vat` | European VAT Number |
|
1384
|
-
# | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
|
1385
|
-
# | Iceland | `is_vat` | Icelandic VAT |
|
1386
|
-
# | India | `in_gst` | Indian GST Number |
|
1387
|
-
# | Indonesia | `id_npwp` | Indonesian NPWP Number |
|
1388
|
-
# | Ireland | `eu_vat` | European VAT Number |
|
1389
|
-
# | Israel | `il_vat` | Israel VAT |
|
1390
|
-
# | Italy | `eu_vat` | European VAT Number |
|
1391
|
-
# | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
|
1392
|
-
# | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
|
1393
|
-
# | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
|
1394
|
-
# | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
|
1395
|
-
# | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
|
1396
|
-
# | Latvia | `eu_vat` | European VAT Number |
|
1397
|
-
# | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
|
1398
|
-
# | Lithuania | `eu_vat` | European VAT Number |
|
1399
|
-
# | Luxembourg | `eu_vat` | European VAT Number |
|
1400
|
-
# | Malaysia | `my_frp` | Malaysian FRP Number |
|
1401
|
-
# | Malaysia | `my_itn` | Malaysian ITN |
|
1402
|
-
# | Malaysia | `my_sst` | Malaysian SST Number |
|
1403
|
-
# | Malta | `eu_vat ` | European VAT Number |
|
1404
|
-
# | Mexico | `mx_rfc` | Mexican RFC Number |
|
1405
|
-
# | Netherlands | `eu_vat` | European VAT Number |
|
1406
|
-
# | New Zealand | `nz_gst` | New Zealand GST Number |
|
1407
|
-
# | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
|
1408
|
-
# | Norway | `no_vat` | Norwegian VAT Number |
|
1409
|
-
# | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
|
1410
|
-
# | Oman | `om_vat` | Omani VAT Number |
|
1411
|
-
# | Peru | `pe_ruc` | Peruvian RUC Number |
|
1412
|
-
# | Philippines | `ph_tin ` | Philippines Tax Identification Number |
|
1413
|
-
# | Poland | `eu_vat` | European VAT Number |
|
1414
|
-
# | Portugal | `eu_vat` | European VAT Number |
|
1415
|
-
# | Romania | `eu_vat` | European VAT Number |
|
1416
|
-
# | Romania | `ro_tin` | Romanian Tax ID Number |
|
1417
|
-
# | Russia | `ru_inn` | Russian INN |
|
1418
|
-
# | Russia | `ru_kpp` | Russian KPP |
|
1419
|
-
# | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
|
1420
|
-
# | Serbia | `rs_pib` | Serbian PIB Number |
|
1421
|
-
# | Singapore | `sg_gst` | Singaporean GST |
|
1422
|
-
# | Singapore | `sg_uen` | Singaporean UEN |
|
1423
|
-
# | Slovakia | `eu_vat` | European VAT Number |
|
1424
|
-
# | Slovenia | `eu_vat` | European VAT Number |
|
1425
|
-
# | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
|
1426
|
-
# | South Africa | `za_vat` | South African VAT Number |
|
1427
|
-
# | South Korea | `kr_brn` | Korean BRN |
|
1428
|
-
# | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
|
1429
|
-
# | Spain | `eu_vat` | European VAT Number |
|
1430
|
-
# | Sweden | `eu_vat` | European VAT Number |
|
1431
|
-
# | Switzerland | `ch_vat` | Switzerland VAT Number |
|
1432
|
-
# | Taiwan | `tw_vat` | Taiwanese VAT |
|
1433
|
-
# | Thailand | `th_vat` | Thai VAT |
|
1434
|
-
# | Turkey | `tr_tin` | Turkish Tax Identification Number |
|
1435
|
-
# | Ukraine | `ua_vat` | Ukrainian VAT |
|
1436
|
-
# | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
|
1437
|
-
# | United Kingdom | `eu_vat` | Northern Ireland VAT Number |
|
1438
|
-
# | United Kingdom | `gb_vat` | United Kingdom VAT Number |
|
1439
|
-
# | United States | `us_ein` | United States EIN |
|
1440
|
-
# | Uruguay | `uy_ruc` | Uruguayan RUC Number |
|
1441
|
-
# | Venezuela | `ve_rif` | Venezuelan RIF Number |
|
1442
|
-
# | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
|
1443
|
-
sig do
|
1444
|
-
params(
|
1445
|
-
country:
|
1446
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::OrSymbol,
|
1447
|
-
type:
|
1448
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::OrSymbol,
|
1449
|
-
value: String
|
1450
|
-
).returns(T.attached_class)
|
1451
|
-
end
|
1452
|
-
def self.new(country:, type:, value:)
|
1453
|
-
end
|
1454
|
-
|
1455
|
-
sig do
|
1456
|
-
override.returns(
|
1457
|
-
{
|
1458
|
-
country:
|
1459
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol,
|
1460
|
-
type:
|
1461
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol,
|
1462
|
-
value: String
|
1463
|
-
}
|
1464
|
-
)
|
1465
|
-
end
|
1466
|
-
def to_hash
|
1467
|
-
end
|
1468
|
-
|
1469
|
-
module Country
|
1470
|
-
extend Orb::Internal::Type::Enum
|
1471
|
-
|
1472
|
-
TaggedSymbol =
|
1473
|
-
T.type_alias do
|
1474
|
-
T.all(
|
1475
|
-
Symbol,
|
1476
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country
|
1477
|
-
)
|
1478
|
-
end
|
1479
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1480
|
-
|
1481
|
-
AD =
|
1482
|
-
T.let(
|
1483
|
-
:AD,
|
1484
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1485
|
-
)
|
1486
|
-
AE =
|
1487
|
-
T.let(
|
1488
|
-
:AE,
|
1489
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1490
|
-
)
|
1491
|
-
AR =
|
1492
|
-
T.let(
|
1493
|
-
:AR,
|
1494
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1495
|
-
)
|
1496
|
-
AT =
|
1497
|
-
T.let(
|
1498
|
-
:AT,
|
1499
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1500
|
-
)
|
1501
|
-
AU =
|
1502
|
-
T.let(
|
1503
|
-
:AU,
|
1504
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1505
|
-
)
|
1506
|
-
BE =
|
1507
|
-
T.let(
|
1508
|
-
:BE,
|
1509
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1510
|
-
)
|
1511
|
-
BG =
|
1512
|
-
T.let(
|
1513
|
-
:BG,
|
1514
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1515
|
-
)
|
1516
|
-
BH =
|
1517
|
-
T.let(
|
1518
|
-
:BH,
|
1519
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1520
|
-
)
|
1521
|
-
BO =
|
1522
|
-
T.let(
|
1523
|
-
:BO,
|
1524
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1525
|
-
)
|
1526
|
-
BR =
|
1527
|
-
T.let(
|
1528
|
-
:BR,
|
1529
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1530
|
-
)
|
1531
|
-
CA =
|
1532
|
-
T.let(
|
1533
|
-
:CA,
|
1534
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1535
|
-
)
|
1536
|
-
CH =
|
1537
|
-
T.let(
|
1538
|
-
:CH,
|
1539
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1540
|
-
)
|
1541
|
-
CL =
|
1542
|
-
T.let(
|
1543
|
-
:CL,
|
1544
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1545
|
-
)
|
1546
|
-
CN =
|
1547
|
-
T.let(
|
1548
|
-
:CN,
|
1549
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1550
|
-
)
|
1551
|
-
CO =
|
1552
|
-
T.let(
|
1553
|
-
:CO,
|
1554
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1555
|
-
)
|
1556
|
-
CR =
|
1557
|
-
T.let(
|
1558
|
-
:CR,
|
1559
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1560
|
-
)
|
1561
|
-
CY =
|
1562
|
-
T.let(
|
1563
|
-
:CY,
|
1564
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1565
|
-
)
|
1566
|
-
CZ =
|
1567
|
-
T.let(
|
1568
|
-
:CZ,
|
1569
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1570
|
-
)
|
1571
|
-
DE =
|
1572
|
-
T.let(
|
1573
|
-
:DE,
|
1574
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1575
|
-
)
|
1576
|
-
DK =
|
1577
|
-
T.let(
|
1578
|
-
:DK,
|
1579
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1580
|
-
)
|
1581
|
-
EE =
|
1582
|
-
T.let(
|
1583
|
-
:EE,
|
1584
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1585
|
-
)
|
1586
|
-
DO =
|
1587
|
-
T.let(
|
1588
|
-
:DO,
|
1589
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1590
|
-
)
|
1591
|
-
EC =
|
1592
|
-
T.let(
|
1593
|
-
:EC,
|
1594
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1595
|
-
)
|
1596
|
-
EG =
|
1597
|
-
T.let(
|
1598
|
-
:EG,
|
1599
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1600
|
-
)
|
1601
|
-
ES =
|
1602
|
-
T.let(
|
1603
|
-
:ES,
|
1604
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1605
|
-
)
|
1606
|
-
EU =
|
1607
|
-
T.let(
|
1608
|
-
:EU,
|
1609
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1610
|
-
)
|
1611
|
-
FI =
|
1612
|
-
T.let(
|
1613
|
-
:FI,
|
1614
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1615
|
-
)
|
1616
|
-
FR =
|
1617
|
-
T.let(
|
1618
|
-
:FR,
|
1619
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1620
|
-
)
|
1621
|
-
GB =
|
1622
|
-
T.let(
|
1623
|
-
:GB,
|
1624
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1625
|
-
)
|
1626
|
-
GE =
|
1627
|
-
T.let(
|
1628
|
-
:GE,
|
1629
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1630
|
-
)
|
1631
|
-
GR =
|
1632
|
-
T.let(
|
1633
|
-
:GR,
|
1634
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1635
|
-
)
|
1636
|
-
HK =
|
1637
|
-
T.let(
|
1638
|
-
:HK,
|
1639
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1640
|
-
)
|
1641
|
-
HR =
|
1642
|
-
T.let(
|
1643
|
-
:HR,
|
1644
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1645
|
-
)
|
1646
|
-
HU =
|
1647
|
-
T.let(
|
1648
|
-
:HU,
|
1649
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1650
|
-
)
|
1651
|
-
ID =
|
1652
|
-
T.let(
|
1653
|
-
:ID,
|
1654
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1655
|
-
)
|
1656
|
-
IE =
|
1657
|
-
T.let(
|
1658
|
-
:IE,
|
1659
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1660
|
-
)
|
1661
|
-
IL =
|
1662
|
-
T.let(
|
1663
|
-
:IL,
|
1664
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1665
|
-
)
|
1666
|
-
IN =
|
1667
|
-
T.let(
|
1668
|
-
:IN,
|
1669
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1670
|
-
)
|
1671
|
-
IS =
|
1672
|
-
T.let(
|
1673
|
-
:IS,
|
1674
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1675
|
-
)
|
1676
|
-
IT =
|
1677
|
-
T.let(
|
1678
|
-
:IT,
|
1679
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1680
|
-
)
|
1681
|
-
JP =
|
1682
|
-
T.let(
|
1683
|
-
:JP,
|
1684
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1685
|
-
)
|
1686
|
-
KE =
|
1687
|
-
T.let(
|
1688
|
-
:KE,
|
1689
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1690
|
-
)
|
1691
|
-
KR =
|
1692
|
-
T.let(
|
1693
|
-
:KR,
|
1694
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1695
|
-
)
|
1696
|
-
KZ =
|
1697
|
-
T.let(
|
1698
|
-
:KZ,
|
1699
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1700
|
-
)
|
1701
|
-
LI =
|
1702
|
-
T.let(
|
1703
|
-
:LI,
|
1704
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1705
|
-
)
|
1706
|
-
LT =
|
1707
|
-
T.let(
|
1708
|
-
:LT,
|
1709
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1710
|
-
)
|
1711
|
-
LU =
|
1712
|
-
T.let(
|
1713
|
-
:LU,
|
1714
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1715
|
-
)
|
1716
|
-
LV =
|
1717
|
-
T.let(
|
1718
|
-
:LV,
|
1719
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1720
|
-
)
|
1721
|
-
MT =
|
1722
|
-
T.let(
|
1723
|
-
:MT,
|
1724
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1725
|
-
)
|
1726
|
-
MX =
|
1727
|
-
T.let(
|
1728
|
-
:MX,
|
1729
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1730
|
-
)
|
1731
|
-
MY =
|
1732
|
-
T.let(
|
1733
|
-
:MY,
|
1734
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1735
|
-
)
|
1736
|
-
NG =
|
1737
|
-
T.let(
|
1738
|
-
:NG,
|
1739
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1740
|
-
)
|
1741
|
-
NL =
|
1742
|
-
T.let(
|
1743
|
-
:NL,
|
1744
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1745
|
-
)
|
1746
|
-
NO =
|
1747
|
-
T.let(
|
1748
|
-
:NO,
|
1749
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1750
|
-
)
|
1751
|
-
NZ =
|
1752
|
-
T.let(
|
1753
|
-
:NZ,
|
1754
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1755
|
-
)
|
1756
|
-
OM =
|
1757
|
-
T.let(
|
1758
|
-
:OM,
|
1759
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1760
|
-
)
|
1761
|
-
PE =
|
1762
|
-
T.let(
|
1763
|
-
:PE,
|
1764
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1765
|
-
)
|
1766
|
-
PH =
|
1767
|
-
T.let(
|
1768
|
-
:PH,
|
1769
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1770
|
-
)
|
1771
|
-
PL =
|
1772
|
-
T.let(
|
1773
|
-
:PL,
|
1774
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1775
|
-
)
|
1776
|
-
PT =
|
1777
|
-
T.let(
|
1778
|
-
:PT,
|
1779
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1780
|
-
)
|
1781
|
-
RO =
|
1782
|
-
T.let(
|
1783
|
-
:RO,
|
1784
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1785
|
-
)
|
1786
|
-
RS =
|
1787
|
-
T.let(
|
1788
|
-
:RS,
|
1789
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1790
|
-
)
|
1791
|
-
RU =
|
1792
|
-
T.let(
|
1793
|
-
:RU,
|
1794
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1795
|
-
)
|
1796
|
-
SA =
|
1797
|
-
T.let(
|
1798
|
-
:SA,
|
1799
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1800
|
-
)
|
1801
|
-
SE =
|
1802
|
-
T.let(
|
1803
|
-
:SE,
|
1804
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1805
|
-
)
|
1806
|
-
SG =
|
1807
|
-
T.let(
|
1808
|
-
:SG,
|
1809
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1810
|
-
)
|
1811
|
-
SI =
|
1812
|
-
T.let(
|
1813
|
-
:SI,
|
1814
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1815
|
-
)
|
1816
|
-
SK =
|
1817
|
-
T.let(
|
1818
|
-
:SK,
|
1819
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1820
|
-
)
|
1821
|
-
SV =
|
1822
|
-
T.let(
|
1823
|
-
:SV,
|
1824
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1825
|
-
)
|
1826
|
-
TH =
|
1827
|
-
T.let(
|
1828
|
-
:TH,
|
1829
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1830
|
-
)
|
1831
|
-
TR =
|
1832
|
-
T.let(
|
1833
|
-
:TR,
|
1834
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1835
|
-
)
|
1836
|
-
TW =
|
1837
|
-
T.let(
|
1838
|
-
:TW,
|
1839
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1840
|
-
)
|
1841
|
-
UA =
|
1842
|
-
T.let(
|
1843
|
-
:UA,
|
1844
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1845
|
-
)
|
1846
|
-
US =
|
1847
|
-
T.let(
|
1848
|
-
:US,
|
1849
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1850
|
-
)
|
1851
|
-
UY =
|
1852
|
-
T.let(
|
1853
|
-
:UY,
|
1854
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1855
|
-
)
|
1856
|
-
VE =
|
1857
|
-
T.let(
|
1858
|
-
:VE,
|
1859
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1860
|
-
)
|
1861
|
-
VN =
|
1862
|
-
T.let(
|
1863
|
-
:VN,
|
1864
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1865
|
-
)
|
1866
|
-
ZA =
|
1867
|
-
T.let(
|
1868
|
-
:ZA,
|
1869
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1870
|
-
)
|
1871
|
-
|
1872
|
-
sig do
|
1873
|
-
override.returns(
|
1874
|
-
T::Array[
|
1875
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1876
|
-
]
|
1877
|
-
)
|
1878
|
-
end
|
1879
|
-
def self.values
|
1880
|
-
end
|
1881
|
-
end
|
1882
|
-
|
1883
|
-
module Type
|
1884
|
-
extend Orb::Internal::Type::Enum
|
1885
|
-
|
1886
|
-
TaggedSymbol =
|
1887
|
-
T.type_alias do
|
1888
|
-
T.all(
|
1889
|
-
Symbol,
|
1890
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type
|
1891
|
-
)
|
1892
|
-
end
|
1893
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1894
|
-
|
1895
|
-
AD_NRT =
|
1896
|
-
T.let(
|
1897
|
-
:ad_nrt,
|
1898
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1899
|
-
)
|
1900
|
-
AE_TRN =
|
1901
|
-
T.let(
|
1902
|
-
:ae_trn,
|
1903
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1904
|
-
)
|
1905
|
-
AR_CUIT =
|
1906
|
-
T.let(
|
1907
|
-
:ar_cuit,
|
1908
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1909
|
-
)
|
1910
|
-
EU_VAT =
|
1911
|
-
T.let(
|
1912
|
-
:eu_vat,
|
1913
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1914
|
-
)
|
1915
|
-
AU_ABN =
|
1916
|
-
T.let(
|
1917
|
-
:au_abn,
|
1918
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1919
|
-
)
|
1920
|
-
AU_ARN =
|
1921
|
-
T.let(
|
1922
|
-
:au_arn,
|
1923
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1924
|
-
)
|
1925
|
-
BG_UIC =
|
1926
|
-
T.let(
|
1927
|
-
:bg_uic,
|
1928
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1929
|
-
)
|
1930
|
-
BH_VAT =
|
1931
|
-
T.let(
|
1932
|
-
:bh_vat,
|
1933
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1934
|
-
)
|
1935
|
-
BO_TIN =
|
1936
|
-
T.let(
|
1937
|
-
:bo_tin,
|
1938
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1939
|
-
)
|
1940
|
-
BR_CNPJ =
|
1941
|
-
T.let(
|
1942
|
-
:br_cnpj,
|
1943
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1944
|
-
)
|
1945
|
-
BR_CPF =
|
1946
|
-
T.let(
|
1947
|
-
:br_cpf,
|
1948
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1949
|
-
)
|
1950
|
-
CA_BN =
|
1951
|
-
T.let(
|
1952
|
-
:ca_bn,
|
1953
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1954
|
-
)
|
1955
|
-
CA_GST_HST =
|
1956
|
-
T.let(
|
1957
|
-
:ca_gst_hst,
|
1958
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1959
|
-
)
|
1960
|
-
CA_PST_BC =
|
1961
|
-
T.let(
|
1962
|
-
:ca_pst_bc,
|
1963
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1964
|
-
)
|
1965
|
-
CA_PST_MB =
|
1966
|
-
T.let(
|
1967
|
-
:ca_pst_mb,
|
1968
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1969
|
-
)
|
1970
|
-
CA_PST_SK =
|
1971
|
-
T.let(
|
1972
|
-
:ca_pst_sk,
|
1973
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1974
|
-
)
|
1975
|
-
CA_QST =
|
1976
|
-
T.let(
|
1977
|
-
:ca_qst,
|
1978
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1979
|
-
)
|
1980
|
-
CH_VAT =
|
1981
|
-
T.let(
|
1982
|
-
:ch_vat,
|
1983
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1984
|
-
)
|
1985
|
-
CL_TIN =
|
1986
|
-
T.let(
|
1987
|
-
:cl_tin,
|
1988
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1989
|
-
)
|
1990
|
-
CN_TIN =
|
1991
|
-
T.let(
|
1992
|
-
:cn_tin,
|
1993
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1994
|
-
)
|
1995
|
-
CO_NIT =
|
1996
|
-
T.let(
|
1997
|
-
:co_nit,
|
1998
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1999
|
-
)
|
2000
|
-
CR_TIN =
|
2001
|
-
T.let(
|
2002
|
-
:cr_tin,
|
2003
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2004
|
-
)
|
2005
|
-
DO_RCN =
|
2006
|
-
T.let(
|
2007
|
-
:do_rcn,
|
2008
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2009
|
-
)
|
2010
|
-
EC_RUC =
|
2011
|
-
T.let(
|
2012
|
-
:ec_ruc,
|
2013
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2014
|
-
)
|
2015
|
-
EG_TIN =
|
2016
|
-
T.let(
|
2017
|
-
:eg_tin,
|
2018
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2019
|
-
)
|
2020
|
-
ES_CIF =
|
2021
|
-
T.let(
|
2022
|
-
:es_cif,
|
2023
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2024
|
-
)
|
2025
|
-
EU_OSS_VAT =
|
2026
|
-
T.let(
|
2027
|
-
:eu_oss_vat,
|
2028
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2029
|
-
)
|
2030
|
-
GB_VAT =
|
2031
|
-
T.let(
|
2032
|
-
:gb_vat,
|
2033
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2034
|
-
)
|
2035
|
-
GE_VAT =
|
2036
|
-
T.let(
|
2037
|
-
:ge_vat,
|
2038
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2039
|
-
)
|
2040
|
-
HK_BR =
|
2041
|
-
T.let(
|
2042
|
-
:hk_br,
|
2043
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2044
|
-
)
|
2045
|
-
HU_TIN =
|
2046
|
-
T.let(
|
2047
|
-
:hu_tin,
|
2048
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2049
|
-
)
|
2050
|
-
ID_NPWP =
|
2051
|
-
T.let(
|
2052
|
-
:id_npwp,
|
2053
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2054
|
-
)
|
2055
|
-
IL_VAT =
|
2056
|
-
T.let(
|
2057
|
-
:il_vat,
|
2058
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2059
|
-
)
|
2060
|
-
IN_GST =
|
2061
|
-
T.let(
|
2062
|
-
:in_gst,
|
2063
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2064
|
-
)
|
2065
|
-
IS_VAT =
|
2066
|
-
T.let(
|
2067
|
-
:is_vat,
|
2068
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2069
|
-
)
|
2070
|
-
JP_CN =
|
2071
|
-
T.let(
|
2072
|
-
:jp_cn,
|
2073
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2074
|
-
)
|
2075
|
-
JP_RN =
|
2076
|
-
T.let(
|
2077
|
-
:jp_rn,
|
2078
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2079
|
-
)
|
2080
|
-
JP_TRN =
|
2081
|
-
T.let(
|
2082
|
-
:jp_trn,
|
2083
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2084
|
-
)
|
2085
|
-
KE_PIN =
|
2086
|
-
T.let(
|
2087
|
-
:ke_pin,
|
2088
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2089
|
-
)
|
2090
|
-
KR_BRN =
|
2091
|
-
T.let(
|
2092
|
-
:kr_brn,
|
2093
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2094
|
-
)
|
2095
|
-
KZ_BIN =
|
2096
|
-
T.let(
|
2097
|
-
:kz_bin,
|
2098
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2099
|
-
)
|
2100
|
-
LI_UID =
|
2101
|
-
T.let(
|
2102
|
-
:li_uid,
|
2103
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2104
|
-
)
|
2105
|
-
MX_RFC =
|
2106
|
-
T.let(
|
2107
|
-
:mx_rfc,
|
2108
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2109
|
-
)
|
2110
|
-
MY_FRP =
|
2111
|
-
T.let(
|
2112
|
-
:my_frp,
|
2113
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2114
|
-
)
|
2115
|
-
MY_ITN =
|
2116
|
-
T.let(
|
2117
|
-
:my_itn,
|
2118
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2119
|
-
)
|
2120
|
-
MY_SST =
|
2121
|
-
T.let(
|
2122
|
-
:my_sst,
|
2123
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2124
|
-
)
|
2125
|
-
NG_TIN =
|
2126
|
-
T.let(
|
2127
|
-
:ng_tin,
|
2128
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2129
|
-
)
|
2130
|
-
NO_VAT =
|
2131
|
-
T.let(
|
2132
|
-
:no_vat,
|
2133
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2134
|
-
)
|
2135
|
-
NO_VOEC =
|
2136
|
-
T.let(
|
2137
|
-
:no_voec,
|
2138
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2139
|
-
)
|
2140
|
-
NZ_GST =
|
2141
|
-
T.let(
|
2142
|
-
:nz_gst,
|
2143
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2144
|
-
)
|
2145
|
-
OM_VAT =
|
2146
|
-
T.let(
|
2147
|
-
:om_vat,
|
2148
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2149
|
-
)
|
2150
|
-
PE_RUC =
|
2151
|
-
T.let(
|
2152
|
-
:pe_ruc,
|
2153
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2154
|
-
)
|
2155
|
-
PH_TIN =
|
2156
|
-
T.let(
|
2157
|
-
:ph_tin,
|
2158
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2159
|
-
)
|
2160
|
-
RO_TIN =
|
2161
|
-
T.let(
|
2162
|
-
:ro_tin,
|
2163
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2164
|
-
)
|
2165
|
-
RS_PIB =
|
2166
|
-
T.let(
|
2167
|
-
:rs_pib,
|
2168
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2169
|
-
)
|
2170
|
-
RU_INN =
|
2171
|
-
T.let(
|
2172
|
-
:ru_inn,
|
2173
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2174
|
-
)
|
2175
|
-
RU_KPP =
|
2176
|
-
T.let(
|
2177
|
-
:ru_kpp,
|
2178
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2179
|
-
)
|
2180
|
-
SA_VAT =
|
2181
|
-
T.let(
|
2182
|
-
:sa_vat,
|
2183
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2184
|
-
)
|
2185
|
-
SG_GST =
|
2186
|
-
T.let(
|
2187
|
-
:sg_gst,
|
2188
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2189
|
-
)
|
2190
|
-
SG_UEN =
|
2191
|
-
T.let(
|
2192
|
-
:sg_uen,
|
2193
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2194
|
-
)
|
2195
|
-
SI_TIN =
|
2196
|
-
T.let(
|
2197
|
-
:si_tin,
|
2198
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2199
|
-
)
|
2200
|
-
SV_NIT =
|
2201
|
-
T.let(
|
2202
|
-
:sv_nit,
|
2203
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2204
|
-
)
|
2205
|
-
TH_VAT =
|
2206
|
-
T.let(
|
2207
|
-
:th_vat,
|
2208
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2209
|
-
)
|
2210
|
-
TR_TIN =
|
2211
|
-
T.let(
|
2212
|
-
:tr_tin,
|
2213
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2214
|
-
)
|
2215
|
-
TW_VAT =
|
2216
|
-
T.let(
|
2217
|
-
:tw_vat,
|
2218
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2219
|
-
)
|
2220
|
-
UA_VAT =
|
2221
|
-
T.let(
|
2222
|
-
:ua_vat,
|
2223
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2224
|
-
)
|
2225
|
-
US_EIN =
|
2226
|
-
T.let(
|
2227
|
-
:us_ein,
|
2228
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2229
|
-
)
|
2230
|
-
UY_RUC =
|
2231
|
-
T.let(
|
2232
|
-
:uy_ruc,
|
2233
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2234
|
-
)
|
2235
|
-
VE_RIF =
|
2236
|
-
T.let(
|
2237
|
-
:ve_rif,
|
2238
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2239
|
-
)
|
2240
|
-
VN_TIN =
|
2241
|
-
T.let(
|
2242
|
-
:vn_tin,
|
2243
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2244
|
-
)
|
2245
|
-
ZA_VAT =
|
2246
|
-
T.let(
|
2247
|
-
:za_vat,
|
2248
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2249
|
-
)
|
2250
|
-
|
2251
|
-
sig do
|
2252
|
-
override.returns(
|
2253
|
-
T::Array[
|
2254
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2255
|
-
]
|
2256
|
-
)
|
2257
|
-
end
|
2258
|
-
def self.values
|
2259
|
-
end
|
2260
|
-
end
|
2261
|
-
end
|
2262
|
-
|
2263
|
-
module InvoiceSource
|
2264
|
-
extend Orb::Internal::Type::Enum
|
2265
|
-
|
2266
|
-
TaggedSymbol =
|
2267
|
-
T.type_alias do
|
2268
|
-
T.all(
|
2269
|
-
Symbol,
|
2270
|
-
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource
|
2271
|
-
)
|
2272
|
-
end
|
2273
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2274
|
-
|
2275
|
-
SUBSCRIPTION =
|
2276
|
-
T.let(
|
2277
|
-
:subscription,
|
2278
|
-
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol
|
2279
|
-
)
|
2280
|
-
PARTIAL =
|
2281
|
-
T.let(
|
2282
|
-
:partial,
|
2283
|
-
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol
|
2284
|
-
)
|
2285
|
-
ONE_OFF =
|
2286
|
-
T.let(
|
2287
|
-
:one_off,
|
2288
|
-
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol
|
2289
|
-
)
|
2290
|
-
|
2291
|
-
sig do
|
2292
|
-
override.returns(
|
2293
|
-
T::Array[
|
2294
|
-
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol
|
2295
|
-
]
|
2296
|
-
)
|
2297
|
-
end
|
2298
|
-
def self.values
|
2299
|
-
end
|
2300
|
-
end
|
2301
|
-
|
2302
|
-
class LineItem < Orb::Internal::Type::BaseModel
|
2303
|
-
OrHash =
|
2304
|
-
T.type_alias do
|
2305
|
-
T.any(
|
2306
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem,
|
2307
|
-
Orb::Internal::AnyHash
|
2308
|
-
)
|
2309
|
-
end
|
2310
|
-
|
2311
|
-
# A unique ID for this line item.
|
2312
|
-
sig { returns(String) }
|
2313
|
-
attr_accessor :id
|
2314
|
-
|
2315
|
-
# The line amount after any adjustments and before overage conversion, credits and
|
2316
|
-
# partial invoicing.
|
2317
|
-
sig { returns(String) }
|
2318
|
-
attr_accessor :adjusted_subtotal
|
2319
|
-
|
2320
|
-
# All adjustments applied to the line item in the order they were applied based on
|
2321
|
-
# invoice calculations (ie. usage discounts -> amount discounts -> percentage
|
2322
|
-
# discounts -> minimums -> maximums).
|
2323
|
-
sig do
|
2324
|
-
returns(
|
2325
|
-
T::Array[
|
2326
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Variants
|
2327
|
-
]
|
2328
|
-
)
|
2329
|
-
end
|
2330
|
-
attr_accessor :adjustments
|
2331
|
-
|
2332
|
-
# The final amount for a line item after all adjustments and pre paid credits have
|
2333
|
-
# been applied.
|
2334
|
-
sig { returns(String) }
|
2335
|
-
attr_accessor :amount
|
2336
|
-
|
2337
|
-
# The number of prepaid credits applied.
|
2338
|
-
sig { returns(String) }
|
2339
|
-
attr_accessor :credits_applied
|
2340
|
-
|
2341
|
-
sig { returns(T.nilable(Orb::Discount::Variants)) }
|
2342
|
-
attr_accessor :discount
|
2343
|
-
|
2344
|
-
# The end date of the range of time applied for this line item's price.
|
2345
|
-
sig { returns(Time) }
|
2346
|
-
attr_accessor :end_date
|
2347
|
-
|
2348
|
-
# An additional filter that was used to calculate the usage for this line item.
|
2349
|
-
sig { returns(T.nilable(String)) }
|
2350
|
-
attr_accessor :filter
|
2351
|
-
|
2352
|
-
# [DEPRECATED] For configured prices that are split by a grouping key, this will
|
2353
|
-
# be populated with the key and a value. The `amount` and `subtotal` will be the
|
2354
|
-
# values for this particular grouping.
|
2355
|
-
sig { returns(T.nilable(String)) }
|
2356
|
-
attr_accessor :grouping
|
2357
|
-
|
2358
|
-
# This field is deprecated in favor of `adjustments`.
|
2359
|
-
sig do
|
2360
|
-
returns(
|
2361
|
-
T.nilable(
|
2362
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum
|
2363
|
-
)
|
2364
|
-
)
|
2365
|
-
end
|
2366
|
-
attr_reader :maximum
|
2367
|
-
|
2368
|
-
sig do
|
2369
|
-
params(
|
2370
|
-
maximum:
|
2371
|
-
T.nilable(
|
2372
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::OrHash
|
2373
|
-
)
|
2374
|
-
).void
|
2375
|
-
end
|
2376
|
-
attr_writer :maximum
|
2377
|
-
|
2378
|
-
# This field is deprecated in favor of `adjustments`.
|
2379
|
-
sig { returns(T.nilable(String)) }
|
2380
|
-
attr_accessor :maximum_amount
|
2381
|
-
|
2382
|
-
# This field is deprecated in favor of `adjustments`.
|
2383
|
-
sig do
|
2384
|
-
returns(
|
2385
|
-
T.nilable(
|
2386
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum
|
2387
|
-
)
|
2388
|
-
)
|
2389
|
-
end
|
2390
|
-
attr_reader :minimum
|
2391
|
-
|
2392
|
-
sig do
|
2393
|
-
params(
|
2394
|
-
minimum:
|
2395
|
-
T.nilable(
|
2396
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::OrHash
|
2397
|
-
)
|
2398
|
-
).void
|
2399
|
-
end
|
2400
|
-
attr_writer :minimum
|
2401
|
-
|
2402
|
-
# This field is deprecated in favor of `adjustments`.
|
2403
|
-
sig { returns(T.nilable(String)) }
|
2404
|
-
attr_accessor :minimum_amount
|
2405
|
-
|
2406
|
-
# The name of the price associated with this line item.
|
2407
|
-
sig { returns(String) }
|
2408
|
-
attr_accessor :name
|
2409
|
-
|
2410
|
-
# Any amount applied from a partial invoice
|
2411
|
-
sig { returns(String) }
|
2412
|
-
attr_accessor :partially_invoiced_amount
|
2413
|
-
|
2414
|
-
# The Price resource represents a price that can be billed on a subscription,
|
2415
|
-
# resulting in a charge on an invoice in the form of an invoice line item. Prices
|
2416
|
-
# take a quantity and determine an amount to bill.
|
2417
|
-
#
|
2418
|
-
# Orb supports a few different pricing models out of the box. Each of these models
|
2419
|
-
# is serialized differently in a given Price object. The model_type field
|
2420
|
-
# determines the key for the configuration object that is present.
|
2421
|
-
#
|
2422
|
-
# For more on the types of prices, see
|
2423
|
-
# [the core concepts documentation](/core-concepts#plan-and-price)
|
2424
|
-
sig { returns(Orb::Price::Variants) }
|
2425
|
-
attr_accessor :price
|
2426
|
-
|
2427
|
-
# Either the fixed fee quantity or the usage during the service period.
|
2428
|
-
sig { returns(Float) }
|
2429
|
-
attr_accessor :quantity
|
2430
|
-
|
2431
|
-
# The start date of the range of time applied for this line item's price.
|
2432
|
-
sig { returns(Time) }
|
2433
|
-
attr_accessor :start_date
|
2434
|
-
|
2435
|
-
# For complex pricing structures, the line item can be broken down further in
|
2436
|
-
# `sub_line_items`.
|
2437
|
-
sig do
|
2438
|
-
returns(
|
2439
|
-
T::Array[
|
2440
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Variants
|
2441
|
-
]
|
2442
|
-
)
|
2443
|
-
end
|
2444
|
-
attr_accessor :sub_line_items
|
2445
|
-
|
2446
|
-
# The line amount before before any adjustments.
|
2447
|
-
sig { returns(String) }
|
2448
|
-
attr_accessor :subtotal
|
2449
|
-
|
2450
|
-
# An array of tax rates and their incurred tax amounts. Empty if no tax
|
2451
|
-
# integration is configured.
|
2452
|
-
sig do
|
2453
|
-
returns(
|
2454
|
-
T::Array[
|
2455
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount
|
2456
|
-
]
|
2457
|
-
)
|
2458
|
-
end
|
2459
|
-
attr_accessor :tax_amounts
|
2460
|
-
|
2461
|
-
# A list of customer ids that were used to calculate the usage for this line item.
|
2462
|
-
sig { returns(T.nilable(T::Array[String])) }
|
2463
|
-
attr_accessor :usage_customer_ids
|
2464
|
-
|
2465
|
-
sig do
|
2466
|
-
params(
|
2467
|
-
id: String,
|
2468
|
-
adjusted_subtotal: String,
|
2469
|
-
adjustments:
|
2470
|
-
T::Array[
|
2471
|
-
T.any(
|
2472
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::OrHash,
|
2473
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::OrHash,
|
2474
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::OrHash,
|
2475
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::OrHash,
|
2476
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::OrHash
|
2477
|
-
)
|
2478
|
-
],
|
2479
|
-
amount: String,
|
2480
|
-
credits_applied: String,
|
2481
|
-
discount:
|
2482
|
-
T.nilable(
|
2483
|
-
T.any(
|
2484
|
-
Orb::PercentageDiscount::OrHash,
|
2485
|
-
Orb::TrialDiscount::OrHash,
|
2486
|
-
Orb::UsageDiscount::OrHash,
|
2487
|
-
Orb::AmountDiscount::OrHash
|
2488
|
-
)
|
2489
|
-
),
|
2490
|
-
end_date: Time,
|
2491
|
-
filter: T.nilable(String),
|
2492
|
-
grouping: T.nilable(String),
|
2493
|
-
maximum:
|
2494
|
-
T.nilable(
|
2495
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::OrHash
|
2496
|
-
),
|
2497
|
-
maximum_amount: T.nilable(String),
|
2498
|
-
minimum:
|
2499
|
-
T.nilable(
|
2500
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::OrHash
|
2501
|
-
),
|
2502
|
-
minimum_amount: T.nilable(String),
|
2503
|
-
name: String,
|
2504
|
-
partially_invoiced_amount: String,
|
2505
|
-
price:
|
2506
|
-
T.any(
|
2507
|
-
Orb::Price::Unit::OrHash,
|
2508
|
-
Orb::Price::Package::OrHash,
|
2509
|
-
Orb::Price::Matrix::OrHash,
|
2510
|
-
Orb::Price::Tiered::OrHash,
|
2511
|
-
Orb::Price::TieredBps::OrHash,
|
2512
|
-
Orb::Price::Bps::OrHash,
|
2513
|
-
Orb::Price::BulkBps::OrHash,
|
2514
|
-
Orb::Price::Bulk::OrHash,
|
2515
|
-
Orb::Price::ThresholdTotalAmount::OrHash,
|
2516
|
-
Orb::Price::TieredPackage::OrHash,
|
2517
|
-
Orb::Price::GroupedTiered::OrHash,
|
2518
|
-
Orb::Price::TieredWithMinimum::OrHash,
|
2519
|
-
Orb::Price::TieredPackageWithMinimum::OrHash,
|
2520
|
-
Orb::Price::PackageWithAllocation::OrHash,
|
2521
|
-
Orb::Price::UnitWithPercent::OrHash,
|
2522
|
-
Orb::Price::MatrixWithAllocation::OrHash,
|
2523
|
-
Orb::Price::TieredWithProration::OrHash,
|
2524
|
-
Orb::Price::UnitWithProration::OrHash,
|
2525
|
-
Orb::Price::GroupedAllocation::OrHash,
|
2526
|
-
Orb::Price::GroupedWithProratedMinimum::OrHash,
|
2527
|
-
Orb::Price::GroupedWithMeteredMinimum::OrHash,
|
2528
|
-
Orb::Price::MatrixWithDisplayName::OrHash,
|
2529
|
-
Orb::Price::BulkWithProration::OrHash,
|
2530
|
-
Orb::Price::GroupedTieredPackage::OrHash,
|
2531
|
-
Orb::Price::MaxGroupTieredPackage::OrHash,
|
2532
|
-
Orb::Price::ScalableMatrixWithUnitPricing::OrHash,
|
2533
|
-
Orb::Price::ScalableMatrixWithTieredPricing::OrHash,
|
2534
|
-
Orb::Price::CumulativeGroupedBulk::OrHash
|
2535
|
-
),
|
2536
|
-
quantity: Float,
|
2537
|
-
start_date: Time,
|
2538
|
-
sub_line_items:
|
2539
|
-
T::Array[
|
2540
|
-
T.any(
|
2541
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::OrHash,
|
2542
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::OrHash,
|
2543
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::OrHash
|
2544
|
-
)
|
2545
|
-
],
|
2546
|
-
subtotal: String,
|
2547
|
-
tax_amounts:
|
2548
|
-
T::Array[
|
2549
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount::OrHash
|
2550
|
-
],
|
2551
|
-
usage_customer_ids: T.nilable(T::Array[String])
|
2552
|
-
).returns(T.attached_class)
|
2553
|
-
end
|
2554
|
-
def self.new(
|
2555
|
-
# A unique ID for this line item.
|
2556
|
-
id:,
|
2557
|
-
# The line amount after any adjustments and before overage conversion, credits and
|
2558
|
-
# partial invoicing.
|
2559
|
-
adjusted_subtotal:,
|
2560
|
-
# All adjustments applied to the line item in the order they were applied based on
|
2561
|
-
# invoice calculations (ie. usage discounts -> amount discounts -> percentage
|
2562
|
-
# discounts -> minimums -> maximums).
|
2563
|
-
adjustments:,
|
2564
|
-
# The final amount for a line item after all adjustments and pre paid credits have
|
2565
|
-
# been applied.
|
2566
|
-
amount:,
|
2567
|
-
# The number of prepaid credits applied.
|
2568
|
-
credits_applied:,
|
2569
|
-
discount:,
|
2570
|
-
# The end date of the range of time applied for this line item's price.
|
2571
|
-
end_date:,
|
2572
|
-
# An additional filter that was used to calculate the usage for this line item.
|
2573
|
-
filter:,
|
2574
|
-
# [DEPRECATED] For configured prices that are split by a grouping key, this will
|
2575
|
-
# be populated with the key and a value. The `amount` and `subtotal` will be the
|
2576
|
-
# values for this particular grouping.
|
2577
|
-
grouping:,
|
2578
|
-
# This field is deprecated in favor of `adjustments`.
|
2579
|
-
maximum:,
|
2580
|
-
# This field is deprecated in favor of `adjustments`.
|
2581
|
-
maximum_amount:,
|
2582
|
-
# This field is deprecated in favor of `adjustments`.
|
2583
|
-
minimum:,
|
2584
|
-
# This field is deprecated in favor of `adjustments`.
|
2585
|
-
minimum_amount:,
|
2586
|
-
# The name of the price associated with this line item.
|
2587
|
-
name:,
|
2588
|
-
# Any amount applied from a partial invoice
|
2589
|
-
partially_invoiced_amount:,
|
2590
|
-
# The Price resource represents a price that can be billed on a subscription,
|
2591
|
-
# resulting in a charge on an invoice in the form of an invoice line item. Prices
|
2592
|
-
# take a quantity and determine an amount to bill.
|
2593
|
-
#
|
2594
|
-
# Orb supports a few different pricing models out of the box. Each of these models
|
2595
|
-
# is serialized differently in a given Price object. The model_type field
|
2596
|
-
# determines the key for the configuration object that is present.
|
2597
|
-
#
|
2598
|
-
# For more on the types of prices, see
|
2599
|
-
# [the core concepts documentation](/core-concepts#plan-and-price)
|
2600
|
-
price:,
|
2601
|
-
# Either the fixed fee quantity or the usage during the service period.
|
2602
|
-
quantity:,
|
2603
|
-
# The start date of the range of time applied for this line item's price.
|
2604
|
-
start_date:,
|
2605
|
-
# For complex pricing structures, the line item can be broken down further in
|
2606
|
-
# `sub_line_items`.
|
2607
|
-
sub_line_items:,
|
2608
|
-
# The line amount before before any adjustments.
|
2609
|
-
subtotal:,
|
2610
|
-
# An array of tax rates and their incurred tax amounts. Empty if no tax
|
2611
|
-
# integration is configured.
|
2612
|
-
tax_amounts:,
|
2613
|
-
# A list of customer ids that were used to calculate the usage for this line item.
|
2614
|
-
usage_customer_ids:
|
2615
|
-
)
|
2616
|
-
end
|
2617
|
-
|
2618
|
-
sig do
|
2619
|
-
override.returns(
|
2620
|
-
{
|
2621
|
-
id: String,
|
2622
|
-
adjusted_subtotal: String,
|
2623
|
-
adjustments:
|
2624
|
-
T::Array[
|
2625
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Variants
|
2626
|
-
],
|
2627
|
-
amount: String,
|
2628
|
-
credits_applied: String,
|
2629
|
-
discount: T.nilable(Orb::Discount::Variants),
|
2630
|
-
end_date: Time,
|
2631
|
-
filter: T.nilable(String),
|
2632
|
-
grouping: T.nilable(String),
|
2633
|
-
maximum:
|
2634
|
-
T.nilable(
|
2635
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum
|
2636
|
-
),
|
2637
|
-
maximum_amount: T.nilable(String),
|
2638
|
-
minimum:
|
2639
|
-
T.nilable(
|
2640
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum
|
2641
|
-
),
|
2642
|
-
minimum_amount: T.nilable(String),
|
2643
|
-
name: String,
|
2644
|
-
partially_invoiced_amount: String,
|
2645
|
-
price: Orb::Price::Variants,
|
2646
|
-
quantity: Float,
|
2647
|
-
start_date: Time,
|
2648
|
-
sub_line_items:
|
2649
|
-
T::Array[
|
2650
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Variants
|
2651
|
-
],
|
2652
|
-
subtotal: String,
|
2653
|
-
tax_amounts:
|
2654
|
-
T::Array[
|
2655
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount
|
2656
|
-
],
|
2657
|
-
usage_customer_ids: T.nilable(T::Array[String])
|
2658
|
-
}
|
2659
|
-
)
|
2660
|
-
end
|
2661
|
-
def to_hash
|
2662
|
-
end
|
2663
|
-
|
2664
|
-
module Adjustment
|
2665
|
-
extend Orb::Internal::Type::Union
|
2666
|
-
|
2667
|
-
Variants =
|
2668
|
-
T.type_alias do
|
2669
|
-
T.any(
|
2670
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount,
|
2671
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount,
|
2672
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount,
|
2673
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum,
|
2674
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum
|
2675
|
-
)
|
2676
|
-
end
|
2677
|
-
|
2678
|
-
class UsageDiscount < Orb::Internal::Type::BaseModel
|
2679
|
-
OrHash =
|
2680
|
-
T.type_alias do
|
2681
|
-
T.any(
|
2682
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount,
|
2683
|
-
Orb::Internal::AnyHash
|
2684
|
-
)
|
2685
|
-
end
|
2686
|
-
|
2687
|
-
sig { returns(String) }
|
2688
|
-
attr_accessor :id
|
2689
|
-
|
2690
|
-
sig { returns(Symbol) }
|
2691
|
-
attr_accessor :adjustment_type
|
2692
|
-
|
2693
|
-
# The value applied by an adjustment.
|
2694
|
-
sig { returns(String) }
|
2695
|
-
attr_accessor :amount
|
2696
|
-
|
2697
|
-
# The price IDs that this adjustment applies to.
|
2698
|
-
sig { returns(T::Array[String]) }
|
2699
|
-
attr_accessor :applies_to_price_ids
|
2700
|
-
|
2701
|
-
# The filters that determine which prices to apply this adjustment to.
|
2702
|
-
sig do
|
2703
|
-
returns(
|
2704
|
-
T::Array[
|
2705
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter
|
2706
|
-
]
|
2707
|
-
)
|
2708
|
-
end
|
2709
|
-
attr_accessor :filters
|
2710
|
-
|
2711
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
2712
|
-
# that apply to only one price.
|
2713
|
-
sig { returns(T::Boolean) }
|
2714
|
-
attr_accessor :is_invoice_level
|
2715
|
-
|
2716
|
-
# The reason for the adjustment.
|
2717
|
-
sig { returns(T.nilable(String)) }
|
2718
|
-
attr_accessor :reason
|
2719
|
-
|
2720
|
-
# The number of usage units by which to discount the price this adjustment applies
|
2721
|
-
# to in a given billing period.
|
2722
|
-
sig { returns(Float) }
|
2723
|
-
attr_accessor :usage_discount
|
2724
|
-
|
2725
|
-
sig do
|
2726
|
-
params(
|
2727
|
-
id: String,
|
2728
|
-
amount: String,
|
2729
|
-
applies_to_price_ids: T::Array[String],
|
2730
|
-
filters:
|
2731
|
-
T::Array[
|
2732
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::OrHash
|
2733
|
-
],
|
2734
|
-
is_invoice_level: T::Boolean,
|
2735
|
-
reason: T.nilable(String),
|
2736
|
-
usage_discount: Float,
|
2737
|
-
adjustment_type: Symbol
|
2738
|
-
).returns(T.attached_class)
|
2739
|
-
end
|
2740
|
-
def self.new(
|
2741
|
-
id:,
|
2742
|
-
# The value applied by an adjustment.
|
2743
|
-
amount:,
|
2744
|
-
# The price IDs that this adjustment applies to.
|
2745
|
-
applies_to_price_ids:,
|
2746
|
-
# The filters that determine which prices to apply this adjustment to.
|
2747
|
-
filters:,
|
2748
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
2749
|
-
# that apply to only one price.
|
2750
|
-
is_invoice_level:,
|
2751
|
-
# The reason for the adjustment.
|
2752
|
-
reason:,
|
2753
|
-
# The number of usage units by which to discount the price this adjustment applies
|
2754
|
-
# to in a given billing period.
|
2755
|
-
usage_discount:,
|
2756
|
-
adjustment_type: :usage_discount
|
2757
|
-
)
|
2758
|
-
end
|
2759
|
-
|
2760
|
-
sig do
|
2761
|
-
override.returns(
|
2762
|
-
{
|
2763
|
-
id: String,
|
2764
|
-
adjustment_type: Symbol,
|
2765
|
-
amount: String,
|
2766
|
-
applies_to_price_ids: T::Array[String],
|
2767
|
-
filters:
|
2768
|
-
T::Array[
|
2769
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter
|
2770
|
-
],
|
2771
|
-
is_invoice_level: T::Boolean,
|
2772
|
-
reason: T.nilable(String),
|
2773
|
-
usage_discount: Float
|
2774
|
-
}
|
2775
|
-
)
|
2776
|
-
end
|
2777
|
-
def to_hash
|
2778
|
-
end
|
2779
|
-
|
2780
|
-
class Filter < Orb::Internal::Type::BaseModel
|
2781
|
-
OrHash =
|
2782
|
-
T.type_alias do
|
2783
|
-
T.any(
|
2784
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter,
|
2785
|
-
Orb::Internal::AnyHash
|
2786
|
-
)
|
2787
|
-
end
|
2788
|
-
|
2789
|
-
# The property of the price to filter on.
|
2790
|
-
sig do
|
2791
|
-
returns(
|
2792
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
|
2793
|
-
)
|
2794
|
-
end
|
2795
|
-
attr_accessor :field
|
2796
|
-
|
2797
|
-
# Should prices that match the filter be included or excluded.
|
2798
|
-
sig do
|
2799
|
-
returns(
|
2800
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
|
2801
|
-
)
|
2802
|
-
end
|
2803
|
-
attr_accessor :operator
|
2804
|
-
|
2805
|
-
# The IDs or values that match this filter.
|
2806
|
-
sig { returns(T::Array[String]) }
|
2807
|
-
attr_accessor :values
|
2808
|
-
|
2809
|
-
sig do
|
2810
|
-
params(
|
2811
|
-
field:
|
2812
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Field::OrSymbol,
|
2813
|
-
operator:
|
2814
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Operator::OrSymbol,
|
2815
|
-
values: T::Array[String]
|
2816
|
-
).returns(T.attached_class)
|
2817
|
-
end
|
2818
|
-
def self.new(
|
2819
|
-
# The property of the price to filter on.
|
2820
|
-
field:,
|
2821
|
-
# Should prices that match the filter be included or excluded.
|
2822
|
-
operator:,
|
2823
|
-
# The IDs or values that match this filter.
|
2824
|
-
values:
|
2825
|
-
)
|
2826
|
-
end
|
2827
|
-
|
2828
|
-
sig do
|
2829
|
-
override.returns(
|
2830
|
-
{
|
2831
|
-
field:
|
2832
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol,
|
2833
|
-
operator:
|
2834
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol,
|
2835
|
-
values: T::Array[String]
|
2836
|
-
}
|
2837
|
-
)
|
2838
|
-
end
|
2839
|
-
def to_hash
|
2840
|
-
end
|
2841
|
-
|
2842
|
-
# The property of the price to filter on.
|
2843
|
-
module Field
|
2844
|
-
extend Orb::Internal::Type::Enum
|
2845
|
-
|
2846
|
-
TaggedSymbol =
|
2847
|
-
T.type_alias do
|
2848
|
-
T.all(
|
2849
|
-
Symbol,
|
2850
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Field
|
2851
|
-
)
|
2852
|
-
end
|
2853
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2854
|
-
|
2855
|
-
PRICE_ID =
|
2856
|
-
T.let(
|
2857
|
-
:price_id,
|
2858
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
|
2859
|
-
)
|
2860
|
-
ITEM_ID =
|
2861
|
-
T.let(
|
2862
|
-
:item_id,
|
2863
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
|
2864
|
-
)
|
2865
|
-
PRICE_TYPE =
|
2866
|
-
T.let(
|
2867
|
-
:price_type,
|
2868
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
|
2869
|
-
)
|
2870
|
-
CURRENCY =
|
2871
|
-
T.let(
|
2872
|
-
:currency,
|
2873
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
|
2874
|
-
)
|
2875
|
-
PRICING_UNIT_ID =
|
2876
|
-
T.let(
|
2877
|
-
:pricing_unit_id,
|
2878
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
|
2879
|
-
)
|
2880
|
-
|
2881
|
-
sig do
|
2882
|
-
override.returns(
|
2883
|
-
T::Array[
|
2884
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
|
2885
|
-
]
|
2886
|
-
)
|
2887
|
-
end
|
2888
|
-
def self.values
|
2889
|
-
end
|
2890
|
-
end
|
2891
|
-
|
2892
|
-
# Should prices that match the filter be included or excluded.
|
2893
|
-
module Operator
|
2894
|
-
extend Orb::Internal::Type::Enum
|
2895
|
-
|
2896
|
-
TaggedSymbol =
|
2897
|
-
T.type_alias do
|
2898
|
-
T.all(
|
2899
|
-
Symbol,
|
2900
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Operator
|
2901
|
-
)
|
2902
|
-
end
|
2903
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2904
|
-
|
2905
|
-
INCLUDES =
|
2906
|
-
T.let(
|
2907
|
-
:includes,
|
2908
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
|
2909
|
-
)
|
2910
|
-
EXCLUDES =
|
2911
|
-
T.let(
|
2912
|
-
:excludes,
|
2913
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
|
2914
|
-
)
|
2915
|
-
|
2916
|
-
sig do
|
2917
|
-
override.returns(
|
2918
|
-
T::Array[
|
2919
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
|
2920
|
-
]
|
2921
|
-
)
|
2922
|
-
end
|
2923
|
-
def self.values
|
2924
|
-
end
|
2925
|
-
end
|
2926
|
-
end
|
2927
|
-
end
|
2928
|
-
|
2929
|
-
class AmountDiscount < Orb::Internal::Type::BaseModel
|
2930
|
-
OrHash =
|
2931
|
-
T.type_alias do
|
2932
|
-
T.any(
|
2933
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount,
|
2934
|
-
Orb::Internal::AnyHash
|
2935
|
-
)
|
2936
|
-
end
|
2937
|
-
|
2938
|
-
sig { returns(String) }
|
2939
|
-
attr_accessor :id
|
2940
|
-
|
2941
|
-
sig { returns(Symbol) }
|
2942
|
-
attr_accessor :adjustment_type
|
2943
|
-
|
2944
|
-
# The value applied by an adjustment.
|
2945
|
-
sig { returns(String) }
|
2946
|
-
attr_accessor :amount
|
2947
|
-
|
2948
|
-
# The amount by which to discount the prices this adjustment applies to in a given
|
2949
|
-
# billing period.
|
2950
|
-
sig { returns(String) }
|
2951
|
-
attr_accessor :amount_discount
|
2952
|
-
|
2953
|
-
# The price IDs that this adjustment applies to.
|
2954
|
-
sig { returns(T::Array[String]) }
|
2955
|
-
attr_accessor :applies_to_price_ids
|
2956
|
-
|
2957
|
-
# The filters that determine which prices to apply this adjustment to.
|
2958
|
-
sig do
|
2959
|
-
returns(
|
2960
|
-
T::Array[
|
2961
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter
|
2962
|
-
]
|
2963
|
-
)
|
2964
|
-
end
|
2965
|
-
attr_accessor :filters
|
2966
|
-
|
2967
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
2968
|
-
# that apply to only one price.
|
2969
|
-
sig { returns(T::Boolean) }
|
2970
|
-
attr_accessor :is_invoice_level
|
2971
|
-
|
2972
|
-
# The reason for the adjustment.
|
2973
|
-
sig { returns(T.nilable(String)) }
|
2974
|
-
attr_accessor :reason
|
2975
|
-
|
2976
|
-
sig do
|
2977
|
-
params(
|
2978
|
-
id: String,
|
2979
|
-
amount: String,
|
2980
|
-
amount_discount: String,
|
2981
|
-
applies_to_price_ids: T::Array[String],
|
2982
|
-
filters:
|
2983
|
-
T::Array[
|
2984
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::OrHash
|
2985
|
-
],
|
2986
|
-
is_invoice_level: T::Boolean,
|
2987
|
-
reason: T.nilable(String),
|
2988
|
-
adjustment_type: Symbol
|
2989
|
-
).returns(T.attached_class)
|
2990
|
-
end
|
2991
|
-
def self.new(
|
2992
|
-
id:,
|
2993
|
-
# The value applied by an adjustment.
|
2994
|
-
amount:,
|
2995
|
-
# The amount by which to discount the prices this adjustment applies to in a given
|
2996
|
-
# billing period.
|
2997
|
-
amount_discount:,
|
2998
|
-
# The price IDs that this adjustment applies to.
|
2999
|
-
applies_to_price_ids:,
|
3000
|
-
# The filters that determine which prices to apply this adjustment to.
|
3001
|
-
filters:,
|
3002
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
3003
|
-
# that apply to only one price.
|
3004
|
-
is_invoice_level:,
|
3005
|
-
# The reason for the adjustment.
|
3006
|
-
reason:,
|
3007
|
-
adjustment_type: :amount_discount
|
3008
|
-
)
|
3009
|
-
end
|
3010
|
-
|
3011
|
-
sig do
|
3012
|
-
override.returns(
|
3013
|
-
{
|
3014
|
-
id: String,
|
3015
|
-
adjustment_type: Symbol,
|
3016
|
-
amount: String,
|
3017
|
-
amount_discount: String,
|
3018
|
-
applies_to_price_ids: T::Array[String],
|
3019
|
-
filters:
|
3020
|
-
T::Array[
|
3021
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter
|
3022
|
-
],
|
3023
|
-
is_invoice_level: T::Boolean,
|
3024
|
-
reason: T.nilable(String)
|
3025
|
-
}
|
3026
|
-
)
|
3027
|
-
end
|
3028
|
-
def to_hash
|
3029
|
-
end
|
3030
|
-
|
3031
|
-
class Filter < Orb::Internal::Type::BaseModel
|
3032
|
-
OrHash =
|
3033
|
-
T.type_alias do
|
3034
|
-
T.any(
|
3035
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter,
|
3036
|
-
Orb::Internal::AnyHash
|
3037
|
-
)
|
3038
|
-
end
|
3039
|
-
|
3040
|
-
# The property of the price to filter on.
|
3041
|
-
sig do
|
3042
|
-
returns(
|
3043
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
|
3044
|
-
)
|
3045
|
-
end
|
3046
|
-
attr_accessor :field
|
3047
|
-
|
3048
|
-
# Should prices that match the filter be included or excluded.
|
3049
|
-
sig do
|
3050
|
-
returns(
|
3051
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
|
3052
|
-
)
|
3053
|
-
end
|
3054
|
-
attr_accessor :operator
|
3055
|
-
|
3056
|
-
# The IDs or values that match this filter.
|
3057
|
-
sig { returns(T::Array[String]) }
|
3058
|
-
attr_accessor :values
|
3059
|
-
|
3060
|
-
sig do
|
3061
|
-
params(
|
3062
|
-
field:
|
3063
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Field::OrSymbol,
|
3064
|
-
operator:
|
3065
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Operator::OrSymbol,
|
3066
|
-
values: T::Array[String]
|
3067
|
-
).returns(T.attached_class)
|
3068
|
-
end
|
3069
|
-
def self.new(
|
3070
|
-
# The property of the price to filter on.
|
3071
|
-
field:,
|
3072
|
-
# Should prices that match the filter be included or excluded.
|
3073
|
-
operator:,
|
3074
|
-
# The IDs or values that match this filter.
|
3075
|
-
values:
|
3076
|
-
)
|
3077
|
-
end
|
3078
|
-
|
3079
|
-
sig do
|
3080
|
-
override.returns(
|
3081
|
-
{
|
3082
|
-
field:
|
3083
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol,
|
3084
|
-
operator:
|
3085
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol,
|
3086
|
-
values: T::Array[String]
|
3087
|
-
}
|
3088
|
-
)
|
3089
|
-
end
|
3090
|
-
def to_hash
|
3091
|
-
end
|
3092
|
-
|
3093
|
-
# The property of the price to filter on.
|
3094
|
-
module Field
|
3095
|
-
extend Orb::Internal::Type::Enum
|
3096
|
-
|
3097
|
-
TaggedSymbol =
|
3098
|
-
T.type_alias do
|
3099
|
-
T.all(
|
3100
|
-
Symbol,
|
3101
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Field
|
3102
|
-
)
|
3103
|
-
end
|
3104
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
3105
|
-
|
3106
|
-
PRICE_ID =
|
3107
|
-
T.let(
|
3108
|
-
:price_id,
|
3109
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
|
3110
|
-
)
|
3111
|
-
ITEM_ID =
|
3112
|
-
T.let(
|
3113
|
-
:item_id,
|
3114
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
|
3115
|
-
)
|
3116
|
-
PRICE_TYPE =
|
3117
|
-
T.let(
|
3118
|
-
:price_type,
|
3119
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
|
3120
|
-
)
|
3121
|
-
CURRENCY =
|
3122
|
-
T.let(
|
3123
|
-
:currency,
|
3124
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
|
3125
|
-
)
|
3126
|
-
PRICING_UNIT_ID =
|
3127
|
-
T.let(
|
3128
|
-
:pricing_unit_id,
|
3129
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
|
3130
|
-
)
|
3131
|
-
|
3132
|
-
sig do
|
3133
|
-
override.returns(
|
3134
|
-
T::Array[
|
3135
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
|
3136
|
-
]
|
3137
|
-
)
|
3138
|
-
end
|
3139
|
-
def self.values
|
3140
|
-
end
|
3141
|
-
end
|
3142
|
-
|
3143
|
-
# Should prices that match the filter be included or excluded.
|
3144
|
-
module Operator
|
3145
|
-
extend Orb::Internal::Type::Enum
|
3146
|
-
|
3147
|
-
TaggedSymbol =
|
3148
|
-
T.type_alias do
|
3149
|
-
T.all(
|
3150
|
-
Symbol,
|
3151
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Operator
|
3152
|
-
)
|
3153
|
-
end
|
3154
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
3155
|
-
|
3156
|
-
INCLUDES =
|
3157
|
-
T.let(
|
3158
|
-
:includes,
|
3159
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
|
3160
|
-
)
|
3161
|
-
EXCLUDES =
|
3162
|
-
T.let(
|
3163
|
-
:excludes,
|
3164
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
|
3165
|
-
)
|
3166
|
-
|
3167
|
-
sig do
|
3168
|
-
override.returns(
|
3169
|
-
T::Array[
|
3170
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
|
3171
|
-
]
|
3172
|
-
)
|
3173
|
-
end
|
3174
|
-
def self.values
|
3175
|
-
end
|
3176
|
-
end
|
3177
|
-
end
|
3178
|
-
end
|
3179
|
-
|
3180
|
-
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
3181
|
-
OrHash =
|
3182
|
-
T.type_alias do
|
3183
|
-
T.any(
|
3184
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount,
|
3185
|
-
Orb::Internal::AnyHash
|
3186
|
-
)
|
3187
|
-
end
|
3188
|
-
|
3189
|
-
sig { returns(String) }
|
3190
|
-
attr_accessor :id
|
3191
|
-
|
3192
|
-
sig { returns(Symbol) }
|
3193
|
-
attr_accessor :adjustment_type
|
3194
|
-
|
3195
|
-
# The value applied by an adjustment.
|
3196
|
-
sig { returns(String) }
|
3197
|
-
attr_accessor :amount
|
3198
|
-
|
3199
|
-
# The price IDs that this adjustment applies to.
|
3200
|
-
sig { returns(T::Array[String]) }
|
3201
|
-
attr_accessor :applies_to_price_ids
|
3202
|
-
|
3203
|
-
# The filters that determine which prices to apply this adjustment to.
|
3204
|
-
sig do
|
3205
|
-
returns(
|
3206
|
-
T::Array[
|
3207
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter
|
3208
|
-
]
|
3209
|
-
)
|
3210
|
-
end
|
3211
|
-
attr_accessor :filters
|
3212
|
-
|
3213
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
3214
|
-
# that apply to only one price.
|
3215
|
-
sig { returns(T::Boolean) }
|
3216
|
-
attr_accessor :is_invoice_level
|
3217
|
-
|
3218
|
-
# The percentage (as a value between 0 and 1) by which to discount the price
|
3219
|
-
# intervals this adjustment applies to in a given billing period.
|
3220
|
-
sig { returns(Float) }
|
3221
|
-
attr_accessor :percentage_discount
|
3222
|
-
|
3223
|
-
# The reason for the adjustment.
|
3224
|
-
sig { returns(T.nilable(String)) }
|
3225
|
-
attr_accessor :reason
|
3226
|
-
|
3227
|
-
sig do
|
3228
|
-
params(
|
3229
|
-
id: String,
|
3230
|
-
amount: String,
|
3231
|
-
applies_to_price_ids: T::Array[String],
|
3232
|
-
filters:
|
3233
|
-
T::Array[
|
3234
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::OrHash
|
3235
|
-
],
|
3236
|
-
is_invoice_level: T::Boolean,
|
3237
|
-
percentage_discount: Float,
|
3238
|
-
reason: T.nilable(String),
|
3239
|
-
adjustment_type: Symbol
|
3240
|
-
).returns(T.attached_class)
|
3241
|
-
end
|
3242
|
-
def self.new(
|
3243
|
-
id:,
|
3244
|
-
# The value applied by an adjustment.
|
3245
|
-
amount:,
|
3246
|
-
# The price IDs that this adjustment applies to.
|
3247
|
-
applies_to_price_ids:,
|
3248
|
-
# The filters that determine which prices to apply this adjustment to.
|
3249
|
-
filters:,
|
3250
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
3251
|
-
# that apply to only one price.
|
3252
|
-
is_invoice_level:,
|
3253
|
-
# The percentage (as a value between 0 and 1) by which to discount the price
|
3254
|
-
# intervals this adjustment applies to in a given billing period.
|
3255
|
-
percentage_discount:,
|
3256
|
-
# The reason for the adjustment.
|
3257
|
-
reason:,
|
3258
|
-
adjustment_type: :percentage_discount
|
3259
|
-
)
|
3260
|
-
end
|
3261
|
-
|
3262
|
-
sig do
|
3263
|
-
override.returns(
|
3264
|
-
{
|
3265
|
-
id: String,
|
3266
|
-
adjustment_type: Symbol,
|
3267
|
-
amount: String,
|
3268
|
-
applies_to_price_ids: T::Array[String],
|
3269
|
-
filters:
|
3270
|
-
T::Array[
|
3271
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter
|
3272
|
-
],
|
3273
|
-
is_invoice_level: T::Boolean,
|
3274
|
-
percentage_discount: Float,
|
3275
|
-
reason: T.nilable(String)
|
3276
|
-
}
|
3277
|
-
)
|
3278
|
-
end
|
3279
|
-
def to_hash
|
3280
|
-
end
|
3281
|
-
|
3282
|
-
class Filter < Orb::Internal::Type::BaseModel
|
3283
|
-
OrHash =
|
3284
|
-
T.type_alias do
|
3285
|
-
T.any(
|
3286
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter,
|
3287
|
-
Orb::Internal::AnyHash
|
3288
|
-
)
|
3289
|
-
end
|
3290
|
-
|
3291
|
-
# The property of the price to filter on.
|
3292
|
-
sig do
|
3293
|
-
returns(
|
3294
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
|
3295
|
-
)
|
3296
|
-
end
|
3297
|
-
attr_accessor :field
|
3298
|
-
|
3299
|
-
# Should prices that match the filter be included or excluded.
|
3300
|
-
sig do
|
3301
|
-
returns(
|
3302
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
|
3303
|
-
)
|
3304
|
-
end
|
3305
|
-
attr_accessor :operator
|
3306
|
-
|
3307
|
-
# The IDs or values that match this filter.
|
3308
|
-
sig { returns(T::Array[String]) }
|
3309
|
-
attr_accessor :values
|
3310
|
-
|
3311
|
-
sig do
|
3312
|
-
params(
|
3313
|
-
field:
|
3314
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Field::OrSymbol,
|
3315
|
-
operator:
|
3316
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Operator::OrSymbol,
|
3317
|
-
values: T::Array[String]
|
3318
|
-
).returns(T.attached_class)
|
3319
|
-
end
|
3320
|
-
def self.new(
|
3321
|
-
# The property of the price to filter on.
|
3322
|
-
field:,
|
3323
|
-
# Should prices that match the filter be included or excluded.
|
3324
|
-
operator:,
|
3325
|
-
# The IDs or values that match this filter.
|
3326
|
-
values:
|
3327
|
-
)
|
3328
|
-
end
|
3329
|
-
|
3330
|
-
sig do
|
3331
|
-
override.returns(
|
3332
|
-
{
|
3333
|
-
field:
|
3334
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol,
|
3335
|
-
operator:
|
3336
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol,
|
3337
|
-
values: T::Array[String]
|
3338
|
-
}
|
3339
|
-
)
|
3340
|
-
end
|
3341
|
-
def to_hash
|
3342
|
-
end
|
3343
|
-
|
3344
|
-
# The property of the price to filter on.
|
3345
|
-
module Field
|
3346
|
-
extend Orb::Internal::Type::Enum
|
3347
|
-
|
3348
|
-
TaggedSymbol =
|
3349
|
-
T.type_alias do
|
3350
|
-
T.all(
|
3351
|
-
Symbol,
|
3352
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Field
|
3353
|
-
)
|
3354
|
-
end
|
3355
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
3356
|
-
|
3357
|
-
PRICE_ID =
|
3358
|
-
T.let(
|
3359
|
-
:price_id,
|
3360
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
|
3361
|
-
)
|
3362
|
-
ITEM_ID =
|
3363
|
-
T.let(
|
3364
|
-
:item_id,
|
3365
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
|
3366
|
-
)
|
3367
|
-
PRICE_TYPE =
|
3368
|
-
T.let(
|
3369
|
-
:price_type,
|
3370
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
|
3371
|
-
)
|
3372
|
-
CURRENCY =
|
3373
|
-
T.let(
|
3374
|
-
:currency,
|
3375
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
|
3376
|
-
)
|
3377
|
-
PRICING_UNIT_ID =
|
3378
|
-
T.let(
|
3379
|
-
:pricing_unit_id,
|
3380
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
|
3381
|
-
)
|
3382
|
-
|
3383
|
-
sig do
|
3384
|
-
override.returns(
|
3385
|
-
T::Array[
|
3386
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
|
3387
|
-
]
|
3388
|
-
)
|
3389
|
-
end
|
3390
|
-
def self.values
|
3391
|
-
end
|
3392
|
-
end
|
3393
|
-
|
3394
|
-
# Should prices that match the filter be included or excluded.
|
3395
|
-
module Operator
|
3396
|
-
extend Orb::Internal::Type::Enum
|
3397
|
-
|
3398
|
-
TaggedSymbol =
|
3399
|
-
T.type_alias do
|
3400
|
-
T.all(
|
3401
|
-
Symbol,
|
3402
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Operator
|
3403
|
-
)
|
3404
|
-
end
|
3405
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
3406
|
-
|
3407
|
-
INCLUDES =
|
3408
|
-
T.let(
|
3409
|
-
:includes,
|
3410
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
|
3411
|
-
)
|
3412
|
-
EXCLUDES =
|
3413
|
-
T.let(
|
3414
|
-
:excludes,
|
3415
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
|
3416
|
-
)
|
3417
|
-
|
3418
|
-
sig do
|
3419
|
-
override.returns(
|
3420
|
-
T::Array[
|
3421
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
|
3422
|
-
]
|
3423
|
-
)
|
3424
|
-
end
|
3425
|
-
def self.values
|
3426
|
-
end
|
3427
|
-
end
|
3428
|
-
end
|
3429
|
-
end
|
3430
|
-
|
3431
|
-
class Minimum < Orb::Internal::Type::BaseModel
|
3432
|
-
OrHash =
|
3433
|
-
T.type_alias do
|
3434
|
-
T.any(
|
3435
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum,
|
3436
|
-
Orb::Internal::AnyHash
|
3437
|
-
)
|
3438
|
-
end
|
3439
|
-
|
3440
|
-
sig { returns(String) }
|
3441
|
-
attr_accessor :id
|
3442
|
-
|
3443
|
-
sig { returns(Symbol) }
|
3444
|
-
attr_accessor :adjustment_type
|
3445
|
-
|
3446
|
-
# The value applied by an adjustment.
|
3447
|
-
sig { returns(String) }
|
3448
|
-
attr_accessor :amount
|
3449
|
-
|
3450
|
-
# The price IDs that this adjustment applies to.
|
3451
|
-
sig { returns(T::Array[String]) }
|
3452
|
-
attr_accessor :applies_to_price_ids
|
3453
|
-
|
3454
|
-
# The filters that determine which prices to apply this adjustment to.
|
3455
|
-
sig do
|
3456
|
-
returns(
|
3457
|
-
T::Array[
|
3458
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter
|
3459
|
-
]
|
3460
|
-
)
|
3461
|
-
end
|
3462
|
-
attr_accessor :filters
|
3463
|
-
|
3464
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
3465
|
-
# that apply to only one price.
|
3466
|
-
sig { returns(T::Boolean) }
|
3467
|
-
attr_accessor :is_invoice_level
|
3468
|
-
|
3469
|
-
# The item ID that revenue from this minimum will be attributed to.
|
3470
|
-
sig { returns(String) }
|
3471
|
-
attr_accessor :item_id
|
3472
|
-
|
3473
|
-
# The minimum amount to charge in a given billing period for the prices this
|
3474
|
-
# adjustment applies to.
|
3475
|
-
sig { returns(String) }
|
3476
|
-
attr_accessor :minimum_amount
|
3477
|
-
|
3478
|
-
# The reason for the adjustment.
|
3479
|
-
sig { returns(T.nilable(String)) }
|
3480
|
-
attr_accessor :reason
|
3481
|
-
|
3482
|
-
sig do
|
3483
|
-
params(
|
3484
|
-
id: String,
|
3485
|
-
amount: String,
|
3486
|
-
applies_to_price_ids: T::Array[String],
|
3487
|
-
filters:
|
3488
|
-
T::Array[
|
3489
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::OrHash
|
3490
|
-
],
|
3491
|
-
is_invoice_level: T::Boolean,
|
3492
|
-
item_id: String,
|
3493
|
-
minimum_amount: String,
|
3494
|
-
reason: T.nilable(String),
|
3495
|
-
adjustment_type: Symbol
|
3496
|
-
).returns(T.attached_class)
|
3497
|
-
end
|
3498
|
-
def self.new(
|
3499
|
-
id:,
|
3500
|
-
# The value applied by an adjustment.
|
3501
|
-
amount:,
|
3502
|
-
# The price IDs that this adjustment applies to.
|
3503
|
-
applies_to_price_ids:,
|
3504
|
-
# The filters that determine which prices to apply this adjustment to.
|
3505
|
-
filters:,
|
3506
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
3507
|
-
# that apply to only one price.
|
3508
|
-
is_invoice_level:,
|
3509
|
-
# The item ID that revenue from this minimum will be attributed to.
|
3510
|
-
item_id:,
|
3511
|
-
# The minimum amount to charge in a given billing period for the prices this
|
3512
|
-
# adjustment applies to.
|
3513
|
-
minimum_amount:,
|
3514
|
-
# The reason for the adjustment.
|
3515
|
-
reason:,
|
3516
|
-
adjustment_type: :minimum
|
3517
|
-
)
|
3518
|
-
end
|
3519
|
-
|
3520
|
-
sig do
|
3521
|
-
override.returns(
|
3522
|
-
{
|
3523
|
-
id: String,
|
3524
|
-
adjustment_type: Symbol,
|
3525
|
-
amount: String,
|
3526
|
-
applies_to_price_ids: T::Array[String],
|
3527
|
-
filters:
|
3528
|
-
T::Array[
|
3529
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter
|
3530
|
-
],
|
3531
|
-
is_invoice_level: T::Boolean,
|
3532
|
-
item_id: String,
|
3533
|
-
minimum_amount: String,
|
3534
|
-
reason: T.nilable(String)
|
3535
|
-
}
|
3536
|
-
)
|
3537
|
-
end
|
3538
|
-
def to_hash
|
3539
|
-
end
|
3540
|
-
|
3541
|
-
class Filter < Orb::Internal::Type::BaseModel
|
3542
|
-
OrHash =
|
3543
|
-
T.type_alias do
|
3544
|
-
T.any(
|
3545
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter,
|
3546
|
-
Orb::Internal::AnyHash
|
3547
|
-
)
|
3548
|
-
end
|
3549
|
-
|
3550
|
-
# The property of the price to filter on.
|
3551
|
-
sig do
|
3552
|
-
returns(
|
3553
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Field::TaggedSymbol
|
3554
|
-
)
|
3555
|
-
end
|
3556
|
-
attr_accessor :field
|
3557
|
-
|
3558
|
-
# Should prices that match the filter be included or excluded.
|
3559
|
-
sig do
|
3560
|
-
returns(
|
3561
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Operator::TaggedSymbol
|
3562
|
-
)
|
3563
|
-
end
|
3564
|
-
attr_accessor :operator
|
3565
|
-
|
3566
|
-
# The IDs or values that match this filter.
|
3567
|
-
sig { returns(T::Array[String]) }
|
3568
|
-
attr_accessor :values
|
3569
|
-
|
3570
|
-
sig do
|
3571
|
-
params(
|
3572
|
-
field:
|
3573
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Field::OrSymbol,
|
3574
|
-
operator:
|
3575
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Operator::OrSymbol,
|
3576
|
-
values: T::Array[String]
|
3577
|
-
).returns(T.attached_class)
|
3578
|
-
end
|
3579
|
-
def self.new(
|
3580
|
-
# The property of the price to filter on.
|
3581
|
-
field:,
|
3582
|
-
# Should prices that match the filter be included or excluded.
|
3583
|
-
operator:,
|
3584
|
-
# The IDs or values that match this filter.
|
3585
|
-
values:
|
3586
|
-
)
|
3587
|
-
end
|
3588
|
-
|
3589
|
-
sig do
|
3590
|
-
override.returns(
|
3591
|
-
{
|
3592
|
-
field:
|
3593
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Field::TaggedSymbol,
|
3594
|
-
operator:
|
3595
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Operator::TaggedSymbol,
|
3596
|
-
values: T::Array[String]
|
3597
|
-
}
|
3598
|
-
)
|
3599
|
-
end
|
3600
|
-
def to_hash
|
3601
|
-
end
|
3602
|
-
|
3603
|
-
# The property of the price to filter on.
|
3604
|
-
module Field
|
3605
|
-
extend Orb::Internal::Type::Enum
|
3606
|
-
|
3607
|
-
TaggedSymbol =
|
3608
|
-
T.type_alias do
|
3609
|
-
T.all(
|
3610
|
-
Symbol,
|
3611
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Field
|
3612
|
-
)
|
3613
|
-
end
|
3614
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
3615
|
-
|
3616
|
-
PRICE_ID =
|
3617
|
-
T.let(
|
3618
|
-
:price_id,
|
3619
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Field::TaggedSymbol
|
3620
|
-
)
|
3621
|
-
ITEM_ID =
|
3622
|
-
T.let(
|
3623
|
-
:item_id,
|
3624
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Field::TaggedSymbol
|
3625
|
-
)
|
3626
|
-
PRICE_TYPE =
|
3627
|
-
T.let(
|
3628
|
-
:price_type,
|
3629
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Field::TaggedSymbol
|
3630
|
-
)
|
3631
|
-
CURRENCY =
|
3632
|
-
T.let(
|
3633
|
-
:currency,
|
3634
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Field::TaggedSymbol
|
3635
|
-
)
|
3636
|
-
PRICING_UNIT_ID =
|
3637
|
-
T.let(
|
3638
|
-
:pricing_unit_id,
|
3639
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Field::TaggedSymbol
|
3640
|
-
)
|
3641
|
-
|
3642
|
-
sig do
|
3643
|
-
override.returns(
|
3644
|
-
T::Array[
|
3645
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Field::TaggedSymbol
|
3646
|
-
]
|
3647
|
-
)
|
3648
|
-
end
|
3649
|
-
def self.values
|
3650
|
-
end
|
3651
|
-
end
|
3652
|
-
|
3653
|
-
# Should prices that match the filter be included or excluded.
|
3654
|
-
module Operator
|
3655
|
-
extend Orb::Internal::Type::Enum
|
3656
|
-
|
3657
|
-
TaggedSymbol =
|
3658
|
-
T.type_alias do
|
3659
|
-
T.all(
|
3660
|
-
Symbol,
|
3661
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Operator
|
3662
|
-
)
|
3663
|
-
end
|
3664
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
3665
|
-
|
3666
|
-
INCLUDES =
|
3667
|
-
T.let(
|
3668
|
-
:includes,
|
3669
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Operator::TaggedSymbol
|
3670
|
-
)
|
3671
|
-
EXCLUDES =
|
3672
|
-
T.let(
|
3673
|
-
:excludes,
|
3674
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Operator::TaggedSymbol
|
3675
|
-
)
|
3676
|
-
|
3677
|
-
sig do
|
3678
|
-
override.returns(
|
3679
|
-
T::Array[
|
3680
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::Operator::TaggedSymbol
|
3681
|
-
]
|
3682
|
-
)
|
3683
|
-
end
|
3684
|
-
def self.values
|
3685
|
-
end
|
3686
|
-
end
|
3687
|
-
end
|
3688
|
-
end
|
3689
|
-
|
3690
|
-
class Maximum < Orb::Internal::Type::BaseModel
|
3691
|
-
OrHash =
|
3692
|
-
T.type_alias do
|
3693
|
-
T.any(
|
3694
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum,
|
3695
|
-
Orb::Internal::AnyHash
|
3696
|
-
)
|
3697
|
-
end
|
3698
|
-
|
3699
|
-
sig { returns(String) }
|
3700
|
-
attr_accessor :id
|
3701
|
-
|
3702
|
-
sig { returns(Symbol) }
|
3703
|
-
attr_accessor :adjustment_type
|
3704
|
-
|
3705
|
-
# The value applied by an adjustment.
|
3706
|
-
sig { returns(String) }
|
3707
|
-
attr_accessor :amount
|
3708
|
-
|
3709
|
-
# The price IDs that this adjustment applies to.
|
3710
|
-
sig { returns(T::Array[String]) }
|
3711
|
-
attr_accessor :applies_to_price_ids
|
3712
|
-
|
3713
|
-
# The filters that determine which prices to apply this adjustment to.
|
3714
|
-
sig do
|
3715
|
-
returns(
|
3716
|
-
T::Array[
|
3717
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter
|
3718
|
-
]
|
3719
|
-
)
|
3720
|
-
end
|
3721
|
-
attr_accessor :filters
|
3722
|
-
|
3723
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
3724
|
-
# that apply to only one price.
|
3725
|
-
sig { returns(T::Boolean) }
|
3726
|
-
attr_accessor :is_invoice_level
|
3727
|
-
|
3728
|
-
# The maximum amount to charge in a given billing period for the prices this
|
3729
|
-
# adjustment applies to.
|
3730
|
-
sig { returns(String) }
|
3731
|
-
attr_accessor :maximum_amount
|
3732
|
-
|
3733
|
-
# The reason for the adjustment.
|
3734
|
-
sig { returns(T.nilable(String)) }
|
3735
|
-
attr_accessor :reason
|
3736
|
-
|
3737
|
-
sig do
|
3738
|
-
params(
|
3739
|
-
id: String,
|
3740
|
-
amount: String,
|
3741
|
-
applies_to_price_ids: T::Array[String],
|
3742
|
-
filters:
|
3743
|
-
T::Array[
|
3744
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::OrHash
|
3745
|
-
],
|
3746
|
-
is_invoice_level: T::Boolean,
|
3747
|
-
maximum_amount: String,
|
3748
|
-
reason: T.nilable(String),
|
3749
|
-
adjustment_type: Symbol
|
3750
|
-
).returns(T.attached_class)
|
3751
|
-
end
|
3752
|
-
def self.new(
|
3753
|
-
id:,
|
3754
|
-
# The value applied by an adjustment.
|
3755
|
-
amount:,
|
3756
|
-
# The price IDs that this adjustment applies to.
|
3757
|
-
applies_to_price_ids:,
|
3758
|
-
# The filters that determine which prices to apply this adjustment to.
|
3759
|
-
filters:,
|
3760
|
-
# True for adjustments that apply to an entire invocice, false for adjustments
|
3761
|
-
# that apply to only one price.
|
3762
|
-
is_invoice_level:,
|
3763
|
-
# The maximum amount to charge in a given billing period for the prices this
|
3764
|
-
# adjustment applies to.
|
3765
|
-
maximum_amount:,
|
3766
|
-
# The reason for the adjustment.
|
3767
|
-
reason:,
|
3768
|
-
adjustment_type: :maximum
|
3769
|
-
)
|
3770
|
-
end
|
3771
|
-
|
3772
|
-
sig do
|
3773
|
-
override.returns(
|
3774
|
-
{
|
3775
|
-
id: String,
|
3776
|
-
adjustment_type: Symbol,
|
3777
|
-
amount: String,
|
3778
|
-
applies_to_price_ids: T::Array[String],
|
3779
|
-
filters:
|
3780
|
-
T::Array[
|
3781
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter
|
3782
|
-
],
|
3783
|
-
is_invoice_level: T::Boolean,
|
3784
|
-
maximum_amount: String,
|
3785
|
-
reason: T.nilable(String)
|
3786
|
-
}
|
3787
|
-
)
|
3788
|
-
end
|
3789
|
-
def to_hash
|
3790
|
-
end
|
3791
|
-
|
3792
|
-
class Filter < Orb::Internal::Type::BaseModel
|
3793
|
-
OrHash =
|
3794
|
-
T.type_alias do
|
3795
|
-
T.any(
|
3796
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter,
|
3797
|
-
Orb::Internal::AnyHash
|
3798
|
-
)
|
3799
|
-
end
|
3800
|
-
|
3801
|
-
# The property of the price to filter on.
|
3802
|
-
sig do
|
3803
|
-
returns(
|
3804
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Field::TaggedSymbol
|
3805
|
-
)
|
3806
|
-
end
|
3807
|
-
attr_accessor :field
|
3808
|
-
|
3809
|
-
# Should prices that match the filter be included or excluded.
|
3810
|
-
sig do
|
3811
|
-
returns(
|
3812
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Operator::TaggedSymbol
|
3813
|
-
)
|
3814
|
-
end
|
3815
|
-
attr_accessor :operator
|
3816
|
-
|
3817
|
-
# The IDs or values that match this filter.
|
3818
|
-
sig { returns(T::Array[String]) }
|
3819
|
-
attr_accessor :values
|
3820
|
-
|
3821
|
-
sig do
|
3822
|
-
params(
|
3823
|
-
field:
|
3824
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Field::OrSymbol,
|
3825
|
-
operator:
|
3826
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Operator::OrSymbol,
|
3827
|
-
values: T::Array[String]
|
3828
|
-
).returns(T.attached_class)
|
3829
|
-
end
|
3830
|
-
def self.new(
|
3831
|
-
# The property of the price to filter on.
|
3832
|
-
field:,
|
3833
|
-
# Should prices that match the filter be included or excluded.
|
3834
|
-
operator:,
|
3835
|
-
# The IDs or values that match this filter.
|
3836
|
-
values:
|
3837
|
-
)
|
3838
|
-
end
|
3839
|
-
|
3840
|
-
sig do
|
3841
|
-
override.returns(
|
3842
|
-
{
|
3843
|
-
field:
|
3844
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Field::TaggedSymbol,
|
3845
|
-
operator:
|
3846
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Operator::TaggedSymbol,
|
3847
|
-
values: T::Array[String]
|
3848
|
-
}
|
3849
|
-
)
|
3850
|
-
end
|
3851
|
-
def to_hash
|
3852
|
-
end
|
3853
|
-
|
3854
|
-
# The property of the price to filter on.
|
3855
|
-
module Field
|
3856
|
-
extend Orb::Internal::Type::Enum
|
3857
|
-
|
3858
|
-
TaggedSymbol =
|
3859
|
-
T.type_alias do
|
3860
|
-
T.all(
|
3861
|
-
Symbol,
|
3862
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Field
|
3863
|
-
)
|
3864
|
-
end
|
3865
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
3866
|
-
|
3867
|
-
PRICE_ID =
|
3868
|
-
T.let(
|
3869
|
-
:price_id,
|
3870
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Field::TaggedSymbol
|
3871
|
-
)
|
3872
|
-
ITEM_ID =
|
3873
|
-
T.let(
|
3874
|
-
:item_id,
|
3875
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Field::TaggedSymbol
|
3876
|
-
)
|
3877
|
-
PRICE_TYPE =
|
3878
|
-
T.let(
|
3879
|
-
:price_type,
|
3880
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Field::TaggedSymbol
|
3881
|
-
)
|
3882
|
-
CURRENCY =
|
3883
|
-
T.let(
|
3884
|
-
:currency,
|
3885
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Field::TaggedSymbol
|
3886
|
-
)
|
3887
|
-
PRICING_UNIT_ID =
|
3888
|
-
T.let(
|
3889
|
-
:pricing_unit_id,
|
3890
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Field::TaggedSymbol
|
3891
|
-
)
|
3892
|
-
|
3893
|
-
sig do
|
3894
|
-
override.returns(
|
3895
|
-
T::Array[
|
3896
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Field::TaggedSymbol
|
3897
|
-
]
|
3898
|
-
)
|
3899
|
-
end
|
3900
|
-
def self.values
|
3901
|
-
end
|
3902
|
-
end
|
3903
|
-
|
3904
|
-
# Should prices that match the filter be included or excluded.
|
3905
|
-
module Operator
|
3906
|
-
extend Orb::Internal::Type::Enum
|
3907
|
-
|
3908
|
-
TaggedSymbol =
|
3909
|
-
T.type_alias do
|
3910
|
-
T.all(
|
3911
|
-
Symbol,
|
3912
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Operator
|
3913
|
-
)
|
3914
|
-
end
|
3915
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
3916
|
-
|
3917
|
-
INCLUDES =
|
3918
|
-
T.let(
|
3919
|
-
:includes,
|
3920
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Operator::TaggedSymbol
|
3921
|
-
)
|
3922
|
-
EXCLUDES =
|
3923
|
-
T.let(
|
3924
|
-
:excludes,
|
3925
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Operator::TaggedSymbol
|
3926
|
-
)
|
3927
|
-
|
3928
|
-
sig do
|
3929
|
-
override.returns(
|
3930
|
-
T::Array[
|
3931
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::Operator::TaggedSymbol
|
3932
|
-
]
|
3933
|
-
)
|
3934
|
-
end
|
3935
|
-
def self.values
|
3936
|
-
end
|
3937
|
-
end
|
3938
|
-
end
|
3939
|
-
end
|
3940
|
-
|
3941
|
-
sig do
|
3942
|
-
override.returns(
|
3943
|
-
T::Array[
|
3944
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Variants
|
3945
|
-
]
|
3946
|
-
)
|
3947
|
-
end
|
3948
|
-
def self.variants
|
3949
|
-
end
|
3950
|
-
end
|
3951
|
-
|
3952
|
-
class Maximum < Orb::Internal::Type::BaseModel
|
3953
|
-
OrHash =
|
3954
|
-
T.type_alias do
|
3955
|
-
T.any(
|
3956
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum,
|
3957
|
-
Orb::Internal::AnyHash
|
3958
|
-
)
|
3959
|
-
end
|
3960
|
-
|
3961
|
-
# List of price_ids that this maximum amount applies to. For plan/plan phase
|
3962
|
-
# maximums, this can be a subset of prices.
|
3963
|
-
sig { returns(T::Array[String]) }
|
3964
|
-
attr_accessor :applies_to_price_ids
|
3965
|
-
|
3966
|
-
# The filters that determine which prices to apply this maximum to.
|
3967
|
-
sig do
|
3968
|
-
returns(
|
3969
|
-
T::Array[
|
3970
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter
|
3971
|
-
]
|
3972
|
-
)
|
3973
|
-
end
|
3974
|
-
attr_accessor :filters
|
3975
|
-
|
3976
|
-
# Maximum amount applied
|
3977
|
-
sig { returns(String) }
|
3978
|
-
attr_accessor :maximum_amount
|
3979
|
-
|
3980
|
-
# This field is deprecated in favor of `adjustments`.
|
3981
|
-
sig do
|
3982
|
-
params(
|
3983
|
-
applies_to_price_ids: T::Array[String],
|
3984
|
-
filters:
|
3985
|
-
T::Array[
|
3986
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::OrHash
|
3987
|
-
],
|
3988
|
-
maximum_amount: String
|
3989
|
-
).returns(T.attached_class)
|
3990
|
-
end
|
3991
|
-
def self.new(
|
3992
|
-
# List of price_ids that this maximum amount applies to. For plan/plan phase
|
3993
|
-
# maximums, this can be a subset of prices.
|
3994
|
-
applies_to_price_ids:,
|
3995
|
-
# The filters that determine which prices to apply this maximum to.
|
3996
|
-
filters:,
|
3997
|
-
# Maximum amount applied
|
3998
|
-
maximum_amount:
|
3999
|
-
)
|
4000
|
-
end
|
4001
|
-
|
4002
|
-
sig do
|
4003
|
-
override.returns(
|
4004
|
-
{
|
4005
|
-
applies_to_price_ids: T::Array[String],
|
4006
|
-
filters:
|
4007
|
-
T::Array[
|
4008
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter
|
4009
|
-
],
|
4010
|
-
maximum_amount: String
|
4011
|
-
}
|
4012
|
-
)
|
4013
|
-
end
|
4014
|
-
def to_hash
|
4015
|
-
end
|
4016
|
-
|
4017
|
-
class Filter < Orb::Internal::Type::BaseModel
|
4018
|
-
OrHash =
|
4019
|
-
T.type_alias do
|
4020
|
-
T.any(
|
4021
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter,
|
4022
|
-
Orb::Internal::AnyHash
|
4023
|
-
)
|
4024
|
-
end
|
4025
|
-
|
4026
|
-
# The property of the price to filter on.
|
4027
|
-
sig do
|
4028
|
-
returns(
|
4029
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Field::TaggedSymbol
|
4030
|
-
)
|
4031
|
-
end
|
4032
|
-
attr_accessor :field
|
4033
|
-
|
4034
|
-
# Should prices that match the filter be included or excluded.
|
4035
|
-
sig do
|
4036
|
-
returns(
|
4037
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Operator::TaggedSymbol
|
4038
|
-
)
|
4039
|
-
end
|
4040
|
-
attr_accessor :operator
|
4041
|
-
|
4042
|
-
# The IDs or values that match this filter.
|
4043
|
-
sig { returns(T::Array[String]) }
|
4044
|
-
attr_accessor :values
|
4045
|
-
|
4046
|
-
sig do
|
4047
|
-
params(
|
4048
|
-
field:
|
4049
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Field::OrSymbol,
|
4050
|
-
operator:
|
4051
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Operator::OrSymbol,
|
4052
|
-
values: T::Array[String]
|
4053
|
-
).returns(T.attached_class)
|
4054
|
-
end
|
4055
|
-
def self.new(
|
4056
|
-
# The property of the price to filter on.
|
4057
|
-
field:,
|
4058
|
-
# Should prices that match the filter be included or excluded.
|
4059
|
-
operator:,
|
4060
|
-
# The IDs or values that match this filter.
|
4061
|
-
values:
|
4062
|
-
)
|
4063
|
-
end
|
4064
|
-
|
4065
|
-
sig do
|
4066
|
-
override.returns(
|
4067
|
-
{
|
4068
|
-
field:
|
4069
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Field::TaggedSymbol,
|
4070
|
-
operator:
|
4071
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Operator::TaggedSymbol,
|
4072
|
-
values: T::Array[String]
|
4073
|
-
}
|
4074
|
-
)
|
4075
|
-
end
|
4076
|
-
def to_hash
|
4077
|
-
end
|
4078
|
-
|
4079
|
-
# The property of the price to filter on.
|
4080
|
-
module Field
|
4081
|
-
extend Orb::Internal::Type::Enum
|
4082
|
-
|
4083
|
-
TaggedSymbol =
|
4084
|
-
T.type_alias do
|
4085
|
-
T.all(
|
4086
|
-
Symbol,
|
4087
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Field
|
4088
|
-
)
|
4089
|
-
end
|
4090
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
4091
|
-
|
4092
|
-
PRICE_ID =
|
4093
|
-
T.let(
|
4094
|
-
:price_id,
|
4095
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Field::TaggedSymbol
|
4096
|
-
)
|
4097
|
-
ITEM_ID =
|
4098
|
-
T.let(
|
4099
|
-
:item_id,
|
4100
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Field::TaggedSymbol
|
4101
|
-
)
|
4102
|
-
PRICE_TYPE =
|
4103
|
-
T.let(
|
4104
|
-
:price_type,
|
4105
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Field::TaggedSymbol
|
4106
|
-
)
|
4107
|
-
CURRENCY =
|
4108
|
-
T.let(
|
4109
|
-
:currency,
|
4110
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Field::TaggedSymbol
|
4111
|
-
)
|
4112
|
-
PRICING_UNIT_ID =
|
4113
|
-
T.let(
|
4114
|
-
:pricing_unit_id,
|
4115
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Field::TaggedSymbol
|
4116
|
-
)
|
4117
|
-
|
4118
|
-
sig do
|
4119
|
-
override.returns(
|
4120
|
-
T::Array[
|
4121
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Field::TaggedSymbol
|
4122
|
-
]
|
4123
|
-
)
|
4124
|
-
end
|
4125
|
-
def self.values
|
4126
|
-
end
|
4127
|
-
end
|
4128
|
-
|
4129
|
-
# Should prices that match the filter be included or excluded.
|
4130
|
-
module Operator
|
4131
|
-
extend Orb::Internal::Type::Enum
|
4132
|
-
|
4133
|
-
TaggedSymbol =
|
4134
|
-
T.type_alias do
|
4135
|
-
T.all(
|
4136
|
-
Symbol,
|
4137
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Operator
|
4138
|
-
)
|
4139
|
-
end
|
4140
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
4141
|
-
|
4142
|
-
INCLUDES =
|
4143
|
-
T.let(
|
4144
|
-
:includes,
|
4145
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Operator::TaggedSymbol
|
4146
|
-
)
|
4147
|
-
EXCLUDES =
|
4148
|
-
T.let(
|
4149
|
-
:excludes,
|
4150
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Operator::TaggedSymbol
|
4151
|
-
)
|
4152
|
-
|
4153
|
-
sig do
|
4154
|
-
override.returns(
|
4155
|
-
T::Array[
|
4156
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::Operator::TaggedSymbol
|
4157
|
-
]
|
4158
|
-
)
|
4159
|
-
end
|
4160
|
-
def self.values
|
4161
|
-
end
|
4162
|
-
end
|
4163
|
-
end
|
4164
|
-
end
|
4165
|
-
|
4166
|
-
class Minimum < Orb::Internal::Type::BaseModel
|
4167
|
-
OrHash =
|
4168
|
-
T.type_alias do
|
4169
|
-
T.any(
|
4170
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum,
|
4171
|
-
Orb::Internal::AnyHash
|
4172
|
-
)
|
4173
|
-
end
|
4174
|
-
|
4175
|
-
# List of price_ids that this minimum amount applies to. For plan/plan phase
|
4176
|
-
# minimums, this can be a subset of prices.
|
4177
|
-
sig { returns(T::Array[String]) }
|
4178
|
-
attr_accessor :applies_to_price_ids
|
4179
|
-
|
4180
|
-
# The filters that determine which prices to apply this minimum to.
|
4181
|
-
sig do
|
4182
|
-
returns(
|
4183
|
-
T::Array[
|
4184
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter
|
4185
|
-
]
|
4186
|
-
)
|
4187
|
-
end
|
4188
|
-
attr_accessor :filters
|
4189
|
-
|
4190
|
-
# Minimum amount applied
|
4191
|
-
sig { returns(String) }
|
4192
|
-
attr_accessor :minimum_amount
|
4193
|
-
|
4194
|
-
# This field is deprecated in favor of `adjustments`.
|
4195
|
-
sig do
|
4196
|
-
params(
|
4197
|
-
applies_to_price_ids: T::Array[String],
|
4198
|
-
filters:
|
4199
|
-
T::Array[
|
4200
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::OrHash
|
4201
|
-
],
|
4202
|
-
minimum_amount: String
|
4203
|
-
).returns(T.attached_class)
|
4204
|
-
end
|
4205
|
-
def self.new(
|
4206
|
-
# List of price_ids that this minimum amount applies to. For plan/plan phase
|
4207
|
-
# minimums, this can be a subset of prices.
|
4208
|
-
applies_to_price_ids:,
|
4209
|
-
# The filters that determine which prices to apply this minimum to.
|
4210
|
-
filters:,
|
4211
|
-
# Minimum amount applied
|
4212
|
-
minimum_amount:
|
4213
|
-
)
|
4214
|
-
end
|
4215
|
-
|
4216
|
-
sig do
|
4217
|
-
override.returns(
|
4218
|
-
{
|
4219
|
-
applies_to_price_ids: T::Array[String],
|
4220
|
-
filters:
|
4221
|
-
T::Array[
|
4222
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter
|
4223
|
-
],
|
4224
|
-
minimum_amount: String
|
4225
|
-
}
|
4226
|
-
)
|
4227
|
-
end
|
4228
|
-
def to_hash
|
4229
|
-
end
|
4230
|
-
|
4231
|
-
class Filter < Orb::Internal::Type::BaseModel
|
4232
|
-
OrHash =
|
4233
|
-
T.type_alias do
|
4234
|
-
T.any(
|
4235
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter,
|
4236
|
-
Orb::Internal::AnyHash
|
4237
|
-
)
|
4238
|
-
end
|
4239
|
-
|
4240
|
-
# The property of the price to filter on.
|
4241
|
-
sig do
|
4242
|
-
returns(
|
4243
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Field::TaggedSymbol
|
4244
|
-
)
|
4245
|
-
end
|
4246
|
-
attr_accessor :field
|
4247
|
-
|
4248
|
-
# Should prices that match the filter be included or excluded.
|
4249
|
-
sig do
|
4250
|
-
returns(
|
4251
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Operator::TaggedSymbol
|
4252
|
-
)
|
4253
|
-
end
|
4254
|
-
attr_accessor :operator
|
4255
|
-
|
4256
|
-
# The IDs or values that match this filter.
|
4257
|
-
sig { returns(T::Array[String]) }
|
4258
|
-
attr_accessor :values
|
4259
|
-
|
4260
|
-
sig do
|
4261
|
-
params(
|
4262
|
-
field:
|
4263
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Field::OrSymbol,
|
4264
|
-
operator:
|
4265
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Operator::OrSymbol,
|
4266
|
-
values: T::Array[String]
|
4267
|
-
).returns(T.attached_class)
|
4268
|
-
end
|
4269
|
-
def self.new(
|
4270
|
-
# The property of the price to filter on.
|
4271
|
-
field:,
|
4272
|
-
# Should prices that match the filter be included or excluded.
|
4273
|
-
operator:,
|
4274
|
-
# The IDs or values that match this filter.
|
4275
|
-
values:
|
4276
|
-
)
|
4277
|
-
end
|
4278
|
-
|
4279
|
-
sig do
|
4280
|
-
override.returns(
|
4281
|
-
{
|
4282
|
-
field:
|
4283
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Field::TaggedSymbol,
|
4284
|
-
operator:
|
4285
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Operator::TaggedSymbol,
|
4286
|
-
values: T::Array[String]
|
4287
|
-
}
|
4288
|
-
)
|
4289
|
-
end
|
4290
|
-
def to_hash
|
4291
|
-
end
|
4292
|
-
|
4293
|
-
# The property of the price to filter on.
|
4294
|
-
module Field
|
4295
|
-
extend Orb::Internal::Type::Enum
|
4296
|
-
|
4297
|
-
TaggedSymbol =
|
4298
|
-
T.type_alias do
|
4299
|
-
T.all(
|
4300
|
-
Symbol,
|
4301
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Field
|
4302
|
-
)
|
4303
|
-
end
|
4304
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
4305
|
-
|
4306
|
-
PRICE_ID =
|
4307
|
-
T.let(
|
4308
|
-
:price_id,
|
4309
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Field::TaggedSymbol
|
4310
|
-
)
|
4311
|
-
ITEM_ID =
|
4312
|
-
T.let(
|
4313
|
-
:item_id,
|
4314
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Field::TaggedSymbol
|
4315
|
-
)
|
4316
|
-
PRICE_TYPE =
|
4317
|
-
T.let(
|
4318
|
-
:price_type,
|
4319
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Field::TaggedSymbol
|
4320
|
-
)
|
4321
|
-
CURRENCY =
|
4322
|
-
T.let(
|
4323
|
-
:currency,
|
4324
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Field::TaggedSymbol
|
4325
|
-
)
|
4326
|
-
PRICING_UNIT_ID =
|
4327
|
-
T.let(
|
4328
|
-
:pricing_unit_id,
|
4329
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Field::TaggedSymbol
|
4330
|
-
)
|
4331
|
-
|
4332
|
-
sig do
|
4333
|
-
override.returns(
|
4334
|
-
T::Array[
|
4335
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Field::TaggedSymbol
|
4336
|
-
]
|
4337
|
-
)
|
4338
|
-
end
|
4339
|
-
def self.values
|
4340
|
-
end
|
4341
|
-
end
|
4342
|
-
|
4343
|
-
# Should prices that match the filter be included or excluded.
|
4344
|
-
module Operator
|
4345
|
-
extend Orb::Internal::Type::Enum
|
4346
|
-
|
4347
|
-
TaggedSymbol =
|
4348
|
-
T.type_alias do
|
4349
|
-
T.all(
|
4350
|
-
Symbol,
|
4351
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Operator
|
4352
|
-
)
|
4353
|
-
end
|
4354
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
4355
|
-
|
4356
|
-
INCLUDES =
|
4357
|
-
T.let(
|
4358
|
-
:includes,
|
4359
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Operator::TaggedSymbol
|
4360
|
-
)
|
4361
|
-
EXCLUDES =
|
4362
|
-
T.let(
|
4363
|
-
:excludes,
|
4364
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Operator::TaggedSymbol
|
4365
|
-
)
|
4366
|
-
|
4367
|
-
sig do
|
4368
|
-
override.returns(
|
4369
|
-
T::Array[
|
4370
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::Operator::TaggedSymbol
|
4371
|
-
]
|
4372
|
-
)
|
4373
|
-
end
|
4374
|
-
def self.values
|
4375
|
-
end
|
4376
|
-
end
|
4377
|
-
end
|
4378
|
-
end
|
4379
|
-
|
4380
|
-
module SubLineItem
|
4381
|
-
extend Orb::Internal::Type::Union
|
4382
|
-
|
4383
|
-
Variants =
|
4384
|
-
T.type_alias do
|
4385
|
-
T.any(
|
4386
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix,
|
4387
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier,
|
4388
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null
|
4389
|
-
)
|
4390
|
-
end
|
4391
|
-
|
4392
|
-
class Matrix < Orb::Internal::Type::BaseModel
|
4393
|
-
OrHash =
|
4394
|
-
T.type_alias do
|
4395
|
-
T.any(
|
4396
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix,
|
4397
|
-
Orb::Internal::AnyHash
|
4398
|
-
)
|
4399
|
-
end
|
4400
|
-
|
4401
|
-
# The total amount for this sub line item.
|
4402
|
-
sig { returns(String) }
|
4403
|
-
attr_accessor :amount
|
4404
|
-
|
4405
|
-
sig do
|
4406
|
-
returns(
|
4407
|
-
T.nilable(
|
4408
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping
|
4409
|
-
)
|
4410
|
-
)
|
4411
|
-
end
|
4412
|
-
attr_reader :grouping
|
4413
|
-
|
4414
|
-
sig do
|
4415
|
-
params(
|
4416
|
-
grouping:
|
4417
|
-
T.nilable(
|
4418
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping::OrHash
|
4419
|
-
)
|
4420
|
-
).void
|
4421
|
-
end
|
4422
|
-
attr_writer :grouping
|
4423
|
-
|
4424
|
-
sig do
|
4425
|
-
returns(
|
4426
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig
|
4427
|
-
)
|
4428
|
-
end
|
4429
|
-
attr_reader :matrix_config
|
4430
|
-
|
4431
|
-
sig do
|
4432
|
-
params(
|
4433
|
-
matrix_config:
|
4434
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig::OrHash
|
4435
|
-
).void
|
4436
|
-
end
|
4437
|
-
attr_writer :matrix_config
|
4438
|
-
|
4439
|
-
sig { returns(String) }
|
4440
|
-
attr_accessor :name
|
4441
|
-
|
4442
|
-
sig { returns(Float) }
|
4443
|
-
attr_accessor :quantity
|
4444
|
-
|
4445
|
-
sig { returns(Symbol) }
|
4446
|
-
attr_accessor :type
|
4447
|
-
|
4448
|
-
sig do
|
4449
|
-
params(
|
4450
|
-
amount: String,
|
4451
|
-
grouping:
|
4452
|
-
T.nilable(
|
4453
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping::OrHash
|
4454
|
-
),
|
4455
|
-
matrix_config:
|
4456
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig::OrHash,
|
4457
|
-
name: String,
|
4458
|
-
quantity: Float,
|
4459
|
-
type: Symbol
|
4460
|
-
).returns(T.attached_class)
|
4461
|
-
end
|
4462
|
-
def self.new(
|
4463
|
-
# The total amount for this sub line item.
|
4464
|
-
amount:,
|
4465
|
-
grouping:,
|
4466
|
-
matrix_config:,
|
4467
|
-
name:,
|
4468
|
-
quantity:,
|
4469
|
-
type: :matrix
|
4470
|
-
)
|
4471
|
-
end
|
4472
|
-
|
4473
|
-
sig do
|
4474
|
-
override.returns(
|
4475
|
-
{
|
4476
|
-
amount: String,
|
4477
|
-
grouping:
|
4478
|
-
T.nilable(
|
4479
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping
|
4480
|
-
),
|
4481
|
-
matrix_config:
|
4482
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig,
|
4483
|
-
name: String,
|
4484
|
-
quantity: Float,
|
4485
|
-
type: Symbol
|
4486
|
-
}
|
4487
|
-
)
|
4488
|
-
end
|
4489
|
-
def to_hash
|
4490
|
-
end
|
4491
|
-
|
4492
|
-
class Grouping < Orb::Internal::Type::BaseModel
|
4493
|
-
OrHash =
|
4494
|
-
T.type_alias do
|
4495
|
-
T.any(
|
4496
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping,
|
4497
|
-
Orb::Internal::AnyHash
|
4498
|
-
)
|
4499
|
-
end
|
4500
|
-
|
4501
|
-
sig { returns(String) }
|
4502
|
-
attr_accessor :key
|
4503
|
-
|
4504
|
-
# No value indicates the default group
|
4505
|
-
sig { returns(T.nilable(String)) }
|
4506
|
-
attr_accessor :value
|
4507
|
-
|
4508
|
-
sig do
|
4509
|
-
params(key: String, value: T.nilable(String)).returns(
|
4510
|
-
T.attached_class
|
4511
|
-
)
|
4512
|
-
end
|
4513
|
-
def self.new(
|
4514
|
-
key:,
|
4515
|
-
# No value indicates the default group
|
4516
|
-
value:
|
4517
|
-
)
|
4518
|
-
end
|
4519
|
-
|
4520
|
-
sig do
|
4521
|
-
override.returns({ key: String, value: T.nilable(String) })
|
4522
|
-
end
|
4523
|
-
def to_hash
|
4524
|
-
end
|
4525
|
-
end
|
4526
|
-
|
4527
|
-
class MatrixConfig < Orb::Internal::Type::BaseModel
|
4528
|
-
OrHash =
|
4529
|
-
T.type_alias do
|
4530
|
-
T.any(
|
4531
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig,
|
4532
|
-
Orb::Internal::AnyHash
|
4533
|
-
)
|
4534
|
-
end
|
4535
|
-
|
4536
|
-
# The ordered dimension values for this line item.
|
4537
|
-
sig { returns(T::Array[T.nilable(String)]) }
|
4538
|
-
attr_accessor :dimension_values
|
4539
|
-
|
4540
|
-
sig do
|
4541
|
-
params(dimension_values: T::Array[T.nilable(String)]).returns(
|
4542
|
-
T.attached_class
|
4543
|
-
)
|
4544
|
-
end
|
4545
|
-
def self.new(
|
4546
|
-
# The ordered dimension values for this line item.
|
4547
|
-
dimension_values:
|
4548
|
-
)
|
4549
|
-
end
|
4550
|
-
|
4551
|
-
sig do
|
4552
|
-
override.returns(
|
4553
|
-
{ dimension_values: T::Array[T.nilable(String)] }
|
4554
|
-
)
|
4555
|
-
end
|
4556
|
-
def to_hash
|
4557
|
-
end
|
4558
|
-
end
|
4559
|
-
end
|
4560
|
-
|
4561
|
-
class Tier < Orb::Internal::Type::BaseModel
|
4562
|
-
OrHash =
|
4563
|
-
T.type_alias do
|
4564
|
-
T.any(
|
4565
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier,
|
4566
|
-
Orb::Internal::AnyHash
|
4567
|
-
)
|
4568
|
-
end
|
4569
|
-
|
4570
|
-
# The total amount for this sub line item.
|
4571
|
-
sig { returns(String) }
|
4572
|
-
attr_accessor :amount
|
4573
|
-
|
4574
|
-
sig do
|
4575
|
-
returns(
|
4576
|
-
T.nilable(
|
4577
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping
|
4578
|
-
)
|
4579
|
-
)
|
4580
|
-
end
|
4581
|
-
attr_reader :grouping
|
4582
|
-
|
4583
|
-
sig do
|
4584
|
-
params(
|
4585
|
-
grouping:
|
4586
|
-
T.nilable(
|
4587
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping::OrHash
|
4588
|
-
)
|
4589
|
-
).void
|
4590
|
-
end
|
4591
|
-
attr_writer :grouping
|
4592
|
-
|
4593
|
-
sig { returns(String) }
|
4594
|
-
attr_accessor :name
|
4595
|
-
|
4596
|
-
sig { returns(Float) }
|
4597
|
-
attr_accessor :quantity
|
4598
|
-
|
4599
|
-
sig do
|
4600
|
-
returns(
|
4601
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig
|
4602
|
-
)
|
4603
|
-
end
|
4604
|
-
attr_reader :tier_config
|
4605
|
-
|
4606
|
-
sig do
|
4607
|
-
params(
|
4608
|
-
tier_config:
|
4609
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig::OrHash
|
4610
|
-
).void
|
4611
|
-
end
|
4612
|
-
attr_writer :tier_config
|
4613
|
-
|
4614
|
-
sig { returns(Symbol) }
|
4615
|
-
attr_accessor :type
|
4616
|
-
|
4617
|
-
sig do
|
4618
|
-
params(
|
4619
|
-
amount: String,
|
4620
|
-
grouping:
|
4621
|
-
T.nilable(
|
4622
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping::OrHash
|
4623
|
-
),
|
4624
|
-
name: String,
|
4625
|
-
quantity: Float,
|
4626
|
-
tier_config:
|
4627
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig::OrHash,
|
4628
|
-
type: Symbol
|
4629
|
-
).returns(T.attached_class)
|
4630
|
-
end
|
4631
|
-
def self.new(
|
4632
|
-
# The total amount for this sub line item.
|
4633
|
-
amount:,
|
4634
|
-
grouping:,
|
4635
|
-
name:,
|
4636
|
-
quantity:,
|
4637
|
-
tier_config:,
|
4638
|
-
type: :tier
|
4639
|
-
)
|
4640
|
-
end
|
4641
|
-
|
4642
|
-
sig do
|
4643
|
-
override.returns(
|
4644
|
-
{
|
4645
|
-
amount: String,
|
4646
|
-
grouping:
|
4647
|
-
T.nilable(
|
4648
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping
|
4649
|
-
),
|
4650
|
-
name: String,
|
4651
|
-
quantity: Float,
|
4652
|
-
tier_config:
|
4653
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig,
|
4654
|
-
type: Symbol
|
4655
|
-
}
|
4656
|
-
)
|
4657
|
-
end
|
4658
|
-
def to_hash
|
4659
|
-
end
|
4660
|
-
|
4661
|
-
class Grouping < Orb::Internal::Type::BaseModel
|
4662
|
-
OrHash =
|
4663
|
-
T.type_alias do
|
4664
|
-
T.any(
|
4665
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping,
|
4666
|
-
Orb::Internal::AnyHash
|
4667
|
-
)
|
4668
|
-
end
|
4669
|
-
|
4670
|
-
sig { returns(String) }
|
4671
|
-
attr_accessor :key
|
4672
|
-
|
4673
|
-
# No value indicates the default group
|
4674
|
-
sig { returns(T.nilable(String)) }
|
4675
|
-
attr_accessor :value
|
4676
|
-
|
4677
|
-
sig do
|
4678
|
-
params(key: String, value: T.nilable(String)).returns(
|
4679
|
-
T.attached_class
|
4680
|
-
)
|
4681
|
-
end
|
4682
|
-
def self.new(
|
4683
|
-
key:,
|
4684
|
-
# No value indicates the default group
|
4685
|
-
value:
|
4686
|
-
)
|
4687
|
-
end
|
4688
|
-
|
4689
|
-
sig do
|
4690
|
-
override.returns({ key: String, value: T.nilable(String) })
|
4691
|
-
end
|
4692
|
-
def to_hash
|
4693
|
-
end
|
4694
|
-
end
|
4695
|
-
|
4696
|
-
class TierConfig < Orb::Internal::Type::BaseModel
|
4697
|
-
OrHash =
|
4698
|
-
T.type_alias do
|
4699
|
-
T.any(
|
4700
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig,
|
4701
|
-
Orb::Internal::AnyHash
|
4702
|
-
)
|
4703
|
-
end
|
4704
|
-
|
4705
|
-
sig { returns(Float) }
|
4706
|
-
attr_accessor :first_unit
|
4707
|
-
|
4708
|
-
sig { returns(T.nilable(Float)) }
|
4709
|
-
attr_accessor :last_unit
|
4710
|
-
|
4711
|
-
sig { returns(String) }
|
4712
|
-
attr_accessor :unit_amount
|
4713
|
-
|
4714
|
-
sig do
|
4715
|
-
params(
|
4716
|
-
first_unit: Float,
|
4717
|
-
last_unit: T.nilable(Float),
|
4718
|
-
unit_amount: String
|
4719
|
-
).returns(T.attached_class)
|
4720
|
-
end
|
4721
|
-
def self.new(first_unit:, last_unit:, unit_amount:)
|
4722
|
-
end
|
4723
|
-
|
4724
|
-
sig do
|
4725
|
-
override.returns(
|
4726
|
-
{
|
4727
|
-
first_unit: Float,
|
4728
|
-
last_unit: T.nilable(Float),
|
4729
|
-
unit_amount: String
|
4730
|
-
}
|
4731
|
-
)
|
4732
|
-
end
|
4733
|
-
def to_hash
|
4734
|
-
end
|
4735
|
-
end
|
4736
|
-
end
|
1116
|
+
# The number of prepaid credits applied.
|
1117
|
+
sig { returns(String) }
|
1118
|
+
attr_accessor :credits_applied
|
4737
1119
|
|
4738
|
-
|
4739
|
-
|
4740
|
-
T.type_alias do
|
4741
|
-
T.any(
|
4742
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null,
|
4743
|
-
Orb::Internal::AnyHash
|
4744
|
-
)
|
4745
|
-
end
|
1120
|
+
sig { returns(T.nilable(Orb::Discount::Variants)) }
|
1121
|
+
attr_accessor :discount
|
4746
1122
|
|
4747
|
-
|
4748
|
-
|
4749
|
-
|
1123
|
+
# The end date of the range of time applied for this line item's price.
|
1124
|
+
sig { returns(Time) }
|
1125
|
+
attr_accessor :end_date
|
4750
1126
|
|
4751
|
-
|
4752
|
-
|
4753
|
-
|
4754
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping
|
4755
|
-
)
|
4756
|
-
)
|
4757
|
-
end
|
4758
|
-
attr_reader :grouping
|
4759
|
-
|
4760
|
-
sig do
|
4761
|
-
params(
|
4762
|
-
grouping:
|
4763
|
-
T.nilable(
|
4764
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping::OrHash
|
4765
|
-
)
|
4766
|
-
).void
|
4767
|
-
end
|
4768
|
-
attr_writer :grouping
|
4769
|
-
|
4770
|
-
sig { returns(String) }
|
4771
|
-
attr_accessor :name
|
4772
|
-
|
4773
|
-
sig { returns(Float) }
|
4774
|
-
attr_accessor :quantity
|
4775
|
-
|
4776
|
-
sig { returns(Symbol) }
|
4777
|
-
attr_accessor :type
|
4778
|
-
|
4779
|
-
sig do
|
4780
|
-
params(
|
4781
|
-
amount: String,
|
4782
|
-
grouping:
|
4783
|
-
T.nilable(
|
4784
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping::OrHash
|
4785
|
-
),
|
4786
|
-
name: String,
|
4787
|
-
quantity: Float,
|
4788
|
-
type: Symbol
|
4789
|
-
).returns(T.attached_class)
|
4790
|
-
end
|
4791
|
-
def self.new(
|
4792
|
-
# The total amount for this sub line item.
|
4793
|
-
amount:,
|
4794
|
-
grouping:,
|
4795
|
-
name:,
|
4796
|
-
quantity:,
|
4797
|
-
type: :"'null'"
|
4798
|
-
)
|
4799
|
-
end
|
1127
|
+
# An additional filter that was used to calculate the usage for this line item.
|
1128
|
+
sig { returns(T.nilable(String)) }
|
1129
|
+
attr_accessor :filter
|
4800
1130
|
|
4801
|
-
|
4802
|
-
|
4803
|
-
|
4804
|
-
|
4805
|
-
|
4806
|
-
T.nilable(
|
4807
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping
|
4808
|
-
),
|
4809
|
-
name: String,
|
4810
|
-
quantity: Float,
|
4811
|
-
type: Symbol
|
4812
|
-
}
|
4813
|
-
)
|
4814
|
-
end
|
4815
|
-
def to_hash
|
4816
|
-
end
|
1131
|
+
# [DEPRECATED] For configured prices that are split by a grouping key, this will
|
1132
|
+
# be populated with the key and a value. The `amount` and `subtotal` will be the
|
1133
|
+
# values for this particular grouping.
|
1134
|
+
sig { returns(T.nilable(String)) }
|
1135
|
+
attr_accessor :grouping
|
4817
1136
|
|
4818
|
-
|
4819
|
-
|
4820
|
-
|
4821
|
-
T.any(
|
4822
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping,
|
4823
|
-
Orb::Internal::AnyHash
|
4824
|
-
)
|
4825
|
-
end
|
4826
|
-
|
4827
|
-
sig { returns(String) }
|
4828
|
-
attr_accessor :key
|
4829
|
-
|
4830
|
-
# No value indicates the default group
|
4831
|
-
sig { returns(T.nilable(String)) }
|
4832
|
-
attr_accessor :value
|
4833
|
-
|
4834
|
-
sig do
|
4835
|
-
params(key: String, value: T.nilable(String)).returns(
|
4836
|
-
T.attached_class
|
4837
|
-
)
|
4838
|
-
end
|
4839
|
-
def self.new(
|
4840
|
-
key:,
|
4841
|
-
# No value indicates the default group
|
4842
|
-
value:
|
4843
|
-
)
|
4844
|
-
end
|
1137
|
+
# This field is deprecated in favor of `adjustments`.
|
1138
|
+
sig { returns(T.nilable(Orb::Maximum)) }
|
1139
|
+
attr_reader :maximum
|
4845
1140
|
|
4846
|
-
|
4847
|
-
|
4848
|
-
end
|
4849
|
-
def to_hash
|
4850
|
-
end
|
4851
|
-
end
|
4852
|
-
end
|
1141
|
+
sig { params(maximum: T.nilable(Orb::Maximum::OrHash)).void }
|
1142
|
+
attr_writer :maximum
|
4853
1143
|
|
4854
|
-
|
4855
|
-
|
4856
|
-
|
4857
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Variants
|
4858
|
-
]
|
4859
|
-
)
|
4860
|
-
end
|
4861
|
-
def self.variants
|
4862
|
-
end
|
4863
|
-
end
|
1144
|
+
# This field is deprecated in favor of `adjustments`.
|
1145
|
+
sig { returns(T.nilable(String)) }
|
1146
|
+
attr_accessor :maximum_amount
|
4864
1147
|
|
4865
|
-
|
4866
|
-
|
4867
|
-
|
4868
|
-
T.any(
|
4869
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount,
|
4870
|
-
Orb::Internal::AnyHash
|
4871
|
-
)
|
4872
|
-
end
|
1148
|
+
# This field is deprecated in favor of `adjustments`.
|
1149
|
+
sig { returns(T.nilable(Orb::Minimum)) }
|
1150
|
+
attr_reader :minimum
|
4873
1151
|
|
4874
|
-
|
4875
|
-
|
4876
|
-
attr_accessor :amount
|
1152
|
+
sig { params(minimum: T.nilable(Orb::Minimum::OrHash)).void }
|
1153
|
+
attr_writer :minimum
|
4877
1154
|
|
4878
|
-
|
4879
|
-
|
4880
|
-
|
1155
|
+
# This field is deprecated in favor of `adjustments`.
|
1156
|
+
sig { returns(T.nilable(String)) }
|
1157
|
+
attr_accessor :minimum_amount
|
4881
1158
|
|
4882
|
-
|
4883
|
-
|
4884
|
-
|
1159
|
+
# The name of the price associated with this line item.
|
1160
|
+
sig { returns(String) }
|
1161
|
+
attr_accessor :name
|
4885
1162
|
|
4886
|
-
|
4887
|
-
|
4888
|
-
|
4889
|
-
tax_rate_description: String,
|
4890
|
-
tax_rate_percentage: T.nilable(String)
|
4891
|
-
).returns(T.attached_class)
|
4892
|
-
end
|
4893
|
-
def self.new(
|
4894
|
-
# The amount of additional tax incurred by this tax rate.
|
4895
|
-
amount:,
|
4896
|
-
# The human-readable description of the applied tax rate.
|
4897
|
-
tax_rate_description:,
|
4898
|
-
# The tax rate percentage, out of 100.
|
4899
|
-
tax_rate_percentage:
|
4900
|
-
)
|
4901
|
-
end
|
1163
|
+
# Any amount applied from a partial invoice
|
1164
|
+
sig { returns(String) }
|
1165
|
+
attr_accessor :partially_invoiced_amount
|
4902
1166
|
|
4903
|
-
|
4904
|
-
|
4905
|
-
|
4906
|
-
|
4907
|
-
|
4908
|
-
|
4909
|
-
|
4910
|
-
|
4911
|
-
|
4912
|
-
|
4913
|
-
|
4914
|
-
|
4915
|
-
end
|
1167
|
+
# The Price resource represents a price that can be billed on a subscription,
|
1168
|
+
# resulting in a charge on an invoice in the form of an invoice line item. Prices
|
1169
|
+
# take a quantity and determine an amount to bill.
|
1170
|
+
#
|
1171
|
+
# Orb supports a few different pricing models out of the box. Each of these models
|
1172
|
+
# is serialized differently in a given Price object. The model_type field
|
1173
|
+
# determines the key for the configuration object that is present.
|
1174
|
+
#
|
1175
|
+
# For more on the types of prices, see
|
1176
|
+
# [the core concepts documentation](/core-concepts#plan-and-price)
|
1177
|
+
sig { returns(Orb::Price::Variants) }
|
1178
|
+
attr_accessor :price
|
4916
1179
|
|
4917
|
-
|
4918
|
-
|
4919
|
-
|
4920
|
-
T.any(
|
4921
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum,
|
4922
|
-
Orb::Internal::AnyHash
|
4923
|
-
)
|
4924
|
-
end
|
1180
|
+
# Either the fixed fee quantity or the usage during the service period.
|
1181
|
+
sig { returns(Float) }
|
1182
|
+
attr_accessor :quantity
|
4925
1183
|
|
4926
|
-
#
|
4927
|
-
|
4928
|
-
|
4929
|
-
attr_accessor :applies_to_price_ids
|
1184
|
+
# The start date of the range of time applied for this line item's price.
|
1185
|
+
sig { returns(Time) }
|
1186
|
+
attr_accessor :start_date
|
4930
1187
|
|
4931
|
-
#
|
1188
|
+
# For complex pricing structures, the line item can be broken down further in
|
1189
|
+
# `sub_line_items`.
|
4932
1190
|
sig do
|
4933
1191
|
returns(
|
4934
|
-
T::Array[
|
1192
|
+
T::Array[
|
1193
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Variants
|
1194
|
+
]
|
4935
1195
|
)
|
4936
1196
|
end
|
4937
|
-
attr_accessor :
|
1197
|
+
attr_accessor :sub_line_items
|
4938
1198
|
|
4939
|
-
#
|
1199
|
+
# The line amount before before any adjustments.
|
4940
1200
|
sig { returns(String) }
|
4941
|
-
attr_accessor :
|
4942
|
-
|
4943
|
-
sig do
|
4944
|
-
params(
|
4945
|
-
applies_to_price_ids: T::Array[String],
|
4946
|
-
filters:
|
4947
|
-
T::Array[
|
4948
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::OrHash
|
4949
|
-
],
|
4950
|
-
maximum_amount: String
|
4951
|
-
).returns(T.attached_class)
|
4952
|
-
end
|
4953
|
-
def self.new(
|
4954
|
-
# List of price_ids that this maximum amount applies to. For plan/plan phase
|
4955
|
-
# maximums, this can be a subset of prices.
|
4956
|
-
applies_to_price_ids:,
|
4957
|
-
# The filters that determine which prices to apply this maximum to.
|
4958
|
-
filters:,
|
4959
|
-
# Maximum amount applied
|
4960
|
-
maximum_amount:
|
4961
|
-
)
|
4962
|
-
end
|
4963
|
-
|
4964
|
-
sig do
|
4965
|
-
override.returns(
|
4966
|
-
{
|
4967
|
-
applies_to_price_ids: T::Array[String],
|
4968
|
-
filters:
|
4969
|
-
T::Array[
|
4970
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter
|
4971
|
-
],
|
4972
|
-
maximum_amount: String
|
4973
|
-
}
|
4974
|
-
)
|
4975
|
-
end
|
4976
|
-
def to_hash
|
4977
|
-
end
|
4978
|
-
|
4979
|
-
class Filter < Orb::Internal::Type::BaseModel
|
4980
|
-
OrHash =
|
4981
|
-
T.type_alias do
|
4982
|
-
T.any(
|
4983
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter,
|
4984
|
-
Orb::Internal::AnyHash
|
4985
|
-
)
|
4986
|
-
end
|
4987
|
-
|
4988
|
-
# The property of the price to filter on.
|
4989
|
-
sig do
|
4990
|
-
returns(
|
4991
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Field::TaggedSymbol
|
4992
|
-
)
|
4993
|
-
end
|
4994
|
-
attr_accessor :field
|
4995
|
-
|
4996
|
-
# Should prices that match the filter be included or excluded.
|
4997
|
-
sig do
|
4998
|
-
returns(
|
4999
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Operator::TaggedSymbol
|
5000
|
-
)
|
5001
|
-
end
|
5002
|
-
attr_accessor :operator
|
5003
|
-
|
5004
|
-
# The IDs or values that match this filter.
|
5005
|
-
sig { returns(T::Array[String]) }
|
5006
|
-
attr_accessor :values
|
5007
|
-
|
5008
|
-
sig do
|
5009
|
-
params(
|
5010
|
-
field:
|
5011
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Field::OrSymbol,
|
5012
|
-
operator:
|
5013
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Operator::OrSymbol,
|
5014
|
-
values: T::Array[String]
|
5015
|
-
).returns(T.attached_class)
|
5016
|
-
end
|
5017
|
-
def self.new(
|
5018
|
-
# The property of the price to filter on.
|
5019
|
-
field:,
|
5020
|
-
# Should prices that match the filter be included or excluded.
|
5021
|
-
operator:,
|
5022
|
-
# The IDs or values that match this filter.
|
5023
|
-
values:
|
5024
|
-
)
|
5025
|
-
end
|
5026
|
-
|
5027
|
-
sig do
|
5028
|
-
override.returns(
|
5029
|
-
{
|
5030
|
-
field:
|
5031
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Field::TaggedSymbol,
|
5032
|
-
operator:
|
5033
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Operator::TaggedSymbol,
|
5034
|
-
values: T::Array[String]
|
5035
|
-
}
|
5036
|
-
)
|
5037
|
-
end
|
5038
|
-
def to_hash
|
5039
|
-
end
|
5040
|
-
|
5041
|
-
# The property of the price to filter on.
|
5042
|
-
module Field
|
5043
|
-
extend Orb::Internal::Type::Enum
|
5044
|
-
|
5045
|
-
TaggedSymbol =
|
5046
|
-
T.type_alias do
|
5047
|
-
T.all(
|
5048
|
-
Symbol,
|
5049
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Field
|
5050
|
-
)
|
5051
|
-
end
|
5052
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
5053
|
-
|
5054
|
-
PRICE_ID =
|
5055
|
-
T.let(
|
5056
|
-
:price_id,
|
5057
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Field::TaggedSymbol
|
5058
|
-
)
|
5059
|
-
ITEM_ID =
|
5060
|
-
T.let(
|
5061
|
-
:item_id,
|
5062
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Field::TaggedSymbol
|
5063
|
-
)
|
5064
|
-
PRICE_TYPE =
|
5065
|
-
T.let(
|
5066
|
-
:price_type,
|
5067
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Field::TaggedSymbol
|
5068
|
-
)
|
5069
|
-
CURRENCY =
|
5070
|
-
T.let(
|
5071
|
-
:currency,
|
5072
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Field::TaggedSymbol
|
5073
|
-
)
|
5074
|
-
PRICING_UNIT_ID =
|
5075
|
-
T.let(
|
5076
|
-
:pricing_unit_id,
|
5077
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Field::TaggedSymbol
|
5078
|
-
)
|
5079
|
-
|
5080
|
-
sig do
|
5081
|
-
override.returns(
|
5082
|
-
T::Array[
|
5083
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Field::TaggedSymbol
|
5084
|
-
]
|
5085
|
-
)
|
5086
|
-
end
|
5087
|
-
def self.values
|
5088
|
-
end
|
5089
|
-
end
|
5090
|
-
|
5091
|
-
# Should prices that match the filter be included or excluded.
|
5092
|
-
module Operator
|
5093
|
-
extend Orb::Internal::Type::Enum
|
5094
|
-
|
5095
|
-
TaggedSymbol =
|
5096
|
-
T.type_alias do
|
5097
|
-
T.all(
|
5098
|
-
Symbol,
|
5099
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Operator
|
5100
|
-
)
|
5101
|
-
end
|
5102
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
5103
|
-
|
5104
|
-
INCLUDES =
|
5105
|
-
T.let(
|
5106
|
-
:includes,
|
5107
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Operator::TaggedSymbol
|
5108
|
-
)
|
5109
|
-
EXCLUDES =
|
5110
|
-
T.let(
|
5111
|
-
:excludes,
|
5112
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Operator::TaggedSymbol
|
5113
|
-
)
|
5114
|
-
|
5115
|
-
sig do
|
5116
|
-
override.returns(
|
5117
|
-
T::Array[
|
5118
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::Operator::TaggedSymbol
|
5119
|
-
]
|
5120
|
-
)
|
5121
|
-
end
|
5122
|
-
def self.values
|
5123
|
-
end
|
5124
|
-
end
|
5125
|
-
end
|
5126
|
-
end
|
5127
|
-
|
5128
|
-
class Minimum < Orb::Internal::Type::BaseModel
|
5129
|
-
OrHash =
|
5130
|
-
T.type_alias do
|
5131
|
-
T.any(
|
5132
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum,
|
5133
|
-
Orb::Internal::AnyHash
|
5134
|
-
)
|
5135
|
-
end
|
5136
|
-
|
5137
|
-
# List of price_ids that this minimum amount applies to. For plan/plan phase
|
5138
|
-
# minimums, this can be a subset of prices.
|
5139
|
-
sig { returns(T::Array[String]) }
|
5140
|
-
attr_accessor :applies_to_price_ids
|
1201
|
+
attr_accessor :subtotal
|
5141
1202
|
|
5142
|
-
#
|
5143
|
-
|
5144
|
-
|
5145
|
-
|
5146
|
-
)
|
5147
|
-
end
|
5148
|
-
attr_accessor :filters
|
1203
|
+
# An array of tax rates and their incurred tax amounts. Empty if no tax
|
1204
|
+
# integration is configured.
|
1205
|
+
sig { returns(T::Array[Orb::TaxAmount]) }
|
1206
|
+
attr_accessor :tax_amounts
|
5149
1207
|
|
5150
|
-
#
|
5151
|
-
sig { returns(String) }
|
5152
|
-
attr_accessor :
|
1208
|
+
# A list of customer ids that were used to calculate the usage for this line item.
|
1209
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1210
|
+
attr_accessor :usage_customer_ids
|
5153
1211
|
|
5154
1212
|
sig do
|
5155
1213
|
params(
|
5156
|
-
|
5157
|
-
|
1214
|
+
id: String,
|
1215
|
+
adjusted_subtotal: String,
|
1216
|
+
adjustments:
|
1217
|
+
T::Array[
|
1218
|
+
T.any(
|
1219
|
+
Orb::MonetaryUsageDiscountAdjustment::OrHash,
|
1220
|
+
Orb::MonetaryAmountDiscountAdjustment::OrHash,
|
1221
|
+
Orb::MonetaryPercentageDiscountAdjustment::OrHash,
|
1222
|
+
Orb::MonetaryMinimumAdjustment::OrHash,
|
1223
|
+
Orb::MonetaryMaximumAdjustment::OrHash
|
1224
|
+
)
|
1225
|
+
],
|
1226
|
+
amount: String,
|
1227
|
+
credits_applied: String,
|
1228
|
+
discount:
|
1229
|
+
T.nilable(
|
1230
|
+
T.any(
|
1231
|
+
Orb::PercentageDiscount::OrHash,
|
1232
|
+
Orb::TrialDiscount::OrHash,
|
1233
|
+
Orb::UsageDiscount::OrHash,
|
1234
|
+
Orb::AmountDiscount::OrHash
|
1235
|
+
)
|
1236
|
+
),
|
1237
|
+
end_date: Time,
|
1238
|
+
filter: T.nilable(String),
|
1239
|
+
grouping: T.nilable(String),
|
1240
|
+
maximum: T.nilable(Orb::Maximum::OrHash),
|
1241
|
+
maximum_amount: T.nilable(String),
|
1242
|
+
minimum: T.nilable(Orb::Minimum::OrHash),
|
1243
|
+
minimum_amount: T.nilable(String),
|
1244
|
+
name: String,
|
1245
|
+
partially_invoiced_amount: String,
|
1246
|
+
price:
|
1247
|
+
T.any(
|
1248
|
+
Orb::Price::Unit::OrHash,
|
1249
|
+
Orb::Price::Package::OrHash,
|
1250
|
+
Orb::Price::Matrix::OrHash,
|
1251
|
+
Orb::Price::Tiered::OrHash,
|
1252
|
+
Orb::Price::TieredBPS::OrHash,
|
1253
|
+
Orb::Price::BPS::OrHash,
|
1254
|
+
Orb::Price::BulkBPS::OrHash,
|
1255
|
+
Orb::Price::Bulk::OrHash,
|
1256
|
+
Orb::Price::ThresholdTotalAmount::OrHash,
|
1257
|
+
Orb::Price::TieredPackage::OrHash,
|
1258
|
+
Orb::Price::GroupedTiered::OrHash,
|
1259
|
+
Orb::Price::TieredWithMinimum::OrHash,
|
1260
|
+
Orb::Price::TieredPackageWithMinimum::OrHash,
|
1261
|
+
Orb::Price::PackageWithAllocation::OrHash,
|
1262
|
+
Orb::Price::UnitWithPercent::OrHash,
|
1263
|
+
Orb::Price::MatrixWithAllocation::OrHash,
|
1264
|
+
Orb::Price::TieredWithProration::OrHash,
|
1265
|
+
Orb::Price::UnitWithProration::OrHash,
|
1266
|
+
Orb::Price::GroupedAllocation::OrHash,
|
1267
|
+
Orb::Price::GroupedWithProratedMinimum::OrHash,
|
1268
|
+
Orb::Price::GroupedWithMeteredMinimum::OrHash,
|
1269
|
+
Orb::Price::MatrixWithDisplayName::OrHash,
|
1270
|
+
Orb::Price::BulkWithProration::OrHash,
|
1271
|
+
Orb::Price::GroupedTieredPackage::OrHash,
|
1272
|
+
Orb::Price::MaxGroupTieredPackage::OrHash,
|
1273
|
+
Orb::Price::ScalableMatrixWithUnitPricing::OrHash,
|
1274
|
+
Orb::Price::ScalableMatrixWithTieredPricing::OrHash,
|
1275
|
+
Orb::Price::CumulativeGroupedBulk::OrHash
|
1276
|
+
),
|
1277
|
+
quantity: Float,
|
1278
|
+
start_date: Time,
|
1279
|
+
sub_line_items:
|
5158
1280
|
T::Array[
|
5159
|
-
|
1281
|
+
T.any(
|
1282
|
+
Orb::MatrixSubLineItem::OrHash,
|
1283
|
+
Orb::TierSubLineItem::OrHash,
|
1284
|
+
Orb::OtherSubLineItem::OrHash
|
1285
|
+
)
|
5160
1286
|
],
|
5161
|
-
|
1287
|
+
subtotal: String,
|
1288
|
+
tax_amounts: T::Array[Orb::TaxAmount::OrHash],
|
1289
|
+
usage_customer_ids: T.nilable(T::Array[String])
|
5162
1290
|
).returns(T.attached_class)
|
5163
1291
|
end
|
5164
1292
|
def self.new(
|
5165
|
-
#
|
5166
|
-
|
5167
|
-
|
5168
|
-
#
|
5169
|
-
|
5170
|
-
#
|
5171
|
-
|
1293
|
+
# A unique ID for this line item.
|
1294
|
+
id:,
|
1295
|
+
# The line amount after any adjustments and before overage conversion, credits and
|
1296
|
+
# partial invoicing.
|
1297
|
+
adjusted_subtotal:,
|
1298
|
+
# All adjustments applied to the line item in the order they were applied based on
|
1299
|
+
# invoice calculations (ie. usage discounts -> amount discounts -> percentage
|
1300
|
+
# discounts -> minimums -> maximums).
|
1301
|
+
adjustments:,
|
1302
|
+
# The final amount for a line item after all adjustments and pre paid credits have
|
1303
|
+
# been applied.
|
1304
|
+
amount:,
|
1305
|
+
# The number of prepaid credits applied.
|
1306
|
+
credits_applied:,
|
1307
|
+
discount:,
|
1308
|
+
# The end date of the range of time applied for this line item's price.
|
1309
|
+
end_date:,
|
1310
|
+
# An additional filter that was used to calculate the usage for this line item.
|
1311
|
+
filter:,
|
1312
|
+
# [DEPRECATED] For configured prices that are split by a grouping key, this will
|
1313
|
+
# be populated with the key and a value. The `amount` and `subtotal` will be the
|
1314
|
+
# values for this particular grouping.
|
1315
|
+
grouping:,
|
1316
|
+
# This field is deprecated in favor of `adjustments`.
|
1317
|
+
maximum:,
|
1318
|
+
# This field is deprecated in favor of `adjustments`.
|
1319
|
+
maximum_amount:,
|
1320
|
+
# This field is deprecated in favor of `adjustments`.
|
1321
|
+
minimum:,
|
1322
|
+
# This field is deprecated in favor of `adjustments`.
|
1323
|
+
minimum_amount:,
|
1324
|
+
# The name of the price associated with this line item.
|
1325
|
+
name:,
|
1326
|
+
# Any amount applied from a partial invoice
|
1327
|
+
partially_invoiced_amount:,
|
1328
|
+
# The Price resource represents a price that can be billed on a subscription,
|
1329
|
+
# resulting in a charge on an invoice in the form of an invoice line item. Prices
|
1330
|
+
# take a quantity and determine an amount to bill.
|
1331
|
+
#
|
1332
|
+
# Orb supports a few different pricing models out of the box. Each of these models
|
1333
|
+
# is serialized differently in a given Price object. The model_type field
|
1334
|
+
# determines the key for the configuration object that is present.
|
1335
|
+
#
|
1336
|
+
# For more on the types of prices, see
|
1337
|
+
# [the core concepts documentation](/core-concepts#plan-and-price)
|
1338
|
+
price:,
|
1339
|
+
# Either the fixed fee quantity or the usage during the service period.
|
1340
|
+
quantity:,
|
1341
|
+
# The start date of the range of time applied for this line item's price.
|
1342
|
+
start_date:,
|
1343
|
+
# For complex pricing structures, the line item can be broken down further in
|
1344
|
+
# `sub_line_items`.
|
1345
|
+
sub_line_items:,
|
1346
|
+
# The line amount before before any adjustments.
|
1347
|
+
subtotal:,
|
1348
|
+
# An array of tax rates and their incurred tax amounts. Empty if no tax
|
1349
|
+
# integration is configured.
|
1350
|
+
tax_amounts:,
|
1351
|
+
# A list of customer ids that were used to calculate the usage for this line item.
|
1352
|
+
usage_customer_ids:
|
5172
1353
|
)
|
5173
1354
|
end
|
5174
1355
|
|
5175
1356
|
sig do
|
5176
1357
|
override.returns(
|
5177
1358
|
{
|
5178
|
-
|
5179
|
-
|
1359
|
+
id: String,
|
1360
|
+
adjusted_subtotal: String,
|
1361
|
+
adjustments:
|
1362
|
+
T::Array[
|
1363
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Variants
|
1364
|
+
],
|
1365
|
+
amount: String,
|
1366
|
+
credits_applied: String,
|
1367
|
+
discount: T.nilable(Orb::Discount::Variants),
|
1368
|
+
end_date: Time,
|
1369
|
+
filter: T.nilable(String),
|
1370
|
+
grouping: T.nilable(String),
|
1371
|
+
maximum: T.nilable(Orb::Maximum),
|
1372
|
+
maximum_amount: T.nilable(String),
|
1373
|
+
minimum: T.nilable(Orb::Minimum),
|
1374
|
+
minimum_amount: T.nilable(String),
|
1375
|
+
name: String,
|
1376
|
+
partially_invoiced_amount: String,
|
1377
|
+
price: Orb::Price::Variants,
|
1378
|
+
quantity: Float,
|
1379
|
+
start_date: Time,
|
1380
|
+
sub_line_items:
|
5180
1381
|
T::Array[
|
5181
|
-
Orb::Models::InvoiceFetchUpcomingResponse::
|
1382
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Variants
|
5182
1383
|
],
|
5183
|
-
|
1384
|
+
subtotal: String,
|
1385
|
+
tax_amounts: T::Array[Orb::TaxAmount],
|
1386
|
+
usage_customer_ids: T.nilable(T::Array[String])
|
5184
1387
|
}
|
5185
1388
|
)
|
5186
1389
|
end
|
5187
1390
|
def to_hash
|
5188
1391
|
end
|
5189
1392
|
|
5190
|
-
|
5191
|
-
|
1393
|
+
module Adjustment
|
1394
|
+
extend Orb::Internal::Type::Union
|
1395
|
+
|
1396
|
+
Variants =
|
5192
1397
|
T.type_alias do
|
5193
1398
|
T.any(
|
5194
|
-
Orb::
|
5195
|
-
Orb::
|
1399
|
+
Orb::MonetaryUsageDiscountAdjustment,
|
1400
|
+
Orb::MonetaryAmountDiscountAdjustment,
|
1401
|
+
Orb::MonetaryPercentageDiscountAdjustment,
|
1402
|
+
Orb::MonetaryMinimumAdjustment,
|
1403
|
+
Orb::MonetaryMaximumAdjustment
|
5196
1404
|
)
|
5197
1405
|
end
|
5198
1406
|
|
5199
|
-
# The property of the price to filter on.
|
5200
1407
|
sig do
|
5201
|
-
returns(
|
5202
|
-
|
1408
|
+
override.returns(
|
1409
|
+
T::Array[
|
1410
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Variants
|
1411
|
+
]
|
5203
1412
|
)
|
5204
1413
|
end
|
5205
|
-
|
5206
|
-
|
5207
|
-
# Should prices that match the filter be included or excluded.
|
5208
|
-
sig do
|
5209
|
-
returns(
|
5210
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::Operator::TaggedSymbol
|
5211
|
-
)
|
1414
|
+
def self.variants
|
5212
1415
|
end
|
5213
|
-
|
1416
|
+
end
|
5214
1417
|
|
5215
|
-
|
5216
|
-
|
5217
|
-
attr_accessor :values
|
1418
|
+
module SubLineItem
|
1419
|
+
extend Orb::Internal::Type::Union
|
5218
1420
|
|
5219
|
-
|
5220
|
-
|
5221
|
-
|
5222
|
-
Orb::
|
5223
|
-
|
5224
|
-
Orb::
|
5225
|
-
|
5226
|
-
|
5227
|
-
end
|
5228
|
-
def self.new(
|
5229
|
-
# The property of the price to filter on.
|
5230
|
-
field:,
|
5231
|
-
# Should prices that match the filter be included or excluded.
|
5232
|
-
operator:,
|
5233
|
-
# The IDs or values that match this filter.
|
5234
|
-
values:
|
5235
|
-
)
|
5236
|
-
end
|
1421
|
+
Variants =
|
1422
|
+
T.type_alias do
|
1423
|
+
T.any(
|
1424
|
+
Orb::MatrixSubLineItem,
|
1425
|
+
Orb::TierSubLineItem,
|
1426
|
+
Orb::OtherSubLineItem
|
1427
|
+
)
|
1428
|
+
end
|
5237
1429
|
|
5238
1430
|
sig do
|
5239
1431
|
override.returns(
|
5240
|
-
|
5241
|
-
|
5242
|
-
|
5243
|
-
operator:
|
5244
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::Operator::TaggedSymbol,
|
5245
|
-
values: T::Array[String]
|
5246
|
-
}
|
1432
|
+
T::Array[
|
1433
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Variants
|
1434
|
+
]
|
5247
1435
|
)
|
5248
1436
|
end
|
5249
|
-
def
|
5250
|
-
end
|
5251
|
-
|
5252
|
-
# The property of the price to filter on.
|
5253
|
-
module Field
|
5254
|
-
extend Orb::Internal::Type::Enum
|
5255
|
-
|
5256
|
-
TaggedSymbol =
|
5257
|
-
T.type_alias do
|
5258
|
-
T.all(
|
5259
|
-
Symbol,
|
5260
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::Field
|
5261
|
-
)
|
5262
|
-
end
|
5263
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
5264
|
-
|
5265
|
-
PRICE_ID =
|
5266
|
-
T.let(
|
5267
|
-
:price_id,
|
5268
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::Field::TaggedSymbol
|
5269
|
-
)
|
5270
|
-
ITEM_ID =
|
5271
|
-
T.let(
|
5272
|
-
:item_id,
|
5273
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::Field::TaggedSymbol
|
5274
|
-
)
|
5275
|
-
PRICE_TYPE =
|
5276
|
-
T.let(
|
5277
|
-
:price_type,
|
5278
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::Field::TaggedSymbol
|
5279
|
-
)
|
5280
|
-
CURRENCY =
|
5281
|
-
T.let(
|
5282
|
-
:currency,
|
5283
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::Field::TaggedSymbol
|
5284
|
-
)
|
5285
|
-
PRICING_UNIT_ID =
|
5286
|
-
T.let(
|
5287
|
-
:pricing_unit_id,
|
5288
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::Field::TaggedSymbol
|
5289
|
-
)
|
5290
|
-
|
5291
|
-
sig do
|
5292
|
-
override.returns(
|
5293
|
-
T::Array[
|
5294
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::Field::TaggedSymbol
|
5295
|
-
]
|
5296
|
-
)
|
5297
|
-
end
|
5298
|
-
def self.values
|
5299
|
-
end
|
5300
|
-
end
|
5301
|
-
|
5302
|
-
# Should prices that match the filter be included or excluded.
|
5303
|
-
module Operator
|
5304
|
-
extend Orb::Internal::Type::Enum
|
5305
|
-
|
5306
|
-
TaggedSymbol =
|
5307
|
-
T.type_alias do
|
5308
|
-
T.all(
|
5309
|
-
Symbol,
|
5310
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::Operator
|
5311
|
-
)
|
5312
|
-
end
|
5313
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
5314
|
-
|
5315
|
-
INCLUDES =
|
5316
|
-
T.let(
|
5317
|
-
:includes,
|
5318
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::Operator::TaggedSymbol
|
5319
|
-
)
|
5320
|
-
EXCLUDES =
|
5321
|
-
T.let(
|
5322
|
-
:excludes,
|
5323
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::Operator::TaggedSymbol
|
5324
|
-
)
|
5325
|
-
|
5326
|
-
sig do
|
5327
|
-
override.returns(
|
5328
|
-
T::Array[
|
5329
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::Operator::TaggedSymbol
|
5330
|
-
]
|
5331
|
-
)
|
5332
|
-
end
|
5333
|
-
def self.values
|
5334
|
-
end
|
1437
|
+
def self.variants
|
5335
1438
|
end
|
5336
1439
|
end
|
5337
1440
|
end
|
@@ -5453,62 +1556,6 @@ module Orb
|
|
5453
1556
|
end
|
5454
1557
|
end
|
5455
1558
|
|
5456
|
-
class ShippingAddress < Orb::Internal::Type::BaseModel
|
5457
|
-
OrHash =
|
5458
|
-
T.type_alias do
|
5459
|
-
T.any(
|
5460
|
-
Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress,
|
5461
|
-
Orb::Internal::AnyHash
|
5462
|
-
)
|
5463
|
-
end
|
5464
|
-
|
5465
|
-
sig { returns(T.nilable(String)) }
|
5466
|
-
attr_accessor :city
|
5467
|
-
|
5468
|
-
sig { returns(T.nilable(String)) }
|
5469
|
-
attr_accessor :country
|
5470
|
-
|
5471
|
-
sig { returns(T.nilable(String)) }
|
5472
|
-
attr_accessor :line1
|
5473
|
-
|
5474
|
-
sig { returns(T.nilable(String)) }
|
5475
|
-
attr_accessor :line2
|
5476
|
-
|
5477
|
-
sig { returns(T.nilable(String)) }
|
5478
|
-
attr_accessor :postal_code
|
5479
|
-
|
5480
|
-
sig { returns(T.nilable(String)) }
|
5481
|
-
attr_accessor :state
|
5482
|
-
|
5483
|
-
sig do
|
5484
|
-
params(
|
5485
|
-
city: T.nilable(String),
|
5486
|
-
country: T.nilable(String),
|
5487
|
-
line1: T.nilable(String),
|
5488
|
-
line2: T.nilable(String),
|
5489
|
-
postal_code: T.nilable(String),
|
5490
|
-
state: T.nilable(String)
|
5491
|
-
).returns(T.attached_class)
|
5492
|
-
end
|
5493
|
-
def self.new(city:, country:, line1:, line2:, postal_code:, state:)
|
5494
|
-
end
|
5495
|
-
|
5496
|
-
sig do
|
5497
|
-
override.returns(
|
5498
|
-
{
|
5499
|
-
city: T.nilable(String),
|
5500
|
-
country: T.nilable(String),
|
5501
|
-
line1: T.nilable(String),
|
5502
|
-
line2: T.nilable(String),
|
5503
|
-
postal_code: T.nilable(String),
|
5504
|
-
state: T.nilable(String)
|
5505
|
-
}
|
5506
|
-
)
|
5507
|
-
end
|
5508
|
-
def to_hash
|
5509
|
-
end
|
5510
|
-
end
|
5511
|
-
|
5512
1559
|
module Status
|
5513
1560
|
extend Orb::Internal::Type::Enum
|
5514
1561
|
|
@@ -5554,27 +1601,6 @@ module Orb
|
|
5554
1601
|
def self.values
|
5555
1602
|
end
|
5556
1603
|
end
|
5557
|
-
|
5558
|
-
class Subscription < Orb::Internal::Type::BaseModel
|
5559
|
-
OrHash =
|
5560
|
-
T.type_alias do
|
5561
|
-
T.any(
|
5562
|
-
Orb::Models::InvoiceFetchUpcomingResponse::Subscription,
|
5563
|
-
Orb::Internal::AnyHash
|
5564
|
-
)
|
5565
|
-
end
|
5566
|
-
|
5567
|
-
sig { returns(String) }
|
5568
|
-
attr_accessor :id
|
5569
|
-
|
5570
|
-
sig { params(id: String).returns(T.attached_class) }
|
5571
|
-
def self.new(id:)
|
5572
|
-
end
|
5573
|
-
|
5574
|
-
sig { override.returns({ id: String }) }
|
5575
|
-
def to_hash
|
5576
|
-
end
|
5577
|
-
end
|
5578
1604
|
end
|
5579
1605
|
end
|
5580
1606
|
end
|