orb-billing 0.11.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +39 -0
- data/README.md +1 -1
- data/lib/orb/internal/type/base_model.rb +5 -5
- data/lib/orb/internal/type/union.rb +3 -8
- data/lib/orb/internal/util.rb +8 -9
- 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 +9 -1
- data/lib/orb/models/amount_discount_interval.rb +65 -0
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +186 -17772
- data/lib/orb/models/beta_create_plan_version_params.rb +183 -17605
- 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 +9 -1
- 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 -18278
- 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 -8758
- data/lib/orb/models/subscription_redeem_coupon_params.rb +17 -9
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +238 -18372
- 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 +9 -1
- 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 +9 -1
- 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 +29 -27
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +181 -11
- data/rbi/orb/internal/util.rbi +2 -0
- 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 +8 -0
- data/rbi/orb/models/amount_discount_interval.rbi +100 -0
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +482 -32442
- data/rbi/orb/models/beta_create_plan_version_params.rbi +484 -32436
- 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 +8 -0
- 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 +541 -33368
- 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 -16144
- data/rbi/orb/models/subscription_redeem_coupon_params.rbi +16 -8
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +549 -33384
- 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 +8 -0
- 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 +8 -0
- 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 +19 -22
- 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 +5 -0
- data/sig/orb/models/amount_discount_interval.rbs +55 -0
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +147 -12821
- data/sig/orb/models/beta_create_plan_version_params.rbs +144 -12802
- 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 +5 -0
- 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 +174 -13219
- 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 -6390
- data/sig/orb/models/subscription_redeem_coupon_params.rbs +11 -6
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +175 -13220
- 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 +5 -0
- 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 +5 -0
- 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 +15 -14
- 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
@@ -5,13 +5,13 @@ module Orb
|
|
5
5
|
id: String,
|
6
6
|
amount_due: String,
|
7
7
|
auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection,
|
8
|
-
billing_address: Orb::
|
8
|
+
billing_address: Orb::Address?,
|
9
9
|
created_at: Time,
|
10
10
|
credit_notes: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote],
|
11
11
|
currency: String,
|
12
|
-
customer: Orb::
|
12
|
+
customer: Orb::CustomerMinified,
|
13
13
|
customer_balance_transactions: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction],
|
14
|
-
customer_tax_id: Orb::
|
14
|
+
customer_tax_id: Orb::CustomerTaxID?,
|
15
15
|
discount: top,
|
16
16
|
discounts: ::Array[Orb::Models::invoice_level_discount],
|
17
17
|
due_date: Time?,
|
@@ -23,20 +23,20 @@ module Orb
|
|
23
23
|
issue_failed_at: Time?,
|
24
24
|
issued_at: Time?,
|
25
25
|
line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem],
|
26
|
-
maximum: Orb::
|
26
|
+
maximum: Orb::Maximum?,
|
27
27
|
maximum_amount: String?,
|
28
28
|
memo: String?,
|
29
29
|
metadata: ::Hash[Symbol, String],
|
30
|
-
minimum: Orb::
|
30
|
+
minimum: Orb::Minimum?,
|
31
31
|
minimum_amount: String?,
|
32
32
|
paid_at: Time?,
|
33
33
|
payment_attempts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt],
|
34
34
|
payment_failed_at: Time?,
|
35
35
|
payment_started_at: Time?,
|
36
36
|
scheduled_issue_at: Time?,
|
37
|
-
shipping_address: Orb::
|
37
|
+
shipping_address: Orb::Address?,
|
38
38
|
status: Orb::Models::InvoiceFetchUpcomingResponse::status,
|
39
|
-
subscription: Orb::
|
39
|
+
subscription: Orb::SubscriptionMinified?,
|
40
40
|
subtotal: String,
|
41
41
|
sync_failed_at: Time?,
|
42
42
|
target_date: Time,
|
@@ -52,7 +52,7 @@ module Orb
|
|
52
52
|
|
53
53
|
attr_accessor auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection
|
54
54
|
|
55
|
-
attr_accessor billing_address: Orb::
|
55
|
+
attr_accessor billing_address: Orb::Address?
|
56
56
|
|
57
57
|
attr_accessor created_at: Time
|
58
58
|
|
@@ -60,11 +60,11 @@ module Orb
|
|
60
60
|
|
61
61
|
attr_accessor currency: String
|
62
62
|
|
63
|
-
attr_accessor customer: Orb::
|
63
|
+
attr_accessor customer: Orb::CustomerMinified
|
64
64
|
|
65
65
|
attr_accessor customer_balance_transactions: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction]
|
66
66
|
|
67
|
-
attr_accessor customer_tax_id: Orb::
|
67
|
+
attr_accessor customer_tax_id: Orb::CustomerTaxID?
|
68
68
|
|
69
69
|
attr_accessor discount: top
|
70
70
|
|
@@ -88,7 +88,7 @@ module Orb
|
|
88
88
|
|
89
89
|
attr_accessor line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem]
|
90
90
|
|
91
|
-
attr_accessor maximum: Orb::
|
91
|
+
attr_accessor maximum: Orb::Maximum?
|
92
92
|
|
93
93
|
attr_accessor maximum_amount: String?
|
94
94
|
|
@@ -96,7 +96,7 @@ module Orb
|
|
96
96
|
|
97
97
|
attr_accessor metadata: ::Hash[Symbol, String]
|
98
98
|
|
99
|
-
attr_accessor minimum: Orb::
|
99
|
+
attr_accessor minimum: Orb::Minimum?
|
100
100
|
|
101
101
|
attr_accessor minimum_amount: String?
|
102
102
|
|
@@ -110,11 +110,11 @@ module Orb
|
|
110
110
|
|
111
111
|
attr_accessor scheduled_issue_at: Time?
|
112
112
|
|
113
|
-
attr_accessor shipping_address: Orb::
|
113
|
+
attr_accessor shipping_address: Orb::Address?
|
114
114
|
|
115
115
|
attr_accessor status: Orb::Models::InvoiceFetchUpcomingResponse::status
|
116
116
|
|
117
|
-
attr_accessor subscription: Orb::
|
117
|
+
attr_accessor subscription: Orb::SubscriptionMinified?
|
118
118
|
|
119
119
|
attr_accessor subtotal: String
|
120
120
|
|
@@ -132,13 +132,13 @@ module Orb
|
|
132
132
|
id: String,
|
133
133
|
amount_due: String,
|
134
134
|
auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection,
|
135
|
-
billing_address: Orb::
|
135
|
+
billing_address: Orb::Address?,
|
136
136
|
created_at: Time,
|
137
137
|
credit_notes: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote],
|
138
138
|
currency: String,
|
139
|
-
customer: Orb::
|
139
|
+
customer: Orb::CustomerMinified,
|
140
140
|
customer_balance_transactions: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction],
|
141
|
-
customer_tax_id: Orb::
|
141
|
+
customer_tax_id: Orb::CustomerTaxID?,
|
142
142
|
discount: top,
|
143
143
|
discounts: ::Array[Orb::Models::invoice_level_discount],
|
144
144
|
due_date: Time?,
|
@@ -150,20 +150,20 @@ module Orb
|
|
150
150
|
issue_failed_at: Time?,
|
151
151
|
issued_at: Time?,
|
152
152
|
line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem],
|
153
|
-
maximum: Orb::
|
153
|
+
maximum: Orb::Maximum?,
|
154
154
|
maximum_amount: String?,
|
155
155
|
memo: String?,
|
156
156
|
metadata: ::Hash[Symbol, String],
|
157
|
-
minimum: Orb::
|
157
|
+
minimum: Orb::Minimum?,
|
158
158
|
minimum_amount: String?,
|
159
159
|
paid_at: Time?,
|
160
160
|
payment_attempts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt],
|
161
161
|
payment_failed_at: Time?,
|
162
162
|
payment_started_at: Time?,
|
163
163
|
scheduled_issue_at: Time?,
|
164
|
-
shipping_address: Orb::
|
164
|
+
shipping_address: Orb::Address?,
|
165
165
|
status: Orb::Models::InvoiceFetchUpcomingResponse::status,
|
166
|
-
subscription: Orb::
|
166
|
+
subscription: Orb::SubscriptionMinified?,
|
167
167
|
subtotal: String,
|
168
168
|
sync_failed_at: Time?,
|
169
169
|
target_date: Time,
|
@@ -176,13 +176,13 @@ module Orb
|
|
176
176
|
id: String,
|
177
177
|
amount_due: String,
|
178
178
|
auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection,
|
179
|
-
billing_address: Orb::
|
179
|
+
billing_address: Orb::Address?,
|
180
180
|
created_at: Time,
|
181
181
|
credit_notes: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote],
|
182
182
|
currency: String,
|
183
|
-
customer: Orb::
|
183
|
+
customer: Orb::CustomerMinified,
|
184
184
|
customer_balance_transactions: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction],
|
185
|
-
customer_tax_id: Orb::
|
185
|
+
customer_tax_id: Orb::CustomerTaxID?,
|
186
186
|
discount: top,
|
187
187
|
discounts: ::Array[Orb::Models::invoice_level_discount],
|
188
188
|
due_date: Time?,
|
@@ -194,20 +194,20 @@ module Orb
|
|
194
194
|
issue_failed_at: Time?,
|
195
195
|
issued_at: Time?,
|
196
196
|
line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem],
|
197
|
-
maximum: Orb::
|
197
|
+
maximum: Orb::Maximum?,
|
198
198
|
maximum_amount: String?,
|
199
199
|
memo: String?,
|
200
200
|
metadata: ::Hash[Symbol, String],
|
201
|
-
minimum: Orb::
|
201
|
+
minimum: Orb::Minimum?,
|
202
202
|
minimum_amount: String?,
|
203
203
|
paid_at: Time?,
|
204
204
|
payment_attempts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt],
|
205
205
|
payment_failed_at: Time?,
|
206
206
|
payment_started_at: Time?,
|
207
207
|
scheduled_issue_at: Time?,
|
208
|
-
shipping_address: Orb::
|
208
|
+
shipping_address: Orb::Address?,
|
209
209
|
status: Orb::Models::InvoiceFetchUpcomingResponse::status,
|
210
|
-
subscription: Orb::
|
210
|
+
subscription: Orb::SubscriptionMinified?,
|
211
211
|
subtotal: String,
|
212
212
|
sync_failed_at: Time?,
|
213
213
|
target_date: Time,
|
@@ -248,48 +248,6 @@ module Orb
|
|
248
248
|
}
|
249
249
|
end
|
250
250
|
|
251
|
-
type billing_address =
|
252
|
-
{
|
253
|
-
city: String?,
|
254
|
-
country: String?,
|
255
|
-
:line1 => String?,
|
256
|
-
:line2 => String?,
|
257
|
-
postal_code: String?,
|
258
|
-
state: String?
|
259
|
-
}
|
260
|
-
|
261
|
-
class BillingAddress < Orb::Internal::Type::BaseModel
|
262
|
-
attr_accessor city: String?
|
263
|
-
|
264
|
-
attr_accessor country: String?
|
265
|
-
|
266
|
-
attr_accessor line1: String?
|
267
|
-
|
268
|
-
attr_accessor line2: String?
|
269
|
-
|
270
|
-
attr_accessor postal_code: String?
|
271
|
-
|
272
|
-
attr_accessor state: String?
|
273
|
-
|
274
|
-
def initialize: (
|
275
|
-
city: String?,
|
276
|
-
country: String?,
|
277
|
-
line1: String?,
|
278
|
-
line2: String?,
|
279
|
-
postal_code: String?,
|
280
|
-
state: String?
|
281
|
-
) -> void
|
282
|
-
|
283
|
-
def to_hash: -> {
|
284
|
-
city: String?,
|
285
|
-
country: String?,
|
286
|
-
:line1 => String?,
|
287
|
-
:line2 => String?,
|
288
|
-
postal_code: String?,
|
289
|
-
state: String?
|
290
|
-
}
|
291
|
-
end
|
292
|
-
|
293
251
|
type credit_note =
|
294
252
|
{
|
295
253
|
id: String,
|
@@ -337,28 +295,16 @@ module Orb
|
|
337
295
|
}
|
338
296
|
end
|
339
297
|
|
340
|
-
type customer = { id: String, external_customer_id: String? }
|
341
|
-
|
342
|
-
class Customer < Orb::Internal::Type::BaseModel
|
343
|
-
attr_accessor id: String
|
344
|
-
|
345
|
-
attr_accessor external_customer_id: String?
|
346
|
-
|
347
|
-
def initialize: (id: String, external_customer_id: String?) -> void
|
348
|
-
|
349
|
-
def to_hash: -> { id: String, external_customer_id: String? }
|
350
|
-
end
|
351
|
-
|
352
298
|
type customer_balance_transaction =
|
353
299
|
{
|
354
300
|
id: String,
|
355
301
|
action: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action,
|
356
302
|
amount: String,
|
357
303
|
created_at: Time,
|
358
|
-
credit_note: Orb::
|
304
|
+
credit_note: Orb::CreditNoteTiny?,
|
359
305
|
description: String?,
|
360
306
|
ending_balance: String,
|
361
|
-
invoice: Orb::
|
307
|
+
invoice: Orb::InvoiceTiny?,
|
362
308
|
starting_balance: String,
|
363
309
|
type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_
|
364
310
|
}
|
@@ -372,13 +318,13 @@ module Orb
|
|
372
318
|
|
373
319
|
attr_accessor created_at: Time
|
374
320
|
|
375
|
-
attr_accessor credit_note: Orb::
|
321
|
+
attr_accessor credit_note: Orb::CreditNoteTiny?
|
376
322
|
|
377
323
|
attr_accessor description: String?
|
378
324
|
|
379
325
|
attr_accessor ending_balance: String
|
380
326
|
|
381
|
-
attr_accessor invoice: Orb::
|
327
|
+
attr_accessor invoice: Orb::InvoiceTiny?
|
382
328
|
|
383
329
|
attr_accessor starting_balance: String
|
384
330
|
|
@@ -389,10 +335,10 @@ module Orb
|
|
389
335
|
action: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action,
|
390
336
|
amount: String,
|
391
337
|
created_at: Time,
|
392
|
-
credit_note: Orb::
|
338
|
+
credit_note: Orb::CreditNoteTiny?,
|
393
339
|
description: String?,
|
394
340
|
ending_balance: String,
|
395
|
-
invoice: Orb::
|
341
|
+
invoice: Orb::InvoiceTiny?,
|
396
342
|
starting_balance: String,
|
397
343
|
type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_
|
398
344
|
) -> void
|
@@ -402,10 +348,10 @@ module Orb
|
|
402
348
|
action: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action,
|
403
349
|
amount: String,
|
404
350
|
created_at: Time,
|
405
|
-
credit_note: Orb::
|
351
|
+
credit_note: Orb::CreditNoteTiny?,
|
406
352
|
description: String?,
|
407
353
|
ending_balance: String,
|
408
|
-
invoice: Orb::
|
354
|
+
invoice: Orb::InvoiceTiny?,
|
409
355
|
starting_balance: String,
|
410
356
|
type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_
|
411
357
|
}
|
@@ -437,26 +383,6 @@ module Orb
|
|
437
383
|
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action]
|
438
384
|
end
|
439
385
|
|
440
|
-
type credit_note = { id: String }
|
441
|
-
|
442
|
-
class CreditNote < Orb::Internal::Type::BaseModel
|
443
|
-
attr_accessor id: String
|
444
|
-
|
445
|
-
def initialize: (id: String) -> void
|
446
|
-
|
447
|
-
def to_hash: -> { id: String }
|
448
|
-
end
|
449
|
-
|
450
|
-
type invoice = { id: String }
|
451
|
-
|
452
|
-
class Invoice < Orb::Internal::Type::BaseModel
|
453
|
-
attr_accessor id: String
|
454
|
-
|
455
|
-
def initialize: (id: String) -> void
|
456
|
-
|
457
|
-
def to_hash: -> { id: String }
|
458
|
-
end
|
459
|
-
|
460
386
|
type type_ = :increment | :decrement
|
461
387
|
|
462
388
|
module Type
|
@@ -469,349 +395,6 @@ module Orb
|
|
469
395
|
end
|
470
396
|
end
|
471
397
|
|
472
|
-
type customer_tax_id =
|
473
|
-
{
|
474
|
-
country: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::country,
|
475
|
-
type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::type_,
|
476
|
-
value: String
|
477
|
-
}
|
478
|
-
|
479
|
-
class CustomerTaxID < Orb::Internal::Type::BaseModel
|
480
|
-
attr_accessor country: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::country
|
481
|
-
|
482
|
-
attr_accessor type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::type_
|
483
|
-
|
484
|
-
attr_accessor value: String
|
485
|
-
|
486
|
-
def initialize: (
|
487
|
-
country: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::country,
|
488
|
-
type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::type_,
|
489
|
-
value: String
|
490
|
-
) -> void
|
491
|
-
|
492
|
-
def to_hash: -> {
|
493
|
-
country: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::country,
|
494
|
-
type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::type_,
|
495
|
-
value: String
|
496
|
-
}
|
497
|
-
|
498
|
-
type country =
|
499
|
-
:AD
|
500
|
-
| :AE
|
501
|
-
| :AR
|
502
|
-
| :AT
|
503
|
-
| :AU
|
504
|
-
| :BE
|
505
|
-
| :BG
|
506
|
-
| :BH
|
507
|
-
| :BO
|
508
|
-
| :BR
|
509
|
-
| :CA
|
510
|
-
| :CH
|
511
|
-
| :CL
|
512
|
-
| :CN
|
513
|
-
| :CO
|
514
|
-
| :CR
|
515
|
-
| :CY
|
516
|
-
| :CZ
|
517
|
-
| :DE
|
518
|
-
| :DK
|
519
|
-
| :EE
|
520
|
-
| :DO
|
521
|
-
| :EC
|
522
|
-
| :EG
|
523
|
-
| :ES
|
524
|
-
| :EU
|
525
|
-
| :FI
|
526
|
-
| :FR
|
527
|
-
| :GB
|
528
|
-
| :GE
|
529
|
-
| :GR
|
530
|
-
| :HK
|
531
|
-
| :HR
|
532
|
-
| :HU
|
533
|
-
| :ID
|
534
|
-
| :IE
|
535
|
-
| :IL
|
536
|
-
| :IN
|
537
|
-
| :IS
|
538
|
-
| :IT
|
539
|
-
| :JP
|
540
|
-
| :KE
|
541
|
-
| :KR
|
542
|
-
| :KZ
|
543
|
-
| :LI
|
544
|
-
| :LT
|
545
|
-
| :LU
|
546
|
-
| :LV
|
547
|
-
| :MT
|
548
|
-
| :MX
|
549
|
-
| :MY
|
550
|
-
| :NG
|
551
|
-
| :NL
|
552
|
-
| :NO
|
553
|
-
| :NZ
|
554
|
-
| :OM
|
555
|
-
| :PE
|
556
|
-
| :PH
|
557
|
-
| :PL
|
558
|
-
| :PT
|
559
|
-
| :RO
|
560
|
-
| :RS
|
561
|
-
| :RU
|
562
|
-
| :SA
|
563
|
-
| :SE
|
564
|
-
| :SG
|
565
|
-
| :SI
|
566
|
-
| :SK
|
567
|
-
| :SV
|
568
|
-
| :TH
|
569
|
-
| :TR
|
570
|
-
| :TW
|
571
|
-
| :UA
|
572
|
-
| :US
|
573
|
-
| :UY
|
574
|
-
| :VE
|
575
|
-
| :VN
|
576
|
-
| :ZA
|
577
|
-
|
578
|
-
module Country
|
579
|
-
extend Orb::Internal::Type::Enum
|
580
|
-
|
581
|
-
AD: :AD
|
582
|
-
AE: :AE
|
583
|
-
AR: :AR
|
584
|
-
AT: :AT
|
585
|
-
AU: :AU
|
586
|
-
BE: :BE
|
587
|
-
BG: :BG
|
588
|
-
BH: :BH
|
589
|
-
BO: :BO
|
590
|
-
BR: :BR
|
591
|
-
CA: :CA
|
592
|
-
CH: :CH
|
593
|
-
CL: :CL
|
594
|
-
CN: :CN
|
595
|
-
CO: :CO
|
596
|
-
CR: :CR
|
597
|
-
CY: :CY
|
598
|
-
CZ: :CZ
|
599
|
-
DE: :DE
|
600
|
-
DK: :DK
|
601
|
-
EE: :EE
|
602
|
-
DO: :DO
|
603
|
-
EC: :EC
|
604
|
-
EG: :EG
|
605
|
-
ES: :ES
|
606
|
-
EU: :EU
|
607
|
-
FI: :FI
|
608
|
-
FR: :FR
|
609
|
-
GB: :GB
|
610
|
-
GE: :GE
|
611
|
-
GR: :GR
|
612
|
-
HK: :HK
|
613
|
-
HR: :HR
|
614
|
-
HU: :HU
|
615
|
-
ID: :ID
|
616
|
-
IE: :IE
|
617
|
-
IL: :IL
|
618
|
-
IN: :IN
|
619
|
-
IS: :IS
|
620
|
-
IT: :IT
|
621
|
-
JP: :JP
|
622
|
-
KE: :KE
|
623
|
-
KR: :KR
|
624
|
-
KZ: :KZ
|
625
|
-
LI: :LI
|
626
|
-
LT: :LT
|
627
|
-
LU: :LU
|
628
|
-
LV: :LV
|
629
|
-
MT: :MT
|
630
|
-
MX: :MX
|
631
|
-
MY: :MY
|
632
|
-
NG: :NG
|
633
|
-
NL: :NL
|
634
|
-
NO: :NO
|
635
|
-
NZ: :NZ
|
636
|
-
OM: :OM
|
637
|
-
PE: :PE
|
638
|
-
PH: :PH
|
639
|
-
PL: :PL
|
640
|
-
PT: :PT
|
641
|
-
RO: :RO
|
642
|
-
RS: :RS
|
643
|
-
RU: :RU
|
644
|
-
SA: :SA
|
645
|
-
SE: :SE
|
646
|
-
SG: :SG
|
647
|
-
SI: :SI
|
648
|
-
SK: :SK
|
649
|
-
SV: :SV
|
650
|
-
TH: :TH
|
651
|
-
TR: :TR
|
652
|
-
TW: :TW
|
653
|
-
UA: :UA
|
654
|
-
US: :US
|
655
|
-
UY: :UY
|
656
|
-
VE: :VE
|
657
|
-
VN: :VN
|
658
|
-
ZA: :ZA
|
659
|
-
|
660
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::country]
|
661
|
-
end
|
662
|
-
|
663
|
-
type type_ =
|
664
|
-
:ad_nrt
|
665
|
-
| :ae_trn
|
666
|
-
| :ar_cuit
|
667
|
-
| :eu_vat
|
668
|
-
| :au_abn
|
669
|
-
| :au_arn
|
670
|
-
| :bg_uic
|
671
|
-
| :bh_vat
|
672
|
-
| :bo_tin
|
673
|
-
| :br_cnpj
|
674
|
-
| :br_cpf
|
675
|
-
| :ca_bn
|
676
|
-
| :ca_gst_hst
|
677
|
-
| :ca_pst_bc
|
678
|
-
| :ca_pst_mb
|
679
|
-
| :ca_pst_sk
|
680
|
-
| :ca_qst
|
681
|
-
| :ch_vat
|
682
|
-
| :cl_tin
|
683
|
-
| :cn_tin
|
684
|
-
| :co_nit
|
685
|
-
| :cr_tin
|
686
|
-
| :do_rcn
|
687
|
-
| :ec_ruc
|
688
|
-
| :eg_tin
|
689
|
-
| :es_cif
|
690
|
-
| :eu_oss_vat
|
691
|
-
| :gb_vat
|
692
|
-
| :ge_vat
|
693
|
-
| :hk_br
|
694
|
-
| :hu_tin
|
695
|
-
| :id_npwp
|
696
|
-
| :il_vat
|
697
|
-
| :in_gst
|
698
|
-
| :is_vat
|
699
|
-
| :jp_cn
|
700
|
-
| :jp_rn
|
701
|
-
| :jp_trn
|
702
|
-
| :ke_pin
|
703
|
-
| :kr_brn
|
704
|
-
| :kz_bin
|
705
|
-
| :li_uid
|
706
|
-
| :mx_rfc
|
707
|
-
| :my_frp
|
708
|
-
| :my_itn
|
709
|
-
| :my_sst
|
710
|
-
| :ng_tin
|
711
|
-
| :no_vat
|
712
|
-
| :no_voec
|
713
|
-
| :nz_gst
|
714
|
-
| :om_vat
|
715
|
-
| :pe_ruc
|
716
|
-
| :ph_tin
|
717
|
-
| :ro_tin
|
718
|
-
| :rs_pib
|
719
|
-
| :ru_inn
|
720
|
-
| :ru_kpp
|
721
|
-
| :sa_vat
|
722
|
-
| :sg_gst
|
723
|
-
| :sg_uen
|
724
|
-
| :si_tin
|
725
|
-
| :sv_nit
|
726
|
-
| :th_vat
|
727
|
-
| :tr_tin
|
728
|
-
| :tw_vat
|
729
|
-
| :ua_vat
|
730
|
-
| :us_ein
|
731
|
-
| :uy_ruc
|
732
|
-
| :ve_rif
|
733
|
-
| :vn_tin
|
734
|
-
| :za_vat
|
735
|
-
|
736
|
-
module Type
|
737
|
-
extend Orb::Internal::Type::Enum
|
738
|
-
|
739
|
-
AD_NRT: :ad_nrt
|
740
|
-
AE_TRN: :ae_trn
|
741
|
-
AR_CUIT: :ar_cuit
|
742
|
-
EU_VAT: :eu_vat
|
743
|
-
AU_ABN: :au_abn
|
744
|
-
AU_ARN: :au_arn
|
745
|
-
BG_UIC: :bg_uic
|
746
|
-
BH_VAT: :bh_vat
|
747
|
-
BO_TIN: :bo_tin
|
748
|
-
BR_CNPJ: :br_cnpj
|
749
|
-
BR_CPF: :br_cpf
|
750
|
-
CA_BN: :ca_bn
|
751
|
-
CA_GST_HST: :ca_gst_hst
|
752
|
-
CA_PST_BC: :ca_pst_bc
|
753
|
-
CA_PST_MB: :ca_pst_mb
|
754
|
-
CA_PST_SK: :ca_pst_sk
|
755
|
-
CA_QST: :ca_qst
|
756
|
-
CH_VAT: :ch_vat
|
757
|
-
CL_TIN: :cl_tin
|
758
|
-
CN_TIN: :cn_tin
|
759
|
-
CO_NIT: :co_nit
|
760
|
-
CR_TIN: :cr_tin
|
761
|
-
DO_RCN: :do_rcn
|
762
|
-
EC_RUC: :ec_ruc
|
763
|
-
EG_TIN: :eg_tin
|
764
|
-
ES_CIF: :es_cif
|
765
|
-
EU_OSS_VAT: :eu_oss_vat
|
766
|
-
GB_VAT: :gb_vat
|
767
|
-
GE_VAT: :ge_vat
|
768
|
-
HK_BR: :hk_br
|
769
|
-
HU_TIN: :hu_tin
|
770
|
-
ID_NPWP: :id_npwp
|
771
|
-
IL_VAT: :il_vat
|
772
|
-
IN_GST: :in_gst
|
773
|
-
IS_VAT: :is_vat
|
774
|
-
JP_CN: :jp_cn
|
775
|
-
JP_RN: :jp_rn
|
776
|
-
JP_TRN: :jp_trn
|
777
|
-
KE_PIN: :ke_pin
|
778
|
-
KR_BRN: :kr_brn
|
779
|
-
KZ_BIN: :kz_bin
|
780
|
-
LI_UID: :li_uid
|
781
|
-
MX_RFC: :mx_rfc
|
782
|
-
MY_FRP: :my_frp
|
783
|
-
MY_ITN: :my_itn
|
784
|
-
MY_SST: :my_sst
|
785
|
-
NG_TIN: :ng_tin
|
786
|
-
NO_VAT: :no_vat
|
787
|
-
NO_VOEC: :no_voec
|
788
|
-
NZ_GST: :nz_gst
|
789
|
-
OM_VAT: :om_vat
|
790
|
-
PE_RUC: :pe_ruc
|
791
|
-
PH_TIN: :ph_tin
|
792
|
-
RO_TIN: :ro_tin
|
793
|
-
RS_PIB: :rs_pib
|
794
|
-
RU_INN: :ru_inn
|
795
|
-
RU_KPP: :ru_kpp
|
796
|
-
SA_VAT: :sa_vat
|
797
|
-
SG_GST: :sg_gst
|
798
|
-
SG_UEN: :sg_uen
|
799
|
-
SI_TIN: :si_tin
|
800
|
-
SV_NIT: :sv_nit
|
801
|
-
TH_VAT: :th_vat
|
802
|
-
TR_TIN: :tr_tin
|
803
|
-
TW_VAT: :tw_vat
|
804
|
-
UA_VAT: :ua_vat
|
805
|
-
US_EIN: :us_ein
|
806
|
-
UY_RUC: :uy_ruc
|
807
|
-
VE_RIF: :ve_rif
|
808
|
-
VN_TIN: :vn_tin
|
809
|
-
ZA_VAT: :za_vat
|
810
|
-
|
811
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::type_]
|
812
|
-
end
|
813
|
-
end
|
814
|
-
|
815
398
|
type invoice_source = :subscription | :partial | :one_off
|
816
399
|
|
817
400
|
module InvoiceSource
|
@@ -835,9 +418,9 @@ module Orb
|
|
835
418
|
end_date: Time,
|
836
419
|
filter: String?,
|
837
420
|
grouping: String?,
|
838
|
-
maximum: Orb::
|
421
|
+
maximum: Orb::Maximum?,
|
839
422
|
maximum_amount: String?,
|
840
|
-
minimum: Orb::
|
423
|
+
minimum: Orb::Minimum?,
|
841
424
|
minimum_amount: String?,
|
842
425
|
name: String,
|
843
426
|
partially_invoiced_amount: String,
|
@@ -846,7 +429,7 @@ module Orb
|
|
846
429
|
start_date: Time,
|
847
430
|
sub_line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::sub_line_item],
|
848
431
|
subtotal: String,
|
849
|
-
tax_amounts: ::Array[Orb::
|
432
|
+
tax_amounts: ::Array[Orb::TaxAmount],
|
850
433
|
usage_customer_ids: ::Array[String]?
|
851
434
|
}
|
852
435
|
|
@@ -869,11 +452,11 @@ module Orb
|
|
869
452
|
|
870
453
|
attr_accessor grouping: String?
|
871
454
|
|
872
|
-
attr_accessor maximum: Orb::
|
455
|
+
attr_accessor maximum: Orb::Maximum?
|
873
456
|
|
874
457
|
attr_accessor maximum_amount: String?
|
875
458
|
|
876
|
-
attr_accessor minimum: Orb::
|
459
|
+
attr_accessor minimum: Orb::Minimum?
|
877
460
|
|
878
461
|
attr_accessor minimum_amount: String?
|
879
462
|
|
@@ -891,7 +474,7 @@ module Orb
|
|
891
474
|
|
892
475
|
attr_accessor subtotal: String
|
893
476
|
|
894
|
-
attr_accessor tax_amounts: ::Array[Orb::
|
477
|
+
attr_accessor tax_amounts: ::Array[Orb::TaxAmount]
|
895
478
|
|
896
479
|
attr_accessor usage_customer_ids: ::Array[String]?
|
897
480
|
|
@@ -905,9 +488,9 @@ module Orb
|
|
905
488
|
end_date: Time,
|
906
489
|
filter: String?,
|
907
490
|
grouping: String?,
|
908
|
-
maximum: Orb::
|
491
|
+
maximum: Orb::Maximum?,
|
909
492
|
maximum_amount: String?,
|
910
|
-
minimum: Orb::
|
493
|
+
minimum: Orb::Minimum?,
|
911
494
|
minimum_amount: String?,
|
912
495
|
name: String,
|
913
496
|
partially_invoiced_amount: String,
|
@@ -916,7 +499,7 @@ module Orb
|
|
916
499
|
start_date: Time,
|
917
500
|
sub_line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::sub_line_item],
|
918
501
|
subtotal: String,
|
919
|
-
tax_amounts: ::Array[Orb::
|
502
|
+
tax_amounts: ::Array[Orb::TaxAmount],
|
920
503
|
usage_customer_ids: ::Array[String]?
|
921
504
|
) -> void
|
922
505
|
|
@@ -930,9 +513,9 @@ module Orb
|
|
930
513
|
end_date: Time,
|
931
514
|
filter: String?,
|
932
515
|
grouping: String?,
|
933
|
-
maximum: Orb::
|
516
|
+
maximum: Orb::Maximum?,
|
934
517
|
maximum_amount: String?,
|
935
|
-
minimum: Orb::
|
518
|
+
minimum: Orb::Minimum?,
|
936
519
|
minimum_amount: String?,
|
937
520
|
name: String,
|
938
521
|
partially_invoiced_amount: String,
|
@@ -941,1120 +524,31 @@ module Orb
|
|
941
524
|
start_date: Time,
|
942
525
|
sub_line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::sub_line_item],
|
943
526
|
subtotal: String,
|
944
|
-
tax_amounts: ::Array[Orb::
|
527
|
+
tax_amounts: ::Array[Orb::TaxAmount],
|
945
528
|
usage_customer_ids: ::Array[String]?
|
946
529
|
}
|
947
530
|
|
948
531
|
type adjustment =
|
949
|
-
Orb::
|
950
|
-
| Orb::
|
951
|
-
| Orb::
|
952
|
-
| Orb::
|
953
|
-
| Orb::
|
532
|
+
Orb::MonetaryUsageDiscountAdjustment
|
533
|
+
| Orb::MonetaryAmountDiscountAdjustment
|
534
|
+
| Orb::MonetaryPercentageDiscountAdjustment
|
535
|
+
| Orb::MonetaryMinimumAdjustment
|
536
|
+
| Orb::MonetaryMaximumAdjustment
|
954
537
|
|
955
538
|
module Adjustment
|
956
539
|
extend Orb::Internal::Type::Union
|
957
540
|
|
958
|
-
type usage_discount =
|
959
|
-
{
|
960
|
-
id: String,
|
961
|
-
adjustment_type: :usage_discount,
|
962
|
-
amount: String,
|
963
|
-
applies_to_price_ids: ::Array[String],
|
964
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter],
|
965
|
-
is_invoice_level: bool,
|
966
|
-
reason: String?,
|
967
|
-
usage_discount: Float
|
968
|
-
}
|
969
|
-
|
970
|
-
class UsageDiscount < Orb::Internal::Type::BaseModel
|
971
|
-
attr_accessor id: String
|
972
|
-
|
973
|
-
attr_accessor adjustment_type: :usage_discount
|
974
|
-
|
975
|
-
attr_accessor amount: String
|
976
|
-
|
977
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
978
|
-
|
979
|
-
attr_accessor filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter]
|
980
|
-
|
981
|
-
attr_accessor is_invoice_level: bool
|
982
|
-
|
983
|
-
attr_accessor reason: String?
|
984
|
-
|
985
|
-
attr_accessor usage_discount: Float
|
986
|
-
|
987
|
-
def initialize: (
|
988
|
-
id: String,
|
989
|
-
amount: String,
|
990
|
-
applies_to_price_ids: ::Array[String],
|
991
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter],
|
992
|
-
is_invoice_level: bool,
|
993
|
-
reason: String?,
|
994
|
-
usage_discount: Float,
|
995
|
-
?adjustment_type: :usage_discount
|
996
|
-
) -> void
|
997
|
-
|
998
|
-
def to_hash: -> {
|
999
|
-
id: String,
|
1000
|
-
adjustment_type: :usage_discount,
|
1001
|
-
amount: String,
|
1002
|
-
applies_to_price_ids: ::Array[String],
|
1003
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter],
|
1004
|
-
is_invoice_level: bool,
|
1005
|
-
reason: String?,
|
1006
|
-
usage_discount: Float
|
1007
|
-
}
|
1008
|
-
|
1009
|
-
type filter =
|
1010
|
-
{
|
1011
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::field,
|
1012
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::operator,
|
1013
|
-
values: ::Array[String]
|
1014
|
-
}
|
1015
|
-
|
1016
|
-
class Filter < Orb::Internal::Type::BaseModel
|
1017
|
-
attr_accessor field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::field
|
1018
|
-
|
1019
|
-
attr_accessor operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::operator
|
1020
|
-
|
1021
|
-
attr_accessor values: ::Array[String]
|
1022
|
-
|
1023
|
-
def initialize: (
|
1024
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::field,
|
1025
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::operator,
|
1026
|
-
values: ::Array[String]
|
1027
|
-
) -> void
|
1028
|
-
|
1029
|
-
def to_hash: -> {
|
1030
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::field,
|
1031
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::operator,
|
1032
|
-
values: ::Array[String]
|
1033
|
-
}
|
1034
|
-
|
1035
|
-
type field =
|
1036
|
-
:price_id
|
1037
|
-
| :item_id
|
1038
|
-
| :price_type
|
1039
|
-
| :currency
|
1040
|
-
| :pricing_unit_id
|
1041
|
-
|
1042
|
-
module Field
|
1043
|
-
extend Orb::Internal::Type::Enum
|
1044
|
-
|
1045
|
-
PRICE_ID: :price_id
|
1046
|
-
ITEM_ID: :item_id
|
1047
|
-
PRICE_TYPE: :price_type
|
1048
|
-
CURRENCY: :currency
|
1049
|
-
PRICING_UNIT_ID: :pricing_unit_id
|
1050
|
-
|
1051
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::field]
|
1052
|
-
end
|
1053
|
-
|
1054
|
-
type operator = :includes | :excludes
|
1055
|
-
|
1056
|
-
module Operator
|
1057
|
-
extend Orb::Internal::Type::Enum
|
1058
|
-
|
1059
|
-
INCLUDES: :includes
|
1060
|
-
EXCLUDES: :excludes
|
1061
|
-
|
1062
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::Filter::operator]
|
1063
|
-
end
|
1064
|
-
end
|
1065
|
-
end
|
1066
|
-
|
1067
|
-
type amount_discount =
|
1068
|
-
{
|
1069
|
-
id: String,
|
1070
|
-
adjustment_type: :amount_discount,
|
1071
|
-
amount: String,
|
1072
|
-
amount_discount: String,
|
1073
|
-
applies_to_price_ids: ::Array[String],
|
1074
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter],
|
1075
|
-
is_invoice_level: bool,
|
1076
|
-
reason: String?
|
1077
|
-
}
|
1078
|
-
|
1079
|
-
class AmountDiscount < Orb::Internal::Type::BaseModel
|
1080
|
-
attr_accessor id: String
|
1081
|
-
|
1082
|
-
attr_accessor adjustment_type: :amount_discount
|
1083
|
-
|
1084
|
-
attr_accessor amount: String
|
1085
|
-
|
1086
|
-
attr_accessor amount_discount: String
|
1087
|
-
|
1088
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
1089
|
-
|
1090
|
-
attr_accessor filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter]
|
1091
|
-
|
1092
|
-
attr_accessor is_invoice_level: bool
|
1093
|
-
|
1094
|
-
attr_accessor reason: String?
|
1095
|
-
|
1096
|
-
def initialize: (
|
1097
|
-
id: String,
|
1098
|
-
amount: String,
|
1099
|
-
amount_discount: String,
|
1100
|
-
applies_to_price_ids: ::Array[String],
|
1101
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter],
|
1102
|
-
is_invoice_level: bool,
|
1103
|
-
reason: String?,
|
1104
|
-
?adjustment_type: :amount_discount
|
1105
|
-
) -> void
|
1106
|
-
|
1107
|
-
def to_hash: -> {
|
1108
|
-
id: String,
|
1109
|
-
adjustment_type: :amount_discount,
|
1110
|
-
amount: String,
|
1111
|
-
amount_discount: String,
|
1112
|
-
applies_to_price_ids: ::Array[String],
|
1113
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter],
|
1114
|
-
is_invoice_level: bool,
|
1115
|
-
reason: String?
|
1116
|
-
}
|
1117
|
-
|
1118
|
-
type filter =
|
1119
|
-
{
|
1120
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::field,
|
1121
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::operator,
|
1122
|
-
values: ::Array[String]
|
1123
|
-
}
|
1124
|
-
|
1125
|
-
class Filter < Orb::Internal::Type::BaseModel
|
1126
|
-
attr_accessor field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::field
|
1127
|
-
|
1128
|
-
attr_accessor operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::operator
|
1129
|
-
|
1130
|
-
attr_accessor values: ::Array[String]
|
1131
|
-
|
1132
|
-
def initialize: (
|
1133
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::field,
|
1134
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::operator,
|
1135
|
-
values: ::Array[String]
|
1136
|
-
) -> void
|
1137
|
-
|
1138
|
-
def to_hash: -> {
|
1139
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::field,
|
1140
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::operator,
|
1141
|
-
values: ::Array[String]
|
1142
|
-
}
|
1143
|
-
|
1144
|
-
type field =
|
1145
|
-
:price_id
|
1146
|
-
| :item_id
|
1147
|
-
| :price_type
|
1148
|
-
| :currency
|
1149
|
-
| :pricing_unit_id
|
1150
|
-
|
1151
|
-
module Field
|
1152
|
-
extend Orb::Internal::Type::Enum
|
1153
|
-
|
1154
|
-
PRICE_ID: :price_id
|
1155
|
-
ITEM_ID: :item_id
|
1156
|
-
PRICE_TYPE: :price_type
|
1157
|
-
CURRENCY: :currency
|
1158
|
-
PRICING_UNIT_ID: :pricing_unit_id
|
1159
|
-
|
1160
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::field]
|
1161
|
-
end
|
1162
|
-
|
1163
|
-
type operator = :includes | :excludes
|
1164
|
-
|
1165
|
-
module Operator
|
1166
|
-
extend Orb::Internal::Type::Enum
|
1167
|
-
|
1168
|
-
INCLUDES: :includes
|
1169
|
-
EXCLUDES: :excludes
|
1170
|
-
|
1171
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::Filter::operator]
|
1172
|
-
end
|
1173
|
-
end
|
1174
|
-
end
|
1175
|
-
|
1176
|
-
type percentage_discount =
|
1177
|
-
{
|
1178
|
-
id: String,
|
1179
|
-
adjustment_type: :percentage_discount,
|
1180
|
-
amount: String,
|
1181
|
-
applies_to_price_ids: ::Array[String],
|
1182
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter],
|
1183
|
-
is_invoice_level: bool,
|
1184
|
-
percentage_discount: Float,
|
1185
|
-
reason: String?
|
1186
|
-
}
|
1187
|
-
|
1188
|
-
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
1189
|
-
attr_accessor id: String
|
1190
|
-
|
1191
|
-
attr_accessor adjustment_type: :percentage_discount
|
1192
|
-
|
1193
|
-
attr_accessor amount: String
|
1194
|
-
|
1195
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
1196
|
-
|
1197
|
-
attr_accessor filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter]
|
1198
|
-
|
1199
|
-
attr_accessor is_invoice_level: bool
|
1200
|
-
|
1201
|
-
attr_accessor percentage_discount: Float
|
1202
|
-
|
1203
|
-
attr_accessor reason: String?
|
1204
|
-
|
1205
|
-
def initialize: (
|
1206
|
-
id: String,
|
1207
|
-
amount: String,
|
1208
|
-
applies_to_price_ids: ::Array[String],
|
1209
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter],
|
1210
|
-
is_invoice_level: bool,
|
1211
|
-
percentage_discount: Float,
|
1212
|
-
reason: String?,
|
1213
|
-
?adjustment_type: :percentage_discount
|
1214
|
-
) -> void
|
1215
|
-
|
1216
|
-
def to_hash: -> {
|
1217
|
-
id: String,
|
1218
|
-
adjustment_type: :percentage_discount,
|
1219
|
-
amount: String,
|
1220
|
-
applies_to_price_ids: ::Array[String],
|
1221
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter],
|
1222
|
-
is_invoice_level: bool,
|
1223
|
-
percentage_discount: Float,
|
1224
|
-
reason: String?
|
1225
|
-
}
|
1226
|
-
|
1227
|
-
type filter =
|
1228
|
-
{
|
1229
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::field,
|
1230
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::operator,
|
1231
|
-
values: ::Array[String]
|
1232
|
-
}
|
1233
|
-
|
1234
|
-
class Filter < Orb::Internal::Type::BaseModel
|
1235
|
-
attr_accessor field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::field
|
1236
|
-
|
1237
|
-
attr_accessor operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::operator
|
1238
|
-
|
1239
|
-
attr_accessor values: ::Array[String]
|
1240
|
-
|
1241
|
-
def initialize: (
|
1242
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::field,
|
1243
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::operator,
|
1244
|
-
values: ::Array[String]
|
1245
|
-
) -> void
|
1246
|
-
|
1247
|
-
def to_hash: -> {
|
1248
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::field,
|
1249
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::operator,
|
1250
|
-
values: ::Array[String]
|
1251
|
-
}
|
1252
|
-
|
1253
|
-
type field =
|
1254
|
-
:price_id
|
1255
|
-
| :item_id
|
1256
|
-
| :price_type
|
1257
|
-
| :currency
|
1258
|
-
| :pricing_unit_id
|
1259
|
-
|
1260
|
-
module Field
|
1261
|
-
extend Orb::Internal::Type::Enum
|
1262
|
-
|
1263
|
-
PRICE_ID: :price_id
|
1264
|
-
ITEM_ID: :item_id
|
1265
|
-
PRICE_TYPE: :price_type
|
1266
|
-
CURRENCY: :currency
|
1267
|
-
PRICING_UNIT_ID: :pricing_unit_id
|
1268
|
-
|
1269
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::field]
|
1270
|
-
end
|
1271
|
-
|
1272
|
-
type operator = :includes | :excludes
|
1273
|
-
|
1274
|
-
module Operator
|
1275
|
-
extend Orb::Internal::Type::Enum
|
1276
|
-
|
1277
|
-
INCLUDES: :includes
|
1278
|
-
EXCLUDES: :excludes
|
1279
|
-
|
1280
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::Filter::operator]
|
1281
|
-
end
|
1282
|
-
end
|
1283
|
-
end
|
1284
|
-
|
1285
|
-
type minimum =
|
1286
|
-
{
|
1287
|
-
id: String,
|
1288
|
-
adjustment_type: :minimum,
|
1289
|
-
amount: String,
|
1290
|
-
applies_to_price_ids: ::Array[String],
|
1291
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter],
|
1292
|
-
is_invoice_level: bool,
|
1293
|
-
item_id: String,
|
1294
|
-
minimum_amount: String,
|
1295
|
-
reason: String?
|
1296
|
-
}
|
1297
|
-
|
1298
|
-
class Minimum < Orb::Internal::Type::BaseModel
|
1299
|
-
attr_accessor id: String
|
1300
|
-
|
1301
|
-
attr_accessor adjustment_type: :minimum
|
1302
|
-
|
1303
|
-
attr_accessor amount: String
|
1304
|
-
|
1305
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
1306
|
-
|
1307
|
-
attr_accessor filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter]
|
1308
|
-
|
1309
|
-
attr_accessor is_invoice_level: bool
|
1310
|
-
|
1311
|
-
attr_accessor item_id: String
|
1312
|
-
|
1313
|
-
attr_accessor minimum_amount: String
|
1314
|
-
|
1315
|
-
attr_accessor reason: String?
|
1316
|
-
|
1317
|
-
def initialize: (
|
1318
|
-
id: String,
|
1319
|
-
amount: String,
|
1320
|
-
applies_to_price_ids: ::Array[String],
|
1321
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter],
|
1322
|
-
is_invoice_level: bool,
|
1323
|
-
item_id: String,
|
1324
|
-
minimum_amount: String,
|
1325
|
-
reason: String?,
|
1326
|
-
?adjustment_type: :minimum
|
1327
|
-
) -> void
|
1328
|
-
|
1329
|
-
def to_hash: -> {
|
1330
|
-
id: String,
|
1331
|
-
adjustment_type: :minimum,
|
1332
|
-
amount: String,
|
1333
|
-
applies_to_price_ids: ::Array[String],
|
1334
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter],
|
1335
|
-
is_invoice_level: bool,
|
1336
|
-
item_id: String,
|
1337
|
-
minimum_amount: String,
|
1338
|
-
reason: String?
|
1339
|
-
}
|
1340
|
-
|
1341
|
-
type filter =
|
1342
|
-
{
|
1343
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::field,
|
1344
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::operator,
|
1345
|
-
values: ::Array[String]
|
1346
|
-
}
|
1347
|
-
|
1348
|
-
class Filter < Orb::Internal::Type::BaseModel
|
1349
|
-
attr_accessor field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::field
|
1350
|
-
|
1351
|
-
attr_accessor operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::operator
|
1352
|
-
|
1353
|
-
attr_accessor values: ::Array[String]
|
1354
|
-
|
1355
|
-
def initialize: (
|
1356
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::field,
|
1357
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::operator,
|
1358
|
-
values: ::Array[String]
|
1359
|
-
) -> void
|
1360
|
-
|
1361
|
-
def to_hash: -> {
|
1362
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::field,
|
1363
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::operator,
|
1364
|
-
values: ::Array[String]
|
1365
|
-
}
|
1366
|
-
|
1367
|
-
type field =
|
1368
|
-
:price_id
|
1369
|
-
| :item_id
|
1370
|
-
| :price_type
|
1371
|
-
| :currency
|
1372
|
-
| :pricing_unit_id
|
1373
|
-
|
1374
|
-
module Field
|
1375
|
-
extend Orb::Internal::Type::Enum
|
1376
|
-
|
1377
|
-
PRICE_ID: :price_id
|
1378
|
-
ITEM_ID: :item_id
|
1379
|
-
PRICE_TYPE: :price_type
|
1380
|
-
CURRENCY: :currency
|
1381
|
-
PRICING_UNIT_ID: :pricing_unit_id
|
1382
|
-
|
1383
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::field]
|
1384
|
-
end
|
1385
|
-
|
1386
|
-
type operator = :includes | :excludes
|
1387
|
-
|
1388
|
-
module Operator
|
1389
|
-
extend Orb::Internal::Type::Enum
|
1390
|
-
|
1391
|
-
INCLUDES: :includes
|
1392
|
-
EXCLUDES: :excludes
|
1393
|
-
|
1394
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::Filter::operator]
|
1395
|
-
end
|
1396
|
-
end
|
1397
|
-
end
|
1398
|
-
|
1399
|
-
type maximum =
|
1400
|
-
{
|
1401
|
-
id: String,
|
1402
|
-
adjustment_type: :maximum,
|
1403
|
-
amount: String,
|
1404
|
-
applies_to_price_ids: ::Array[String],
|
1405
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter],
|
1406
|
-
is_invoice_level: bool,
|
1407
|
-
maximum_amount: String,
|
1408
|
-
reason: String?
|
1409
|
-
}
|
1410
|
-
|
1411
|
-
class Maximum < Orb::Internal::Type::BaseModel
|
1412
|
-
attr_accessor id: String
|
1413
|
-
|
1414
|
-
attr_accessor adjustment_type: :maximum
|
1415
|
-
|
1416
|
-
attr_accessor amount: String
|
1417
|
-
|
1418
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
1419
|
-
|
1420
|
-
attr_accessor filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter]
|
1421
|
-
|
1422
|
-
attr_accessor is_invoice_level: bool
|
1423
|
-
|
1424
|
-
attr_accessor maximum_amount: String
|
1425
|
-
|
1426
|
-
attr_accessor reason: String?
|
1427
|
-
|
1428
|
-
def initialize: (
|
1429
|
-
id: String,
|
1430
|
-
amount: String,
|
1431
|
-
applies_to_price_ids: ::Array[String],
|
1432
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter],
|
1433
|
-
is_invoice_level: bool,
|
1434
|
-
maximum_amount: String,
|
1435
|
-
reason: String?,
|
1436
|
-
?adjustment_type: :maximum
|
1437
|
-
) -> void
|
1438
|
-
|
1439
|
-
def to_hash: -> {
|
1440
|
-
id: String,
|
1441
|
-
adjustment_type: :maximum,
|
1442
|
-
amount: String,
|
1443
|
-
applies_to_price_ids: ::Array[String],
|
1444
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter],
|
1445
|
-
is_invoice_level: bool,
|
1446
|
-
maximum_amount: String,
|
1447
|
-
reason: String?
|
1448
|
-
}
|
1449
|
-
|
1450
|
-
type filter =
|
1451
|
-
{
|
1452
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::field,
|
1453
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::operator,
|
1454
|
-
values: ::Array[String]
|
1455
|
-
}
|
1456
|
-
|
1457
|
-
class Filter < Orb::Internal::Type::BaseModel
|
1458
|
-
attr_accessor field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::field
|
1459
|
-
|
1460
|
-
attr_accessor operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::operator
|
1461
|
-
|
1462
|
-
attr_accessor values: ::Array[String]
|
1463
|
-
|
1464
|
-
def initialize: (
|
1465
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::field,
|
1466
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::operator,
|
1467
|
-
values: ::Array[String]
|
1468
|
-
) -> void
|
1469
|
-
|
1470
|
-
def to_hash: -> {
|
1471
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::field,
|
1472
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::operator,
|
1473
|
-
values: ::Array[String]
|
1474
|
-
}
|
1475
|
-
|
1476
|
-
type field =
|
1477
|
-
:price_id
|
1478
|
-
| :item_id
|
1479
|
-
| :price_type
|
1480
|
-
| :currency
|
1481
|
-
| :pricing_unit_id
|
1482
|
-
|
1483
|
-
module Field
|
1484
|
-
extend Orb::Internal::Type::Enum
|
1485
|
-
|
1486
|
-
PRICE_ID: :price_id
|
1487
|
-
ITEM_ID: :item_id
|
1488
|
-
PRICE_TYPE: :price_type
|
1489
|
-
CURRENCY: :currency
|
1490
|
-
PRICING_UNIT_ID: :pricing_unit_id
|
1491
|
-
|
1492
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::field]
|
1493
|
-
end
|
1494
|
-
|
1495
|
-
type operator = :includes | :excludes
|
1496
|
-
|
1497
|
-
module Operator
|
1498
|
-
extend Orb::Internal::Type::Enum
|
1499
|
-
|
1500
|
-
INCLUDES: :includes
|
1501
|
-
EXCLUDES: :excludes
|
1502
|
-
|
1503
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::Filter::operator]
|
1504
|
-
end
|
1505
|
-
end
|
1506
|
-
end
|
1507
|
-
|
1508
541
|
def self?.variants: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::adjustment]
|
1509
542
|
end
|
1510
543
|
|
1511
|
-
type maximum =
|
1512
|
-
{
|
1513
|
-
applies_to_price_ids: ::Array[String],
|
1514
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter],
|
1515
|
-
maximum_amount: String
|
1516
|
-
}
|
1517
|
-
|
1518
|
-
class Maximum < Orb::Internal::Type::BaseModel
|
1519
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
1520
|
-
|
1521
|
-
attr_accessor filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter]
|
1522
|
-
|
1523
|
-
attr_accessor maximum_amount: String
|
1524
|
-
|
1525
|
-
def initialize: (
|
1526
|
-
applies_to_price_ids: ::Array[String],
|
1527
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter],
|
1528
|
-
maximum_amount: String
|
1529
|
-
) -> void
|
1530
|
-
|
1531
|
-
def to_hash: -> {
|
1532
|
-
applies_to_price_ids: ::Array[String],
|
1533
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter],
|
1534
|
-
maximum_amount: String
|
1535
|
-
}
|
1536
|
-
|
1537
|
-
type filter =
|
1538
|
-
{
|
1539
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::field,
|
1540
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::operator,
|
1541
|
-
values: ::Array[String]
|
1542
|
-
}
|
1543
|
-
|
1544
|
-
class Filter < Orb::Internal::Type::BaseModel
|
1545
|
-
attr_accessor field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::field
|
1546
|
-
|
1547
|
-
attr_accessor operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::operator
|
1548
|
-
|
1549
|
-
attr_accessor values: ::Array[String]
|
1550
|
-
|
1551
|
-
def initialize: (
|
1552
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::field,
|
1553
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::operator,
|
1554
|
-
values: ::Array[String]
|
1555
|
-
) -> void
|
1556
|
-
|
1557
|
-
def to_hash: -> {
|
1558
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::field,
|
1559
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::operator,
|
1560
|
-
values: ::Array[String]
|
1561
|
-
}
|
1562
|
-
|
1563
|
-
type field =
|
1564
|
-
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
1565
|
-
|
1566
|
-
module Field
|
1567
|
-
extend Orb::Internal::Type::Enum
|
1568
|
-
|
1569
|
-
PRICE_ID: :price_id
|
1570
|
-
ITEM_ID: :item_id
|
1571
|
-
PRICE_TYPE: :price_type
|
1572
|
-
CURRENCY: :currency
|
1573
|
-
PRICING_UNIT_ID: :pricing_unit_id
|
1574
|
-
|
1575
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::field]
|
1576
|
-
end
|
1577
|
-
|
1578
|
-
type operator = :includes | :excludes
|
1579
|
-
|
1580
|
-
module Operator
|
1581
|
-
extend Orb::Internal::Type::Enum
|
1582
|
-
|
1583
|
-
INCLUDES: :includes
|
1584
|
-
EXCLUDES: :excludes
|
1585
|
-
|
1586
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Filter::operator]
|
1587
|
-
end
|
1588
|
-
end
|
1589
|
-
end
|
1590
|
-
|
1591
|
-
type minimum =
|
1592
|
-
{
|
1593
|
-
applies_to_price_ids: ::Array[String],
|
1594
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter],
|
1595
|
-
minimum_amount: String
|
1596
|
-
}
|
1597
|
-
|
1598
|
-
class Minimum < Orb::Internal::Type::BaseModel
|
1599
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
1600
|
-
|
1601
|
-
attr_accessor filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter]
|
1602
|
-
|
1603
|
-
attr_accessor minimum_amount: String
|
1604
|
-
|
1605
|
-
def initialize: (
|
1606
|
-
applies_to_price_ids: ::Array[String],
|
1607
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter],
|
1608
|
-
minimum_amount: String
|
1609
|
-
) -> void
|
1610
|
-
|
1611
|
-
def to_hash: -> {
|
1612
|
-
applies_to_price_ids: ::Array[String],
|
1613
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter],
|
1614
|
-
minimum_amount: String
|
1615
|
-
}
|
1616
|
-
|
1617
|
-
type filter =
|
1618
|
-
{
|
1619
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::field,
|
1620
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::operator,
|
1621
|
-
values: ::Array[String]
|
1622
|
-
}
|
1623
|
-
|
1624
|
-
class Filter < Orb::Internal::Type::BaseModel
|
1625
|
-
attr_accessor field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::field
|
1626
|
-
|
1627
|
-
attr_accessor operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::operator
|
1628
|
-
|
1629
|
-
attr_accessor values: ::Array[String]
|
1630
|
-
|
1631
|
-
def initialize: (
|
1632
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::field,
|
1633
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::operator,
|
1634
|
-
values: ::Array[String]
|
1635
|
-
) -> void
|
1636
|
-
|
1637
|
-
def to_hash: -> {
|
1638
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::field,
|
1639
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::operator,
|
1640
|
-
values: ::Array[String]
|
1641
|
-
}
|
1642
|
-
|
1643
|
-
type field =
|
1644
|
-
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
1645
|
-
|
1646
|
-
module Field
|
1647
|
-
extend Orb::Internal::Type::Enum
|
1648
|
-
|
1649
|
-
PRICE_ID: :price_id
|
1650
|
-
ITEM_ID: :item_id
|
1651
|
-
PRICE_TYPE: :price_type
|
1652
|
-
CURRENCY: :currency
|
1653
|
-
PRICING_UNIT_ID: :pricing_unit_id
|
1654
|
-
|
1655
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::field]
|
1656
|
-
end
|
1657
|
-
|
1658
|
-
type operator = :includes | :excludes
|
1659
|
-
|
1660
|
-
module Operator
|
1661
|
-
extend Orb::Internal::Type::Enum
|
1662
|
-
|
1663
|
-
INCLUDES: :includes
|
1664
|
-
EXCLUDES: :excludes
|
1665
|
-
|
1666
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Filter::operator]
|
1667
|
-
end
|
1668
|
-
end
|
1669
|
-
end
|
1670
|
-
|
1671
544
|
type sub_line_item =
|
1672
|
-
Orb::
|
1673
|
-
| Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier
|
1674
|
-
| Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null
|
545
|
+
Orb::MatrixSubLineItem | Orb::TierSubLineItem | Orb::OtherSubLineItem
|
1675
546
|
|
1676
547
|
module SubLineItem
|
1677
548
|
extend Orb::Internal::Type::Union
|
1678
549
|
|
1679
|
-
type matrix =
|
1680
|
-
{
|
1681
|
-
amount: String,
|
1682
|
-
grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping?,
|
1683
|
-
matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig,
|
1684
|
-
name: String,
|
1685
|
-
quantity: Float,
|
1686
|
-
type: :matrix
|
1687
|
-
}
|
1688
|
-
|
1689
|
-
class Matrix < Orb::Internal::Type::BaseModel
|
1690
|
-
attr_accessor amount: String
|
1691
|
-
|
1692
|
-
attr_accessor grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping?
|
1693
|
-
|
1694
|
-
attr_accessor matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig
|
1695
|
-
|
1696
|
-
attr_accessor name: String
|
1697
|
-
|
1698
|
-
attr_accessor quantity: Float
|
1699
|
-
|
1700
|
-
attr_accessor type: :matrix
|
1701
|
-
|
1702
|
-
def initialize: (
|
1703
|
-
amount: String,
|
1704
|
-
grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping?,
|
1705
|
-
matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig,
|
1706
|
-
name: String,
|
1707
|
-
quantity: Float,
|
1708
|
-
?type: :matrix
|
1709
|
-
) -> void
|
1710
|
-
|
1711
|
-
def to_hash: -> {
|
1712
|
-
amount: String,
|
1713
|
-
grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping?,
|
1714
|
-
matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig,
|
1715
|
-
name: String,
|
1716
|
-
quantity: Float,
|
1717
|
-
type: :matrix
|
1718
|
-
}
|
1719
|
-
|
1720
|
-
type grouping = { key: String, value: String? }
|
1721
|
-
|
1722
|
-
class Grouping < Orb::Internal::Type::BaseModel
|
1723
|
-
attr_accessor key: String
|
1724
|
-
|
1725
|
-
attr_accessor value: String?
|
1726
|
-
|
1727
|
-
def initialize: (key: String, value: String?) -> void
|
1728
|
-
|
1729
|
-
def to_hash: -> { key: String, value: String? }
|
1730
|
-
end
|
1731
|
-
|
1732
|
-
type matrix_config = { dimension_values: ::Array[String?] }
|
1733
|
-
|
1734
|
-
class MatrixConfig < Orb::Internal::Type::BaseModel
|
1735
|
-
attr_accessor dimension_values: ::Array[String?]
|
1736
|
-
|
1737
|
-
def initialize: (dimension_values: ::Array[String?]) -> void
|
1738
|
-
|
1739
|
-
def to_hash: -> { dimension_values: ::Array[String?] }
|
1740
|
-
end
|
1741
|
-
end
|
1742
|
-
|
1743
|
-
type tier =
|
1744
|
-
{
|
1745
|
-
amount: String,
|
1746
|
-
grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping?,
|
1747
|
-
name: String,
|
1748
|
-
quantity: Float,
|
1749
|
-
tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig,
|
1750
|
-
type: :tier
|
1751
|
-
}
|
1752
|
-
|
1753
|
-
class Tier < Orb::Internal::Type::BaseModel
|
1754
|
-
attr_accessor amount: String
|
1755
|
-
|
1756
|
-
attr_accessor grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping?
|
1757
|
-
|
1758
|
-
attr_accessor name: String
|
1759
|
-
|
1760
|
-
attr_accessor quantity: Float
|
1761
|
-
|
1762
|
-
attr_accessor tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig
|
1763
|
-
|
1764
|
-
attr_accessor type: :tier
|
1765
|
-
|
1766
|
-
def initialize: (
|
1767
|
-
amount: String,
|
1768
|
-
grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping?,
|
1769
|
-
name: String,
|
1770
|
-
quantity: Float,
|
1771
|
-
tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig,
|
1772
|
-
?type: :tier
|
1773
|
-
) -> void
|
1774
|
-
|
1775
|
-
def to_hash: -> {
|
1776
|
-
amount: String,
|
1777
|
-
grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping?,
|
1778
|
-
name: String,
|
1779
|
-
quantity: Float,
|
1780
|
-
tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig,
|
1781
|
-
type: :tier
|
1782
|
-
}
|
1783
|
-
|
1784
|
-
type grouping = { key: String, value: String? }
|
1785
|
-
|
1786
|
-
class Grouping < Orb::Internal::Type::BaseModel
|
1787
|
-
attr_accessor key: String
|
1788
|
-
|
1789
|
-
attr_accessor value: String?
|
1790
|
-
|
1791
|
-
def initialize: (key: String, value: String?) -> void
|
1792
|
-
|
1793
|
-
def to_hash: -> { key: String, value: String? }
|
1794
|
-
end
|
1795
|
-
|
1796
|
-
type tier_config =
|
1797
|
-
{ first_unit: Float, last_unit: Float?, unit_amount: String }
|
1798
|
-
|
1799
|
-
class TierConfig < Orb::Internal::Type::BaseModel
|
1800
|
-
attr_accessor first_unit: Float
|
1801
|
-
|
1802
|
-
attr_accessor last_unit: Float?
|
1803
|
-
|
1804
|
-
attr_accessor unit_amount: String
|
1805
|
-
|
1806
|
-
def initialize: (
|
1807
|
-
first_unit: Float,
|
1808
|
-
last_unit: Float?,
|
1809
|
-
unit_amount: String
|
1810
|
-
) -> void
|
1811
|
-
|
1812
|
-
def to_hash: -> {
|
1813
|
-
first_unit: Float,
|
1814
|
-
last_unit: Float?,
|
1815
|
-
unit_amount: String
|
1816
|
-
}
|
1817
|
-
end
|
1818
|
-
end
|
1819
|
-
|
1820
|
-
type null =
|
1821
|
-
{
|
1822
|
-
amount: String,
|
1823
|
-
grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping?,
|
1824
|
-
name: String,
|
1825
|
-
quantity: Float,
|
1826
|
-
type: :"'null'"
|
1827
|
-
}
|
1828
|
-
|
1829
|
-
class Null < Orb::Internal::Type::BaseModel
|
1830
|
-
attr_accessor amount: String
|
1831
|
-
|
1832
|
-
attr_accessor grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping?
|
1833
|
-
|
1834
|
-
attr_accessor name: String
|
1835
|
-
|
1836
|
-
attr_accessor quantity: Float
|
1837
|
-
|
1838
|
-
attr_accessor type: :"'null'"
|
1839
|
-
|
1840
|
-
def initialize: (
|
1841
|
-
amount: String,
|
1842
|
-
grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping?,
|
1843
|
-
name: String,
|
1844
|
-
quantity: Float,
|
1845
|
-
?type: :"'null'"
|
1846
|
-
) -> void
|
1847
|
-
|
1848
|
-
def to_hash: -> {
|
1849
|
-
amount: String,
|
1850
|
-
grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping?,
|
1851
|
-
name: String,
|
1852
|
-
quantity: Float,
|
1853
|
-
type: :"'null'"
|
1854
|
-
}
|
1855
|
-
|
1856
|
-
type grouping = { key: String, value: String? }
|
1857
|
-
|
1858
|
-
class Grouping < Orb::Internal::Type::BaseModel
|
1859
|
-
attr_accessor key: String
|
1860
|
-
|
1861
|
-
attr_accessor value: String?
|
1862
|
-
|
1863
|
-
def initialize: (key: String, value: String?) -> void
|
1864
|
-
|
1865
|
-
def to_hash: -> { key: String, value: String? }
|
1866
|
-
end
|
1867
|
-
end
|
1868
|
-
|
1869
550
|
def self?.variants: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::sub_line_item]
|
1870
551
|
end
|
1871
|
-
|
1872
|
-
type tax_amount =
|
1873
|
-
{
|
1874
|
-
amount: String,
|
1875
|
-
tax_rate_description: String,
|
1876
|
-
tax_rate_percentage: String?
|
1877
|
-
}
|
1878
|
-
|
1879
|
-
class TaxAmount < Orb::Internal::Type::BaseModel
|
1880
|
-
attr_accessor amount: String
|
1881
|
-
|
1882
|
-
attr_accessor tax_rate_description: String
|
1883
|
-
|
1884
|
-
attr_accessor tax_rate_percentage: String?
|
1885
|
-
|
1886
|
-
def initialize: (
|
1887
|
-
amount: String,
|
1888
|
-
tax_rate_description: String,
|
1889
|
-
tax_rate_percentage: String?
|
1890
|
-
) -> void
|
1891
|
-
|
1892
|
-
def to_hash: -> {
|
1893
|
-
amount: String,
|
1894
|
-
tax_rate_description: String,
|
1895
|
-
tax_rate_percentage: String?
|
1896
|
-
}
|
1897
|
-
end
|
1898
|
-
end
|
1899
|
-
|
1900
|
-
type maximum =
|
1901
|
-
{
|
1902
|
-
applies_to_price_ids: ::Array[String],
|
1903
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter],
|
1904
|
-
maximum_amount: String
|
1905
|
-
}
|
1906
|
-
|
1907
|
-
class Maximum < Orb::Internal::Type::BaseModel
|
1908
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
1909
|
-
|
1910
|
-
attr_accessor filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter]
|
1911
|
-
|
1912
|
-
attr_accessor maximum_amount: String
|
1913
|
-
|
1914
|
-
def initialize: (
|
1915
|
-
applies_to_price_ids: ::Array[String],
|
1916
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter],
|
1917
|
-
maximum_amount: String
|
1918
|
-
) -> void
|
1919
|
-
|
1920
|
-
def to_hash: -> {
|
1921
|
-
applies_to_price_ids: ::Array[String],
|
1922
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter],
|
1923
|
-
maximum_amount: String
|
1924
|
-
}
|
1925
|
-
|
1926
|
-
type filter =
|
1927
|
-
{
|
1928
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::field,
|
1929
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::operator,
|
1930
|
-
values: ::Array[String]
|
1931
|
-
}
|
1932
|
-
|
1933
|
-
class Filter < Orb::Internal::Type::BaseModel
|
1934
|
-
attr_accessor field: Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::field
|
1935
|
-
|
1936
|
-
attr_accessor operator: Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::operator
|
1937
|
-
|
1938
|
-
attr_accessor values: ::Array[String]
|
1939
|
-
|
1940
|
-
def initialize: (
|
1941
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::field,
|
1942
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::operator,
|
1943
|
-
values: ::Array[String]
|
1944
|
-
) -> void
|
1945
|
-
|
1946
|
-
def to_hash: -> {
|
1947
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::field,
|
1948
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::operator,
|
1949
|
-
values: ::Array[String]
|
1950
|
-
}
|
1951
|
-
|
1952
|
-
type field =
|
1953
|
-
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
1954
|
-
|
1955
|
-
module Field
|
1956
|
-
extend Orb::Internal::Type::Enum
|
1957
|
-
|
1958
|
-
PRICE_ID: :price_id
|
1959
|
-
ITEM_ID: :item_id
|
1960
|
-
PRICE_TYPE: :price_type
|
1961
|
-
CURRENCY: :currency
|
1962
|
-
PRICING_UNIT_ID: :pricing_unit_id
|
1963
|
-
|
1964
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::field]
|
1965
|
-
end
|
1966
|
-
|
1967
|
-
type operator = :includes | :excludes
|
1968
|
-
|
1969
|
-
module Operator
|
1970
|
-
extend Orb::Internal::Type::Enum
|
1971
|
-
|
1972
|
-
INCLUDES: :includes
|
1973
|
-
EXCLUDES: :excludes
|
1974
|
-
|
1975
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Filter::operator]
|
1976
|
-
end
|
1977
|
-
end
|
1978
|
-
end
|
1979
|
-
|
1980
|
-
type minimum =
|
1981
|
-
{
|
1982
|
-
applies_to_price_ids: ::Array[String],
|
1983
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter],
|
1984
|
-
minimum_amount: String
|
1985
|
-
}
|
1986
|
-
|
1987
|
-
class Minimum < Orb::Internal::Type::BaseModel
|
1988
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
1989
|
-
|
1990
|
-
attr_accessor filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter]
|
1991
|
-
|
1992
|
-
attr_accessor minimum_amount: String
|
1993
|
-
|
1994
|
-
def initialize: (
|
1995
|
-
applies_to_price_ids: ::Array[String],
|
1996
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter],
|
1997
|
-
minimum_amount: String
|
1998
|
-
) -> void
|
1999
|
-
|
2000
|
-
def to_hash: -> {
|
2001
|
-
applies_to_price_ids: ::Array[String],
|
2002
|
-
filters: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter],
|
2003
|
-
minimum_amount: String
|
2004
|
-
}
|
2005
|
-
|
2006
|
-
type filter =
|
2007
|
-
{
|
2008
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::field,
|
2009
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::operator,
|
2010
|
-
values: ::Array[String]
|
2011
|
-
}
|
2012
|
-
|
2013
|
-
class Filter < Orb::Internal::Type::BaseModel
|
2014
|
-
attr_accessor field: Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::field
|
2015
|
-
|
2016
|
-
attr_accessor operator: Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::operator
|
2017
|
-
|
2018
|
-
attr_accessor values: ::Array[String]
|
2019
|
-
|
2020
|
-
def initialize: (
|
2021
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::field,
|
2022
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::operator,
|
2023
|
-
values: ::Array[String]
|
2024
|
-
) -> void
|
2025
|
-
|
2026
|
-
def to_hash: -> {
|
2027
|
-
field: Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::field,
|
2028
|
-
operator: Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::operator,
|
2029
|
-
values: ::Array[String]
|
2030
|
-
}
|
2031
|
-
|
2032
|
-
type field =
|
2033
|
-
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
2034
|
-
|
2035
|
-
module Field
|
2036
|
-
extend Orb::Internal::Type::Enum
|
2037
|
-
|
2038
|
-
PRICE_ID: :price_id
|
2039
|
-
ITEM_ID: :item_id
|
2040
|
-
PRICE_TYPE: :price_type
|
2041
|
-
CURRENCY: :currency
|
2042
|
-
PRICING_UNIT_ID: :pricing_unit_id
|
2043
|
-
|
2044
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::field]
|
2045
|
-
end
|
2046
|
-
|
2047
|
-
type operator = :includes | :excludes
|
2048
|
-
|
2049
|
-
module Operator
|
2050
|
-
extend Orb::Internal::Type::Enum
|
2051
|
-
|
2052
|
-
INCLUDES: :includes
|
2053
|
-
EXCLUDES: :excludes
|
2054
|
-
|
2055
|
-
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Filter::operator]
|
2056
|
-
end
|
2057
|
-
end
|
2058
552
|
end
|
2059
553
|
|
2060
554
|
type payment_attempt =
|
@@ -2109,48 +603,6 @@ module Orb
|
|
2109
603
|
end
|
2110
604
|
end
|
2111
605
|
|
2112
|
-
type shipping_address =
|
2113
|
-
{
|
2114
|
-
city: String?,
|
2115
|
-
country: String?,
|
2116
|
-
:line1 => String?,
|
2117
|
-
:line2 => String?,
|
2118
|
-
postal_code: String?,
|
2119
|
-
state: String?
|
2120
|
-
}
|
2121
|
-
|
2122
|
-
class ShippingAddress < Orb::Internal::Type::BaseModel
|
2123
|
-
attr_accessor city: String?
|
2124
|
-
|
2125
|
-
attr_accessor country: String?
|
2126
|
-
|
2127
|
-
attr_accessor line1: String?
|
2128
|
-
|
2129
|
-
attr_accessor line2: String?
|
2130
|
-
|
2131
|
-
attr_accessor postal_code: String?
|
2132
|
-
|
2133
|
-
attr_accessor state: String?
|
2134
|
-
|
2135
|
-
def initialize: (
|
2136
|
-
city: String?,
|
2137
|
-
country: String?,
|
2138
|
-
line1: String?,
|
2139
|
-
line2: String?,
|
2140
|
-
postal_code: String?,
|
2141
|
-
state: String?
|
2142
|
-
) -> void
|
2143
|
-
|
2144
|
-
def to_hash: -> {
|
2145
|
-
city: String?,
|
2146
|
-
country: String?,
|
2147
|
-
:line1 => String?,
|
2148
|
-
:line2 => String?,
|
2149
|
-
postal_code: String?,
|
2150
|
-
state: String?
|
2151
|
-
}
|
2152
|
-
end
|
2153
|
-
|
2154
606
|
type status = :issued | :paid | :synced | :void | :draft
|
2155
607
|
|
2156
608
|
module Status
|
@@ -2164,16 +616,6 @@ module Orb
|
|
2164
616
|
|
2165
617
|
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::status]
|
2166
618
|
end
|
2167
|
-
|
2168
|
-
type subscription = { id: String }
|
2169
|
-
|
2170
|
-
class Subscription < Orb::Internal::Type::BaseModel
|
2171
|
-
attr_accessor id: String
|
2172
|
-
|
2173
|
-
def initialize: (id: String) -> void
|
2174
|
-
|
2175
|
-
def to_hash: -> { id: String }
|
2176
|
-
end
|
2177
619
|
end
|
2178
620
|
end
|
2179
621
|
end
|