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
|
@@ -8,8 +8,9 @@ module Orb
|
|
|
8
8
|
# subscription. You can see more about how to configure prices in the
|
|
9
9
|
# [Price resource](/reference/price).
|
|
10
10
|
class ExternalPlanID
|
|
11
|
-
# This endpoint can be used to update the `
|
|
12
|
-
# `metadata` of an existing plan.
|
|
11
|
+
# This endpoint can be used to update the `name`, `external_plan_id`,
|
|
12
|
+
# `description`, and `metadata` of an existing plan. A plan's `name` cannot be
|
|
13
|
+
# empty.
|
|
13
14
|
#
|
|
14
15
|
# Other fields on a plan are currently immutable.
|
|
15
16
|
sig do
|
|
@@ -18,6 +19,7 @@ module Orb
|
|
|
18
19
|
description: T.nilable(String),
|
|
19
20
|
external_plan_id: T.nilable(String),
|
|
20
21
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
|
22
|
+
name: T.nilable(String),
|
|
21
23
|
request_options: Orb::RequestOptions::OrHash
|
|
22
24
|
).returns(Orb::Plan)
|
|
23
25
|
end
|
|
@@ -33,6 +35,8 @@ module Orb
|
|
|
33
35
|
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
34
36
|
# by setting `metadata` to `null`.
|
|
35
37
|
metadata: nil,
|
|
38
|
+
# The name of the plan.
|
|
39
|
+
name: nil,
|
|
36
40
|
request_options: {}
|
|
37
41
|
)
|
|
38
42
|
end
|
data/rbi/orb/resources/plans.rbi
CHANGED
|
@@ -74,8 +74,9 @@ module Orb
|
|
|
74
74
|
)
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
# This endpoint can be used to update the `
|
|
78
|
-
# `metadata` of an existing plan.
|
|
77
|
+
# This endpoint can be used to update the `name`, `external_plan_id`,
|
|
78
|
+
# `description`, and `metadata` of an existing plan. A plan's `name` cannot be
|
|
79
|
+
# empty.
|
|
79
80
|
#
|
|
80
81
|
# Other fields on a plan are currently immutable.
|
|
81
82
|
sig do
|
|
@@ -84,6 +85,7 @@ module Orb
|
|
|
84
85
|
description: T.nilable(String),
|
|
85
86
|
external_plan_id: T.nilable(String),
|
|
86
87
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
|
88
|
+
name: T.nilable(String),
|
|
87
89
|
request_options: Orb::RequestOptions::OrHash
|
|
88
90
|
).returns(Orb::Plan)
|
|
89
91
|
end
|
|
@@ -99,6 +101,8 @@ module Orb
|
|
|
99
101
|
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
100
102
|
# by setting `metadata` to `null`.
|
|
101
103
|
metadata: nil,
|
|
104
|
+
# The name of the plan.
|
|
105
|
+
name: nil,
|
|
102
106
|
request_options: {}
|
|
103
107
|
)
|
|
104
108
|
end
|
|
@@ -12,6 +12,8 @@ module Orb
|
|
|
12
12
|
params(
|
|
13
13
|
url: String,
|
|
14
14
|
enabled_event_types: T.nilable(T::Array[String]),
|
|
15
|
+
payload_style:
|
|
16
|
+
T.nilable(Orb::WebhookEndpointCreateParams::PayloadStyle::OrSymbol),
|
|
15
17
|
request_options: Orb::RequestOptions::OrHash
|
|
16
18
|
).returns(Orb::WebhookEndpointWithSecret)
|
|
17
19
|
end
|
|
@@ -21,6 +23,9 @@ module Orb
|
|
|
21
23
|
# The webhook event types to send to this endpoint. If omitted or null, all event
|
|
22
24
|
# types are sent.
|
|
23
25
|
enabled_event_types: nil,
|
|
26
|
+
# The payload style of the webhook events sent to this endpoint. If omitted or
|
|
27
|
+
# null, the account's default style is used.
|
|
28
|
+
payload_style: nil,
|
|
24
29
|
request_options: {}
|
|
25
30
|
)
|
|
26
31
|
end
|
|
@@ -40,6 +45,8 @@ module Orb
|
|
|
40
45
|
params(
|
|
41
46
|
webhook_endpoint_id: String,
|
|
42
47
|
enabled_event_types: T.nilable(T::Array[String]),
|
|
48
|
+
payload_style:
|
|
49
|
+
T.nilable(Orb::WebhookEndpointUpdateParams::PayloadStyle::OrSymbol),
|
|
43
50
|
url: T.nilable(String),
|
|
44
51
|
request_options: Orb::RequestOptions::OrHash
|
|
45
52
|
).returns(Orb::WebhookEndpoint)
|
|
@@ -49,6 +56,9 @@ module Orb
|
|
|
49
56
|
# The webhook event types to send to this endpoint. Null sends all event types;
|
|
50
57
|
# omit to leave them unchanged.
|
|
51
58
|
enabled_event_types: nil,
|
|
59
|
+
# The payload style of the webhook events sent to this endpoint. Applies to events
|
|
60
|
+
# created after the change; omit to leave it unchanged.
|
|
61
|
+
payload_style: nil,
|
|
52
62
|
# The HTTPS URL that Orb sends webhook events to.
|
|
53
63
|
url: nil,
|
|
54
64
|
request_options: {}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Resources
|
|
5
|
+
class Webhooks
|
|
6
|
+
class Standard
|
|
7
|
+
sig do
|
|
8
|
+
params(payload: String).returns(
|
|
9
|
+
T.any(
|
|
10
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent,
|
|
11
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent,
|
|
12
|
+
Orb::Webhooks::BillableMetricEditedStandardWebhookEvent,
|
|
13
|
+
Orb::Webhooks::CreditBlockAccountingSyncFailedStandardWebhookEvent,
|
|
14
|
+
Orb::Webhooks::CreditBlockAccountingSyncSucceededStandardWebhookEvent,
|
|
15
|
+
Orb::Webhooks::CreditNoteAccountingSyncFailedStandardWebhookEvent,
|
|
16
|
+
Orb::Webhooks::CreditNoteAccountingSyncSucceededStandardWebhookEvent,
|
|
17
|
+
Orb::Webhooks::CreditNoteIssuedStandardWebhookEvent,
|
|
18
|
+
Orb::Webhooks::CreditNoteMarkedAsVoidStandardWebhookEvent,
|
|
19
|
+
Orb::Webhooks::CustomerAccountingSyncFailedStandardWebhookEvent,
|
|
20
|
+
Orb::Webhooks::CustomerAccountingSyncSucceededStandardWebhookEvent,
|
|
21
|
+
Orb::Webhooks::CustomerBalanceTransactionCreatedStandardWebhookEvent,
|
|
22
|
+
Orb::Webhooks::CustomerCreatedStandardWebhookEvent,
|
|
23
|
+
Orb::Webhooks::CustomerCreditBalanceDepletedStandardWebhookEvent,
|
|
24
|
+
Orb::Webhooks::CustomerCreditBalanceDroppedStandardWebhookEvent,
|
|
25
|
+
Orb::Webhooks::CustomerCreditBalanceRecoveredStandardWebhookEvent,
|
|
26
|
+
Orb::Webhooks::CustomerCreditLedgerIncrementedStandardWebhookEvent,
|
|
27
|
+
Orb::Webhooks::CustomerEditedStandardWebhookEvent,
|
|
28
|
+
Orb::Webhooks::DataExportsTransferErrorStandardWebhookEvent,
|
|
29
|
+
Orb::Webhooks::DataExportsTransferSuccessStandardWebhookEvent,
|
|
30
|
+
Orb::Webhooks::EventUnmatchedEventStandardWebhookEvent,
|
|
31
|
+
Orb::Webhooks::IngestionUnmatchedCustomerIDsStandardWebhookEvent,
|
|
32
|
+
Orb::Webhooks::InvoiceAccountingSyncFailedStandardWebhookEvent,
|
|
33
|
+
Orb::Webhooks::InvoiceAccountingSyncSucceededStandardWebhookEvent,
|
|
34
|
+
Orb::Webhooks::InvoiceAutomationScheduleStepExecutedStandardWebhookEvent,
|
|
35
|
+
Orb::Webhooks::InvoiceCostDataExportedStandardWebhookEvent,
|
|
36
|
+
Orb::Webhooks::InvoiceDunningScheduleCreatedStandardWebhookEvent,
|
|
37
|
+
Orb::Webhooks::InvoiceDunningScheduleEndedStandardWebhookEvent,
|
|
38
|
+
Orb::Webhooks::InvoiceDunningScheduleResetStandardWebhookEvent,
|
|
39
|
+
Orb::Webhooks::InvoiceDunningScheduleStepExecutedStandardWebhookEvent,
|
|
40
|
+
Orb::Webhooks::InvoiceEditedStandardWebhookEvent,
|
|
41
|
+
Orb::Webhooks::InvoiceInvoiceDateElapsedStandardWebhookEvent,
|
|
42
|
+
Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent,
|
|
43
|
+
Orb::Webhooks::InvoiceIssuedStandardWebhookEvent,
|
|
44
|
+
Orb::Webhooks::InvoiceIssuedSummaryStandardWebhookEvent,
|
|
45
|
+
Orb::Webhooks::InvoiceManuallyMarkedAsPaidStandardWebhookEvent,
|
|
46
|
+
Orb::Webhooks::InvoiceManuallyMarkedAsVoidStandardWebhookEvent,
|
|
47
|
+
Orb::Webhooks::InvoicePaymentFailedStandardWebhookEvent,
|
|
48
|
+
Orb::Webhooks::InvoicePaymentProcessingStandardWebhookEvent,
|
|
49
|
+
Orb::Webhooks::InvoicePaymentSucceededStandardWebhookEvent,
|
|
50
|
+
Orb::Webhooks::InvoiceSyncFailedStandardWebhookEvent,
|
|
51
|
+
Orb::Webhooks::InvoiceSyncSucceededStandardWebhookEvent,
|
|
52
|
+
Orb::Webhooks::InvoiceUndoMarkAsPaidStandardWebhookEvent,
|
|
53
|
+
Orb::Webhooks::InvoiceDueDateRecalculationCanceledStandardWebhookEvent,
|
|
54
|
+
Orb::Webhooks::InvoiceDueDateRecalculationCompletedStandardWebhookEvent,
|
|
55
|
+
Orb::Webhooks::InvoiceDueDateRecalculationStartedStandardWebhookEvent,
|
|
56
|
+
Orb::Webhooks::MetricEventsDroppedByWatermarkStandardWebhookEvent,
|
|
57
|
+
Orb::Webhooks::PaymentMethodCreatedStandardWebhookEvent,
|
|
58
|
+
Orb::Webhooks::PaymentMethodDeletedStandardWebhookEvent,
|
|
59
|
+
Orb::Webhooks::PlanCreatedStandardWebhookEvent,
|
|
60
|
+
Orb::Webhooks::PlanDefaultVersionSetStandardWebhookEvent,
|
|
61
|
+
Orb::Webhooks::PlanEditedStandardWebhookEvent,
|
|
62
|
+
Orb::Webhooks::PlanVersionCreatedStandardWebhookEvent,
|
|
63
|
+
Orb::Webhooks::PriceEditedStandardWebhookEvent,
|
|
64
|
+
Orb::Webhooks::ResourceEventTestStandardWebhookEvent,
|
|
65
|
+
Orb::Webhooks::SalesOrderAccountingSyncFailedStandardWebhookEvent,
|
|
66
|
+
Orb::Webhooks::SalesOrderAccountingSyncSucceededStandardWebhookEvent,
|
|
67
|
+
Orb::Webhooks::SubscriptionAccountingSyncFailedStandardWebhookEvent,
|
|
68
|
+
Orb::Webhooks::SubscriptionAccountingSyncSucceededStandardWebhookEvent,
|
|
69
|
+
Orb::Webhooks::SubscriptionAlertDisabledStandardWebhookEvent,
|
|
70
|
+
Orb::Webhooks::SubscriptionCancellationScheduledStandardWebhookEvent,
|
|
71
|
+
Orb::Webhooks::SubscriptionCancellationUnscheduledStandardWebhookEvent,
|
|
72
|
+
Orb::Webhooks::SubscriptionCostExceededStandardWebhookEvent,
|
|
73
|
+
Orb::Webhooks::SubscriptionCreatedStandardWebhookEvent,
|
|
74
|
+
Orb::Webhooks::SubscriptionEditedStandardWebhookEvent,
|
|
75
|
+
Orb::Webhooks::SubscriptionEndedStandardWebhookEvent,
|
|
76
|
+
Orb::Webhooks::SubscriptionFixedFeeQuantityUpdatedStandardWebhookEvent,
|
|
77
|
+
Orb::Webhooks::SubscriptionGroupedCostExceededStandardWebhookEvent,
|
|
78
|
+
Orb::Webhooks::SubscriptionInvoicingThresholdExceededStandardWebhookEvent,
|
|
79
|
+
Orb::Webhooks::SubscriptionLicenseAllocationResetStandardWebhookEvent,
|
|
80
|
+
Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent,
|
|
81
|
+
Orb::Webhooks::SubscriptionPlanChangeScheduledStandardWebhookEvent,
|
|
82
|
+
Orb::Webhooks::SubscriptionPlanChangedStandardWebhookEvent,
|
|
83
|
+
Orb::Webhooks::SubscriptionPlanVersionChangeScheduledStandardWebhookEvent,
|
|
84
|
+
Orb::Webhooks::SubscriptionPlanVersionChangedStandardWebhookEvent,
|
|
85
|
+
Orb::Webhooks::SubscriptionSpendExceededStandardWebhookEvent,
|
|
86
|
+
Orb::Webhooks::SubscriptionStartedStandardWebhookEvent,
|
|
87
|
+
Orb::Webhooks::SubscriptionTrialEndedStandardWebhookEvent,
|
|
88
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent,
|
|
89
|
+
Orb::Webhooks::TransactionAccountingSyncFailedStandardWebhookEvent,
|
|
90
|
+
Orb::Webhooks::TransactionAccountingSyncSucceededStandardWebhookEvent
|
|
91
|
+
)
|
|
92
|
+
)
|
|
93
|
+
end
|
|
94
|
+
def unwrap_standard(
|
|
95
|
+
# The raw webhook payload as a string
|
|
96
|
+
payload
|
|
97
|
+
)
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# @api private
|
|
101
|
+
sig { params(client: Orb::Client).returns(T.attached_class) }
|
|
102
|
+
def self.new(client:)
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
@@ -7,7 +7,8 @@ module Orb
|
|
|
7
7
|
created_at_lt: Time?,
|
|
8
8
|
created_at_lte: Time?,
|
|
9
9
|
cursor: String?,
|
|
10
|
-
limit: Integer
|
|
10
|
+
limit: Integer,
|
|
11
|
+
status: Orb::Models::MetricListParams::status?
|
|
11
12
|
}
|
|
12
13
|
& Orb::Internal::Type::request_parameters
|
|
13
14
|
|
|
@@ -29,6 +30,8 @@ module Orb
|
|
|
29
30
|
|
|
30
31
|
def limit=: (Integer) -> Integer
|
|
31
32
|
|
|
33
|
+
attr_accessor status: Orb::Models::MetricListParams::status?
|
|
34
|
+
|
|
32
35
|
def initialize: (
|
|
33
36
|
?created_at_gt: Time?,
|
|
34
37
|
?created_at_gte: Time?,
|
|
@@ -36,6 +39,7 @@ module Orb
|
|
|
36
39
|
?created_at_lte: Time?,
|
|
37
40
|
?cursor: String?,
|
|
38
41
|
?limit: Integer,
|
|
42
|
+
?status: Orb::Models::MetricListParams::status?,
|
|
39
43
|
?request_options: Orb::request_opts
|
|
40
44
|
) -> void
|
|
41
45
|
|
|
@@ -46,8 +50,21 @@ module Orb
|
|
|
46
50
|
created_at_lte: Time?,
|
|
47
51
|
cursor: String?,
|
|
48
52
|
limit: Integer,
|
|
53
|
+
status: Orb::Models::MetricListParams::status?,
|
|
49
54
|
request_options: Orb::RequestOptions
|
|
50
55
|
}
|
|
56
|
+
|
|
57
|
+
type status = :active | :archived | :draft
|
|
58
|
+
|
|
59
|
+
module Status
|
|
60
|
+
extend Orb::Internal::Type::Enum
|
|
61
|
+
|
|
62
|
+
ACTIVE: :active
|
|
63
|
+
ARCHIVED: :archived
|
|
64
|
+
DRAFT: :draft
|
|
65
|
+
|
|
66
|
+
def self?.values: -> ::Array[Orb::Models::MetricListParams::status]
|
|
67
|
+
end
|
|
51
68
|
end
|
|
52
69
|
end
|
|
53
70
|
end
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
module Orb
|
|
2
2
|
module Models
|
|
3
3
|
type metric_update_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
metric_id: String,
|
|
6
|
+
description: String?,
|
|
7
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
8
|
+
name: String?
|
|
9
|
+
}
|
|
5
10
|
& Orb::Internal::Type::request_parameters
|
|
6
11
|
|
|
7
12
|
class MetricUpdateParams < Orb::Internal::Type::BaseModel
|
|
@@ -10,17 +15,25 @@ module Orb
|
|
|
10
15
|
|
|
11
16
|
attr_accessor metric_id: String
|
|
12
17
|
|
|
18
|
+
attr_accessor description: String?
|
|
19
|
+
|
|
13
20
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
14
21
|
|
|
22
|
+
attr_accessor name: String?
|
|
23
|
+
|
|
15
24
|
def initialize: (
|
|
16
25
|
metric_id: String,
|
|
26
|
+
?description: String?,
|
|
17
27
|
?metadata: ::Hash[Symbol, String?]?,
|
|
28
|
+
?name: String?,
|
|
18
29
|
?request_options: Orb::request_opts
|
|
19
30
|
) -> void
|
|
20
31
|
|
|
21
32
|
def to_hash: -> {
|
|
22
33
|
metric_id: String,
|
|
34
|
+
description: String?,
|
|
23
35
|
metadata: ::Hash[Symbol, String?]?,
|
|
36
|
+
name: String?,
|
|
24
37
|
request_options: Orb::RequestOptions
|
|
25
38
|
}
|
|
26
39
|
end
|
|
@@ -5,7 +5,8 @@ module Orb
|
|
|
5
5
|
plan_id: String,
|
|
6
6
|
description: String?,
|
|
7
7
|
external_plan_id: String?,
|
|
8
|
-
metadata: ::Hash[Symbol, String?]
|
|
8
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
9
|
+
name: String?
|
|
9
10
|
}
|
|
10
11
|
& Orb::Internal::Type::request_parameters
|
|
11
12
|
|
|
@@ -21,11 +22,14 @@ module Orb
|
|
|
21
22
|
|
|
22
23
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
23
24
|
|
|
25
|
+
attr_accessor name: String?
|
|
26
|
+
|
|
24
27
|
def initialize: (
|
|
25
28
|
plan_id: String,
|
|
26
29
|
?description: String?,
|
|
27
30
|
?external_plan_id: String?,
|
|
28
31
|
?metadata: ::Hash[Symbol, String?]?,
|
|
32
|
+
?name: String?,
|
|
29
33
|
?request_options: Orb::request_opts
|
|
30
34
|
) -> void
|
|
31
35
|
|
|
@@ -34,6 +38,7 @@ module Orb
|
|
|
34
38
|
description: String?,
|
|
35
39
|
external_plan_id: String?,
|
|
36
40
|
metadata: ::Hash[Symbol, String?]?,
|
|
41
|
+
name: String?,
|
|
37
42
|
request_options: Orb::RequestOptions
|
|
38
43
|
}
|
|
39
44
|
end
|
|
@@ -6,7 +6,8 @@ module Orb
|
|
|
6
6
|
other_external_plan_id: String,
|
|
7
7
|
description: String?,
|
|
8
8
|
external_plan_id: String?,
|
|
9
|
-
metadata: ::Hash[Symbol, String?]
|
|
9
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
10
|
+
name: String?
|
|
10
11
|
}
|
|
11
12
|
& Orb::Internal::Type::request_parameters
|
|
12
13
|
|
|
@@ -22,11 +23,14 @@ module Orb
|
|
|
22
23
|
|
|
23
24
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
24
25
|
|
|
26
|
+
attr_accessor name: String?
|
|
27
|
+
|
|
25
28
|
def initialize: (
|
|
26
29
|
other_external_plan_id: String,
|
|
27
30
|
?description: String?,
|
|
28
31
|
?external_plan_id: String?,
|
|
29
32
|
?metadata: ::Hash[Symbol, String?]?,
|
|
33
|
+
?name: String?,
|
|
30
34
|
?request_options: Orb::request_opts
|
|
31
35
|
) -> void
|
|
32
36
|
|
|
@@ -35,6 +39,7 @@ module Orb
|
|
|
35
39
|
description: String?,
|
|
36
40
|
external_plan_id: String?,
|
|
37
41
|
metadata: ::Hash[Symbol, String?]?,
|
|
42
|
+
name: String?,
|
|
38
43
|
request_options: Orb::RequestOptions
|
|
39
44
|
}
|
|
40
45
|
end
|
|
@@ -6,6 +6,7 @@ module Orb
|
|
|
6
6
|
created_at: Time,
|
|
7
7
|
enabled: bool,
|
|
8
8
|
enabled_event_types: ::Array[String]?,
|
|
9
|
+
payload_style: Orb::Models::WebhookEndpoint::payload_style,
|
|
9
10
|
url: String
|
|
10
11
|
}
|
|
11
12
|
|
|
@@ -18,6 +19,8 @@ module Orb
|
|
|
18
19
|
|
|
19
20
|
attr_accessor enabled_event_types: ::Array[String]?
|
|
20
21
|
|
|
22
|
+
attr_accessor payload_style: Orb::Models::WebhookEndpoint::payload_style
|
|
23
|
+
|
|
21
24
|
attr_accessor url: String
|
|
22
25
|
|
|
23
26
|
def initialize: (
|
|
@@ -25,6 +28,7 @@ module Orb
|
|
|
25
28
|
created_at: Time,
|
|
26
29
|
enabled: bool,
|
|
27
30
|
enabled_event_types: ::Array[String]?,
|
|
31
|
+
payload_style: Orb::Models::WebhookEndpoint::payload_style,
|
|
28
32
|
url: String
|
|
29
33
|
) -> void
|
|
30
34
|
|
|
@@ -33,8 +37,20 @@ module Orb
|
|
|
33
37
|
created_at: Time,
|
|
34
38
|
enabled: bool,
|
|
35
39
|
enabled_event_types: ::Array[String]?,
|
|
40
|
+
payload_style: Orb::Models::WebhookEndpoint::payload_style,
|
|
36
41
|
url: String
|
|
37
42
|
}
|
|
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::WebhookEndpoint::payload_style]
|
|
53
|
+
end
|
|
38
54
|
end
|
|
39
55
|
end
|
|
40
56
|
end
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
module Orb
|
|
2
2
|
module Models
|
|
3
3
|
type webhook_endpoint_create_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
url: String,
|
|
6
|
+
enabled_event_types: ::Array[String]?,
|
|
7
|
+
payload_style: Orb::Models::WebhookEndpointCreateParams::payload_style?
|
|
8
|
+
}
|
|
5
9
|
& Orb::Internal::Type::request_parameters
|
|
6
10
|
|
|
7
11
|
class WebhookEndpointCreateParams < Orb::Internal::Type::BaseModel
|
|
@@ -12,17 +16,32 @@ module Orb
|
|
|
12
16
|
|
|
13
17
|
attr_accessor enabled_event_types: ::Array[String]?
|
|
14
18
|
|
|
19
|
+
attr_accessor payload_style: Orb::Models::WebhookEndpointCreateParams::payload_style?
|
|
20
|
+
|
|
15
21
|
def initialize: (
|
|
16
22
|
url: String,
|
|
17
23
|
?enabled_event_types: ::Array[String]?,
|
|
24
|
+
?payload_style: Orb::Models::WebhookEndpointCreateParams::payload_style?,
|
|
18
25
|
?request_options: Orb::request_opts
|
|
19
26
|
) -> void
|
|
20
27
|
|
|
21
28
|
def to_hash: -> {
|
|
22
29
|
url: String,
|
|
23
30
|
enabled_event_types: ::Array[String]?,
|
|
31
|
+
payload_style: Orb::Models::WebhookEndpointCreateParams::payload_style?,
|
|
24
32
|
request_options: Orb::RequestOptions
|
|
25
33
|
}
|
|
34
|
+
|
|
35
|
+
type payload_style = :expanded | :standard
|
|
36
|
+
|
|
37
|
+
module PayloadStyle
|
|
38
|
+
extend Orb::Internal::Type::Enum
|
|
39
|
+
|
|
40
|
+
EXPANDED: :expanded
|
|
41
|
+
STANDARD: :standard
|
|
42
|
+
|
|
43
|
+
def self?.values: -> ::Array[Orb::Models::WebhookEndpointCreateParams::payload_style]
|
|
44
|
+
end
|
|
26
45
|
end
|
|
27
46
|
end
|
|
28
47
|
end
|
|
@@ -4,6 +4,7 @@ module Orb
|
|
|
4
4
|
{
|
|
5
5
|
webhook_endpoint_id: String,
|
|
6
6
|
enabled_event_types: ::Array[String]?,
|
|
7
|
+
payload_style: Orb::Models::WebhookEndpointUpdateParams::payload_style?,
|
|
7
8
|
url: String?
|
|
8
9
|
}
|
|
9
10
|
& Orb::Internal::Type::request_parameters
|
|
@@ -16,11 +17,14 @@ module Orb
|
|
|
16
17
|
|
|
17
18
|
attr_accessor enabled_event_types: ::Array[String]?
|
|
18
19
|
|
|
20
|
+
attr_accessor payload_style: Orb::Models::WebhookEndpointUpdateParams::payload_style?
|
|
21
|
+
|
|
19
22
|
attr_accessor url: String?
|
|
20
23
|
|
|
21
24
|
def initialize: (
|
|
22
25
|
webhook_endpoint_id: String,
|
|
23
26
|
?enabled_event_types: ::Array[String]?,
|
|
27
|
+
?payload_style: Orb::Models::WebhookEndpointUpdateParams::payload_style?,
|
|
24
28
|
?url: String?,
|
|
25
29
|
?request_options: Orb::request_opts
|
|
26
30
|
) -> void
|
|
@@ -28,9 +32,21 @@ module Orb
|
|
|
28
32
|
def to_hash: -> {
|
|
29
33
|
webhook_endpoint_id: String,
|
|
30
34
|
enabled_event_types: ::Array[String]?,
|
|
35
|
+
payload_style: Orb::Models::WebhookEndpointUpdateParams::payload_style?,
|
|
31
36
|
url: String?,
|
|
32
37
|
request_options: Orb::RequestOptions
|
|
33
38
|
}
|
|
39
|
+
|
|
40
|
+
type payload_style = :expanded | :standard
|
|
41
|
+
|
|
42
|
+
module PayloadStyle
|
|
43
|
+
extend Orb::Internal::Type::Enum
|
|
44
|
+
|
|
45
|
+
EXPANDED: :expanded
|
|
46
|
+
STANDARD: :standard
|
|
47
|
+
|
|
48
|
+
def self?.values: -> ::Array[Orb::Models::WebhookEndpointUpdateParams::payload_style]
|
|
49
|
+
end
|
|
34
50
|
end
|
|
35
51
|
end
|
|
36
52
|
end
|
|
@@ -6,6 +6,7 @@ module Orb
|
|
|
6
6
|
created_at: Time,
|
|
7
7
|
enabled: bool,
|
|
8
8
|
enabled_event_types: ::Array[String]?,
|
|
9
|
+
payload_style: Orb::Models::WebhookEndpointWithSecret::payload_style,
|
|
9
10
|
secret: String,
|
|
10
11
|
url: String
|
|
11
12
|
}
|
|
@@ -19,6 +20,8 @@ module Orb
|
|
|
19
20
|
|
|
20
21
|
attr_accessor enabled_event_types: ::Array[String]?
|
|
21
22
|
|
|
23
|
+
attr_accessor payload_style: Orb::Models::WebhookEndpointWithSecret::payload_style
|
|
24
|
+
|
|
22
25
|
attr_accessor secret: String
|
|
23
26
|
|
|
24
27
|
attr_accessor url: String
|
|
@@ -28,6 +31,7 @@ module Orb
|
|
|
28
31
|
created_at: Time,
|
|
29
32
|
enabled: bool,
|
|
30
33
|
enabled_event_types: ::Array[String]?,
|
|
34
|
+
payload_style: Orb::Models::WebhookEndpointWithSecret::payload_style,
|
|
31
35
|
secret: String,
|
|
32
36
|
url: String
|
|
33
37
|
) -> void
|
|
@@ -37,9 +41,21 @@ module Orb
|
|
|
37
41
|
created_at: Time,
|
|
38
42
|
enabled: bool,
|
|
39
43
|
enabled_event_types: ::Array[String]?,
|
|
44
|
+
payload_style: Orb::Models::WebhookEndpointWithSecret::payload_style,
|
|
40
45
|
secret: String,
|
|
41
46
|
url: String
|
|
42
47
|
}
|
|
48
|
+
|
|
49
|
+
type payload_style = :expanded | :standard
|
|
50
|
+
|
|
51
|
+
module PayloadStyle
|
|
52
|
+
extend Orb::Internal::Type::Enum
|
|
53
|
+
|
|
54
|
+
EXPANDED: :expanded
|
|
55
|
+
STANDARD: :standard
|
|
56
|
+
|
|
57
|
+
def self?.values: -> ::Array[Orb::Models::WebhookEndpointWithSecret::payload_style]
|
|
58
|
+
end
|
|
43
59
|
end
|
|
44
60
|
end
|
|
45
61
|
end
|