orb-billing 1.43.0 → 1.45.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 +15 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +6 -0
- data/lib/orb/models/alert_create_for_plan_params.rb +156 -0
- data/lib/orb/models/backfill_reflected_webhook_event.rb +24 -1
- data/lib/orb/models/backfill_reverted_webhook_event.rb +24 -1
- data/lib/orb/models/billable_metric_edited_webhook_event.rb +24 -1
- data/lib/orb/models/credit_block_accounting_sync_failed_webhook_event.rb +27 -1
- data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +27 -1
- data/lib/orb/models/credit_note_accounting_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/credit_note_issued_webhook_event.rb +24 -1
- data/lib/orb/models/credit_note_marked_as_void_webhook_event.rb +24 -1
- data/lib/orb/models/customer_accounting_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/customer_accounting_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/customer_balance_transaction_created_webhook_event.rb +24 -1
- data/lib/orb/models/customer_created_webhook_event.rb +24 -1
- data/lib/orb/models/customer_credit_balance_depleted_webhook_event.rb +24 -1
- data/lib/orb/models/customer_credit_balance_dropped_webhook_event.rb +24 -1
- data/lib/orb/models/customer_credit_balance_recovered_webhook_event.rb +24 -1
- data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +24 -1
- data/lib/orb/models/customer_edited_webhook_event.rb +24 -1
- data/lib/orb/models/data_exports_transfer_error_webhook_event.rb +27 -1
- data/lib/orb/models/data_exports_transfer_success_webhook_event.rb +27 -1
- data/lib/orb/models/dimensional_price_groups/price_create_params.rb +147 -0
- data/lib/orb/models/dimensional_price_groups/price_create_response.rb +19 -0
- data/lib/orb/models/dimensional_price_groups/price_list_params.rb +65 -0
- data/lib/orb/models/event_unmatched_event_webhook_event.rb +27 -1
- data/lib/orb/models/ingestion_unmatched_customer_ids_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_accounting_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_accounting_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_automation_schedule_step_executed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_cost_data_exported_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_due_date_recalculation_completed_webhook_event.rb +28 -1
- data/lib/orb/models/invoice_due_date_recalculation_started_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_dunning_schedule_created_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_dunning_schedule_ended_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_dunning_schedule_reset_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_edited_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_issue_failed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_issued_summary_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_issued_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_manually_marked_as_paid_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_manually_marked_as_void_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_payment_failed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_payment_processing_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_payment_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_undo_mark_as_paid_webhook_event.rb +24 -1
- data/lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb +24 -1
- data/lib/orb/models/payment_method_created_webhook_event.rb +24 -1
- data/lib/orb/models/payment_method_deleted_webhook_event.rb +24 -1
- data/lib/orb/models/plan_created_webhook_event.rb +117 -0
- data/lib/orb/models/plan_default_version_set_webhook_event.rb +27 -1
- data/lib/orb/models/plan_edited_webhook_event.rb +154 -0
- data/lib/orb/models/plan_version_created_webhook_event.rb +27 -1
- data/lib/orb/models/price_edited_webhook_event.rb +24 -1
- data/lib/orb/models/resource_event_test_webhook_event.rb +27 -1
- data/lib/orb/models/sales_order_accounting_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_accounting_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_alert_disabled_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_cancellation_scheduled_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_cancellation_unscheduled_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_cost_exceeded_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_created_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_edited_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_ended_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_grouped_cost_exceeded_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rb +25 -1
- data/lib/orb/models/subscription_license_allocation_reset_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_license_balance_threshold_reached_webhook_event.rb +25 -1
- data/lib/orb/models/subscription_plan_change_scheduled_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_plan_changed_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_plan_version_change_scheduled_webhook_event.rb +25 -1
- data/lib/orb/models/subscription_plan_version_changed_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_spend_exceeded_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_started_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_trial_ended_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_usage_exceeded_webhook_event.rb +24 -1
- data/lib/orb/models/tax_amount.rb +32 -1
- data/lib/orb/models/transaction_accounting_sync_failed_webhook_event.rb +27 -1
- data/lib/orb/models/transaction_accounting_sync_succeeded_webhook_event.rb +27 -1
- data/lib/orb/models/unwrap_webhook_event.rb +7 -1
- data/lib/orb/models/webhook_endpoint.rb +56 -0
- data/lib/orb/models/webhook_endpoint_create_params.rb +34 -0
- data/lib/orb/models/webhook_endpoint_delete_params.rb +20 -0
- data/lib/orb/models/webhook_endpoint_disable_params.rb +20 -0
- data/lib/orb/models/webhook_endpoint_enable_params.rb +20 -0
- data/lib/orb/models/webhook_endpoint_list_params.rb +34 -0
- data/lib/orb/models/webhook_endpoint_retrieve_params.rb +20 -0
- data/lib/orb/models/webhook_endpoint_update_params.rb +41 -0
- data/lib/orb/models/webhook_endpoint_with_secret.rb +65 -0
- data/lib/orb/models.rb +24 -0
- data/lib/orb/resources/alerts.rb +55 -0
- data/lib/orb/resources/dimensional_price_groups/prices.rb +87 -0
- data/lib/orb/resources/dimensional_price_groups.rb +4 -0
- data/lib/orb/resources/webhook_endpoints.rb +183 -0
- data/lib/orb/resources/webhooks.rb +1 -1
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +17 -0
- data/rbi/orb/client.rbi +5 -0
- data/rbi/orb/models/alert_create_for_plan_params.rbi +290 -0
- data/rbi/orb/models/backfill_reflected_webhook_event.rbi +47 -0
- data/rbi/orb/models/backfill_reverted_webhook_event.rbi +47 -0
- data/rbi/orb/models/billable_metric_edited_webhook_event.rbi +49 -0
- data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/credit_note_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/credit_note_issued_webhook_event.rbi +47 -0
- data/rbi/orb/models/credit_note_marked_as_void_webhook_event.rbi +49 -0
- data/rbi/orb/models/customer_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_balance_transaction_created_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_created_webhook_event.rbi +47 -0
- data/rbi/orb/models/customer_credit_balance_depleted_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_credit_balance_dropped_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_credit_balance_recovered_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_edited_webhook_event.rbi +47 -0
- data/rbi/orb/models/data_exports_transfer_error_webhook_event.rbi +52 -0
- data/rbi/orb/models/data_exports_transfer_success_webhook_event.rbi +52 -0
- data/rbi/orb/models/dimensional_price_groups/price_create_params.rbi +298 -0
- data/rbi/orb/models/dimensional_price_groups/price_create_response.rbi +76 -0
- data/rbi/orb/models/dimensional_price_groups/price_list_params.rbi +134 -0
- data/rbi/orb/models/event_unmatched_event_webhook_event.rbi +49 -0
- data/rbi/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_cost_data_exported_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_due_date_recalculation_started_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_dunning_schedule_created_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_dunning_schedule_ended_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_dunning_schedule_reset_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_edited_webhook_event.rbi +44 -0
- data/rbi/orb/models/invoice_invoice_date_elapsed_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_issue_failed_webhook_event.rbi +47 -0
- data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +49 -0
- data/rbi/orb/models/invoice_issued_webhook_event.rbi +44 -0
- data/rbi/orb/models/invoice_manually_marked_as_paid_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_manually_marked_as_void_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_payment_failed_webhook_event.rbi +49 -0
- data/rbi/orb/models/invoice_payment_processing_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_payment_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_sync_failed_webhook_event.rbi +47 -0
- data/rbi/orb/models/invoice_sync_succeeded_webhook_event.rbi +49 -0
- data/rbi/orb/models/invoice_undo_mark_as_paid_webhook_event.rbi +49 -0
- data/rbi/orb/models/metric_events_dropped_by_watermark_webhook_event.rbi +52 -0
- data/rbi/orb/models/payment_method_created_webhook_event.rbi +49 -0
- data/rbi/orb/models/payment_method_deleted_webhook_event.rbi +49 -0
- data/rbi/orb/models/plan_created_webhook_event.rbi +182 -0
- data/rbi/orb/models/plan_default_version_set_webhook_event.rbi +49 -0
- data/rbi/orb/models/plan_edited_webhook_event.rbi +301 -0
- data/rbi/orb/models/plan_version_created_webhook_event.rbi +47 -0
- data/rbi/orb/models/price_edited_webhook_event.rbi +42 -0
- data/rbi/orb/models/resource_event_test_webhook_event.rbi +47 -0
- data/rbi/orb/models/sales_order_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_alert_disabled_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_cancellation_scheduled_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_cancellation_unscheduled_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_cost_exceeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_created_webhook_event.rbi +49 -0
- data/rbi/orb/models/subscription_edited_webhook_event.rbi +47 -0
- data/rbi/orb/models/subscription_ended_webhook_event.rbi +47 -0
- data/rbi/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_license_allocation_reset_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_plan_change_scheduled_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_plan_changed_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_plan_version_changed_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_spend_exceeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_started_webhook_event.rbi +49 -0
- data/rbi/orb/models/subscription_trial_ended_webhook_event.rbi +49 -0
- data/rbi/orb/models/subscription_usage_exceeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/tax_amount.rbi +41 -3
- data/rbi/orb/models/transaction_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/unwrap_webhook_event.rbi +2 -0
- data/rbi/orb/models/webhook_endpoint.rbi +71 -0
- data/rbi/orb/models/webhook_endpoint_create_params.rbi +53 -0
- data/rbi/orb/models/webhook_endpoint_delete_params.rbi +35 -0
- data/rbi/orb/models/webhook_endpoint_disable_params.rbi +35 -0
- data/rbi/orb/models/webhook_endpoint_enable_params.rbi +35 -0
- data/rbi/orb/models/webhook_endpoint_list_params.rbi +56 -0
- data/rbi/orb/models/webhook_endpoint_retrieve_params.rbi +35 -0
- data/rbi/orb/models/webhook_endpoint_update_params.rbi +59 -0
- data/rbi/orb/models/webhook_endpoint_with_secret.rbi +83 -0
- data/rbi/orb/models.rbi +24 -0
- data/rbi/orb/resources/alerts.rbi +59 -0
- data/rbi/orb/resources/dimensional_price_groups/prices.rbi +82 -0
- data/rbi/orb/resources/dimensional_price_groups.rbi +3 -0
- data/rbi/orb/resources/webhook_endpoints.rbi +116 -0
- data/rbi/orb/resources/webhooks.rbi +2 -0
- data/sig/orb/client.rbs +2 -0
- data/sig/orb/models/alert_create_for_plan_params.rbs +126 -0
- data/sig/orb/models/backfill_reflected_webhook_event.rbs +16 -0
- data/sig/orb/models/backfill_reverted_webhook_event.rbs +16 -0
- data/sig/orb/models/billable_metric_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_note_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_note_issued_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_note_marked_as_void_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_balance_transaction_created_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_created_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_credit_balance_depleted_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_credit_balance_dropped_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_credit_balance_recovered_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/data_exports_transfer_error_webhook_event.rbs +16 -0
- data/sig/orb/models/data_exports_transfer_success_webhook_event.rbs +16 -0
- data/sig/orb/models/dimensional_price_groups/price_create_params.rbs +123 -0
- data/sig/orb/models/dimensional_price_groups/price_create_response.rbs +15 -0
- data/sig/orb/models/dimensional_price_groups/price_list_params.rbs +61 -0
- data/sig/orb/models/event_unmatched_event_webhook_event.rbs +16 -0
- data/sig/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_cost_data_exported_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_due_date_recalculation_started_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_dunning_schedule_created_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_dunning_schedule_ended_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_dunning_schedule_reset_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_invoice_date_elapsed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_issue_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_issued_summary_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_issued_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_manually_marked_as_paid_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_manually_marked_as_void_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_payment_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_payment_processing_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_payment_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_undo_mark_as_paid_webhook_event.rbs +16 -0
- data/sig/orb/models/metric_events_dropped_by_watermark_webhook_event.rbs +16 -0
- data/sig/orb/models/payment_method_created_webhook_event.rbs +16 -0
- data/sig/orb/models/payment_method_deleted_webhook_event.rbs +16 -0
- data/sig/orb/models/plan_created_webhook_event.rbs +88 -0
- data/sig/orb/models/plan_default_version_set_webhook_event.rbs +16 -0
- data/sig/orb/models/plan_edited_webhook_event.rbs +132 -0
- data/sig/orb/models/plan_version_created_webhook_event.rbs +16 -0
- data/sig/orb/models/price_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/resource_event_test_webhook_event.rbs +16 -0
- data/sig/orb/models/sales_order_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_alert_disabled_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_cancellation_scheduled_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_cancellation_unscheduled_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_cost_exceeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_created_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_ended_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_license_allocation_reset_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_plan_change_scheduled_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_plan_changed_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_plan_version_changed_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_spend_exceeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_started_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_trial_ended_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_usage_exceeded_webhook_event.rbs +16 -0
- data/sig/orb/models/tax_amount.rbs +31 -3
- data/sig/orb/models/transaction_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/unwrap_webhook_event.rbs +2 -0
- data/sig/orb/models/webhook_endpoint.rbs +40 -0
- data/sig/orb/models/webhook_endpoint_create_params.rbs +28 -0
- data/sig/orb/models/webhook_endpoint_delete_params.rbs +23 -0
- data/sig/orb/models/webhook_endpoint_disable_params.rbs +23 -0
- data/sig/orb/models/webhook_endpoint_enable_params.rbs +23 -0
- data/sig/orb/models/webhook_endpoint_list_params.rbs +30 -0
- data/sig/orb/models/webhook_endpoint_retrieve_params.rbs +23 -0
- data/sig/orb/models/webhook_endpoint_update_params.rbs +36 -0
- data/sig/orb/models/webhook_endpoint_with_secret.rbs +45 -0
- data/sig/orb/models.rbs +24 -0
- data/sig/orb/resources/alerts.rbs +12 -0
- data/sig/orb/resources/dimensional_price_groups/prices.rbs +28 -0
- data/sig/orb/resources/dimensional_price_groups.rbs +2 -0
- data/sig/orb/resources/webhook_endpoints.rbs +46 -0
- data/sig/orb/resources/webhooks.rbs +2 -0
- metadata +52 -1
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class AlertCreateForPlanParams < Orb::Internal::Type::BaseModel
|
|
6
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Orb::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Orb::AlertCreateForPlanParams, Orb::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :plan_id
|
|
16
|
+
|
|
17
|
+
# The thresholds that define the values at which the alert will be triggered.
|
|
18
|
+
sig { returns(T::Array[Orb::Threshold]) }
|
|
19
|
+
attr_accessor :thresholds
|
|
20
|
+
|
|
21
|
+
# The type of alert to create. This must be a valid alert type.
|
|
22
|
+
sig { returns(Orb::AlertCreateForPlanParams::Type::OrSymbol) }
|
|
23
|
+
attr_accessor :type
|
|
24
|
+
|
|
25
|
+
# The case sensitive currency or custom pricing unit the alert is denominated in.
|
|
26
|
+
# Required for spend_exceeded alerts and when grouping_keys is set.
|
|
27
|
+
sig { returns(T.nilable(String)) }
|
|
28
|
+
attr_accessor :currency
|
|
29
|
+
|
|
30
|
+
# The property keys to group cost alerts by. Only applicable for cost_exceeded
|
|
31
|
+
# alerts.
|
|
32
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
33
|
+
attr_accessor :grouping_keys
|
|
34
|
+
|
|
35
|
+
# The metric to track usage for.
|
|
36
|
+
sig { returns(T.nilable(String)) }
|
|
37
|
+
attr_accessor :metric_id
|
|
38
|
+
|
|
39
|
+
# The plan version to create alerts for. If not specified, the default will be the
|
|
40
|
+
# plan's active plan version.
|
|
41
|
+
sig { returns(T.nilable(Integer)) }
|
|
42
|
+
attr_accessor :plan_version
|
|
43
|
+
|
|
44
|
+
# Filters to scope which prices are included in alert evaluation. Supports
|
|
45
|
+
# filtering by price_id, item_id, or price_type with includes/excludes operators.
|
|
46
|
+
# Only applicable to spend_exceeded alerts and to cost_exceeded alerts with
|
|
47
|
+
# grouping_keys set.
|
|
48
|
+
sig do
|
|
49
|
+
returns(T.nilable(T::Array[Orb::AlertCreateForPlanParams::PriceFilter]))
|
|
50
|
+
end
|
|
51
|
+
attr_accessor :price_filters
|
|
52
|
+
|
|
53
|
+
sig do
|
|
54
|
+
params(
|
|
55
|
+
plan_id: String,
|
|
56
|
+
thresholds: T::Array[Orb::Threshold::OrHash],
|
|
57
|
+
type: Orb::AlertCreateForPlanParams::Type::OrSymbol,
|
|
58
|
+
currency: T.nilable(String),
|
|
59
|
+
grouping_keys: T.nilable(T::Array[String]),
|
|
60
|
+
metric_id: T.nilable(String),
|
|
61
|
+
plan_version: T.nilable(Integer),
|
|
62
|
+
price_filters:
|
|
63
|
+
T.nilable(
|
|
64
|
+
T::Array[Orb::AlertCreateForPlanParams::PriceFilter::OrHash]
|
|
65
|
+
),
|
|
66
|
+
request_options: Orb::RequestOptions::OrHash
|
|
67
|
+
).returns(T.attached_class)
|
|
68
|
+
end
|
|
69
|
+
def self.new(
|
|
70
|
+
plan_id:,
|
|
71
|
+
# The thresholds that define the values at which the alert will be triggered.
|
|
72
|
+
thresholds:,
|
|
73
|
+
# The type of alert to create. This must be a valid alert type.
|
|
74
|
+
type:,
|
|
75
|
+
# The case sensitive currency or custom pricing unit the alert is denominated in.
|
|
76
|
+
# Required for spend_exceeded alerts and when grouping_keys is set.
|
|
77
|
+
currency: nil,
|
|
78
|
+
# The property keys to group cost alerts by. Only applicable for cost_exceeded
|
|
79
|
+
# alerts.
|
|
80
|
+
grouping_keys: nil,
|
|
81
|
+
# The metric to track usage for.
|
|
82
|
+
metric_id: nil,
|
|
83
|
+
# The plan version to create alerts for. If not specified, the default will be the
|
|
84
|
+
# plan's active plan version.
|
|
85
|
+
plan_version: nil,
|
|
86
|
+
# Filters to scope which prices are included in alert evaluation. Supports
|
|
87
|
+
# filtering by price_id, item_id, or price_type with includes/excludes operators.
|
|
88
|
+
# Only applicable to spend_exceeded alerts and to cost_exceeded alerts with
|
|
89
|
+
# grouping_keys set.
|
|
90
|
+
price_filters: nil,
|
|
91
|
+
request_options: {}
|
|
92
|
+
)
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
sig do
|
|
96
|
+
override.returns(
|
|
97
|
+
{
|
|
98
|
+
plan_id: String,
|
|
99
|
+
thresholds: T::Array[Orb::Threshold],
|
|
100
|
+
type: Orb::AlertCreateForPlanParams::Type::OrSymbol,
|
|
101
|
+
currency: T.nilable(String),
|
|
102
|
+
grouping_keys: T.nilable(T::Array[String]),
|
|
103
|
+
metric_id: T.nilable(String),
|
|
104
|
+
plan_version: T.nilable(Integer),
|
|
105
|
+
price_filters:
|
|
106
|
+
T.nilable(T::Array[Orb::AlertCreateForPlanParams::PriceFilter]),
|
|
107
|
+
request_options: Orb::RequestOptions
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
end
|
|
111
|
+
def to_hash
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# The type of alert to create. This must be a valid alert type.
|
|
115
|
+
module Type
|
|
116
|
+
extend Orb::Internal::Type::Enum
|
|
117
|
+
|
|
118
|
+
TaggedSymbol =
|
|
119
|
+
T.type_alias { T.all(Symbol, Orb::AlertCreateForPlanParams::Type) }
|
|
120
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
121
|
+
|
|
122
|
+
USAGE_EXCEEDED =
|
|
123
|
+
T.let(
|
|
124
|
+
:usage_exceeded,
|
|
125
|
+
Orb::AlertCreateForPlanParams::Type::TaggedSymbol
|
|
126
|
+
)
|
|
127
|
+
COST_EXCEEDED =
|
|
128
|
+
T.let(
|
|
129
|
+
:cost_exceeded,
|
|
130
|
+
Orb::AlertCreateForPlanParams::Type::TaggedSymbol
|
|
131
|
+
)
|
|
132
|
+
SPEND_EXCEEDED =
|
|
133
|
+
T.let(
|
|
134
|
+
:spend_exceeded,
|
|
135
|
+
Orb::AlertCreateForPlanParams::Type::TaggedSymbol
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
sig do
|
|
139
|
+
override.returns(
|
|
140
|
+
T::Array[Orb::AlertCreateForPlanParams::Type::TaggedSymbol]
|
|
141
|
+
)
|
|
142
|
+
end
|
|
143
|
+
def self.values
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
class PriceFilter < Orb::Internal::Type::BaseModel
|
|
148
|
+
OrHash =
|
|
149
|
+
T.type_alias do
|
|
150
|
+
T.any(
|
|
151
|
+
Orb::AlertCreateForPlanParams::PriceFilter,
|
|
152
|
+
Orb::Internal::AnyHash
|
|
153
|
+
)
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# The property of the price to filter on.
|
|
157
|
+
sig do
|
|
158
|
+
returns(Orb::AlertCreateForPlanParams::PriceFilter::Field::OrSymbol)
|
|
159
|
+
end
|
|
160
|
+
attr_accessor :field
|
|
161
|
+
|
|
162
|
+
# Should prices that match the filter be included or excluded.
|
|
163
|
+
sig do
|
|
164
|
+
returns(
|
|
165
|
+
Orb::AlertCreateForPlanParams::PriceFilter::Operator::OrSymbol
|
|
166
|
+
)
|
|
167
|
+
end
|
|
168
|
+
attr_accessor :operator
|
|
169
|
+
|
|
170
|
+
# The IDs or values that match this filter.
|
|
171
|
+
sig { returns(T::Array[String]) }
|
|
172
|
+
attr_accessor :values
|
|
173
|
+
|
|
174
|
+
sig do
|
|
175
|
+
params(
|
|
176
|
+
field: Orb::AlertCreateForPlanParams::PriceFilter::Field::OrSymbol,
|
|
177
|
+
operator:
|
|
178
|
+
Orb::AlertCreateForPlanParams::PriceFilter::Operator::OrSymbol,
|
|
179
|
+
values: T::Array[String]
|
|
180
|
+
).returns(T.attached_class)
|
|
181
|
+
end
|
|
182
|
+
def self.new(
|
|
183
|
+
# The property of the price to filter on.
|
|
184
|
+
field:,
|
|
185
|
+
# Should prices that match the filter be included or excluded.
|
|
186
|
+
operator:,
|
|
187
|
+
# The IDs or values that match this filter.
|
|
188
|
+
values:
|
|
189
|
+
)
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
sig do
|
|
193
|
+
override.returns(
|
|
194
|
+
{
|
|
195
|
+
field:
|
|
196
|
+
Orb::AlertCreateForPlanParams::PriceFilter::Field::OrSymbol,
|
|
197
|
+
operator:
|
|
198
|
+
Orb::AlertCreateForPlanParams::PriceFilter::Operator::OrSymbol,
|
|
199
|
+
values: T::Array[String]
|
|
200
|
+
}
|
|
201
|
+
)
|
|
202
|
+
end
|
|
203
|
+
def to_hash
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# The property of the price to filter on.
|
|
207
|
+
module Field
|
|
208
|
+
extend Orb::Internal::Type::Enum
|
|
209
|
+
|
|
210
|
+
TaggedSymbol =
|
|
211
|
+
T.type_alias do
|
|
212
|
+
T.all(Symbol, Orb::AlertCreateForPlanParams::PriceFilter::Field)
|
|
213
|
+
end
|
|
214
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
215
|
+
|
|
216
|
+
PRICE_ID =
|
|
217
|
+
T.let(
|
|
218
|
+
:price_id,
|
|
219
|
+
Orb::AlertCreateForPlanParams::PriceFilter::Field::TaggedSymbol
|
|
220
|
+
)
|
|
221
|
+
ITEM_ID =
|
|
222
|
+
T.let(
|
|
223
|
+
:item_id,
|
|
224
|
+
Orb::AlertCreateForPlanParams::PriceFilter::Field::TaggedSymbol
|
|
225
|
+
)
|
|
226
|
+
PRICE_TYPE =
|
|
227
|
+
T.let(
|
|
228
|
+
:price_type,
|
|
229
|
+
Orb::AlertCreateForPlanParams::PriceFilter::Field::TaggedSymbol
|
|
230
|
+
)
|
|
231
|
+
CURRENCY =
|
|
232
|
+
T.let(
|
|
233
|
+
:currency,
|
|
234
|
+
Orb::AlertCreateForPlanParams::PriceFilter::Field::TaggedSymbol
|
|
235
|
+
)
|
|
236
|
+
PRICING_UNIT_ID =
|
|
237
|
+
T.let(
|
|
238
|
+
:pricing_unit_id,
|
|
239
|
+
Orb::AlertCreateForPlanParams::PriceFilter::Field::TaggedSymbol
|
|
240
|
+
)
|
|
241
|
+
|
|
242
|
+
sig do
|
|
243
|
+
override.returns(
|
|
244
|
+
T::Array[
|
|
245
|
+
Orb::AlertCreateForPlanParams::PriceFilter::Field::TaggedSymbol
|
|
246
|
+
]
|
|
247
|
+
)
|
|
248
|
+
end
|
|
249
|
+
def self.values
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Should prices that match the filter be included or excluded.
|
|
254
|
+
module Operator
|
|
255
|
+
extend Orb::Internal::Type::Enum
|
|
256
|
+
|
|
257
|
+
TaggedSymbol =
|
|
258
|
+
T.type_alias do
|
|
259
|
+
T.all(
|
|
260
|
+
Symbol,
|
|
261
|
+
Orb::AlertCreateForPlanParams::PriceFilter::Operator
|
|
262
|
+
)
|
|
263
|
+
end
|
|
264
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
265
|
+
|
|
266
|
+
INCLUDES =
|
|
267
|
+
T.let(
|
|
268
|
+
:includes,
|
|
269
|
+
Orb::AlertCreateForPlanParams::PriceFilter::Operator::TaggedSymbol
|
|
270
|
+
)
|
|
271
|
+
EXCLUDES =
|
|
272
|
+
T.let(
|
|
273
|
+
:excludes,
|
|
274
|
+
Orb::AlertCreateForPlanParams::PriceFilter::Operator::TaggedSymbol
|
|
275
|
+
)
|
|
276
|
+
|
|
277
|
+
sig do
|
|
278
|
+
override.returns(
|
|
279
|
+
T::Array[
|
|
280
|
+
Orb::AlertCreateForPlanParams::PriceFilter::Operator::TaggedSymbol
|
|
281
|
+
]
|
|
282
|
+
)
|
|
283
|
+
end
|
|
284
|
+
def self.values
|
|
285
|
+
end
|
|
286
|
+
end
|
|
287
|
+
end
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
end
|
|
@@ -28,6 +28,13 @@ module Orb
|
|
|
28
28
|
sig { returns(Time) }
|
|
29
29
|
attr_accessor :created_at
|
|
30
30
|
|
|
31
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
32
|
+
# endpoint.
|
|
33
|
+
sig do
|
|
34
|
+
returns(Orb::BackfillReflectedWebhookEvent::PayloadStyle::TaggedSymbol)
|
|
35
|
+
end
|
|
36
|
+
attr_accessor :payload_style
|
|
37
|
+
|
|
31
38
|
sig { returns(T.anything) }
|
|
32
39
|
attr_accessor :properties
|
|
33
40
|
|
|
@@ -41,6 +48,8 @@ module Orb
|
|
|
41
48
|
id: String,
|
|
42
49
|
backfill: Orb::BackfillReflectedWebhookEvent::Backfill::OrHash,
|
|
43
50
|
created_at: Time,
|
|
51
|
+
payload_style:
|
|
52
|
+
Orb::BackfillReflectedWebhookEvent::PayloadStyle::OrSymbol,
|
|
44
53
|
properties: T.anything,
|
|
45
54
|
type: Orb::BackfillReflectedWebhookEvent::Type::OrSymbol
|
|
46
55
|
).returns(T.attached_class)
|
|
@@ -53,6 +62,9 @@ module Orb
|
|
|
53
62
|
backfill:,
|
|
54
63
|
# The time at which this event was created, to the second.
|
|
55
64
|
created_at:,
|
|
65
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
66
|
+
# endpoint.
|
|
67
|
+
payload_style:,
|
|
56
68
|
properties:,
|
|
57
69
|
# The event this payload describes.
|
|
58
70
|
type:
|
|
@@ -65,6 +77,8 @@ module Orb
|
|
|
65
77
|
id: String,
|
|
66
78
|
backfill: Orb::BackfillReflectedWebhookEvent::Backfill,
|
|
67
79
|
created_at: Time,
|
|
80
|
+
payload_style:
|
|
81
|
+
Orb::BackfillReflectedWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
68
82
|
properties: T.anything,
|
|
69
83
|
type: Orb::BackfillReflectedWebhookEvent::Type::TaggedSymbol
|
|
70
84
|
}
|
|
@@ -245,6 +259,39 @@ module Orb
|
|
|
245
259
|
end
|
|
246
260
|
end
|
|
247
261
|
|
|
262
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
263
|
+
# endpoint.
|
|
264
|
+
module PayloadStyle
|
|
265
|
+
extend Orb::Internal::Type::Enum
|
|
266
|
+
|
|
267
|
+
TaggedSymbol =
|
|
268
|
+
T.type_alias do
|
|
269
|
+
T.all(Symbol, Orb::BackfillReflectedWebhookEvent::PayloadStyle)
|
|
270
|
+
end
|
|
271
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
272
|
+
|
|
273
|
+
EXPANDED =
|
|
274
|
+
T.let(
|
|
275
|
+
:expanded,
|
|
276
|
+
Orb::BackfillReflectedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
277
|
+
)
|
|
278
|
+
STANDARD =
|
|
279
|
+
T.let(
|
|
280
|
+
:standard,
|
|
281
|
+
Orb::BackfillReflectedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
282
|
+
)
|
|
283
|
+
|
|
284
|
+
sig do
|
|
285
|
+
override.returns(
|
|
286
|
+
T::Array[
|
|
287
|
+
Orb::BackfillReflectedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
288
|
+
]
|
|
289
|
+
)
|
|
290
|
+
end
|
|
291
|
+
def self.values
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
|
|
248
295
|
# The event this payload describes.
|
|
249
296
|
module Type
|
|
250
297
|
extend Orb::Internal::Type::Enum
|
|
@@ -28,6 +28,13 @@ module Orb
|
|
|
28
28
|
sig { returns(Time) }
|
|
29
29
|
attr_accessor :created_at
|
|
30
30
|
|
|
31
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
32
|
+
# endpoint.
|
|
33
|
+
sig do
|
|
34
|
+
returns(Orb::BackfillRevertedWebhookEvent::PayloadStyle::TaggedSymbol)
|
|
35
|
+
end
|
|
36
|
+
attr_accessor :payload_style
|
|
37
|
+
|
|
31
38
|
sig { returns(T.anything) }
|
|
32
39
|
attr_accessor :properties
|
|
33
40
|
|
|
@@ -41,6 +48,8 @@ module Orb
|
|
|
41
48
|
id: String,
|
|
42
49
|
backfill: Orb::BackfillRevertedWebhookEvent::Backfill::OrHash,
|
|
43
50
|
created_at: Time,
|
|
51
|
+
payload_style:
|
|
52
|
+
Orb::BackfillRevertedWebhookEvent::PayloadStyle::OrSymbol,
|
|
44
53
|
properties: T.anything,
|
|
45
54
|
type: Orb::BackfillRevertedWebhookEvent::Type::OrSymbol
|
|
46
55
|
).returns(T.attached_class)
|
|
@@ -53,6 +62,9 @@ module Orb
|
|
|
53
62
|
backfill:,
|
|
54
63
|
# The time at which this event was created, to the second.
|
|
55
64
|
created_at:,
|
|
65
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
66
|
+
# endpoint.
|
|
67
|
+
payload_style:,
|
|
56
68
|
properties:,
|
|
57
69
|
# The event this payload describes.
|
|
58
70
|
type:
|
|
@@ -65,6 +77,8 @@ module Orb
|
|
|
65
77
|
id: String,
|
|
66
78
|
backfill: Orb::BackfillRevertedWebhookEvent::Backfill,
|
|
67
79
|
created_at: Time,
|
|
80
|
+
payload_style:
|
|
81
|
+
Orb::BackfillRevertedWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
68
82
|
properties: T.anything,
|
|
69
83
|
type: Orb::BackfillRevertedWebhookEvent::Type::TaggedSymbol
|
|
70
84
|
}
|
|
@@ -242,6 +256,39 @@ module Orb
|
|
|
242
256
|
end
|
|
243
257
|
end
|
|
244
258
|
|
|
259
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
260
|
+
# endpoint.
|
|
261
|
+
module PayloadStyle
|
|
262
|
+
extend Orb::Internal::Type::Enum
|
|
263
|
+
|
|
264
|
+
TaggedSymbol =
|
|
265
|
+
T.type_alias do
|
|
266
|
+
T.all(Symbol, Orb::BackfillRevertedWebhookEvent::PayloadStyle)
|
|
267
|
+
end
|
|
268
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
269
|
+
|
|
270
|
+
EXPANDED =
|
|
271
|
+
T.let(
|
|
272
|
+
:expanded,
|
|
273
|
+
Orb::BackfillRevertedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
274
|
+
)
|
|
275
|
+
STANDARD =
|
|
276
|
+
T.let(
|
|
277
|
+
:standard,
|
|
278
|
+
Orb::BackfillRevertedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
279
|
+
)
|
|
280
|
+
|
|
281
|
+
sig do
|
|
282
|
+
override.returns(
|
|
283
|
+
T::Array[
|
|
284
|
+
Orb::BackfillRevertedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
285
|
+
]
|
|
286
|
+
)
|
|
287
|
+
end
|
|
288
|
+
def self.values
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
|
|
245
292
|
# The event this payload describes.
|
|
246
293
|
module Type
|
|
247
294
|
extend Orb::Internal::Type::Enum
|
|
@@ -25,6 +25,15 @@ module Orb
|
|
|
25
25
|
sig { returns(Time) }
|
|
26
26
|
attr_accessor :created_at
|
|
27
27
|
|
|
28
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
29
|
+
# endpoint.
|
|
30
|
+
sig do
|
|
31
|
+
returns(
|
|
32
|
+
Orb::BillableMetricEditedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
attr_accessor :payload_style
|
|
36
|
+
|
|
28
37
|
sig { returns(Orb::BillableMetricEditedWebhookEvent::Properties) }
|
|
29
38
|
attr_reader :properties
|
|
30
39
|
|
|
@@ -45,6 +54,8 @@ module Orb
|
|
|
45
54
|
id: String,
|
|
46
55
|
billable_metric: Orb::BillableMetric::OrHash,
|
|
47
56
|
created_at: Time,
|
|
57
|
+
payload_style:
|
|
58
|
+
Orb::BillableMetricEditedWebhookEvent::PayloadStyle::OrSymbol,
|
|
48
59
|
properties: Orb::BillableMetricEditedWebhookEvent::Properties::OrHash,
|
|
49
60
|
type: Orb::BillableMetricEditedWebhookEvent::Type::OrSymbol
|
|
50
61
|
).returns(T.attached_class)
|
|
@@ -58,6 +69,9 @@ module Orb
|
|
|
58
69
|
billable_metric:,
|
|
59
70
|
# The time at which this event was created, to the second.
|
|
60
71
|
created_at:,
|
|
72
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
73
|
+
# endpoint.
|
|
74
|
+
payload_style:,
|
|
61
75
|
properties:,
|
|
62
76
|
# The event this payload describes.
|
|
63
77
|
type:
|
|
@@ -70,6 +84,8 @@ module Orb
|
|
|
70
84
|
id: String,
|
|
71
85
|
billable_metric: Orb::BillableMetric,
|
|
72
86
|
created_at: Time,
|
|
87
|
+
payload_style:
|
|
88
|
+
Orb::BillableMetricEditedWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
73
89
|
properties: Orb::BillableMetricEditedWebhookEvent::Properties,
|
|
74
90
|
type: Orb::BillableMetricEditedWebhookEvent::Type::TaggedSymbol
|
|
75
91
|
}
|
|
@@ -78,6 +94,39 @@ module Orb
|
|
|
78
94
|
def to_hash
|
|
79
95
|
end
|
|
80
96
|
|
|
97
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
98
|
+
# endpoint.
|
|
99
|
+
module PayloadStyle
|
|
100
|
+
extend Orb::Internal::Type::Enum
|
|
101
|
+
|
|
102
|
+
TaggedSymbol =
|
|
103
|
+
T.type_alias do
|
|
104
|
+
T.all(Symbol, Orb::BillableMetricEditedWebhookEvent::PayloadStyle)
|
|
105
|
+
end
|
|
106
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
107
|
+
|
|
108
|
+
EXPANDED =
|
|
109
|
+
T.let(
|
|
110
|
+
:expanded,
|
|
111
|
+
Orb::BillableMetricEditedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
112
|
+
)
|
|
113
|
+
STANDARD =
|
|
114
|
+
T.let(
|
|
115
|
+
:standard,
|
|
116
|
+
Orb::BillableMetricEditedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
sig do
|
|
120
|
+
override.returns(
|
|
121
|
+
T::Array[
|
|
122
|
+
Orb::BillableMetricEditedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
123
|
+
]
|
|
124
|
+
)
|
|
125
|
+
end
|
|
126
|
+
def self.values
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
81
130
|
class Properties < Orb::Internal::Type::BaseModel
|
|
82
131
|
OrHash =
|
|
83
132
|
T.type_alias do
|
|
@@ -45,6 +45,15 @@ module Orb
|
|
|
45
45
|
sig { returns(Time) }
|
|
46
46
|
attr_accessor :created_at
|
|
47
47
|
|
|
48
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
49
|
+
# endpoint.
|
|
50
|
+
sig do
|
|
51
|
+
returns(
|
|
52
|
+
Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
53
|
+
)
|
|
54
|
+
end
|
|
55
|
+
attr_accessor :payload_style
|
|
56
|
+
|
|
48
57
|
sig do
|
|
49
58
|
returns(Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties)
|
|
50
59
|
end
|
|
@@ -75,6 +84,8 @@ module Orb
|
|
|
75
84
|
block:
|
|
76
85
|
Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::OrHash,
|
|
77
86
|
created_at: Time,
|
|
87
|
+
payload_style:
|
|
88
|
+
Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle::OrSymbol,
|
|
78
89
|
properties:
|
|
79
90
|
Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties::OrHash,
|
|
80
91
|
type: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Type::OrSymbol
|
|
@@ -88,6 +99,9 @@ module Orb
|
|
|
88
99
|
block:,
|
|
89
100
|
# The time at which this event was created, to the second.
|
|
90
101
|
created_at:,
|
|
102
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
103
|
+
# endpoint.
|
|
104
|
+
payload_style:,
|
|
91
105
|
properties:,
|
|
92
106
|
# The event this payload describes.
|
|
93
107
|
type:
|
|
@@ -102,6 +116,8 @@ module Orb
|
|
|
102
116
|
Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord,
|
|
103
117
|
block: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block,
|
|
104
118
|
created_at: Time,
|
|
119
|
+
payload_style:
|
|
120
|
+
Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
105
121
|
properties:
|
|
106
122
|
Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties,
|
|
107
123
|
type:
|
|
@@ -975,6 +991,42 @@ module Orb
|
|
|
975
991
|
end
|
|
976
992
|
end
|
|
977
993
|
|
|
994
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
995
|
+
# endpoint.
|
|
996
|
+
module PayloadStyle
|
|
997
|
+
extend Orb::Internal::Type::Enum
|
|
998
|
+
|
|
999
|
+
TaggedSymbol =
|
|
1000
|
+
T.type_alias do
|
|
1001
|
+
T.all(
|
|
1002
|
+
Symbol,
|
|
1003
|
+
Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle
|
|
1004
|
+
)
|
|
1005
|
+
end
|
|
1006
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1007
|
+
|
|
1008
|
+
EXPANDED =
|
|
1009
|
+
T.let(
|
|
1010
|
+
:expanded,
|
|
1011
|
+
Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
1012
|
+
)
|
|
1013
|
+
STANDARD =
|
|
1014
|
+
T.let(
|
|
1015
|
+
:standard,
|
|
1016
|
+
Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
1017
|
+
)
|
|
1018
|
+
|
|
1019
|
+
sig do
|
|
1020
|
+
override.returns(
|
|
1021
|
+
T::Array[
|
|
1022
|
+
Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
1023
|
+
]
|
|
1024
|
+
)
|
|
1025
|
+
end
|
|
1026
|
+
def self.values
|
|
1027
|
+
end
|
|
1028
|
+
end
|
|
1029
|
+
|
|
978
1030
|
class Properties < Orb::Internal::Type::BaseModel
|
|
979
1031
|
OrHash =
|
|
980
1032
|
T.type_alias do
|
|
@@ -48,6 +48,15 @@ module Orb
|
|
|
48
48
|
sig { returns(Time) }
|
|
49
49
|
attr_accessor :created_at
|
|
50
50
|
|
|
51
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
52
|
+
# endpoint.
|
|
53
|
+
sig do
|
|
54
|
+
returns(
|
|
55
|
+
Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle::TaggedSymbol
|
|
56
|
+
)
|
|
57
|
+
end
|
|
58
|
+
attr_accessor :payload_style
|
|
59
|
+
|
|
51
60
|
sig do
|
|
52
61
|
returns(Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Properties)
|
|
53
62
|
end
|
|
@@ -78,6 +87,8 @@ module Orb
|
|
|
78
87
|
block:
|
|
79
88
|
Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Block::OrHash,
|
|
80
89
|
created_at: Time,
|
|
90
|
+
payload_style:
|
|
91
|
+
Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle::OrSymbol,
|
|
81
92
|
properties:
|
|
82
93
|
Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Properties::OrHash,
|
|
83
94
|
type:
|
|
@@ -92,6 +103,9 @@ module Orb
|
|
|
92
103
|
block:,
|
|
93
104
|
# The time at which this event was created, to the second.
|
|
94
105
|
created_at:,
|
|
106
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
107
|
+
# endpoint.
|
|
108
|
+
payload_style:,
|
|
95
109
|
properties:,
|
|
96
110
|
# The event this payload describes.
|
|
97
111
|
type:
|
|
@@ -106,6 +120,8 @@ module Orb
|
|
|
106
120
|
Orb::CreditBlockAccountingSyncSucceededWebhookEvent::AccountingSyncRecord,
|
|
107
121
|
block: Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Block,
|
|
108
122
|
created_at: Time,
|
|
123
|
+
payload_style:
|
|
124
|
+
Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
109
125
|
properties:
|
|
110
126
|
Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Properties,
|
|
111
127
|
type:
|
|
@@ -979,6 +995,42 @@ module Orb
|
|
|
979
995
|
end
|
|
980
996
|
end
|
|
981
997
|
|
|
998
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
999
|
+
# endpoint.
|
|
1000
|
+
module PayloadStyle
|
|
1001
|
+
extend Orb::Internal::Type::Enum
|
|
1002
|
+
|
|
1003
|
+
TaggedSymbol =
|
|
1004
|
+
T.type_alias do
|
|
1005
|
+
T.all(
|
|
1006
|
+
Symbol,
|
|
1007
|
+
Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle
|
|
1008
|
+
)
|
|
1009
|
+
end
|
|
1010
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1011
|
+
|
|
1012
|
+
EXPANDED =
|
|
1013
|
+
T.let(
|
|
1014
|
+
:expanded,
|
|
1015
|
+
Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle::TaggedSymbol
|
|
1016
|
+
)
|
|
1017
|
+
STANDARD =
|
|
1018
|
+
T.let(
|
|
1019
|
+
:standard,
|
|
1020
|
+
Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle::TaggedSymbol
|
|
1021
|
+
)
|
|
1022
|
+
|
|
1023
|
+
sig do
|
|
1024
|
+
override.returns(
|
|
1025
|
+
T::Array[
|
|
1026
|
+
Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle::TaggedSymbol
|
|
1027
|
+
]
|
|
1028
|
+
)
|
|
1029
|
+
end
|
|
1030
|
+
def self.values
|
|
1031
|
+
end
|
|
1032
|
+
end
|
|
1033
|
+
|
|
982
1034
|
class Properties < Orb::Internal::Type::BaseModel
|
|
983
1035
|
OrHash =
|
|
984
1036
|
T.type_alias do
|