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
|
@@ -19,6 +19,15 @@ module Orb
|
|
|
19
19
|
sig { returns(Time) }
|
|
20
20
|
attr_accessor :created_at
|
|
21
21
|
|
|
22
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
23
|
+
# endpoint.
|
|
24
|
+
sig do
|
|
25
|
+
returns(
|
|
26
|
+
Orb::MetricEventsDroppedByWatermarkWebhookEvent::PayloadStyle::TaggedSymbol
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
attr_accessor :payload_style
|
|
30
|
+
|
|
22
31
|
# `window_start` and `window_end` are ISO-8601 strings rather than datetimes: the
|
|
23
32
|
# untyped message called `.isoformat()` on them, so they keep microseconds where
|
|
24
33
|
# the webhook JSON provider would have truncated them.
|
|
@@ -48,6 +57,8 @@ module Orb
|
|
|
48
57
|
params(
|
|
49
58
|
id: String,
|
|
50
59
|
created_at: Time,
|
|
60
|
+
payload_style:
|
|
61
|
+
Orb::MetricEventsDroppedByWatermarkWebhookEvent::PayloadStyle::OrSymbol,
|
|
51
62
|
properties:
|
|
52
63
|
Orb::MetricEventsDroppedByWatermarkWebhookEvent::Properties::OrHash,
|
|
53
64
|
type: Orb::MetricEventsDroppedByWatermarkWebhookEvent::Type::OrSymbol
|
|
@@ -58,6 +69,9 @@ module Orb
|
|
|
58
69
|
id:,
|
|
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
|
# `window_start` and `window_end` are ISO-8601 strings rather than datetimes: the
|
|
62
76
|
# untyped message called `.isoformat()` on them, so they keep microseconds where
|
|
63
77
|
# the webhook JSON provider would have truncated them.
|
|
@@ -72,6 +86,8 @@ module Orb
|
|
|
72
86
|
{
|
|
73
87
|
id: String,
|
|
74
88
|
created_at: Time,
|
|
89
|
+
payload_style:
|
|
90
|
+
Orb::MetricEventsDroppedByWatermarkWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
75
91
|
properties:
|
|
76
92
|
Orb::MetricEventsDroppedByWatermarkWebhookEvent::Properties,
|
|
77
93
|
type:
|
|
@@ -82,6 +98,42 @@ module Orb
|
|
|
82
98
|
def to_hash
|
|
83
99
|
end
|
|
84
100
|
|
|
101
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
102
|
+
# endpoint.
|
|
103
|
+
module PayloadStyle
|
|
104
|
+
extend Orb::Internal::Type::Enum
|
|
105
|
+
|
|
106
|
+
TaggedSymbol =
|
|
107
|
+
T.type_alias do
|
|
108
|
+
T.all(
|
|
109
|
+
Symbol,
|
|
110
|
+
Orb::MetricEventsDroppedByWatermarkWebhookEvent::PayloadStyle
|
|
111
|
+
)
|
|
112
|
+
end
|
|
113
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
114
|
+
|
|
115
|
+
EXPANDED =
|
|
116
|
+
T.let(
|
|
117
|
+
:expanded,
|
|
118
|
+
Orb::MetricEventsDroppedByWatermarkWebhookEvent::PayloadStyle::TaggedSymbol
|
|
119
|
+
)
|
|
120
|
+
STANDARD =
|
|
121
|
+
T.let(
|
|
122
|
+
:standard,
|
|
123
|
+
Orb::MetricEventsDroppedByWatermarkWebhookEvent::PayloadStyle::TaggedSymbol
|
|
124
|
+
)
|
|
125
|
+
|
|
126
|
+
sig do
|
|
127
|
+
override.returns(
|
|
128
|
+
T::Array[
|
|
129
|
+
Orb::MetricEventsDroppedByWatermarkWebhookEvent::PayloadStyle::TaggedSymbol
|
|
130
|
+
]
|
|
131
|
+
)
|
|
132
|
+
end
|
|
133
|
+
def self.values
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
85
137
|
class Properties < Orb::Internal::Type::BaseModel
|
|
86
138
|
OrHash =
|
|
87
139
|
T.type_alias do
|
|
@@ -16,6 +16,15 @@ module Orb
|
|
|
16
16
|
sig { returns(Time) }
|
|
17
17
|
attr_accessor :created_at
|
|
18
18
|
|
|
19
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
20
|
+
# endpoint.
|
|
21
|
+
sig do
|
|
22
|
+
returns(
|
|
23
|
+
Orb::PaymentMethodCreatedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
24
|
+
)
|
|
25
|
+
end
|
|
26
|
+
attr_accessor :payload_style
|
|
27
|
+
|
|
19
28
|
# A payment method represents a customer's stored payment instrument held with an
|
|
20
29
|
# external payment provider (such as Adyen or Stripe).
|
|
21
30
|
#
|
|
@@ -44,6 +53,8 @@ module Orb
|
|
|
44
53
|
params(
|
|
45
54
|
id: String,
|
|
46
55
|
created_at: Time,
|
|
56
|
+
payload_style:
|
|
57
|
+
Orb::PaymentMethodCreatedWebhookEvent::PayloadStyle::OrSymbol,
|
|
47
58
|
payment_method:
|
|
48
59
|
Orb::PaymentMethodCreatedWebhookEvent::PaymentMethod::OrHash,
|
|
49
60
|
properties: T.anything,
|
|
@@ -55,6 +66,9 @@ module Orb
|
|
|
55
66
|
id:,
|
|
56
67
|
# The time at which this event was created, to the second.
|
|
57
68
|
created_at:,
|
|
69
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
70
|
+
# endpoint.
|
|
71
|
+
payload_style:,
|
|
58
72
|
# A payment method represents a customer's stored payment instrument held with an
|
|
59
73
|
# external payment provider (such as Adyen or Stripe).
|
|
60
74
|
#
|
|
@@ -72,6 +86,8 @@ module Orb
|
|
|
72
86
|
{
|
|
73
87
|
id: String,
|
|
74
88
|
created_at: Time,
|
|
89
|
+
payload_style:
|
|
90
|
+
Orb::PaymentMethodCreatedWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
75
91
|
payment_method:
|
|
76
92
|
Orb::PaymentMethodCreatedWebhookEvent::PaymentMethod,
|
|
77
93
|
properties: T.anything,
|
|
@@ -82,6 +98,39 @@ module Orb
|
|
|
82
98
|
def to_hash
|
|
83
99
|
end
|
|
84
100
|
|
|
101
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
102
|
+
# endpoint.
|
|
103
|
+
module PayloadStyle
|
|
104
|
+
extend Orb::Internal::Type::Enum
|
|
105
|
+
|
|
106
|
+
TaggedSymbol =
|
|
107
|
+
T.type_alias do
|
|
108
|
+
T.all(Symbol, Orb::PaymentMethodCreatedWebhookEvent::PayloadStyle)
|
|
109
|
+
end
|
|
110
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
111
|
+
|
|
112
|
+
EXPANDED =
|
|
113
|
+
T.let(
|
|
114
|
+
:expanded,
|
|
115
|
+
Orb::PaymentMethodCreatedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
116
|
+
)
|
|
117
|
+
STANDARD =
|
|
118
|
+
T.let(
|
|
119
|
+
:standard,
|
|
120
|
+
Orb::PaymentMethodCreatedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
sig do
|
|
124
|
+
override.returns(
|
|
125
|
+
T::Array[
|
|
126
|
+
Orb::PaymentMethodCreatedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
127
|
+
]
|
|
128
|
+
)
|
|
129
|
+
end
|
|
130
|
+
def self.values
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
85
134
|
class PaymentMethod < Orb::Internal::Type::BaseModel
|
|
86
135
|
OrHash =
|
|
87
136
|
T.type_alias do
|
|
@@ -16,6 +16,15 @@ module Orb
|
|
|
16
16
|
sig { returns(Time) }
|
|
17
17
|
attr_accessor :created_at
|
|
18
18
|
|
|
19
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
20
|
+
# endpoint.
|
|
21
|
+
sig do
|
|
22
|
+
returns(
|
|
23
|
+
Orb::PaymentMethodDeletedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
24
|
+
)
|
|
25
|
+
end
|
|
26
|
+
attr_accessor :payload_style
|
|
27
|
+
|
|
19
28
|
# A payment method represents a customer's stored payment instrument held with an
|
|
20
29
|
# external payment provider (such as Adyen or Stripe).
|
|
21
30
|
#
|
|
@@ -44,6 +53,8 @@ module Orb
|
|
|
44
53
|
params(
|
|
45
54
|
id: String,
|
|
46
55
|
created_at: Time,
|
|
56
|
+
payload_style:
|
|
57
|
+
Orb::PaymentMethodDeletedWebhookEvent::PayloadStyle::OrSymbol,
|
|
47
58
|
payment_method:
|
|
48
59
|
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod::OrHash,
|
|
49
60
|
properties: T.anything,
|
|
@@ -55,6 +66,9 @@ module Orb
|
|
|
55
66
|
id:,
|
|
56
67
|
# The time at which this event was created, to the second.
|
|
57
68
|
created_at:,
|
|
69
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
70
|
+
# endpoint.
|
|
71
|
+
payload_style:,
|
|
58
72
|
# A payment method represents a customer's stored payment instrument held with an
|
|
59
73
|
# external payment provider (such as Adyen or Stripe).
|
|
60
74
|
#
|
|
@@ -72,6 +86,8 @@ module Orb
|
|
|
72
86
|
{
|
|
73
87
|
id: String,
|
|
74
88
|
created_at: Time,
|
|
89
|
+
payload_style:
|
|
90
|
+
Orb::PaymentMethodDeletedWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
75
91
|
payment_method:
|
|
76
92
|
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod,
|
|
77
93
|
properties: T.anything,
|
|
@@ -82,6 +98,39 @@ module Orb
|
|
|
82
98
|
def to_hash
|
|
83
99
|
end
|
|
84
100
|
|
|
101
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
102
|
+
# endpoint.
|
|
103
|
+
module PayloadStyle
|
|
104
|
+
extend Orb::Internal::Type::Enum
|
|
105
|
+
|
|
106
|
+
TaggedSymbol =
|
|
107
|
+
T.type_alias do
|
|
108
|
+
T.all(Symbol, Orb::PaymentMethodDeletedWebhookEvent::PayloadStyle)
|
|
109
|
+
end
|
|
110
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
111
|
+
|
|
112
|
+
EXPANDED =
|
|
113
|
+
T.let(
|
|
114
|
+
:expanded,
|
|
115
|
+
Orb::PaymentMethodDeletedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
116
|
+
)
|
|
117
|
+
STANDARD =
|
|
118
|
+
T.let(
|
|
119
|
+
:standard,
|
|
120
|
+
Orb::PaymentMethodDeletedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
sig do
|
|
124
|
+
override.returns(
|
|
125
|
+
T::Array[
|
|
126
|
+
Orb::PaymentMethodDeletedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
127
|
+
]
|
|
128
|
+
)
|
|
129
|
+
end
|
|
130
|
+
def self.values
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
85
134
|
class PaymentMethod < Orb::Internal::Type::BaseModel
|
|
86
135
|
OrHash =
|
|
87
136
|
T.type_alias do
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class PlanCreatedWebhookEvent < Orb::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Orb::PlanCreatedWebhookEvent, Orb::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The ID of this webhook event.
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :id
|
|
14
|
+
|
|
15
|
+
# The time at which this event was created, to the second.
|
|
16
|
+
sig { returns(Time) }
|
|
17
|
+
attr_accessor :created_at
|
|
18
|
+
|
|
19
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
20
|
+
# endpoint.
|
|
21
|
+
sig { returns(Orb::PlanCreatedWebhookEvent::PayloadStyle::TaggedSymbol) }
|
|
22
|
+
attr_accessor :payload_style
|
|
23
|
+
|
|
24
|
+
sig { returns(Orb::PlanCreatedWebhookEvent::Plan) }
|
|
25
|
+
attr_reader :plan
|
|
26
|
+
|
|
27
|
+
sig { params(plan: Orb::PlanCreatedWebhookEvent::Plan::OrHash).void }
|
|
28
|
+
attr_writer :plan
|
|
29
|
+
|
|
30
|
+
sig { returns(T.anything) }
|
|
31
|
+
attr_accessor :properties
|
|
32
|
+
|
|
33
|
+
# The event this payload describes.
|
|
34
|
+
sig { returns(Orb::PlanCreatedWebhookEvent::Type::TaggedSymbol) }
|
|
35
|
+
attr_accessor :type
|
|
36
|
+
|
|
37
|
+
# Issued when a plan is created, or when a draft plan is published.
|
|
38
|
+
sig do
|
|
39
|
+
params(
|
|
40
|
+
id: String,
|
|
41
|
+
created_at: Time,
|
|
42
|
+
payload_style: Orb::PlanCreatedWebhookEvent::PayloadStyle::OrSymbol,
|
|
43
|
+
plan: Orb::PlanCreatedWebhookEvent::Plan::OrHash,
|
|
44
|
+
properties: T.anything,
|
|
45
|
+
type: Orb::PlanCreatedWebhookEvent::Type::OrSymbol
|
|
46
|
+
).returns(T.attached_class)
|
|
47
|
+
end
|
|
48
|
+
def self.new(
|
|
49
|
+
# The ID of this webhook event.
|
|
50
|
+
id:,
|
|
51
|
+
# The time at which this event was created, to the second.
|
|
52
|
+
created_at:,
|
|
53
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
54
|
+
# endpoint.
|
|
55
|
+
payload_style:,
|
|
56
|
+
plan:,
|
|
57
|
+
properties:,
|
|
58
|
+
# The event this payload describes.
|
|
59
|
+
type:
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
sig do
|
|
64
|
+
override.returns(
|
|
65
|
+
{
|
|
66
|
+
id: String,
|
|
67
|
+
created_at: Time,
|
|
68
|
+
payload_style:
|
|
69
|
+
Orb::PlanCreatedWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
70
|
+
plan: Orb::PlanCreatedWebhookEvent::Plan,
|
|
71
|
+
properties: T.anything,
|
|
72
|
+
type: Orb::PlanCreatedWebhookEvent::Type::TaggedSymbol
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
def to_hash
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
80
|
+
# endpoint.
|
|
81
|
+
module PayloadStyle
|
|
82
|
+
extend Orb::Internal::Type::Enum
|
|
83
|
+
|
|
84
|
+
TaggedSymbol =
|
|
85
|
+
T.type_alias do
|
|
86
|
+
T.all(Symbol, Orb::PlanCreatedWebhookEvent::PayloadStyle)
|
|
87
|
+
end
|
|
88
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
89
|
+
|
|
90
|
+
EXPANDED =
|
|
91
|
+
T.let(
|
|
92
|
+
:expanded,
|
|
93
|
+
Orb::PlanCreatedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
94
|
+
)
|
|
95
|
+
STANDARD =
|
|
96
|
+
T.let(
|
|
97
|
+
:standard,
|
|
98
|
+
Orb::PlanCreatedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
sig do
|
|
102
|
+
override.returns(
|
|
103
|
+
T::Array[Orb::PlanCreatedWebhookEvent::PayloadStyle::TaggedSymbol]
|
|
104
|
+
)
|
|
105
|
+
end
|
|
106
|
+
def self.values
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
class Plan < Orb::Internal::Type::BaseModel
|
|
111
|
+
OrHash =
|
|
112
|
+
T.type_alias do
|
|
113
|
+
T.any(Orb::PlanCreatedWebhookEvent::Plan, Orb::Internal::AnyHash)
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
sig { returns(T.nilable(String)) }
|
|
117
|
+
attr_accessor :id
|
|
118
|
+
|
|
119
|
+
# An optional user-defined ID for this plan resource, used throughout the system
|
|
120
|
+
# as an alias for this Plan. Use this field to identify a plan by an existing
|
|
121
|
+
# identifier in your system.
|
|
122
|
+
sig { returns(T.nilable(String)) }
|
|
123
|
+
attr_accessor :external_plan_id
|
|
124
|
+
|
|
125
|
+
sig { returns(T.nilable(String)) }
|
|
126
|
+
attr_accessor :name
|
|
127
|
+
|
|
128
|
+
sig do
|
|
129
|
+
params(
|
|
130
|
+
id: T.nilable(String),
|
|
131
|
+
external_plan_id: T.nilable(String),
|
|
132
|
+
name: T.nilable(String)
|
|
133
|
+
).returns(T.attached_class)
|
|
134
|
+
end
|
|
135
|
+
def self.new(
|
|
136
|
+
id:,
|
|
137
|
+
# An optional user-defined ID for this plan resource, used throughout the system
|
|
138
|
+
# as an alias for this Plan. Use this field to identify a plan by an existing
|
|
139
|
+
# identifier in your system.
|
|
140
|
+
external_plan_id:,
|
|
141
|
+
name:
|
|
142
|
+
)
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
sig do
|
|
146
|
+
override.returns(
|
|
147
|
+
{
|
|
148
|
+
id: T.nilable(String),
|
|
149
|
+
external_plan_id: T.nilable(String),
|
|
150
|
+
name: T.nilable(String)
|
|
151
|
+
}
|
|
152
|
+
)
|
|
153
|
+
end
|
|
154
|
+
def to_hash
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# The event this payload describes.
|
|
159
|
+
module Type
|
|
160
|
+
extend Orb::Internal::Type::Enum
|
|
161
|
+
|
|
162
|
+
TaggedSymbol =
|
|
163
|
+
T.type_alias { T.all(Symbol, Orb::PlanCreatedWebhookEvent::Type) }
|
|
164
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
165
|
+
|
|
166
|
+
PLAN_CREATED =
|
|
167
|
+
T.let(
|
|
168
|
+
:"plan.created",
|
|
169
|
+
Orb::PlanCreatedWebhookEvent::Type::TaggedSymbol
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
sig do
|
|
173
|
+
override.returns(
|
|
174
|
+
T::Array[Orb::PlanCreatedWebhookEvent::Type::TaggedSymbol]
|
|
175
|
+
)
|
|
176
|
+
end
|
|
177
|
+
def self.values
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
end
|
|
@@ -16,6 +16,15 @@ module Orb
|
|
|
16
16
|
sig { returns(Time) }
|
|
17
17
|
attr_accessor :created_at
|
|
18
18
|
|
|
19
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
20
|
+
# endpoint.
|
|
21
|
+
sig do
|
|
22
|
+
returns(
|
|
23
|
+
Orb::PlanDefaultVersionSetWebhookEvent::PayloadStyle::TaggedSymbol
|
|
24
|
+
)
|
|
25
|
+
end
|
|
26
|
+
attr_accessor :payload_style
|
|
27
|
+
|
|
19
28
|
sig { returns(Orb::PlanDefaultVersionSetWebhookEvent::Plan) }
|
|
20
29
|
attr_reader :plan
|
|
21
30
|
|
|
@@ -45,6 +54,8 @@ module Orb
|
|
|
45
54
|
params(
|
|
46
55
|
id: String,
|
|
47
56
|
created_at: Time,
|
|
57
|
+
payload_style:
|
|
58
|
+
Orb::PlanDefaultVersionSetWebhookEvent::PayloadStyle::OrSymbol,
|
|
48
59
|
plan: Orb::PlanDefaultVersionSetWebhookEvent::Plan::OrHash,
|
|
49
60
|
properties:
|
|
50
61
|
Orb::PlanDefaultVersionSetWebhookEvent::Properties::OrHash,
|
|
@@ -56,6 +67,9 @@ module Orb
|
|
|
56
67
|
id:,
|
|
57
68
|
# The time at which this event was created, to the second.
|
|
58
69
|
created_at:,
|
|
70
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
71
|
+
# endpoint.
|
|
72
|
+
payload_style:,
|
|
59
73
|
plan:,
|
|
60
74
|
properties:,
|
|
61
75
|
# The event this payload describes.
|
|
@@ -68,6 +82,8 @@ module Orb
|
|
|
68
82
|
{
|
|
69
83
|
id: String,
|
|
70
84
|
created_at: Time,
|
|
85
|
+
payload_style:
|
|
86
|
+
Orb::PlanDefaultVersionSetWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
71
87
|
plan: Orb::PlanDefaultVersionSetWebhookEvent::Plan,
|
|
72
88
|
properties: Orb::PlanDefaultVersionSetWebhookEvent::Properties,
|
|
73
89
|
type: Orb::PlanDefaultVersionSetWebhookEvent::Type::TaggedSymbol
|
|
@@ -77,6 +93,39 @@ module Orb
|
|
|
77
93
|
def to_hash
|
|
78
94
|
end
|
|
79
95
|
|
|
96
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
97
|
+
# endpoint.
|
|
98
|
+
module PayloadStyle
|
|
99
|
+
extend Orb::Internal::Type::Enum
|
|
100
|
+
|
|
101
|
+
TaggedSymbol =
|
|
102
|
+
T.type_alias do
|
|
103
|
+
T.all(Symbol, Orb::PlanDefaultVersionSetWebhookEvent::PayloadStyle)
|
|
104
|
+
end
|
|
105
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
106
|
+
|
|
107
|
+
EXPANDED =
|
|
108
|
+
T.let(
|
|
109
|
+
:expanded,
|
|
110
|
+
Orb::PlanDefaultVersionSetWebhookEvent::PayloadStyle::TaggedSymbol
|
|
111
|
+
)
|
|
112
|
+
STANDARD =
|
|
113
|
+
T.let(
|
|
114
|
+
:standard,
|
|
115
|
+
Orb::PlanDefaultVersionSetWebhookEvent::PayloadStyle::TaggedSymbol
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
sig do
|
|
119
|
+
override.returns(
|
|
120
|
+
T::Array[
|
|
121
|
+
Orb::PlanDefaultVersionSetWebhookEvent::PayloadStyle::TaggedSymbol
|
|
122
|
+
]
|
|
123
|
+
)
|
|
124
|
+
end
|
|
125
|
+
def self.values
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
80
129
|
class Plan < Orb::Internal::Type::BaseModel
|
|
81
130
|
OrHash =
|
|
82
131
|
T.type_alias do
|