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
|
@@ -58,9 +58,9 @@ module Orb
|
|
|
58
58
|
| :CO
|
|
59
59
|
| :CR
|
|
60
60
|
| :CV
|
|
61
|
-
| :DE
|
|
62
61
|
| :CY
|
|
63
62
|
| :CZ
|
|
63
|
+
| :DE
|
|
64
64
|
| :DK
|
|
65
65
|
| :DO
|
|
66
66
|
| :EC
|
|
@@ -70,9 +70,11 @@ module Orb
|
|
|
70
70
|
| :ET
|
|
71
71
|
| :EU
|
|
72
72
|
| :FI
|
|
73
|
+
| :FO
|
|
73
74
|
| :FR
|
|
74
75
|
| :GB
|
|
75
76
|
| :GE
|
|
77
|
+
| :GI
|
|
76
78
|
| :GN
|
|
77
79
|
| :GR
|
|
78
80
|
| :HK
|
|
@@ -92,6 +94,7 @@ module Orb
|
|
|
92
94
|
| :KZ
|
|
93
95
|
| :LA
|
|
94
96
|
| :LI
|
|
97
|
+
| :LK
|
|
95
98
|
| :LT
|
|
96
99
|
| :LU
|
|
97
100
|
| :LV
|
|
@@ -113,6 +116,7 @@ module Orb
|
|
|
113
116
|
| :PH
|
|
114
117
|
| :PL
|
|
115
118
|
| :PT
|
|
119
|
+
| :PY
|
|
116
120
|
| :RO
|
|
117
121
|
| :RS
|
|
118
122
|
| :RU
|
|
@@ -174,9 +178,9 @@ module Orb
|
|
|
174
178
|
CO: :CO
|
|
175
179
|
CR: :CR
|
|
176
180
|
CV: :CV
|
|
177
|
-
DE: :DE
|
|
178
181
|
CY: :CY
|
|
179
182
|
CZ: :CZ
|
|
183
|
+
DE: :DE
|
|
180
184
|
DK: :DK
|
|
181
185
|
DO: :DO
|
|
182
186
|
EC: :EC
|
|
@@ -186,9 +190,11 @@ module Orb
|
|
|
186
190
|
ET: :ET
|
|
187
191
|
EU: :EU
|
|
188
192
|
FI: :FI
|
|
193
|
+
FO: :FO
|
|
189
194
|
FR: :FR
|
|
190
195
|
GB: :GB
|
|
191
196
|
GE: :GE
|
|
197
|
+
GI: :GI
|
|
192
198
|
GN: :GN
|
|
193
199
|
GR: :GR
|
|
194
200
|
HK: :HK
|
|
@@ -208,6 +214,7 @@ module Orb
|
|
|
208
214
|
KZ: :KZ
|
|
209
215
|
LA: :LA
|
|
210
216
|
LI: :LI
|
|
217
|
+
LK: :LK
|
|
211
218
|
LT: :LT
|
|
212
219
|
LU: :LU
|
|
213
220
|
LV: :LV
|
|
@@ -229,6 +236,7 @@ module Orb
|
|
|
229
236
|
PH: :PH
|
|
230
237
|
PL: :PL
|
|
231
238
|
PT: :PT
|
|
239
|
+
PY: :PY
|
|
232
240
|
RO: :RO
|
|
233
241
|
RS: :RS
|
|
234
242
|
RU: :RU
|
|
@@ -305,8 +313,10 @@ module Orb
|
|
|
305
313
|
| :es_cif
|
|
306
314
|
| :et_tin
|
|
307
315
|
| :eu_oss_vat
|
|
316
|
+
| :fo_vat
|
|
308
317
|
| :gb_vat
|
|
309
318
|
| :ge_vat
|
|
319
|
+
| :gi_tin
|
|
310
320
|
| :gn_nif
|
|
311
321
|
| :hk_br
|
|
312
322
|
| :hr_oib
|
|
@@ -315,6 +325,7 @@ module Orb
|
|
|
315
325
|
| :il_vat
|
|
316
326
|
| :in_gst
|
|
317
327
|
| :is_vat
|
|
328
|
+
| :it_cf
|
|
318
329
|
| :jp_cn
|
|
319
330
|
| :jp_rn
|
|
320
331
|
| :jp_trn
|
|
@@ -326,6 +337,7 @@ module Orb
|
|
|
326
337
|
| :la_tin
|
|
327
338
|
| :li_uid
|
|
328
339
|
| :li_vat
|
|
340
|
+
| :lk_vat
|
|
329
341
|
| :ma_vat
|
|
330
342
|
| :md_vat
|
|
331
343
|
| :me_pib
|
|
@@ -344,6 +356,7 @@ module Orb
|
|
|
344
356
|
| :pe_ruc
|
|
345
357
|
| :ph_tin
|
|
346
358
|
| :pl_nip
|
|
359
|
+
| :py_ruc
|
|
347
360
|
| :ro_tin
|
|
348
361
|
| :rs_pib
|
|
349
362
|
| :ru_inn
|
|
@@ -420,8 +433,10 @@ module Orb
|
|
|
420
433
|
ES_CIF: :es_cif
|
|
421
434
|
ET_TIN: :et_tin
|
|
422
435
|
EU_OSS_VAT: :eu_oss_vat
|
|
436
|
+
FO_VAT: :fo_vat
|
|
423
437
|
GB_VAT: :gb_vat
|
|
424
438
|
GE_VAT: :ge_vat
|
|
439
|
+
GI_TIN: :gi_tin
|
|
425
440
|
GN_NIF: :gn_nif
|
|
426
441
|
HK_BR: :hk_br
|
|
427
442
|
HR_OIB: :hr_oib
|
|
@@ -430,6 +445,7 @@ module Orb
|
|
|
430
445
|
IL_VAT: :il_vat
|
|
431
446
|
IN_GST: :in_gst
|
|
432
447
|
IS_VAT: :is_vat
|
|
448
|
+
IT_CF: :it_cf
|
|
433
449
|
JP_CN: :jp_cn
|
|
434
450
|
JP_RN: :jp_rn
|
|
435
451
|
JP_TRN: :jp_trn
|
|
@@ -441,6 +457,7 @@ module Orb
|
|
|
441
457
|
LA_TIN: :la_tin
|
|
442
458
|
LI_UID: :li_uid
|
|
443
459
|
LI_VAT: :li_vat
|
|
460
|
+
LK_VAT: :lk_vat
|
|
444
461
|
MA_VAT: :ma_vat
|
|
445
462
|
MD_VAT: :md_vat
|
|
446
463
|
ME_PIB: :me_pib
|
|
@@ -459,6 +476,7 @@ module Orb
|
|
|
459
476
|
PE_RUC: :pe_ruc
|
|
460
477
|
PH_TIN: :ph_tin
|
|
461
478
|
PL_NIP: :pl_nip
|
|
479
|
+
PY_RUC: :py_ruc
|
|
462
480
|
RO_TIN: :ro_tin
|
|
463
481
|
RS_PIB: :rs_pib
|
|
464
482
|
RU_INN: :ru_inn
|
|
@@ -9,6 +9,7 @@ module Orb
|
|
|
9
9
|
auto_issuance: bool?,
|
|
10
10
|
billing_address: Orb::AddressInput?,
|
|
11
11
|
currency: String?,
|
|
12
|
+
default_payment_method_id: String?,
|
|
12
13
|
email: String?,
|
|
13
14
|
email_delivery: bool?,
|
|
14
15
|
external_customer_id: String?,
|
|
@@ -43,6 +44,8 @@ module Orb
|
|
|
43
44
|
|
|
44
45
|
attr_accessor currency: String?
|
|
45
46
|
|
|
47
|
+
attr_accessor default_payment_method_id: String?
|
|
48
|
+
|
|
46
49
|
attr_accessor email: String?
|
|
47
50
|
|
|
48
51
|
attr_accessor email_delivery: bool?
|
|
@@ -77,6 +80,7 @@ module Orb
|
|
|
77
80
|
?auto_issuance: bool?,
|
|
78
81
|
?billing_address: Orb::AddressInput?,
|
|
79
82
|
?currency: String?,
|
|
83
|
+
?default_payment_method_id: String?,
|
|
80
84
|
?email: String?,
|
|
81
85
|
?email_delivery: bool?,
|
|
82
86
|
?external_customer_id: String?,
|
|
@@ -101,6 +105,7 @@ module Orb
|
|
|
101
105
|
auto_issuance: bool?,
|
|
102
106
|
billing_address: Orb::AddressInput?,
|
|
103
107
|
currency: String?,
|
|
108
|
+
default_payment_method_id: String?,
|
|
104
109
|
email: String?,
|
|
105
110
|
email_delivery: bool?,
|
|
106
111
|
external_customer_id: String?,
|
|
@@ -185,7 +190,7 @@ module Orb
|
|
|
185
190
|
| :stripe_charge
|
|
186
191
|
| :stripe_invoice
|
|
187
192
|
| :netsuite
|
|
188
|
-
| :
|
|
193
|
+
| :adyen
|
|
189
194
|
|
|
190
195
|
module PaymentProvider
|
|
191
196
|
extend Orb::Internal::Type::Enum
|
|
@@ -195,7 +200,7 @@ module Orb
|
|
|
195
200
|
STRIPE_CHARGE: :stripe_charge
|
|
196
201
|
STRIPE_INVOICE: :stripe_invoice
|
|
197
202
|
NETSUITE: :netsuite
|
|
198
|
-
|
|
203
|
+
ADYEN: :adyen
|
|
199
204
|
|
|
200
205
|
def self?.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::payment_provider]
|
|
201
206
|
end
|
|
@@ -9,6 +9,7 @@ module Orb
|
|
|
9
9
|
auto_issuance: bool?,
|
|
10
10
|
billing_address: Orb::AddressInput?,
|
|
11
11
|
currency: String?,
|
|
12
|
+
default_payment_method_id: String?,
|
|
12
13
|
email: String?,
|
|
13
14
|
email_delivery: bool?,
|
|
14
15
|
external_customer_id: String?,
|
|
@@ -43,6 +44,8 @@ module Orb
|
|
|
43
44
|
|
|
44
45
|
attr_accessor currency: String?
|
|
45
46
|
|
|
47
|
+
attr_accessor default_payment_method_id: String?
|
|
48
|
+
|
|
46
49
|
attr_accessor email: String?
|
|
47
50
|
|
|
48
51
|
attr_accessor email_delivery: bool?
|
|
@@ -77,6 +80,7 @@ module Orb
|
|
|
77
80
|
?auto_issuance: bool?,
|
|
78
81
|
?billing_address: Orb::AddressInput?,
|
|
79
82
|
?currency: String?,
|
|
83
|
+
?default_payment_method_id: String?,
|
|
80
84
|
?email: String?,
|
|
81
85
|
?email_delivery: bool?,
|
|
82
86
|
?external_customer_id: String?,
|
|
@@ -101,6 +105,7 @@ module Orb
|
|
|
101
105
|
auto_issuance: bool?,
|
|
102
106
|
billing_address: Orb::AddressInput?,
|
|
103
107
|
currency: String?,
|
|
108
|
+
default_payment_method_id: String?,
|
|
104
109
|
email: String?,
|
|
105
110
|
email_delivery: bool?,
|
|
106
111
|
external_customer_id: String?,
|
|
@@ -185,7 +190,7 @@ module Orb
|
|
|
185
190
|
| :stripe_charge
|
|
186
191
|
| :stripe_invoice
|
|
187
192
|
| :netsuite
|
|
188
|
-
| :
|
|
193
|
+
| :adyen
|
|
189
194
|
|
|
190
195
|
module PaymentProvider
|
|
191
196
|
extend Orb::Internal::Type::Enum
|
|
@@ -195,7 +200,7 @@ module Orb
|
|
|
195
200
|
STRIPE_CHARGE: :stripe_charge
|
|
196
201
|
STRIPE_INVOICE: :stripe_invoice
|
|
197
202
|
NETSUITE: :netsuite
|
|
198
|
-
|
|
203
|
+
ADYEN: :adyen
|
|
199
204
|
|
|
200
205
|
def self?.values: -> ::Array[Orb::Models::CustomerUpdateParams::payment_provider]
|
|
201
206
|
end
|
|
@@ -5,13 +5,15 @@ module Orb
|
|
|
5
5
|
{
|
|
6
6
|
id: String,
|
|
7
7
|
balance: Float,
|
|
8
|
+
credit_block_source: Orb::Models::Customers::CreditListByExternalIDResponse::credit_block_source,
|
|
8
9
|
effective_date: Time?,
|
|
9
10
|
expiry_date: Time?,
|
|
10
11
|
filters: ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::Filter],
|
|
11
12
|
maximum_initial_balance: Float?,
|
|
12
13
|
metadata: ::Hash[Symbol, String],
|
|
13
14
|
per_unit_cost_basis: String?,
|
|
14
|
-
status: Orb::Models::Customers::CreditListByExternalIDResponse::status
|
|
15
|
+
status: Orb::Models::Customers::CreditListByExternalIDResponse::status,
|
|
16
|
+
credit_allocation: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation?
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
class CreditListByExternalIDResponse < Orb::Internal::Type::BaseModel
|
|
@@ -19,6 +21,8 @@ module Orb
|
|
|
19
21
|
|
|
20
22
|
attr_accessor balance: Float
|
|
21
23
|
|
|
24
|
+
attr_accessor credit_block_source: Orb::Models::Customers::CreditListByExternalIDResponse::credit_block_source
|
|
25
|
+
|
|
22
26
|
attr_accessor effective_date: Time?
|
|
23
27
|
|
|
24
28
|
attr_accessor expiry_date: Time?
|
|
@@ -33,30 +37,48 @@ module Orb
|
|
|
33
37
|
|
|
34
38
|
attr_accessor status: Orb::Models::Customers::CreditListByExternalIDResponse::status
|
|
35
39
|
|
|
40
|
+
attr_accessor credit_allocation: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation?
|
|
41
|
+
|
|
36
42
|
def initialize: (
|
|
37
43
|
id: String,
|
|
38
44
|
balance: Float,
|
|
45
|
+
credit_block_source: Orb::Models::Customers::CreditListByExternalIDResponse::credit_block_source,
|
|
39
46
|
effective_date: Time?,
|
|
40
47
|
expiry_date: Time?,
|
|
41
48
|
filters: ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::Filter],
|
|
42
49
|
maximum_initial_balance: Float?,
|
|
43
50
|
metadata: ::Hash[Symbol, String],
|
|
44
51
|
per_unit_cost_basis: String?,
|
|
45
|
-
status: Orb::Models::Customers::CreditListByExternalIDResponse::status
|
|
52
|
+
status: Orb::Models::Customers::CreditListByExternalIDResponse::status,
|
|
53
|
+
?credit_allocation: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation?
|
|
46
54
|
) -> void
|
|
47
55
|
|
|
48
56
|
def to_hash: -> {
|
|
49
57
|
id: String,
|
|
50
58
|
balance: Float,
|
|
59
|
+
credit_block_source: Orb::Models::Customers::CreditListByExternalIDResponse::credit_block_source,
|
|
51
60
|
effective_date: Time?,
|
|
52
61
|
expiry_date: Time?,
|
|
53
62
|
filters: ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::Filter],
|
|
54
63
|
maximum_initial_balance: Float?,
|
|
55
64
|
metadata: ::Hash[Symbol, String],
|
|
56
65
|
per_unit_cost_basis: String?,
|
|
57
|
-
status: Orb::Models::Customers::CreditListByExternalIDResponse::status
|
|
66
|
+
status: Orb::Models::Customers::CreditListByExternalIDResponse::status,
|
|
67
|
+
credit_allocation: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation?
|
|
58
68
|
}
|
|
59
69
|
|
|
70
|
+
type credit_block_source = :allocation | :top_up | :manual
|
|
71
|
+
|
|
72
|
+
module CreditBlockSource
|
|
73
|
+
extend Orb::Internal::Type::Enum
|
|
74
|
+
|
|
75
|
+
ALLOCATION: :allocation
|
|
76
|
+
TOP_UP: :top_up
|
|
77
|
+
MANUAL: :manual
|
|
78
|
+
|
|
79
|
+
def self?.values: -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::credit_block_source]
|
|
80
|
+
end
|
|
81
|
+
|
|
60
82
|
type filter =
|
|
61
83
|
{
|
|
62
84
|
field: Orb::Models::Customers::CreditListByExternalIDResponse::Filter::field,
|
|
@@ -115,6 +137,105 @@ module Orb
|
|
|
115
137
|
|
|
116
138
|
def self?.values: -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::status]
|
|
117
139
|
end
|
|
140
|
+
|
|
141
|
+
type credit_allocation =
|
|
142
|
+
{
|
|
143
|
+
allows_rollover: bool,
|
|
144
|
+
currency: String,
|
|
145
|
+
custom_expiration: Orb::CustomExpiration?,
|
|
146
|
+
item_id: String,
|
|
147
|
+
filters: ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter],
|
|
148
|
+
license_type_id: String?
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
class CreditAllocation < Orb::Internal::Type::BaseModel
|
|
152
|
+
attr_accessor allows_rollover: bool
|
|
153
|
+
|
|
154
|
+
attr_accessor currency: String
|
|
155
|
+
|
|
156
|
+
attr_accessor custom_expiration: Orb::CustomExpiration?
|
|
157
|
+
|
|
158
|
+
attr_accessor item_id: String
|
|
159
|
+
|
|
160
|
+
attr_reader filters: ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter]?
|
|
161
|
+
|
|
162
|
+
def filters=: (
|
|
163
|
+
::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter]
|
|
164
|
+
) -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter]
|
|
165
|
+
|
|
166
|
+
attr_accessor license_type_id: String?
|
|
167
|
+
|
|
168
|
+
def initialize: (
|
|
169
|
+
allows_rollover: bool,
|
|
170
|
+
currency: String,
|
|
171
|
+
custom_expiration: Orb::CustomExpiration?,
|
|
172
|
+
item_id: String,
|
|
173
|
+
?filters: ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter],
|
|
174
|
+
?license_type_id: String?
|
|
175
|
+
) -> void
|
|
176
|
+
|
|
177
|
+
def to_hash: -> {
|
|
178
|
+
allows_rollover: bool,
|
|
179
|
+
currency: String,
|
|
180
|
+
custom_expiration: Orb::CustomExpiration?,
|
|
181
|
+
item_id: String,
|
|
182
|
+
filters: ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter],
|
|
183
|
+
license_type_id: String?
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
type filter =
|
|
187
|
+
{
|
|
188
|
+
field: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::field,
|
|
189
|
+
operator: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::operator,
|
|
190
|
+
values: ::Array[String]
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
194
|
+
attr_accessor field: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::field
|
|
195
|
+
|
|
196
|
+
attr_accessor operator: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::operator
|
|
197
|
+
|
|
198
|
+
attr_accessor values: ::Array[String]
|
|
199
|
+
|
|
200
|
+
def initialize: (
|
|
201
|
+
field: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::field,
|
|
202
|
+
operator: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::operator,
|
|
203
|
+
values: ::Array[String]
|
|
204
|
+
) -> void
|
|
205
|
+
|
|
206
|
+
def to_hash: -> {
|
|
207
|
+
field: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::field,
|
|
208
|
+
operator: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::operator,
|
|
209
|
+
values: ::Array[String]
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
type field =
|
|
213
|
+
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
|
214
|
+
|
|
215
|
+
module Field
|
|
216
|
+
extend Orb::Internal::Type::Enum
|
|
217
|
+
|
|
218
|
+
PRICE_ID: :price_id
|
|
219
|
+
ITEM_ID: :item_id
|
|
220
|
+
PRICE_TYPE: :price_type
|
|
221
|
+
CURRENCY: :currency
|
|
222
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
223
|
+
|
|
224
|
+
def self?.values: -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::field]
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
type operator = :includes | :excludes
|
|
228
|
+
|
|
229
|
+
module Operator
|
|
230
|
+
extend Orb::Internal::Type::Enum
|
|
231
|
+
|
|
232
|
+
INCLUDES: :includes
|
|
233
|
+
EXCLUDES: :excludes
|
|
234
|
+
|
|
235
|
+
def self?.values: -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::operator]
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
end
|
|
118
239
|
end
|
|
119
240
|
end
|
|
120
241
|
end
|
|
@@ -5,13 +5,15 @@ module Orb
|
|
|
5
5
|
{
|
|
6
6
|
id: String,
|
|
7
7
|
balance: Float,
|
|
8
|
+
credit_block_source: Orb::Models::Customers::CreditListResponse::credit_block_source,
|
|
8
9
|
effective_date: Time?,
|
|
9
10
|
expiry_date: Time?,
|
|
10
11
|
filters: ::Array[Orb::Models::Customers::CreditListResponse::Filter],
|
|
11
12
|
maximum_initial_balance: Float?,
|
|
12
13
|
metadata: ::Hash[Symbol, String],
|
|
13
14
|
per_unit_cost_basis: String?,
|
|
14
|
-
status: Orb::Models::Customers::CreditListResponse::status
|
|
15
|
+
status: Orb::Models::Customers::CreditListResponse::status,
|
|
16
|
+
credit_allocation: Orb::Models::Customers::CreditListResponse::CreditAllocation?
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
class CreditListResponse < Orb::Internal::Type::BaseModel
|
|
@@ -19,6 +21,8 @@ module Orb
|
|
|
19
21
|
|
|
20
22
|
attr_accessor balance: Float
|
|
21
23
|
|
|
24
|
+
attr_accessor credit_block_source: Orb::Models::Customers::CreditListResponse::credit_block_source
|
|
25
|
+
|
|
22
26
|
attr_accessor effective_date: Time?
|
|
23
27
|
|
|
24
28
|
attr_accessor expiry_date: Time?
|
|
@@ -33,30 +37,48 @@ module Orb
|
|
|
33
37
|
|
|
34
38
|
attr_accessor status: Orb::Models::Customers::CreditListResponse::status
|
|
35
39
|
|
|
40
|
+
attr_accessor credit_allocation: Orb::Models::Customers::CreditListResponse::CreditAllocation?
|
|
41
|
+
|
|
36
42
|
def initialize: (
|
|
37
43
|
id: String,
|
|
38
44
|
balance: Float,
|
|
45
|
+
credit_block_source: Orb::Models::Customers::CreditListResponse::credit_block_source,
|
|
39
46
|
effective_date: Time?,
|
|
40
47
|
expiry_date: Time?,
|
|
41
48
|
filters: ::Array[Orb::Models::Customers::CreditListResponse::Filter],
|
|
42
49
|
maximum_initial_balance: Float?,
|
|
43
50
|
metadata: ::Hash[Symbol, String],
|
|
44
51
|
per_unit_cost_basis: String?,
|
|
45
|
-
status: Orb::Models::Customers::CreditListResponse::status
|
|
52
|
+
status: Orb::Models::Customers::CreditListResponse::status,
|
|
53
|
+
?credit_allocation: Orb::Models::Customers::CreditListResponse::CreditAllocation?
|
|
46
54
|
) -> void
|
|
47
55
|
|
|
48
56
|
def to_hash: -> {
|
|
49
57
|
id: String,
|
|
50
58
|
balance: Float,
|
|
59
|
+
credit_block_source: Orb::Models::Customers::CreditListResponse::credit_block_source,
|
|
51
60
|
effective_date: Time?,
|
|
52
61
|
expiry_date: Time?,
|
|
53
62
|
filters: ::Array[Orb::Models::Customers::CreditListResponse::Filter],
|
|
54
63
|
maximum_initial_balance: Float?,
|
|
55
64
|
metadata: ::Hash[Symbol, String],
|
|
56
65
|
per_unit_cost_basis: String?,
|
|
57
|
-
status: Orb::Models::Customers::CreditListResponse::status
|
|
66
|
+
status: Orb::Models::Customers::CreditListResponse::status,
|
|
67
|
+
credit_allocation: Orb::Models::Customers::CreditListResponse::CreditAllocation?
|
|
58
68
|
}
|
|
59
69
|
|
|
70
|
+
type credit_block_source = :allocation | :top_up | :manual
|
|
71
|
+
|
|
72
|
+
module CreditBlockSource
|
|
73
|
+
extend Orb::Internal::Type::Enum
|
|
74
|
+
|
|
75
|
+
ALLOCATION: :allocation
|
|
76
|
+
TOP_UP: :top_up
|
|
77
|
+
MANUAL: :manual
|
|
78
|
+
|
|
79
|
+
def self?.values: -> ::Array[Orb::Models::Customers::CreditListResponse::credit_block_source]
|
|
80
|
+
end
|
|
81
|
+
|
|
60
82
|
type filter =
|
|
61
83
|
{
|
|
62
84
|
field: Orb::Models::Customers::CreditListResponse::Filter::field,
|
|
@@ -115,6 +137,105 @@ module Orb
|
|
|
115
137
|
|
|
116
138
|
def self?.values: -> ::Array[Orb::Models::Customers::CreditListResponse::status]
|
|
117
139
|
end
|
|
140
|
+
|
|
141
|
+
type credit_allocation =
|
|
142
|
+
{
|
|
143
|
+
allows_rollover: bool,
|
|
144
|
+
currency: String,
|
|
145
|
+
custom_expiration: Orb::CustomExpiration?,
|
|
146
|
+
item_id: String,
|
|
147
|
+
filters: ::Array[Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter],
|
|
148
|
+
license_type_id: String?
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
class CreditAllocation < Orb::Internal::Type::BaseModel
|
|
152
|
+
attr_accessor allows_rollover: bool
|
|
153
|
+
|
|
154
|
+
attr_accessor currency: String
|
|
155
|
+
|
|
156
|
+
attr_accessor custom_expiration: Orb::CustomExpiration?
|
|
157
|
+
|
|
158
|
+
attr_accessor item_id: String
|
|
159
|
+
|
|
160
|
+
attr_reader filters: ::Array[Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter]?
|
|
161
|
+
|
|
162
|
+
def filters=: (
|
|
163
|
+
::Array[Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter]
|
|
164
|
+
) -> ::Array[Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter]
|
|
165
|
+
|
|
166
|
+
attr_accessor license_type_id: String?
|
|
167
|
+
|
|
168
|
+
def initialize: (
|
|
169
|
+
allows_rollover: bool,
|
|
170
|
+
currency: String,
|
|
171
|
+
custom_expiration: Orb::CustomExpiration?,
|
|
172
|
+
item_id: String,
|
|
173
|
+
?filters: ::Array[Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter],
|
|
174
|
+
?license_type_id: String?
|
|
175
|
+
) -> void
|
|
176
|
+
|
|
177
|
+
def to_hash: -> {
|
|
178
|
+
allows_rollover: bool,
|
|
179
|
+
currency: String,
|
|
180
|
+
custom_expiration: Orb::CustomExpiration?,
|
|
181
|
+
item_id: String,
|
|
182
|
+
filters: ::Array[Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter],
|
|
183
|
+
license_type_id: String?
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
type filter =
|
|
187
|
+
{
|
|
188
|
+
field: Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter::field,
|
|
189
|
+
operator: Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter::operator,
|
|
190
|
+
values: ::Array[String]
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
194
|
+
attr_accessor field: Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter::field
|
|
195
|
+
|
|
196
|
+
attr_accessor operator: Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter::operator
|
|
197
|
+
|
|
198
|
+
attr_accessor values: ::Array[String]
|
|
199
|
+
|
|
200
|
+
def initialize: (
|
|
201
|
+
field: Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter::field,
|
|
202
|
+
operator: Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter::operator,
|
|
203
|
+
values: ::Array[String]
|
|
204
|
+
) -> void
|
|
205
|
+
|
|
206
|
+
def to_hash: -> {
|
|
207
|
+
field: Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter::field,
|
|
208
|
+
operator: Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter::operator,
|
|
209
|
+
values: ::Array[String]
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
type field =
|
|
213
|
+
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
|
214
|
+
|
|
215
|
+
module Field
|
|
216
|
+
extend Orb::Internal::Type::Enum
|
|
217
|
+
|
|
218
|
+
PRICE_ID: :price_id
|
|
219
|
+
ITEM_ID: :item_id
|
|
220
|
+
PRICE_TYPE: :price_type
|
|
221
|
+
CURRENCY: :currency
|
|
222
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
223
|
+
|
|
224
|
+
def self?.values: -> ::Array[Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter::field]
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
type operator = :includes | :excludes
|
|
228
|
+
|
|
229
|
+
module Operator
|
|
230
|
+
extend Orb::Internal::Type::Enum
|
|
231
|
+
|
|
232
|
+
INCLUDES: :includes
|
|
233
|
+
EXCLUDES: :excludes
|
|
234
|
+
|
|
235
|
+
def self?.values: -> ::Array[Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter::operator]
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
end
|
|
118
239
|
end
|
|
119
240
|
end
|
|
120
241
|
end
|