orb-billing 1.14.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/README.md +1 -1
- data/lib/orb/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/billable_metric.rb +10 -1
- 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 +192 -1
- data/lib/orb/models/credit_block_retrieve_response.rb +185 -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 +192 -1
- data/lib/orb/models/customers/credit_list_response.rb +189 -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/billable_metric.rbi +10 -0
- 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 +425 -3
- data/rbi/orb/models/credit_block_retrieve_response.rbi +421 -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 +425 -3
- data/rbi/orb/models/customers/credit_list_response.rbi +426 -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/billable_metric.rbs +5 -0
- 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 +142 -3
- data/sig/orb/models/credit_block_retrieve_response.rbs +142 -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 +142 -3
- data/sig/orb/models/customers/credit_list_response.rbs +142 -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
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
|
|
@@ -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,16 @@ 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?,
|
|
17
|
+
credit_commitment: Orb::Models::Customers::CreditListByExternalIDResponse::CreditCommitment?
|
|
15
18
|
}
|
|
16
19
|
|
|
17
20
|
class CreditListByExternalIDResponse < Orb::Internal::Type::BaseModel
|
|
@@ -19,6 +22,8 @@ module Orb
|
|
|
19
22
|
|
|
20
23
|
attr_accessor balance: Float
|
|
21
24
|
|
|
25
|
+
attr_accessor credit_block_source: Orb::Models::Customers::CreditListByExternalIDResponse::credit_block_source
|
|
26
|
+
|
|
22
27
|
attr_accessor effective_date: Time?
|
|
23
28
|
|
|
24
29
|
attr_accessor expiry_date: Time?
|
|
@@ -33,30 +38,53 @@ module Orb
|
|
|
33
38
|
|
|
34
39
|
attr_accessor status: Orb::Models::Customers::CreditListByExternalIDResponse::status
|
|
35
40
|
|
|
41
|
+
attr_accessor credit_allocation: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation?
|
|
42
|
+
|
|
43
|
+
attr_accessor credit_commitment: Orb::Models::Customers::CreditListByExternalIDResponse::CreditCommitment?
|
|
44
|
+
|
|
36
45
|
def initialize: (
|
|
37
46
|
id: String,
|
|
38
47
|
balance: Float,
|
|
48
|
+
credit_block_source: Orb::Models::Customers::CreditListByExternalIDResponse::credit_block_source,
|
|
39
49
|
effective_date: Time?,
|
|
40
50
|
expiry_date: Time?,
|
|
41
51
|
filters: ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::Filter],
|
|
42
52
|
maximum_initial_balance: Float?,
|
|
43
53
|
metadata: ::Hash[Symbol, String],
|
|
44
54
|
per_unit_cost_basis: String?,
|
|
45
|
-
status: Orb::Models::Customers::CreditListByExternalIDResponse::status
|
|
55
|
+
status: Orb::Models::Customers::CreditListByExternalIDResponse::status,
|
|
56
|
+
?credit_allocation: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation?,
|
|
57
|
+
?credit_commitment: Orb::Models::Customers::CreditListByExternalIDResponse::CreditCommitment?
|
|
46
58
|
) -> void
|
|
47
59
|
|
|
48
60
|
def to_hash: -> {
|
|
49
61
|
id: String,
|
|
50
62
|
balance: Float,
|
|
63
|
+
credit_block_source: Orb::Models::Customers::CreditListByExternalIDResponse::credit_block_source,
|
|
51
64
|
effective_date: Time?,
|
|
52
65
|
expiry_date: Time?,
|
|
53
66
|
filters: ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::Filter],
|
|
54
67
|
maximum_initial_balance: Float?,
|
|
55
68
|
metadata: ::Hash[Symbol, String],
|
|
56
69
|
per_unit_cost_basis: String?,
|
|
57
|
-
status: Orb::Models::Customers::CreditListByExternalIDResponse::status
|
|
70
|
+
status: Orb::Models::Customers::CreditListByExternalIDResponse::status,
|
|
71
|
+
credit_allocation: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation?,
|
|
72
|
+
credit_commitment: Orb::Models::Customers::CreditListByExternalIDResponse::CreditCommitment?
|
|
58
73
|
}
|
|
59
74
|
|
|
75
|
+
type credit_block_source = :allocation | :top_up | :commitment | :manual
|
|
76
|
+
|
|
77
|
+
module CreditBlockSource
|
|
78
|
+
extend Orb::Internal::Type::Enum
|
|
79
|
+
|
|
80
|
+
ALLOCATION: :allocation
|
|
81
|
+
TOP_UP: :top_up
|
|
82
|
+
COMMITMENT: :commitment
|
|
83
|
+
MANUAL: :manual
|
|
84
|
+
|
|
85
|
+
def self?.values: -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::credit_block_source]
|
|
86
|
+
end
|
|
87
|
+
|
|
60
88
|
type filter =
|
|
61
89
|
{
|
|
62
90
|
field: Orb::Models::Customers::CreditListByExternalIDResponse::Filter::field,
|
|
@@ -115,6 +143,117 @@ module Orb
|
|
|
115
143
|
|
|
116
144
|
def self?.values: -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::status]
|
|
117
145
|
end
|
|
146
|
+
|
|
147
|
+
type credit_allocation =
|
|
148
|
+
{
|
|
149
|
+
allows_rollover: bool,
|
|
150
|
+
currency: String,
|
|
151
|
+
custom_expiration: Orb::CustomExpiration?,
|
|
152
|
+
item_id: String,
|
|
153
|
+
filters: ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter],
|
|
154
|
+
license_type_id: String?
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
class CreditAllocation < Orb::Internal::Type::BaseModel
|
|
158
|
+
attr_accessor allows_rollover: bool
|
|
159
|
+
|
|
160
|
+
attr_accessor currency: String
|
|
161
|
+
|
|
162
|
+
attr_accessor custom_expiration: Orb::CustomExpiration?
|
|
163
|
+
|
|
164
|
+
attr_accessor item_id: String
|
|
165
|
+
|
|
166
|
+
attr_reader filters: ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter]?
|
|
167
|
+
|
|
168
|
+
def filters=: (
|
|
169
|
+
::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter]
|
|
170
|
+
) -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter]
|
|
171
|
+
|
|
172
|
+
attr_accessor license_type_id: String?
|
|
173
|
+
|
|
174
|
+
def initialize: (
|
|
175
|
+
allows_rollover: bool,
|
|
176
|
+
currency: String,
|
|
177
|
+
custom_expiration: Orb::CustomExpiration?,
|
|
178
|
+
item_id: String,
|
|
179
|
+
?filters: ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter],
|
|
180
|
+
?license_type_id: String?
|
|
181
|
+
) -> void
|
|
182
|
+
|
|
183
|
+
def to_hash: -> {
|
|
184
|
+
allows_rollover: bool,
|
|
185
|
+
currency: String,
|
|
186
|
+
custom_expiration: Orb::CustomExpiration?,
|
|
187
|
+
item_id: String,
|
|
188
|
+
filters: ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter],
|
|
189
|
+
license_type_id: String?
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
type filter =
|
|
193
|
+
{
|
|
194
|
+
field: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::field,
|
|
195
|
+
operator: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::operator,
|
|
196
|
+
values: ::Array[String]
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
200
|
+
attr_accessor field: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::field
|
|
201
|
+
|
|
202
|
+
attr_accessor operator: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::operator
|
|
203
|
+
|
|
204
|
+
attr_accessor values: ::Array[String]
|
|
205
|
+
|
|
206
|
+
def initialize: (
|
|
207
|
+
field: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::field,
|
|
208
|
+
operator: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::operator,
|
|
209
|
+
values: ::Array[String]
|
|
210
|
+
) -> void
|
|
211
|
+
|
|
212
|
+
def to_hash: -> {
|
|
213
|
+
field: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::field,
|
|
214
|
+
operator: Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::operator,
|
|
215
|
+
values: ::Array[String]
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
type field =
|
|
219
|
+
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
|
220
|
+
|
|
221
|
+
module Field
|
|
222
|
+
extend Orb::Internal::Type::Enum
|
|
223
|
+
|
|
224
|
+
PRICE_ID: :price_id
|
|
225
|
+
ITEM_ID: :item_id
|
|
226
|
+
PRICE_TYPE: :price_type
|
|
227
|
+
CURRENCY: :currency
|
|
228
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
229
|
+
|
|
230
|
+
def self?.values: -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::field]
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
type operator = :includes | :excludes
|
|
234
|
+
|
|
235
|
+
module Operator
|
|
236
|
+
extend Orb::Internal::Type::Enum
|
|
237
|
+
|
|
238
|
+
INCLUDES: :includes
|
|
239
|
+
EXCLUDES: :excludes
|
|
240
|
+
|
|
241
|
+
def self?.values: -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::Filter::operator]
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
type credit_commitment = { id: String, subscription_id: String? }
|
|
247
|
+
|
|
248
|
+
class CreditCommitment < Orb::Internal::Type::BaseModel
|
|
249
|
+
attr_accessor id: String
|
|
250
|
+
|
|
251
|
+
attr_accessor subscription_id: String?
|
|
252
|
+
|
|
253
|
+
def initialize: (id: String, ?subscription_id: String?) -> void
|
|
254
|
+
|
|
255
|
+
def to_hash: -> { id: String, subscription_id: String? }
|
|
256
|
+
end
|
|
118
257
|
end
|
|
119
258
|
end
|
|
120
259
|
end
|