orb-billing 1.45.0 → 1.47.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 +29 -1
- data/README.md +1 -1
- data/lib/orb/models/invoice_issue_summary_response.rb +2 -1
- data/lib/orb/models/invoice_issued_summary_webhook_event.rb +5 -3
- data/lib/orb/models/invoice_list_summary_response.rb +2 -1
- data/lib/orb/models/metric_list_params.rb +21 -1
- data/lib/orb/models/metric_update_params.rb +17 -1
- data/lib/orb/models/plan_update_params.rb +9 -1
- data/lib/orb/models/plans/external_plan_id_update_params.rb +9 -1
- data/lib/orb/models/subscription_alert_disabled_webhook_event.rb +5 -9
- data/lib/orb/models/subscription_grouped_cost_exceeded_webhook_event.rb +5 -9
- data/lib/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rb +5 -9
- data/lib/orb/models/subscription_license_allocation_reset_webhook_event.rb +5 -9
- data/lib/orb/models/subscription_license_balance_threshold_reached_webhook_event.rb +5 -9
- data/lib/orb/models/webhook_endpoint.rb +28 -1
- data/lib/orb/models/webhook_endpoint_create_params.rb +22 -1
- data/lib/orb/models/webhook_endpoint_update_params.rb +22 -1
- data/lib/orb/models/webhook_endpoint_with_secret.rb +28 -1
- data/lib/orb/models/webhooks/backfill_reflected_standard_webhook_event.rb +206 -0
- data/lib/orb/models/webhooks/backfill_reverted_standard_webhook_event.rb +206 -0
- data/lib/orb/models/webhooks/billable_metric_edited_standard_webhook_event.rb +131 -0
- data/lib/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rb +537 -0
- data/lib/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rb +531 -0
- data/lib/orb/models/webhooks/credit_note_accounting_sync_failed_standard_webhook_event.rb +188 -0
- data/lib/orb/models/webhooks/credit_note_accounting_sync_succeeded_standard_webhook_event.rb +183 -0
- data/lib/orb/models/webhooks/credit_note_issued_standard_webhook_event.rb +90 -0
- data/lib/orb/models/webhooks/credit_note_marked_as_void_standard_webhook_event.rb +92 -0
- data/lib/orb/models/webhooks/customer_accounting_sync_failed_standard_webhook_event.rb +198 -0
- data/lib/orb/models/webhooks/customer_accounting_sync_succeeded_standard_webhook_event.rb +193 -0
- data/lib/orb/models/webhooks/customer_balance_transaction_created_standard_webhook_event.rb +240 -0
- data/lib/orb/models/webhooks/customer_created_standard_webhook_event.rb +106 -0
- data/lib/orb/models/webhooks/customer_credit_balance_depleted_standard_webhook_event.rb +597 -0
- data/lib/orb/models/webhooks/customer_credit_balance_dropped_standard_webhook_event.rb +603 -0
- data/lib/orb/models/webhooks/customer_credit_balance_recovered_standard_webhook_event.rb +597 -0
- data/lib/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rb +509 -0
- data/lib/orb/models/webhooks/customer_edited_standard_webhook_event.rb +371 -0
- data/lib/orb/models/webhooks/data_exports_transfer_error_standard_webhook_event.rb +130 -0
- data/lib/orb/models/webhooks/data_exports_transfer_success_standard_webhook_event.rb +124 -0
- data/lib/orb/models/webhooks/event_unmatched_event_standard_webhook_event.rb +134 -0
- data/lib/orb/models/webhooks/ingestion_unmatched_customer_ids_standard_webhook_event.rb +94 -0
- data/lib/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rb +974 -0
- data/lib/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rb +968 -0
- data/lib/orb/models/webhooks/invoice_automation_schedule_step_executed_standard_webhook_event.rb +367 -0
- data/lib/orb/models/webhooks/invoice_cost_data_exported_standard_webhook_event.rb +113 -0
- data/lib/orb/models/webhooks/invoice_due_date_recalculation_canceled_standard_webhook_event.rb +101 -0
- data/lib/orb/models/webhooks/invoice_due_date_recalculation_completed_standard_webhook_event.rb +101 -0
- data/lib/orb/models/webhooks/invoice_due_date_recalculation_started_standard_webhook_event.rb +95 -0
- data/lib/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rb +996 -0
- data/lib/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rb +990 -0
- data/lib/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rb +994 -0
- data/lib/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rb +944 -0
- data/lib/orb/models/webhooks/invoice_edited_standard_webhook_event.rb +1367 -0
- data/lib/orb/models/webhooks/invoice_invoice_date_elapsed_standard_webhook_event.rb +151 -0
- data/lib/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rb +887 -0
- data/lib/orb/models/webhooks/invoice_issued_standard_webhook_event.rb +886 -0
- data/lib/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rb +889 -0
- data/lib/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rb +901 -0
- data/lib/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rb +878 -0
- data/lib/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rb +901 -0
- data/lib/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rb +895 -0
- data/lib/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rb +910 -0
- data/lib/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rb +892 -0
- data/lib/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rb +894 -0
- data/lib/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rb +877 -0
- data/lib/orb/models/webhooks/metric_events_dropped_by_watermark_standard_webhook_event.rb +125 -0
- data/lib/orb/models/webhooks/payment_method_created_standard_webhook_event.rb +184 -0
- data/lib/orb/models/webhooks/payment_method_deleted_standard_webhook_event.rb +184 -0
- data/lib/orb/models/webhooks/plan_created_standard_webhook_event.rb +119 -0
- data/lib/orb/models/webhooks/plan_default_version_set_standard_webhook_event.rb +139 -0
- data/lib/orb/models/webhooks/plan_edited_standard_webhook_event.rb +159 -0
- data/lib/orb/models/webhooks/plan_version_created_standard_webhook_event.rb +138 -0
- data/lib/orb/models/webhooks/price_edited_standard_webhook_event.rb +132 -0
- data/lib/orb/models/webhooks/resource_event_test_standard_webhook_event.rb +92 -0
- data/lib/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rb +974 -0
- data/lib/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rb +969 -0
- data/lib/orb/models/webhooks/standard_unwrap_standard_params.rb +16 -0
- data/lib/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rb +322 -0
- data/lib/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rb +316 -0
- data/lib/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rb +663 -0
- data/lib/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rb +237 -0
- data/lib/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rb +237 -0
- data/lib/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rb +692 -0
- data/lib/orb/models/webhooks/subscription_created_standard_webhook_event.rb +221 -0
- data/lib/orb/models/webhooks/subscription_edited_standard_webhook_event.rb +273 -0
- data/lib/orb/models/webhooks/subscription_ended_standard_webhook_event.rb +219 -0
- data/lib/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rb +255 -0
- data/lib/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rb +689 -0
- data/lib/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rb +218 -0
- data/lib/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rb +240 -0
- data/lib/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rb +683 -0
- data/lib/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rb +249 -0
- data/lib/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rb +233 -0
- data/lib/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rb +250 -0
- data/lib/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rb +248 -0
- data/lib/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rb +693 -0
- data/lib/orb/models/webhooks/subscription_started_standard_webhook_event.rb +221 -0
- data/lib/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rb +222 -0
- data/lib/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rb +700 -0
- data/lib/orb/models/webhooks/transaction_accounting_sync_failed_standard_webhook_event.rb +270 -0
- data/lib/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rb +264 -0
- data/lib/orb/models/webhooks/unwrap_standard_webhook_event.rb +258 -0
- data/lib/orb/models.rb +2 -0
- data/lib/orb/resources/metrics.rb +15 -5
- data/lib/orb/resources/plans/external_plan_id.rb +6 -3
- data/lib/orb/resources/plans.rb +6 -3
- data/lib/orb/resources/webhook_endpoints.rb +6 -2
- data/lib/orb/resources/webhooks/standard.rb +24 -0
- data/lib/orb/resources/webhooks.rb +4 -0
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +84 -0
- data/rbi/orb/models/invoice_issue_summary_response.rbi +2 -1
- data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +6 -3
- data/rbi/orb/models/invoice_list_summary_response.rbi +2 -1
- data/rbi/orb/models/metric_list_params.rbi +29 -0
- data/rbi/orb/models/metric_update_params.rbi +16 -0
- data/rbi/orb/models/plan_update_params.rbi +8 -0
- data/rbi/orb/models/plans/external_plan_id_update_params.rbi +8 -0
- data/rbi/orb/models/subscription_alert_disabled_webhook_event.rbi +6 -12
- data/rbi/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbi +6 -12
- data/rbi/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbi +6 -12
- data/rbi/orb/models/subscription_license_allocation_reset_webhook_event.rbi +6 -12
- data/rbi/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbi +6 -12
- data/rbi/orb/models/webhook_endpoint.rbi +39 -0
- data/rbi/orb/models/webhook_endpoint_create_params.rbi +51 -0
- data/rbi/orb/models/webhook_endpoint_update_params.rbi +51 -0
- data/rbi/orb/models/webhook_endpoint_with_secret.rbi +50 -0
- data/rbi/orb/models/webhooks/backfill_reflected_standard_webhook_event.rbi +349 -0
- data/rbi/orb/models/webhooks/backfill_reverted_standard_webhook_event.rbi +347 -0
- data/rbi/orb/models/webhooks/billable_metric_edited_standard_webhook_event.rbi +273 -0
- data/rbi/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbi +1106 -0
- data/rbi/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbi +1095 -0
- data/rbi/orb/models/webhooks/credit_note_accounting_sync_failed_standard_webhook_event.rbi +377 -0
- data/rbi/orb/models/webhooks/credit_note_accounting_sync_succeeded_standard_webhook_event.rbi +366 -0
- data/rbi/orb/models/webhooks/credit_note_issued_standard_webhook_event.rbi +166 -0
- data/rbi/orb/models/webhooks/credit_note_marked_as_void_standard_webhook_event.rbi +166 -0
- data/rbi/orb/models/webhooks/customer_accounting_sync_failed_standard_webhook_event.rbi +403 -0
- data/rbi/orb/models/webhooks/customer_accounting_sync_succeeded_standard_webhook_event.rbi +392 -0
- data/rbi/orb/models/webhooks/customer_balance_transaction_created_standard_webhook_event.rbi +493 -0
- data/rbi/orb/models/webhooks/customer_created_standard_webhook_event.rbi +198 -0
- data/rbi/orb/models/webhooks/customer_credit_balance_depleted_standard_webhook_event.rbi +1151 -0
- data/rbi/orb/models/webhooks/customer_credit_balance_dropped_standard_webhook_event.rbi +1158 -0
- data/rbi/orb/models/webhooks/customer_credit_balance_recovered_standard_webhook_event.rbi +1151 -0
- data/rbi/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbi +1044 -0
- data/rbi/orb/models/webhooks/customer_edited_standard_webhook_event.rbi +678 -0
- data/rbi/orb/models/webhooks/data_exports_transfer_error_standard_webhook_event.rbi +236 -0
- data/rbi/orb/models/webhooks/data_exports_transfer_success_standard_webhook_event.rbi +230 -0
- data/rbi/orb/models/webhooks/event_unmatched_event_standard_webhook_event.rbi +275 -0
- data/rbi/orb/models/webhooks/ingestion_unmatched_customer_ids_standard_webhook_event.rbi +192 -0
- data/rbi/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rbi +1708 -0
- data/rbi/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rbi +1697 -0
- data/rbi/orb/models/webhooks/invoice_automation_schedule_step_executed_standard_webhook_event.rbi +670 -0
- data/rbi/orb/models/webhooks/invoice_cost_data_exported_standard_webhook_event.rbi +210 -0
- data/rbi/orb/models/webhooks/invoice_due_date_recalculation_canceled_standard_webhook_event.rbi +195 -0
- data/rbi/orb/models/webhooks/invoice_due_date_recalculation_completed_standard_webhook_event.rbi +195 -0
- data/rbi/orb/models/webhooks/invoice_due_date_recalculation_started_standard_webhook_event.rbi +188 -0
- data/rbi/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rbi +1716 -0
- data/rbi/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rbi +1711 -0
- data/rbi/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rbi +1716 -0
- data/rbi/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rbi +1631 -0
- data/rbi/orb/models/webhooks/invoice_edited_standard_webhook_event.rbi +2340 -0
- data/rbi/orb/models/webhooks/invoice_invoice_date_elapsed_standard_webhook_event.rbi +324 -0
- data/rbi/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rbi +1532 -0
- data/rbi/orb/models/webhooks/invoice_issued_standard_webhook_event.rbi +1532 -0
- data/rbi/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rbi +1537 -0
- data/rbi/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rbi +1552 -0
- data/rbi/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rbi +1497 -0
- data/rbi/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rbi +1557 -0
- data/rbi/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rbi +1550 -0
- data/rbi/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rbi +1566 -0
- data/rbi/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rbi +1545 -0
- data/rbi/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rbi +1547 -0
- data/rbi/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rbi +1497 -0
- data/rbi/orb/models/webhooks/metric_events_dropped_by_watermark_standard_webhook_event.rbi +233 -0
- data/rbi/orb/models/webhooks/payment_method_created_standard_webhook_event.rbi +331 -0
- data/rbi/orb/models/webhooks/payment_method_deleted_standard_webhook_event.rbi +331 -0
- data/rbi/orb/models/webhooks/plan_created_standard_webhook_event.rbi +216 -0
- data/rbi/orb/models/webhooks/plan_default_version_set_standard_webhook_event.rbi +277 -0
- data/rbi/orb/models/webhooks/plan_edited_standard_webhook_event.rbi +337 -0
- data/rbi/orb/models/webhooks/plan_version_created_standard_webhook_event.rbi +271 -0
- data/rbi/orb/models/webhooks/price_edited_standard_webhook_event.rbi +311 -0
- data/rbi/orb/models/webhooks/resource_event_test_standard_webhook_event.rbi +191 -0
- data/rbi/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rbi +1708 -0
- data/rbi/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rbi +1697 -0
- data/rbi/orb/models/webhooks/standard_unwrap_standard_params.rbi +32 -0
- data/rbi/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rbi +609 -0
- data/rbi/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rbi +598 -0
- data/rbi/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rbi +1296 -0
- data/rbi/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rbi +433 -0
- data/rbi/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rbi +435 -0
- data/rbi/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rbi +1298 -0
- data/rbi/orb/models/webhooks/subscription_created_standard_webhook_event.rbi +398 -0
- data/rbi/orb/models/webhooks/subscription_edited_standard_webhook_event.rbi +520 -0
- data/rbi/orb/models/webhooks/subscription_ended_standard_webhook_event.rbi +398 -0
- data/rbi/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rbi +458 -0
- data/rbi/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rbi +1315 -0
- data/rbi/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rbi +422 -0
- data/rbi/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rbi +471 -0
- data/rbi/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rbi +1313 -0
- data/rbi/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rbi +453 -0
- data/rbi/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rbi +433 -0
- data/rbi/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rbi +457 -0
- data/rbi/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rbi +457 -0
- data/rbi/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rbi +1299 -0
- data/rbi/orb/models/webhooks/subscription_started_standard_webhook_event.rbi +398 -0
- data/rbi/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rbi +398 -0
- data/rbi/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rbi +1305 -0
- data/rbi/orb/models/webhooks/transaction_accounting_sync_failed_standard_webhook_event.rbi +516 -0
- data/rbi/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rbi +505 -0
- data/rbi/orb/models/webhooks/unwrap_standard_webhook_event.rbi +107 -0
- data/rbi/orb/models.rbi +2 -0
- data/rbi/orb/resources/metrics.rbi +16 -3
- data/rbi/orb/resources/plans/external_plan_id.rbi +6 -2
- data/rbi/orb/resources/plans.rbi +6 -2
- data/rbi/orb/resources/webhook_endpoints.rbi +10 -0
- data/rbi/orb/resources/webhooks/standard.rbi +107 -0
- data/rbi/orb/resources/webhooks.rbi +3 -0
- data/sig/orb/models/metric_list_params.rbs +18 -1
- data/sig/orb/models/metric_update_params.rbs +14 -1
- data/sig/orb/models/plan_update_params.rbs +6 -1
- data/sig/orb/models/plans/external_plan_id_update_params.rbs +6 -1
- data/sig/orb/models/webhook_endpoint.rbs +16 -0
- data/sig/orb/models/webhook_endpoint_create_params.rbs +20 -1
- data/sig/orb/models/webhook_endpoint_update_params.rbs +16 -0
- data/sig/orb/models/webhook_endpoint_with_secret.rbs +16 -0
- data/sig/orb/models/webhooks/backfill_reflected_standard_webhook_event.rbs +148 -0
- data/sig/orb/models/webhooks/backfill_reverted_standard_webhook_event.rbs +148 -0
- data/sig/orb/models/webhooks/billable_metric_edited_standard_webhook_event.rbs +112 -0
- data/sig/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbs +435 -0
- data/sig/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbs +430 -0
- data/sig/orb/models/webhooks/credit_note_accounting_sync_failed_standard_webhook_event.rbs +165 -0
- data/sig/orb/models/webhooks/credit_note_accounting_sync_succeeded_standard_webhook_event.rbs +160 -0
- data/sig/orb/models/webhooks/credit_note_issued_standard_webhook_event.rbs +68 -0
- data/sig/orb/models/webhooks/credit_note_marked_as_void_standard_webhook_event.rbs +68 -0
- data/sig/orb/models/webhooks/customer_accounting_sync_failed_standard_webhook_event.rbs +160 -0
- data/sig/orb/models/webhooks/customer_accounting_sync_succeeded_standard_webhook_event.rbs +155 -0
- data/sig/orb/models/webhooks/customer_balance_transaction_created_standard_webhook_event.rbs +189 -0
- data/sig/orb/models/webhooks/customer_created_standard_webhook_event.rbs +68 -0
- data/sig/orb/models/webhooks/customer_credit_balance_depleted_standard_webhook_event.rbs +396 -0
- data/sig/orb/models/webhooks/customer_credit_balance_dropped_standard_webhook_event.rbs +401 -0
- data/sig/orb/models/webhooks/customer_credit_balance_recovered_standard_webhook_event.rbs +396 -0
- data/sig/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbs +386 -0
- data/sig/orb/models/webhooks/customer_edited_standard_webhook_event.rbs +157 -0
- data/sig/orb/models/webhooks/data_exports_transfer_error_standard_webhook_event.rbs +110 -0
- data/sig/orb/models/webhooks/data_exports_transfer_success_standard_webhook_event.rbs +105 -0
- data/sig/orb/models/webhooks/event_unmatched_event_standard_webhook_event.rbs +122 -0
- data/sig/orb/models/webhooks/ingestion_unmatched_customer_ids_standard_webhook_event.rbs +73 -0
- data/sig/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rbs +614 -0
- data/sig/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rbs +609 -0
- data/sig/orb/models/webhooks/invoice_automation_schedule_step_executed_standard_webhook_event.rbs +331 -0
- data/sig/orb/models/webhooks/invoice_cost_data_exported_standard_webhook_event.rbs +91 -0
- data/sig/orb/models/webhooks/invoice_due_date_recalculation_canceled_standard_webhook_event.rbs +75 -0
- data/sig/orb/models/webhooks/invoice_due_date_recalculation_completed_standard_webhook_event.rbs +75 -0
- data/sig/orb/models/webhooks/invoice_due_date_recalculation_started_standard_webhook_event.rbs +73 -0
- data/sig/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rbs +638 -0
- data/sig/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rbs +633 -0
- data/sig/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rbs +623 -0
- data/sig/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rbs +586 -0
- data/sig/orb/models/webhooks/invoice_edited_standard_webhook_event.rbs +859 -0
- data/sig/orb/models/webhooks/invoice_invoice_date_elapsed_standard_webhook_event.rbs +129 -0
- data/sig/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rbs +527 -0
- data/sig/orb/models/webhooks/invoice_issued_standard_webhook_event.rbs +527 -0
- data/sig/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rbs +527 -0
- data/sig/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rbs +540 -0
- data/sig/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rbs +517 -0
- data/sig/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rbs +544 -0
- data/sig/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rbs +538 -0
- data/sig/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rbs +549 -0
- data/sig/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rbs +536 -0
- data/sig/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rbs +536 -0
- data/sig/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rbs +517 -0
- data/sig/orb/models/webhooks/metric_events_dropped_by_watermark_standard_webhook_event.rbs +100 -0
- data/sig/orb/models/webhooks/payment_method_created_standard_webhook_event.rbs +130 -0
- data/sig/orb/models/webhooks/payment_method_deleted_standard_webhook_event.rbs +130 -0
- data/sig/orb/models/webhooks/plan_created_standard_webhook_event.rbs +90 -0
- data/sig/orb/models/webhooks/plan_default_version_set_standard_webhook_event.rbs +112 -0
- data/sig/orb/models/webhooks/plan_edited_standard_webhook_event.rbs +134 -0
- data/sig/orb/models/webhooks/plan_version_created_standard_webhook_event.rbs +109 -0
- data/sig/orb/models/webhooks/price_edited_standard_webhook_event.rbs +95 -0
- data/sig/orb/models/webhooks/resource_event_test_standard_webhook_event.rbs +75 -0
- data/sig/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rbs +614 -0
- data/sig/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rbs +609 -0
- data/sig/orb/models/webhooks/standard_unwrap_standard_params.rbs +17 -0
- data/sig/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rbs +256 -0
- data/sig/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rbs +251 -0
- data/sig/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rbs +466 -0
- data/sig/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rbs +169 -0
- data/sig/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rbs +169 -0
- data/sig/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rbs +475 -0
- data/sig/orb/models/webhooks/subscription_created_standard_webhook_event.rbs +159 -0
- data/sig/orb/models/webhooks/subscription_edited_standard_webhook_event.rbs +218 -0
- data/sig/orb/models/webhooks/subscription_ended_standard_webhook_event.rbs +159 -0
- data/sig/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rbs +191 -0
- data/sig/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rbs +487 -0
- data/sig/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rbs +176 -0
- data/sig/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rbs +198 -0
- data/sig/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rbs +482 -0
- data/sig/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rbs +182 -0
- data/sig/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rbs +169 -0
- data/sig/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rbs +186 -0
- data/sig/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rbs +186 -0
- data/sig/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rbs +475 -0
- data/sig/orb/models/webhooks/subscription_started_standard_webhook_event.rbs +159 -0
- data/sig/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rbs +159 -0
- data/sig/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rbs +480 -0
- data/sig/orb/models/webhooks/transaction_accounting_sync_failed_standard_webhook_event.rbs +223 -0
- data/sig/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rbs +218 -0
- data/sig/orb/models/webhooks/unwrap_standard_webhook_event.rbs +94 -0
- data/sig/orb/models.rbs +2 -0
- data/sig/orb/resources/metrics.rbs +3 -0
- data/sig/orb/resources/plans/external_plan_id.rbs +1 -0
- data/sig/orb/resources/plans.rbs +1 -0
- data/sig/orb/resources/webhook_endpoints.rbs +2 -0
- data/sig/orb/resources/webhooks/standard.rbs +93 -0
- data/sig/orb/resources/webhooks.rbs +2 -0
- metadata +253 -1
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
module Webhooks
|
|
6
|
+
class PlanVersionCreatedStandardWebhookEvent < Orb::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent,
|
|
11
|
+
Orb::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# The ID of this webhook event.
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :id
|
|
18
|
+
|
|
19
|
+
# The time at which this event was created, to the second.
|
|
20
|
+
sig { returns(Time) }
|
|
21
|
+
attr_accessor :created_at
|
|
22
|
+
|
|
23
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
24
|
+
# endpoint.
|
|
25
|
+
sig do
|
|
26
|
+
returns(
|
|
27
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
attr_accessor :payload_style
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
returns(Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Plan)
|
|
34
|
+
end
|
|
35
|
+
attr_reader :plan
|
|
36
|
+
|
|
37
|
+
sig do
|
|
38
|
+
params(
|
|
39
|
+
plan:
|
|
40
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Plan::OrHash
|
|
41
|
+
).void
|
|
42
|
+
end
|
|
43
|
+
attr_writer :plan
|
|
44
|
+
|
|
45
|
+
sig do
|
|
46
|
+
returns(
|
|
47
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Properties
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
attr_reader :properties
|
|
51
|
+
|
|
52
|
+
sig do
|
|
53
|
+
params(
|
|
54
|
+
properties:
|
|
55
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Properties::OrHash
|
|
56
|
+
).void
|
|
57
|
+
end
|
|
58
|
+
attr_writer :properties
|
|
59
|
+
|
|
60
|
+
# The event this payload describes.
|
|
61
|
+
sig do
|
|
62
|
+
returns(
|
|
63
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Type::TaggedSymbol
|
|
64
|
+
)
|
|
65
|
+
end
|
|
66
|
+
attr_accessor :type
|
|
67
|
+
|
|
68
|
+
# Issued when a new plan version is created.
|
|
69
|
+
sig do
|
|
70
|
+
params(
|
|
71
|
+
id: String,
|
|
72
|
+
created_at: Time,
|
|
73
|
+
payload_style:
|
|
74
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::PayloadStyle::OrSymbol,
|
|
75
|
+
plan:
|
|
76
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Plan::OrHash,
|
|
77
|
+
properties:
|
|
78
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Properties::OrHash,
|
|
79
|
+
type:
|
|
80
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Type::OrSymbol
|
|
81
|
+
).returns(T.attached_class)
|
|
82
|
+
end
|
|
83
|
+
def self.new(
|
|
84
|
+
# The ID of this webhook event.
|
|
85
|
+
id:,
|
|
86
|
+
# The time at which this event was created, to the second.
|
|
87
|
+
created_at:,
|
|
88
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
89
|
+
# endpoint.
|
|
90
|
+
payload_style:,
|
|
91
|
+
plan:,
|
|
92
|
+
properties:,
|
|
93
|
+
# The event this payload describes.
|
|
94
|
+
type:
|
|
95
|
+
)
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
sig do
|
|
99
|
+
override.returns(
|
|
100
|
+
{
|
|
101
|
+
id: String,
|
|
102
|
+
created_at: Time,
|
|
103
|
+
payload_style:
|
|
104
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
105
|
+
plan: Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Plan,
|
|
106
|
+
properties:
|
|
107
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Properties,
|
|
108
|
+
type:
|
|
109
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Type::TaggedSymbol
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
end
|
|
113
|
+
def to_hash
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
117
|
+
# endpoint.
|
|
118
|
+
module PayloadStyle
|
|
119
|
+
extend Orb::Internal::Type::Enum
|
|
120
|
+
|
|
121
|
+
TaggedSymbol =
|
|
122
|
+
T.type_alias do
|
|
123
|
+
T.all(
|
|
124
|
+
Symbol,
|
|
125
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::PayloadStyle
|
|
126
|
+
)
|
|
127
|
+
end
|
|
128
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
129
|
+
|
|
130
|
+
EXPANDED =
|
|
131
|
+
T.let(
|
|
132
|
+
:expanded,
|
|
133
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
134
|
+
)
|
|
135
|
+
STANDARD =
|
|
136
|
+
T.let(
|
|
137
|
+
:standard,
|
|
138
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
sig do
|
|
142
|
+
override.returns(
|
|
143
|
+
T::Array[
|
|
144
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
145
|
+
]
|
|
146
|
+
)
|
|
147
|
+
end
|
|
148
|
+
def self.values
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
class Plan < Orb::Internal::Type::BaseModel
|
|
153
|
+
OrHash =
|
|
154
|
+
T.type_alias do
|
|
155
|
+
T.any(
|
|
156
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Plan,
|
|
157
|
+
Orb::Internal::AnyHash
|
|
158
|
+
)
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
sig { returns(T.nilable(String)) }
|
|
162
|
+
attr_accessor :id
|
|
163
|
+
|
|
164
|
+
# An optional user-defined ID for this plan resource, used throughout the system
|
|
165
|
+
# as an alias for this Plan. Use this field to identify a plan by an existing
|
|
166
|
+
# identifier in your system.
|
|
167
|
+
sig { returns(T.nilable(String)) }
|
|
168
|
+
attr_accessor :external_plan_id
|
|
169
|
+
|
|
170
|
+
sig { returns(T.nilable(String)) }
|
|
171
|
+
attr_accessor :name
|
|
172
|
+
|
|
173
|
+
sig do
|
|
174
|
+
params(
|
|
175
|
+
id: T.nilable(String),
|
|
176
|
+
external_plan_id: T.nilable(String),
|
|
177
|
+
name: T.nilable(String)
|
|
178
|
+
).returns(T.attached_class)
|
|
179
|
+
end
|
|
180
|
+
def self.new(
|
|
181
|
+
id:,
|
|
182
|
+
# An optional user-defined ID for this plan resource, used throughout the system
|
|
183
|
+
# as an alias for this Plan. Use this field to identify a plan by an existing
|
|
184
|
+
# identifier in your system.
|
|
185
|
+
external_plan_id:,
|
|
186
|
+
name:
|
|
187
|
+
)
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
sig do
|
|
191
|
+
override.returns(
|
|
192
|
+
{
|
|
193
|
+
id: T.nilable(String),
|
|
194
|
+
external_plan_id: T.nilable(String),
|
|
195
|
+
name: T.nilable(String)
|
|
196
|
+
}
|
|
197
|
+
)
|
|
198
|
+
end
|
|
199
|
+
def to_hash
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
204
|
+
OrHash =
|
|
205
|
+
T.type_alias do
|
|
206
|
+
T.any(
|
|
207
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Properties,
|
|
208
|
+
Orb::Internal::AnyHash
|
|
209
|
+
)
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
sig { returns(T.nilable(String)) }
|
|
213
|
+
attr_accessor :plan_version_description
|
|
214
|
+
|
|
215
|
+
sig { returns(Integer) }
|
|
216
|
+
attr_accessor :plan_version_number
|
|
217
|
+
|
|
218
|
+
sig do
|
|
219
|
+
params(
|
|
220
|
+
plan_version_description: T.nilable(String),
|
|
221
|
+
plan_version_number: Integer
|
|
222
|
+
).returns(T.attached_class)
|
|
223
|
+
end
|
|
224
|
+
def self.new(plan_version_description:, plan_version_number:)
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
sig do
|
|
228
|
+
override.returns(
|
|
229
|
+
{
|
|
230
|
+
plan_version_description: T.nilable(String),
|
|
231
|
+
plan_version_number: Integer
|
|
232
|
+
}
|
|
233
|
+
)
|
|
234
|
+
end
|
|
235
|
+
def to_hash
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# The event this payload describes.
|
|
240
|
+
module Type
|
|
241
|
+
extend Orb::Internal::Type::Enum
|
|
242
|
+
|
|
243
|
+
TaggedSymbol =
|
|
244
|
+
T.type_alias do
|
|
245
|
+
T.all(
|
|
246
|
+
Symbol,
|
|
247
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Type
|
|
248
|
+
)
|
|
249
|
+
end
|
|
250
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
251
|
+
|
|
252
|
+
PLAN_VERSION_CREATED =
|
|
253
|
+
T.let(
|
|
254
|
+
:"plan.version_created",
|
|
255
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Type::TaggedSymbol
|
|
256
|
+
)
|
|
257
|
+
|
|
258
|
+
sig do
|
|
259
|
+
override.returns(
|
|
260
|
+
T::Array[
|
|
261
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent::Type::TaggedSymbol
|
|
262
|
+
]
|
|
263
|
+
)
|
|
264
|
+
end
|
|
265
|
+
def self.values
|
|
266
|
+
end
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
end
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
module Webhooks
|
|
6
|
+
class PriceEditedStandardWebhookEvent < Orb::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent,
|
|
11
|
+
Orb::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# The ID of this webhook event.
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :id
|
|
18
|
+
|
|
19
|
+
# The time at which this event was created, to the second.
|
|
20
|
+
sig { returns(Time) }
|
|
21
|
+
attr_accessor :created_at
|
|
22
|
+
|
|
23
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
24
|
+
# endpoint.
|
|
25
|
+
sig do
|
|
26
|
+
returns(
|
|
27
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
attr_accessor :payload_style
|
|
31
|
+
|
|
32
|
+
# The Price resource represents a price that can be billed on a subscription,
|
|
33
|
+
# resulting in a charge on an invoice in the form of an invoice line item. Prices
|
|
34
|
+
# take a quantity and determine an amount to bill.
|
|
35
|
+
#
|
|
36
|
+
# Orb supports a few different pricing models out of the box. Each of these models
|
|
37
|
+
# is serialized differently in a given Price object. The model_type field
|
|
38
|
+
# determines the key for the configuration object that is present.
|
|
39
|
+
#
|
|
40
|
+
# For more on the types of prices, see
|
|
41
|
+
# [the core concepts documentation](/core-concepts#plan-and-price)
|
|
42
|
+
sig { returns(Orb::Price::Variants) }
|
|
43
|
+
attr_accessor :price
|
|
44
|
+
|
|
45
|
+
sig do
|
|
46
|
+
returns(Orb::Webhooks::PriceEditedStandardWebhookEvent::Properties)
|
|
47
|
+
end
|
|
48
|
+
attr_reader :properties
|
|
49
|
+
|
|
50
|
+
sig do
|
|
51
|
+
params(
|
|
52
|
+
properties:
|
|
53
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::Properties::OrHash
|
|
54
|
+
).void
|
|
55
|
+
end
|
|
56
|
+
attr_writer :properties
|
|
57
|
+
|
|
58
|
+
# The event this payload describes.
|
|
59
|
+
sig do
|
|
60
|
+
returns(
|
|
61
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::Type::TaggedSymbol
|
|
62
|
+
)
|
|
63
|
+
end
|
|
64
|
+
attr_accessor :type
|
|
65
|
+
|
|
66
|
+
# Issued when a price is edited.
|
|
67
|
+
sig do
|
|
68
|
+
params(
|
|
69
|
+
id: String,
|
|
70
|
+
created_at: Time,
|
|
71
|
+
payload_style:
|
|
72
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::PayloadStyle::OrSymbol,
|
|
73
|
+
price:
|
|
74
|
+
T.any(
|
|
75
|
+
Orb::Price::Unit::OrHash,
|
|
76
|
+
Orb::Price::Tiered::OrHash,
|
|
77
|
+
Orb::Price::Bulk::OrHash,
|
|
78
|
+
Orb::Price::BulkWithFilters::OrHash,
|
|
79
|
+
Orb::Price::Package::OrHash,
|
|
80
|
+
Orb::Price::Matrix::OrHash,
|
|
81
|
+
Orb::Price::ThresholdTotalAmount::OrHash,
|
|
82
|
+
Orb::Price::TieredPackage::OrHash,
|
|
83
|
+
Orb::Price::TieredWithMinimum::OrHash,
|
|
84
|
+
Orb::Price::GroupedTiered::OrHash,
|
|
85
|
+
Orb::Price::GroupedTieredMatrix::OrHash,
|
|
86
|
+
Orb::Price::TieredPackageWithMinimum::OrHash,
|
|
87
|
+
Orb::Price::PackageWithAllocation::OrHash,
|
|
88
|
+
Orb::Price::UnitWithPercent::OrHash,
|
|
89
|
+
Orb::Price::MatrixWithAllocation::OrHash,
|
|
90
|
+
Orb::Price::TieredMatrixWithAllocation::OrHash,
|
|
91
|
+
Orb::Price::MatrixWithThresholdDiscounts::OrHash,
|
|
92
|
+
Orb::Price::TieredWithProration::OrHash,
|
|
93
|
+
Orb::Price::UnitWithProration::OrHash,
|
|
94
|
+
Orb::Price::GroupedAllocation::OrHash,
|
|
95
|
+
Orb::Price::BulkWithProration::OrHash,
|
|
96
|
+
Orb::Price::GroupedWithProratedMinimum::OrHash,
|
|
97
|
+
Orb::Price::GroupedWithMeteredMinimum::OrHash,
|
|
98
|
+
Orb::Price::GroupedWithMinMaxThresholds::OrHash,
|
|
99
|
+
Orb::Price::MatrixWithDisplayName::OrHash,
|
|
100
|
+
Orb::Price::GroupedTieredPackage::OrHash,
|
|
101
|
+
Orb::Price::MaxGroupTieredPackage::OrHash,
|
|
102
|
+
Orb::Price::ScalableMatrixWithUnitPricing::OrHash,
|
|
103
|
+
Orb::Price::ScalableMatrixWithTieredPricing::OrHash,
|
|
104
|
+
Orb::Price::CumulativeGroupedBulk::OrHash,
|
|
105
|
+
Orb::Price::CumulativeGroupedAllocation::OrHash,
|
|
106
|
+
Orb::Price::DailyCreditAllowance::OrHash,
|
|
107
|
+
Orb::Price::MeteredAllowance::OrHash,
|
|
108
|
+
Orb::Price::MinimumComposite::OrHash,
|
|
109
|
+
Orb::Price::Percent::OrHash,
|
|
110
|
+
Orb::Price::EventOutput::OrHash
|
|
111
|
+
),
|
|
112
|
+
properties:
|
|
113
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::Properties::OrHash,
|
|
114
|
+
type: Orb::Webhooks::PriceEditedStandardWebhookEvent::Type::OrSymbol
|
|
115
|
+
).returns(T.attached_class)
|
|
116
|
+
end
|
|
117
|
+
def self.new(
|
|
118
|
+
# The ID of this webhook event.
|
|
119
|
+
id:,
|
|
120
|
+
# The time at which this event was created, to the second.
|
|
121
|
+
created_at:,
|
|
122
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
123
|
+
# endpoint.
|
|
124
|
+
payload_style:,
|
|
125
|
+
# The Price resource represents a price that can be billed on a subscription,
|
|
126
|
+
# resulting in a charge on an invoice in the form of an invoice line item. Prices
|
|
127
|
+
# take a quantity and determine an amount to bill.
|
|
128
|
+
#
|
|
129
|
+
# Orb supports a few different pricing models out of the box. Each of these models
|
|
130
|
+
# is serialized differently in a given Price object. The model_type field
|
|
131
|
+
# determines the key for the configuration object that is present.
|
|
132
|
+
#
|
|
133
|
+
# For more on the types of prices, see
|
|
134
|
+
# [the core concepts documentation](/core-concepts#plan-and-price)
|
|
135
|
+
price:,
|
|
136
|
+
properties:,
|
|
137
|
+
# The event this payload describes.
|
|
138
|
+
type:
|
|
139
|
+
)
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
sig do
|
|
143
|
+
override.returns(
|
|
144
|
+
{
|
|
145
|
+
id: String,
|
|
146
|
+
created_at: Time,
|
|
147
|
+
payload_style:
|
|
148
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
149
|
+
price: Orb::Price::Variants,
|
|
150
|
+
properties:
|
|
151
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::Properties,
|
|
152
|
+
type:
|
|
153
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::Type::TaggedSymbol
|
|
154
|
+
}
|
|
155
|
+
)
|
|
156
|
+
end
|
|
157
|
+
def to_hash
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
161
|
+
# endpoint.
|
|
162
|
+
module PayloadStyle
|
|
163
|
+
extend Orb::Internal::Type::Enum
|
|
164
|
+
|
|
165
|
+
TaggedSymbol =
|
|
166
|
+
T.type_alias do
|
|
167
|
+
T.all(
|
|
168
|
+
Symbol,
|
|
169
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::PayloadStyle
|
|
170
|
+
)
|
|
171
|
+
end
|
|
172
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
173
|
+
|
|
174
|
+
EXPANDED =
|
|
175
|
+
T.let(
|
|
176
|
+
:expanded,
|
|
177
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
178
|
+
)
|
|
179
|
+
STANDARD =
|
|
180
|
+
T.let(
|
|
181
|
+
:standard,
|
|
182
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
sig do
|
|
186
|
+
override.returns(
|
|
187
|
+
T::Array[
|
|
188
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
189
|
+
]
|
|
190
|
+
)
|
|
191
|
+
end
|
|
192
|
+
def self.values
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
197
|
+
OrHash =
|
|
198
|
+
T.type_alias do
|
|
199
|
+
T.any(
|
|
200
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::Properties,
|
|
201
|
+
Orb::Internal::AnyHash
|
|
202
|
+
)
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# metadata values are non-null on the wire (deleting a key removes it from
|
|
206
|
+
# storage); the Optional[str] values only exist on the new half of a metadata
|
|
207
|
+
# FieldChange.
|
|
208
|
+
sig do
|
|
209
|
+
returns(
|
|
210
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::Properties::PreviousAttributes
|
|
211
|
+
)
|
|
212
|
+
end
|
|
213
|
+
attr_reader :previous_attributes
|
|
214
|
+
|
|
215
|
+
sig do
|
|
216
|
+
params(
|
|
217
|
+
previous_attributes:
|
|
218
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::Properties::PreviousAttributes::OrHash
|
|
219
|
+
).void
|
|
220
|
+
end
|
|
221
|
+
attr_writer :previous_attributes
|
|
222
|
+
|
|
223
|
+
sig do
|
|
224
|
+
params(
|
|
225
|
+
previous_attributes:
|
|
226
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::Properties::PreviousAttributes::OrHash
|
|
227
|
+
).returns(T.attached_class)
|
|
228
|
+
end
|
|
229
|
+
def self.new(
|
|
230
|
+
# metadata values are non-null on the wire (deleting a key removes it from
|
|
231
|
+
# storage); the Optional[str] values only exist on the new half of a metadata
|
|
232
|
+
# FieldChange.
|
|
233
|
+
previous_attributes:
|
|
234
|
+
)
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
sig do
|
|
238
|
+
override.returns(
|
|
239
|
+
{
|
|
240
|
+
previous_attributes:
|
|
241
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::Properties::PreviousAttributes
|
|
242
|
+
}
|
|
243
|
+
)
|
|
244
|
+
end
|
|
245
|
+
def to_hash
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
class PreviousAttributes < Orb::Internal::Type::BaseModel
|
|
249
|
+
OrHash =
|
|
250
|
+
T.type_alias do
|
|
251
|
+
T.any(
|
|
252
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::Properties::PreviousAttributes,
|
|
253
|
+
Orb::Internal::AnyHash
|
|
254
|
+
)
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
258
|
+
attr_accessor :metadata
|
|
259
|
+
|
|
260
|
+
# metadata values are non-null on the wire (deleting a key removes it from
|
|
261
|
+
# storage); the Optional[str] values only exist on the new half of a metadata
|
|
262
|
+
# FieldChange.
|
|
263
|
+
sig do
|
|
264
|
+
params(metadata: T.nilable(T::Hash[Symbol, String])).returns(
|
|
265
|
+
T.attached_class
|
|
266
|
+
)
|
|
267
|
+
end
|
|
268
|
+
def self.new(metadata: nil)
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
sig do
|
|
272
|
+
override.returns({ metadata: T.nilable(T::Hash[Symbol, String]) })
|
|
273
|
+
end
|
|
274
|
+
def to_hash
|
|
275
|
+
end
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# The event this payload describes.
|
|
280
|
+
module Type
|
|
281
|
+
extend Orb::Internal::Type::Enum
|
|
282
|
+
|
|
283
|
+
TaggedSymbol =
|
|
284
|
+
T.type_alias do
|
|
285
|
+
T.all(
|
|
286
|
+
Symbol,
|
|
287
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::Type
|
|
288
|
+
)
|
|
289
|
+
end
|
|
290
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
291
|
+
|
|
292
|
+
PRICE_EDITED =
|
|
293
|
+
T.let(
|
|
294
|
+
:"price.edited",
|
|
295
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::Type::TaggedSymbol
|
|
296
|
+
)
|
|
297
|
+
|
|
298
|
+
sig do
|
|
299
|
+
override.returns(
|
|
300
|
+
T::Array[
|
|
301
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent::Type::TaggedSymbol
|
|
302
|
+
]
|
|
303
|
+
)
|
|
304
|
+
end
|
|
305
|
+
def self.values
|
|
306
|
+
end
|
|
307
|
+
end
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
end
|
|
311
|
+
end
|