orb-billing 1.14.0 → 1.15.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 +12 -0
- data/lib/orb/client.rb +14 -0
- data/lib/orb/internal/transport/base_client.rb +5 -0
- data/lib/orb/internal/type/union.rb +13 -27
- data/lib/orb/models/accounting_provider_config.rb +14 -3
- data/lib/orb/models/adjustment_interval.rb +185 -3
- data/lib/orb/models/alert.rb +105 -1
- data/lib/orb/models/alert_create_for_subscription_params.rb +120 -7
- data/lib/orb/models/alert_update_params.rb +113 -1
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +2419 -17109
- data/lib/orb/models/beta_create_plan_version_params.rb +2361 -16947
- data/lib/orb/models/changed_subscription_resources.rb +200 -10
- data/lib/orb/models/conversion_rate_config.rb +18 -0
- data/lib/orb/models/credit_block_list_invoices_response.rb +155 -1
- data/lib/orb/models/credit_block_retrieve_response.rb +150 -1
- data/lib/orb/models/customer.rb +111 -4
- data/lib/orb/models/customer_create_params.rb +6 -1
- data/lib/orb/models/customer_tax_id.rb +15 -1
- data/lib/orb/models/customer_update_by_external_id_params.rb +16 -2
- data/lib/orb/models/customer_update_params.rb +16 -2
- data/lib/orb/models/customers/credit_list_by_external_id_response.rb +155 -1
- data/lib/orb/models/customers/credit_list_response.rb +152 -1
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +4 -4
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +4 -4
- data/lib/orb/models/dimensional_price_group.rb +1 -1
- data/lib/orb/models/discount.rb +145 -1
- data/lib/orb/models/event_ingest_params.rb +5 -2
- data/lib/orb/models/invoice.rb +198 -10
- data/lib/orb/models/invoice_create_params.rb +6 -5
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +200 -10
- data/lib/orb/models/invoice_issue_summary_response.rb +9 -3
- data/lib/orb/models/invoice_level_discount.rb +145 -1
- data/lib/orb/models/invoice_line_item_create_response.rb +189 -5
- data/lib/orb/models/invoice_list_summary_response.rb +9 -3
- data/lib/orb/models/licenses/external_license_get_usage_params.rb +3 -3
- data/lib/orb/models/licenses/usage_get_all_usage_params.rb +3 -3
- data/lib/orb/models/licenses/usage_get_usage_params.rb +3 -3
- data/lib/orb/models/mutated_subscription.rb +169 -4
- data/lib/orb/models/new_allocation_price.rb +11 -1
- data/lib/orb/models/new_floating_bulk_price.rb +1 -3
- data/lib/orb/models/new_floating_bulk_with_proration_price.rb +1 -3
- data/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_allocation_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_tiered_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_matrix_price.rb +1 -3
- data/lib/orb/models/new_floating_matrix_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_floating_matrix_with_display_name_price.rb +1 -3
- data/lib/orb/models/new_floating_max_group_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_floating_minimum_composite_price.rb +1 -3
- data/lib/orb/models/new_floating_package_price.rb +1 -3
- data/lib/orb/models/new_floating_package_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +1 -3
- data/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +1 -3
- data/lib/orb/models/new_floating_threshold_total_amount_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_with_proration_price.rb +1 -3
- data/lib/orb/models/new_floating_unit_price.rb +1 -3
- data/lib/orb/models/new_floating_unit_with_percent_price.rb +1 -3
- data/lib/orb/models/new_floating_unit_with_proration_price.rb +1 -3
- data/lib/orb/models/new_plan_bulk_price.rb +1 -1
- data/lib/orb/models/new_plan_bulk_with_proration_price.rb +1 -3
- data/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_allocation_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_tiered_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_matrix_price.rb +1 -5
- data/lib/orb/models/new_plan_matrix_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_plan_matrix_with_display_name_price.rb +1 -3
- data/lib/orb/models/new_plan_max_group_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_plan_minimum_composite_price.rb +1 -3
- data/lib/orb/models/new_plan_package_price.rb +1 -5
- data/lib/orb/models/new_plan_package_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +1 -3
- data/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +1 -3
- data/lib/orb/models/new_plan_threshold_total_amount_price.rb +1 -3
- data/lib/orb/models/new_plan_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_tiered_price.rb +1 -5
- data/lib/orb/models/new_plan_tiered_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_unit_price.rb +1 -1
- data/lib/orb/models/new_plan_unit_with_percent_price.rb +1 -3
- data/lib/orb/models/new_plan_unit_with_proration_price.rb +1 -3
- data/lib/orb/models/new_subscription_bulk_price.rb +1 -3
- data/lib/orb/models/new_subscription_bulk_with_proration_price.rb +1 -3
- data/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_allocation_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_tiered_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_matrix_price.rb +1 -3
- data/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +1 -3
- data/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_minimum_composite_price.rb +1 -3
- data/lib/orb/models/new_subscription_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_package_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +1 -3
- data/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +1 -3
- data/lib/orb/models/new_subscription_threshold_total_amount_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_unit_price.rb +1 -3
- data/lib/orb/models/new_subscription_unit_with_percent_price.rb +1 -3
- data/lib/orb/models/new_subscription_unit_with_proration_price.rb +1 -3
- data/lib/orb/models/per_price_cost.rb +2 -2
- data/lib/orb/models/plan.rb +189 -9
- data/lib/orb/models/plan_create_params.rb +1047 -8228
- data/lib/orb/models/plan_update_params.rb +9 -1
- data/lib/orb/models/plan_version.rb +186 -5
- data/lib/orb/models/plans/external_plan_id_update_params.rb +9 -1
- data/lib/orb/models/plans/migration_cancel_response.rb +22 -4
- data/lib/orb/models/plans/migration_list_response.rb +22 -4
- data/lib/orb/models/plans/migration_retrieve_response.rb +22 -4
- data/lib/orb/models/price.rb +2614 -1268
- data/lib/orb/models/price_create_params.rb +866 -49
- data/lib/orb/models/price_evaluate_multiple_params.rb +889 -54
- data/lib/orb/models/price_evaluate_preview_events_params.rb +881 -46
- data/lib/orb/models/price_interval.rb +2 -2
- data/lib/orb/models/subscription.rb +168 -4
- data/lib/orb/models/subscription_create_params.rb +2818 -674
- data/lib/orb/models/subscription_price_intervals_params.rb +1098 -57
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +2834 -687
- data/lib/orb/models/subscription_update_params.rb +12 -1
- data/lib/orb/models.rb +2 -0
- data/lib/orb/resources/alerts.rb +14 -3
- data/lib/orb/resources/customers/credits/ledger.rb +28 -14
- data/lib/orb/resources/customers.rb +6 -2
- data/lib/orb/resources/events.rb +7 -34
- data/lib/orb/resources/invoices.rb +6 -2
- data/lib/orb/resources/licenses/external_licenses.rb +1 -1
- data/lib/orb/resources/licenses/usage.rb +2 -2
- data/lib/orb/resources/metrics.rb +5 -5
- data/lib/orb/resources/plans/external_plan_id.rb +5 -3
- data/lib/orb/resources/plans.rb +9 -5
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +5 -5
- data/lib/orb/resources/subscriptions.rb +20 -3
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +1 -0
- data/rbi/orb/models/accounting_provider_config.rbi +38 -5
- data/rbi/orb/models/adjustment_interval.rbi +336 -0
- data/rbi/orb/models/alert.rbi +172 -3
- data/rbi/orb/models/alert_create_for_subscription_params.rbi +268 -9
- data/rbi/orb/models/alert_update_params.rbi +208 -0
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +3833 -28395
- data/rbi/orb/models/beta_create_plan_version_params.rbi +3833 -28363
- data/rbi/orb/models/changed_subscription_resources.rbi +360 -5
- data/rbi/orb/models/conversion_rate_config.rbi +18 -0
- data/rbi/orb/models/credit_block_list_invoices_response.rbi +346 -3
- data/rbi/orb/models/credit_block_retrieve_response.rbi +344 -3
- data/rbi/orb/models/customer.rbi +190 -10
- data/rbi/orb/models/customer_create_params.rbi +12 -2
- data/rbi/orb/models/customer_tax_id.rbi +15 -1
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +22 -2
- data/rbi/orb/models/customer_update_params.rbi +22 -2
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +346 -3
- data/rbi/orb/models/customers/credit_list_response.rbi +347 -3
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +6 -6
- data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +6 -6
- data/rbi/orb/models/dimensional_price_group.rbi +1 -1
- data/rbi/orb/models/discount.rbi +269 -1
- data/rbi/orb/models/event_ingest_params.rbi +4 -2
- data/rbi/orb/models/invoice.rbi +360 -5
- data/rbi/orb/models/invoice_create_params.rbi +12 -7
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +360 -5
- data/rbi/orb/models/invoice_issue_summary_response.rbi +19 -4
- data/rbi/orb/models/invoice_level_discount.rbi +298 -1
- data/rbi/orb/models/invoice_line_item_create_response.rbi +339 -0
- data/rbi/orb/models/invoice_list_summary_response.rbi +19 -4
- data/rbi/orb/models/licenses/external_license_get_usage_params.rbi +3 -3
- data/rbi/orb/models/licenses/usage_get_all_usage_params.rbi +3 -3
- data/rbi/orb/models/licenses/usage_get_usage_params.rbi +3 -3
- data/rbi/orb/models/mutated_subscription.rbi +324 -2
- data/rbi/orb/models/new_allocation_price.rbi +12 -0
- data/rbi/orb/models/per_price_cost.rbi +3 -0
- data/rbi/orb/models/plan.rbi +339 -2
- data/rbi/orb/models/plan_create_params.rbi +1877 -14138
- data/rbi/orb/models/plan_update_params.rbi +8 -0
- data/rbi/orb/models/plan_version.rbi +339 -0
- data/rbi/orb/models/plans/external_plan_id_update_params.rbi +8 -0
- data/rbi/orb/models/plans/migration_cancel_response.rbi +22 -1
- data/rbi/orb/models/plans/migration_list_response.rbi +22 -1
- data/rbi/orb/models/plans/migration_retrieve_response.rbi +22 -1
- data/rbi/orb/models/price.rbi +4552 -2285
- data/rbi/orb/models/price_create_params.rbi +1540 -114
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +1540 -114
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +1540 -114
- data/rbi/orb/models/price_interval.rbi +3 -0
- data/rbi/orb/models/subscription.rbi +324 -2
- data/rbi/orb/models/subscription_create_params.rbi +4998 -1186
- data/rbi/orb/models/subscription_price_intervals_params.rbi +2127 -264
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +4997 -1185
- data/rbi/orb/models/subscription_update_params.rbi +14 -0
- data/rbi/orb/models.rbi +2 -0
- data/rbi/orb/resources/alerts.rbi +39 -4
- data/rbi/orb/resources/customers/credits/ledger.rbi +28 -14
- data/rbi/orb/resources/customers.rbi +23 -0
- data/rbi/orb/resources/events.rbi +8 -35
- data/rbi/orb/resources/invoices.rbi +9 -3
- data/rbi/orb/resources/licenses/external_licenses.rbi +1 -1
- data/rbi/orb/resources/licenses/usage.rbi +2 -2
- data/rbi/orb/resources/metrics.rbi +5 -5
- data/rbi/orb/resources/plans/external_plan_id.rbi +5 -2
- data/rbi/orb/resources/plans.rbi +9 -3
- data/rbi/orb/resources/prices.rbi +3 -0
- data/rbi/orb/resources/subscriptions.rbi +29 -0
- data/sig/orb/models/accounting_provider_config.rbs +21 -4
- data/sig/orb/models/adjustment_interval.rbs +134 -0
- data/sig/orb/models/alert.rbs +85 -3
- data/sig/orb/models/alert_create_for_subscription_params.rbs +86 -4
- data/sig/orb/models/alert_update_params.rbs +86 -1
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +1803 -11601
- data/sig/orb/models/beta_create_plan_version_params.rbs +1747 -11541
- data/sig/orb/models/changed_subscription_resources.rbs +140 -1
- data/sig/orb/models/conversion_rate_config.rbs +12 -0
- data/sig/orb/models/credit_block_list_invoices_response.rbs +124 -3
- data/sig/orb/models/credit_block_retrieve_response.rbs +124 -3
- data/sig/orb/models/customer.rbs +70 -4
- data/sig/orb/models/customer_create_params.rbs +2 -2
- data/sig/orb/models/customer_tax_id.rbs +20 -2
- data/sig/orb/models/customer_update_by_external_id_params.rbs +7 -2
- data/sig/orb/models/customer_update_params.rbs +7 -2
- data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +124 -3
- data/sig/orb/models/customers/credit_list_response.rbs +124 -3
- data/sig/orb/models/discount.rbs +114 -0
- data/sig/orb/models/invoice.rbs +140 -1
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +140 -1
- data/sig/orb/models/invoice_issue_summary_response.rbs +2 -1
- data/sig/orb/models/invoice_level_discount.rbs +117 -1
- data/sig/orb/models/invoice_line_item_create_response.rbs +134 -0
- data/sig/orb/models/invoice_list_summary_response.rbs +2 -1
- data/sig/orb/models/licenses/external_license_get_usage_params.rbs +4 -4
- data/sig/orb/models/licenses/usage_get_all_usage_params.rbs +4 -4
- data/sig/orb/models/licenses/usage_get_usage_params.rbs +4 -4
- data/sig/orb/models/mutated_subscription.rbs +124 -0
- data/sig/orb/models/new_allocation_price.rbs +5 -0
- data/sig/orb/models/new_floating_bulk_price.rbs +4 -4
- data/sig/orb/models/new_floating_bulk_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_allocation_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_tiered_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_matrix_price.rbs +4 -4
- data/sig/orb/models/new_floating_matrix_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +4 -4
- data/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_minimum_composite_price.rbs +4 -4
- data/sig/orb/models/new_floating_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_package_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +4 -4
- data/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +4 -4
- data/sig/orb/models/new_floating_threshold_total_amount_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_floating_unit_price.rbs +4 -4
- data/sig/orb/models/new_floating_unit_with_percent_price.rbs +4 -4
- data/sig/orb/models/new_floating_unit_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_plan_bulk_price.rbs +4 -4
- data/sig/orb/models/new_plan_bulk_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_allocation_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_tiered_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_matrix_price.rbs +4 -4
- data/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +4 -4
- data/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_minimum_composite_price.rbs +4 -4
- data/sig/orb/models/new_plan_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_package_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +4 -4
- data/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +4 -4
- data/sig/orb/models/new_plan_threshold_total_amount_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_unit_price.rbs +4 -4
- data/sig/orb/models/new_plan_unit_with_percent_price.rbs +4 -4
- data/sig/orb/models/new_plan_unit_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_subscription_bulk_price.rbs +4 -4
- data/sig/orb/models/new_subscription_bulk_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_allocation_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_tiered_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_matrix_price.rbs +4 -4
- data/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs +4 -4
- data/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_minimum_composite_price.rbs +4 -4
- data/sig/orb/models/new_subscription_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_package_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs +4 -4
- data/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +4 -4
- data/sig/orb/models/new_subscription_threshold_total_amount_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_unit_price.rbs +4 -4
- data/sig/orb/models/new_subscription_unit_with_percent_price.rbs +4 -4
- data/sig/orb/models/new_subscription_unit_with_proration_price.rbs +4 -4
- data/sig/orb/models/plan.rbs +134 -0
- data/sig/orb/models/plan_create_params.rbs +836 -5728
- data/sig/orb/models/plan_update_params.rbs +5 -0
- data/sig/orb/models/plan_version.rbs +134 -0
- data/sig/orb/models/plans/external_plan_id_update_params.rbs +5 -0
- data/sig/orb/models/price.rbs +2200 -1150
- data/sig/orb/models/price_create_params.rbs +611 -23
- data/sig/orb/models/price_evaluate_multiple_params.rbs +626 -23
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +626 -23
- data/sig/orb/models/subscription.rbs +124 -0
- data/sig/orb/models/subscription_create_params.rbs +2009 -430
- data/sig/orb/models/subscription_price_intervals_params.rbs +795 -23
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +2009 -430
- data/sig/orb/models/subscription_update_params.rbs +5 -0
- data/sig/orb/models.rbs +2 -0
- data/sig/orb/resources/alerts.rbs +5 -1
- data/sig/orb/resources/customers.rbs +2 -0
- data/sig/orb/resources/licenses/external_licenses.rbs +1 -1
- data/sig/orb/resources/licenses/usage.rbs +2 -2
- data/sig/orb/resources/plans/external_plan_id.rbs +1 -0
- data/sig/orb/resources/plans.rbs +2 -0
- data/sig/orb/resources/subscriptions.rbs +3 -0
- metadata +6 -7
|
@@ -545,12 +545,150 @@ module Orb
|
|
|
545
545
|
Orb::MonetaryUsageDiscountAdjustment
|
|
546
546
|
| Orb::MonetaryAmountDiscountAdjustment
|
|
547
547
|
| Orb::MonetaryPercentageDiscountAdjustment
|
|
548
|
+
| Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount
|
|
548
549
|
| Orb::MonetaryMinimumAdjustment
|
|
549
550
|
| Orb::MonetaryMaximumAdjustment
|
|
550
551
|
|
|
551
552
|
module Adjustment
|
|
552
553
|
extend Orb::Internal::Type::Union
|
|
553
554
|
|
|
555
|
+
type tiered_percentage_discount =
|
|
556
|
+
{
|
|
557
|
+
id: String,
|
|
558
|
+
adjustment_type: :tiered_percentage_discount,
|
|
559
|
+
amount: String,
|
|
560
|
+
applies_to_price_ids: ::Array[String],
|
|
561
|
+
filters: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Filter],
|
|
562
|
+
is_invoice_level: bool,
|
|
563
|
+
reason: String?,
|
|
564
|
+
replaces_adjustment_id: String?,
|
|
565
|
+
tiers: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Tier]
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
class TieredPercentageDiscount < Orb::Internal::Type::BaseModel
|
|
569
|
+
attr_accessor id: String
|
|
570
|
+
|
|
571
|
+
attr_accessor adjustment_type: :tiered_percentage_discount
|
|
572
|
+
|
|
573
|
+
attr_accessor amount: String
|
|
574
|
+
|
|
575
|
+
attr_accessor applies_to_price_ids: ::Array[String]
|
|
576
|
+
|
|
577
|
+
attr_accessor filters: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Filter]
|
|
578
|
+
|
|
579
|
+
attr_accessor is_invoice_level: bool
|
|
580
|
+
|
|
581
|
+
attr_accessor reason: String?
|
|
582
|
+
|
|
583
|
+
attr_accessor replaces_adjustment_id: String?
|
|
584
|
+
|
|
585
|
+
attr_accessor tiers: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Tier]
|
|
586
|
+
|
|
587
|
+
def initialize: (
|
|
588
|
+
id: String,
|
|
589
|
+
amount: String,
|
|
590
|
+
applies_to_price_ids: ::Array[String],
|
|
591
|
+
filters: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Filter],
|
|
592
|
+
is_invoice_level: bool,
|
|
593
|
+
reason: String?,
|
|
594
|
+
replaces_adjustment_id: String?,
|
|
595
|
+
tiers: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Tier],
|
|
596
|
+
?adjustment_type: :tiered_percentage_discount
|
|
597
|
+
) -> void
|
|
598
|
+
|
|
599
|
+
def to_hash: -> {
|
|
600
|
+
id: String,
|
|
601
|
+
adjustment_type: :tiered_percentage_discount,
|
|
602
|
+
amount: String,
|
|
603
|
+
applies_to_price_ids: ::Array[String],
|
|
604
|
+
filters: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Filter],
|
|
605
|
+
is_invoice_level: bool,
|
|
606
|
+
reason: String?,
|
|
607
|
+
replaces_adjustment_id: String?,
|
|
608
|
+
tiers: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Tier]
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
type filter =
|
|
612
|
+
{
|
|
613
|
+
field: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
614
|
+
operator: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
615
|
+
values: ::Array[String]
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
619
|
+
attr_accessor field: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Filter::field
|
|
620
|
+
|
|
621
|
+
attr_accessor operator: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Filter::operator
|
|
622
|
+
|
|
623
|
+
attr_accessor values: ::Array[String]
|
|
624
|
+
|
|
625
|
+
def initialize: (
|
|
626
|
+
field: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
627
|
+
operator: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
628
|
+
values: ::Array[String]
|
|
629
|
+
) -> void
|
|
630
|
+
|
|
631
|
+
def to_hash: -> {
|
|
632
|
+
field: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
633
|
+
operator: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
634
|
+
values: ::Array[String]
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
type field =
|
|
638
|
+
:price_id
|
|
639
|
+
| :item_id
|
|
640
|
+
| :price_type
|
|
641
|
+
| :currency
|
|
642
|
+
| :pricing_unit_id
|
|
643
|
+
|
|
644
|
+
module Field
|
|
645
|
+
extend Orb::Internal::Type::Enum
|
|
646
|
+
|
|
647
|
+
PRICE_ID: :price_id
|
|
648
|
+
ITEM_ID: :item_id
|
|
649
|
+
PRICE_TYPE: :price_type
|
|
650
|
+
CURRENCY: :currency
|
|
651
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
652
|
+
|
|
653
|
+
def self?.values: -> ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Filter::field]
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
type operator = :includes | :excludes
|
|
657
|
+
|
|
658
|
+
module Operator
|
|
659
|
+
extend Orb::Internal::Type::Enum
|
|
660
|
+
|
|
661
|
+
INCLUDES: :includes
|
|
662
|
+
EXCLUDES: :excludes
|
|
663
|
+
|
|
664
|
+
def self?.values: -> ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::TieredPercentageDiscount::Filter::operator]
|
|
665
|
+
end
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
type tier =
|
|
669
|
+
{ lower_bound: Float, percentage: Float, upper_bound: Float? }
|
|
670
|
+
|
|
671
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
672
|
+
attr_accessor lower_bound: Float
|
|
673
|
+
|
|
674
|
+
attr_accessor percentage: Float
|
|
675
|
+
|
|
676
|
+
attr_accessor upper_bound: Float?
|
|
677
|
+
|
|
678
|
+
def initialize: (
|
|
679
|
+
lower_bound: Float,
|
|
680
|
+
percentage: Float,
|
|
681
|
+
?upper_bound: Float?
|
|
682
|
+
) -> void
|
|
683
|
+
|
|
684
|
+
def to_hash: -> {
|
|
685
|
+
lower_bound: Float,
|
|
686
|
+
percentage: Float,
|
|
687
|
+
upper_bound: Float?
|
|
688
|
+
}
|
|
689
|
+
end
|
|
690
|
+
end
|
|
691
|
+
|
|
554
692
|
def self?.variants: -> ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::adjustment]
|
|
555
693
|
end
|
|
556
694
|
|
|
@@ -612,12 +750,13 @@ module Orb
|
|
|
612
750
|
succeeded: bool
|
|
613
751
|
}
|
|
614
752
|
|
|
615
|
-
type payment_provider = :stripe
|
|
753
|
+
type payment_provider = :stripe | :adyen
|
|
616
754
|
|
|
617
755
|
module PaymentProvider
|
|
618
756
|
extend Orb::Internal::Type::Enum
|
|
619
757
|
|
|
620
758
|
STRIPE: :stripe
|
|
759
|
+
ADYEN: :adyen
|
|
621
760
|
|
|
622
761
|
def self?.values: -> ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::payment_provider]
|
|
623
762
|
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
type conversion_rate_config =
|
|
4
|
+
Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig
|
|
5
|
+
|
|
6
|
+
module ConversionRateConfig
|
|
7
|
+
extend Orb::Internal::Type::Union
|
|
8
|
+
|
|
9
|
+
def self?.variants: -> ::Array[Orb::Models::conversion_rate_config]
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -25,13 +25,15 @@ module Orb
|
|
|
25
25
|
{
|
|
26
26
|
id: String,
|
|
27
27
|
balance: Float,
|
|
28
|
+
credit_block_source: Orb::Models::CreditBlockListInvoicesResponse::Block::credit_block_source,
|
|
28
29
|
effective_date: Time?,
|
|
29
30
|
expiry_date: Time?,
|
|
30
31
|
filters: ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::Filter],
|
|
31
32
|
maximum_initial_balance: Float?,
|
|
32
33
|
metadata: ::Hash[Symbol, String],
|
|
33
34
|
per_unit_cost_basis: String?,
|
|
34
|
-
status: Orb::Models::CreditBlockListInvoicesResponse::Block::status
|
|
35
|
+
status: Orb::Models::CreditBlockListInvoicesResponse::Block::status,
|
|
36
|
+
credit_allocation: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation?
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
class Block < Orb::Internal::Type::BaseModel
|
|
@@ -39,6 +41,8 @@ module Orb
|
|
|
39
41
|
|
|
40
42
|
attr_accessor balance: Float
|
|
41
43
|
|
|
44
|
+
attr_accessor credit_block_source: Orb::Models::CreditBlockListInvoicesResponse::Block::credit_block_source
|
|
45
|
+
|
|
42
46
|
attr_accessor effective_date: Time?
|
|
43
47
|
|
|
44
48
|
attr_accessor expiry_date: Time?
|
|
@@ -53,30 +57,48 @@ module Orb
|
|
|
53
57
|
|
|
54
58
|
attr_accessor status: Orb::Models::CreditBlockListInvoicesResponse::Block::status
|
|
55
59
|
|
|
60
|
+
attr_accessor credit_allocation: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation?
|
|
61
|
+
|
|
56
62
|
def initialize: (
|
|
57
63
|
id: String,
|
|
58
64
|
balance: Float,
|
|
65
|
+
credit_block_source: Orb::Models::CreditBlockListInvoicesResponse::Block::credit_block_source,
|
|
59
66
|
effective_date: Time?,
|
|
60
67
|
expiry_date: Time?,
|
|
61
68
|
filters: ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::Filter],
|
|
62
69
|
maximum_initial_balance: Float?,
|
|
63
70
|
metadata: ::Hash[Symbol, String],
|
|
64
71
|
per_unit_cost_basis: String?,
|
|
65
|
-
status: Orb::Models::CreditBlockListInvoicesResponse::Block::status
|
|
72
|
+
status: Orb::Models::CreditBlockListInvoicesResponse::Block::status,
|
|
73
|
+
?credit_allocation: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation?
|
|
66
74
|
) -> void
|
|
67
75
|
|
|
68
76
|
def to_hash: -> {
|
|
69
77
|
id: String,
|
|
70
78
|
balance: Float,
|
|
79
|
+
credit_block_source: Orb::Models::CreditBlockListInvoicesResponse::Block::credit_block_source,
|
|
71
80
|
effective_date: Time?,
|
|
72
81
|
expiry_date: Time?,
|
|
73
82
|
filters: ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::Filter],
|
|
74
83
|
maximum_initial_balance: Float?,
|
|
75
84
|
metadata: ::Hash[Symbol, String],
|
|
76
85
|
per_unit_cost_basis: String?,
|
|
77
|
-
status: Orb::Models::CreditBlockListInvoicesResponse::Block::status
|
|
86
|
+
status: Orb::Models::CreditBlockListInvoicesResponse::Block::status,
|
|
87
|
+
credit_allocation: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation?
|
|
78
88
|
}
|
|
79
89
|
|
|
90
|
+
type credit_block_source = :allocation | :top_up | :manual
|
|
91
|
+
|
|
92
|
+
module CreditBlockSource
|
|
93
|
+
extend Orb::Internal::Type::Enum
|
|
94
|
+
|
|
95
|
+
ALLOCATION: :allocation
|
|
96
|
+
TOP_UP: :top_up
|
|
97
|
+
MANUAL: :manual
|
|
98
|
+
|
|
99
|
+
def self?.values: -> ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::credit_block_source]
|
|
100
|
+
end
|
|
101
|
+
|
|
80
102
|
type filter =
|
|
81
103
|
{
|
|
82
104
|
field: Orb::Models::CreditBlockListInvoicesResponse::Block::Filter::field,
|
|
@@ -140,6 +162,105 @@ module Orb
|
|
|
140
162
|
|
|
141
163
|
def self?.values: -> ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::status]
|
|
142
164
|
end
|
|
165
|
+
|
|
166
|
+
type credit_allocation =
|
|
167
|
+
{
|
|
168
|
+
allows_rollover: bool,
|
|
169
|
+
currency: String,
|
|
170
|
+
custom_expiration: Orb::CustomExpiration?,
|
|
171
|
+
item_id: String,
|
|
172
|
+
filters: ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter],
|
|
173
|
+
license_type_id: String?
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
class CreditAllocation < Orb::Internal::Type::BaseModel
|
|
177
|
+
attr_accessor allows_rollover: bool
|
|
178
|
+
|
|
179
|
+
attr_accessor currency: String
|
|
180
|
+
|
|
181
|
+
attr_accessor custom_expiration: Orb::CustomExpiration?
|
|
182
|
+
|
|
183
|
+
attr_accessor item_id: String
|
|
184
|
+
|
|
185
|
+
attr_reader filters: ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter]?
|
|
186
|
+
|
|
187
|
+
def filters=: (
|
|
188
|
+
::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter]
|
|
189
|
+
) -> ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter]
|
|
190
|
+
|
|
191
|
+
attr_accessor license_type_id: String?
|
|
192
|
+
|
|
193
|
+
def initialize: (
|
|
194
|
+
allows_rollover: bool,
|
|
195
|
+
currency: String,
|
|
196
|
+
custom_expiration: Orb::CustomExpiration?,
|
|
197
|
+
item_id: String,
|
|
198
|
+
?filters: ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter],
|
|
199
|
+
?license_type_id: String?
|
|
200
|
+
) -> void
|
|
201
|
+
|
|
202
|
+
def to_hash: -> {
|
|
203
|
+
allows_rollover: bool,
|
|
204
|
+
currency: String,
|
|
205
|
+
custom_expiration: Orb::CustomExpiration?,
|
|
206
|
+
item_id: String,
|
|
207
|
+
filters: ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter],
|
|
208
|
+
license_type_id: String?
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
type filter =
|
|
212
|
+
{
|
|
213
|
+
field: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::field,
|
|
214
|
+
operator: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::operator,
|
|
215
|
+
values: ::Array[String]
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
219
|
+
attr_accessor field: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::field
|
|
220
|
+
|
|
221
|
+
attr_accessor operator: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::operator
|
|
222
|
+
|
|
223
|
+
attr_accessor values: ::Array[String]
|
|
224
|
+
|
|
225
|
+
def initialize: (
|
|
226
|
+
field: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::field,
|
|
227
|
+
operator: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::operator,
|
|
228
|
+
values: ::Array[String]
|
|
229
|
+
) -> void
|
|
230
|
+
|
|
231
|
+
def to_hash: -> {
|
|
232
|
+
field: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::field,
|
|
233
|
+
operator: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::operator,
|
|
234
|
+
values: ::Array[String]
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
type field =
|
|
238
|
+
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
|
239
|
+
|
|
240
|
+
module Field
|
|
241
|
+
extend Orb::Internal::Type::Enum
|
|
242
|
+
|
|
243
|
+
PRICE_ID: :price_id
|
|
244
|
+
ITEM_ID: :item_id
|
|
245
|
+
PRICE_TYPE: :price_type
|
|
246
|
+
CURRENCY: :currency
|
|
247
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
248
|
+
|
|
249
|
+
def self?.values: -> ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::field]
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
type operator = :includes | :excludes
|
|
253
|
+
|
|
254
|
+
module Operator
|
|
255
|
+
extend Orb::Internal::Type::Enum
|
|
256
|
+
|
|
257
|
+
INCLUDES: :includes
|
|
258
|
+
EXCLUDES: :excludes
|
|
259
|
+
|
|
260
|
+
def self?.values: -> ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation::Filter::operator]
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
end
|
|
143
264
|
end
|
|
144
265
|
|
|
145
266
|
type invoice =
|
|
@@ -4,13 +4,15 @@ module Orb
|
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
6
|
balance: Float,
|
|
7
|
+
credit_block_source: Orb::Models::CreditBlockRetrieveResponse::credit_block_source,
|
|
7
8
|
effective_date: Time?,
|
|
8
9
|
expiry_date: Time?,
|
|
9
10
|
filters: ::Array[Orb::Models::CreditBlockRetrieveResponse::Filter],
|
|
10
11
|
maximum_initial_balance: Float?,
|
|
11
12
|
metadata: ::Hash[Symbol, String],
|
|
12
13
|
per_unit_cost_basis: String?,
|
|
13
|
-
status: Orb::Models::CreditBlockRetrieveResponse::status
|
|
14
|
+
status: Orb::Models::CreditBlockRetrieveResponse::status,
|
|
15
|
+
credit_allocation: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation?
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
class CreditBlockRetrieveResponse < Orb::Internal::Type::BaseModel
|
|
@@ -18,6 +20,8 @@ module Orb
|
|
|
18
20
|
|
|
19
21
|
attr_accessor balance: Float
|
|
20
22
|
|
|
23
|
+
attr_accessor credit_block_source: Orb::Models::CreditBlockRetrieveResponse::credit_block_source
|
|
24
|
+
|
|
21
25
|
attr_accessor effective_date: Time?
|
|
22
26
|
|
|
23
27
|
attr_accessor expiry_date: Time?
|
|
@@ -32,30 +36,48 @@ module Orb
|
|
|
32
36
|
|
|
33
37
|
attr_accessor status: Orb::Models::CreditBlockRetrieveResponse::status
|
|
34
38
|
|
|
39
|
+
attr_accessor credit_allocation: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation?
|
|
40
|
+
|
|
35
41
|
def initialize: (
|
|
36
42
|
id: String,
|
|
37
43
|
balance: Float,
|
|
44
|
+
credit_block_source: Orb::Models::CreditBlockRetrieveResponse::credit_block_source,
|
|
38
45
|
effective_date: Time?,
|
|
39
46
|
expiry_date: Time?,
|
|
40
47
|
filters: ::Array[Orb::Models::CreditBlockRetrieveResponse::Filter],
|
|
41
48
|
maximum_initial_balance: Float?,
|
|
42
49
|
metadata: ::Hash[Symbol, String],
|
|
43
50
|
per_unit_cost_basis: String?,
|
|
44
|
-
status: Orb::Models::CreditBlockRetrieveResponse::status
|
|
51
|
+
status: Orb::Models::CreditBlockRetrieveResponse::status,
|
|
52
|
+
?credit_allocation: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation?
|
|
45
53
|
) -> void
|
|
46
54
|
|
|
47
55
|
def to_hash: -> {
|
|
48
56
|
id: String,
|
|
49
57
|
balance: Float,
|
|
58
|
+
credit_block_source: Orb::Models::CreditBlockRetrieveResponse::credit_block_source,
|
|
50
59
|
effective_date: Time?,
|
|
51
60
|
expiry_date: Time?,
|
|
52
61
|
filters: ::Array[Orb::Models::CreditBlockRetrieveResponse::Filter],
|
|
53
62
|
maximum_initial_balance: Float?,
|
|
54
63
|
metadata: ::Hash[Symbol, String],
|
|
55
64
|
per_unit_cost_basis: String?,
|
|
56
|
-
status: Orb::Models::CreditBlockRetrieveResponse::status
|
|
65
|
+
status: Orb::Models::CreditBlockRetrieveResponse::status,
|
|
66
|
+
credit_allocation: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation?
|
|
57
67
|
}
|
|
58
68
|
|
|
69
|
+
type credit_block_source = :allocation | :top_up | :manual
|
|
70
|
+
|
|
71
|
+
module CreditBlockSource
|
|
72
|
+
extend Orb::Internal::Type::Enum
|
|
73
|
+
|
|
74
|
+
ALLOCATION: :allocation
|
|
75
|
+
TOP_UP: :top_up
|
|
76
|
+
MANUAL: :manual
|
|
77
|
+
|
|
78
|
+
def self?.values: -> ::Array[Orb::Models::CreditBlockRetrieveResponse::credit_block_source]
|
|
79
|
+
end
|
|
80
|
+
|
|
59
81
|
type filter =
|
|
60
82
|
{
|
|
61
83
|
field: Orb::Models::CreditBlockRetrieveResponse::Filter::field,
|
|
@@ -119,6 +141,105 @@ module Orb
|
|
|
119
141
|
|
|
120
142
|
def self?.values: -> ::Array[Orb::Models::CreditBlockRetrieveResponse::status]
|
|
121
143
|
end
|
|
144
|
+
|
|
145
|
+
type credit_allocation =
|
|
146
|
+
{
|
|
147
|
+
allows_rollover: bool,
|
|
148
|
+
currency: String,
|
|
149
|
+
custom_expiration: Orb::CustomExpiration?,
|
|
150
|
+
item_id: String,
|
|
151
|
+
filters: ::Array[Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter],
|
|
152
|
+
license_type_id: String?
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
class CreditAllocation < Orb::Internal::Type::BaseModel
|
|
156
|
+
attr_accessor allows_rollover: bool
|
|
157
|
+
|
|
158
|
+
attr_accessor currency: String
|
|
159
|
+
|
|
160
|
+
attr_accessor custom_expiration: Orb::CustomExpiration?
|
|
161
|
+
|
|
162
|
+
attr_accessor item_id: String
|
|
163
|
+
|
|
164
|
+
attr_reader filters: ::Array[Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter]?
|
|
165
|
+
|
|
166
|
+
def filters=: (
|
|
167
|
+
::Array[Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter]
|
|
168
|
+
) -> ::Array[Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter]
|
|
169
|
+
|
|
170
|
+
attr_accessor license_type_id: String?
|
|
171
|
+
|
|
172
|
+
def initialize: (
|
|
173
|
+
allows_rollover: bool,
|
|
174
|
+
currency: String,
|
|
175
|
+
custom_expiration: Orb::CustomExpiration?,
|
|
176
|
+
item_id: String,
|
|
177
|
+
?filters: ::Array[Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter],
|
|
178
|
+
?license_type_id: String?
|
|
179
|
+
) -> void
|
|
180
|
+
|
|
181
|
+
def to_hash: -> {
|
|
182
|
+
allows_rollover: bool,
|
|
183
|
+
currency: String,
|
|
184
|
+
custom_expiration: Orb::CustomExpiration?,
|
|
185
|
+
item_id: String,
|
|
186
|
+
filters: ::Array[Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter],
|
|
187
|
+
license_type_id: String?
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
type filter =
|
|
191
|
+
{
|
|
192
|
+
field: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter::field,
|
|
193
|
+
operator: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter::operator,
|
|
194
|
+
values: ::Array[String]
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
198
|
+
attr_accessor field: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter::field
|
|
199
|
+
|
|
200
|
+
attr_accessor operator: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter::operator
|
|
201
|
+
|
|
202
|
+
attr_accessor values: ::Array[String]
|
|
203
|
+
|
|
204
|
+
def initialize: (
|
|
205
|
+
field: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter::field,
|
|
206
|
+
operator: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter::operator,
|
|
207
|
+
values: ::Array[String]
|
|
208
|
+
) -> void
|
|
209
|
+
|
|
210
|
+
def to_hash: -> {
|
|
211
|
+
field: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter::field,
|
|
212
|
+
operator: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter::operator,
|
|
213
|
+
values: ::Array[String]
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
type field =
|
|
217
|
+
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
|
218
|
+
|
|
219
|
+
module Field
|
|
220
|
+
extend Orb::Internal::Type::Enum
|
|
221
|
+
|
|
222
|
+
PRICE_ID: :price_id
|
|
223
|
+
ITEM_ID: :item_id
|
|
224
|
+
PRICE_TYPE: :price_type
|
|
225
|
+
CURRENCY: :currency
|
|
226
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
227
|
+
|
|
228
|
+
def self?.values: -> ::Array[Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter::field]
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
type operator = :includes | :excludes
|
|
232
|
+
|
|
233
|
+
module Operator
|
|
234
|
+
extend Orb::Internal::Type::Enum
|
|
235
|
+
|
|
236
|
+
INCLUDES: :includes
|
|
237
|
+
EXCLUDES: :excludes
|
|
238
|
+
|
|
239
|
+
def self?.values: -> ::Array[Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::Filter::operator]
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
end
|
|
122
243
|
end
|
|
123
244
|
end
|
|
124
245
|
end
|
data/sig/orb/models/customer.rbs
CHANGED
|
@@ -25,6 +25,7 @@ module Orb
|
|
|
25
25
|
timezone: String,
|
|
26
26
|
accounting_sync_configuration: Orb::Customer::AccountingSyncConfiguration?,
|
|
27
27
|
automatic_tax_enabled: bool?,
|
|
28
|
+
default_payment_method: Orb::Customer::DefaultPaymentMethod?,
|
|
28
29
|
payment_configuration: Orb::Customer::PaymentConfiguration?,
|
|
29
30
|
reporting_configuration: Orb::Customer::ReportingConfiguration?
|
|
30
31
|
}
|
|
@@ -76,6 +77,8 @@ module Orb
|
|
|
76
77
|
|
|
77
78
|
attr_accessor automatic_tax_enabled: bool?
|
|
78
79
|
|
|
80
|
+
attr_accessor default_payment_method: Orb::Customer::DefaultPaymentMethod?
|
|
81
|
+
|
|
79
82
|
attr_accessor payment_configuration: Orb::Customer::PaymentConfiguration?
|
|
80
83
|
|
|
81
84
|
attr_accessor reporting_configuration: Orb::Customer::ReportingConfiguration?
|
|
@@ -104,6 +107,7 @@ module Orb
|
|
|
104
107
|
timezone: String,
|
|
105
108
|
?accounting_sync_configuration: Orb::Customer::AccountingSyncConfiguration?,
|
|
106
109
|
?automatic_tax_enabled: bool?,
|
|
110
|
+
?default_payment_method: Orb::Customer::DefaultPaymentMethod?,
|
|
107
111
|
?payment_configuration: Orb::Customer::PaymentConfiguration?,
|
|
108
112
|
?reporting_configuration: Orb::Customer::ReportingConfiguration?
|
|
109
113
|
) -> void
|
|
@@ -132,6 +136,7 @@ module Orb
|
|
|
132
136
|
timezone: String,
|
|
133
137
|
accounting_sync_configuration: Orb::Customer::AccountingSyncConfiguration?,
|
|
134
138
|
automatic_tax_enabled: bool?,
|
|
139
|
+
default_payment_method: Orb::Customer::DefaultPaymentMethod?,
|
|
135
140
|
payment_configuration: Orb::Customer::PaymentConfiguration?,
|
|
136
141
|
reporting_configuration: Orb::Customer::ReportingConfiguration?
|
|
137
142
|
}
|
|
@@ -164,7 +169,7 @@ module Orb
|
|
|
164
169
|
| :stripe_charge
|
|
165
170
|
| :stripe_invoice
|
|
166
171
|
| :netsuite
|
|
167
|
-
| :
|
|
172
|
+
| :adyen
|
|
168
173
|
|
|
169
174
|
module PaymentProvider
|
|
170
175
|
extend Orb::Internal::Type::Enum
|
|
@@ -174,7 +179,7 @@ module Orb
|
|
|
174
179
|
STRIPE_CHARGE: :stripe_charge
|
|
175
180
|
STRIPE_INVOICE: :stripe_invoice
|
|
176
181
|
NETSUITE: :netsuite
|
|
177
|
-
|
|
182
|
+
ADYEN: :adyen
|
|
178
183
|
|
|
179
184
|
def self?.values: -> ::Array[Orb::Models::Customer::payment_provider]
|
|
180
185
|
end
|
|
@@ -221,20 +226,81 @@ module Orb
|
|
|
221
226
|
provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type
|
|
222
227
|
}
|
|
223
228
|
|
|
224
|
-
type provider_type = :quickbooks | :netsuite
|
|
229
|
+
type provider_type = :quickbooks | :netsuite
|
|
225
230
|
|
|
226
231
|
module ProviderType
|
|
227
232
|
extend Orb::Internal::Type::Enum
|
|
228
233
|
|
|
229
234
|
QUICKBOOKS: :quickbooks
|
|
230
235
|
NETSUITE: :netsuite
|
|
231
|
-
NETSUITE_AMPERSAND: :netsuite_ampersand
|
|
232
236
|
|
|
233
237
|
def self?.values: -> ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type]
|
|
234
238
|
end
|
|
235
239
|
end
|
|
236
240
|
end
|
|
237
241
|
|
|
242
|
+
type default_payment_method =
|
|
243
|
+
{
|
|
244
|
+
id: String,
|
|
245
|
+
created_at: Time,
|
|
246
|
+
customer_id: String,
|
|
247
|
+
default: bool,
|
|
248
|
+
external_payment_method_id: String,
|
|
249
|
+
payment_method_type: Orb::Models::Customer::DefaultPaymentMethod::payment_method_type,
|
|
250
|
+
provider_type: String?
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
class DefaultPaymentMethod < Orb::Internal::Type::BaseModel
|
|
254
|
+
attr_accessor id: String
|
|
255
|
+
|
|
256
|
+
attr_accessor created_at: Time
|
|
257
|
+
|
|
258
|
+
attr_accessor customer_id: String
|
|
259
|
+
|
|
260
|
+
attr_accessor default: bool
|
|
261
|
+
|
|
262
|
+
attr_accessor external_payment_method_id: String
|
|
263
|
+
|
|
264
|
+
attr_accessor payment_method_type: Orb::Models::Customer::DefaultPaymentMethod::payment_method_type
|
|
265
|
+
|
|
266
|
+
attr_accessor provider_type: String?
|
|
267
|
+
|
|
268
|
+
def initialize: (
|
|
269
|
+
id: String,
|
|
270
|
+
created_at: Time,
|
|
271
|
+
customer_id: String,
|
|
272
|
+
default: bool,
|
|
273
|
+
external_payment_method_id: String,
|
|
274
|
+
payment_method_type: Orb::Models::Customer::DefaultPaymentMethod::payment_method_type,
|
|
275
|
+
provider_type: String?
|
|
276
|
+
) -> void
|
|
277
|
+
|
|
278
|
+
def to_hash: -> {
|
|
279
|
+
id: String,
|
|
280
|
+
created_at: Time,
|
|
281
|
+
customer_id: String,
|
|
282
|
+
default: bool,
|
|
283
|
+
external_payment_method_id: String,
|
|
284
|
+
payment_method_type: Orb::Models::Customer::DefaultPaymentMethod::payment_method_type,
|
|
285
|
+
provider_type: String?
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
type payment_method_type =
|
|
289
|
+
:card | :us_bank_account | :link | :amazon_pay | :crypto
|
|
290
|
+
|
|
291
|
+
module PaymentMethodType
|
|
292
|
+
extend Orb::Internal::Type::Enum
|
|
293
|
+
|
|
294
|
+
CARD: :card
|
|
295
|
+
US_BANK_ACCOUNT: :us_bank_account
|
|
296
|
+
LINK: :link
|
|
297
|
+
AMAZON_PAY: :amazon_pay
|
|
298
|
+
CRYPTO: :crypto
|
|
299
|
+
|
|
300
|
+
def self?.values: -> ::Array[Orb::Models::Customer::DefaultPaymentMethod::payment_method_type]
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
|
|
238
304
|
type payment_configuration =
|
|
239
305
|
{
|
|
240
306
|
payment_providers: ::Array[Orb::Customer::PaymentConfiguration::PaymentProvider]
|
|
@@ -185,7 +185,7 @@ module Orb
|
|
|
185
185
|
| :stripe_charge
|
|
186
186
|
| :stripe_invoice
|
|
187
187
|
| :netsuite
|
|
188
|
-
| :
|
|
188
|
+
| :adyen
|
|
189
189
|
|
|
190
190
|
module PaymentProvider
|
|
191
191
|
extend Orb::Internal::Type::Enum
|
|
@@ -195,7 +195,7 @@ module Orb
|
|
|
195
195
|
STRIPE_CHARGE: :stripe_charge
|
|
196
196
|
STRIPE_INVOICE: :stripe_invoice
|
|
197
197
|
NETSUITE: :netsuite
|
|
198
|
-
|
|
198
|
+
ADYEN: :adyen
|
|
199
199
|
|
|
200
200
|
def self?.values: -> ::Array[Orb::Models::CustomerCreateParams::payment_provider]
|
|
201
201
|
end
|