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,82 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Resources
|
|
5
|
+
class DimensionalPriceGroups
|
|
6
|
+
class Prices
|
|
7
|
+
# Create prices in a dimensional price group. Every price shares `item_id`,
|
|
8
|
+
# `cadence`, `currency`, and `model_type`. Tiered prices also share tier
|
|
9
|
+
# boundaries; each row supplies its own amounts. The request is one transaction.
|
|
10
|
+
sig do
|
|
11
|
+
params(
|
|
12
|
+
dimensional_price_group_id: String,
|
|
13
|
+
cadence:
|
|
14
|
+
Orb::DimensionalPriceGroups::PriceCreateParams::Cadence::OrSymbol,
|
|
15
|
+
currency: String,
|
|
16
|
+
item_id: String,
|
|
17
|
+
model_type:
|
|
18
|
+
Orb::DimensionalPriceGroups::PriceCreateParams::ModelType::OrSymbol,
|
|
19
|
+
prices:
|
|
20
|
+
T::Array[
|
|
21
|
+
Orb::DimensionalPriceGroups::PriceCreateParams::Price::OrHash
|
|
22
|
+
],
|
|
23
|
+
tiers:
|
|
24
|
+
T.nilable(
|
|
25
|
+
T::Array[
|
|
26
|
+
Orb::DimensionalPriceGroups::PriceCreateParams::Tier::OrHash
|
|
27
|
+
]
|
|
28
|
+
),
|
|
29
|
+
request_options: Orb::RequestOptions::OrHash
|
|
30
|
+
).returns(Orb::Models::DimensionalPriceGroups::PriceCreateResponse)
|
|
31
|
+
end
|
|
32
|
+
def create(
|
|
33
|
+
dimensional_price_group_id,
|
|
34
|
+
# Billing cadence for every price
|
|
35
|
+
cadence:,
|
|
36
|
+
# An ISO 4217 currency string for every price.
|
|
37
|
+
currency:,
|
|
38
|
+
# The item for every price. Must be the group's billable metric item.
|
|
39
|
+
item_id:,
|
|
40
|
+
model_type:,
|
|
41
|
+
prices:,
|
|
42
|
+
# Shared tier boundaries. Required for tiered prices and omitted for unit prices.
|
|
43
|
+
tiers: nil,
|
|
44
|
+
request_options: {}
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# This endpoint returns the prices in a dimensional price group. Subscription
|
|
49
|
+
# overrides are omitted. Archived prices are omitted unless `status` is `archived`
|
|
50
|
+
# or `all`.
|
|
51
|
+
sig do
|
|
52
|
+
params(
|
|
53
|
+
dimensional_price_group_id: String,
|
|
54
|
+
cursor: T.nilable(String),
|
|
55
|
+
limit: Integer,
|
|
56
|
+
status:
|
|
57
|
+
Orb::DimensionalPriceGroups::PriceListParams::Status::OrSymbol,
|
|
58
|
+
request_options: Orb::RequestOptions::OrHash
|
|
59
|
+
).returns(Orb::Internal::Page[Orb::Price::Variants])
|
|
60
|
+
end
|
|
61
|
+
def list(
|
|
62
|
+
dimensional_price_group_id,
|
|
63
|
+
# Cursor for pagination. This can be populated by the `next_cursor` value returned
|
|
64
|
+
# from the initial request.
|
|
65
|
+
cursor: nil,
|
|
66
|
+
# The number of items to fetch. Defaults to 20.
|
|
67
|
+
limit: nil,
|
|
68
|
+
# active omits archived prices. archived returns only archived prices. all returns
|
|
69
|
+
# both.
|
|
70
|
+
status: nil,
|
|
71
|
+
request_options: {}
|
|
72
|
+
)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# @api private
|
|
76
|
+
sig { params(client: Orb::Client).returns(T.attached_class) }
|
|
77
|
+
def self.new(client:)
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -10,6 +10,9 @@ module Orb
|
|
|
10
10
|
end
|
|
11
11
|
attr_reader :external_dimensional_price_group_id
|
|
12
12
|
|
|
13
|
+
sig { returns(Orb::Resources::DimensionalPriceGroups::Prices) }
|
|
14
|
+
attr_reader :prices
|
|
15
|
+
|
|
13
16
|
# A dimensional price group is used to partition the result of a billable metric
|
|
14
17
|
# by a set of dimensions. Prices in a price group must specify the partition used
|
|
15
18
|
# to derive their usage.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Resources
|
|
5
|
+
# A webhook endpoint is an HTTPS URL that Orb sends
|
|
6
|
+
# [webhook events](/integrations-and-exports/webhooks) to.
|
|
7
|
+
class WebhookEndpoints
|
|
8
|
+
# This endpoint creates a webhook endpoint and returns the secret used to sign its
|
|
9
|
+
# webhook events. The secret isn't returned by any other endpoint. An account can
|
|
10
|
+
# have at most 20 webhook endpoints by default.
|
|
11
|
+
sig do
|
|
12
|
+
params(
|
|
13
|
+
url: String,
|
|
14
|
+
enabled_event_types: T.nilable(T::Array[String]),
|
|
15
|
+
request_options: Orb::RequestOptions::OrHash
|
|
16
|
+
).returns(Orb::WebhookEndpointWithSecret)
|
|
17
|
+
end
|
|
18
|
+
def create(
|
|
19
|
+
# The HTTPS URL that Orb sends webhook events to.
|
|
20
|
+
url:,
|
|
21
|
+
# The webhook event types to send to this endpoint. If omitted or null, all event
|
|
22
|
+
# types are sent.
|
|
23
|
+
enabled_event_types: nil,
|
|
24
|
+
request_options: {}
|
|
25
|
+
)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# This endpoint returns a webhook endpoint identified by its ID.
|
|
29
|
+
sig do
|
|
30
|
+
params(
|
|
31
|
+
webhook_endpoint_id: String,
|
|
32
|
+
request_options: Orb::RequestOptions::OrHash
|
|
33
|
+
).returns(Orb::WebhookEndpoint)
|
|
34
|
+
end
|
|
35
|
+
def retrieve(webhook_endpoint_id, request_options: {})
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# This endpoint updates a webhook endpoint's URL or the event types sent to it.
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
webhook_endpoint_id: String,
|
|
42
|
+
enabled_event_types: T.nilable(T::Array[String]),
|
|
43
|
+
url: T.nilable(String),
|
|
44
|
+
request_options: Orb::RequestOptions::OrHash
|
|
45
|
+
).returns(Orb::WebhookEndpoint)
|
|
46
|
+
end
|
|
47
|
+
def update(
|
|
48
|
+
webhook_endpoint_id,
|
|
49
|
+
# The webhook event types to send to this endpoint. Null sends all event types;
|
|
50
|
+
# omit to leave them unchanged.
|
|
51
|
+
enabled_event_types: nil,
|
|
52
|
+
# The HTTPS URL that Orb sends webhook events to.
|
|
53
|
+
url: nil,
|
|
54
|
+
request_options: {}
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# This endpoint returns the account's webhook endpoints, ordered starting from the
|
|
59
|
+
# most recently created.
|
|
60
|
+
sig do
|
|
61
|
+
params(
|
|
62
|
+
cursor: T.nilable(String),
|
|
63
|
+
limit: Integer,
|
|
64
|
+
request_options: Orb::RequestOptions::OrHash
|
|
65
|
+
).returns(Orb::Internal::Page[Orb::WebhookEndpoint])
|
|
66
|
+
end
|
|
67
|
+
def list(
|
|
68
|
+
# Cursor for pagination. This can be populated by the `next_cursor` value returned
|
|
69
|
+
# from the initial request.
|
|
70
|
+
cursor: nil,
|
|
71
|
+
# The number of items to fetch. Defaults to 20.
|
|
72
|
+
limit: nil,
|
|
73
|
+
request_options: {}
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# This endpoint deletes a webhook endpoint. Orb stops sending webhook events to it
|
|
78
|
+
# immediately.
|
|
79
|
+
sig do
|
|
80
|
+
params(
|
|
81
|
+
webhook_endpoint_id: String,
|
|
82
|
+
request_options: Orb::RequestOptions::OrHash
|
|
83
|
+
).void
|
|
84
|
+
end
|
|
85
|
+
def delete(webhook_endpoint_id, request_options: {})
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# This endpoint disables a webhook endpoint, so Orb stops sending webhook events
|
|
89
|
+
# to it until it is enabled again.
|
|
90
|
+
sig do
|
|
91
|
+
params(
|
|
92
|
+
webhook_endpoint_id: String,
|
|
93
|
+
request_options: Orb::RequestOptions::OrHash
|
|
94
|
+
).returns(Orb::WebhookEndpoint)
|
|
95
|
+
end
|
|
96
|
+
def disable(webhook_endpoint_id, request_options: {})
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# This endpoint enables a webhook endpoint, so Orb resumes sending webhook events
|
|
100
|
+
# to it.
|
|
101
|
+
sig do
|
|
102
|
+
params(
|
|
103
|
+
webhook_endpoint_id: String,
|
|
104
|
+
request_options: Orb::RequestOptions::OrHash
|
|
105
|
+
).returns(Orb::WebhookEndpoint)
|
|
106
|
+
end
|
|
107
|
+
def enable(webhook_endpoint_id, request_options: {})
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# @api private
|
|
111
|
+
sig { params(client: Orb::Client).returns(T.attached_class) }
|
|
112
|
+
def self.new(client:)
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
@@ -55,7 +55,9 @@ module Orb
|
|
|
55
55
|
Orb::MetricEventsDroppedByWatermarkWebhookEvent,
|
|
56
56
|
Orb::PaymentMethodCreatedWebhookEvent,
|
|
57
57
|
Orb::PaymentMethodDeletedWebhookEvent,
|
|
58
|
+
Orb::PlanCreatedWebhookEvent,
|
|
58
59
|
Orb::PlanDefaultVersionSetWebhookEvent,
|
|
60
|
+
Orb::PlanEditedWebhookEvent,
|
|
59
61
|
Orb::PlanVersionCreatedWebhookEvent,
|
|
60
62
|
Orb::PriceEditedWebhookEvent,
|
|
61
63
|
Orb::ResourceEventTestWebhookEvent,
|
data/sig/orb/client.rbs
CHANGED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
type alert_create_for_plan_params =
|
|
4
|
+
{
|
|
5
|
+
plan_id: String,
|
|
6
|
+
thresholds: ::Array[Orb::Threshold],
|
|
7
|
+
type: Orb::Models::AlertCreateForPlanParams::type_,
|
|
8
|
+
currency: String?,
|
|
9
|
+
grouping_keys: ::Array[String]?,
|
|
10
|
+
metric_id: String?,
|
|
11
|
+
plan_version: Integer?,
|
|
12
|
+
price_filters: ::Array[Orb::AlertCreateForPlanParams::PriceFilter]?
|
|
13
|
+
}
|
|
14
|
+
& Orb::Internal::Type::request_parameters
|
|
15
|
+
|
|
16
|
+
class AlertCreateForPlanParams < Orb::Internal::Type::BaseModel
|
|
17
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
18
|
+
include Orb::Internal::Type::RequestParameters
|
|
19
|
+
|
|
20
|
+
attr_accessor plan_id: String
|
|
21
|
+
|
|
22
|
+
attr_accessor thresholds: ::Array[Orb::Threshold]
|
|
23
|
+
|
|
24
|
+
attr_accessor type: Orb::Models::AlertCreateForPlanParams::type_
|
|
25
|
+
|
|
26
|
+
attr_accessor currency: String?
|
|
27
|
+
|
|
28
|
+
attr_accessor grouping_keys: ::Array[String]?
|
|
29
|
+
|
|
30
|
+
attr_accessor metric_id: String?
|
|
31
|
+
|
|
32
|
+
attr_accessor plan_version: Integer?
|
|
33
|
+
|
|
34
|
+
attr_accessor price_filters: ::Array[Orb::AlertCreateForPlanParams::PriceFilter]?
|
|
35
|
+
|
|
36
|
+
def initialize: (
|
|
37
|
+
plan_id: String,
|
|
38
|
+
thresholds: ::Array[Orb::Threshold],
|
|
39
|
+
type: Orb::Models::AlertCreateForPlanParams::type_,
|
|
40
|
+
?currency: String?,
|
|
41
|
+
?grouping_keys: ::Array[String]?,
|
|
42
|
+
?metric_id: String?,
|
|
43
|
+
?plan_version: Integer?,
|
|
44
|
+
?price_filters: ::Array[Orb::AlertCreateForPlanParams::PriceFilter]?,
|
|
45
|
+
?request_options: Orb::request_opts
|
|
46
|
+
) -> void
|
|
47
|
+
|
|
48
|
+
def to_hash: -> {
|
|
49
|
+
plan_id: String,
|
|
50
|
+
thresholds: ::Array[Orb::Threshold],
|
|
51
|
+
type: Orb::Models::AlertCreateForPlanParams::type_,
|
|
52
|
+
currency: String?,
|
|
53
|
+
grouping_keys: ::Array[String]?,
|
|
54
|
+
metric_id: String?,
|
|
55
|
+
plan_version: Integer?,
|
|
56
|
+
price_filters: ::Array[Orb::AlertCreateForPlanParams::PriceFilter]?,
|
|
57
|
+
request_options: Orb::RequestOptions
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
type type_ = :usage_exceeded | :cost_exceeded | :spend_exceeded
|
|
61
|
+
|
|
62
|
+
module Type
|
|
63
|
+
extend Orb::Internal::Type::Enum
|
|
64
|
+
|
|
65
|
+
USAGE_EXCEEDED: :usage_exceeded
|
|
66
|
+
COST_EXCEEDED: :cost_exceeded
|
|
67
|
+
SPEND_EXCEEDED: :spend_exceeded
|
|
68
|
+
|
|
69
|
+
def self?.values: -> ::Array[Orb::Models::AlertCreateForPlanParams::type_]
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
type price_filter =
|
|
73
|
+
{
|
|
74
|
+
field: Orb::Models::AlertCreateForPlanParams::PriceFilter::field,
|
|
75
|
+
operator: Orb::Models::AlertCreateForPlanParams::PriceFilter::operator,
|
|
76
|
+
values: ::Array[String]
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
class PriceFilter < Orb::Internal::Type::BaseModel
|
|
80
|
+
attr_accessor field: Orb::Models::AlertCreateForPlanParams::PriceFilter::field
|
|
81
|
+
|
|
82
|
+
attr_accessor operator: Orb::Models::AlertCreateForPlanParams::PriceFilter::operator
|
|
83
|
+
|
|
84
|
+
attr_accessor values: ::Array[String]
|
|
85
|
+
|
|
86
|
+
def initialize: (
|
|
87
|
+
field: Orb::Models::AlertCreateForPlanParams::PriceFilter::field,
|
|
88
|
+
operator: Orb::Models::AlertCreateForPlanParams::PriceFilter::operator,
|
|
89
|
+
values: ::Array[String]
|
|
90
|
+
) -> void
|
|
91
|
+
|
|
92
|
+
def to_hash: -> {
|
|
93
|
+
field: Orb::Models::AlertCreateForPlanParams::PriceFilter::field,
|
|
94
|
+
operator: Orb::Models::AlertCreateForPlanParams::PriceFilter::operator,
|
|
95
|
+
values: ::Array[String]
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
type field =
|
|
99
|
+
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
|
100
|
+
|
|
101
|
+
module Field
|
|
102
|
+
extend Orb::Internal::Type::Enum
|
|
103
|
+
|
|
104
|
+
PRICE_ID: :price_id
|
|
105
|
+
ITEM_ID: :item_id
|
|
106
|
+
PRICE_TYPE: :price_type
|
|
107
|
+
CURRENCY: :currency
|
|
108
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
109
|
+
|
|
110
|
+
def self?.values: -> ::Array[Orb::Models::AlertCreateForPlanParams::PriceFilter::field]
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
type operator = :includes | :excludes
|
|
114
|
+
|
|
115
|
+
module Operator
|
|
116
|
+
extend Orb::Internal::Type::Enum
|
|
117
|
+
|
|
118
|
+
INCLUDES: :includes
|
|
119
|
+
EXCLUDES: :excludes
|
|
120
|
+
|
|
121
|
+
def self?.values: -> ::Array[Orb::Models::AlertCreateForPlanParams::PriceFilter::operator]
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
@@ -5,6 +5,7 @@ module Orb
|
|
|
5
5
|
id: String,
|
|
6
6
|
backfill: Orb::BackfillReflectedWebhookEvent::Backfill,
|
|
7
7
|
created_at: Time,
|
|
8
|
+
payload_style: Orb::Models::BackfillReflectedWebhookEvent::payload_style,
|
|
8
9
|
properties: top,
|
|
9
10
|
type: Orb::Models::BackfillReflectedWebhookEvent::type_
|
|
10
11
|
}
|
|
@@ -16,6 +17,8 @@ module Orb
|
|
|
16
17
|
|
|
17
18
|
attr_accessor created_at: Time
|
|
18
19
|
|
|
20
|
+
attr_accessor payload_style: Orb::Models::BackfillReflectedWebhookEvent::payload_style
|
|
21
|
+
|
|
19
22
|
attr_accessor properties: top
|
|
20
23
|
|
|
21
24
|
attr_accessor type: Orb::Models::BackfillReflectedWebhookEvent::type_
|
|
@@ -24,6 +27,7 @@ module Orb
|
|
|
24
27
|
id: String,
|
|
25
28
|
backfill: Orb::BackfillReflectedWebhookEvent::Backfill,
|
|
26
29
|
created_at: Time,
|
|
30
|
+
payload_style: Orb::Models::BackfillReflectedWebhookEvent::payload_style,
|
|
27
31
|
properties: top,
|
|
28
32
|
type: Orb::Models::BackfillReflectedWebhookEvent::type_
|
|
29
33
|
) -> void
|
|
@@ -32,6 +36,7 @@ module Orb
|
|
|
32
36
|
id: String,
|
|
33
37
|
backfill: Orb::BackfillReflectedWebhookEvent::Backfill,
|
|
34
38
|
created_at: Time,
|
|
39
|
+
payload_style: Orb::Models::BackfillReflectedWebhookEvent::payload_style,
|
|
35
40
|
properties: top,
|
|
36
41
|
type: Orb::Models::BackfillReflectedWebhookEvent::type_
|
|
37
42
|
}
|
|
@@ -116,6 +121,17 @@ module Orb
|
|
|
116
121
|
end
|
|
117
122
|
end
|
|
118
123
|
|
|
124
|
+
type payload_style = :expanded | :standard
|
|
125
|
+
|
|
126
|
+
module PayloadStyle
|
|
127
|
+
extend Orb::Internal::Type::Enum
|
|
128
|
+
|
|
129
|
+
EXPANDED: :expanded
|
|
130
|
+
STANDARD: :standard
|
|
131
|
+
|
|
132
|
+
def self?.values: -> ::Array[Orb::Models::BackfillReflectedWebhookEvent::payload_style]
|
|
133
|
+
end
|
|
134
|
+
|
|
119
135
|
type type_ = :"backfill.reflected"
|
|
120
136
|
|
|
121
137
|
module Type
|
|
@@ -5,6 +5,7 @@ module Orb
|
|
|
5
5
|
id: String,
|
|
6
6
|
backfill: Orb::BackfillRevertedWebhookEvent::Backfill,
|
|
7
7
|
created_at: Time,
|
|
8
|
+
payload_style: Orb::Models::BackfillRevertedWebhookEvent::payload_style,
|
|
8
9
|
properties: top,
|
|
9
10
|
type: Orb::Models::BackfillRevertedWebhookEvent::type_
|
|
10
11
|
}
|
|
@@ -16,6 +17,8 @@ module Orb
|
|
|
16
17
|
|
|
17
18
|
attr_accessor created_at: Time
|
|
18
19
|
|
|
20
|
+
attr_accessor payload_style: Orb::Models::BackfillRevertedWebhookEvent::payload_style
|
|
21
|
+
|
|
19
22
|
attr_accessor properties: top
|
|
20
23
|
|
|
21
24
|
attr_accessor type: Orb::Models::BackfillRevertedWebhookEvent::type_
|
|
@@ -24,6 +27,7 @@ module Orb
|
|
|
24
27
|
id: String,
|
|
25
28
|
backfill: Orb::BackfillRevertedWebhookEvent::Backfill,
|
|
26
29
|
created_at: Time,
|
|
30
|
+
payload_style: Orb::Models::BackfillRevertedWebhookEvent::payload_style,
|
|
27
31
|
properties: top,
|
|
28
32
|
type: Orb::Models::BackfillRevertedWebhookEvent::type_
|
|
29
33
|
) -> void
|
|
@@ -32,6 +36,7 @@ module Orb
|
|
|
32
36
|
id: String,
|
|
33
37
|
backfill: Orb::BackfillRevertedWebhookEvent::Backfill,
|
|
34
38
|
created_at: Time,
|
|
39
|
+
payload_style: Orb::Models::BackfillRevertedWebhookEvent::payload_style,
|
|
35
40
|
properties: top,
|
|
36
41
|
type: Orb::Models::BackfillRevertedWebhookEvent::type_
|
|
37
42
|
}
|
|
@@ -116,6 +121,17 @@ module Orb
|
|
|
116
121
|
end
|
|
117
122
|
end
|
|
118
123
|
|
|
124
|
+
type payload_style = :expanded | :standard
|
|
125
|
+
|
|
126
|
+
module PayloadStyle
|
|
127
|
+
extend Orb::Internal::Type::Enum
|
|
128
|
+
|
|
129
|
+
EXPANDED: :expanded
|
|
130
|
+
STANDARD: :standard
|
|
131
|
+
|
|
132
|
+
def self?.values: -> ::Array[Orb::Models::BackfillRevertedWebhookEvent::payload_style]
|
|
133
|
+
end
|
|
134
|
+
|
|
119
135
|
type type_ = :"backfill.reverted"
|
|
120
136
|
|
|
121
137
|
module Type
|
|
@@ -5,6 +5,7 @@ module Orb
|
|
|
5
5
|
id: String,
|
|
6
6
|
billable_metric: Orb::BillableMetric,
|
|
7
7
|
created_at: Time,
|
|
8
|
+
payload_style: Orb::Models::BillableMetricEditedWebhookEvent::payload_style,
|
|
8
9
|
properties: Orb::BillableMetricEditedWebhookEvent::Properties,
|
|
9
10
|
type: Orb::Models::BillableMetricEditedWebhookEvent::type_
|
|
10
11
|
}
|
|
@@ -16,6 +17,8 @@ module Orb
|
|
|
16
17
|
|
|
17
18
|
attr_accessor created_at: Time
|
|
18
19
|
|
|
20
|
+
attr_accessor payload_style: Orb::Models::BillableMetricEditedWebhookEvent::payload_style
|
|
21
|
+
|
|
19
22
|
attr_accessor properties: Orb::BillableMetricEditedWebhookEvent::Properties
|
|
20
23
|
|
|
21
24
|
attr_accessor type: Orb::Models::BillableMetricEditedWebhookEvent::type_
|
|
@@ -24,6 +27,7 @@ module Orb
|
|
|
24
27
|
id: String,
|
|
25
28
|
billable_metric: Orb::BillableMetric,
|
|
26
29
|
created_at: Time,
|
|
30
|
+
payload_style: Orb::Models::BillableMetricEditedWebhookEvent::payload_style,
|
|
27
31
|
properties: Orb::BillableMetricEditedWebhookEvent::Properties,
|
|
28
32
|
type: Orb::Models::BillableMetricEditedWebhookEvent::type_
|
|
29
33
|
) -> void
|
|
@@ -32,10 +36,22 @@ module Orb
|
|
|
32
36
|
id: String,
|
|
33
37
|
billable_metric: Orb::BillableMetric,
|
|
34
38
|
created_at: Time,
|
|
39
|
+
payload_style: Orb::Models::BillableMetricEditedWebhookEvent::payload_style,
|
|
35
40
|
properties: Orb::BillableMetricEditedWebhookEvent::Properties,
|
|
36
41
|
type: Orb::Models::BillableMetricEditedWebhookEvent::type_
|
|
37
42
|
}
|
|
38
43
|
|
|
44
|
+
type payload_style = :expanded | :standard
|
|
45
|
+
|
|
46
|
+
module PayloadStyle
|
|
47
|
+
extend Orb::Internal::Type::Enum
|
|
48
|
+
|
|
49
|
+
EXPANDED: :expanded
|
|
50
|
+
STANDARD: :standard
|
|
51
|
+
|
|
52
|
+
def self?.values: -> ::Array[Orb::Models::BillableMetricEditedWebhookEvent::payload_style]
|
|
53
|
+
end
|
|
54
|
+
|
|
39
55
|
type properties =
|
|
40
56
|
{
|
|
41
57
|
previous_attributes: Orb::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes
|
|
@@ -6,6 +6,7 @@ module Orb
|
|
|
6
6
|
accounting_sync_record: Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord,
|
|
7
7
|
block: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block,
|
|
8
8
|
created_at: Time,
|
|
9
|
+
payload_style: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::payload_style,
|
|
9
10
|
properties: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties,
|
|
10
11
|
type: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::type_
|
|
11
12
|
}
|
|
@@ -19,6 +20,8 @@ module Orb
|
|
|
19
20
|
|
|
20
21
|
attr_accessor created_at: Time
|
|
21
22
|
|
|
23
|
+
attr_accessor payload_style: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::payload_style
|
|
24
|
+
|
|
22
25
|
attr_accessor properties: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties
|
|
23
26
|
|
|
24
27
|
attr_accessor type: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::type_
|
|
@@ -28,6 +31,7 @@ module Orb
|
|
|
28
31
|
accounting_sync_record: Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord,
|
|
29
32
|
block: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block,
|
|
30
33
|
created_at: Time,
|
|
34
|
+
payload_style: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::payload_style,
|
|
31
35
|
properties: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties,
|
|
32
36
|
type: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::type_
|
|
33
37
|
) -> void
|
|
@@ -37,6 +41,7 @@ module Orb
|
|
|
37
41
|
accounting_sync_record: Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord,
|
|
38
42
|
block: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block,
|
|
39
43
|
created_at: Time,
|
|
44
|
+
payload_style: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::payload_style,
|
|
40
45
|
properties: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties,
|
|
41
46
|
type: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::type_
|
|
42
47
|
}
|
|
@@ -383,6 +388,17 @@ module Orb
|
|
|
383
388
|
end
|
|
384
389
|
end
|
|
385
390
|
|
|
391
|
+
type payload_style = :expanded | :standard
|
|
392
|
+
|
|
393
|
+
module PayloadStyle
|
|
394
|
+
extend Orb::Internal::Type::Enum
|
|
395
|
+
|
|
396
|
+
EXPANDED: :expanded
|
|
397
|
+
STANDARD: :standard
|
|
398
|
+
|
|
399
|
+
def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::payload_style]
|
|
400
|
+
end
|
|
401
|
+
|
|
386
402
|
type properties = { connection_type: String, failure_reason: String }
|
|
387
403
|
|
|
388
404
|
class Properties < Orb::Internal::Type::BaseModel
|
|
@@ -6,6 +6,7 @@ module Orb
|
|
|
6
6
|
accounting_sync_record: Orb::CreditBlockAccountingSyncSucceededWebhookEvent::AccountingSyncRecord,
|
|
7
7
|
block: Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Block,
|
|
8
8
|
created_at: Time,
|
|
9
|
+
payload_style: Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::payload_style,
|
|
9
10
|
properties: Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Properties,
|
|
10
11
|
type: Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::type_
|
|
11
12
|
}
|
|
@@ -19,6 +20,8 @@ module Orb
|
|
|
19
20
|
|
|
20
21
|
attr_accessor created_at: Time
|
|
21
22
|
|
|
23
|
+
attr_accessor payload_style: Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::payload_style
|
|
24
|
+
|
|
22
25
|
attr_accessor properties: Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Properties
|
|
23
26
|
|
|
24
27
|
attr_accessor type: Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::type_
|
|
@@ -28,6 +31,7 @@ module Orb
|
|
|
28
31
|
accounting_sync_record: Orb::CreditBlockAccountingSyncSucceededWebhookEvent::AccountingSyncRecord,
|
|
29
32
|
block: Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Block,
|
|
30
33
|
created_at: Time,
|
|
34
|
+
payload_style: Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::payload_style,
|
|
31
35
|
properties: Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Properties,
|
|
32
36
|
type: Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::type_
|
|
33
37
|
) -> void
|
|
@@ -37,6 +41,7 @@ module Orb
|
|
|
37
41
|
accounting_sync_record: Orb::CreditBlockAccountingSyncSucceededWebhookEvent::AccountingSyncRecord,
|
|
38
42
|
block: Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Block,
|
|
39
43
|
created_at: Time,
|
|
44
|
+
payload_style: Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::payload_style,
|
|
40
45
|
properties: Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Properties,
|
|
41
46
|
type: Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::type_
|
|
42
47
|
}
|
|
@@ -383,6 +388,17 @@ module Orb
|
|
|
383
388
|
end
|
|
384
389
|
end
|
|
385
390
|
|
|
391
|
+
type payload_style = :expanded | :standard
|
|
392
|
+
|
|
393
|
+
module PayloadStyle
|
|
394
|
+
extend Orb::Internal::Type::Enum
|
|
395
|
+
|
|
396
|
+
EXPANDED: :expanded
|
|
397
|
+
STANDARD: :standard
|
|
398
|
+
|
|
399
|
+
def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::payload_style]
|
|
400
|
+
end
|
|
401
|
+
|
|
386
402
|
type properties = { connection_type: String }
|
|
387
403
|
|
|
388
404
|
class Properties < Orb::Internal::Type::BaseModel
|
|
@@ -6,6 +6,7 @@ module Orb
|
|
|
6
6
|
accounting_sync_record: Orb::CreditNoteAccountingSyncFailedWebhookEvent::AccountingSyncRecord,
|
|
7
7
|
created_at: Time,
|
|
8
8
|
credit_note: Orb::CreditNote,
|
|
9
|
+
payload_style: Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::payload_style,
|
|
9
10
|
properties: Orb::CreditNoteAccountingSyncFailedWebhookEvent::Properties,
|
|
10
11
|
type: Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::type_
|
|
11
12
|
}
|
|
@@ -19,6 +20,8 @@ module Orb
|
|
|
19
20
|
|
|
20
21
|
attr_accessor credit_note: Orb::CreditNote
|
|
21
22
|
|
|
23
|
+
attr_accessor payload_style: Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::payload_style
|
|
24
|
+
|
|
22
25
|
attr_accessor properties: Orb::CreditNoteAccountingSyncFailedWebhookEvent::Properties
|
|
23
26
|
|
|
24
27
|
attr_accessor type: Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::type_
|
|
@@ -28,6 +31,7 @@ module Orb
|
|
|
28
31
|
accounting_sync_record: Orb::CreditNoteAccountingSyncFailedWebhookEvent::AccountingSyncRecord,
|
|
29
32
|
created_at: Time,
|
|
30
33
|
credit_note: Orb::CreditNote,
|
|
34
|
+
payload_style: Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::payload_style,
|
|
31
35
|
properties: Orb::CreditNoteAccountingSyncFailedWebhookEvent::Properties,
|
|
32
36
|
type: Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::type_
|
|
33
37
|
) -> void
|
|
@@ -37,6 +41,7 @@ module Orb
|
|
|
37
41
|
accounting_sync_record: Orb::CreditNoteAccountingSyncFailedWebhookEvent::AccountingSyncRecord,
|
|
38
42
|
created_at: Time,
|
|
39
43
|
credit_note: Orb::CreditNote,
|
|
44
|
+
payload_style: Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::payload_style,
|
|
40
45
|
properties: Orb::CreditNoteAccountingSyncFailedWebhookEvent::Properties,
|
|
41
46
|
type: Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::type_
|
|
42
47
|
}
|
|
@@ -118,6 +123,17 @@ module Orb
|
|
|
118
123
|
end
|
|
119
124
|
end
|
|
120
125
|
|
|
126
|
+
type payload_style = :expanded | :standard
|
|
127
|
+
|
|
128
|
+
module PayloadStyle
|
|
129
|
+
extend Orb::Internal::Type::Enum
|
|
130
|
+
|
|
131
|
+
EXPANDED: :expanded
|
|
132
|
+
STANDARD: :standard
|
|
133
|
+
|
|
134
|
+
def self?.values: -> ::Array[Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::payload_style]
|
|
135
|
+
end
|
|
136
|
+
|
|
121
137
|
type properties = { connection_type: String, failure_reason: String }
|
|
122
138
|
|
|
123
139
|
class Properties < Orb::Internal::Type::BaseModel
|